maint.mk: avoid redundant file name in message
[gnulib.git] / ChangeLog
1 2012-08-20  Eric Blake  <eblake@redhat.com>
2
3         maint.mk: avoid redundant file name in message
4         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
6         (sc_makefile_path_separator_check): Remove bogus $(ME).
7
8 2012-08-20  Mike Frysinger <vapier@gentoo.org>
9
10         timer-time: fix link order when static linking on glibc
11         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
12         _after_ -lrt so that it's significant.
13
14 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15
16         timespec: omit unnecessary AC_C_INLINE
17         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
18
19         stat-time: omit unnecessary AC_C_INLINE
20         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
21         Do not require AC_C_INLINE.
22
23         ignore-value: omit unnecessary AC_C_INLINE
24         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
25
26         sys_select: avoid 'static inline'
27         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
28
29         mktime: avoid 'static inline'
30         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
31         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
32
33 2012-08-19  Bruno Haible  <bruno@clisp.org>
34
35         gnulib-tool: Improve coding style.
36         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37         func_emit_lib_Makefile_am.
38         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39
40 2012-08-19  Bruno Haible  <bruno@clisp.org>
41
42         gnulib-tool: Fix indentation.
43         * gnulib-tool (func_import): Fix indentation.
44
45 2012-08-19  Bruno Haible  <bruno@clisp.org>
46
47         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
48         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
49         on the list of removed files.
50
51 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52
53         test-parse-datetime: avoid glibc leap-second glitch
54         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
55         with the 2012 rules.  Problem reported by Bruce Dubbs in
56         <http://bugs.gnu.org/12206>.
57
58 2012-08-14  Bruno Haible  <bruno@clisp.org>
59
60         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
61         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
62         from argument.
63         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
64
65 2012-08-14  Eric Blake  <eblake@redhat.com>
66
67         ldexp: relax license
68         * modules/ldexp (License): Trivial relax, since the module only
69         provides a permissively licensed m4 file.
70
71 2012-08-13  Bruno Haible  <bruno@clisp.org>
72
73         gnulib-tool: Fix persistence of --witness-c-macro option.
74         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
75         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
76
77 2012-08-11  Eric Blake  <eblake@redhat.com>
78
79         count-leading-zeros: use a lookup table on non-gcc compilers
80         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
81         alternate implementation, suggested by Jim Meyering.
82
83 2012-08-10  Eric Blake  <eblake@redhat.com>
84
85         count-leading-zeros: new module
86         * modules/count-leading-zeros: New module.
87         * m4/count-leading-zeros.m4: New file.
88         * lib/count-leading-zeros.h: Likewise.
89         * modules/count-leading-zeros-tests: New test.
90         * tests/test-count-leading-zeros.c: New file.
91         * MODULES.html.sh (Integer arithmetic functions): Document it.
92
93 2012-08-07  Simon Josefsson  <simon@josefsson.org>
94             Jim Meyering  <meyering@redhat.com>
95
96         maintainer-makefile: Fix syntax error with dash.
97         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
98         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
99
100 2012-08-05  Jim Meyering  <meyering@redhat.com>
101
102         extern-inline: also ignore -Wmissing-declarations
103         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
104         required with gcc-4.8.0-to-be.
105
106         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
107         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
108         for /error ?([^,]*)/.  This avoids false-positives for strings like
109         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
110
111 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
112
113         gnumakefile: better interaction with Automake-NG
114         * modules/gnumakefile [Makefile.am]: The makefiles generated by
115         Automake-NG always contain a definition of VPATH, even in non-VPATH
116         builds (its value being simply '.' in that case).  So, in the
117         'clean-GNUmakefile' rule, to determine whether running under a
118         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
119         '$(VPATH)' expands to the empty string.
120
121 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
122
123         base64: Use extern C scope in header file, for C++.
124         * lib/base64.h: Add C++ namespace protection.
125
126 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
127
128         stat-time, timespec, u64: support naive out-of-dir builds
129         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
130         Use '#include "foo.h"', not '#include <foo.h>', when including
131         one's own interface.  This works better when configuring with
132         out-of-directory builds, since packages need not add an
133         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
134
135 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
136
137         utimens: use extern-inline
138         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
139         * lib/utimens.h: Add copyright notice, since this is now large enough
140         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
141         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
142         * modules/utimens (Depends-on): Add extern-inline.
143
144         u64: use extern-inline
145         * lib/u64.c: New file.
146         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
147         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
148         * modules/u64 (Files): Add lib/u64.c.
149         (Depends-on): Add extern-inline.
150         (configure.ac): No need to require AC_C_INLINE, since extern-inline
151         does that now.
152         (lib_SOURCES): Add u64.c.
153
154         timespec: use extern-inline
155         * lib/timespec.c: New file.
156         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
157         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
158         * modules/timespec (Files): Add lib/timespec.c.
159         (Depends-on): Add extern-inline.
160         (lib_SOURCES): Add timespec.c.
161
162         stat-time: use extern-inline
163         * lib/stat-time.c: New file.
164         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
165         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
166         * modules/stat-time (Files): Add lib/stat-time.c.
167         (Depends-on): Add extern-inline.
168         (lib_SOURCES): Add stat-time.c.
169
170         extern-inline: new module
171         * modules/extern-inline, m4/extern-inline.m4: New files.
172         This is for better support of 'extern inline' a la ISO C99,
173         with a portable alternative on compilers that do not support
174         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
175         of the Emacs executable, when compiled with debugging disabled,
176         which is a typical way that Emacs is built while developing.
177
178 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
179
180         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
181         * build-aux/do-release-commit-and-tag: Move variable definitions
182         together.
183         ($branch): Instead of defaulting to "master", default to the current
184         branch (as gnu-web-doc-update does).
185         (help): Display the current values of the option arguments.
186         * top/maint.mk (release-commit): New.
187         * top/README-release: Simplify the corresponding step.
188
189 2012-07-30  Eric Blake  <eblake@redhat.com>
190
191         passfd: fix comment on recvfd
192         * lib/passfd.c (recvfd): Fix comment.
193         Reported by Jann Horn <jannhorn@googlemail.com>.
194
195 2012-07-30  Jim Meyering  <meyering@redhat.com>
196
197         maint.mk: avoid a sub-shell
198         * top/maint.mk (release-prep): Remove unneeded sub-shell.
199
200 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
201
202         maint.mk: use silent-rules support from Automake
203         * top/maint.mk (news-check, vc-diff-check, announcement)
204         (no-submodule-changes, alpha beta stable, release-prep)
205         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
206
207 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
208
209         maint.mk: provide a web-manual-update target
210         * top/maint.mk: here.
211         * top/README-release: Use it to simplify the web manual update step.
212
213 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
214
215         README-release: shorten the circuit to post a news
216         * top/README-release: Point directly to the news submission form.
217
218 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
219
220         gnu-web-doc-update: fix --help
221         * build-aux/gnu-web-doc-update: The information "top level" was written
222         twice.
223
224 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
225
226         maint.mk: absolute VPATH issue
227         * top/maint.mk (release-prep): Help Git find .git/.
228         From Jim Meyering.
229
230 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
231
232         gitlog-to-changelog: fix previous change
233         * build-aux/gitlog-to-changelog: Fix condition.
234         Add missing ";".
235
236 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
237
238         gitlog-to-changelog: don't expect .git to be in $srcdir
239         Reported by Bruno Haible.
240         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
241         * build-aux/gitlog-to-changelog (&git_dir_option): New.
242         Use it.
243
244 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
245
246         maint.mk: absolute VPATH build fix
247         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
248         $(srcdir) is not a parent of $(builddir).
249
250 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
251
252         clean-temp: Fix memory leak.
253         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
254         'files' members of tmpdir.
255
256 2012-07-27  Jim Meyering  <meyering@redhat.com>
257
258         maint.mk: new rule: refresh-gnulib-patches
259         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
260         Use this rule to refresh them.
261         * top/maint.mk (refresh-gnulib-patches): New rule.
262
263 2012-07-24  Bruno Haible  <bruno@clisp.org>
264
265         gnulib-tool: Fix handling of inctests variable.
266         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
267         Reported by Nick Bowler <nbowler@elliptictech.com>.
268
269 2012-07-22  Bruno Haible  <bruno@clisp.org>
270
271         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
272         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
273         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
274         Remove exemption for getpass.h.
275         Suggested by Eric Blake.
276
277 2012-07-20  Eric Blake  <eblake@redhat.com>
278
279         verify: document conflict with -Wnested-externs
280         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
281
282         maint.mk: forbid exit(-1)
283         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
284
285 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
286
287         fsusage: port back to Solaris
288         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
289         error (fsd not declared) on Solaris 10.  Reported privately by
290         Andrew Borodin.
291
292 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
293
294         gnu-web-doc-update: fix error messages
295         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
296
297         gnu-web-doc-update: check the requirements.
298         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
299         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
300         * build-aux/bootstrap (find_tool): Comment change.
301
302 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
303
304         maint.mk: minor simplication.
305         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
306         for default values.
307
308 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
309
310         gitlog-to-changelog: VPATH build issues
311         If builddir is not a subdirectory of srcdir, running git from it will
312         fail.
313         * build-aux/gitlog-to-changelog (--srcdir): New option.
314
315 2012-07-15  Bruno Haible  <bruno@clisp.org>
316
317         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
318         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
319         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
320         Remove exemption for fpending.h.
321         Suggested by Eric Blake.
322
323 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
324
325         pthread_sigmask: fix bug on FreeBSD 9
326         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
327         Include string.h.
328         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
329         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
330         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
331         but pthread_sigmask (1729, NULL, NULL) returns zero.
332         See <http://bugs.gnu.org/11884>.
333         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
334         by inspecting whether the main call changed the old mask.
335
336 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
337
338         README-release: make it more legible
339         * top/README-release: Improve typography slightly.
340
341 2012-07-15  Jim Meyering  <meyering@redhat.com>
342
343         maint: require that each sc_... command start with "@"
344         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
345         "make sc_maint" helps us avoid this nit.
346
347 2012-07-15  Jim Meyering  <meyering@redhat.com>
348
349         maint.mk: add leading "@" to quiet new "make syntax-check" rule
350         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
351
352 2012-07-13  Eric Blake  <eblake@redhat.com>
353
354         maint.mk: new syntax check for HAVE_DECL checks
355         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
356         * cfg.mk
357         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
358         Exempt some false positives.
359         Based on a report by Karel Zak.
360
361         argp: make HAVE_DECL usage consistent
362         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
363         macros, not whether they are defined.
364         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
365         convention with other declaration checks.
366         Reported by Karel Zak, with suggestions from Paul Eggert.
367
368         stat-time: relax license to LGPLv2+
369         * modules/stat-time (License): Relax, with consent of all authors.
370
371         strndup: fix m4 usage error
372         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
373         defined, to either 0 or 1.
374         Reported by Karel Zak.
375
376 2012-07-11  Jim Meyering  <meyering@redhat.com>
377
378         maint: enable the sc_avoid_if_before_free syntax-check rule
379         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
380         (if_before_free_offenders_): Define.
381         (if_before_free_basename_re_): Define.
382         Exempt current files with useless if-before-free.
383
384 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
385
386         gettext: do not assume '#define ... defined ...' behavior
387         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
388         Do not use '#define FOO ... defined BAR ...', as the C standard says
389         it's not portable to expect that this works after macro expansion.
390         Problem reported for gzip by Steven M. Schweda in
391         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
392
393 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
394
395         getloadavg: clean out old Emacs and Autoconf cruft
396         See Glenn Morris in <http://bugs.gnu.org/11905>.
397         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
398         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
399         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
400         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
401
402 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
403
404         bootstrap: let warn be like tests/init.sh's warn_
405         Reported by Jim Meyering.
406         * build-aux/bootstrap (warn): Remove, replaced by...
407         (warnf_, warn_): these.
408         Adjust callers.
409         Shorten messages that no longer fit in 80 columns.
410
411 2012-07-09  Bruno Haible  <bruno@clisp.org>
412
413         getopt: Simplify after Emacs changed.
414         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
415         (gl_GETOPT_IFELSE): Remove macro.
416
417 2012-07-09  Jim Meyering  <meyering@redhat.com>
418
419         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
420         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
421
422         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
423         Bugs in both of those conspired to make the
424         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
425         _sc_search_regexp's handling of non-empty $in_files would filter
426         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
427         choice of in_files value meant there would be no match in most
428         projects, due to the presence of two or more Makefile.in files.
429         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
430         Fix a bug in how a non-empty $$in_files was processed:
431         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
432         in spite of the name, it's a regexp, not a list of file names.
433
434 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
435
436         getloadavg, getopt: fix commentary re configure.in
437         Autoconf is deprecating the name 'configure.in', so change it to
438         to the new name 'configure.ac' in a couple of places.
439         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
440         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
441         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
442         Emacs has renamed it to configure.ac, and it no longer refers
443         to these macros anyway.
444
445         timespec: mark functions with const attributes
446         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
447         Mark with _GL_ATTRIBUTE_CONST.
448
449 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
450
451         canonicalize[-lgpl]: handle "guessing" values when cross-building
452         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
453         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
454         matches "*yes" instead of just "yes".  Regression introduced in commit
455         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
456
457 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
458             Bruno Haible  <bruno@clisp.org>
459
460         canonicalize: make the right guess when cross-compiling to GNU
461         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
462         determine whether cross-compiling to glibc systems, so as to
463         include GNU/Hurd.
464
465 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
466
467         timespec-sub: avoid duplicate include
468         * lib/timespec-sub.c: Do not include <config.h> twice.
469         Reported by Juanma Barranquero.
470
471 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
472
473         bootstrap: use a more consistent error reporting scheme
474         * build-aux/bootstrap (warn, die): New.
475         Use them.
476
477 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
478
479         sys_time: allow too-wide tv_sec
480         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
481         timeval even if tv_sec is wider than time_t.  This allows
482         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
483         as without this patch gnulib replaces struct timeval
484         and OpenBSD futimes therefore has a type mismatch.
485         * doc/posix-headers/sys_time.texi: Mention this.
486
487         pthread: check for both pthread_create and pthread_join
488         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
489         alter the check so that it tests for both pthread_create and
490         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
491         Suggested by Bruno Haible and Richard Yao in
492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
493
494         parse-datetime: doc tuneup
495         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
496         spacing issues.
497
498 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
499
500         do-release-commit-and-tag: fix the previous commit
501         * build-aux/do-release-commit-and-tag: Actually the test was right,
502         but the comment and the error message were misleading.
503         Fix comment, and improve error message.
504         Perform check first, so that NEWS is not modified uselessly.
505
506         do-release-commit-and-tag: fix typo
507         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
508         _not_ start with a stub.
509
510 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
511
512         pthread: check for pthread_create, not pthread_join
513         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
514         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
515         pthread_join in libc.  I hope this removes the need for all the
516         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
518
519 2012-07-04  Jim Meyering  <meyering@redhat.com>
520
521         parse-datetime: fix failure to diagnose invalid input
522         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
523         rather than diagnosing the invalid input.  Now it reports this:
524         date: invalid date '\260'
525         * lib/parse-datetime.y (to_uchar): Define.
526         (yylex): Don't sign-extend "other" bytes.
527         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
528         Thanks to Bruno Haible for the patch to this file.
529         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
530         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
531
532 2012-07-03  Jim Meyering  <meyering@redhat.com>
533
534         bootstrap: do not require now-removed build-aux/missing
535         Now that build-aux/missing is, er, missing, bootstrap would
536         silently fail.
537         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
538         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
539         no longer part of gnulib.
540         Diagnose the failure.
541
542 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
543
544         alloca: add support for HP NonStop TNS/E native
545         * lib/alloca.in.h (alloca): Support the new host.
546         From a suggestion by Joachim Schmitz in
547         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
548
549 2012-07-02  Pádraig Brady  <P@draigBrady.com>
550
551         fsusage: remove code not needed on non GNU/Linux systems.
552
553         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
554         Don't include headers no longer needed in this case.
555         * lib/fsusage.c [STAT_STATVFS &&
556         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
557         STAT_STATFS2_FRSIZE to exclude code not used in this case.
558
559 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
560
561         fsusage: include files needed for glibc 2.6 fallback
562         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
563         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
564         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
565         Problem reported by Ludovic Courtès in
566         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
567
568         fsusage: avoid needless check on GNU/Linux
569         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
570         on GNU/Linux systems, since it can't possibly work.
571
572 2012-07-01  Bruno Haible  <bruno@clisp.org>
573
574         log: Fix an autoconf >= 2.64 warning.
575         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
576         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
577
578 2012-06-28  Bruno Haible  <bruno@clisp.org>
579
580         log10f: Fix possible configuration problem.
581         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
582         $LOGF_LIBM.
583         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
584
585 2012-06-28  Bruno Haible  <bruno@clisp.org>
586
587         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
588         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
589         not gl_cv_func_unlink_works.
590         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
591
592 2012-06-27  Eric Blake  <eblake@redhat.com>
593
594         config: drop scripts that automake says are not independent
595         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
596         * build-aux/elisp-comp: Delete.
597         * build-aux/missing: Likewise.
598         * build-aux/ylwrap: Likewise.
599         * modules/elisp-comp: Likewise.
600         * MODULES.html.sh: Drop mention of elisp-comp.
601         * NEWS: Mention this.
602
603 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
604
605         root-uid: new module
606         This is for portability to Tandem's NonStop Kernel.
607         * lib/root-uid.h, modules/root-uid: New files.
608         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
609         * lib/write-any-file.c, tests/test-sethostname2.c:
610         Include "root-uid.h".
611         * lib/euidaccess.c (euidaccess):
612         * lib/pt_chown.c (main):
613         * lib/unlinkdir.c (cannot_unlink_dir):
614         * lib/write-any-file.c (can_write_any_file):
615         * m4/mknod.m4 (gl_FUNC_MKNOD):
616         * tests/test-sethostname2.c (geteuid, main):
617         Don't assume ROOT_UID == 0.
618         * modules/euidaccess (Depends-on):
619         * modules/pt_chown (Depends-on):
620         * modules/sethostname-tests (Depends-on):
621         * modules/unlinkdir (Depends-on):
622         * modules/write-any-file (Depends-on):
623         Add root-uid.
624
625         regex: use locale-independent comparison for codeset name
626         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
627         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
628         for codeset name.
629         * lib/regex_internal.h: Do not include <strings.h>, since we
630         no longer use strcasecmp.
631         * modules/regex (Depends-on): Remove strcase.
632
633 2012-06-23  Bruno Haible  <bruno@clisp.org>
634
635         getopt-posix: No longer guarantee that option processing is resettable.
636         * doc/posix-functions/getopt.texi: Drop description of problem with
637         internal state. Fix info about mingw and msvc9.
638         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
639         option processing by getopt(). Run three test programs instead of one.
640         Simplify cross-compilation guess.
641         * NEWS: Mention the change.
642         Reported by Rich Felker <dalias@aerifal.cx>.
643
644 2012-06-26  Bruno Haible  <bruno@clisp.org>
645
646         argp, regex: Ensure strcasecmp gets declared.
647         * lib/argp-help.c: Include <strings.h>.
648         * lib/regex_internal.h: Likewise.
649         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
650
651 2012-06-24  Bruno Haible  <bruno@clisp.org>
652
653         ptsname_r: Make it consistent with ptsname on AIX.
654         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
655         implementation as for OSF/1.
656         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
657         a pty master.
658
659         ptsname_r: Make it consistent with ptsname on OSF/1.
660         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
661         OSF/1.
662
663 2012-06-24  Bruno Haible  <bruno@clisp.org>
664
665         ttyname_r: Fix result on OSF/1, Solaris.
666         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
667
668 2012-06-24  Bruno Haible  <bruno@clisp.org>
669
670         ptsname_r: Add support for Solaris.
671         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
672         Solaris.
673
674         ptsname_r: Fix test failure on native Windows.
675         * modules/ptsname_r (Depends-on): Add isatty.
676
677         ptsname_r: Fix test failures on IRIX, Solaris.
678         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
679         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
680         accordingly.
681         * lib/ptsname_r.c: Include <fcntl.h>.
682         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
683         set errno if fd is invalid.
684         * tests/test-isatty.c (main): Update comments.
685
686 2012-06-24  Bruno Haible  <bruno@clisp.org>
687
688         ptsname test: Extend test.
689         * tests/test-ptsname.c: Include <errno.h>.
690         (main): Test behaviour with invalid file descriptor.
691
692 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
693
694         time: fix obsolete comment
695         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
696         reference to HAVE_STRUCT_TIMESPEC in comment.
697
698 2012-06-23  Bruno Haible  <bruno@clisp.org>
699
700         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
702         does not handle abbreviated long options with equivalent
703         disambiguations, set gl_replace_getopt to yes.
704         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
705
706 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
707
708         time_r: fix typo that always overrode localtime_r decl
709         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
710         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
711         not in a standard include.
712
713 2012-06-22  Bruno Haible  <bruno@clisp.org>
714
715         Write "Mac OS X" instead of "MacOS X".
716         * README: Write "Mac OS X" instead of "MacOS X".
717         * build-aux/bootstrap: Likewise.
718         * build-aux/install-reloc: Likewise.
719         * lib/acl-internal.h: Likewise.
720         * lib/acl_entries.c: Likewise.
721         * lib/argp-ba.c: Likewise.
722         * lib/argp-pv.c: Likewise.
723         * lib/config.charset: Likewise.
724         * lib/copy-acl.c: Likewise.
725         * lib/csharpexec.c: Likewise.
726         * lib/euidaccess.c: Likewise.
727         * lib/fbufmode.c: Likewise.
728         * lib/fflush.c: Likewise.
729         * lib/file-has-acl.c: Likewise.
730         * lib/filemode.h: Likewise.
731         * lib/fpurge.c: Likewise.
732         * lib/freadable.c: Likewise.
733         * lib/freadahead.c: Likewise.
734         * lib/freading.c: Likewise.
735         * lib/freadptr.c: Likewise.
736         * lib/freadseek.c: Likewise.
737         * lib/fseeko.c: Likewise.
738         * lib/fseterr.c: Likewise.
739         * lib/fsusage.c: Likewise.
740         * lib/fwritable.c: Likewise.
741         * lib/fwriting.c: Likewise.
742         * lib/get-rusage-as.c: Likewise.
743         * lib/get-rusage-data.c: Likewise.
744         * lib/getdomainname.c: Likewise.
745         * lib/idpriv-drop.c: Likewise.
746         * lib/idpriv-droptemp.c: Likewise.
747         * lib/localcharset.c: Likewise.
748         * lib/locale.in.h: Likewise.
749         * lib/localename.c: Likewise.
750         * lib/mbsrtowcs-state.c: Likewise.
751         * lib/nproc.c: Likewise.
752         * lib/passfd.c: Likewise.
753         * lib/posix_openpt.c: Likewise.
754         * lib/printf-parse.c: Likewise.
755         * lib/progreloc.c: Likewise.
756         * lib/safe-read.h: Likewise.
757         * lib/safe-write.h: Likewise.
758         * lib/sched.in.h: Likewise.
759         * lib/set-mode-acl.c: Likewise.
760         * lib/signal.in.h: Likewise.
761         * lib/stdint.in.h: Likewise.
762         * lib/stdio-impl.h: Likewise.
763         * lib/stdlib.in.h: Likewise.
764         * lib/strtod.c: Likewise.
765         * lib/sys_select.in.h: Likewise.
766         * lib/tcgetsid.c: Likewise.
767         * lib/unistd.in.h: Likewise.
768         * lib/unlockpt.c: Likewise.
769         * lib/vasnprintf.c: Likewise.
770         * lib/vma-iter.c: Likewise.
771         * lib/wcsrtombs-state.c: Likewise.
772         * m4/acl.m4: Likewise.
773         * m4/acosl.m4: Likewise.
774         * m4/asinl.m4: Likewise.
775         * m4/atanl.m4: Likewise.
776         * m4/c-stack.m4: Likewise.
777         * m4/cosl.m4: Likewise.
778         * m4/expl.m4: Likewise.
779         * m4/extensions.m4: Likewise.
780         * m4/fdatasync.m4: Likewise.
781         * m4/fmal.m4: Likewise.
782         * m4/frexp.m4: Likewise.
783         * m4/frexpf.m4: Likewise.
784         * m4/frexpl.m4: Likewise.
785         * m4/fsusage.m4: Likewise.
786         * m4/getdomainname.m4: Likewise.
787         * m4/getloadavg.m4: Likewise.
788         * m4/getopt.m4: Likewise.
789         * m4/gettext.m4: Likewise.
790         * m4/gnulib-common.m4: Likewise.
791         * m4/intdiv0.m4: Likewise.
792         * m4/intlmacosx.m4: Likewise.
793         * m4/largefile.m4: Likewise.
794         * m4/ldexpl.m4: Likewise.
795         * m4/link-follow.m4: Likewise.
796         * m4/locale-ar.m4: Likewise.
797         * m4/locale-fr.m4: Likewise.
798         * m4/locale-ja.m4: Likewise.
799         * m4/locale-tr.m4: Likewise.
800         * m4/locale-zh.m4: Likewise.
801         * m4/locale_h.m4: Likewise.
802         * m4/lock.m4: Likewise.
803         * m4/logl.m4: Likewise.
804         * m4/mathfunc.m4: Likewise.
805         * m4/minus-zero.m4: Likewise.
806         * m4/mktime.m4: Likewise.
807         * m4/mmap-anon.m4: Likewise.
808         * m4/multiarch.m4: Likewise.
809         * m4/nanosleep.m4: Likewise.
810         * m4/nocrash.m4: Likewise.
811         * m4/poll.m4: Likewise.
812         * m4/printf-frexpl.m4: Likewise.
813         * m4/printf.m4: Likewise.
814         * m4/signbit.m4: Likewise.
815         * m4/sinl.m4: Likewise.
816         * m4/sqrtl.m4: Likewise.
817         * m4/strerror_r.m4: Likewise.
818         * m4/tanl.m4: Likewise.
819         * m4/threadlib.m4: Likewise.
820         * m4/ttyname_r.m4: Likewise.
821         * m4/unlink.m4: Likewise.
822         * m4/visibility.m4: Likewise.
823         * m4/wcwidth.m4: Likewise.
824         * tests/minus-zero.h: Likewise.
825         * tests/test-alloca-opt.c: Likewise.
826         * tests/test-copy-acl.sh: Likewise.
827         * tests/test-copy-file.sh: Likewise.
828         * tests/test-fdatasync.c: Likewise.
829         * tests/test-file-has-acl.sh: Likewise.
830         * tests/test-flock.c: Likewise.
831         * tests/test-fsync.c: Likewise.
832         * tests/test-localename.c: Likewise.
833         * tests/test-malloca.c: Likewise.
834         * tests/test-nonblocking-pipe.h: Likewise.
835         * tests/test-nonblocking-socket.h: Likewise.
836         * tests/test-openpty.c: Likewise.
837         * tests/test-posix_openpt.c: Likewise.
838         * tests/test-ptsname.c: Likewise.
839         * tests/test-ptsname_r.c: Likewise.
840         * tests/test-sameacls.c: Likewise.
841         * tests/test-select.h: Likewise.
842         * tests/test-set-mode-acl.sh: Likewise.
843         * tests/test-snprintf-posix.h: Likewise.
844         * tests/test-sprintf-posix.h: Likewise.
845         * tests/test-strtod.c: Likewise.
846         * tests/test-time.c: Likewise.
847         * tests/test-vasnprintf-posix.c: Likewise.
848         * tests/test-vasprintf-posix.c: Likewise.
849         * doc/acl-resources.txt: Likewise.
850         * doc/**/*.texi: Likewise.
851         Reported by Max Horn <max@quendi.de>.
852
853 2012-06-22  Bruno Haible  <bruno@clisp.org>
854
855         grantpt: Relax requirement regarding invalid file descriptors.
856         * lib/grantpt.c: Don't include <fcntl.h>.
857         (grantpt): Don't verify the validity of the file descriptor.
858         * modules/grantpt (Depends-on): Remove fcntl-h.
859         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
860         file descriptors.
861         * doc/posix-functions/grantpt.texi: Document more platforms on which
862         grantpt succeeds for invalid file descriptors.
863         Reported by Rich Felker <dalias@aerifal.cx>.
864
865 2012-06-22  Bruno Haible  <bruno@clisp.org>
866
867         fbufmode test: Don't test unportable behaviour.
868         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
869         (main): Invoke it three times.
870         Reported by Szabolcs Nagy <nsz@port70.net>
871         and Rich Felker <dalias@aerifal.cx>.
872
873 2012-06-21  Bruno Haible  <bruno@clisp.org>
874
875         gnulib-tool: Refactor inctests variable.
876         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
877         (func_modules_transitive_closure,
878         func_modules_transitive_closure_separately,
879         func_import, func_create_testdir): Update.
880
881         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
882         * gnulib-tool: Accept option --without-tests.
883         (func_usage): Document --without-tests option. Rearrange.
884         (inctests): Normalize according to the mode.
885         * NEWS: Mention the change.
886         Suggested by Simon Josefsson.
887
888 2012-06-21  Bruce Korb  <bkorb@gnu.org>
889
890         parse-duration test: Avoid spurious output.
891         * tests/test-parse-duration.sh: Reindent with leading tabs.
892
893 2012-06-21  Jim Meyering  <meyering@redhat.com>
894
895         maint: disable the strncpy prohibition
896         * cfg.mk: Do not prohibit strncpy here.
897
898 2012-06-21  Bruno Haible  <bruno@clisp.org>
899
900         nonblocking: Avoid compilation error on mingw64.
901         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
902         fscanf.
903         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
904         * modules/vfscanf (configure.ac): Likewise.
905         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
906         definition only if stdio.h has prepared it.
907         Reported by Daniel P. Berrange <berrange@redhat.com>.
908
909 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
910
911         gnulib-tool: Use readlink if it is available.
912         * gnulib-tool (func_readlink): Choose function more appropriately.
913
914 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
915
916         posixtm-tests: port to buggy compiler
917         Problem reported by Simon Josefsson in
918         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
919         * modules/posixtm-tests (Depends-on): Add stdint.
920         * tests/test-posixtm.c (struct posixtm_test.t_expected):
921         Now of type int_least64_t, not int64_t, both because that's
922         what INT64_C returns and because int_least64_t works even
923         on 72-bit hosts.
924         (T): Use INT64_C on constants outside the traditional int range,
925         to work around compiler bug noted by Simon.
926
927         mktime: fix integer overflow in 'configure'-time test
928         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
929         after integer overflow.  Problem reported by Rich Felker in
930         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
931         Also, don't look for further instances of a bug if we've already
932         found one instance; this helps 'configure' run faster.
933
934 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
935
936         tmpfile, clean-temp: Fix invocation of GetVersionEx.
937         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
938         GetVersionEx correctly.
939         * lib/clean-temp.c (supports_delete_on_close): Likewise.
940
941 2012-06-20  Bruno Haible  <bruno@clisp.org>
942
943         fdopen: Allow implementations that don't reject invalid fd arguments.
944         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
945         succeeds.
946         Reported by Rich Felker <dalias@aerifal.cx>.
947
948 2012-06-20  Simon Josefsson  <simon@josefsson.org>
949
950         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
951         bring in LIBINTL.
952
953 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
954
955         init.sh: do not rely on autoupated PWD
956         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
957         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
958         Although Nelson's bug was not necessarily fixed by this patch,
959         it seems wise to make the change for safety.
960         * tests/init.sh (path_prepend_): Do not rely on PWD updating
961         automagically after 'cd'; this is not reliable on older shells.
962         (setup_): Fail if we cannot cd to temporary directory.
963
964 2012-06-19  Bruno Haible  <bruno@clisp.org>
965
966         stat, fstat: Avoid warnings on mingw64.
967         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
968         redefining.
969         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
970         Reported by Daniel P. Berrange <berrange@redhat.com>.
971
972 2012-06-19  Bruno Haible  <bruno@clisp.org>
973
974         stdioext: Add support for musl libc.
975
976         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
977         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
978
979         * m4/fseterr.m4: New file.
980         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
981         function exists.
982         * modules/fseterr (Files): Add m4/fseterr.m4.
983         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
984         __fseterr does not exist.
985         (Makefile.am): Remove fseterr.c from lib_SOURCES.
986
987         * lib/freadable.h: Update comment.
988
989         * lib/fwritable.h: Update comment.
990
991         * lib/freading.h: Update comment.
992
993         * lib/fwriting.h: Update comment.
994
995         * m4/freadahead.m4: New file.
996         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
997         that function exists.
998         * modules/freadahead (Files): Add m4/freadahead.m4.
999         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1000         __freadahead does not exist.
1001         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1002
1003         * m4/freadptr.m4: New file.
1004         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1005         function exists.
1006         * modules/freadptr (Files): Add m4/freadptr.m4.
1007         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1008         __freadptr does not exist.
1009         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1010
1011         * m4/freadseek.m4: New file.
1012         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1013         exists.
1014         * modules/freadseek (Files): Add m4/freadseek.m4.
1015         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1016
1017         * lib/fpurge.c (fpurge): Update comment.
1018
1019         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1020
1021 2012-06-19  Bruno Haible  <bruno@clisp.org>
1022
1023         *printf-posix: Put more info into config.log.
1024         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1025         exit code into config.log.
1026
1027 2012-06-19  Bruno Haible  <bruno@clisp.org>
1028
1029         getopt-gnu: Fix exit code overflow in autoconf test.
1030         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1031         to keep them below < 128.
1032
1033 2012-06-17  Jim Meyering  <meyering@redhat.com>
1034
1035         maint.mk: fix typo in code to derive GPG key at release time
1036         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1037
1038 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1039
1040         regex: avoid warning when pointers are not long
1041         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1042         and uintptr_t, not long, for portability to hosts where pointers and
1043         long have different sizes.  Issue noted by Daniel P. Berrange in
1044         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1045         and fix suggested by Bruno Haible in
1046         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1047
1048 2012-06-17  Bruno Haible  <bruno@clisp.org>
1049
1050         dummy: Relicense into the public domain.
1051         * modules/dummy (License): Set to "public domain".
1052         Suggested by Reuben Thomas.
1053
1054 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1055
1056         announce-gen: VPATH issues
1057         * build-aux/announce-gen (--srcdir): New option, used to trim the
1058         $srcdir part of the path from $builddir to NEWS.
1059         * top/maint.mk (announcement): Adjust.
1060
1061 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1062
1063         gnu-web-doc-update: VPATH builds
1064         * build-aux/gnu-web-doc-update (--builddir): New option.
1065         Revamp the handling of options.
1066         Prefer $(...) to `...`.
1067         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1068         the template, and it is GNU mktemp specific.
1069         Prefer set -e to long series of &&.
1070         Restore the initial git branch, not "master".
1071         Properly initialize submodules (don't rely only on bootstrap).
1072         Do not reconfigure blindly, use config.status.
1073         * top/README-release: Update instructions for gnu-web-doc-update.
1074
1075 2012-06-11  Jim Meyering  <meyering@redhat.com>
1076
1077         maint.mk: revert most of the previous change re "all these"
1078         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1079         For rationale, see the discussion at
1080         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1081
1082 2012-06-10  Karl Berry  <karl@gnu.org>
1083
1084         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1085
1086         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1087
1088 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1089
1090         parse-duration: Relicense under LGPLv2+.
1091         * modules/parse-duration (License): Change to LGPLv2+.
1092
1093 2012-06-10  Jim Meyering  <meyering@redhat.com>
1094
1095         maint.mk: prohibit common grammar error: "all these"
1096         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1097         the list of prohibited word sequences.  It should be "all of these".
1098         * lib/tempname.c (__gen_tempname): Fix one of them.
1099
1100 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1101
1102         do-release-commit-and-tag: support VPATH builds
1103         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1104         (noteworthy): Defined earlier to factor its value.
1105         (noteworthy_stub): New.
1106         Use it to factor.
1107         (help_version): Split into...
1108         (help, version): these.
1109         Adjust the option processing part.
1110         Support "--option=value" in addition to "--option value".
1111         (builddir): New.
1112         (--builddir): New option.
1113         * top/README-release: Document this.
1114         Reword slightly so that the reader cannot understand that he
1115         has to do these steps before calling do-release-commit-and-tag.
1116
1117 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1118
1119         readme-release: also require announce-gen and maintainer-makefile
1120         * modules/readme-release (Depends-on): here.
1121         * modules/announce-gen, modules/do-release-commit-and-tag,
1122         modules/gnu-web-doc-update, modules/maintainer-makefile
1123         (Description): Point to readme-release.
1124
1125 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1126
1127         maint.mk: fix VPATH issues.
1128         * top/maint.mk (news-check): GNU Make understand $< very well.
1129         (release-prep): NEWS is in $(srcdir).
1130
1131 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1132
1133         readme-release: require the promoted modules.
1134         * modules/readme-release (Depends-on): Add
1135         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1136         in this text.
1137
1138 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1139             Bruno Haible  <bruno@clisp.org>
1140
1141         error, strerror-override: Support mingw64 from Fedora 17.
1142         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1143         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1144         EINPROGRESS.
1145         * lib/strerror-override.h (strerror_override): Test it.
1146         * lib/strerror-override.c (strerror_override): Likewise.
1147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1148
1149 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1150             Bruno Haible  <bruno@clisp.org>
1151
1152         error, strerror-override: Support mingw64 from Fedora 17.
1153         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1154         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1155         * lib/strerror-override.h (strerror_override): Test it.
1156         * lib/strerror-override.c (strerror_override): Likewise.
1157
1158 2012-06-03  Bruno Haible  <bruno@clisp.org>
1159
1160         error, strerror-override: Support new errno values from POSIX:2008.
1161         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1162         ENOTRECOVERABLE.
1163         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1164         platforms.
1165         * lib/strerror-override.c (strerror_override): Conditionalize the
1166         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1167         * lib/strerror-override.h (strerror_override): Declare also if
1168         GNULIB_defined_EOWNERDEAD is defined.
1169         * tests/test-errno.c (e130, e131): New variables.
1170         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1171         ENOTRECOVERABLE.
1172         Reported by Paolo Bonzini.
1173
1174 2012-05-31  Jim Meyering  <meyering@redhat.com>
1175
1176         savewd: add missing dependency on sys_wait module
1177         * modules/savewd (Depends-on): Add sys_wait, needed at least
1178         for MSVC.  Report and suggested change by Michael Goffioul.
1179
1180 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1181
1182         system-quote-tests: port to CentOS 5
1183         Problem reported by Tom G. Christensen in
1184         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1185         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1186
1187 2012-05-29  Jim Meyering  <meyering@redhat.com>
1188
1189         maint: fix typos in comments and ChangeLog
1190         Culprits identified and fixed mostly automatically using these commands:
1191         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1192         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1193         using http://github.com/lyda/misspell-check
1194         * ChangeLog: Fix typos.
1195         * doc/solaris-versions: Likewise.
1196         * lib/regexec.c (re_search_stub): Likewise.
1197         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1198
1199 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1200
1201         manywarnings: remove duplicate -Wmultichar entry
1202         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1203         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1204         so keep the entry marked as documented.
1205
1206 2012-05-27  Karl Berry  <karl@gnu.org>
1207
1208         * config/srclist.txt (mktime.c): remove last libc sync,
1209         perhaps just temporarily.
1210
1211 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1212
1213         regex: don't assume uint64_t or uint32_t
1214         * lib/regcomp.c (init_word_char): Don't assume that the types
1215         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1216         them, and on some 32-bit compilers there is no uint64_t.
1217         Problem reported by Gianluigi Tiesi in
1218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1219
1220 2012-05-25  Jim Meyering  <meyering@redhat.com>
1221
1222         maint.mk: add strncpy-prohibiting syntax-check rule
1223         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1224
1225 2012-05-24  Jim Meyering  <meyering@redhat.com>
1226
1227         maint.mk: compute $(gpg_key_ID) more portably
1228         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1229         That use of sed is not portable to some fringe systems.
1230         Reported by Paul Eggert in
1231         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1232
1233 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1234
1235         mktime: sync from glibc
1236         * config/srclist.txt: Uncomment mktime.c.
1237         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1238         First, indent with tabs, since glibc uses tabs and doesn't want to
1239         change and we'd rather be identical to glibc.  Also, two small
1240         coding changes:
1241         (isdst_differ): Use &&, not &, as && is the usual style.
1242         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1243         for clarity.
1244
1245 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1246
1247         announce-gen: du -h is more portable than du --human
1248         * build-aux/announce-gen (sizes): Invoke du with -h instead
1249         of --human.  Accept leading white space in its output.
1250
1251 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1252
1253         announce-gen: Improve diagnostics.
1254         * build-aux/announce-gen: When parsing command line options,
1255         prefer "announce-gen: option --release-type requires an argument"
1256         to "Option release-type requires an argument".
1257
1258 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1259
1260         maint.mk: gpg_key_ID: use sed more portably
1261         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1262         the closing brace.
1263         (refresh-po): Fuse two sed invocations into one.
1264
1265 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1266
1267         gitlog-to-changelog: support the log message format used in Bison.
1268         * build-aux/gitlog-to-changelog: Support --strip-tab and
1269         --strip-cherry-picked.
1270
1271 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1272
1273         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1274         the rest of the current time slice to another thread in the current
1275         process. So if the thread that feeds the file decscriptor we're
1276         polling is not in the current process, we get busy-waiting.
1277         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1278         Patch from Theodore Leblond.
1279         * lib/select.c: Split polling out of the loop that sets the output
1280         fd_sets.  Check for zero result and loop if the wait timeout is
1281         infinite.
1282
1283 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1284
1285         select: Fix build error on IRIX 6.5.
1286         * lib/select.c: Include stddef.h for NULL.
1287
1288 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1289
1290         gc: fix libgcrypt detection on older machines.
1291         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1292         copyright years because the file has been distributed every year
1293         since it was created.
1294
1295 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1296
1297         crypto: fix bug in large buffer handling
1298         Problem reported by Serge Belyshev for glibc in
1299         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1300         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1301         * lib/md4.c (md4_process_block):
1302         * lib/md5.c (md5_process_block):
1303         * lib/sha1.c (sha1_process_block):
1304         * lib/sha256.c (sha256_process_block):
1305         Don't assume the buffer length is less than 2**32.
1306         * lib/sha512.c (sha512_process_block): Likewise.
1307         Here, the bug is present only in the rare case where the host does
1308         not support uint64_t or where size_t is wider than 64 bits.
1309         Use u64size to work around the problems.
1310         * lib/u64.h (u64size): New macro.
1311
1312 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1313
1314         fsusage: fix block size returned on older Linux 2.6
1315
1316         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1317         which is available since Linux 2.6.
1318         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1319         when the member is available so it can be used as a fallback.
1320         * doc/posix-functions/statvfs.texi: Mention the hang issue
1321         on Linux < 2.6.36.
1322
1323 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         bootstrap: suppress stderr chatter
1326         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1327         Omit unnecessary chatter to stderr.  The main program chatter
1328         was there only inadvertantly.
1329
1330         bootstrap: .gitignore files created by autopoint, libtool
1331         I ran into this problem when bootstrapping the latest diffutils.
1332         After './bootstrap', 'git status' reported lots of untracked files
1333         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1334         autopoint and do not need to be version-controlled.
1335         * build-aux/bootstrap: Put into .gitignore the files that
1336         autopoint and libtool create, by keeping track of files that exist
1337         after but not before these programs are run.
1338         (version_controlled_file): Move up.  2nd arg is now full file
1339         name, not base name; this is more convenient.  Put CVS at the end,
1340         as it's now somewhat deprecated.
1341
1342 2012-05-14  Jim Meyering  <meyering@redhat.com>
1343
1344         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1345         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1346         definition.  Reported by Bruno Haible.
1347
1348 2012-05-13  Bruno Haible  <bruno@clisp.org>
1349             Paul Eggert  <eggert@cs.ucla.edu>
1350
1351         binary-io: Define set_binary_mode function.
1352         * lib/binary-io.h (set_binary_mode): New function.
1353         (SET_BINARY): Define in terms of set_binary_mode.
1354         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1355         * tests/test-binary-io.c (main): Accept an argument, and test either
1356         set_binary_mode or SET_BINARY depending on the argument.
1357         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1358         argument. Clean up also t-bin-out0.tmp.
1359
1360 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1361
1362         bootstrap: take advantage of POSIX shell features
1363
1364         The 'bootstrap' script offered by Gnulib script already uses POSIX
1365         shell features (like $((...)) arithmetic expansions) that are not
1366         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1367         means that bootstrap must already be run using a proper POSIX shell,
1368         which will thus provide more features, like ${var#pattern} parameter
1369         expansion or inversion of a command exit status with '!'.  We can
1370         thus use these features to improve the clarity and the performances
1371         of the bootstrap script.
1372
1373         Suggested by Eric Blake.
1374
1375         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1376         of sed/expr plus command substitutions, to save some forks.  While
1377         we are at it, prefer the POSIX $(...) form of command substitution,
1378         rather than the legacy form `...` (since the former is visually
1379         clearer and interacts better with quoting), and prefer the idiom:
1380           "if ! CMD; then ACTION ..."
1381         over the idiom:
1382           "if CMD; then :; else ACTION ..."
1383         which was required by legacy Bourne shells not supporting '!'.
1384
1385 2012-05-12  Bruno Haible  <bruno@clisp.org>
1386
1387         system-quote: Add more comments.
1388         * lib/system-quote.h: Add more comments about wilcards and limitations.
1389         Suggested by Eli Zaretskii <eliz@gnu.org>.
1390
1391         sh-quote, system-quote: Add comments about wildcards.
1392         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1393         * lib/system-quote.h: Likewise.
1394         Reported by Eli Zaretskii <eliz@gnu.org>.
1395
1396 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1397
1398         fsusage: check for GNU/Linux statvfs problem dynamically
1399         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1400         Define STAT_STATFS2_BSIZE too, since in this case the code now
1401         checks dynamically whether statvfs is reliable, falling back on
1402         Linux-style statfs otherwise.
1403         (statvfs_works): New function, for dynamically testing statvfs.
1404         (get_fs_usage) [STAT_STATVFS]: Use it.
1405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1406         statvfs on GNU/Linux hosts, since it's now done dynamically.
1407
1408 2012-05-10  Bruno Haible  <bruno@clisp.org>
1409
1410         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1411         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1412         '?' character.
1413         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1414         * tests/test-system-quote-main.c (check_all): Check also strings like
1415         "??????????".
1416         Reported by Eli Zaretskii <eliz@gnu.org>.
1417
1418 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         _Noreturn: port config.h to gcc -Wundef
1421         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1422         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1424
1425 2012-05-10  Bruno Haible  <bruno@clisp.org>
1426
1427         system-quote: Refactor.
1428         * lib/system-quote.h (system_quote_copy): Fix comment.
1429         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1430         New functions, extracted from system_quote_copy.
1431         (system_quote_length, system_quote_copy): Use these functions.
1432         Reported by Paul Eggert.
1433
1434 2012-05-08  Bruno Haible  <bruno@clisp.org>
1435
1436         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1437         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1438
1439 2012-05-08  Bruno Haible  <bruno@clisp.org>
1440
1441         Tests for module 'system-quote'.
1442         * modules/system-quote-tests: New file.
1443         * tests/test-system-quote.sh: New file.
1444         * tests/test-system-quote-main.c: New file.
1445         * tests/test-system-quote-child.c: New file.
1446
1447         New module 'system-quote'.
1448         * lib/system-quote.h: New file.
1449         * lib/system-quote.c: New file.
1450         * modules/system-quote: New file.
1451
1452 2012-05-08  Bruno Haible  <bruno@clisp.org>
1453
1454         sh-quote: Make C++ safe and allow multiple inclusion.
1455         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1456         declarations in extern "C".
1457
1458 2012-05-08  Bruno Haible  <bruno@clisp.org>
1459
1460         sh-quote tests: Make tests stricter.
1461         * tests/test-sh-quote.c (check_one): Check the return value of
1462         shell_quote_copy.
1463         (main): Check a string with a CR character. Check a string that
1464         contains UCHAR_MAX.
1465
1466 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1467
1468         warnings.m4: provide a means to specify the program to compile.
1469         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1470         (gl_WARN_ADD): here.
1471         Use gl_AS_VAR_APPEND.
1472         Support an argument to specify the program to compile.
1473         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1474         AC_SUBST the WARN_CFLAGS when they are used.
1475         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1476         leave this to gl_WARN_ADD.
1477
1478 2012-05-08  Eric Blake  <eblake@redhat.com>
1479
1480         doc: recommendations on gettext version
1481         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1482         choice between versions.
1483         * DEPENDENCIES (gettext): Cover both approaches.
1484
1485 2012-05-08  Jim Meyering  <meyering@redhat.com>
1486
1487         init.sh: explain why EXEEXT support uses aliases rather than functions
1488         * tests/init.sh: Add a comment.
1489
1490         init.sh: don't let bash aliases interfere with tests
1491         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1492         is bash.  This avoids problems for those who alias standard commands to
1493         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1494         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1495
1496 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1497
1498         stdint: be more consistent with glibc, SunOS libc
1499         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1500         (gl_int_fast16_t, gl_uint_fast16_t)
1501         (gl_int_fast32_t, gl_uint_fast32_t)
1502         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1503         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1504         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1505         Be consistent with glibc by default, and with SunOS 5.10 and later
1506         if __sun is defined.  This lessens the likelihood of clashes if
1507         code compiled for older hosts is combined with code compiled for
1508         newer ones.  Problem reported by Niels Möller in
1509         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1510
1511 2012-05-07  Eric Blake  <eblake@redhat.com>
1512
1513         isatty: relax license to LGPLv2+
1514         * modules/isatty (License): Relax license.
1515
1516 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1517
1518         stat-size: comment fix
1519         * lib/stat-size.h: Remove obsolete comment about indenting.
1520
1521 2012-05-06  Bruno Haible  <bruno@clisp.org>
1522
1523         Tests for module 'sh-quote'.
1524         * modules/sh-quote-tests: New file.
1525         * tests/test-sh-quote.c: New file.
1526
1527 2012-05-06  Bruno Haible  <bruno@clisp.org>
1528
1529         sh-quote: Improve shell_quote_argv's signature.
1530         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1531         * lib/sh-quote.c (shell_quote_argv): Likewise.
1532
1533 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1534
1535         stdint: document issues with int_fast8_t etc.
1536         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1537         stdint.h substitutes may define these types differently.  See
1538         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1539
1540 2012-05-05  Bruno Haible  <bruno@clisp.org>
1541
1542         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1544         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1545         or 'guessing no (mishandles large arguments)'.
1546
1547 2012-05-05  Bruno Haible  <bruno@clisp.org>
1548
1549         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1550         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1551         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1552         set gl_cv_func_link_follows_symlink to "guessing no".
1553
1554 2012-05-05  Bruno Haible  <bruno@clisp.org>
1555
1556         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1557         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1558         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1559         "guessing no".
1560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1561
1562 2012-05-05  Bruno Haible  <bruno@clisp.org>
1563
1564         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1565         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1566         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1567         set gl_cv_struct_dirent_d_ino to "guessing yes".
1568
1569 2012-05-05  Bruno Haible  <bruno@clisp.org>
1570
1571         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1572         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1573         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1574         "guessing yes".
1575
1576 2012-05-05  Bruno Haible  <bruno@clisp.org>
1577
1578         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1579         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1580         compiling to a glibc system, set gl_cv_func_signbit and
1581         gl_cv_func_signbit_gcc to "guessing yes".
1582
1583 2012-05-05  Bruno Haible  <bruno@clisp.org>
1584
1585         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1586         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1587         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1588         to "guessing yes".
1589         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1590         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1591
1592 2012-05-05  Bruno Haible  <bruno@clisp.org>
1593
1594         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1595         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1596         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1597         gl_cv_func_realpath_works to "guessing yes".
1598
1599 2012-05-05  Bruno Haible  <bruno@clisp.org>
1600
1601         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1602         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1603         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1604
1605 2012-05-04  Bruno Haible  <bruno@clisp.org>
1606
1607         Tweak last commit.
1608         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1609         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1610
1611 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1612
1613         unistd_h: make it easier to avoid sys_types_h
1614         This is useful for Emacs, which has its own method of porting to
1615         Windows, and which therefore does not need the sys_types_h module.
1616         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1617         code moved here from gl_SYS_TYPES_H.
1618         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1619         using the code directly.
1620         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1621         gl_SYS_TYPES_H.
1622         * modules/sys_types (Files):
1623         * modules/unistd (Files): Add m4/off_t.m4.
1624
1625 2012-05-03  Bruno Haible  <bruno@clisp.org>
1626
1627         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1628         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1629         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1630         "guessing yes" or "guessing no".
1631         (gl_FUNC_LSTAT): Update.
1632         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1633         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1634         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1635
1636 2012-05-03  Bruno Haible  <bruno@clisp.org>
1637
1638         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1639         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1640         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1641         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1642         cross-compiling, choose the first alternative on glibc systems.
1643         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1644
1645 2012-05-03  Bruno Haible  <bruno@clisp.org>
1646
1647         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1648         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1649         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1650
1651 2012-05-03  Bruno Haible  <bruno@clisp.org>
1652
1653         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1654         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1655
1656 2012-05-03  Bruno Haible  <bruno@clisp.org>
1657
1658         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1659         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1660         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1661         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1662         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1663         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1664         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1665         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1666         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1667         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1668         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1669         gl_cv_func_chown_ctime_works to "guessing yes".
1670         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1671         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1672         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1673         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1674         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1675         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1676         compiling to glibc systems, set gl_cv_func_open_directory_works to
1677         "guessing yes".
1678         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1679         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1680         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1681         "guessing yes".
1682         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1683         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1684         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1685         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1686         "guessing yes".
1687         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1688         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1689         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1690         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1691         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1692         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1693         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1694         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1695         "guessing yes".
1696         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1697         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1698         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1699         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1700         "guessing yes".
1701         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1702         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1703         "guessing yes".
1704         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1705         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1706         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1707         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1708         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1709         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1710         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1711         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1712         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1713         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1714         "guessing yes".
1715         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1716         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1717         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1718         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1719         "guessing yes".
1720         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1721         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1722         "guessing yes".
1723         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1724         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1725         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1726         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1727         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1728         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1729         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1730         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1731         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1732         "guessing yes".
1733         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1734         compiling to glibc systems, set gl_cv_func_mknod_works to
1735         "guessing yes".
1736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1737         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1738         "guessing yes".
1739         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1740         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1741         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1742         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1743         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1744         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1745         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1746         compiling to glibc systems, set gl_cv_func_svid_putenv to
1747         "guessing yes".
1748         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1749         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1750         "guessing yes".
1751         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1752         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1753         "guessing yes".
1754         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1755         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1756         to "guessing yes".
1757         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1758         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1759         to "guessing yes".
1760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1761         compiling to glibc systems, set gl_cv_func_rmdir_works to
1762         "guessing yes".
1763         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1764         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1765         gl_cv_func_unlink_parent_fails to "guessing yes".
1766         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1767         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1768         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1769         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1770         gl_cv_func_rename_dest_works to "guessing yes".
1771         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1772         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1773         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1774         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1775         "guessing yes".
1776         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1777         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1778         "guessing yes".
1779         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1780         compiling to glibc systems, set gl_cv_func_setenv_works to
1781         "guessing yes".
1782         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1783         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1784         "guessing yes".
1785         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1786         compiling to glibc systems, set gl_cv_func_sleep_works to
1787         "guessing yes".
1788         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1789         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1790         "guessing yes".
1791         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1792         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1793         "guessing yes".
1794         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1795         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1796         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1797         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1798         "guessing yes".
1799         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1800         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1801         "guessing yes".
1802         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1803         compiling to glibc systems, set gl_cv_func_usleep_works to
1804         "guessing yes".
1805         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1806         compiling to glibc systems, set gl_cv_func_futimesat_works to
1807         "guessing yes".
1808
1809 2012-05-03  Bruno Haible  <bruno@clisp.org>
1810
1811         Say "guessing yes" or "guessing no" when cross-compiling.
1812         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1813         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1814         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1815         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1816         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1817         am_cv_func_working_getline to "guessing yes" or "guessing no".
1818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1819         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1820         (gl_FUNC_MEMMEM): When cross-compiling, set
1821         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1823         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1825         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1826         "guessing no".
1827         (gl_FUNC_STRCASESTR): When cross-compiling, set
1828         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1829         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1830         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1831         (gl_FUNC_STRSTR): When cross-compiling, set
1832         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1833         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1834         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1835         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1836         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1837
1838 2012-05-01  Bruno Haible  <bruno@clisp.org>
1839
1840         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1842         * build-aux/reloc-ldflags: Likewise.
1843         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1844
1845 2012-05-01  Bruno Haible  <bruno@clisp.org>
1846
1847         gnulib-tool: Remove transitional code.
1848         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1849         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1850
1851 2012-05-01  Bruno Haible  <bruno@clisp.org>
1852
1853         getcwd: Fix misindentation.
1854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1855
1856 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1857
1858         exclude: process exclude and include directives in order
1859         This restores the pre-2009 behavior, and is part of a fix of a
1860         grep bug reported by Quentin Arce in
1861         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1862         * lib/exclude.c (struct exclude): Remove 'tail' member.
1863         (new_exclude_segment): Prepend the new segment instead of appending.
1864         Return void, since that's now more convenient.
1865         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1866         (file_name_matches): Renamed from excluded_file_name_p.
1867         (file_pattern_matches, file_name_matches):
1868         Return true if the pattern matches, not if it excludes.
1869         All callers changed.
1870         (excluded_file_name): Process the list in reverse order;
1871         since the list is now reversed this restores the pre-2009 behavior.
1872         (add_exclude): Adjust to new reversed-order list.  Use local var
1873         rather than macro, for clarity.
1874         * tests/test-exclude7.sh: Adjust to corrected behavior.
1875
1876         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1877         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1878         it's not possible here.  Handle the case of \ at end of pattern
1879         without dumping core.
1880         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1881
1882         _Noreturn: future-proof non-GNU and non-MSVC compilers
1883         * build-aux/snippet/_Noreturn.h (_Noreturn):
1884         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1885         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1886         C11 or later.  This is more likely to work with random future C
1887         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1888         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1889
1890         exclude: handle wildcards with FNM_EXTMATCH
1891         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1892         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1893         comment that "has wildcards" really means "has or may have
1894         wildcards".  Simplify by avoiding the need to call strcspn.
1895
1896 2012-04-29  Bruno Haible  <bruno@clisp.org>
1897
1898         gnulib-tool: Fix list of authors.
1899         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1900
1901 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1902
1903         bootstrap: support Automake-NG in $buildreq
1904         * bootstrap (check_versions): Handle automake and aclocal from
1905         Automake-NG specially.  They can be specified as respectively
1906         the "automake-ng" and "aclocal-ng" requirements.
1907
1908 2012-04-25  Eric Blake  <eblake@redhat.com>
1909
1910         bootstrap: only force latest Makefile.in.in for gettext module
1911         * build-aux/bootstrap (with_gettext): Only install latest
1912         Makefile.in.in for projects requesting bleeding edge gettext.
1913
1914 2012-04-22  Bruno Haible  <bruno@clisp.org>
1915
1916         doc: Mention reason for replacement on glibc/Linux systems.
1917         * doc/posix-functions/dprintf.texi: Mention the problem with special
1918         'long double' values.
1919         * doc/posix-functions/fprintf.texi: Likewise.
1920         * doc/posix-functions/printf.texi: Likewise.
1921         * doc/posix-functions/snprintf.texi: Likewise.
1922         * doc/posix-functions/sprintf.texi: Likewise.
1923         * doc/posix-functions/vdprintf.texi: Likewise.
1924         * doc/posix-functions/vfprintf.texi: Likewise.
1925         * doc/posix-functions/vprintf.texi: Likewise.
1926         * doc/posix-functions/vsnprintf.texi: Likewise.
1927         * doc/posix-functions/vsprintf.texi: Likewise.
1928         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1929         platforms with F_DUPFD_CLOEXEC problems.
1930         * doc/posix-functions/glob.texi: Mention which platforms are affected
1931         by the problem with symbolic links.
1932         * doc/posix-functions/linkat.texi: Mention the problem with
1933         AT_SYMLINK_FOLLOW on Linux.
1934
1935 2012-04-22  Bruno Haible  <bruno@clisp.org>
1936
1937         pwrite: Don't replace on all platforms.
1938         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1939
1940 2012-04-22  Bruno Haible  <bruno@clisp.org>
1941
1942         rint* tests: Avoid gcc warnings.
1943         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1944         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1945         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1946
1947 2012-04-21  Bruno Haible  <bruno@clisp.org>
1948
1949         users.txt: Update.
1950         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1951         switched from CVS to git, bzr, or svn.
1952
1953 2012-04-21  Bruno Haible  <bruno@clisp.org>
1954
1955         Large File Support for native Windows platforms.
1956
1957         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1958         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1959
1960         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1961         type.
1962         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1963         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1964         * doc/posix-headers/sys_types.texi: Mention the effect of the
1965         'largefile' module.
1966
1967         * lib/fcntl.in.h: Add comments about off_t.
1968         * modules/fcntl-h (Depends-on): Add sys_types.
1969
1970         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1971         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1972         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1973         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1974         * modules/unistd (Depends-on): Add sys_types.
1975         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1976
1977         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1978         instead of lseek.
1979         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1980         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1981         * modules/lseek (Depends-on): Add sys_types.
1982
1983         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1984         msvc-nothrow.h.
1985         (SetFileSize): New function.
1986         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1988         if Large File Support is requested.
1989         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1990         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1991
1992         * lib/stdio.in.h: Add comments about off_t.
1993         * modules/stdio (Depends-on): Add sys_types.
1994
1995         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1996         instead of ftello.
1997         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1998         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1999         (gl_PREREQ_FTELLO): New macro.
2000         * modules/ftello (Depends-on): Add sys_types.
2001         (configure.ac): Incoke gl_PREREQ_FTELLO.
2002
2003         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2004         instead of fseeko.
2005         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2006         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2007         (gl_PREREQ_FSEEKO): New macro.
2008         * modules/fseeko (Depends-on): Add sys_types.
2009         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2010
2011         * lib/sys_stat.in.h: Add comments about off_t.
2012         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2013         64-bit integer for st_size in 'struct stat'.
2014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2015         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2016         * modules/sys_stat (Depends-on): Add sys_types.
2017         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2018
2019         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2020         instead of stat or _stat.
2021
2022         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2023         'struct _stati64' instead of fstat and 'struct stat'.
2024         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2025         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2026
2027         Reported by Ray Satiro <raysatiro@yahoo.com>.
2028
2029 2012-04-19  Eric Blake  <eblake@redhat.com>
2030
2031         bootstrap: accommodate older libtool
2032         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2033         Reported by Daniel P. Berrange.
2034
2035 2012-04-19  Jim Meyering  <meyering@redhat.com>
2036
2037         announce-gen: avoid failure due to lack of Digest::SHA1
2038         Even with the preferred Digest::SHA available, this script
2039         would fail when the backup module, Digest::SHA1, was not installed.
2040         * build-aux/announce-gen: Quote the conditional use of "use".
2041         Reported by Reuben Thomas in:
2042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2043
2044         bootstrap: don't let a user's CDPATH setting affect this script
2045         When CDPATH is set, cd will sometimes generate output.
2046         When "cd" is run in a subshell whose output matters, that
2047         surprising-to-some output can cause malfunction.
2048         Unsetting CDPATH turns off this shell "feature."
2049         * build-aux/bootstrap (CDPATH): Unset.
2050         Reported by Reuben Thomas in:
2051         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2052         and inspired by his patch here:
2053         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2054
2055 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2056         and Jim Meyering  <meyering@redhat.com>
2057
2058         maint.mk: catch "see @xref{}" and similar
2059         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2060         prohibit "See also @xref{", "Also see @pxref{", and similar.
2061
2062 2012-04-16  Jim Meyering  <meyering@redhat.com>
2063
2064         bootstrap: really use gnulib's po/Makefile.in.in
2065         * build-aux/bootstrap: Correct the source file name in previous change.
2066         Reported by Akim Demaille.
2067
2068         configmake: correct minor inconsistency in Makefile rule
2069         * modules/configmake (Makefile.am): All other rules like this one
2070         run the final "mv -f ..." in the same backslash-continued command
2071         as the one that does everything else.  This one put the mv -f ...
2072         command on a separate, non-backslash-continued line.
2073         Make it like the others.
2074
2075         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2076         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2077         the one from gettext.  Reported by Akim Demaille.
2078
2079 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2080
2081         Fix recursion of install-* into po directories.
2082         Bison's install-pdf bug reported by Hans Aberg at
2083         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2084         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2085         (install-info, install-pdf, install-ps): New targets.
2086
2087 2012-04-16  Jim Meyering  <meyering@redhat.com>
2088
2089         maint: avoid spurious "make sc_maint" failure
2090         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2091         exempt all *.class file names, for lib/javaversion.class.
2092
2093 2012-04-15  Bruno Haible  <bruno@clisp.org>
2094
2095         lseek: Make configure test independent of environment.
2096         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2097         Windows, we know that lseek() on pipes is broken; skip the runtime
2098         test.
2099
2100 2012-04-14  Bruno Haible  <bruno@clisp.org>
2101
2102         stat: Bypass buggy override in mingw64.
2103         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2104         * lib/stat.c (stat) [mingw64]: Define to _stat.
2105         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2106
2107 2012-04-14  Bruno Haible  <bruno@clisp.org>
2108
2109         pathmax: Fix compilation error on MSVC 9.
2110         * modules/pathmax (Depends-on): Add unistd.
2111
2112 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         README: document pointer comparison assumption
2115         * README (Portability guidelines): Document assumption about
2116         pointer comparisons, in response to a recent bug-gnulib comment by
2117         Jeffrey Kegler.
2118
2119 2012-04-12  Bruno Haible  <bruno@clisp.org>
2120
2121         Tests for module 'getrusage'.
2122         * modules/getrusage-tests: New file.
2123         * tests/test-getrusage.c: New file.
2124
2125         New module 'getrusage'.
2126         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2127         warn-on-use.h.
2128         (getrusage): New declaration.
2129         * lib/getrusage.c: New file.
2130         * m4/getrusage.m4: New file.
2131         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2132         is declared.
2133         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2134         HAVE_GETRUSAGE.
2135         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2136         snippet/c++defs, snippet/warn-on-use.
2137         (Makefile.am): Update generation of sys/resource.h. Substitute
2138         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2139         * modules/getrusage: New file.
2140         * doc/posix-functions/getrusage.texi: Mention the new module.
2141
2142 2012-04-12  Bruno Haible  <bruno@clisp.org>
2143
2144         Tests for module 'sys_resource'.
2145         * modules/sys_resource-tests: New file.
2146         * tests/test-sys_resource.c: New file.
2147
2148         New module 'sys_resource'.
2149         * lib/sys_resource.in.h: New file.
2150         * m4/sys_resource_h.m4: New file.
2151         * modules/sys_resource: New file.
2152         * doc/posix-headers/sys_resource.texi: Mention the new module.
2153
2154 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2155
2156         ioctl: Fix compilation error on mingw.
2157         * lib/ioctl.c: Include <windows.h>.
2158         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2159
2160 2012-04-04  Jim Meyering  <meyering@redhat.com>
2161
2162         regex: correct #pragma guard expression
2163         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2164         not 4.3.  Correct its cpp guard expression.
2165
2166 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         regex: remove unnecessary type punning
2169         Problem reported by Vladimir Serbinenko in
2170         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2171         * lib/regex.h (struct re_pattern_buffer): Change the type of
2172         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2173         Fix comment to match code.
2174         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2175         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2176         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2177         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2178         (set_regs):
2179         Omit no-longer-necessary casts.
2180
2181 2012-04-03  Bruno Haible  <bruno@clisp.org>
2182
2183         Tests for module 'ilogbl'.
2184         * modules/ilogbl-tests: New file.
2185         * tests/test-ilogbl.c: New file.
2186
2187         New module 'ilogbl'.
2188         * lib/math.in.h (ilogbl): New declaration.
2189         * lib/ilogbl.c: New file.
2190         * m4/ilogbl.m4: New file.
2191         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2193         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2194         Split sed invocation, to avoid the limit of 100 substitutions of
2195         HP-UX 'sed'.
2196         * modules/ilogbl: New file.
2197         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2198         * doc/posix-functions/ilogbl.texi: Mention the new module.
2199
2200 2012-04-03  Bruno Haible  <bruno@clisp.org>
2201
2202         Tests for module 'ilogbf'.
2203         * modules/ilogbf-tests: New file.
2204         * tests/test-ilogbf.c: New file.
2205
2206         New module 'ilogbf'.
2207         * lib/math.in.h (ilogbf): New declaration.
2208         * lib/ilogbf.c: New file.
2209         * m4/ilogbf.m4: New file.
2210         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2212         REPLACE_ILOGBF.
2213         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2214         REPLACE_ILOGBF.
2215         * modules/ilogbf: New file.
2216         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2217         * doc/posix-functions/ilogbf.texi: Mention the new module.
2218
2219 2012-04-03  Bruno Haible  <bruno@clisp.org>
2220
2221         Tests for module 'ilogb'.
2222         * modules/ilogb-tests: New file.
2223         * tests/test-ilogb.c: New file.
2224         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2225         tests/test-logb-ieee.h.
2226
2227         New module 'ilogb'.
2228         * lib/math.in.h (ilogb): New declaration.
2229         * lib/ilogb.c: New file.
2230         * m4/ilogb.m4: New file.
2231         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2233         REPLACE_ILOGB.
2234         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2235         REPLACE_ILOGB.
2236         * modules/ilogb: New file.
2237         * tests/test-math-c++.cc: Check the declaration of ilogb.
2238         * doc/posix-functions/ilogb.texi: Mention the new module.
2239
2240 2012-04-03  Bruno Haible  <bruno@clisp.org>
2241
2242         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2243         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2244         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2245         (main): Check their values.
2246         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2247         problem.
2248
2249 2012-04-03  Bruno Haible  <bruno@clisp.org>
2250
2251         Tests for module 'logbl-ieee'.
2252         * modules/logbl-ieee-tests: New file.
2253         * tests/test-logbl-ieee.c: New file.
2254
2255         New module 'logbl-ieee'.
2256         * modules/logbl-ieee: New file.
2257
2258         Tests for module 'logb-ieee'.
2259         * modules/logb-ieee-tests: New file.
2260         * tests/test-logb-ieee.c: New file.
2261
2262         New module 'logb-ieee'.
2263         * modules/logb-ieee: New file.
2264
2265         Tests for module 'logbf-ieee'.
2266         * modules/logbf-ieee-tests: New file.
2267         * tests/test-logbf-ieee.c: New file.
2268         * tests/test-logb-ieee.h: New file.
2269
2270         New module 'logbf-ieee'.
2271         * modules/logbf-ieee: New file.
2272
2273 2012-04-03  Bruno Haible  <bruno@clisp.org>
2274
2275         Tests for module 'logbl'.
2276         * modules/logbl-tests: New file.
2277         * tests/test-logbl.c: New file.
2278
2279         New module 'logbl'.
2280         * lib/math.in.h (logbl): New declaration.
2281         * lib/logbl.c: New file.
2282         * m4/logbl.m4: New file.
2283         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2285         REPLACE_LOGBL.
2286         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2287         REPLACE_LOGBL.
2288         * modules/logbl: New file.
2289         * tests/test-math-c++.cc: Check the declaration of logbl.
2290         * doc/posix-functions/logbl.texi: Mention the new module.
2291
2292 2012-04-02  Bruno Haible  <bruno@clisp.org>
2293
2294         Tests for module 'logbf'.
2295         * modules/logbf-tests: New file.
2296         * tests/test-logbf.c: New file.
2297
2298         New module 'logbf'.
2299         * lib/math.in.h (logbf): New declaration.
2300         * lib/logbf.c: New file.
2301         * m4/logbf.m4: New file.
2302         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2304         REPLACE_LOGBF.
2305         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2306         REPLACE_LOGBF.
2307         * modules/logbf: New file.
2308         * tests/test-math-c++.cc: Check the declaration of logbf.
2309         * doc/posix-functions/logbf.texi: Mention the new module.
2310
2311 2012-04-02  Bruno Haible  <bruno@clisp.org>
2312
2313         logb tests: More tests.
2314         * tests/test-logb.h: New file, based on tests/test-logb.c and
2315         tests/test-frexp.h.
2316         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2317         (main): Just invoke test_function.
2318         * modules/logb-tests (Files): Add tests/test-logb.h,
2319         tests/minus-zero.h, tests/randomd.c.
2320         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2321
2322         logb: Provide replacement and workarounds.
2323         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2324         is 1.
2325         * lib/logb.c: New file.
2326         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2327         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2329         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2330         * modules/logb (Files): Add lib/logb.c.
2331         (Depends-on): Add isfinite, frexp, isnand.
2332         (configure.ac): Compile the replacement code logb.c if needed.
2333         * tests/test-math-c++.cc: Check the declaration of logb.
2334         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2335         with subnormal numbers.
2336
2337 2012-04-02  Bruno Haible  <bruno@clisp.org>
2338
2339         log10* tests: Speed up.
2340         * tests/test-log10.h (test_function): Reduce amount of random numbers
2341         to test.
2342
2343 2012-04-01  Bruno Haible  <bruno@clisp.org>
2344
2345         logf-ieee: Fix test whether logf works.
2346         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2347
2348 2012-04-01  Bruno Haible  <bruno@clisp.org>
2349
2350         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2351         * lib/log10l.c: Include <float.h>
2352         (log10l): On IRIX, normalize the +Infinity value.
2353         * modules/log10l (Depends-on): Add 'float'.
2354         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2355         +Infinity.
2356
2357         log10f-ieee: Work around test failure on NetBSD 5.1.
2358         * m4/log10f-ieee.m4: New file.
2359         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2360         test whether log10f works with a negative argument. Replace it if not.
2361         * lib/log10f.c (log10f): For negative arguments, return NaN.
2362         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2363         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2364         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2365
2366         log10f-ieee: Work around test failure on Solaris 9.
2367         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2368         (configure.ac): Require gl_FUNC_LOG10F.
2369
2370         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2371         * m4/log10-ieee.m4: New file.
2372         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2373         whether log10 works with a negative argument. Replace it if not.
2374         * lib/log10.c (log10): For negative arguments, return NaN.
2375         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2376         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2377         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2378
2379         Tests for module 'log10l-ieee'.
2380         * modules/log10l-ieee-tests: New file.
2381         * tests/test-log10l-ieee.c: New file.
2382
2383         New module 'log10l-ieee'.
2384         * modules/log10l-ieee: New file.
2385
2386         Tests for module 'log10-ieee'.
2387         * modules/log10-ieee-tests: New file.
2388         * tests/test-log10-ieee.c: New file.
2389
2390         New module 'log10-ieee'.
2391         * modules/log10-ieee: New file.
2392
2393         Tests for module 'log10f-ieee'.
2394         * modules/log10f-ieee-tests: New file.
2395         * tests/test-log10f-ieee.c: New file.
2396         * tests/test-log10-ieee.h: New file.
2397
2398         New module 'log10f-ieee'.
2399         * modules/log10f-ieee: New file.
2400
2401 2012-04-01  Bruno Haible  <bruno@clisp.org>
2402
2403         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2404         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2405         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2406         workaround.
2407         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2408         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2410         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2411         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2412         (Depends-on): Update conditions.
2413         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2414         IRIX 6.5, OSF/1 5.1 problems.
2415
2416 2012-04-01  Bruno Haible  <bruno@clisp.org>
2417
2418         log10f: Work around OSF/1 5.1 bug.
2419         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2420         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2421         workaround.
2422         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2423         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2425         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2426         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2427         (Depends-on): Update conditions.
2428         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2429
2430 2012-04-01  Bruno Haible  <bruno@clisp.org>
2431
2432         log10: Work around OSF/1 5.1 bug.
2433         * lib/math.in.h (log10): New declaration.
2434         * lib/log10.c: New file.
2435         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2436         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2437         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2438         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2439         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2440         * modules/log10 (Files): Add lib/log10.c.
2441         (Depends-on): Add math.
2442         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2443         * tests/test-math-c++.cc: Check the declaration of log10.
2444         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2445
2446 2012-03-31  Bruno Haible  <bruno@clisp.org>
2447
2448         log10l tests: More tests.
2449         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2450         tests/minus-zero.h, tests/randoml.c.
2451         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2452         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2453         (main): Invoke test_function.
2454
2455         log10f tests: More tests.
2456         * modules/log10f-tests (Files): Add tests/test-log10.h,
2457         tests/minus-zero.h, tests/randomf.c.
2458         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2459         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2460         (main): Invoke test_function.
2461
2462         log10 tests: More tests.
2463         * tests/test-log10.h: New file.
2464         * modules/log10-tests (Files): Add tests/test-log10.h,
2465         tests/minus-zero.h, tests/randomd.c.
2466         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2467         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2468         (main): Invoke test_function.
2469
2470 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2471
2472         fflush: Fix syntax error.
2473         * lib/fflush.c: Include unused-parameter.h, needed for
2474         _GL_UNUSED_PARAMETER.
2475         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2476
2477 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2478
2479         regex: pacify GCC when compiling GRUB
2480         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2481         a diagnostic.  Reported by Vladimir Serbinenko in
2482         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2483
2484 2012-03-29  Eric Blake  <eblake@redhat.com>
2485
2486         stdio: don't assume gets any more
2487         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2488         support.
2489         * modules/stdio (Makefile.am): Likewise.
2490         * lib/stdio-read.c (gets): Likewise.
2491         * tests/test-stdio-c++.cc: Likewise.
2492         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2493         * lib/stdio.in.h (gets): Make warning occur in more places.
2494         * doc/posix-functions/gets.texi (gets): Update documentation.
2495         Reported by Christer Solskogen.
2496
2497         maint.mk: fix syntax checks without exclusions
2498         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2499         Reported by Daniel P. Berrange.
2500
2501         strerror_r: avoid compiler warning
2502         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2503         level.
2504
2505         fflush: avoid compiler warning
2506         * lib/fflush.c (update_fpos_cache): Mark variables that are
2507         potentially unused.
2508
2509 2012-03-25  Bruno Haible  <bruno@clisp.org>
2510
2511         Tests for module 'localeconv'.
2512         * modules/localeconv-tests: New file.
2513         * tests/test-localeconv.c: New file.
2514
2515         New module 'localeconv'.
2516         * lib/locale.in.h (localeconv): New declaration.
2517         * lib/localeconv.c: New file.
2518         * m4/localeconv.m4: New file.
2519         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2520         REPLACE_LOCALECONV.
2521         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2522         REPLACE_LOCALECONV.
2523         * modules/localeconv: New file.
2524         * modules/nl_langinfo (Depends-on): Add localeconv.
2525         * modules/human (Depends-on): Likewise.
2526         * doc/posix-functions/localeconv.texi: Mention the new module.
2527
2528 2012-03-25  Bruno Haible  <bruno@clisp.org>
2529
2530         locale: Provide a complete 'struct lconv'.
2531         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2532         'struct lconv' does not contain int_p_cs_precedes.
2533         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2534         * doc/posix-headers/locale.texi: Update.
2535
2536         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2537         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2538         * doc/posix-headers/locale.texi: Update.
2539
2540         locale: Provide a working 'struct lconv'.
2541         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2542         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2543         'struct lconv' does not even contain decimal_point.
2544         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2545         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2546         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2547         * doc/posix-headers/locale.texi: Mention the problems with
2548         'struct lconv'.
2549         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2550
2551 2012-03-24  Bruno Haible  <bruno@clisp.org>
2552
2553         Enable common subexpression optimization in GCC.
2554         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2555         macros.
2556         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2557         GCC attribute 'const'.
2558         (uc_locale_language): Declare with GCC attribute 'pure'.
2559         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2560         with GCC attribute 'const'.
2561         * lib/unictype.in.h (uc_is_general_category_withtable,
2562         uc_combining_class, uc_combining_class_name,
2563         uc_combining_class_long_name, uc_bidi_class_name,
2564         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2565         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2566         uc_decimal_value, uc_digit_value, uc_numeric_value,
2567         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2568         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2569         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2570         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2571         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2572         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2573         Declare with GCC attribute 'const'.
2574         (uc_general_category_name, uc_general_category_long_name,
2575         uc_general_category_byname, uc_general_category,
2576         uc_is_general_category, uc_combining_class_byname,
2577         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2578         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2579         Declare with GCC attribute 'pure'.
2580         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2581         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2582         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2583         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2584         with GCC attribute 'pure'.
2585         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2586         'const'.
2587         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2588         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2589         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2590         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2591         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2592         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2593         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2594         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2595         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2596         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2597         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2598         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2599         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2600         GCC attribute 'pure'.
2601         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2602         'const'.
2603         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2604         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2605         u32_strwidth): Declare with GCC attribute 'pure'.
2606
2607         Enable common subexpression optimization in GCC.
2608         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2609         (alphasort): Declare with GCC attribute 'pure'.
2610         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2611         (atoll): Declare with GCC attribute 'pure'.
2612         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2613         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2614         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2615         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2616         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2617         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2618         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2619
2620 2012-03-24  Bruno Haible  <bruno@clisp.org>
2621
2622         gnulib-tool: Avoid unintended error output from 'cmp'.
2623         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2624         "cmp -s", not "cmp > /dev/null".
2625
2626 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2627
2628         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2629
2630         It's not just Automake versions < 1.9b that creates an empty
2631         pkgdatadir at installation time if pkgdata_DATA is specified
2632         to empty; modern automake versions do this as well, at least
2633         until automake 1.11.4 (not yet released at the moment of writing,
2634         but soon to appear).  That behaviour was generally considered a
2635         feature rather than a bug, at least until this discussion:
2636         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2637
2638         See also automake bugs #10997 and #11030.
2639
2640         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2641         reference to relevant automake bug numbers.
2642         (func_emit_tests_Makefile_am): Likewise.
2643
2644 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2645
2646         announce-gen: use Digest::SHA when possible
2647         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2648         back to Digest::SHA1 if necessary.
2649
2650 2012-03-20  Jim Meyering  <meyering@redhat.com>
2651
2652         tests: avoid gcc warnings about argv vs. const initializers
2653         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2654         warnings about discarding 'const' qualifier from pointer target type.
2655         * tests/test-posix_spawn2.c (main): Likewise.
2656
2657 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2658
2659         README-release: simplify slightly
2660         * top/README-release: Run "git checkout master" only once.
2661
2662 2012-03-15  Mark Wielaard  <mark@klomp.org>
2663
2664         git-merge-changelog: add specific example on how to use with hg.
2665         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2666
2667 2012-03-18  Mark Wielaard  <mark@klomp.org>
2668
2669         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2670
2671 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2672
2673         git-version-gen: don't let "prefix" envvar cause trouble
2674         * build-aux/git-version-gen (prefix): Initialize properly,
2675         so as not to use a value specified via the environment.
2676         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2677
2678 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2679
2680         regex: diagnose too-large repeat counts in EREs
2681         Previously, the code did not diagnose the too-large repeat count
2682         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2683         as if it were 'b\{1000000000}', which is unexpected.
2684         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2685         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2686         is a reasonable one for this problem.  Another option would be to
2687         create a new REG_OVERFLOW error for repeat counts that are too large.
2688         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2689         count is too large, so that the caller can distinguish the two cases.
2690         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2691         "Too large" return code, and that repeat counts are one example of this.
2692
2693 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2694
2695         doc: some glibc x32 integer width issues
2696         * doc/posix-headers/sys_types.texi (sys/types.h):
2697         * doc/posix-headers/time.texi (time.h):
2698         Mention that glibc x32 does not conform to POSIX in a couple of
2699         areas related to integer widths.
2700
2701 2012-03-15  Bruno Haible  <bruno@clisp.org>
2702
2703         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2704         * lib/fma.c (VOLATILE): New macro.
2705         (FUNC): Use it to work around a GCC compiler bug.
2706
2707 2012-03-13  Bruno Haible  <bruno@clisp.org>
2708
2709         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2710         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2711         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2712         REPLACE_HYPOTL to 1.
2713         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2714
2715 2012-03-13  Bruno Haible  <bruno@clisp.org>
2716
2717         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2718         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2719         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2720         REPLACE_REMAINDERL to 1.
2721         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2722         bug.
2723
2724 2012-03-13  Bruno Haible  <bruno@clisp.org>
2725
2726         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2727         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2728         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2729         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2730         too big rounding errors.
2731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2732         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2733         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2734         (Depends-on): Update conditions.
2735         * tests/test-sqrtl.c (my_ldexpl): New function.
2736         (main): Add test of a particular value.
2737         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2738
2739 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2740
2741         doc: Update timer_* platform portability notes.
2742         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2743         that always return ENOSYS.
2744         * doc/posix-functions/timer_delete.texi: Likewise.
2745         * doc/posix-functions/timer_gettime.texi: Likewise.
2746         * doc/posix-functions/timer_settime.texi: Likewise.
2747
2748 2012-03-13  Bruno Haible  <bruno@clisp.org>
2749
2750         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2751         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2752         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2753         REPLACE_CBRTL to 1.
2754         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2755
2756 2012-03-13  Bruno Haible  <bruno@clisp.org>
2757
2758         remainderl: Avoid compilation error on AIX >= 5.2.
2759         * lib/math.in.h (remainderl): Undefine macro from the system header.
2760
2761 2012-03-13  Bruno Haible  <bruno@clisp.org>
2762
2763         Avoid compilation errors with MSVC option -fp:strict.
2764         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2765         * lib/cbrtf.c: Likewise.
2766         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2767
2768 2012-03-12  Bruno Haible  <bruno@clisp.org>
2769
2770         uninorm: Don't crash in out-of-memory conditions.
2771         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2772         gracefully.
2773         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2774         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2775
2776 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2777
2778         quote: fix syntax-check
2779         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2780         also exports quote_quoting_options.
2781
2782 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2783
2784         Collapse list of copyright years to ranges.  See
2785         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2786         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2787         build-aux/csharpexec.sh.in, build-aux/gnupload,
2788         build-aux/install-reloc, build-aux/javacomp.sh.in,
2789         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2790         build-aux/move-if-change, build-aux/reloc-ldflags,
2791         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2792
2793 2012-03-11  Bruno Haible  <bruno@clisp.org>
2794
2795         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2796         * m4/log2f-ieee.m4: New file.
2797         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2798         whether log2f works with a minus zero argument. Replace it if not.
2799         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2800         (Depends-on): Add log2-ieee.
2801         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2802         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2803
2804         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2805         * m4/log2-ieee.m4: New file.
2806         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2807         whether log2 works with a minus zero argument. Replace it if not.
2808         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2809         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2810         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2811
2812         Tests for module 'log2l-ieee'.
2813         * modules/log2l-ieee-tests: New file.
2814         * tests/test-log2l-ieee.c: New file.
2815
2816         New module 'log2l-ieee'.
2817         * modules/log2l-ieee: New file.
2818
2819         Tests for module 'log2-ieee'.
2820         * modules/log2-ieee-tests: New file.
2821         * tests/test-log2-ieee.c: New file.
2822
2823         New module 'log2-ieee'.
2824         * modules/log2-ieee: New file.
2825
2826         Tests for module 'log2f-ieee'.
2827         * modules/log2f-ieee-tests: New file.
2828         * tests/test-log2f-ieee.c: New file.
2829         * tests/test-log2-ieee.h: New file.
2830
2831         New module 'log2f-ieee'.
2832         * modules/log2f-ieee: New file.
2833
2834 2012-03-11  Bruno Haible  <bruno@clisp.org>
2835
2836         Tests for module 'log2l'.
2837         * modules/log2l-tests: New file.
2838         * tests/test-log2l.c: New file.
2839
2840         New module 'log2l'.
2841         * lib/math.in.h (log2l): New declaration.
2842         * lib/log2l.c: New file.
2843         * m4/log2l.m4: New file.
2844         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2846         REPLACE_LOG2L.
2847         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2848         REPLACE_LOG2L.
2849         * modules/log2l: New file.
2850         * tests/test-math-c++.cc: Check the declaration of log2l.
2851         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2852         and OSF/1 problems.
2853
2854 2012-03-11  Bruno Haible  <bruno@clisp.org>
2855
2856         Tests for module 'log2f'.
2857         * modules/log2f-tests: New file.
2858         * tests/test-log2f.c: New file.
2859
2860         New module 'log2f'.
2861         * lib/math.in.h (log2f): New declaration.
2862         * lib/log2f.c: New file.
2863         * m4/log2f.m4: New file.
2864         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2866         REPLACE_LOG2F.
2867         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2868         REPLACE_LOG2F.
2869         * modules/log2f: New file.
2870         * tests/test-math-c++.cc: Check the declaration of log2f.
2871         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2872         and OSF/1 and Cygwin problems.
2873
2874 2012-03-11  Bruno Haible  <bruno@clisp.org>
2875
2876         Tests for module 'log2'.
2877         * modules/log2-tests: New file.
2878         * tests/test-log2.c: New file.
2879         * tests/test-log2.h: New file.
2880
2881         New module 'log2'.
2882         * lib/math.in.h (log2): New declaration.
2883         * lib/log2.c: New file.
2884         * m4/log2.m4: New file.
2885         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2887         REPLACE_LOG2.
2888         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2889         REPLACE_LOG2.
2890         * modules/log2: New file.
2891         * tests/test-math-c++.cc: Check the declaration of log2.
2892         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2893         and OSF/1 and Cygwin problems.
2894
2895 2012-03-11  Bruno Haible  <bruno@clisp.org>
2896
2897         exp2* tests: More tests.
2898         * tests/test-exp2.h (test_function): Test all integral arguments that
2899         don't need to overflow or denormalized numbers.
2900         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2901         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2902         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2903
2904 2012-03-10  Bruno Haible  <bruno@clisp.org>
2905
2906         log1pl-ieee: Work around test failure on AIX 7.1.
2907         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2908
2909         log1pl-ieee: Work around test failure on IRIX 6.5.
2910         * m4/log1pl-ieee.m4: New file.
2911         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2912         test whether log1pl works with a minus zero argument. Replace it if
2913         not.
2914         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2916         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2917         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2918         (Depends-on): Update conditions.
2919         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2920         m4/signbit.m4.
2921         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2922         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2923
2924         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2925         * m4/log1pf-ieee.m4: New file.
2926         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2927         test whether log1pf works with a minus zero argument. Replace it if
2928         not.
2929         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2930         m4/signbit.m4.
2931         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2932         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2933
2934         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2935         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2936         (configure.ac): Require gl_FUNC_LOG1PF.
2937
2938         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2939         * m4/log1p-ieee.m4: New file.
2940         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2941         whether log1p works with a minus zero argument. Replace it if not.
2942         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2944         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2945         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2946         (Depends-on): Update conditions.
2947         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2948         m4/signbit.m4.
2949         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2950         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2951
2952         Tests for module 'log1pl-ieee'.
2953         * modules/log1pl-ieee-tests: New file.
2954         * tests/test-log1pl-ieee.c: New file.
2955
2956         New module 'log1pl-ieee'.
2957         * modules/log1pl-ieee: New file.
2958
2959         Tests for module 'log1p-ieee'.
2960         * modules/log1p-ieee-tests: New file.
2961         * tests/test-log1p-ieee.c: New file.
2962
2963         New module 'log1p-ieee'.
2964         * modules/log1p-ieee: New file.
2965
2966         Tests for module 'log1pf-ieee'.
2967         * modules/log1pf-ieee-tests: New file.
2968         * tests/test-log1pf-ieee.c: New file.
2969         * tests/test-log1p-ieee.h: New file.
2970
2971         New module 'log1pf-ieee'.
2972         * modules/log1pf-ieee: New file.
2973
2974 2012-03-10  Bruno Haible  <bruno@clisp.org>
2975
2976         Tests for module 'log1pl'.
2977         * modules/log1pl-tests: New file.
2978         * tests/test-log1pl.c: New file.
2979
2980         New module 'log1pl'.
2981         * lib/math.in.h (log1pl): New declaration.
2982         * lib/log1pl.c: New file.
2983         * m4/log1pl.m4: New file.
2984         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2986         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2987         * modules/log1pl: New file.
2988         * tests/test-math-c++.cc: Check the declaration of log1pl.
2989         * doc/posix-functions/log1pl.texi: Mention the new module.
2990
2991 2012-03-10  Bruno Haible  <bruno@clisp.org>
2992
2993         Tests for module 'log1pf'.
2994         * modules/log1pf-tests: New file.
2995         * tests/test-log1pf.c: New file.
2996
2997         New module 'log1pf'.
2998         * lib/math.in.h (log1pf): New declaration.
2999         * lib/log1pf.c: New file.
3000         * m4/log1pf.m4: New file.
3001         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3002         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3003         REPLACE_LOG1PF.
3004         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3005         REPLACE_LOG1PF.
3006         * modules/log1pf: New file.
3007         * tests/test-math-c++.cc: Check the declaration of log1pf.
3008         * doc/posix-functions/log1pf.texi: Mention the new module.
3009
3010 2012-03-10  Bruno Haible  <bruno@clisp.org>
3011
3012         log1p tests: More tests.
3013         * tests/test-log1p.h: New file.
3014         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3015         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3016         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3017         (main): Invoke test_function.
3018
3019         log1p: Provide replacement for Minix and MSVC.
3020         * lib/math.in.h (log1p): New declaration.
3021         * lib/log1p.c: New file.
3022         * m4/log1p.m4: New file.
3023         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3025         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3026         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3027         (Depends-on): Add math, isnand, log, round.
3028         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3029         HAVE_LOG1P is 0.
3030         * tests/test-math-c++.cc: Check the declaration of log1p.
3031         * doc/posix-functions/log1p.texi: Mention the replacement.
3032
3033 2012-03-10  Bruno Haible  <bruno@clisp.org>
3034
3035         math tests: Small simplification.
3036         * tests/test-exp.h (test_function): Use the same err_bound for
3037         'double' on platforms with sizeof (long double) == sizeof (double)
3038         than on platforms with sizeof (long double) > sizeof (double).
3039         * tests/test-exp2.h (test_function): Likewise.
3040         * tests/test-expm1.h (test_function): Likewise.
3041         * tests/test-log.h (test_function): Likewise.
3042
3043 2012-03-10  Bruno Haible  <bruno@clisp.org>
3044
3045         Fix some comments.
3046         * lib/expl.c: Fix an ambiguous comment.
3047         * lib/expm1.c: Likewise.
3048         * lib/expm1l.c: Likewise.
3049         * lib/exp2.c: Likewise.
3050         * lib/exp2l.c: Likewise.
3051
3052 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3053
3054         regex: allow inclusion of <regex.h> before <limits.h>
3055         Without this patch, portable programs had to include <limits.h> before
3056         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3057         I ran into this problem with a test version of GNU grep on Solaris 8.
3058         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3059         This is done conditionally so that this change can be merged
3060         back to glibc.
3061         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3062         using the included regex.
3063
3064         fts: depend on fdopendir
3065         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3066         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3067         problem was introduced when fdopendir was split out.
3068
3069 2012-03-10  Bruno Haible  <bruno@clisp.org>
3070
3071         Remove unused variables.
3072         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3073         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3074
3075 2012-03-10  Bruno Haible  <bruno@clisp.org>
3076
3077         isnanf-nolibm: Fix last commit.
3078         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3079
3080         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3081         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3082
3083 2012-03-10  Bruno Haible  <bruno@clisp.org>
3084
3085         logf-ieee: Work around test failure on NetBSD 5.1.
3086         * m4/logf-ieee.m4: New file.
3087         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3088         whether logf works with a negative argument. Replace it if not.
3089         * lib/logf.c (logf): For negative arguments, return NaN.
3090         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3091         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3092         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3093
3094         logf-ieee: Work around test failure on Solaris 9.
3095         * modules/logf-ieee (Depends-on): Add log-ieee.
3096         (configure.ac): Require gl_FUNC_LOGF.
3097
3098         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3099         * m4/log-ieee.m4: New file.
3100         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3101         log works with a negative argument. Replace it if not.
3102         * lib/log.c (log): For negative arguments, return NaN.
3103         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3104         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3105         * doc/posix-functions/log.texi: Mention the log-ieee module.
3106
3107         Tests for module 'logl-ieee'.
3108         * modules/logl-ieee-tests: New file.
3109         * tests/test-logl-ieee.c: New file.
3110
3111         New module 'logl-ieee'.
3112         * modules/logl-ieee: New file.
3113
3114         Tests for module 'log-ieee'.
3115         * modules/log-ieee-tests: New file.
3116         * tests/test-log-ieee.c: New file.
3117
3118         New module 'log-ieee'.
3119         * modules/log-ieee: New file.
3120
3121         Tests for module 'logf-ieee'.
3122         * modules/logf-ieee-tests: New file.
3123         * tests/test-logf-ieee.c: New file.
3124         * tests/test-log-ieee.h: New file.
3125
3126         New module 'logf-ieee'.
3127         * modules/logf-ieee: New file.
3128
3129 2012-03-10  Bruno Haible  <bruno@clisp.org>
3130
3131         log: Fix bug introduced on 2012-03-09.
3132         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3133
3134 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3135
3136         timer-time: link explicitly with pthreads on glibc
3137         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3138         to support static linking, when newer glibc is
3139         detected, as that contains pthread emulation of
3140         POSIX timer functions where required.
3141         * modules/timer-time: Depend on threadlib to
3142         pull in the appropriate library to link.
3143
3144 2012-03-10  Bruno Haible  <bruno@clisp.org>
3145
3146         log* tests: More tests.
3147         * tests/test-log.h: New file.
3148         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3149         (main): Invoke test_function.
3150         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3151         (main): Invoke test_function.
3152         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3153         (main): Invoke test_function.
3154         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3155         tests/randomd.c.
3156         (Makefile.am): Add randomd.c to test_log_SOURCES.
3157         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3158         tests/randomf.c.
3159         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3160         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3161         tests/randoml.c.
3162         (Depends-on): Add 'float'.
3163         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3164
3165 2012-03-09  Bruno Haible  <bruno@clisp.org>
3166
3167         logl: Work around OSF/1 5.1 bug.
3168         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3169         * lib/logl.c (logl): If logl exists, use it and provide just the
3170         workaround.
3171         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3172         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3174         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3175         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3176         (Depends-on): Update conditions.
3177         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3178
3179 2012-03-09  Bruno Haible  <bruno@clisp.org>
3180
3181         logf: Work around OSF/1 5.1 bug.
3182         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3183         * lib/logf.c (logf): If logf exists, use it and provide just the
3184         workaround.
3185         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3186         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3188         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3189         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3190         (Depends-on): Update conditions.
3191         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3192
3193 2012-03-09  Bruno Haible  <bruno@clisp.org>
3194
3195         log: Work around OSF/1 5.1 bug.
3196         * lib/math.in.h (log): New declaration.
3197         * lib/log.c: New file.
3198         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3199         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3200         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3202         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3203         * modules/log (Files): Add lib/log.c.
3204         (Depends-on): Add math.
3205         (configure.ac): If REPLACE_LOG is 1, compile an override.
3206         * tests/test-math-c++.cc: Check the declaration of log.
3207         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3208
3209 2012-03-09  Jim Meyering  <meyering@redhat.com>
3210
3211         readtokens.c: adjust wording in a comment
3212         * lib/readtokens.c: Insert omitted "that" in a comment.
3213
3214 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         modechange: add notations +40, 00440, etc.
3217         * lib/modechange.c (mode_compile): Support new notations
3218         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3219
3220 2012-03-08  Bruno Haible  <bruno@clisp.org>
3221
3222         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3223         * m4/exp2l-ieee.m4: New file.
3224         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3225         test whether exp2l works with a NaN argument and with a negative
3226         infinity argument. Replace it if not.
3227         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3229         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3230         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3231         (Depends-on): Update conditions.
3232         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3233         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3234         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3235
3236         Tests for module 'exp2l-ieee'.
3237         * modules/exp2l-ieee-tests: New file.
3238         * tests/test-exp2l-ieee.c: New file.
3239
3240         New module 'exp2l-ieee'.
3241         * modules/exp2l-ieee: New file.
3242
3243         Tests for module 'exp2-ieee'.
3244         * modules/exp2-ieee-tests: New file.
3245         * tests/test-exp2-ieee.c: New file.
3246
3247         New module 'exp2-ieee'.
3248         * modules/exp2-ieee: New file.
3249
3250         Tests for module 'exp2f-ieee'.
3251         * modules/exp2f-ieee-tests: New file.
3252         * tests/test-exp2f-ieee.c: New file.
3253         * tests/test-exp2-ieee.h: New file.
3254
3255         New module 'exp2f-ieee'.
3256         * modules/exp2f-ieee: New file.
3257
3258 2012-03-08  Bruno Haible  <bruno@clisp.org>
3259
3260         Tests for module 'exp2l'.
3261         * modules/exp2l-tests: New file.
3262         * tests/test-exp2l.c: New file.
3263
3264         New module 'exp2l'.
3265         * lib/math.in.h (exp2l): New declaration.
3266         * lib/exp2l.c: New file.
3267         * lib/expl-table.c: New file, extracted from lib/expl.c.
3268         * lib/expl.c (gl_expl_table): New declaration.
3269         (expl): Remove expl_table. Update reference.
3270         * m4/exp2l.m4: New file.
3271         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3273         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3274         * modules/exp2l: New file.
3275         * modules/expl (Files): Add lib/expl-table.c.
3276         (configure.ac): Compile also expl-table.c.
3277         * tests/test-math-c++.cc: Check the declaration of exp2l.
3278         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3279         problem.
3280
3281 2012-03-08  Bruno Haible  <bruno@clisp.org>
3282
3283         Tests for module 'exp2f'.
3284         * modules/exp2f-tests: New file.
3285         * tests/test-exp2f.c: New file.
3286
3287         New module 'exp2f'.
3288         * lib/math.in.h (exp2f): New declaration.
3289         * lib/exp2f.c: New file.
3290         * m4/exp2f.m4: New file.
3291         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3293         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3294         * modules/exp2f: New file.
3295         * tests/test-math-c++.cc: Check the declaration of exp2f.
3296         * doc/posix-functions/exp2f.texi: Mention the new module and the
3297         IRIX problem.
3298
3299 2012-03-08  Bruno Haible  <bruno@clisp.org>
3300
3301         Tests for module 'exp2'.
3302         * modules/exp2-tests: New file.
3303         * tests/test-exp2.c: New file.
3304         * tests/test-exp2.h: New file.
3305
3306         New module 'exp2'.
3307         * lib/math.in.h (exp2): New declaration.
3308         * lib/exp2.c: New file.
3309         * m4/exp2.m4: New file.
3310         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3312         REPLACE_EXP2.
3313         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3314         REPLACE_EXP2.
3315         * modules/exp2: New file.
3316         * tests/test-math-c++.cc: Check the declaration of exp2.
3317         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3318         and OpenBSD problems.
3319
3320 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3321
3322         savedir: fix comment typo
3323         * lib/savedir.c (savedirstream): Fix typo in comment.
3324
3325 2012-03-08  Bruno Haible  <bruno@clisp.org>
3326
3327         test-readtokens.c: use const; remove unwarranted cast
3328         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3329
3330 2012-03-08  Bruno Haible  <bruno@clisp.org>
3331
3332         fmal: Avoid compilation error on AIX.
3333         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3334         AIX 5.2..7.1.
3335
3336 2012-03-08  Bruno Haible  <bruno@clisp.org>
3337
3338         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3339         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3340         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3341         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3342         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3343         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3344         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3345
3346 2012-03-08  Bruno Haible  <bruno@clisp.org>
3347
3348         remainderf: Override buggy system function on IRIX 6.5.
3349         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3350         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3351         when it exists.
3352         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3353
3354 2012-03-08  Jim Meyering  <meyering@redhat.com>
3355
3356         test-readtokens.c: avoid const-related compilation warnings
3357         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3358
3359 2012-03-07  Jim Meyering  <meyering@redhat.com>
3360             Bruno Haible  <bruno@clisp.org>
3361
3362         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3363         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3364         tests/randomd.c.
3365         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3366         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3367         tests/randoml.c.
3368         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3369
3370 2012-03-07  Bruno Haible  <bruno@clisp.org>
3371
3372         expm1l: Avoid compilation error on AIX.
3373         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3374         AIX 5.2..7.1.
3375
3376 2012-03-07  Bruno Haible  <bruno@clisp.org>
3377
3378         expm1l: Don't override undeclared system function on IRIX 6.5.
3379         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3380         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3381         it exists. Set HAVE_DECL_EXPM1L.
3382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3383         HAVE_EXPM1L.
3384         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3385         HAVE_EXPM1L.
3386         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3387
3388 2012-03-07  Bruno Haible  <bruno@clisp.org>
3389
3390         remainderl: Don't override undeclared system function on IRIX 6.5.
3391         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3392         HAVE_REMAINDERL.
3393         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3394         declared when it exists. Set HAVE_DECL_REMAINDERL.
3395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3396         not HAVE_REMAINDERL.
3397         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3398         HAVE_REMAINDERL.
3399         * doc/posix-functions/remainderl.texi: Mention missing declaration
3400         problem.
3401
3402 2012-03-07  Bruno Haible  <bruno@clisp.org>
3403
3404         rintf: Don't override undeclared system function on IRIX 6.5.
3405         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3406         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3407         exists. Set HAVE_DECL_RINTF.
3408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3409         HAVE_RINTF.
3410         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3411         HAVE_RINTF.
3412         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3413
3414 2012-03-07  Bruno Haible  <bruno@clisp.org>
3415
3416         roundl: Avoid compilation error on AIX.
3417         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3418         AIX 5.2..7.1.
3419
3420 2012-03-07  Bruno Haible  <bruno@clisp.org>
3421
3422         roundl: Don't override undeclared system function on IRIX 6.5.
3423         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3424         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3425         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3426         * modules/roundl (configure.ac): For replacement code, test
3427         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3428         (Depends-on): Update conditions.
3429         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3430
3431 2012-03-07  Bruno Haible  <bruno@clisp.org>
3432
3433         roundf: Don't override undeclared system function on IRIX 6.5.
3434         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3435         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3436         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3437         * modules/roundf (configure.ac): For replacement code, test
3438         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3439         (Depends-on): Update conditions.
3440         * modules/roundf-ieee (Depends-on): Update conditions.
3441         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3442
3443 2012-03-07  Bruno Haible  <bruno@clisp.org>
3444
3445         round: Don't override undeclared system function on IRIX 6.5.
3446         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3447         argument.
3448         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3449         also when it is not declared. Set HAVE_ROUND. For replacement code,
3450         test HAVE_ROUND, not HAVE_DECL_ROUND.
3451         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3452         not HAVE_DECL_ROUND.
3453         (Depends-on): Update conditions.
3454         * modules/round-ieee (Depends-on): Update conditions.
3455         * doc/posix-functions/round.texi: Mention the IRIX problem.
3456
3457 2012-03-07  Bruno Haible  <bruno@clisp.org>
3458
3459         copysignf: Don't override undeclared system function on IRIX 6.5.
3460         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3461         HAVE_COPYSIGNF.
3462         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3463         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3465         not HAVE_COPYSIGNF.
3466         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3467         HAVE_COPYSIGNF.
3468         * doc/posix-functions/copysignf.texi: Mention missing declaration
3469         problem.
3470
3471 2012-03-07  Jim Meyering  <meyering@redhat.com>
3472
3473         readtokens: add tests
3474         * modules/readtokens-tests: New file.
3475         * tests/test-readtokens.c: New file.
3476
3477 2012-03-07  Jim Meyering  <meyering@redhat.com>
3478
3479         quotearg: the module must now include quote.h
3480         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3481         So must the module.
3482         * modules/quotearg (Files): Add quote.h.
3483
3484 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3485
3486         readtokens: avoid core dumps with unusual calling patterns
3487         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3488         * lib/readtokens.c: Include limits.h.
3489         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3490         (readtoken): Don't cache the delimiters; the cache code was buggy
3491         if !delim && saved_delim, or if the new n_delim differs from the old.
3492         Also, it wasn't thread-safe.
3493
3494 2012-03-07  Bruno Haible  <bruno@clisp.org>
3495
3496         quote: Adhere to common module description layout.
3497         * modules/quote (Makefile.am): Add back empty section.
3498
3499 2012-03-06  Akim Demaille  <demaille@gostai.com>
3500
3501         quote: fuse into quotearg
3502         This patch is made for the benefit of Bison.
3503         quote does not leave the choice of the quoting style to the user.
3504         quoting_style provides poor customizability, yet quoting_options,
3505         which is very rich, is hidden inside quotearg.c.  So in order to
3506         allow quote customization, move its implementation to quotearg.c.
3507         * lib/quote.c: Remove.
3508         * modules/quote: Adjust.
3509         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3510         warning: provide all the members of literal structs.
3511         (quote_quoting_options): New.
3512         (quote, quote_n): Import implementation from quote.c.
3513         * lib/quote.h: Import the comments from quote.c.
3514         (quote_quoting_options): New.
3515
3516 2012-03-06  Bruno Haible  <bruno@clisp.org>
3517
3518         Tests for module 'expm1l-ieee'.
3519         * modules/expm1l-ieee-tests: New file.
3520         * tests/test-expm1l-ieee.c: New file.
3521
3522         New module 'expm1l-ieee'.
3523         * modules/expm1l-ieee: New file.
3524
3525         Tests for module 'expm1f-ieee'.
3526         * modules/expm1f-ieee-tests: New file.
3527         * tests/test-expm1f-ieee.c: New file.
3528
3529         New module 'expm1f-ieee'.
3530         * modules/expm1f-ieee: New file.
3531
3532         Tests for module 'expm1-ieee'.
3533         * modules/expm1-ieee-tests: New file.
3534         * tests/test-expm1-ieee.c: New file.
3535         * tests/test-expm1-ieee.h: New file.
3536
3537         New module 'expm1-ieee'.
3538         * modules/expm1-ieee: New file.
3539         * m4/expm1-ieee.m4: New file.
3540         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3541         whether expm1 works with a minus zero argument. Replace it if not.
3542         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3544         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3545         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3546         (Depends-on): Update conditions.
3547         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3548         AIX problem.
3549
3550 2012-03-06  Bruno Haible  <bruno@clisp.org>
3551
3552         Work around expm1f bug on IRIX 6.5.
3553         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3554         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3555         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3556         not work.
3557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3558         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3559         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3560         (Depends-on): Update conditions.
3561         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3562
3563 2012-03-06  Bruno Haible  <bruno@clisp.org>
3564
3565         Tests for module 'expm1l'.
3566         * modules/expm1l-tests: New file.
3567         * tests/test-expm1l.c: New file.
3568
3569         New module 'expm1l'.
3570         * lib/math.in.h (expm1l): New declaration.
3571         * lib/expm1l.c: New file.
3572         * m4/expm1l.m4: New file.
3573         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3574         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3575         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3576         * modules/expm1l: New file.
3577         * tests/test-math-c++.cc: Check the declaration of expm1l.
3578         * doc/posix-functions/expm1l.texi: Mention the new module.
3579
3580 2012-03-06  Bruno Haible  <bruno@clisp.org>
3581
3582         Tests for module 'expm1f'.
3583         * modules/expm1f-tests: New file.
3584         * tests/test-expm1f.c: New file.
3585
3586         New module 'expm1f'.
3587         * lib/math.in.h (expm1f): New declaration.
3588         * lib/expm1f.c: New file.
3589         * m4/expm1f.m4: New file.
3590         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3591         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3592         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3593         * modules/expm1f: New file.
3594         * tests/test-math-c++.cc: Check the declaration of expm1f.
3595         * doc/posix-functions/expm1f.texi: Mention the new module.
3596
3597 2012-03-06  Bruno Haible  <bruno@clisp.org>
3598
3599         Tests for module 'expm1'.
3600         * modules/expm1-tests: New file.
3601         * tests/test-expm1.c: New file.
3602         * tests/test-expm1.h: New file.
3603
3604         New module 'expm1'.
3605         * lib/math.in.h (expm1): New declaration.
3606         * lib/expm1.c: New file.
3607         * m4/expm1.m4: New file.
3608         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3610         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3611         * modules/expm1: New file.
3612         * tests/test-math-c++.cc: Check the declaration of expm1.
3613         * doc/posix-functions/expm1.texi: Mention the new module.
3614
3615 2012-03-06  Bruno Haible  <bruno@clisp.org>
3616
3617         math: Ensure declarations of math functions.
3618         * modules/acosf (Depends-on): Add 'extensions'.
3619         * modules/asinf (Depends-on): Likewise.
3620         * modules/atan2f (Depends-on): Likewise.
3621         * modules/atanf (Depends-on): Likewise.
3622         * modules/cbrt (Depends-on): Likewise.
3623         * modules/cbrtf (Depends-on): Likewise.
3624         * modules/cbrtl (Depends-on): Likewise.
3625         * modules/copysignf (Depends-on): Likewise.
3626         * modules/copysignl (Depends-on): Likewise.
3627         * modules/cosf (Depends-on): Likewise.
3628         * modules/coshf (Depends-on): Likewise.
3629         * modules/expf (Depends-on): Likewise.
3630         * modules/fabsf (Depends-on): Likewise.
3631         * modules/fabsl (Depends-on): Likewise.
3632         * modules/fmaf (Depends-on): Likewise.
3633         * modules/fmal (Depends-on): Likewise.
3634         * modules/fmodf (Depends-on): Likewise.
3635         * modules/fmodl (Depends-on): Likewise.
3636         * modules/frexpf (Depends-on): Likewise.
3637         * modules/frexpl (Depends-on): Likewise.
3638         * modules/hypot (Depends-on): Likewise.
3639         * modules/hypotf (Depends-on): Likewise.
3640         * modules/hypotl (Depends-on): Likewise.
3641         * modules/ldexpf (Depends-on): Likewise.
3642         * modules/ldexpl (Depends-on): Likewise.
3643         * modules/log10f (Depends-on): Likewise.
3644         * modules/log10l (Depends-on): Likewise.
3645         * modules/log1p (Depends-on): Likewise.
3646         * modules/logb (Depends-on): Likewise.
3647         * modules/logf (Depends-on): Likewise.
3648         * modules/modff (Depends-on): Likewise.
3649         * modules/modfl (Depends-on): Likewise.
3650         * modules/powf (Depends-on): Likewise.
3651         * modules/remainderf (Depends-on): Likewise.
3652         * modules/remainderl (Depends-on): Likewise.
3653         * modules/rintf (Depends-on): Likewise.
3654         * modules/rintl (Depends-on): Likewise.
3655         * modules/sinf (Depends-on): Likewise.
3656         * modules/sinhf (Depends-on): Likewise.
3657         * modules/sqrtf (Depends-on): Likewise.
3658         * modules/tanf (Depends-on): Likewise.
3659         * modules/tanhf (Depends-on): Likewise.
3660         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3661         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3662         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3663         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3664         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3665         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3666         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3667         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3668         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3669         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3670         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3671         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3672         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3673         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3674         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3675         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3676         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3677         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3678         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3679         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3680         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3681         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3682         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3683         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3684         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3685         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3686         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3687         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3688         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3689         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3690         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3691         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3692         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3693         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3694         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3695         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3696         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3697         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3698         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3699         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3700         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3701
3702 2012-03-06  Bruno Haible  <bruno@clisp.org>
3703
3704         math: Update module names in warnings.
3705         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3706         tanl): Use specific module name in warn-on-use warning.
3707
3708 2012-03-06  Bruno Haible  <bruno@clisp.org>
3709
3710         expl: Simplify computation.
3711         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3712
3713 2012-03-05  Bruno Haible  <bruno@clisp.org>
3714
3715         exp* tests: More tests.
3716         * tests/test-exp.h: New file.
3717         * tests/test-exp.c: Include <float.h> and test-exp.h.
3718         (main): Invoke test_function.
3719         * tests/test-expf.c: Include <float.h> and test-exp.h.
3720         (main): Invoke test_function.
3721         * tests/test-expl.c: Include <float.h> and test-exp.h.
3722         (main): Invoke test_function.
3723         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3724         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3725         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3726         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3727         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3728         (Depends-on): Add 'float'.
3729         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3730
3731         expl: Fix precision of computed result.
3732         * lib/expl.c: Completely rewritten.
3733         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3734         (Maintainer): Add me.
3735         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3736
3737 2012-03-05  Bruno Haible  <bruno@clisp.org>
3738
3739         cbrt* tests: More tests.
3740         * tests/test-cbrt.h: New file.
3741         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3742         (main): Invoke test_function.
3743         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3744         (main): Invoke test_function.
3745         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3746         (main): Invoke test_function.
3747         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3748         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3749         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3750         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3751         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3752         (Depends-on): Add 'float'.
3753         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3754
3755 2012-03-05  Bruno Haible  <bruno@clisp.org>
3756
3757         hypot* tests: More tests.
3758         * tests/test-hypot.h: New file, partially extracted from
3759         tests/test-hypotl.c.
3760         * tests/test-hypot.c: Include test-hypot.h.
3761         (main): Invoke test_function.
3762         * tests/test-hypotf.c: Include test-hypot.h.
3763         (main): Invoke test_function.
3764         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3765         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3766         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3767         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3768         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3769         tests/randomf.c.
3770         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3771         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3772         tests/randoml.c.
3773         (Depends-on): Add 'fpucw', 'float'.
3774         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3775
3776 2012-03-05  Bruno Haible  <bruno@clisp.org>
3777
3778         fpucw: Doc about FreeBSD.
3779         * lib/fpucw.h: Mention FreeBSD in comments.
3780
3781 2012-03-04  Bruno Haible  <bruno@clisp.org>
3782
3783         sqrt* tests: More tests.
3784         * tests/test-sqrt.h: New file.
3785         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3786         (main): Invoke test_function.
3787         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3788         (main): Invoke test_function.
3789         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3790         (main): Invoke test_function.
3791         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3792         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3793         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3794         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3795         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3796         (Depends-on): Add 'float'.
3797         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3798
3799 2012-03-04  Bruno Haible  <bruno@clisp.org>
3800
3801         remainder* tests: More tests.
3802         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3803         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3804         (main): Invoke test_function.
3805         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3806         (main): Invoke test_function.
3807         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3808         (main): Invoke test_function.
3809         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3810         tests/randomd.c.
3811         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3812         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3813         tests/randomf.c.
3814         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3815         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3816         tests/randoml.c.
3817         (Depends-on): Add 'float'.
3818         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3819
3820 2012-03-04  Bruno Haible  <bruno@clisp.org>
3821
3822         remainder, remainderf, remainderl: Fix computation for large quotients.
3823         * lib/remainder.c: Completely rewritten.
3824         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3825         USE_FLOAT.
3826         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3827         USE_LONG_DOUBLE.
3828         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3829         isnand, isinf. Remove round, fma.
3830         * modules/remainderf (Files): Add lib/remainder.c.
3831         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3832         Remove roundf, fmaf.
3833         * modules/remainderl (Files): Add lib/remainder.c.
3834         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3835         isinf. Remove roundl, fmal.
3836         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3837         REMAINDER_LIBM.
3838         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3839         REMAINDERF_LIBM.
3840         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3841         REMAINDERL_LIBM.
3842
3843 2012-03-04  Bruno Haible  <bruno@clisp.org>
3844
3845         fmod* tests: More tests.
3846         * tests/test-fmod.h (my_ldexp): New function.
3847         (test_function): Reduce amount of random numbers to test. Add tests
3848         of very large quotients x / y.
3849         * tests/test-fmod.c (MAX_EXP): New macro.
3850         * tests/test-fmodf.c (MAX_EXP): Likewise.
3851         * tests/test-fmodl.c (MAX_EXP): Likewise.
3852
3853 2012-03-04  Bruno Haible  <bruno@clisp.org>
3854
3855         fmod, fmodl: Fix computation for large quotients x / y.
3856         * lib/fmod.c: Completely rewritten.
3857         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3858         USE_LONG_DOUBLE.
3859         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3860         isnand. Remove fma.
3861         * modules/fmodl (Files): Add lib/fmod.c.
3862         (Depends-on): Add float, isfinite, signbit, fabsl,
3863         frexpl, ldexpl, isnanl. Remove fma.
3864         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3865         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3866
3867 2012-03-03  Bruno Haible  <bruno@clisp.org>
3868
3869         fmod* tests: More tests.
3870         * tests/test-fmod.h: New file.
3871         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3872         (main): Invoke test_function.
3873         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3874         (main): Invoke test_function.
3875         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3876         (main): Invoke test_function.
3877         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3878         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3879         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3880         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3881         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3882         (Depends-on): Add 'float'.
3883         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3884
3885 2012-03-03  Bruno Haible  <bruno@clisp.org>
3886
3887         rint* tests: More tests.
3888         * tests/test-rint.h: New file, partially extracted from
3889         tests/test-rintl.c.
3890         * tests/test-rint.c: Include test-rint.h.
3891         (main): Invoke test_function.
3892         * tests/test-rintf.c: Include test-rint.h.
3893         (main): Invoke test_function.
3894         * tests/test-rintl.c: Include test-rint.h.
3895         (main): Invoke test_function.
3896         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3897         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3898         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3899         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3900         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3901         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3902
3903 2012-03-03  Bruno Haible  <bruno@clisp.org>
3904
3905         modf* tests: More tests.
3906         * tests/test-modf.h: New file.
3907         * tests/test-modf.c: Include <float.h> and test-modf.h.
3908         (main): Invoke test_function.
3909         * tests/test-modff.c: Include <float.h> and test-modf.h.
3910         (main): Invoke test_function.
3911         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3912         (main): Invoke test_function.
3913         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3914         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3915         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3916         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3917         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3918         (Depends-on): Add 'float'.
3919         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3920
3921 2012-03-03  Bruno Haible  <bruno@clisp.org>
3922
3923         fabs* tests: More tests.
3924         * tests/test-fabs.h: New file, partially extracted from
3925         tests/test-fabsl.c.
3926         * tests/test-fabs.c (RANDOM): New macro.
3927         * tests/test-fabsf.c (RANDOM): New macro.
3928         * tests/test-fabsl.c (RANDOM): New macro.
3929         * modules/fabs-tests (Files): Add tests/randomd.c.
3930         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3931         * modules/fabsf-tests (Files): Add tests/randomf.c.
3932         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3933         * modules/fabsl-tests (Files): Add tests/randoml.c.
3934         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3935
3936 2012-03-03  Bruno Haible  <bruno@clisp.org>
3937
3938         ldexp* tests: More tests.
3939         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3940         * tests/test-ldexp.c (RANDOM): New macro.
3941         * tests/test-ldexpf.c (RANDOM): New macro.
3942         * tests/test-ldexpl.c (RANDOM): New macro.
3943         * modules/ldexp-tests (Files): Add tests/randomd.c.
3944         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3945         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3946         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3947         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3948         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3949
3950 2012-03-03  Bruno Haible  <bruno@clisp.org>
3951
3952         frexp* tests: More tests.
3953         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3954         * tests/test-frexp.c (RANDOM): New macro.
3955         * tests/test-frexpf.c (RANDOM): New macro.
3956         * tests/test-frexpl.c (RANDOM): New macro.
3957         * modules/frexp-tests (Files): Add tests/randomd.c.
3958         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3959         * modules/frexpf-tests (Files): Add tests/randomf.c.
3960         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3961         * modules/frexpl-tests (Files): Add tests/randoml.c.
3962         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3963
3964 2012-03-03  Bruno Haible  <bruno@clisp.org>
3965
3966         Support for pseudo-random numbers in tests.
3967         * tests/randomf.c: New file.
3968         * tests/randomd.c: New file.
3969         * tests/randoml.c: New file.
3970         * tests/macros.h (randomf, randomd, randoml): New declarations.
3971
3972 2012-03-03  Bruno Haible  <bruno@clisp.org>
3973
3974         frexp* tests: Refactor.
3975         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3976         * tests/test-frexp.c: Include and use it.
3977         * tests/test-frexpf.c: Likewise.
3978         * tests/test-frexpl.c: Likewise.
3979         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3980         * modules/frexpf-tests (Files): Likewise.
3981         * modules/frexpl-tests (Files): Likewise.
3982
3983 2012-03-02  Jim Meyering  <meyering@redhat.com>
3984
3985         maint: don't specify XZ_OPT=-9ev in dist-related rule
3986         Using xz's -9 option is warranted only if you have a very large
3987         tarball (see xz's documentation for the sizes vs. presets), and
3988         requires 64MiB of memory at decompression time.
3989         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3990         Automake's default of just "-e" is fine.  Override on a
3991         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3992
3993 2012-03-01  Eric Blake  <eblake@redhat.com>
3994
3995         maint.mk: allow announcement for non-gnulib project
3996         * maint.mk (announcement): Skip gnulib version if not used.
3997
3998 2012-03-01  Jim Meyering  <meyering@redhat.com>
3999
4000         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4001         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4002         envvar settings cannot interfere.  Otherwise, setting envvars like
4003         prohibit=foo require=bar, etc. would cause spurious test failures.
4004
4005 2012-03-01  Eric Blake  <eblake@redhat.com>
4006
4007         maint.mk: add per-line exclusions to prohibitions
4008         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4009         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4010         (sc_const_long_option): Use it.
4011
4012 2012-03-01  Bruno Haible  <bruno@clisp.org>
4013
4014         Tests for module 'expl-ieee'.
4015         * modules/expl-ieee-tests: New file.
4016         * tests/test-expl-ieee.c: New file.
4017
4018         New module 'expl-ieee'.
4019         * modules/expl-ieee: New file.
4020
4021         Tests for module 'exp-ieee'.
4022         * modules/exp-ieee-tests: New file.
4023         * tests/test-exp-ieee.c: New file.
4024
4025         New module 'exp-ieee'.
4026         * modules/exp-ieee: New file.
4027
4028         Tests for module 'expf-ieee'.
4029         * modules/expf-ieee-tests: New file.
4030         * tests/test-expf-ieee.c: New file.
4031         * tests/test-exp-ieee.h: New file.
4032
4033         New module 'expf-ieee'.
4034         * modules/expf-ieee: New file.
4035
4036 2012-02-29  Bruno Haible  <bruno@clisp.org>
4037
4038         cbrtl-ieee: Work around test failure on IRIX 6.5.
4039         * m4/cbrtl-ieee.m4: New file.
4040         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4041         test whether cbrtl works with a minus zero argument. Replace it if not.
4042         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4044         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4045         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4046         (Depends-on): Update conditions.
4047         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4048         m4/signbit.m4.
4049         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4050         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4051         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4052
4053         Tests for module 'cbrtl-ieee'.
4054         * modules/cbrtl-ieee-tests: New file.
4055         * tests/test-cbrtl-ieee.c: New file.
4056
4057         New module 'cbrtl-ieee'.
4058         * modules/cbrtl-ieee: New file.
4059
4060         Tests for module 'cbrt-ieee'.
4061         * modules/cbrt-ieee-tests: New file.
4062         * tests/test-cbrt-ieee.c: New file.
4063
4064         New module 'cbrt-ieee'.
4065         * modules/cbrt-ieee: New file.
4066
4067         Tests for module 'cbrtf-ieee'.
4068         * modules/cbrtf-ieee-tests: New file.
4069         * tests/test-cbrtf-ieee.c: New file.
4070         * tests/test-cbrt-ieee.h: New file.
4071
4072         New module 'cbrtf-ieee'.
4073         * modules/cbrtf-ieee: New file.
4074
4075 2012-02-29  Bruno Haible  <bruno@clisp.org>
4076
4077         cbrtf: Work around bug in IRIX 6.5 system function.
4078         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4079         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4080         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4081         work.
4082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4083         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4084         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4085         (Depends-on): Update conditions.
4086         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4087
4088 2012-02-29  Bruno Haible  <bruno@clisp.org>
4089
4090         Tests for module 'cbrtl'.
4091         * modules/cbrtl-tests: New file.
4092         * tests/test-cbrtl.c: New file.
4093
4094         New module 'cbrtl'.
4095         * lib/math.in.h (cbrtl): New declaration.
4096         * lib/cbrtl.c: New file.
4097         * m4/cbrtl.m4: New file.
4098         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4100         HAVE_DECL_CBRTL.
4101         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4102         HAVE_DECL_CBRTL.
4103         * modules/cbrtl: New file.
4104         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4105         * doc/posix-functions/cbrtl.texi: Mention the new module.
4106
4107 2012-02-29  Bruno Haible  <bruno@clisp.org>
4108
4109         Tests for module 'cbrtf'.
4110         * modules/cbrtf-tests: New file.
4111         * tests/test-cbrtf.c: New file.
4112
4113         New module 'cbrtf'.
4114         * lib/math.in.h (cbrtf): New declaration.
4115         * lib/cbrtf.c: New file.
4116         * m4/cbrtf.m4: New file.
4117         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4119         HAVE_DECL_CBRTF.
4120         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4121         HAVE_DECL_CBRTF.
4122         * modules/cbrtf: New file.
4123         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4124         * doc/posix-functions/cbrtf.texi: Mention the new module.
4125
4126 2012-02-29  Bruno Haible  <bruno@clisp.org>
4127
4128         cbrt: Provide replacement on MSVC and Minix.
4129         * lib/math.in.h (cbrt): New declaration.
4130         * lib/cbrt.c: New file.
4131         * m4/cbrt.m4: New file.
4132         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4134         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4135         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4136         (Depends-on): Add dependencies.
4137         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4138         * tests/test-math-c++.cc: Check the declaration of cbrt.
4139         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4140         replacement.
4141
4142 2012-02-29  Bruno Haible  <bruno@clisp.org>
4143
4144         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4145         * m4/hypotl-ieee.m4: New file.
4146         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4147         test whether hypotl works with mixed NaN and Infinity arguments.
4148         Replace it if not.
4149         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4150         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4151         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4152         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4153         (Depends-on): Update conditions.
4154         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4155         (Depends-on): Add hypot-ieee.
4156         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4157         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4158
4159         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4160         * m4/hypotf-ieee.m4: New file.
4161         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4162         test whether hypotf works with mixed NaN and Infinity arguments.
4163         Replace it if not.
4164         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4165         (Depends-on): Add hypot-ieee.
4166         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4167         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4168
4169         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4170         * lib/math.in.h (hypot): New declaration.
4171         * lib/hypot.c: New file.
4172         * m4/hypot-ieee.m4: New file.
4173         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4174         whether hypot works with mixed NaN and Infinity arguments. Replace it
4175         if not.
4176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4177         REPLACE_HYPOT.
4178         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4179         * modules/hypot (Files): Add lib/hypot.c.
4180         (Depends-on): Add dependencies.
4181         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4182         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4183         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4184         * tests/test-math-c++.cc: Check the declaration of hypot.
4185         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4186
4187         Tests for module 'hypotl-ieee'.
4188         * modules/hypotl-ieee-tests: New file.
4189         * tests/test-hypotl-ieee.c: New file.
4190
4191         New module 'hypotl-ieee'.
4192         * modules/hypotl-ieee: New file.
4193
4194         Tests for module 'hypot-ieee'.
4195         * modules/hypot-ieee-tests: New file.
4196         * tests/test-hypot-ieee.c: New file.
4197
4198         New module 'hypot-ieee'.
4199         * modules/hypot-ieee: New file.
4200
4201         Tests for module 'hypotf-ieee'.
4202         * modules/hypotf-ieee-tests: New file.
4203         * tests/test-hypotf-ieee.c: New file.
4204         * tests/test-hypot-ieee.h: New file.
4205
4206         New module 'hypotf-ieee'.
4207         * modules/hypotf-ieee: New file.
4208
4209 2012-02-29  Bruno Haible  <bruno@clisp.org>
4210
4211         Remove unused variables.
4212         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4213         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4214         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4215         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4216
4217 2012-02-29  Eric Blake  <eblake@redhat.com>
4218
4219         termios: fix pid_t always, not just for tcgetsid
4220         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4221         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4222         just when building tcgetsid.
4223
4224 2012-02-29  Bruno Haible  <bruno@clisp.org>
4225
4226         Tests for module 'hypotl'.
4227         * modules/hypotl-tests: New file.
4228         * tests/test-hypotl.c: New file.
4229
4230         New module 'hypotl'.
4231         * lib/math.in.h (hypotl): New declaration.
4232         * lib/hypotl.c: New file.
4233         * m4/hypotl.m4: New file.
4234         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4236         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4237         * modules/hypotl: New file.
4238         * tests/test-math-c++.cc: Check the hypotl declaration.
4239         * doc/posix-functions/hypotl.texi: Mention the new module.
4240
4241 2012-02-29  Eric Blake  <eblake@redhat.com>
4242
4243         tcgetsid: fix cygwin header bug
4244         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4245
4246         docs: update cygwin progress
4247         * doc/posix-functions/llround.texi (llround): Added in cygwin
4248         1.7.8.
4249         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4250         * doc/glibc-functions/program_invocation_name.texi
4251         (program_invocation_name): Likewise.
4252         * doc/glibc-functions/program_invocation_short_name.texi
4253         (program_invocation_short_name): Likewise.
4254         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4255         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4256         Likewise.
4257         * doc/posix-functions/pthread_spin_destroy.texi
4258         (pthread_spin_destroy): Added in cygwin 1.7.10.
4259         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4260         Likewise.
4261         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4262         Likewise.
4263         * doc/posix-functions/pthread_spin_trylock.texi
4264         (pthread_spin_trylock): Likewise.
4265         * doc/posix-functions/pthread_spin_unlock.texi
4266         (pthread_spin_unlock): Likewise.
4267         * doc/posix-functions/pthread_setschedprio.texi
4268         (pthread_setschedprio): Likewise.
4269         * doc/posix-functions/pthread_attr_getstack.texi
4270         (pthread_attr_getstack): Likewise.
4271         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4272         (pthread_attr_getstackaddr): Likewise.
4273         * doc/glibc-functions/pthread_getattr_np.texi
4274         (pthread_getattr_np): Likewise.
4275         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4276         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4277         * doc/posix-functions/clock_settime.texi (clock_settime):
4278         Likewise.
4279         * doc/posix-functions/pthread_attr_getguardsize.texi
4280         (pthread_attr_getguardsize): Likewise.
4281         * doc/posix-functions/pthread_attr_setguardsize.texi
4282         (pthread_attr_setguardsize): Likewise.
4283         * doc/posix-functions/pthread_attr_setstack.texi
4284         (pthread_attr_setstack): Likewise.
4285         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4286         (pthread_attr_setstackaddr): Likewise.
4287         * doc/posix-functions/clock_getcpuclockid.texi
4288         (clock_getcpuclockid): Likewise.
4289         * doc/posix-functions/pthread_getcpuclockid.texi
4290         (pthread_getcpuclockid): Likewise.
4291         * doc/glibc-functions/error.texi (error): Likewise.
4292         * doc/glibc-functions/error_at_line.texi (error_at_line):
4293         Likewise.
4294         * doc/glibc-functions/error_message_count.texi
4295         (error_message_count): Likewise.
4296         * doc/glibc-functions/error_one_per_line.texi
4297         (error_one_per_line): Likewise.
4298         * doc/glibc-functions/error_print_progname.texi
4299         (error_print_progname): Likewise.
4300         * doc/posix-functions/pthread_condattr_getclock.texi
4301         (pthread_condattr_getclock): Likewise.
4302         * doc/posix-functions/pthread_condattr_setclock.texi
4303         (pthread_condattr_setclock): Likewise.
4304         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4305         Likewise.
4306         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4307         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4308         * doc/glibc-functions/get_current_dir_name.texi
4309         (get_current_dir_name): Likewise.
4310         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4311         Likewise.
4312         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4313         wrong return type.
4314         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4315         1.7.11.
4316
4317 2012-02-29  Bruno Haible  <bruno@clisp.org>
4318
4319         Tests for module 'hypotf'.
4320         * modules/hypotf-tests: New file.
4321         * tests/test-hypotf.c: New file.
4322
4323         New module 'hypotf'.
4324         * lib/math.in.h (hypotf): New declaration.
4325         * lib/hypotf.c: New file.
4326         * m4/hypotf.m4: New file.
4327         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4328         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4329         REPLACE_HYPOTF.
4330         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4331         REPLACE_HYPOTF.
4332         * modules/hypotf: New file.
4333         * tests/test-math-c++.cc: Check the hypotf declaration.
4334         * doc/posix-functions/hypotf.texi: Mention the new module.
4335
4336         hypot: Prepare for hypotf module.
4337         * m4/hypot.m4: New file.
4338         * modules/hypot (Files): Add m4/hypot.m4.
4339         (configure.ac): Invoke gl_FUNC_HYPOT.
4340
4341 2012-02-29  Bruno Haible  <bruno@clisp.org>
4342
4343         hypot tests: More tests.
4344         * tests/test-hypot.c: Include <float.h>.
4345         (main): Add tests about overflow and underflow.
4346
4347 2012-02-29  Bruno Haible  <bruno@clisp.org>
4348
4349         math code: Add comments.
4350         * lib/acosl.c: Add comment about related glibc source files.
4351         * lib/asinl.c: Likewise.
4352         * lib/atanl.c: Likewise.
4353         * lib/expl.c: Likewise.
4354         * lib/logl.c: Likewise.
4355         * lib/sincosl.c: Likewise.
4356         * lib/sinl.c: Likewise.
4357         * lib/tanl.c: Likewise.
4358         * lib/trigl.c: Likewise.
4359         * lib/cosl.c: Likewise. Fix comments.
4360
4361 2012-02-28  Bruno Haible  <bruno@clisp.org>
4362
4363         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4364         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4365         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4366         HUGE_VALL are defined.
4367         (numeric_equald): Renamed from numeric_equal.
4368         (numeric_equalf, numeric_equall): New functions.
4369         (main): Check also HUGE_VALF, HUGE_VALL.
4370         * modules/math-tests (Files): Add tests/macros.h.
4371         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4372         HUGE_VALL.
4373
4374 2012-02-28  Bruno Haible  <bruno@clisp.org>
4375
4376         doc: Move ISO C11 feature notes into POSIX chapters.
4377         * doc/posix-functions/aligned_alloc.texi: Renamed from
4378         doc/glibc-functions/aligned_alloc.texi.
4379         * doc/posix-functions/quick_exit.texi: Renamed from
4380         doc/glibc-functions/quick_exit.texi.
4381         * doc/posix-headers/uchar.texi: Renamed from
4382         doc/glibc-headers/uchar.texi.
4383         * doc/posix-functions/c16rtomb.texi: Renamed from
4384         doc/glibc-functions/c16rtomb.texi.
4385         * doc/posix-functions/c32rtomb.texi: Renamed from
4386         doc/glibc-functions/c32rtomb.texi.
4387         * doc/posix-functions/mbrtoc16.texi: Renamed from
4388         doc/glibc-functions/mbrtoc16.texi.
4389         * doc/posix-functions/mbrtoc32.texi: Renamed from
4390         doc/glibc-functions/mbrtoc32.texi.
4391         * doc/gnulib.texi: Update.
4392         (Glibc uchar.h): Remove section.
4393         Suggested by Eric Blake.
4394
4395 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4396
4397         stdnoreturn: port to MSVC better
4398         MSVC standard headers use __declspec(noreturn), so #define noreturn
4399         to empty on that platform.  Reported by Bruno Haible in
4400         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4401         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4402         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4403
4404 2012-02-28  Bruno Haible  <bruno@clisp.org>
4405
4406         doc: Mention new glibc headers and functions.
4407         * doc/glibc-headers/uchar.texi: New file.
4408         * doc/glibc-functions/aligned_alloc.texi: New file.
4409         * doc/glibc-functions/c16rtomb.texi: New file.
4410         * doc/glibc-functions/c32rtomb.texi: New file.
4411         * doc/glibc-functions/clock_adjtime.texi: New file.
4412         * doc/glibc-functions/fanotify_init.texi: New file.
4413         * doc/glibc-functions/fanotify_mark.texi: New file.
4414         * doc/glibc-functions/inet6_opt_append.texi: New file.
4415         * doc/glibc-functions/inet6_opt_find.texi: New file.
4416         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4417         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4418         * doc/glibc-functions/inet6_opt_init.texi: New file.
4419         * doc/glibc-functions/inet6_opt_next.texi: New file.
4420         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4421         * doc/glibc-functions/inet6_rth_add.texi: New file.
4422         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4423         * doc/glibc-functions/inet6_rth_init.texi: New file.
4424         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4425         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4426         * doc/glibc-functions/inet6_rth_space.texi: New file.
4427         * doc/glibc-functions/login.texi: New file.
4428         * doc/glibc-functions/mbrtoc16.texi: New file.
4429         * doc/glibc-functions/mbrtoc32.texi: New file.
4430         * doc/glibc-functions/name_to_handle_at.texi: New file.
4431         * doc/glibc-functions/ntp_gettimex.texi: New file.
4432         * doc/glibc-functions/open_by_handle_at.texi: New file.
4433         * doc/glibc-functions/prlimit.texi: New file.
4434         * doc/glibc-functions/process_vm_readv.texi: New file.
4435         * doc/glibc-functions/process_vm_writev.texi: New file.
4436         * doc/glibc-functions/recvmmsg.texi: New file.
4437         * doc/glibc-functions/scandirat.texi: New file.
4438         * doc/glibc-functions/sendmmsg.texi: New file.
4439         * doc/glibc-functions/setns.texi: New file.
4440         * doc/glibc-functions/timespec_get.texi: New file.
4441         * doc/gnulib.texi: Include them.
4442         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4443         sections.
4444         Reported by Eric Blake.
4445
4446 2012-02-28  Bruno Haible  <bruno@clisp.org>
4447
4448         Avoid compilation errors with MSVC option -fp:strict.
4449         * lib/floor.c: Use MSVC specific pragma fenv_access.
4450         * lib/ceil.c: Likewise.
4451         * lib/trunc.c: Likewise.
4452         * lib/round.c: Likewise.
4453         * lib/rint.c: Likewise.
4454         * lib/fma.c: Likewise.
4455         * lib/integer_length.c: Likewise.
4456         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4457         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4458         * tests/test-floor2.c: Likewise.
4459         * tests/test-floorf2.c: Likewise.
4460         * tests/test-ceil2.c: Likewise.
4461         * tests/test-ceilf2.c: Likewise.
4462         * tests/test-trunc2.c: Likewise.
4463         * tests/test-truncf2.c: Likewise.
4464         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4465
4466 2012-02-27  Bruno Haible  <bruno@clisp.org>
4467
4468         Tests for module 'sqrtl-ieee'.
4469         * modules/sqrtl-ieee-tests: New file.
4470         * tests/test-sqrtl-ieee.c: New file.
4471
4472         New module 'sqrtl-ieee'.
4473         * modules/sqrtl-ieee: New file.
4474
4475         Tests for module 'sqrt-ieee'.
4476         * modules/sqrt-ieee-tests: New file.
4477         * tests/test-sqrt-ieee.c: New file.
4478
4479         New module 'sqrt-ieee'.
4480         * modules/sqrt-ieee: New file.
4481
4482         Tests for module 'sqrtf-ieee'.
4483         * modules/sqrtf-ieee-tests: New file.
4484         * tests/test-sqrtf-ieee.c: New file.
4485         * tests/test-sqrt-ieee.h: New file.
4486
4487         New module 'sqrtf-ieee'.
4488         * modules/sqrtf-ieee: New file.
4489
4490 2012-02-27  Bruno Haible  <bruno@clisp.org>
4491
4492         remainderl-ieee: Work around test failure on OSF/1.
4493         * m4/remainderl-ieee.m4: New file.
4494         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4495         present, test whether remainderl works with a zero second argument.
4496         Replace it if not.
4497         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4499         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4500         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4501         (Depends-on): Update conditions.
4502         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4503         (Depends-on): Add remainder-ieee.
4504         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4505         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4506         module.
4507
4508         remainderf-ieee: Work around test failure on OSF/1.
4509         * m4/remainderf-ieee.m4: New file.
4510         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4511         present, test whether remainderf works with a zero second argument.
4512         Replace it if not.
4513         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4515         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4516         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4517         (Depends-on): Update conditions.
4518         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4519         (Depends-on): Add remainder-ieee.
4520         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4521         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4522         module.
4523
4524         remainder-ieee: Work around test failure on OSF/1.
4525         * m4/remainder-ieee.m4: New file.
4526         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4527         present, test whether remainder works with a zero second argument.
4528         Replace it if not.
4529         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4531         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4532         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4533         (Depends-on): Update dependencies.
4534         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4535         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4536         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4537
4538         Tests for module 'remainderl-ieee'.
4539         * modules/remainderl-ieee-tests: New file.
4540         * tests/test-remainderl-ieee.c: New file.
4541
4542         New module 'remainderl-ieee'.
4543         * modules/remainderl-ieee: New file.
4544
4545         Tests for module 'remainder-ieee'.
4546         * modules/remainder-ieee-tests: New file.
4547         * tests/test-remainder-ieee.c: New file.
4548
4549         New module 'remainder-ieee'.
4550         * modules/remainder-ieee: New file.
4551
4552         Tests for module 'remainderf-ieee'.
4553         * modules/remainderf-ieee-tests: New file.
4554         * tests/test-remainderf-ieee.c: New file.
4555         * tests/test-remainder-ieee.h: New file.
4556
4557         New module 'remainderf-ieee'.
4558         * modules/remainderf-ieee: New file.
4559
4560 2012-02-27  Bruno Haible  <bruno@clisp.org>
4561
4562         modff, modfl: Fix configure syntax error.
4563         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4564         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4565
4566 2012-02-27  Bruno Haible  <bruno@clisp.org>
4567
4568         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4569         * m4/fmodl-ieee.m4: New file.
4570         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4571         whether fmodl works with zero arguments. Replace it if not.
4572         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4573         (Depends-on): Add fmod-ieee.
4574         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4575         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4576
4577         fmodf-ieee: Work around test failure on OSF/1.
4578         * m4/fmodf-ieee.m4: New file.
4579         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4580         whether fmodf works with zero arguments. Replace it if not.
4581         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4582         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4583         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4584         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4585         (Depends-on): Update dependencies.
4586         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4587         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4588         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4589
4590         fmodf-ieee: Work around test failure on MSVC 9.
4591         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4592         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4593
4594         fmod-ieee: Work around test failures on OSF/1, mingw.
4595         * m4/fmod-ieee.m4: New file.
4596         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4597         whether fmod works with zero arguments. Replace it if not.
4598         * lib/math.in.h (fmod): New declaration.
4599         * lib/fmod.c: New file.
4600         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4602         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4603         * modules/fmod (Files): Add lib/fmod.c.
4604         (Depends-on): Add math, isinf, trunc, fma.
4605         (configure.ac): Arrange to compile lib/fmod.c if needed.
4606         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4607         m4/signbit.m4.
4608         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4609         * tests/test-math-c++.cc: Check the declaration of fmod.
4610         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4611
4612         fmodl-ieee: Fix test failures.
4613         * lib/fmodl.c (fmodl): Treat Inf specially.
4614         * modules/fmodl (Depends-on): Add isinf.
4615
4616         Tests for module 'fmodl-ieee'.
4617         * modules/fmodl-ieee-tests: New file.
4618         * tests/test-fmodl-ieee.c: New file.
4619
4620         New module 'fmodl-ieee'.
4621         * modules/fmodl-ieee: New file.
4622
4623         Tests for module 'fmod-ieee'.
4624         * modules/fmod-ieee-tests: New file.
4625         * tests/test-fmod-ieee.c: New file.
4626
4627         New module 'fmod-ieee'.
4628         * modules/fmod-ieee: New file.
4629
4630         Tests for module 'fmodf-ieee'.
4631         * modules/fmodf-ieee-tests: New file.
4632         * tests/test-fmodf-ieee.c: New file.
4633         * tests/test-fmod-ieee.h: New file.
4634
4635         New module 'fmodf-ieee'.
4636         * modules/fmodf-ieee: New file.
4637
4638 2012-02-27  Bruno Haible  <bruno@clisp.org>
4639
4640         Tests for module 'rintl-ieee'.
4641         * modules/rintl-ieee-tests: New file.
4642         * tests/test-rintl-ieee.c: New file.
4643
4644         New module 'rintl-ieee'.
4645         * modules/rintl-ieee: New file.
4646
4647         Tests for module 'rint-ieee'.
4648         * modules/rint-ieee-tests: New file.
4649         * tests/test-rint-ieee.c: New file.
4650
4651         New module 'rint-ieee'.
4652         * modules/rint-ieee: New file.
4653
4654         Tests for module 'rintf-ieee'.
4655         * modules/rintf-ieee-tests: New file.
4656         * tests/test-rintf-ieee.c: New file.
4657         * tests/test-rint-ieee.h: New file.
4658
4659         New module 'rintf-ieee'.
4660         * modules/rintf-ieee: New file.
4661
4662 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4663
4664         regex: re_search etc. should return -2 when memory exhausted
4665         This bug was uncovered when testing 'grep'.  Without the fix,
4666         re_search and friends return -1 when memory is exhausted, but -1
4667         means no match, and this causes grep to falsely report no-match
4668         instead of memory-exhaustion.  See
4669         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4670         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4671         trouble; this can occur if re_search_internal ran out of memory.
4672
4673 2012-02-26  Bruno Haible  <bruno@clisp.org>
4674
4675         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4676         * m4/modfl-ieee.m4: New file.
4677         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4678         whether modfl works with Inf. Replace it if not.
4679         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4681         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4682         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4683         (Depends-on): Update dependencies.
4684         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4685         m4/signbit.m4.
4686         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4687         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4688
4689         modfl-ieee: Fix dependencies.
4690         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4691
4692         modfl-ieee: Fix test failures.
4693         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4694         * modules/modfl (Depends-on): Add isfinite, isinf.
4695
4696         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4697         * m4/modff-ieee.m4: New file.
4698         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4699         whether modff works with NaN and Inf. Replace it if not.
4700         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4702         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4703         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4704         (Depends-on): Update dependencies.
4705         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4706         m4/signbit.m4.
4707         (Depends-on): Add modf-ieee.
4708         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4709         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4710
4711         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4712         * m4/modf-ieee.m4: New file.
4713         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4714         whether modf works with NaN and Inf. Replace it if not.
4715         * lib/math.in.h (modf): New declaration.
4716         * lib/modf.c: New file.
4717         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4719         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4720         * modules/modf (Files): Add lib/modf.c.
4721         (Depends-on): Add math, isfinite, trunc, isinf.
4722         (configure.ac): Addrange to compile lib/modf.c if needed.
4723         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4724         m4/signbit.m4.
4725         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4726         * tests/test-math-c++.cc: Check the declaration of modf.
4727         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4728
4729         Tests for module 'modfl-ieee'.
4730         * modules/modfl-ieee-tests: New file.
4731         * tests/test-modfl-ieee.c: New file.
4732
4733         New module 'modfl-ieee'.
4734         * modules/modfl-ieee: New file.
4735
4736         Tests for module 'modf-ieee'.
4737         * modules/modf-ieee-tests: New file.
4738         * tests/test-modf-ieee.c: New file.
4739
4740         New module 'modf-ieee'.
4741         * modules/modf-ieee: New file.
4742
4743         Tests for module 'modff-ieee'.
4744         * modules/modff-ieee-tests: New file.
4745         * tests/test-modff-ieee.c: New file.
4746         * tests/test-modf-ieee.h: New file.
4747
4748         New module 'modff-ieee'.
4749         * modules/modff-ieee: New file.
4750
4751 2012-02-26  Bruno Haible  <bruno@clisp.org>
4752
4753         Tests for module 'fabsl-ieee'.
4754         * modules/fabsl-ieee-tests: New file.
4755         * tests/test-fabsl-ieee.c: New file.
4756
4757         New module 'fabsl-ieee'.
4758         * modules/fabsl-ieee: New file.
4759
4760         Tests for module 'fabs-ieee'.
4761         * modules/fabs-ieee-tests: New file.
4762         * tests/test-fabs-ieee.c: New file.
4763
4764         New module 'fabs-ieee'.
4765         * modules/fabs-ieee: New file.
4766
4767         Tests for module 'fabsf-ieee'.
4768         * modules/fabsf-ieee-tests: New file.
4769         * tests/test-fabsf-ieee.c: New file.
4770         * tests/test-fabs-ieee.h: New file.
4771
4772         New module 'fabsf-ieee'.
4773         * modules/fabsf-ieee: New file.
4774
4775 2012-02-26  Bruno Haible  <bruno@clisp.org>
4776
4777         Tests for module 'fmal-ieee'.
4778         * modules/fmal-ieee-tests: New file.
4779         * tests/test-fmal-ieee.c: New file.
4780
4781         New module 'fmal-ieee'.
4782         * modules/fmal-ieee: New file.
4783
4784         Tests for module 'fma-ieee'.
4785         * modules/fma-ieee-tests: New file.
4786         * tests/test-fma-ieee.c: New file.
4787
4788         New module 'fma-ieee'.
4789         * modules/fma-ieee: New file.
4790
4791         Tests for module 'fmaf-ieee'.
4792         * modules/fmaf-ieee-tests: New file.
4793         * tests/test-fmaf-ieee.c: New file.
4794         * tests/test-fma-ieee.h: New file.
4795
4796         New module 'fmaf-ieee'.
4797         * modules/fmaf-ieee: New file.
4798
4799 2012-02-26  Bruno Haible  <bruno@clisp.org>
4800
4801         Tests for module 'ldexpl-ieee'.
4802         * modules/ldexpl-ieee-tests: New file.
4803         * tests/test-ldexpl-ieee.c: New file.
4804
4805         New module 'ldexpl-ieee'.
4806         * modules/ldexpl-ieee: New file.
4807
4808         Tests for module 'ldexp-ieee'.
4809         * modules/ldexp-ieee-tests: New file.
4810         * tests/test-ldexp-ieee.c: New file.
4811
4812         New module 'ldexp-ieee'.
4813         * modules/ldexp-ieee: New file.
4814
4815         Tests for module 'ldexpf-ieee'.
4816         * modules/ldexpf-ieee-tests: New file.
4817         * tests/test-ldexpf-ieee.c: New file.
4818         * tests/test-ldexp-ieee.h: New file.
4819
4820         New module 'ldexpf-ieee'.
4821         * modules/ldexpf-ieee: New file.
4822
4823 2012-02-26  Bruno Haible  <bruno@clisp.org>
4824
4825         Refactor frexp*-ieee tests.
4826         * tests/test-frexp-ieee.h: New file.
4827         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4828         (main): Just call test_function.
4829         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4830         (main): Just call test_function.
4831         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4832         (main): Just call test_function.
4833         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4834         * modules/frexp-ieee-tests (Files): Likewise.
4835         * modules/frexpl-ieee-tests (Files): Likewise.
4836
4837         Tests for module 'frexpl-ieee'.
4838         * modules/frexpl-ieee-tests: New file.
4839         * tests/test-frexpl-ieee.c: New file.
4840
4841         New module 'frexpl-ieee'.
4842         * modules/frexpl-ieee: New file.
4843
4844         Tests for module 'frexp-ieee'.
4845         * modules/frexp-ieee-tests: New file.
4846         * tests/test-frexp-ieee.c: New file.
4847
4848         New module 'frexp-ieee'.
4849         * modules/frexp-ieee: New file.
4850
4851         Tests for module 'frexpf-ieee'.
4852         * modules/frexpf-ieee-tests: New file.
4853         * tests/test-frexpf-ieee.c: New file.
4854
4855         New module 'frexpf-ieee'.
4856         * modules/frexpf-ieee: New file.
4857
4858 2012-02-26  Bruno Haible  <bruno@clisp.org>
4859
4860         roundl-ieee tests: More tests.
4861         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4862         (main): Add tests for [MX] shaded specification in POSIX.
4863         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4864         (Depends-on): Add isnanl-nolibm.
4865
4866         round-ieee tests: More tests.
4867         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4868         (main): Add tests for [MX] shaded specification in POSIX.
4869         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4870         (Depends-on): Add isnand-nolibm.
4871
4872         roundf-ieee tests: More tests.
4873         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4874         (main): Add tests for [MX] shaded specification in POSIX.
4875         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4876         (Depends-on): Add isnanf-nolibm.
4877
4878         truncl-ieee tests: More tests.
4879         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4880         (main): Add tests for [MX] shaded specification in POSIX.
4881         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4882         (Depends-on): Add isnanl-nolibm.
4883
4884         trunc-ieee tests: More tests.
4885         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4886         (main): Add tests for [MX] shaded specification in POSIX.
4887         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4888         (Depends-on): Add isnand-nolibm.
4889
4890         truncf-ieee tests: More tests.
4891         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4892         (main): Add tests for [MX] shaded specification in POSIX.
4893         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4894         (Depends-on): Add isnanf-nolibm.
4895
4896         ceill-ieee tests: More tests.
4897         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4898         (main): Add tests for [MX] shaded specification in POSIX.
4899         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4900         (Depends-on): Add isnanl-nolibm.
4901
4902         ceil-ieee tests: More tests.
4903         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4904         (main): Add tests for [MX] shaded specification in POSIX.
4905         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4906         (Depends-on): Add isnand-nolibm.
4907
4908         ceilf-ieee tests: More tests.
4909         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4910         (main): Add tests for [MX] shaded specification in POSIX.
4911         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4912         (Depends-on): Add isnanf-nolibm.
4913
4914         floorl-ieee tests: More tests.
4915         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4916         (main): Add tests for [MX] shaded specification in POSIX.
4917         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4918         (Depends-on): Add isnanl-nolibm.
4919
4920         floor-ieee tests: More tests.
4921         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4922         (main): Add tests for [MX] shaded specification in POSIX.
4923         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4924         (Depends-on): Add isnand-nolibm.
4925
4926         floorf-ieee tests: More tests.
4927         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4928         (main): Add tests for [MX] shaded specification in POSIX.
4929         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4930         (Depends-on): Add isnanf-nolibm.
4931
4932 2012-02-26  Bruno Haible  <bruno@clisp.org>
4933
4934         fpieee: More comments.
4935         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4936
4937 2012-02-25  Bruno Haible  <bruno@clisp.org>
4938
4939         Tests for module 'log10l'.
4940         * modules/log10l-tests: New file.
4941         * tests/test-log10l.c: New file.
4942         * tests/test-math-c++.cc: Check the declaration of log10l.
4943
4944         New module 'log10l'.
4945         * lib/math.in.h (log10l): New declaration.
4946         * lib/log10l.c: New file.
4947         * m4/log10l.m4: New file.
4948         * modules/log10l: New file.
4949         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4951         HAVE_DECL_LOG10L.
4952         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4953         HAVE_DECL_LOG10L.
4954         * doc/posix-functions/log10l.texi: Mention the new module.
4955
4956 2012-02-25  Bruno Haible  <bruno@clisp.org>
4957
4958         fmodl, remainder*: Avoid wrong results due to rounding errors.
4959         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4960         expected bounds.
4961         * lib/remainderf.c (remainderf): Likewise.
4962         * lib/remainder.c (remainder): Likewise.
4963         * lib/remainderl.c (remainderl): Likewise.
4964
4965 2012-02-25  Bruno Haible  <bruno@clisp.org>
4966
4967         Tests for module 'remainderl'.
4968         * modules/remainderl-tests: New file.
4969         * tests/test-remainderl.c: New file.
4970         * tests/test-math-c++.cc: Check the declaration of remainderl.
4971
4972         New module 'remainderl'.
4973         * lib/math.in.h (remainderl): New declaration.
4974         * lib/remainderl.c: New file.
4975         * m4/remainderl.m4: New file.
4976         * modules/remainderl: New file.
4977         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4979         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4980         HAVE_REMAINDERL.
4981         * doc/posix-functions/remainderl.texi: Mention the new module.
4982
4983 2012-02-25  Bruno Haible  <bruno@clisp.org>
4984
4985         Tests for module 'remainderf'.
4986         * modules/remainderf-tests: New file.
4987         * tests/test-remainderf.c: New file.
4988         * tests/test-math-c++.cc: Check the declaration of remainderf.
4989
4990         New module 'remainderf'.
4991         * lib/math.in.h (remainderf): New declaration.
4992         * lib/remainderf.c: New file.
4993         * m4/remainderf.m4: New file.
4994         * modules/remainderf: New file.
4995         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4997         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4998         HAVE_REMAINDERF.
4999         * doc/posix-functions/remainderf.texi: Mention the new module.
5000
5001 2012-02-25  Bruno Haible  <bruno@clisp.org>
5002
5003         remainder: Support for MSVC.
5004         * lib/math.in.h (remainder): New declaration.
5005         * lib/remainder.c: New file.
5006         * m4/remainder.m4: New file.
5007         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5008         (Depends-on): Add math, round, fma.
5009         (configure.ac): Use results of gl_FUNC_REMAINDER.
5010         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5012         HAVE_DECL_REMAINDER.
5013         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5014         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5015         * tests/test-math-c++.cc: Check the declaration of remainder.
5016         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5017         problems are fixed.
5018
5019 2012-02-25  Bruno Haible  <bruno@clisp.org>
5020
5021         Tests for module 'fmodl'.
5022         * modules/fmodl-tests: New file.
5023         * tests/test-fmodl.c: New file.
5024         * tests/test-math-c++.cc: Check the declaration of fmodl.
5025
5026         New module 'fmodl'.
5027         * lib/math.in.h (fmodl): New declaration.
5028         * lib/fmodl.c: New file.
5029         * m4/fmodl.m4: New file.
5030         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5031         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5032         REPLACE_FMODL.
5033         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5034         REPLACE_FMODL.
5035         * modules/fmodl: New file.
5036         * doc/posix-functions/fmodl.texi: Mention the new module.
5037
5038 2012-02-25  Bruno Haible  <bruno@clisp.org>
5039
5040         Tests for module 'modfl'.
5041         * modules/modfl-tests: New file.
5042         * tests/test-modfl.c: New file.
5043         * tests/test-math-c++.cc: Check the declaration of modfl.
5044
5045         New module 'modfl'.
5046         * lib/math.in.h (modfl): New declaration.
5047         * lib/modfl.c: New file.
5048         * m4/modfl.m4: New file.
5049         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5051         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5052         * modules/modfl: New file.
5053         * doc/posix-functions/modfl.texi: Mention the new module.
5054
5055 2012-02-25  Bruno Haible  <bruno@clisp.org>
5056
5057         Tests for module 'fabsl'.
5058         * modules/fabsl-tests: New file.
5059         * tests/test-fabsl.c: New file.
5060         * tests/test-math-c++.cc: Check the declaration of fabsl.
5061
5062         New module 'fabsl'.
5063         * lib/math.in.h (fabsl): New declaration.
5064         * lib/fabsl.c: New file.
5065         * m4/fabsl.m4: New file.
5066         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5068         REPLACE_FABSL.
5069         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5070         REPLACE_FABSL.
5071         * modules/fabsl: New file.
5072         * doc/posix-functions/fabsl.texi: Mention the new module.
5073
5074 2012-02-25  Bruno Haible  <bruno@clisp.org>
5075
5076         fabs tests: More tests.
5077         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5078         (zero): New variable.
5079         (main): Add tests for signed zero.
5080         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5081
5082         fabsf tests: More tests.
5083         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5084         (zero): New variable.
5085         (main): Add tests for signed zero.
5086         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5087
5088 2012-02-24  Bruno Haible  <bruno@clisp.org>
5089
5090         atanl: Provide function definition on MSVC.
5091         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5092         function pointer.
5093         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5094
5095 2012-02-24  Bruno Haible  <bruno@clisp.org>
5096
5097         acosl: Provide function definition on MSVC.
5098         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5099         function pointer.
5100         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5101
5102 2012-02-24  Bruno Haible  <bruno@clisp.org>
5103
5104         asinl: Provide function definition on MSVC.
5105         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5106         function pointer.
5107         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5108
5109 2012-02-24  Bruno Haible  <bruno@clisp.org>
5110
5111         tanl: Provide function definition on MSVC.
5112         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5113         function pointer.
5114         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5115
5116 2012-02-24  Bruno Haible  <bruno@clisp.org>
5117
5118         cosl: Provide function definition on MSVC.
5119         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5120         function pointer.
5121         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5122
5123 2012-02-24  Bruno Haible  <bruno@clisp.org>
5124
5125         sinl: Provide function definition on MSVC.
5126         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5127         function pointer.
5128         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5129
5130 2012-02-24  Bruno Haible  <bruno@clisp.org>
5131
5132         logl: Provide function definition on MSVC.
5133         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5134         function pointer.
5135         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5136
5137 2012-02-24  Bruno Haible  <bruno@clisp.org>
5138
5139         expl: Provide function definition on MSVC.
5140         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5141         function pointer.
5142         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5143
5144 2012-02-24  Bruno Haible  <bruno@clisp.org>
5145
5146         sqrtl: Provide function definition on MSVC.
5147         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5148         a function pointer.
5149         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5150
5151 2012-02-24  Bruno Haible  <bruno@clisp.org>
5152
5153         ceill: Provide function definition on MSVC.
5154         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5155         used as a function pointer.
5156         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5157
5158 2012-02-24  Bruno Haible  <bruno@clisp.org>
5159
5160         floorl: Provide function definition on MSVC.
5161         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5162         used as a function pointer.
5163         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5164
5165 2012-02-24  Bruno Haible  <bruno@clisp.org>
5166
5167         ceilf: Provide function definition on MSVC.
5168         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5169         used as a function pointer.
5170         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5171
5172 2012-02-24  Bruno Haible  <bruno@clisp.org>
5173
5174         floorf: Provide function definition on MSVC.
5175         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5176         used as a function pointer.
5177         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5178
5179 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5180
5181         stdnoreturn: new module
5182         This implements a replacement for C11's <stdnoreturn.h>.
5183         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5184         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5185         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5186         * tests/test-stdnoreturn.c: New files.
5187
5188 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5189
5190         regex: fix false multibyte matches in some regular expressions
5191         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5192         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5193         * lib/regex_internal.c (re_string_skip_chars):
5194         Fix miscomputation of remain_len that may cause incomplete
5195         multi-byte character and false match.
5196
5197 2012-02-24  Jim Meyering  <meyering@redhat.com>
5198
5199         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5200         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5201         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5202         Remove now-unnecessary str''cmp obfuscation.
5203         Suggested by Akim Demaille.
5204
5205 2012-02-24  Bruno Haible  <bruno@clisp.org>
5206
5207         streq: Rename macro.
5208         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5209         * NEWS: Mention the change.
5210         * lib/mbrtowc.c (mbrtowc): Update.
5211         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5212         * lib/wcwidth.c (wcwidth): Update.
5213         Suggested by Akim Demaille and Jim Meyering.
5214
5215 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         regex: fix typo in definition of MIN
5218         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5219         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5220
5221 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5222             Bruno Haible  <bruno@clisp.org>
5223
5224         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5225         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5226         entries into a stack-allocated buffer directly.
5227         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5228
5229 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5230             Bruno Haible  <bruno@clisp.org>
5231
5232         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5233
5234          - There were several instances of this pattern:
5235
5236              for (;;) {
5237                n = acl (f, GETACLCNT, 0, NULL);
5238                [ allocate an array A of size N ]
5239                if (acl (f, GETACL, n, a) == n)
5240                  break;
5241              }
5242
5243            This loop might never terminate if some other process is constantly
5244            manipulating the file's ACL.  The loop should be rewritten to
5245            terminate.
5246
5247          - The acl (... GETACLNT ...) call is merely an optimization; its value
5248            is merely a hint as to how big to make the array.  A better
5249            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5250            and just guess a reasonably-big size, growing the size and trying
5251            again if it's not large enough.  This guarantees termination, and
5252            saves a system call.
5253
5254         * lib/acl-internal.h: Include <limits.h>.
5255         (MIN, SIZE_MAX): New macros.
5256         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5257         a stack-allocated buffer, and use malloc if it does not fit. Don't
5258         use GETACLCNT.
5259         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5260
5261 2012-02-19  Bruno Haible  <bruno@clisp.org>
5262
5263         acl: Fix endless loop on Solaris with vxfs.
5264         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5265         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5266         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5267         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5268         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5269         Reported by Bill Jones in
5270         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5271
5272 2012-02-19  Bruno Haible  <bruno@clisp.org>
5273
5274         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5275         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5276         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5277         that this function returns 0 in some more cases.
5278
5279 2012-02-19  Bruno Haible  <bruno@clisp.org>
5280
5281         acl: Update doc references.
5282         * doc/acl-resources.txt: Update links to Solaris documentation.
5283
5284 2012-02-19  Bruno Haible  <bruno@clisp.org>
5285
5286         Fix test failure in many locales on Solaris 11.
5287         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5288         'tr' arguments.
5289         * tests/test-pipe-filter-ii1.c (main): Likewise.
5290         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5291         expressions in the C locale.
5292         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5293         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5294
5295 2012-02-19  Bruno Haible  <bruno@clisp.org>
5296
5297         gnulib-tool: Improve usage message.
5298         * gnulib-tool (func_usage): Move doc of --help and --version to the
5299         section "Operation modes".
5300
5301 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5302
5303         README-release: make it easier to execute commands
5304         * top/README-release: break commands out on to separate lines.
5305
5306 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5307
5308         GNUmakefile: simplify detection of unconfigured trees
5309         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5310         whether the tree make is being run from is already configured or
5311         not.  Related simplifications.
5312
5313 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5314
5315         * gnulib-tool (func_usage): Document --help and --version.
5316
5317 2012-02-11  Jim Meyering  <meyering@redhat.com>
5318
5319         bootstrap: don't exit 0 upon gnulib-tool failure
5320         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5321         its exit status, not 0.
5322
5323 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5324
5325         README-release: various improvements
5326         * top/README-release: Give a command to push changes for the
5327         release.  Add "distcheck" to list of other pre-release checks.
5328         Fix instance of "make stable" which should be "make TYPE".
5329
5330 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5331
5332         maint: replace FSF snail-mail addresses with URLs
5333         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5334         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5335         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5336         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5337         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5338         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5339         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5340         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5341         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5342         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5343         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5344         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5345         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5346         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5347         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5348         * lib/glthread/thread.c, lib/glthread/thread.h:
5349         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5350         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5351         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5352         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5353         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5354         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5355         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5356         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5357         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5358         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5359         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5360         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5361         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5362         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5363         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5364         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5365         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5366         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5367         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5368         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5369         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5370         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5371         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5372         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5373         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5374         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5375         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5376         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5377         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5378         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5379         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5380         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5381         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5382         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5383         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5384         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5385         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5386         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5387         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5388         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5389         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5390         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5391         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5392         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5393         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5394         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5395         * tests/test-poll.c, tests/test-quotearg-simple.c:
5396         * tests/test-quotearg.c, tests/test-quotearg.h:
5397         * tests/test-round-ieee.c, tests/test-round1.c:
5398         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5399         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5400         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5401         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5402         * tests/test-strerror.c, tests/test-strerror_r.c:
5403         * tests/test-strsignal.c, tests/test-strverscmp.c:
5404         * tests/test-xmemdup0.c:
5405         Replace FSF snail mail addresses with URLs, as per GNU coding
5406         standards.  See glibc bug
5407         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5408
5409 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5410
5411         README-release: capitalize a word and split a line
5412         * top/README-release: Fix punctuation and spacing.
5413
5414 2012-02-08  Akim Demaille  <demaille@gostai.com>
5415
5416         fatal-signal: use C prototypes (with explicit void).
5417         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5418         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5419
5420 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5421
5422         regex: spelling fix
5423         * lib/regexec.c: spelling fix
5424
5425         regex: rely on stdint.h for SIZE_MAX
5426         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5427
5428 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5429
5430         regex: merge glibc changes
5431
5432         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5433         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5434         (init_word_char): Work even if bitset words are not exactly 32 or
5435         64 bits wide.  Don't assume there are no padding bits.
5436         * lib/regex.c [_LIBC]: Do not include <config.h>.
5437         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5438         and -Wtype-limits.
5439         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5440         needless disagreement with glibc.  All uses changed.  Define it to
5441         1 only if _GNU_SOURCE, to match glibc.
5442         (_REG_RM_NAME): Remove; no longer needed, since the names in
5443         question are now all protected by __USE_GNU.
5444         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5445         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5446         * lib/regex_internal.h (MIN): New macro.
5447
5448         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5449         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5450
5451         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5452         * lib/regex_internal.c (re_string_fetch_byte_case):
5453         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5454         is miscompiled, and it turns out it is because of an incorrect
5455         attribute on re_string_fetch_byte_case.  Unlike
5456         re_string_peek_byte_case, this one is really not pure, it modifies
5457         memory (increments pstr->cur_idx), and with the pure attribute GCC
5458         assumed it doesn't and it cached the presumed value of
5459         regexp->cur_idx in a variable across the
5460          for (;; ++i)
5461            {
5462              if (i >= BRACKET_NAME_BUF_SIZE)
5463                return REG_EBRACK;
5464              if (token->type == OP_OPEN_CHAR_CLASS)
5465                ch = re_string_fetch_byte_case (regexp);
5466              else
5467                ch = re_string_fetch_byte (regexp);
5468              if (re_string_eoi(regexp))
5469                return REG_EBRACK;
5470              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5471                break;
5472              elem->opr.name[i] = ch;
5473            }
5474
5475         2011-11-29 Andreas Schwab <schwab@redhat.com>
5476         * lib/regcomp.c (build_equiv_class):
5477         Fix access after end of search string in regex matcher.
5478
5479         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5480         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5481
5482         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5483         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5484
5485         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5486         * lib/regcomp.c (parse_branch, parse_sub_exp):
5487         More regex memory leak fixes and tests.
5488         (parse_sub_exp, parse_bracket_exp):
5489         Fix memory leak for some invalid regular expressions.
5490
5491         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5492         * lib/regex_internal.c, lib/regexec.c:
5493         Fix unnecessary overallocation due to incomplete character.  When
5494         incomplete characters are found at the end of a string the code
5495         ran amok and allocated lots of memory.  Stricter limits are now in
5496         place.
5497
5498         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5499         * lib/regex.h: Update documentation.
5500
5501         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5502         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5503
5504         2010-05-05 Andreas Schwab <schwab@redhat.com>
5505         * lib/regexec.c (find_collation_sequence_value):
5506         Fix lookup of collation sequence value during regexp matching.
5507
5508         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5509         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5510
5511         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5512         * lib/regex.h: Cleanup namespace.
5513
5514         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5515         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5516
5517         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5518         * lib/regex_internal.h: Prevent some declarations and definitions
5519         to be seen when used in tests.
5520
5521         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5522         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5523         __libc_lock_* macros if not _LIBC.
5524         (struct re_dfa_t): Add lock.
5525
5526 2012-02-07  Eric Blake  <eblake@redhat.com>
5527
5528         maint.mk: also prohibit lower-case @var@
5529         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5530         lower case, like @top_srcdir@.
5531
5532 2012-02-04  Eric Blake  <eblake@redhat.com>
5533
5534         canonicalize: avoid uninitialized memory use
5535         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5536         random '/' left in dest.
5537         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5538
5539 2012-02-04  Bruno Haible  <bruno@clisp.org>
5540
5541         isatty: Fix test failure of ptsname_r on native Windows.
5542         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5543         and don't set errno.
5544         (isatty): Test first whether fd is valid. Set errno when returning 0.
5545
5546 2012-02-04  Bruno Haible  <bruno@clisp.org>
5547
5548         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5549         * tests/test-spawn-pipe-main.c: Include progname.h.
5550         (main): Invoke set_program_name.
5551         * modules/spawn-pipe-tests (Depends-on): Add progname.
5552
5553         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5554         * tests/test-nonblocking-socket-main.c: Include progname.h.
5555         (main): Invoke set_program_name.
5556         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5557
5558         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5559         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5560         (main): Invoke set_program_name.
5561         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5562
5563 2012-02-04  Eric Blake  <eblake@redhat.com>
5564
5565         canonicalize-lgpl: fix // handling
5566         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5567
5568         canonicalize: fix // handling
5569         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5570         /// to //, since only // is special.
5571
5572 2012-02-04  Bruno Haible  <bruno@clisp.org>
5573
5574         ioctl: Fix test failure on native Windows.
5575         * lib/ioctl.c: Include msvc-nothrow.h.
5576         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5577
5578 2012-02-04  Bruno Haible  <bruno@clisp.org>
5579
5580         fsync: Avoid test failure on native Windows.
5581         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5582         read-only.
5583
5584 2012-02-04  Bruno Haible  <bruno@clisp.org>
5585
5586         sys_select: Avoid syntax error on OpenBSD 5.0.
5587         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5588         currently being included, just include the system's <sys/select.h>.
5589
5590 2012-02-04  Bruno Haible  <bruno@clisp.org>
5591
5592         sys_select: Avoid syntax error on OpenBSD 5.0.
5593         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5594         <sys/select.h>, not before.
5595         Reported by Jiri B <jirib@devio.us>.
5596
5597 2012-02-04  Bruno Haible  <bruno@clisp.org>
5598
5599         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5600         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5601         global variables.
5602         * tests/test-get-rusage-data.c (main): Likewise.
5603         Reported by Jim Meyering.
5604
5605 2012-02-04  Bruno Haible  <bruno@clisp.org>
5606
5607         stdioext: Fix last commit.
5608         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5609
5610 2012-02-03  Bruno Haible  <bruno@clisp.org>
5611
5612         stdioext: Add tentative support for Plan9.
5613         * lib/stdio-impl.h: Include <errno.h>.
5614         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5615         * lib/freadable.c (freadable): Likewise.
5616         * lib/fwritable.c (fwritable): Likewise.
5617         * lib/fbufmode.c (fbufmode): Likewise.
5618         * lib/freading.c (freading): Likewise.
5619         * lib/fwriting.c (fwriting): Likewise.
5620         * lib/freadptr.c (freadptr): Likewise.
5621         * lib/freadseek.c (freadptrinc): Likewise.
5622         * lib/freadahead.c (freadahead): Likewise.
5623         * lib/fpurge.c (fpurge): Likewise.
5624         * lib/fseeko.c (rpl_fseeko): Likewise.
5625         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5626         Reported by Jens Staal <staal1978@gmail.com>.
5627
5628 2012-02-02  Jim Meyering  <meyering@redhat.com>
5629
5630         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5631         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5632         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5633         not even to try to add the attribute.  Instead, add a pragma to suppress
5634         the suggestion/warning.
5635
5636 2012-01-31  Karl Berry  <karl@gnu.org>
5637
5638         setstate doc: typo.
5639         * doc/posix-functions/setstate.texi (setstate): { not (.
5640
5641 2012-01-31  Bruno Haible  <bruno@clisp.org>
5642
5643         popen: Make more robust on Windows.
5644         * lib/popen.c: On native Windows, use the _popen based code even if
5645         HAVE_POPEN is set.
5646         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5647         environment variable on native Windows.
5648
5649 2012-01-30  Bruno Haible  <bruno@clisp.org>
5650
5651         pclose: Fix typo.
5652         * lib/stdio.in.h (pclose): Fix typo in warning message.
5653
5654 2012-01-30  Bruno Haible  <bruno@clisp.org>
5655
5656         doc about getlogin_r, setstate.
5657         * doc/posix-functions/getlogin_r.texi: List the incompatible
5658         declaration problem under "not fixed by gnulib".
5659         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5660         problem on Solaris 11 and other platforms.
5661
5662 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5663             Bruno Haible  <bruno@clisp.org>
5664
5665         poll tests: Make test more robust.
5666         * tests/test-poll.c: Include macros.h.
5667         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5668         return value of various I/O operations.
5669         * modules/poll-tests (Files): Add tests/macros.h.
5670
5671 2012-01-30  Bruno Haible  <bruno@clisp.org>
5672
5673         sys_stat: Fix support for mingw64 and MSVC.
5674         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5675         header files already do it.
5676         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5677         stat itself.
5678         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5679
5680 2012-01-30  Bruno Haible  <bruno@clisp.org>
5681
5682         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5684         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5685
5686 2012-01-29  Bruno Haible  <bruno@clisp.org>
5687
5688         quotearg: Fix test failure on MacOS X 10.5.
5689         * tests/test-quotearg-simple.c: Include localcharset.h.
5690         (main): If the locale encoding is not ASCII, bypass the tests of
5691         locale_quoting_style and clocale_quoting_style.
5692         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5693
5694 2012-01-29  Jim Meyering  <meyering@redhat.com>
5695
5696         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5697         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5698         detect uses of canonicalize_file_name.
5699
5700 2012-01-28  Bruno Haible  <bruno@clisp.org>
5701
5702         test-framework-sh: Fix test failure with AIX 7.1 diff.
5703         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5704         in column 1, like 'diff -c' does.
5705         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5706         whether 'diff -u' is used. Instead, test whether the output contains
5707         some '@' character.
5708
5709 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5710
5711         strtoimax: eliminate need for stdint.h, inttypes.h checks
5712         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5713         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5714         the prerequisites for a recently-introduced strtoimax test.
5715         I guess this might cause strtoimax to be replaced when not
5716         strictly necessary on older hosts, but this shouldn't introduce
5717         any bugs and it should make Emacs 'configure' faster on typical
5718         modern hosts.  Problem discovered when importing the latest gnulib
5719         to an Emacs test version.
5720         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5721
5722 2012-01-28  Bruno Haible  <bruno@clisp.org>
5723
5724         sys_time: Override 'struct timeval' on some native Windows platforms.
5725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5726         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5727         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5728         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5729         needs to be overridden.
5730         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5731         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5732         * tests/test-sys_select.c: Check that the tv_sec member has the same
5733         size as a 'time_t'.
5734         * tests/test-sys_time.c: Likewise.
5735         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5736         is set, set also REPLACE_GETTIMEOFDAY.
5737         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5738         convert the resulting 'struct timeval' before returning.
5739         * lib/select.c: Include <sys/time.h>.
5740         (select, timeval): Undefine at the right place.
5741         * modules/select (Depends-on): Add sys_time.
5742         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5743         some Windows platforms.
5744         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5745
5746 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5747
5748         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5749         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5750         an integer.
5751         * lib/fcntl.c (dupfd): Likewise.
5752         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5753
5754 2012-01-28  Bruno Haible  <bruno@clisp.org>
5755
5756         fcntl: Avoid compilation error on native Windows.
5757         * modules/fcntl (Depends-on): Add 'close'.
5758
5759 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5760
5761         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5762         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5763         pointer to an integer.
5764         * lib/poll.c (IsConsoleHandle): Likewise.
5765         * lib/isatty.c (IsConsoleHandle): Likewise.
5766
5767 2012-01-28  Jim Meyering  <meyering@redhat.com>
5768
5769         doc: clarify README-release
5770         * top/README-release: Clarify: you should make a point to have
5771         the latest stable versions of build tools in your PATH, and the
5772         reference to buildreq is solely for its list of tool names, not
5773         for its minimal-functional version numbers.
5774         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5775
5776         maint.mk: use more readable (yet functionally equivalent) quoting
5777         It is common to quote a single quote in a single quoted string like
5778         this:  '...'\''...'.  Unless you know the idiom, that looks like
5779         gibberish, so prefer to double-quote the string when possible.
5780         Then you can use a more readable, lone single quote: "...'..."
5781         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5782         "don't" is more readable than the equivalent 'don'\''t'.
5783         (sc_cast_of_x_alloc_return_value): Likewise.
5784         (sc_cast_of_alloca_return_value): Likewise.
5785         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5786         rather than '\'':'\''.
5787
5788 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5789
5790         stdalign: relax _Alignof and tighten _Alignas test
5791         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5792         as it was too strict: alignof must divide offsetof, but it need
5793         not equal offsetof.  Inspired by Joseph S. Myers's comment
5794         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5795         Conversely, tighten the _Alignas test a bit, as the resulting
5796         alignment must be exactly 8.
5797
5798 2012-01-27  Bruno Haible  <bruno@clisp.org>
5799
5800         stdalign: Document the last change.
5801         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5802
5803 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5804
5805         stdalign: check that alignof and offsetof are consistent
5806         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5807         Problem reported for gnulib by Richard W.M. Jones in
5808         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5809
5810 2012-01-27  Jim Meyering  <meyering@redhat.com>
5811
5812         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5813         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5814         convert a sequence with gaps to the minimal containing range.
5815         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5816         * tests/test-update-copyright.sh: Test for this.
5817         The FSF confirmed it is ok to do this, assuming there is at
5818         least one significant change per year in the affected range:
5819         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5820
5821 2012-01-26  Bruno Haible  <bruno@clisp.org>
5822
5823         pipe2: refine doc about thread-safety
5824         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5825         multithread-safety problem.
5826         * doc/glibc-functions/accept4.texi: Likewise.
5827
5828 2012-01-26  Bruno Haible  <bruno@clisp.org>
5829
5830         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5831         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5832         In the test program, include <fcntl.h>, for O_RDONLY.
5833
5834 2012-01-26  Eric Blake  <eblake@redhat.com>
5835
5836         pipe2: document lack of thread-safety in replacement
5837         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5838         issue in replacement.
5839         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5840         Based on a report by Eric Wong.
5841
5842 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5843             Bruno Haible  <bruno@clisp.org>
5844
5845         malloca: Avoid warnings on x86_64 mingw64.
5846         * lib/malloca.c: Include <stdint.h>.
5847         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5848         * modules/malloca (Depends-on): Add stdint.
5849         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5850
5851 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         obstack: remove __STDC__ conditionals
5854         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5855         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5856         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5857         m4/include_next.m4 as the only gnulib-maintained places that still
5858         refer to __STDC__.
5859
5860 2012-01-24  Bruno Haible  <bruno@clisp.org>
5861
5862         havelib: Modern quoting.
5863         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5864         the recent change to the GNU coding standards.
5865
5866 2012-01-24  Bruno Haible  <bruno@clisp.org>
5867
5868         stdint: Improve support for Android.
5869         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5870         Reported by Simon Josefsson <simon@josefsson.org>.
5871
5872 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5873
5874         doc: omit trailing empty lines from INSTALL etc.
5875         * doc/Makefile (INSTALL): Omit trailing empty lines.
5876         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5877         omit trailing empty lines.  This simplifies the build procedure.
5878
5879 2012-01-23  Jim Meyering  <meyering@redhat.com>
5880
5881         tests: avoid spurious warnings about gl_sockets_startup
5882         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5883         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5884         reporting a "statement with no effect".
5885         * tests/test-accept.c (main): Mark as "(void)".
5886         * tests/test-accept4.c (main): Likewise.
5887         * tests/test-bind.c (main): Likewise.
5888         * tests/test-connect.c (main): Likewise.
5889         * tests/test-getpeername.c (main): Likewise.
5890         * tests/test-getsockname.c (main): Likewise.
5891         * tests/test-getsockopt.c (main): Likewise.
5892         * tests/test-listen.c (main): Likewise.
5893         * tests/test-recv.c (main): Likewise.
5894         * tests/test-recvfrom.c (main): Likewise.
5895         * tests/test-send.c (main): Likewise.
5896         * tests/test-sendto.c (main): Likewise.
5897         * tests/test-setsockopt.c (main): Likewise.
5898         * tests/test-shutdown.c (main): Likewise.
5899
5900 2012-01-21  Bruno Haible  <bruno@clisp.org>
5901
5902         locale-fr.m4: Fix for Android.
5903         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5904         failure of the test program on Bionic libc.
5905
5906 2012-01-21  Jim Meyering  <meyering@redhat.com>
5907
5908         bootstrap: fail when bootstrap_post_import_hook fails
5909         Otherwise, it's far too easy to miss diagnostics emitted
5910         between gnulib-tool's output and that of running configure.
5911         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5912
5913 2012-01-17  Jim Meyering  <meyering@redhat.com>
5914
5915         maint: enable sc_trailing_blank
5916         * build-aux/pmccabe.css: Remove trailing blanks.
5917         * doc/acl-cygwin.txt: Likewise.
5918         * doc/gnu-oids.texi: Likewise
5919         * cfg.mk: Enable sc_trailing_blank.
5920         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5921
5922 2012-01-17  Jim Meyering  <meyering@redhat.com>
5923
5924         maint: enable sc_prohibit_openat_without_use
5925         * cfg.mk: Enable sc_prohibit_openat_without_use.
5926         Exempt lib/selinux-at.c.
5927
5928 2012-01-17  Jim Meyering  <meyering@redhat.com>
5929
5930         maint: enable sc_prohibit_cloexec_without_use
5931         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5932         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5933
5934 2012-01-17  Jim Meyering  <meyering@redhat.com>
5935
5936         maint: enable sc_prohibit_intprops_without_use
5937         * cfg.mk: Enable sc_prohibit_intprops_without_use
5938         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5939
5940 2012-01-17  Jim Meyering  <meyering@redhat.com>
5941
5942         maint: enable sc_prohibit_hash_pjw_without_use
5943         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5944         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5945         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5946         following " (".
5947
5948 2012-01-17  Jim Meyering  <meyering@redhat.com>
5949
5950         maint: enable double-word-prohibiting rule
5951         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5952         Exempt three files.
5953
5954 2012-01-17  Jim Meyering  <meyering@redhat.com>
5955
5956         maint: remove empty lines at EOF, but excluding modules/*
5957         Apply syntax rules at home as well as abroad.  Most changes
5958         were induced by running this:
5959           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5960             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5961             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5962         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5963         Exempt modules/* and two binary files.
5964         Also exempt doc/INSTALL*, per request from Bruno Haible.
5965         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5966         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5967         * doc/Copyright/request-assign.future: Likewise.
5968         * doc/Copyright/request-disclaim.changes: Likewise.
5969         * doc/INSTALL: Likewise.
5970         * doc/INSTALL.ISO: Likewise.
5971         * doc/INSTALL.UTF-8: Likewise.
5972         * doc/acl-cygwin.txt: Likewise.
5973         * doc/acl-resources.txt: Likewise.
5974         * doc/fdl-1.2.texi: Likewise.
5975         * doc/fdl-1.3.texi: Likewise.
5976         * doc/fdl.texi: Likewise.
5977         * lib/argp-pin.c: Likewise.
5978         * lib/round.c: Likewise.
5979         * lib/unicase/u16-totitle.c: Likewise.
5980         * lib/unictype/block_test.c: Likewise.
5981         * lib/uninorm/canonical-decomposition.c: Likewise.
5982         * m4/README: Likewise.
5983         * m4/relocatable-lib.m4: Likewise.
5984         * tests/test-isnand-nolibm.c: Likewise.
5985         * tests/test-isnand.c: Likewise.
5986         * tests/uninorm/NormalizationTest.txt: Likewise.
5987
5988 2012-01-17  Jim Meyering  <meyering@redhat.com>
5989
5990         maint: add framework to run syntax-check rules against gnulib sources
5991         * cfg.mk: New file, to disable all currently-failing tests.
5992         We'll enable them one by one, as they are made to pass.
5993         * Makefile (sc_maint): New rule.
5994
5995 2012-01-21  Bruno Haible  <bruno@clisp.org>
5996
5997         stdint: Add support for Android.
5998         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5999         include the system's <stdint.h>.
6000         Reported by Simon Josefsson <simon@josefsson.org>.
6001
6002 2012-01-19  Jim Meyering  <meyering@redhat.com>
6003
6004         bootstrap: add bootstrap_post_import_hook
6005         Bison does still need something like the gnulib_mk_hook whose
6006         invocation I had to remove along with slurp in commit 767ccd40.
6007         Technically, we could get along without it, but doing so would
6008         have required living with a warning and a mandatory post-bootstrap
6009         automake rerun.
6010         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6011         (bootstrap_post_import_hook): New function.
6012         Invoke it after gnulib-tool --import and before autoreconf.
6013
6014 2012-01-18  Jim Meyering  <meyering@redhat.com>
6015
6016         gitlog-to-changelog: don't use "no_"-prefixed variable name
6017         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6018         to enable both --cluster and --no-cluster.  Change variable name,
6019         s/\$no_cluster/$cluster/, and reverse usage to match.
6020
6021         gitlog-to-changelog: use "||", not "or" in expressions
6022         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6023         expressions.
6024
6025 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6026
6027         gitlog-to-changelog: new option --no-cluster
6028         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6029         clustering of adjacent commit messages.
6030
6031 2012-01-17  Jim Meyering  <meyering@redhat.com>
6032
6033         maint: spell file systems with two words, not one
6034         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6035         two words, not one.
6036
6037 2012-01-16  Jim Meyering  <meyering@redhat.com>
6038
6039         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6040         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6041
6042 2012-01-16  Eric Blake  <eblake@redhat.com>
6043
6044         bootstrap: cater to autoconf 2.59
6045         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6046         is not available.
6047
6048         bootstrap: properly check for libtool
6049         * build-aux/bootstrap (libtoolize): Also run libtool when older
6050         usage is detected.
6051
6052 2012-01-15  Bruno Haible  <bruno@clisp.org>
6053
6054         Improve support for MSVC 9.
6055         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6056         clashes on MSVC.
6057         * lib/fcntl.in.h: Likewise.
6058         * lib/stdlib.in.h: Likewise.
6059         * lib/sys_stat.in.h: Likewise.
6060
6061 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6062
6063         gnupload: we hold the master copy of this script now
6064         For motivation and more information, see:
6065         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6066         * build-aux/gnupload: Make it clear in the heading comments that the
6067         master copy of this file is maintained by gnulib.  Since we are at
6068         it, bump its copyright year and ...
6069         ($scriptversion): ... the date in its version.
6070         ($usage): Patches and bug reports should be sent to the gnulib list,
6071         not the automake one.
6072         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6073         anymore.
6074
6075 2012-01-15  Bruno Haible  <bruno@clisp.org>
6076
6077         Fix module 'random'.
6078         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6079         initstate, setstate are declared.
6080
6081 2012-01-14  Bruno Haible  <bruno@clisp.org>
6082
6083         Tests for module 'random'.
6084         * modules/random-tests: New file.
6085         * tests/test-random.c: New file, based on tests/test-random_r.c.
6086
6087         New module 'random'.
6088         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6089         declarations.
6090         * lib/random.c: New file, based on glibc/stdlib/random.c.
6091         * m4/random.m4: New file.
6092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6093         HAVE_RANDOM.
6094         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6095         * modules/random: New file.
6096         * config/srclist.txt: Add an entry for random.c.
6097         * doc/posix-functions/random.texi: Mention the 'random' module.
6098         * doc/posix-functions/initstate.texi: Likewise.
6099         * doc/posix-functions/setstate.texi: Likewise.
6100         * doc/posix-functions/srandom.texi: Likewise.
6101
6102 2012-01-12  Bruno Haible  <bruno@clisp.org>
6103
6104         random_r: Use common idioms.
6105         * lib/random_r.c: Include <stdlib.h> first.
6106
6107         random_r: Override incompatible API on AIX, OSF/1.
6108         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6109         Override the system function if REPLACE_RANDOM_R is 1.
6110         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6111         and OSF/1, set REPLACE_RANDOM_R.
6112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6113         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6114         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6115         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6116         * doc/glibc-functions/random_r.texi: Likewise.
6117         * doc/glibc-functions/setstate_r.texi: Likewise.
6118
6119         random_r: Support for MSVC 9.
6120         * lib/random_r.c: Include stdint.h, not inttypes.h.
6121
6122 2012-01-12  Eric Blake  <eblake@redhat.com>
6123
6124         inet_ntop: guard extra work by IF_LINT
6125         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6126         better code generation when not checking for warnings.
6127         Suggested by Paul Eggert and Jim Meyering.
6128
6129         strptime: fix regression on mingw
6130         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6131         Fix regression.  Reported by Bruno Haible.
6132
6133 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6134             Bruno Haible  <bruno@clisp.org>
6135
6136         copy-file: add error-code-returning variant.
6137         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6138         (qcopy_file_preserving): New declaration.
6139         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6140         copy_file_preserving. Change return type to 'int'. Don't emit an error
6141         message here.
6142         (copy_file_preserving): New function.
6143         * tests/test-copy-file.c: Include <stdlib.h>.
6144         (main): Test qcopy_file_preserving if the environment variable
6145         NO_STDERR_OUTPUT is set.
6146         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6147         with NO_STDERR_OUTPUT
6148         * tests/test-copy-file-2.sh: Likewise.
6149
6150 2012-01-10  Bruno Haible  <bruno@clisp.org>
6151
6152         copy-file: Use 'quote' module consistently.
6153         * lib/copy-file.c (copy_file_preserving): Use quote().
6154
6155         copy-file: Refactor.
6156         * lib/copy-file.c: Include quote.h.
6157         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6158         message here.
6159         * modules/copy-file (Depends-on): Add quote.
6160
6161         acl: Export qcopy_acl.
6162         * lib/acl.h (qcopy_acl): New declaration.
6163         * lib/copy-acl.c (qcopy_acl): Make non-static.
6164
6165         acl: Rename a local variable.
6166         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6167
6168         acl: Align return values of copy_acl and qcopy_acl.
6169         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6170         maybe < -1.
6171
6172 2012-01-11  Eric Blake  <eblake@redhat.com>
6173
6174         strptime: silence gcc warnings
6175         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6176         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6177         Reported by Daniel P. Berrange.
6178
6179         inet_ntop: silence gcc warning
6180         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6181         Reported by Daniel P. Berrange.
6182
6183 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6184
6185         getloadavg test: skip the test on GNU/Linux without /proc mounted
6186         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6187         file.  When /proc is not mounted, it always fails with ENOENT.
6188         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6189         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6190
6191 2012-01-10  Bruno Haible  <bruno@clisp.org>
6192
6193         regex: Avoid link error on MSVC 9.
6194         * modules/regex (Depends-on): Add wctype.
6195
6196 2012-01-10  Bruno Haible  <bruno@clisp.org>
6197
6198         doc: Mention --with-tests option.
6199         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6200         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6201         --with-tests.
6202         Reported by Reuben Thomas.
6203
6204 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6205
6206         users.txt: order package names lexicographically.
6207         * users.txt: Order package names lexicographically.
6208
6209 2012-01-10  Jim Meyering  <meyering@redhat.com>
6210
6211         maint.mk: fix description in comment
6212         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6213
6214         ignore-value: remove deprecated ignore_ptr function
6215         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6216         * NEWS: Note this.
6217
6218 2012-01-09  Jim Meyering  <meyering@redhat.com>
6219
6220         test-init.sh: avoid a subshell
6221         * tests/test-init.sh: Remove protective subshell.
6222         Suggested by Bernhard Voelker.  While a subshell is normally
6223         required to protect against older shells (Solaris, FreeBSD) that
6224         warn about a missing program before performing redirection, the
6225         shell-selection tests performed by init.sh probably exclude any
6226         offending shell.
6227
6228 2012-01-08  Bruno Haible  <bruno@clisp.org>
6229
6230         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6231         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6232         variable.
6233
6234 2012-01-08  Bruno Haible  <bruno@clisp.org>
6235
6236         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6237         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6238         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6239         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6240         macro.
6241         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6242         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6243         * lib/spawn_faction_addopen.c: Add workaround implementation if
6244         HAVE_WORKING_POSIX_SPAWN.
6245         * modules/spawn (Makefile): Substitute
6246         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6247         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6248         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6249         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6250         (Depends-on): Update conditions.
6251         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6252         the Solaris 11 bug.
6253
6254 2012-01-08  Bruno Haible  <bruno@clisp.org>
6255
6256         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6257         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6258         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6259         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6260         macro.
6261         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6263         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6264         HAVE_WORKING_POSIX_SPAWN.
6265         * modules/spawn (Makefile): Substitute
6266         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6267         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6268         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6269         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6270         (Depends-on): Update conditions.
6271         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6272         the Solaris 11 bug.
6273
6274 2012-01-08  Bruno Haible  <bruno@clisp.org>
6275
6276         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6277         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6278         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6279         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6280         HAVE_WORKING_POSIX_SPAWN.
6281         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6282         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6283         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6284         * lib/spawn_faction_addclose.c: Add workaround implementation if
6285         HAVE_WORKING_POSIX_SPAWN.
6286         * modules/spawn (Makefile): Substitute
6287         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6288         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6289         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6290         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6291         (Depends-on): Update conditions.
6292         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6293         the Solaris 11 bug.
6294
6295 2012-01-08  Bruno Haible  <bruno@clisp.org>
6296
6297         doc: Update for Solaris 11 2011-11.
6298         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6299         * m4/printf.m4: Update comments.
6300
6301 2012-01-08  Bruno Haible  <bruno@clisp.org>
6302
6303         mktime: Avoid compilation error on Solaris 11.
6304         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6305
6306 2012-01-08  Bruno Haible  <bruno@clisp.org>
6307
6308         doc: Small fix.
6309         * doc/posix-headers/nl_types.texi: Correct platforms list.
6310
6311 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6312
6313         Add lgpl-3.0 module.
6314         * MODULES.html.sh (Support for building documentation): Add
6315         lgpl-3.0.
6316         * modules/lgpl-3.0: New file.
6317
6318 2012-01-08  Jim Meyering  <meyering@redhat.com>
6319
6320         select.c: indent with spaces, not TABs
6321         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6322
6323 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6324
6325         quotearg: do not use grave accent for left quote
6326         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6327         locale_quoting_style.
6328         (quotearg_buffer_restyled): Fix example.
6329         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6330
6331 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6332
6333         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6334         Most programs do not have translation catalogs for English and much
6335         less separate catalogs for British and American English.  Drop the
6336         suggestion to translators about these two, and provide it
6337         automatically for Unicode locales.  Like most programs, even those
6338         using American English, we use single quotation marks.  This conflicts
6339         with the American typographic convention, but works better when you
6340         cite the entire error message within double quotes.  It also tries not
6341         to clash with established practice and with what non-gnulib programs
6342         will usually do.
6343         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6344         using an UTF-8 or GB-18030 locale.  The list of other locales with
6345         quotes was provided by Bruno Haible.
6346         (quotearg_buffer_restyled): Adjust instructions to translators.
6347         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6348         text, since this would be wrong when using Unicode.
6349         * modules/quotearg: Depend on c-strcaseeq.
6350
6351 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6352
6353         quotearg: fix Wikipedia link
6354         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6355
6356 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6357
6358         Fix for mingw with MSVC9.
6359         * m4/ld-version-script.m4: Check that compiler rejects version
6360         scripts with syntax errors.  Reported by Bruno Haible
6361         <bruno@clisp.org>.
6362
6363 2012-01-06  Bruno Haible  <bruno@clisp.org>
6364
6365         Talk about "native Windows API", not "Woe32".
6366         * lib/accept4.c: Update comments to mention native Windows.
6367         * lib/execute.c: Likewise.
6368         * lib/fatal-signal.c: Likewise.
6369         * lib/localcharset.c: Likewise.
6370         * lib/nanosleep.c: Likewise.
6371         * lib/nl_langinfo.c: Likewise.
6372         * lib/pclose.c: Likewise.
6373         * lib/pipe-filter-gi.c: Likewise.
6374         * lib/pipe-filter-ii.c: Likewise.
6375         * lib/pipe.c: Likewise.
6376         * lib/pipe2.c: Likewise.
6377         * lib/popen.c: Likewise.
6378         * lib/progreloc.c: Likewise.
6379         * lib/relocatable.c: Likewise.
6380         * lib/sigaction.c: Likewise.
6381         * lib/sigprocmask.c: Likewise.
6382         * lib/spawn-pipe.h: Likewise.
6383         * lib/spawn-pipe.c: Likewise.
6384         * lib/spawni.c: Likewise.
6385         * lib/stat-time.h: Likewise.
6386         * lib/w32spawn.h: Likewise.
6387         * tests/test-isatty.c: Likewise.
6388         * lib/config.charset: More comments.
6389         * doc/gnulib-intro.texi: Mention native Windows.
6390         * doc/posix-functions/_Exit_C99.texi: Likewise.
6391         * doc/posix-headers/fcntl.texi: Likewise.
6392
6393 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6394
6395         argp: Avoid crash if translator uses % characters in a translation.
6396         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6397         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6398
6399 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6400
6401         doc: C11 and C++11 are now official
6402         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6403         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6404         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6405         * modules/stdalign:
6406         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6407
6408 2012-01-06  Bruno Haible  <bruno@clisp.org>
6409
6410         uc-is-grapheme-break tests: Tweak.
6411         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6412         message.
6413
6414 2012-01-06  Bruno Haible  <bruno@clisp.org>
6415
6416         test-init.sh: correct the test for diff -u
6417         * tests/test-init.sh: Also redirect stdout to /dev/null.
6418
6419 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6420
6421         Use ', not `, for quoting output.
6422         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6423         (print_changelog_deltas, get_tool_versions, main program):
6424         * build-aux/git-version-gen:
6425         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6426         * build-aux/move-if-change (help):
6427         * build-aux/useless-if-before-free (usage, main program):
6428         * check-module (parse_module_file, usage)
6429         (find_included_lib_files, check_module):
6430         * lib/argmatch.c (main) [TEST]:
6431         * lib/argp-help.c (_help):
6432         * lib/getopt1.c (main) [TEST]:
6433         * lib/git-merge-changelog.c (usage):
6434         * lib/xstrtol-error.c (xstrtol_error):
6435         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6436         * m4/argz.m4 (gl_FUNC_ARGZ):
6437         * m4/bison.m4 (gl_BISON):
6438         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6439         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6440         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6441         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6442         * m4/gc-random.m4 (gl_GC_RANDOM):
6443         * m4/intl.m4 (gt_CHECK_DECL):
6444         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6445         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6446         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6448         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6449         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6450         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6451         * tests/test-dirname.c (main):
6452         * tests/test-getpass.c (main):
6453         * tests/test-iconvme.c (main):
6454         * tests/test-parse-datetime.c (LOG):
6455         * tests/test-xstrtoimax.sh:
6456         * tests/test-xstrtol.sh:
6457         * tests/test-xstrtoll.sh:
6458         * tests/test-xstrtoumax.sh:
6459         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6460         * top/GNUmakefile (abort-due-to-no-makefile):
6461         Quote 'like this', not `like this', as per the recent change to
6462         the GNU coding standards.
6463
6464 2012-01-05  Bruno Haible  <bruno@clisp.org>
6465
6466         strtoimax: Don't force a replacement on systems where intmax_t is int.
6467         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6468         'intmax_t' is not larger than 'int'.
6469         Reported by Pádraig Brady <P@draigBrady.com>.
6470
6471 2012-01-05  Bruno Haible  <bruno@clisp.org>
6472
6473         doc: Mention NetBSD bugs.
6474         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6475         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6476
6477 2012-01-05  Bruno Haible  <bruno@clisp.org>
6478
6479         strtoumax tests: Enhance tests.
6480         * tests/test-strtoumax.c (main): Add tests for large values.
6481
6482 2012-01-05  Bruno Haible  <bruno@clisp.org>
6483
6484         strtoimax: Work around AIX 5.1 bug.
6485         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6486         definition.
6487         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6488         Set HAVE_STRTOIMAX.
6489         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6490         REPLACE_STRTOIMAX.
6491         * modules/inttypes-incomplete (Makefile.am): Substitute
6492         REPLACE_STRTOIMAX.
6493         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6494         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6495         (Depends-on): Update conditions.
6496         * tests/test-strtoimax.c (main): Add tests for large values.
6497         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6498
6499 2012-01-05  Bruno Haible  <bruno@clisp.org>
6500
6501         inttypes: Modernize.
6502         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6503         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6504         (Makefile.am): Update inttypes.h rule.
6505
6506 2012-01-05  Jim Meyering  <meyering@redhat.com>
6507
6508         init.sh: don't waste a subshell just to redirect stderr
6509         * tests/init.sh: In testing for diff -u and diff -c, use a
6510         stderr-redirecting exec inside `...` rather than a subshell.
6511
6512         test-init.sh: avoid failure on HP-UX 11.00
6513         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6514         resolves to diff -c or cmp.  Reported by Bruno Haible.
6515
6516 2012-01-05  Bruno Haible  <bruno@clisp.org>
6517
6518         Tests for module 'strtoull'.
6519         * modules/strtoull-tests: New file.
6520         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6521
6522 2012-01-05  Bruno Haible  <bruno@clisp.org>
6523
6524         Tests for module 'strtoll'.
6525         * modules/strtoll-tests: New file.
6526         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6527
6528 2012-01-05  Bruno Haible  <bruno@clisp.org>
6529
6530         Tests for module 'strtoul'.
6531         * modules/strtoul-tests: New file.
6532         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6533
6534 2012-01-05  Bruno Haible  <bruno@clisp.org>
6535
6536         Tests for module 'strtol'.
6537         * modules/strtol-tests: New file.
6538         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6539
6540 2012-01-04  Jim Meyering  <meyering@redhat.com>
6541
6542         test-init.sh: accommodate Solaris 5.10's different diff -u output
6543         * tests/test-init.sh: Also exempt @@ lines from the comparison
6544         of diff output, since Solaris 5.10 and GNU diff formats differ.
6545         Reported by Stefano Lattarini.
6546
6547 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6548
6549         test-posixtm: don't assume signed integer wraparound
6550         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6551         after signed integer overflow.  Inspired by (though it may not
6552         fix) Bruno Haible's bug report in
6553         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6554
6555         Spell out "Windows 9x" and "Windows XP".
6556         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6557         "Windows 9x" and "WinXP" with "Windows XP".
6558
6559 2012-01-04  Jim Meyering  <meyering@redhat.com>
6560
6561         test-vc-list-files-cvs.sh: remove obsolete comment
6562         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6563         double exit.  Now that's all encapsulated via skip_ and Exit.
6564
6565 2012-01-04  Bruno Haible  <bruno@clisp.org>
6566
6567         Talk about "native Windows API", not "Win32".
6568         * lib/classpath.c: Update comments to mention native Windows.
6569         * lib/csharpexec.c: Likewise.
6570         * lib/dup2.c: Likewise.
6571         * lib/error.c: Likewise.
6572         * lib/fcntl.c: Likewise.
6573         * lib/filename.h: Likewise.
6574         * lib/findprog.c: Likewise.
6575         * lib/get-rusage-as.c: Likewise.
6576         * lib/get-rusage-data.c: Likewise.
6577         * lib/getpagesize.c: Likewise.
6578         * lib/javaexec.c: Likewise.
6579         * lib/msvc-inval.c: Likewise.
6580         * lib/msvc-nothrow.c: Likewise.
6581         * lib/nanosleep.c: Likewise.
6582         * lib/nonblocking.c: Likewise.
6583         * lib/printf-parse.c: Likewise.
6584         * lib/setlocale.c: Likewise.
6585         * lib/sigaction.c: Likewise.
6586         * lib/strerror_r.c: Likewise.
6587         * lib/tmpdir.c: Likewise.
6588         * lib/vasnprintf.c: Likewise.
6589         * lib/w32spawn.h: Likewise.
6590         * lib/waitpid.c: Likewise.
6591         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6592         * m4/locale-ar.m4: Likewise.
6593         * m4/locale-fr.m4: Likewise.
6594         * m4/locale-ja.m4: Likewise.
6595         * m4/locale-tr.m4: Likewise.
6596         * m4/locale-zh.m4: Likewise.
6597         * m4/printf.m4: Likewise.
6598         * tests/test-cloexec.c: Likewise.
6599         * tests/test-copy-acl.sh: Likewise.
6600         * tests/test-copy-file.sh: Likewise.
6601         * tests/test-file-has-acl.sh: Likewise.
6602         * tests/test-set-mode-acl.sh: Likewise.
6603         * tests/test-dup-safer.c: Likewise.
6604         * tests/test-dup2.c: Likewise.
6605         * tests/test-dup3.c: Likewise.
6606         * tests/test-fcntl.c: Likewise.
6607         * tests/test-nonblocking-pipe.h: Likewise.
6608         * tests/test-nonblocking-socket.h: Likewise.
6609         * tests/test-pipe.c: Likewise.
6610         * tests/test-pipe2.c: Likewise.
6611         * tests/test-spawn-pipe-child.c: Likewise.
6612         * doc/acl-resources.txt: Likewise.
6613         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6614         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6615         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6616         * lib/localcharset.c: Update comments to mention native Windows.
6617         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6618         * lib/localename.c: Likewise.
6619         * lib/progreloc.c: Likewise.
6620         * lib/relocatable.c: Likewise.
6621         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6622         (windows_compute_revents): Renamed from win32_compute_revents.
6623         (windows_compute_revents_socket): Renamed from
6624         win32_compute_revents_socket.
6625         * lib/select.c: Update comments to mention native Windows.
6626         (windows_poll_handle): Renamed from win32_poll_handle.
6627         * m4/threadlib.m4: Update comments to mention native Windows.
6628         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6629         --enable-threads=windows instead of --enable-threads=win32. Set
6630         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6631         * lib/glthread/lock.h: Update comments to mention native Windows.
6632         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6633         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6634         USE_WIN32_THREADS.
6635         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6636         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6637         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6638         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6639         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6640         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6641         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6642         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6643         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6644         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6645         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6646         * tests/test-tls.c: Likewise.
6647         Rationale:
6648         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6649         on both 32-bit and 64-bit Windows systems.
6650         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6651         line of distinction is between "native Windows" on one side and Unix/
6652         POSIX systems on the other side. More details in
6653         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6654         Suggested by Paul Eggert.
6655
6656 2012-01-03  Bruno Haible  <bruno@clisp.org>
6657
6658         isatty: Support for MSVC 9.
6659         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6660         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6661         (_isatty_nothrow): New function.
6662         (isatty): Use it instead of _isatty.
6663         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6664         * lib/poll.c (IsConsoleHandle): Likewise.
6665         * lib/select.c (IsConsoleHandle): Likewise.
6666         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6667         (gl_PREREQ_ISATTY): New macro.
6668         * modules/isatty (Depends-on): Add msvc-inval.
6669         (configure.ac): Invoke gl_PREREQ_ISATTY.
6670
6671 2012-01-03  Jim Meyering  <meyering@redhat.com>
6672
6673         maint.mk: remove temporary transition aid from over 1.5 years ago
6674         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6675         purpose was to aid in the transition (avoiding silent malfunction)
6676         from that old name to the new _sc_search_regexp.  This shim was
6677         added by commit 219c504b.
6678
6679         init.sh: do not try to accommodate compare arguments starting with "-"
6680         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6681         compare arguments that start with "-".  Besides, we do not worry
6682         about this when invoking diff or cmp; why start now with sed?
6683         Using "--" to separate options from argument would trigger sed
6684         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6685         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6686
6687 2012-01-02  Bruno Haible  <bruno@clisp.org>
6688
6689         Enhance tests for module 'isatty'.
6690         * modules/isatty-tests (Depends-on): Add pipe-posix.
6691         * tests/test-isatty.c: Include <fcntl.h>.
6692         (DEV_NULL): New macro.
6693         (main): Test the resut of isatty() also on regular files, pipes, and
6694         /dev/null.
6695
6696         New module 'isatty'.
6697         * lib/unistd.in.h (isatty): New declaration.
6698         * lib/isatty.c: New file, based on an idea of
6699         Bastien Roucariès <roucaries.bastien@gmail.com>.
6700         * m4/isatty.m4: New file.
6701         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6702         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6703         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6704         REPLACE_ISATTY.
6705         * modules/isatty: New file.
6706         * doc/posix-functions/isatty.texi: Mention the new module.
6707         Suggested by Paolo Bonzini.
6708
6709 2012-01-02  Bruno Haible  <bruno@clisp.org>
6710
6711         canonicalize: Tweak 2011-12-29 commit.
6712         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6713         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6714
6715 2012-01-02  Jim Meyering  <meyering@redhat.com>
6716
6717         gitlog-to-changelog: describe input syntax in --help output
6718         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6719
6720         gitlog-to-changelog: fix typo in --help: show backslash before email @
6721         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6722         in sources, but not in actual output.
6723
6724 2011-12-30  Jim Meyering  <meyering@redhat.com>
6725
6726         gitlog-to-changelog: don't malfunction when name contains %-directive
6727         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6728         in a name string cause trouble.  E.g., with a user name of "%s",
6729         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6730
6731 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6732
6733         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6734         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6735         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6736         the "  (tiny change)" notation that is appended to the standard
6737         ChangeLog "date  name  email" header line.
6738
6739 2012-01-01  Jim Meyering  <meyering@redhat.com>
6740
6741         test-framework-sh: init.sh: fix "make dist" failure
6742         When using gnulib-tool's --with-tests option and any module that
6743         depends on test-framework-sh, "make dist" would fail due to the
6744         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6745         in the gltests directory, and not in the gllib/ directory.
6746         One way to work around that is to move the EXTRA_DIST += init.sh
6747         from the primary module to the -tests one:
6748         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6749         * modules/test-framework-sh (Makefile.am): ...not here.
6750         Reported by Tom G. Christensen in
6751         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6752
6753         version-etc: update copyright year reported by --version
6754         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6755
6756 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6757
6758         canonicalize: only stat() if required
6759         * lib/canonicalize.c (canonicalize_filename_mode):
6760         Avoid calling l?stat() when both CAN_MISSING,
6761         and CAN_NOLINKS are set, as we neither need
6762         to resolve symlinks or test component existence.
6763
6764 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6765
6766         doc: cover st_ino issues once; add OpenVMS etc.
6767         * doc/posix-functions/stat.texi (stat):
6768         * doc/posix-functions/lstat.texi (lstat):
6769         * doc/posix-functions/fstatat.texi (fstatat):
6770         * doc/posix-functions/fstat.texi (fstat):
6771         Move general 'struct stat' stuff to sys_stat.texi,
6772         leaving behind a pointer.
6773         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6774         Merge duplicate info about 'struct stat' problems into here.
6775         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6776         and suggest partial workarounds.
6777
6778         same-inode: port to OpenVMS
6779         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6780         three st_ino values.
6781
6782 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6783
6784         canonicalize: fix references to stat() and lstat()
6785         * lib/canonicalize.c (canonicalize_filename_mode):
6786         Ensure references always resolve to a replacement
6787         function if required (even via a macro).
6788
6789 2011-12-30  Jim Meyering  <meyering@redhat.com>
6790
6791         gitlog-to-changelog: remove a little duplication
6792         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6793         rather than twice.
6794
6795 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6796
6797         canonicalize: add support for not resolving symlinks
6798         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6799         indicate we don't want to follow symlinks.  Also
6800         provide CAN_MODE_MASK to aid setting these existing
6801         mutually exclusive values.
6802         * lib/canonicalize.c (canonicalize_filename_mode):
6803         Extract the flags from can_mode parameter, which
6804         are currently just used to select between stat()
6805         and lstat().  Also ensure that mutually exclusive
6806         values are flagged immediately as invalid.
6807         * tests/test-canonicalize.c: Verify symlinks are
6808         not followed, and that invalid flag combinations
6809         are diagnosed.
6810
6811 2011-12-25  Jim Meyering  <meyering@redhat.com>
6812
6813         gitlog-to-changelog: do not clump multi-paragraph entries
6814         Identical header lines (date,name,email+coauthors) are suppressed,
6815         thus putting all entries with those same characteristics under
6816         a single header.  However, when a log entry consists of two or
6817         more paragraphs, it may not be clear where it starts and ends.
6818         This change makes it so that such an entry is always separated
6819         from others by a header line, even when that header would
6820         otherwise be suppressed.
6821         * build-aux/gitlog-to-changelog: Implement the above.
6822         Inspired by a related request from Stefano Lattarini in
6823         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6824
6825 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6826
6827         announce-gen: fix `cmd' typo in diagnostic
6828         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6829         diagnostic: a missing '$' meant that the command was not output.
6830
6831 2011-12-23  Jim Meyering  <meyering@redhat.com>
6832
6833         test-framework-sh: distribute init.sh
6834         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6835         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6836         fail due to the lack of init.sh.
6837
6838         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6839         * modules/atexit-tests: Rather than listing tests/init.sh,
6840         now that there's a module for it, simply depend on that new module.
6841         * modules/closein-tests: Likewise.
6842         * modules/exclude-tests: Likewise.
6843         * modules/getcwd-tests: Likewise.
6844         * modules/perror-tests: Likewise.
6845         * modules/pread-tests: Likewise.
6846         * modules/pwrite-tests: Likewise.
6847         * modules/vc-list-files-tests: Likewise.
6848         * modules/verify-tests: Likewise.
6849         * modules/xalloc-die-tests: Likewise.
6850         * modules/xstrtoimax-tests: Likewise.
6851         * modules/xstrtol-tests: Likewise.
6852         * modules/xstrtoll-tests: Likewise.
6853         * modules/xstrtoumax-tests: Likewise.
6854         * modules/yesno-tests: Likewise.
6855
6856 2011-12-22  Jim Meyering  <meyering@redhat.com>
6857
6858         test-framework-sh: add minimal tests of init.sh's compare function
6859         * modules/test-framework-sh-tests: New file.
6860         * tests/test-init.sh: New file.
6861
6862         test-framework-sh: new module
6863         * modules/test-framework-sh: New file.
6864         * MODULES.html.sh (Support for maintaining and releasing projects):
6865         List it.
6866
6867         init.sh: do not emit simulated diff output to stderr
6868         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6869
6870 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6871
6872         .gitignore: ignore gnulib.dvi and regex.info
6873         * doc/.gitignore:add gnulib.dvi and regex.info
6874
6875 2011-12-22  Jim Meyering  <meyering@redhat.com>
6876
6877         init.sh: correct previous change
6878         * tests/init.sh (compare): My previous change was wrong.
6879         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6880
6881         init.sh: avoid unwarranted test failure when using "set -e"
6882         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6883         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6884         a use like "compare exp out" would get evoke an unconditional failure.
6885
6886 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6887
6888         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6889         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6890         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6891         autoreconf that did not.
6892         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6893         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6894
6895 2011-12-17  Jim Meyering  <meyering@redhat.com>
6896
6897         bootstrap: remove some now-unneeded code
6898         This script arose back when gnulib-tool was young.
6899         Since then, it has seen improvements that render much of this
6900         script unnecessary.  In particular, it can now make symlinks
6901         to the files it uses.  Also, I no longer see as much value in
6902         marking files as read-only via comments.
6903         If you relied on the symlink-creation feature of the preceding
6904         version of this script, you can get most of that functionality
6905         by adding the --symlink option to the definition of
6906         gnulib_tool_option_extras in your bootstrap.conf file.
6907         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6908         Run autopoint and libtoolize *before* gnulib-tool.
6909         After it, run an abbreviated autoreconf, rather than a loop around
6910         all tools.
6911         (slirp, bt_mark_as_generated): Remove functions.
6912
6913 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6914
6915         ftoastr: fix typo
6916         * lib/ftoastr.h: Fix misspelling in comment.
6917
6918 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6919
6920         * top/README-release: fix punctuation.
6921
6922 2011-12-17  Jim Meyering  <meyering@redhat.com>
6923
6924         bootstrap: correct the recent buildreq change
6925         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6926         had no effect.
6927         * build-aux/bootstrap (buildreq): Bracket each search term with
6928         "*...*", so that the shell "case" statement works as intended.
6929         Add comments.
6930
6931 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6932
6933         build: let bootstrap resort to wget when downloading .po files
6934         * build-aux/bootstrap (download_po_files): Fallback to wget when
6935         downloading the .po files via rsync fails.  This is necessary to
6936         bootstrap from behind a strict firewall.
6937
6938 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6939
6940         stdint: don't assume C++11 when compiling with g++
6941         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6943         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6944         work also in C++ before C++11, as that improperly inhibits
6945         generating a substitute stdint.h for that case.
6946
6947 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6948
6949         alloca: protect comment from gnulib-tool
6950         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6951         that gnulib-tool doesn't think it's a license, and munge it to
6952         say "GCC version 3".
6953
6954 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6955
6956         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6957         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6958         $(abs_top_builddir) instead of $(top_builddir).
6959
6960 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6961
6962         strftime-tests: also test nanoseconds
6963         * tests/test-strftime.c (T): Add a test of %N.
6964
6965 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6966
6967         inttypes, stdint: add C++11 support
6968         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6969         when including inttypes.h and stdint.h.  Support this change to
6970         the standard.
6971         * doc/posix-headers/inttypes.texi (inttypes.h):
6972         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6973         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6974         Define if not defined already, for the benefit of pre-C++11 hosts.
6975         Define the standard format macros (e.g., PRId8) always.
6976         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6977         Likewise, if __cpluspus.  Define the standard constant and limit
6978         macros (e.g., INT8_C, INT8_MAX) always.
6979         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6980         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6981         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6982         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6983         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6984         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6985         Likewise.
6986
6987 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         nonblocking tests: Fix test failure on Linux/PPC.
6990         Suggested by Prerna Saxena in
6991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6992         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6993         Set to 1100000.
6994
6995 2011-12-12  Jim Meyering  <meyering@redhat.com>
6996
6997         argmatch: don't hard-code `' when listing valid option arguments
6998         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6999         use the quote function to add quotes.  Use fputs rather than
7000         fprintf for the format string with no format directive.
7001
7002 2011-12-07  Eric Blake  <eblake@redhat.com>
7003
7004         bootstrap: detect tools required by gnulib-tool
7005         * build-aux/bootstrap (buildreq): Provide minimum implicit
7006         dependencies.
7007         * DEPENDENCIES: Mention patch as a prereq.
7008
7009 2011-12-04  Bruno Haible  <bruno@clisp.org>
7010
7011         sethostname: Port to Windows platforms.
7012         * lib/sethostname.c: Provide an alternate implementation for Windows
7013         platforms.
7014         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7015         (main): Skip the test if sethostname() fails with EPERM. On Windows
7016         platforms, don't check the result of gethostname().
7017
7018 2011-12-04  Bruno Haible  <bruno@clisp.org>
7019             Jim Meyering  <meyering@redhat.com>
7020
7021         tests: Avoid spurious error message on platforms without mktemp program.
7022         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7023
7024 2011-12-04  Bruno Haible  <bruno@clisp.org>
7025
7026         sethostname: Fix documentation.
7027         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7028         "not fixed" section.
7029
7030 2011-12-03  Bruno Haible  <bruno@clisp.org>
7031
7032         gnulib-tool: Verify that the License field is present and non-empty.
7033         * gnulib-tool (func_get_license_raw): New function, extracted from
7034         func_get_license.
7035         (func_get_license): Use it. Warn if the module is not a test module and
7036         has no license.
7037         Suggested by Jim Meyering.
7038
7039 2011-12-03  Bruno Haible  <bruno@clisp.org>
7040
7041         sethostname tests: Fix link error on mingw.
7042         * tests/test-sethostname1.c: New file, extracted from
7043         tests/test-sethostname.c.
7044         * tests/test-sethostname2.c: New file, extracted from
7045         tests/test-sethostname.c.
7046         * tests/test-sethostname.c: Remove file.
7047         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7048         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7049         (Depends-on): Add gethostname.
7050         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7051         Link the latter with $(GETHOSTNAME_LIB).
7052
7053         sethostname tests: Fix compilation error on mingw.
7054         * tests/test-sethostname.c: Don't include <sys/types.h>.
7055         (geteuid): Use a dummy value without uid_t.
7056         * modules/sethostname-tests (Depends-on): Remove sys_types.
7057
7058         sethostname tests: Avoid a gcc warning.
7059         * tests/test-sethostname.c (main): Remove an unused variable.
7060
7061         Tweak last commit.
7062         * modules/sethostname-tests (Files): Sort by decreasing importance.
7063         (configure.ac): Check for geteuid.
7064         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7065         the test when there's nothing to test. Drop an unnecessary cast.
7066         Improve an error message. Verify that the final sethostname() call
7067         succeeds.
7068
7069 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7070
7071         Add a test suite for the sethostname module.
7072         * modules/sethostname-tests: New file.  A test program
7073         for the sethostname module.
7074         * tests/test-sethostname.c: Likewise.
7075
7076 2011-12-03  Bruno Haible  <bruno@clisp.org>
7077
7078         Tweak last commit.
7079         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7080         Fix preprocessor directives indentation. Fix typos.
7081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7082         * modules/unistd (Makefile): Likewise.
7083
7084 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7085
7086         Integrate the sethostname module into unistd.
7087         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7088         into the unistd.h header.
7089         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7090         preprocessor directives.
7091         * modules/unistd: Setup the Makefile substitutions of the
7092         SETHOSTNAME preprocessor directives.
7093
7094 2011-12-03  Bruno Haible  <bruno@clisp.org>
7095
7096         Tweak last commit.
7097         * lib/sethostname.c: Don't include <string.h>.
7098         (sethostname): No need to copy the argument string to the stack. Don't
7099         call clearerr. Preserve errno when fprintf failed.
7100         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7101         Don't invoke AC_REPLACE_FUNCS.
7102         * modules/sethostname (Link): Remove empty section.
7103         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7104         failure problem.
7105
7106 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7107
7108         New module 'sethostname'.
7109         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7110         for systems that lack it.
7111         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7112         sethostname declaration and function.
7113         * modules/sethostname: New file.  Define the sethostname module.
7114
7115 2011-12-03  Bruno Haible  <bruno@clisp.org>
7116
7117         Tweak last commit.
7118         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7119
7120 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7121
7122         Split the HOST_NAME_MAX detection into a separate m4 macro.
7123         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7124         macro so it can be used by the pending sethostname module.
7125
7126 2011-12-03  Bruno Haible  <bruno@clisp.org>
7127
7128         Fix module descriptions syntax.
7129         * modules/argv-iter (License): Fix syntax.
7130         * modules/di-set (License): Likewise.
7131         * modules/ino-map (License): Likewise.
7132         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7133
7134 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7135
7136         stdalign: port to Clang 3.0
7137         Problem reported by Simon Josefsson in
7138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7139         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7140         which has <stdalign.h> but which does not define alignof.
7141         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7142
7143 2011-12-01  Eric Blake  <eblake@redhat.com>
7144
7145         mktempd: silence dd usage
7146         * build-aux/mktempd (rand_bytes): Silence dd.
7147
7148 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7149
7150         manywarnings: Don't mention gcc version in docstring.
7151         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7152         Jim Meyering <meyering@redhat.com>.
7153
7154 2011-11-30  Jim Meyering  <meyering@redhat.com>
7155
7156         hash: mark a few floating point constants with "f" suffix
7157         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7158         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7159         floating point constants with "f", since they're destined to be
7160         saved/used as "float"s.
7161
7162 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7163
7164         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7165         * tests/test-float.c (test_long_double): Correct and re-enable the
7166         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7167
7168 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7169
7170         Avoid subtracting two pointers that don't point into the same block.
7171         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7172         only pointers into the same memory block are subtracted. We cannot
7173         assume that sizeof (ptrdiff_t) == sizeof (void *).
7174
7175 2011-11-29  Eric Blake  <eblake@redhat.com>
7176
7177         maint.mk: add syntax check for use of compare from init.sh
7178         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7179         moved here from coreutils.
7180
7181         manywarnings: drop -Wunsuffixed-float-constants
7182         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7183         '1.0D', which is the only way to silence this warning for 'double'.
7184
7185 2011-11-29  Jim Meyering  <meyering@redhat.com>
7186
7187         hash: mark compute_bucket_size with the pure attribute
7188         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7189
7190         quotearg, propername: correct pragma guard expression
7191         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7192         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7193
7194 2011-11-28  Jim Meyering  <meyering@redhat.com>
7195
7196         propername: do not mark proper_name with the const attribute
7197         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7198         since it examines data pointed to by its parameter.
7199         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7200         the suggestion from -Wsuggest-attribute=const.
7201
7202         propername: mark one more function as const
7203         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7204
7205 2011-11-27  Jim Meyering  <meyering@redhat.com>
7206
7207         mark functions with const and pure attributes
7208
7209         Mark functions per suggestions from gcc-4.6 when using these options:
7210         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7211         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7212         Follow these guidelines: when possible, apply the attribute to
7213         an extern declaration, not to its definition.  Apply it to the
7214         definition only when the definition is static.
7215         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7216         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7217         * lib/base64.h (isbase64): Likewise.
7218         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7219         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7220         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7221         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7222         (c_tolower, c_toupper): Likewise.
7223         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7224         * lib/chdir-long.c (find_non_slash): Likewise.
7225         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7226         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7227         * lib/file-type.h (file_type): Likewise.
7228         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7229         * lib/filevercmp.c (verrevcmp): Likewise.
7230         * lib/freadahead.h (freadahead): Likewise.
7231         * lib/fts.c (fts_maxarglen): Likewise.
7232         * lib/hash-pjw.h (hash_pjw): Likewise.
7233         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7234         * lib/hash.c (is_prime, next_prime): Likewise.
7235         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7236         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7237         (hash_table_ok, hash_get_first, hash_string): Likewise.
7238         (compute_bucket_size): Likewise.
7239         * lib/i-ring.h (i_ring_empty): Likewise.
7240         * lib/isnan.c (isnanl): Likewise.
7241         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7242         * lib/memcasecmp.h (memcasecmp): Likewise.
7243         * lib/memchr2.h (memchr2): Likewise.
7244         * lib/memcmp2.h (memcmp2): Likewise.
7245         * lib/parse-datetime.y (lookup_zone): Likewise.
7246         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7247         [!WINDOWS_SOCKETS]: Likewise.
7248         * lib/strnlen1.h (strnlen1): Likewise.
7249         * lib/uniwidth.in.h (uc_width): Likewise.
7250         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7251         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7252         (quoting_options_from_style): Add a comment.
7253         * lib/propername.h (proper_name): Add a comment.
7254
7255 2011-11-27  Bruno Haible  <bruno@clisp.org>
7256
7257         Remove unused macros from !_LIBC code in glibc-borrowed files.
7258         * lib/fnmatch.c (STRCOLL): Remove macro.
7259         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7260         * lib/glob.c (__stat, __readdir64): Remove macros.
7261         * lib/tempname.c (__open64, __xstat64): Remove macros.
7262         Suggested by Paul Eggert.
7263
7264 2011-11-27  Bruno Haible  <bruno@clisp.org>
7265
7266         getcwd: Fix link error on MSVC 9.
7267         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7268
7269 2011-11-27  Bruno Haible  <bruno@clisp.org>
7270
7271         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7272         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7273         HAVE_OPENDIR is 0.
7274         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7275         HAVE_CLOSEDIR is 0.
7276         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7277         is 0.
7278         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7279
7280 2011-11-27  Bruno Haible  <bruno@clisp.org>
7281
7282         getcwd: Fix bug from 2011-08-17.
7283         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7284         platforms that need it.
7285         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7286         code of 4 to be a failure, not a success. This ensures that
7287         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7288
7289 2011-11-27  Bruno Haible  <bruno@clisp.org>
7290
7291         binary-io tests: Avoid test failure on mingw when libtool is used.
7292         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7293         Don't verify the size of t-bin-out1.tmp here.
7294         * tests/test-binary-io.sh: Verify it here.
7295         Reported by Simon Josefsson.
7296
7297 2011-11-26  Bruno Haible  <bruno@clisp.org>
7298
7299         Fix conflict between two instantiations of module 'unistd'.
7300         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7301         ${include_guard_prefix} also in the autoconf snippet.
7302         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7304         GNULIB_UNISTD_H_GETOPT.
7305         * modules/getopt-posix (configure.ac): Set the
7306         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7307         * modules/getopt-gnu (configure.ac): Likewise.
7308         * modules/unistd (Makefile.am): Change the substitution value of
7309         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7310         Reported by Simon Josefsson.
7311
7312 2011-11-25  Bruno Haible  <bruno@clisp.org>
7313
7314         pagealign_alloc: Doc and comments.
7315         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7316         module.
7317         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7318
7319 2011-11-25  Jim Meyering  <meyering@redhat.com>
7320
7321         test-update-copyright.sh: avoid false-positive failure
7322         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7323         around false positive failure on Cygwin/Windows.  The latter was
7324         matching erroneously-created files with names like
7325         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7326
7327 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7328
7329         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7330         * m4/valgrind-tests.m4: Check that the parameters that will be
7331         used works, not just a subset of them.  Reported by Bruno Haible
7332         <bruno@clisp.org>.
7333
7334 2011-11-24  Jim Meyering  <meyering@redhat.com>
7335
7336         test-stdalign.c: comment out long double tests
7337         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7338         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7339         error: '_Alignas' specifiers cannot reduce alignment of \
7340         'static_longdouble_alignas'.
7341
7342 2011-11-22  Jim Meyering  <meyering@redhat.com>
7343
7344         init.sh: make "compare /dev/null FILE" output more readable
7345         * tests/init.sh (compare_): Document the preferred order of arguments.
7346         (emit_diff_u_header_): New function.
7347         (compare_dev_null_): Emit a simulated diff, rather than just the
7348         contents of the unexpected file.  Suggestion from Bruno Haible.
7349
7350 2011-11-21  Jim Meyering  <meyering@redhat.com>
7351             Eric Blake  <eblake@redhat.com>
7352
7353         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7354         * tests/init.sh: Make our compare function slightly more portable.
7355         Reported by Bruno Haible in
7356         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7357
7358 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7359
7360         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7361         before using it, in code that ends up in config.h.
7362
7363 2011-11-20  Bruno Haible  <bruno@clisp.org>
7364
7365         getcwd: Work around getcwd bug on AIX 5..7.
7366         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7367         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7368         Use a different value for gl_cv_func_getcwd_path_max. Move the
7369         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7370         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7371         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7372         Define HAVE_MINIMALLY_WORKING_GETCWD.
7373         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7374         where it is not even minimally working, that is, on AIX.
7375         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7376         m4/getcwd-path-max.m4.
7377         (main): Update exit code computation.
7378         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7379         getcwd does not handle long file names.
7380
7381 2011-11-20  Bruno Haible  <bruno@clisp.org>
7382
7383         getcwd: Fix bug from 2009-09-10.
7384         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7385         like "no".
7386
7387 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7388
7389         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7390
7391 2011-11-20  Bruno Haible  <bruno@clisp.org>
7392
7393         fma tests: Avoid shadowing local variables.
7394         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7395         expected.
7396
7397 2011-11-20  Bruno Haible  <bruno@clisp.org>
7398
7399         copysignf tests: Fix.
7400         * tests/test-copysignf.c: Fix signature check.
7401
7402 2011-11-20  Bruno Haible  <bruno@clisp.org>
7403
7404         fma: Remove unused code.
7405         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7406         unused macros.
7407
7408 2011-11-20  Bruno Haible  <bruno@clisp.org>
7409
7410         sethostname: Fix doc about AIX.
7411         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7412         sethostname; it has it.
7413
7414         sethostname: Mention more portability problems.
7415         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7416         problem.
7417         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7418
7419 2011-11-19  Bruno Haible  <bruno@clisp.org>
7420
7421         Depend on module fcntl-h when AT_FDCWD is used.
7422         * modules/utimens (Depends-on): Add fcntl-h.
7423         * modules/areadlinkat (Depends-on): Likewise.
7424         * modules/areadlinkat-with-size (Depends-on): Likewise.
7425         * modules/faccessat (Depends-on): Likewise.
7426         * modules/fchmodat (Depends-on): Likewise.
7427         * modules/fchownat (Depends-on): Likewise.
7428         * modules/getcwd (Depends-on): Likewise.
7429         * modules/mkdirat (Depends-on): Likewise.
7430         * modules/mkfifoat (Depends-on): Likewise.
7431         * modules/readlinkat (Depends-on): Likewise.
7432         * modules/symlinkat (Depends-on): Likewise.
7433         * modules/dup2-tests (Depends-on): Likewise.
7434         * modules/fdutimensat-tests (Depends-on): Likewise.
7435         * modules/futimens-tests (Depends-on): Likewise.
7436
7437 2011-11-19  Bruno Haible  <bruno@clisp.org>
7438
7439         euidaccess: Update a comment.
7440         * lib/euidaccess.c: Update comment about platforms with faccessat.
7441
7442 2011-11-19  Bruno Haible  <bruno@clisp.org>
7443
7444         openat: Fix file list.
7445         * modules/openat (Files): Remove lib/at-func.c.
7446
7447 2011-11-19  Bruno Haible  <bruno@clisp.org>
7448
7449         fstatat: Simplify.
7450         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7451         gnulib should define rpl_fstatat, there is a
7452         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7453
7454 2011-11-19  Bruno Haible  <bruno@clisp.org>
7455
7456         Ensure 'inline' can be used in tests/test-utimens-common.h.
7457         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7458         * modules/futimens-tests (configure.ac): Likewise.
7459         * modules/utimens-tests (configure.ac): Likewise.
7460         * modules/utimensat-tests (configure.ac): Likewise.
7461
7462 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7463
7464         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7465         not hash_insert0.
7466         (hash_insert_if_absent): Doc fix.
7467
7468 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7469
7470         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7471
7472 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7473
7474         test-getcwd: disambiguate exit status
7475         * tests/test-getcwd.c (test_long_name): Return 0..7.
7476         (main): Exit with an unambiguous exit status.  The old
7477         code yielded a mysterious mixture of two failure codes.
7478
7479         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7480         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7481         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7482         rpl_fstatat or fstatat.  This should fix the other problem
7483         reported by Kai Habel in
7484         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7485         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7487         and I reproduced it on a Solaris 8 host we still have in production.
7488
7489 2011-11-18  Jim Meyering  <meyering@redhat.com>
7490
7491         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7492         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7493         Add a sentence to the comment.
7494         (hash_insert0): New function that simply calls hash_insert_if_absent.
7495         * lib/hash.h (hash_insert_if_absent): Declare it.
7496         (hash_insert0): Add deprecation attribute.
7497         (_GL_ATTRIBUTE_DEPRECATED): Define.
7498         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7499         not hash_insert0.
7500         * NEWS: Mention it, even though it's not really an incompatible change.
7501
7502 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7503
7504         openat: avoid compilation failure due to lack of <errno.h> inclusion
7505         * lib/openat.c: Include <errno.h>.
7506
7507 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7508
7509         * modules/getcwd (Depends-on): Add fdopendir.
7510         This fixes one of the two problems reported by Kai Habel in
7511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7512
7513         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7514         stdalign problem reported by Ian Beckwith in
7515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7516         * modules/crypto/gc-arcfour (Depends-on):
7517         Depend conditionally on crypto/arcfour.
7518         * modules/crypto/gc-arctwo (Depends-on):
7519         Depend conditionally on crypto/arctwo.
7520         * modules/crypto/gc-des (Depends-on):
7521         Depend conditionally on crypto/des.
7522         * modules/crypto/gc-hmac-md5 (Depends-on):
7523         Depend conditionally on crypto/hmac-md5.
7524         * modules/crypto/gc-hmac-sha1 (Depends-on):
7525         Depend conditionally on crypto/hmac-sha1.
7526         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7527         * modules/crypto/gc-md4 (Depends-on):
7528         Depend conditionally on crypto/md4.
7529         * modules/crypto/gc-md5 (Depends-on):
7530         Depend conditionally on crypto/md5.
7531         * modules/crypto/gc-rijndael (Depends-on):
7532         Depend conditionally on crypto/rijndael.
7533         * modules/crypto/gc-sha1 (Depends-on):
7534         Depend conditionally on crypto/sha1.
7535         * modules/crypto/gc-arcfour:
7536         * modules/crypto/gc-arctwo:
7537         * modules/crypto/gc-des:
7538         * modules/crypto/gc-hmac-md5:
7539         * modules/crypto/gc-hmac-sha1:
7540         * modules/crypto/gc-md2:
7541         * modules/crypto/gc-md4:
7542         * modules/crypto/gc-md5:
7543         * modules/crypto/gc-rijndael:
7544         * modules/crypto/gc-sha1:
7545         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7546         now that the conditional dependencies do the work for us.
7547
7548 2011-11-17  Jim Meyering  <meyering@redhat.com>
7549
7550         tests: factor st_ctime-comparison out of two headers
7551         * tests/test-utimens-common.h (ctime_compare): Define.
7552         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7553         * tests/test-lutimens.h (test_lutimens): Likewise.
7554         * tests/test-utimens.h (test_utimens): Likewise.
7555
7556         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7557         Invoke the test program via an init.sh-using wrapper.
7558         * tests/test-getcwd.sh: New file.
7559         * modules/getcwd-tests (Files): Add it.
7560         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7561
7562 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7563
7564         gitlog-to-changelog: support multi-author commits.
7565         The FSF cares about keeping track of all authors of patches to its
7566         projects, but Git doesn't provide obvious support for multi-author
7567         changesets. Consensus seems to be forming around the use of extra
7568         Signed-off-by inspired lines in the log message formatted as
7569         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7570         multi-author commits between version control systems.
7571         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7572         log message and output in standard ChangeLog multi-author format.
7573         Reported by Peter Rosin <peda@lysator.liu.se>
7574
7575 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7576             Bruno Haible  <bruno@clisp.org>
7577
7578         Fix some modules' file list.
7579         * modules/fstatat (Files): Add m4/lstat.m4.
7580         * modules/openat (Files): Likewise.
7581         * modules/unlinkat (Files): Likewise.
7582
7583 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7584
7585         maint.mk: fix tight-scope.mk generation in VPATH builds.
7586         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7587         reference with $(srcdir) so that the file is found correctly even
7588         when running `make syntax-check' in a VPATH build.
7589
7590 2011-11-13  Bruno Haible  <bruno@clisp.org>
7591             Jim Meyering  <meyering@redhat.com>
7592
7593         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7594         * tests/init.sh (compare): Remove "No differences encountered" or
7595         synonymous output from the 'diff' program.
7596
7597 2011-11-13  Bruno Haible  <bruno@clisp.org>
7598
7599         Makefile: Tweak indentation.
7600         * Makefile: Use tab as first character in every line that contains rule
7601         commands.
7602
7603 2011-11-13  Bruno Haible  <bruno@clisp.org>
7604
7605         Syntax check for copyright statements.
7606         * check-copyright: New file.
7607         * Makefile (sc_check_copyright): New rule.
7608
7609 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7610
7611         * build-aux/git-version-gen: Add --prefix to configure the tag
7612         match string.
7613
7614 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7615
7616         * build-aux/git-version-gen: Add --help and --version.
7617
7618 2011-11-12  Jim Meyering  <meyering@redhat.com>
7619
7620         revamp the other test-exclude?.sh scripts to use init.sh, too
7621         * tests/test-exclude1.sh: Use init.sh.
7622         * tests/test-exclude2.sh: Likewise.
7623         * tests/test-exclude3.sh: Likewise.
7624         * tests/test-exclude4.sh: Likewise.
7625         * tests/test-exclude5.sh: Likewise.
7626         * tests/test-exclude6.sh: Likewise.
7627         * tests/test-exclude7.sh: Likewise.
7628         * tests/test-exclude8.sh: Likewise.
7629         * modules/exclude-tests (Files): List init.sh.
7630
7631         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7632         These shell scripts ignored failure of the binary test-exclude,
7633         so making the latter return 77 didn't cause them to be skipped.
7634         * tests/test-exclude5.sh: Exit with test-exclude's error status
7635         when that program fails.  Revamp to use init.sh.
7636         * tests/test-exclude2.sh: Likewise.
7637
7638         test-exclude: fix a typo
7639         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7640
7641 2011-11-11  Bruno Haible  <bruno@clisp.org>
7642
7643         obstack: Fix compilation error on MSVC 9.
7644         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7645
7646 2011-11-11  Jim Meyering  <meyering@redhat.com>
7647
7648         test-exclude: skip tests rather than failing on deficient systems
7649         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7650         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7651         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7652         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7653
7654 2011-11-10  Bruno Haible  <bruno@clisp.org>
7655
7656         ptsname_r test: Avoid gcc warning on glibc systems.
7657         * tests/test-ptsname_r.c (null_ptr): New function.
7658         (test_errors): Use it.
7659
7660 2011-11-10  Bruno Haible  <bruno@clisp.org>
7661
7662         ptsname_r: Avoid compilation error on OSF/1 5.1.
7663         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7665         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7666         function is not declared or incompatibly declared.
7667         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7668         * modules/ptsname_r (Depends-on, configure.ac): Update.
7669         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7670
7671 2011-11-10  Bruno Haible  <bruno@clisp.org>
7672
7673         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7674         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7675         When cross-compiling, guess yes on all platforms except AIX.
7676         Reported by Ludovic Courtès <ludo@gnu.org>.
7677
7678 2011-11-09  Bruno Haible  <bruno@clisp.org>
7679
7680         ptsname_r tests: Fix bugs.
7681         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7682         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7683
7684 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7685
7686         fstatat: work with cross-compilation
7687         Problem reported by Ludovic Courtès in
7688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7689         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7690         "cross-compiling" and assume the bug is present.  Replace
7691         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7692         an inverted sense, to be more conservative about our assumptions.
7693         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7694
7695 2011-11-09  Bruno Haible  <bruno@clisp.org>
7696
7697         Improve MODULES.html output.
7698         * modules/mkfifoat (Description): Use the word "function".
7699         * modules/readlinkat (Description): Likewise.
7700         * modules/symlinkat (Description): Likewise.
7701
7702 2011-11-09  Eric Blake  <eblake@redhat.com>
7703
7704         ptsname_r-tests: new test module
7705         * modules/ptsname_r-tests: New module.
7706         * tests/test-ptsname_r.c: New file.
7707
7708         ptsname_r: new module
7709         * modules/ptsname_r: New module.
7710         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7711         * lib/ptsname.c (__ptsname_r): Split...
7712         * lib/ptsname_r.c: ...into new file.
7713         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7714         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7715         * modules/stdlib (Makefile.am): Substitute witnesses.
7716         * lib/stdlib.in.h (ptsname_r): Declare it.
7717         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7718         * MODULES.html.sh (Misc): Likewise.
7719         * modules/ptsname (Depends-on): Alter dependency.
7720         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7721
7722 2011-11-09  Jim Meyering  <meyering@redhat.com>
7723
7724         announce-gen: be more concise when there's only one URL+tarball
7725         * build-aux/announce-gen (get_tool_versions): When you distribute
7726         only one type of tarball, combine the first two "Here are..."
7727         sections and make the key-checking grammar independent of
7728         how many tarballs there are.
7729
7730 2011-11-09  Eric Blake  <eblake@redhat.com>
7731
7732         openpty: provide a stub on mingw
7733         * lib/pty.in.h (includes): Provide forward declarations.
7734         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7735
7736         raise: fix mingw handling of SIGPIPE
7737         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7738
7739 2011-11-08  Bruno Haible  <bruno@clisp.org>
7740
7741         More conditional dependencies.
7742         * modules/faccessat (Depends-on): Add conditions.
7743         * modules/fchmodat (Depends-on): Likewise.
7744         * modules/fchownat (Depends-on): Likewise.
7745         * modules/fstatat (Depends-on): Likewise.
7746         * modules/mkfifoat (Depends-on): Likewise.
7747         * modules/readlinkat (Depends-on): Likewise.
7748         * modules/symlinkat (Depends-on): Likewise.
7749         * modules/unlinkat (Depends-on): Likewise.
7750         * modules/utimensat (Depends-on): Likewise.
7751         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7752         * modules/linkat (Depends-on): Refine the conditions.
7753         * modules/renameat (Depends-on): Likewise.
7754
7755 2011-11-08  Bruno Haible  <bruno@clisp.org>
7756
7757         faccessat: Move AC_LIBOBJ invocation to module description.
7758         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7759         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7760         invocation from here...
7761         * modules/faccessat (configure.ac): ... to here. Invoke
7762         gl_PREREQ_FACCESSAT.
7763
7764 2011-11-08  Bruno Haible  <bruno@clisp.org>
7765
7766         faccessat: Simplify autoconf macro.
7767         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7768         gl_FUNC_EUIDACCESS.
7769
7770 2011-11-08  Bruno Haible  <bruno@clisp.org>
7771
7772         renameat: Fix dependencies.
7773         * modules/renameat (Depends-on): Add stdbool.
7774
7775 2011-11-08  Bruno Haible  <bruno@clisp.org>
7776
7777         mkfifoat: Fix module description.
7778         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7779         not gl_UNISTD_MODULE_INDICATOR.
7780
7781 2011-11-08  Bruno Haible  <bruno@clisp.org>
7782
7783         fstatat: Remove unused dependency.
7784         * modules/fstatat (Depends-on): Remove fstat.
7785
7786 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7787
7788         GNUmakefile: behave when Makefile is missing.
7789         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7790
7791 2011-11-08  Bruno Haible  <bruno@clisp.org>
7792
7793         openat: Conditionalize dependencies.
7794         * lib/openat.c: Reduce the scope of some #includes.
7795         * modules/openat (Depends-on): Add conditions.
7796
7797 2011-11-07  Jim Meyering  <meyering@redhat.com>
7798
7799         maint.mk: extract GPG key ID without using a temporary file
7800         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7801         without using a temporary file.  Based on a suggestion from Werner Koch
7802         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7803
7804 2011-11-07  Eric Blake  <eblake@redhat.com>
7805
7806         grantpt: fix typo
7807         * lib/stdlib.in.h (grantpt): Check correct function.
7808
7809         maint.mk: silence new syntax check
7810         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7811
7812 2011-11-06  Bruno Haible  <bruno@clisp.org>
7813
7814         Doc about floating-point and math API.
7815         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7816         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7817
7818 2011-11-06  Bruno Haible  <bruno@clisp.org>
7819
7820         stdalign tests: Skip the test when compiled by Sun C.
7821         * tests/test-stdalign.c (main): Skip the test on Sun C.
7822
7823 2011-11-06  Bruno Haible  <bruno@clisp.org>
7824
7825         ansi-c++-opt: Complete the 2011-06-05 change.
7826         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7827         does not support namespaces, set the variable to "no", not to ":".
7828
7829 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7830
7831         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7832
7833 2011-11-06  Bruno Haible  <bruno@clisp.org>
7834
7835         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7836         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7837         (minus_zerol) [HP-UX]: New macro.
7838         (unary_minus) [HP-UX]: New function.
7839         (copysignl) [HP-UX]: Use unary_minus function.
7840
7841 2011-11-06  Bruno Haible  <bruno@clisp.org>
7842
7843         ldexp, ldexpf, ldexpl: Enhance tests.
7844         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7845         and tests/test-ldexpl.c.
7846         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7847         LDEXP, MIN_EXP, MAX_EXP): New macros.
7848         Include test-ldexp.h.
7849         (main): Just call test_function.
7850         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7851         infinity.h, nan.h.
7852         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7853         MAX_EXP): New macros.
7854         Include test-ldexp.h.
7855         (x, y): Remove variables.
7856         (main): Just call test_function.
7857         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7858         infinity.h, nan.h.
7859         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7860         MAX_EXP): New macros.
7861         Include test-ldexp.h.
7862         (x, y): Remove variables.
7863         (main): Just call test_function.
7864         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7865         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7866         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7867         (Depends-on): Add isnand-nolibm, signbit, float.
7868         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7869         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7870         (Depends-on): Add isnanf-nolibm, signbit, float.
7871
7872 2011-11-06  Bruno Haible  <bruno@clisp.org>
7873
7874         math tests: Cosmetics.
7875         * tests/test-math-c++.cc: Reorder declarations.
7876
7877 2011-11-05  Bruno Haible  <bruno@clisp.org>
7878
7879         fma*: Simplify test.
7880         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7881         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7882
7883         Tests for module 'fmal'.
7884         * modules/fmal-tests: New file.
7885         * tests/test-fmal1.c: New file.
7886         * tests/test-fmal2.c: New file.
7887
7888         New module 'fmal'.
7889         * lib/math.in.h (fmal): New declaration.
7890         * lib/fmal.c: New file.
7891         * m4/fmal.m4: New file.
7892         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7894         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7895         REPLACE_FMAL.
7896         * modules/fmal: New file.
7897         * doc/posix-functions/fmal.texi: Mention the new module and the various
7898         bugs.
7899
7900         Tests for module 'fmaf'.
7901         * modules/fmaf-tests: New file.
7902         * tests/test-fmaf1.c: New file.
7903         * tests/test-fmaf2.c: New file.
7904
7905         New module 'fmaf'.
7906         * lib/math.in.h (fmaf): New declaration.
7907         * lib/fmaf.c: New file.
7908         * m4/fmaf.m4: New file.
7909         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7911         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7912         REPLACE_FMAF.
7913         * modules/fmaf: New file.
7914         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7915         bugs.
7916
7917         Tests for module 'fma'.
7918         * modules/fma-tests: New file.
7919         * tests/test-fma1.c: New file.
7920         * tests/test-fma1.h: New file.
7921         * tests/test-fma2.c: New file.
7922         * tests/test-fma2.h: New file.
7923
7924         New module 'fma'.
7925         * lib/math.in.h (fma): New declaration.
7926         * lib/fma.c: New file.
7927         * m4/fma.m4: New file.
7928         * m4/fegetround.m4: New file.
7929         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7931         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7932         REPLACE_FMA.
7933         * modules/fma: New file.
7934         * doc/posix-functions/fma.texi: Mention the new module and the various
7935         bugs.
7936
7937         Extend gl_MATHFUNC.
7938         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7939         Support 'void' as argument type.
7940         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7941
7942 2011-11-05  Jim Meyering  <meyering@redhat.com>
7943
7944         maint.mk: also prohibit inclusion of dirent.h without use
7945         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7946
7947 2011-11-05  Bruno Haible  <bruno@clisp.org>
7948
7949         ldexpl tests: Avoid test failure on MSVC 9.
7950         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7951         value. Needed in order to enforce the conversion from a value greater
7952         than LDBL_MAX to Infinity.
7953
7954 2011-11-05  Bruno Haible  <bruno@clisp.org>
7955
7956         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7957         * modules/at-internal: New file, extracted from modules/openat.
7958         * modules/openat-h: New file.
7959         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7960         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7961         * modules/openat (Description): Add reference to POSIX function.
7962         (Files): Remove lib/openat.h, lib/openat-proc.c.
7963         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7964         intprops, unistd.
7965         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7966         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7967         gl_FCNTL_MODULE_INDICATOR.
7968         (Include): Remove unistd.h, openat.h.
7969         * modules/areadlinkat (Files): Add lib/at-func.c.
7970         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7971         openat-die, openat-h, save-cwd.
7972         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7973         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7974         openat-die, openat-h, save-cwd, unistd.
7975         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7976         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7977         openat-h, save-cwd. Remove fcntl-h, openat.
7978         * modules/fchmodat (Files): Remove lib/openat.h.
7979         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7980         openat, stdbool, unistd.
7981         * modules/fchownat (Files): Remove lib/openat.h.
7982         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7983         openat, stdbool, sys_stat.
7984         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7985         lib/openat-proc.c.
7986         (Depends-on): Add at-internal.
7987         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7988         * modules/fstatat (Files): Remove lib/openat.h.
7989         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7990         stdbool, unistd.
7991         * modules/fts (Depends-on): Add openat-h.
7992         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7993         openat.
7994         * modules/mkdirat (Files): Remove lib/openat.h.
7995         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7996         openat, stdbool, sys_stat.
7997         * modules/mkfifoat (Files): Add lib/at-func.c.
7998         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7999         openat-h, save-cwd. Remove fcntl-h, openat.
8000         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8001         * modules/readlinkat (Files): Add lib/at-func.c.
8002         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8003         openat-h, save-cwd. Remove fcntl-h, openat.
8004         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8005         openat.
8006         * modules/selinux-at (Files): Add lib/at-func.c.
8007         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8008         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8009         * modules/symlinkat (Files): Add lib/at-func.c.
8010         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8011         openat-h, save-cwd. Remove fcntl-h, openat.
8012         * modules/unlinkat (Files): Remove lib/openat.h.
8013         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8014         stdbool.
8015         * modules/utimensat (Files): Add lib/at-func.c.
8016         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8017         openat-die, openat-h, save-cwd.
8018         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8019         * modules/fdutimensat-tests (Depends-on): Add openat.
8020         * modules/fstatat-tests (Depends-on): Add openat-h.
8021         * modules/readlinkat-tests (Depends-on): Add openat.
8022         * modules/symlinkat-tests (Depends-on): Add openat.
8023
8024 2011-11-05  Bruno Haible  <bruno@clisp.org>
8025
8026         openat: Include <stdbool.h>.
8027         * lib/openat.c: Include <stdbool.h>.
8028
8029 2011-11-04  Bruno Haible  <bruno@clisp.org>
8030
8031         fchownat, renameat, unlinkat: Fix dependencies.
8032         * modules/fchownat (Depends-on): Add fstatat.
8033         * modules/renameat (Depends-on): Likewise.
8034         * modules/unlinkat (Depends-on): Likewise.
8035
8036 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8037
8038         openat: remove direct dependency on dirent
8039         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8040         and hasn't been needed ever since fdopendir was split into its own
8041         module on 2009-08-31.
8042         * modules/openat (Depends-on): Remove dirent.
8043
8044 2011-11-04  Bruno Haible  <bruno@clisp.org>
8045
8046         renameat: Optimize code size.
8047         * modules/renameat (configure.ac): Don't compile at-func2.c if
8048         REPLACE_RENAMEAT is 1.
8049
8050 2011-11-04  Bruno Haible  <bruno@clisp.org>
8051
8052         openat tests: Fix file list.
8053         * modules/openat-tests (Files): Add tests/test-open.h.
8054
8055 2011-11-04  Bruno Haible  <bruno@clisp.org>
8056
8057         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8058         * modules/fchmodat (Depends-on): Add openat-die.
8059         * modules/fchownat (Depends-on): Likewise.
8060         * modules/linkat (Depends-on): Likewise.
8061         * modules/renameat (Depends-on): Likewise.
8062         * modules/openat (Depends-on): Add dirent.
8063
8064 2011-11-04  Jim Meyering  <meyering@redhat.com>
8065
8066         at-func*.c: fix comments
8067         * lib/at-func2.c: Correct/improve first-line comment.
8068         * lib/at-func.c: Correct grammar in first-line comment.
8069
8070 2011-11-04  Bruno Haible  <bruno@clisp.org>
8071
8072         New module 'mkdirat', split off from module 'openat'.
8073         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8074         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8075         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8076         * modules/mkdirat: New file, extracted from modules/openat.
8077         * modules/openat (Files): Remove lib/mkdirat.c.
8078         (Depends-on): Remove mkdir.
8079         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8080         (Include): Remove <sys/stat.h>.
8081         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8082         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8083         tests/test-mkdir.h.
8084         (Depends-on): Remove ignore-value.
8085         (Makefile.am): Remove rules for test-mkdirat.
8086         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8087         of module 'openat'.
8088         * NEWS: Mention the change.
8089
8090 2011-11-04  Bruno Haible  <bruno@clisp.org>
8091
8092         closedir: Avoid warning on mingw.
8093         * lib/closedir.c: Include <unistd.h>.
8094
8095 2011-11-04  Bruno Haible  <bruno@clisp.org>
8096
8097         New module 'fstatat', split off from module 'openat'.
8098         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8099         defined.
8100         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8102         gl_FUNC_FSTATAT.
8103         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8104         * modules/fstatat: New file, extracted from modules/openat.
8105         * modules/openat (Files): Remove lib/fstatat.c.
8106         (Depends-on): Remove lstat.
8107         (configure.ac): Remove AC_LIBOBJ of fstatat.
8108         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8109         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8110         tests/test-lstat.h, tests/test-stat.h.
8111         (Depends-on): Remove getcwd-lgpl.
8112         (Makefile.am): Remove rules for test-fstatat.
8113         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8114         of module 'openat'.
8115         * NEWS: Mention the change.
8116         * modules/getcwd (Depends-on): Add fstatat.
8117         * modules/linkat (Depends-on): Likewise.
8118         * modules/mkfifoat-tests (Depends-on): Likewise.
8119         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8120
8121 2011-11-03  Bruno Haible  <bruno@clisp.org>
8122
8123         New module 'unlinkat', split off from module 'openat'.
8124         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8125         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8126         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8127         * modules/unlinkat: New file, extracted from modules/openat. Correct
8128         the dependency conditions.
8129         * modules/openat (Files): Remove lib/unlinkat.c.
8130         (Depends-on): Remove rmdir, unlink.
8131         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8132         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8133         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8134         tests/test-rmdir.h, tests/test-unlink.h.
8135         (Depends-on): Remove unlinkdir.
8136         (Makefile.am): Remove rules for test-unlinkat.
8137         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8138         of module 'openat'.
8139         * NEWS: Mention the change.
8140         * modules/linkat-tests (Depends-on): Add unlinkat.
8141         * modules/mkfifoat-tests (Depends-on): Likewise.
8142         * modules/readlinkat-tests (Depends-on): Likewise.
8143
8144 2011-11-02  Bruno Haible  <bruno@clisp.org>
8145
8146         New module 'fchmodat', split off from module 'openat'.
8147         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8148         defined.
8149         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8150         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8151         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8152         * modules/fchmodat: New file, extracted from modules/openat.
8153         * modules/openat (Files): Remove lib/fchmodat.c.
8154         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8155         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8156         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8157         (Makefile.am): Remove rules for test-fchmodat.
8158         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8159         of module 'openat'.
8160         * NEWS: Mention the change.
8161
8162 2011-11-02  Jim Meyering  <meyering@redhat.com>
8163
8164         putenv: indent #definition of "environ" to placate cppi
8165         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8166
8167         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8168         Git logs are often treated as immutable, because editing them
8169         changes the SHA1 checksums of all descendants.  Thus, errors in
8170         git logs tend to stay there forever.  However, when we generate
8171         a ChangeLog file -- typically for distribution -- from that git log,
8172         we can actually make corrections in the generated file.  The key
8173         lies in recording in machine-readable/applicable form the desired
8174         corrections.  See --help for description and an example.
8175         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8176         (usage): Describe it; alphabetize option descriptions.
8177         (main): Honor the new option, carefully.
8178
8179 2011-11-01  Jim Meyering  <meyering@redhat.com>
8180
8181         gitlog-to-changelog: avoid an infloop
8182         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8183         that ends up being empty.
8184
8185 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8186
8187         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8188         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8189         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8190         contains (possibly-quoted) backslashes.  This should avoid
8191         all-too-common shell bugs if COMPLICATED contains backslashes in
8192         the "wrong" places.  Reported by David Evans in
8193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8194         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8195         because we want ASCII ranges.  Is there some reason we don't use
8196         the C locale everywhere in this script?
8197         (func_module, top level): Avoid unwanted pathname expansion when
8198         $repo_url_prefix or $repo_url_suffix_repl contain shell
8199         metacharacters like '?' and '*'.
8200
8201 2011-11-01  Bruno Haible  <bruno@clisp.org>
8202
8203         fchownat: Improve description.
8204         * modules/fchownat (Description): Add link to function.
8205
8206 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8207
8208         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8209         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8211         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8212
8213 2011-11-01  Bruno Haible  <bruno@clisp.org>
8214
8215         alignof: Avoid collision with stdalign module.
8216         * lib/alignof.h (alignof): Remove macro.
8217         * NEWS: Mention the change.
8218         Reported by Paul Eggert.
8219
8220 2011-11-01  Bruno Haible  <bruno@clisp.org>
8221
8222         New module 'fchownat', split off from module 'openat'.
8223         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8224         defined.
8225         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8226         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8227         invoke gl_FUNC_FCHOWNAT.
8228         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8229         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8230         * modules/fchownat: New file, extracted from modules/openat.
8231         * modules/openat (Files): Remove lib/fchownat.c.
8232         (Depends-on): Remove lchown.
8233         (configure.ac): Remove AC_LIBOBJ of fchownat.
8234         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8235         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8236         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8237         (Depends-on): Remove mgetgroups, usleep, stat-time.
8238         (configure.ac): Remove test for getegid.
8239         (Makefile.am): Remove rules for test-fchownat.
8240         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8241         of module 'openat'.
8242         * NEWS: Mention the change.
8243
8244 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8245
8246         stdalign: port better to MSVC and to Sun C 5.11
8247         This fixes some of the problems reported by Bruno Haible in
8248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8249         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8250         shortcomings of MSVC and of Sun C 5.11.
8251         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8252         around __declspec arg.
8253         * modules/stdalign-tests (Files): Add tests/macros.h.
8254         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8255         Include macros.h, for ASSERT.
8256         (DECLARE_ALIGNED): Remove.
8257         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8258         to catch bug), and to 1 if not (simplifies the rest of the code).
8259         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8260         (CHECK_AUTO): Remove.
8261         (CHECK_ALIGNED): Check only the alignment of the static vars,
8262         since auto var alignment isn't supported by Sun C 5.11.
8263         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8264         ASSERT failures are easier to diagnose.
8265
8266 2011-10-31  Bruno Haible  <bruno@clisp.org>
8267
8268         doc about some IRIX 5.3 problems.
8269         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8270         on IRIX 5.3.
8271         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8272         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8273         5.3.
8274         * doc/posix-functions/grantpt.texi: Likewise.
8275         * doc/posix-functions/unlockpt.texi: Likewise.
8276         * doc/posix-functions/lgamma.texi: Likewise.
8277         * doc/posix-functions/nextafter.texi: Likewise.
8278         * doc/posix-functions/remainder.texi: Likewise.
8279         * doc/posix-functions/select.texi: Mention misplaced declaration on
8280         IRIX 5.3.
8281         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8282
8283 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8284
8285         gitlog-to-changelog: fix git-log invocation.
8286         git-log mishandles date strings before 1970-01-01 UTC, and there is
8287         no use to specify --since=1970-01-01 by default anyway.
8288         * build-aux/gitlog-to-changelog: By default, when no --since option
8289         was given, do not specify explicit --since option to git-log.
8290
8291 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8292
8293         gitlog-to-changelog: new option --append-dot.
8294         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8295         first non-blank line of each commit message terminated with a dot.
8296
8297 2011-10-30  Bruno Haible  <bruno@clisp.org>
8298
8299         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8300         * lib/ffsl.h: Include <config.h>.
8301         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8302
8303 2011-10-30  Jim Meyering  <meyering@redhat.com>
8304
8305         GNUmakefile: reenable "make syntax-check" for most projects
8306         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8307         build-aux variable", "syntax-check" would do nothing but succeed with
8308         the "No version control files detected..." diagnostic (unless you
8309         happened to override _build-aux via cfg.mk).
8310         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8311         to precede inclusion of maint.mk.  Otherwise, these variables would
8312         be used undefined in any project that does not override the default.
8313
8314 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8315
8316         gitlog-to-changelog: treat a message with only blank lines as empty.
8317         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8318         trailing blank lines before the code that issues a warning about an
8319         empty commit message.
8320
8321 2011-10-30  Jim Meyering  <meyering@redhat.com>
8322
8323         test-parse-datetime.c: avoid new DST-related false positive test failure
8324         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8325         based on the time/date we'll convert, not the current time.
8326         Otherwise, the moment we cross a DST boundary like today's in
8327         Europe, (CEST to CET), that offset ends up being one hour off.
8328
8329 2011-10-27  Bruno Haible  <bruno@clisp.org>
8330
8331         fstat: Tweak documentation.
8332         * modules/fstat (Description): More precise description.
8333
8334 2011-10-27  Bruno Haible  <bruno@clisp.org>
8335
8336         Update documentation regarding 'largefile' module.
8337         * doc/posix-functions/fstat.texi: Tweak wording.
8338         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8339         problems with huge directories and/or small ino_t types.
8340         * doc/posix-functions/readdir.texi: Likewise.
8341         * doc/posix-functions/rewinddir.texi: Likewise.
8342
8343 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8344
8345         maint.mk: don't maintain a second build-aux variable.
8346         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8347         depends on GNUmakefile, which already maintains a cfg.mk
8348         overridable $(_build-aux) for projects with a non-standard
8349         build-aux directory location, although without the $(srcdir)
8350         prefix.  Use that variable consistently instead of introducing a
8351         second one.  Adjust all call sites.
8352
8353 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8354
8355         Add stdalign module and use it in other modules.
8356         This is based on a previous proposal by Bruno Haible
8357         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8358
8359         stdalign: new module
8360         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8361         * modules/stdalign: New files.
8362         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8363         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8364
8365         stdalign-tests: new module
8366         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8367
8368         argp: use stdalign
8369         * lib/argp-parse.c: Include <stdalign.h>.
8370         (alignof): Remove.
8371         * modules/argp (Depends-on): Add stdalign.
8372
8373         crypto libraries: use stdalign
8374         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8375         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8376         Do not include <stdlib.h> twice, in md4.c.
8377         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8378         because we are accessing a pointer's bit-pattern, not a size.
8379         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8380         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8381         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8382         * modules/crypto/sha512: Likewise.
8383
8384         sys_socket: use stdalign, not alignof
8385         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8386         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8387
8388 2011-10-27  Bruno Haible  <bruno@clisp.org>
8389
8390         raise test: Avoid a test failure on Linux/MIPS.
8391         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8392         because 99 is a valid signal on Linux/MIPS.
8393
8394 2011-10-27  Bruno Haible  <bruno@clisp.org>
8395
8396         nonblocking tests: Fix test failure on Linux/MIPS.
8397         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8398         Set to 270000.
8399
8400 2011-10-27  Bruno Haible  <bruno@clisp.org>
8401
8402         utimensat: Work around problem on Linux/hppa.
8403         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8404         values.
8405         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8406
8407 2011-10-25  Jim Meyering  <meyering@redhat.com>
8408
8409         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8410         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8411         after symbols like NULL, size_t, etc.
8412         Reported by Alfred M. Szmidt.
8413
8414         maint.mk: exempt ENODATA from a syntax-check rule
8415         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8416         from the sc_prohibit_always-defined_macros syntax-check rule.
8417         Add a comment.  See this for more details:
8418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8419
8420 2011-10-23  Jim Meyering  <meyering@redhat.com>
8421
8422         fts: close parent dir FD before returning from post-traversal fts_read
8423         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8424         unlink A, even though an FD open on A remained.  This is suboptimal
8425         (holding a file descriptor open longer than needed), but otherwise not
8426         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8427         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8428         that represents a real problem: it causes the removal of A to fail
8429         with e.g., "rm: cannot remove `A': Device or resource busy"
8430
8431         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8432         directory file descriptors.  After completing the final, FTS_DP,
8433         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8434         cache, but then proceeded to add a new FD to it via the subsequent
8435         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8436         final file descriptor would be closed only via fts_close's call to
8437         fd_ring_clear.  Now, it is usually closed earlier, via the final
8438         FTS_DP-returning fts_read call.
8439         * lib/fts.c (restore_initial_cwd): New function, converted from
8440         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8441         Update callers.
8442         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8443         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8444
8445 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8446             Bruno Haible  <bruno@clisp.org>
8447             Jim Meyering  <jim@meyering.net>
8448
8449         readme-release: improve safety of release prep instructions.
8450         * README-release: Don't git pull all branches when only master
8451         is needed for the release process.
8452         Run make maintainer-clean before changing trees and merging.
8453         Don't try to run ./configure right after git pull in case files
8454         that influence the bootstrap process have changed, move the
8455         ./configure step to after running ./bootstrap.
8456         Don't bootstrap "one last time"... it's the first time!
8457
8458 2011-10-22  Bruno Haible  <bruno@clisp.org>
8459
8460         errno, strerror-override: Support for MSVC 10.
8461         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8462         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8463         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8464         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8465         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8466         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8467         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8468         Assign values compatible with MSVC 10.
8469         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8470         New macros.
8471         (GNULIB_defined_EWINSOCK): New macro.
8472         * lib/strerror-override.c (strerror_override): Update accordingly.
8473         * lib/strerror-override.h: Likewise.
8474         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8475         longer equal to the corresponding errno value.
8476         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8477
8478 2011-10-22  Bruno Haible  <bruno@clisp.org>
8479
8480         perror: Recognize when test program crashes.
8481         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8482         strerror, set gl_cv_func_perror_works to no.
8483         Reported by Daniel Richard G. <skunk@iskunk.org>.
8484
8485         perror: Fix indentation.
8486         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8487
8488 2011-10-22  Bruno Haible  <bruno@clisp.org>
8489
8490         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8491         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8492         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8493         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8494         functions, not as a macro.
8495         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8496         macros.
8497         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8498         absence of macro.
8499         Suggested by Eric Blake.
8500         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8501
8502 2011-10-21  Bruno Haible  <bruno@clisp.org>
8503
8504         relocatable-prog-wrapper: Don't leave object files behind.
8505         * build-aux/install-reloc: Re-synchronize list of .o files to be
8506         removed with list of compilation units.
8507
8508 2011-10-20  Bruno Haible  <bruno@clisp.org>
8509
8510         openpty, posix_openpt: Remove code duplication.
8511         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8512         * lib/openpty.c: Include <stdlib.h>.
8513         (openpty): Use posix_openpt on all platforms except IRIX.
8514         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8515
8516 2011-10-20  Bruno Haible  <bruno@clisp.org>
8517
8518         unlockpt: Detect invalid argument.
8519         * lib/unlockpt.c: Include <fcntl.h>.
8520         (unlockpt): Check whether fd is valid, using fcntl().
8521         * modules/unlockpt (Depends-on): Add fcntl-h.
8522
8523 2011-10-20  Bruno Haible  <bruno@clisp.org>
8524
8525         openpty: Avoid compilation error on AIX 6.1.
8526         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8527
8528 2011-10-20  Bruno Haible  <bruno@clisp.org>
8529
8530         posix_openpt: Support for OpenBSD.
8531         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8532         (posix_openpt) [OpenBSD]: New code.
8533         * lib/grantpt.c: Include <fcntl.h>.
8534         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8535         * modules/grantpt (Depends-on): Add fcntl-h.
8536
8537 2011-10-20  Bruno Haible  <bruno@clisp.org>
8538
8539         posix_openpt test: Coding style.
8540         * tests/test-posix_openpt.c: Use GNU coding style.
8541
8542 2011-10-20  Bruno Haible  <bruno@clisp.org>
8543
8544         grantpt: Support --avoid=pt_chown.
8545         * modules/grantpt (Files): Add lib/pty-private.h.
8546
8547 2011-10-20  Bruno Haible  <bruno@clisp.org>
8548
8549         posix_openpt: Fix autoconf macro.
8550         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8551         unneeded check for _getpty.
8552
8553 2011-10-20  Bruno Haible  <bruno@clisp.org>
8554
8555         openpty: Update comments.
8556         * lib/openpty.c: Add comments about Minix.
8557
8558 2011-10-19  Eric Blake  <eblake@redhat.com>
8559
8560         openpty: relax license
8561         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8562
8563         pt_chown: use configmake to simplify build
8564         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8565
8566         ptsname and others: relax license
8567         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8568         * modules/unlockpt (License): Likewise.
8569         * modules/pt_chown (License): Likewise.
8570         * modules/ptsname (License): Likewise.
8571         * modules/ttyname_r (License): Likewise.
8572
8573 2011-10-19  Jim Meyering  <meyering@redhat.com>
8574
8575         posix_openpt: remove spurious #endif
8576         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8577
8578 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8579
8580         maint.mk: Respect $(build_aux) in web-manual rule.
8581         * top/maint.mk (web-manual): Find gen-announce script in user's
8582         $(build_aux) directory instead of hard-coding 'build-aux'.
8583
8584 2011-10-19  Bruno Haible  <bruno@clisp.org>
8585
8586         posix_openpt: Fix compilation error.
8587         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8588         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8589         Mention the openpty module as an alternative.
8590
8591 2011-10-19  Bruno Haible  <bruno@clisp.org>
8592
8593         Support for old NeXTstep 3.3 frexp().
8594         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8595         execution time of the test to 5 seconds.
8596         Reported by Daniel Richard G. <skunk@iskunk.org>.
8597
8598 2011-10-19  Bruno Haible  <bruno@clisp.org>
8599
8600         Support for old NeXTstep 3.3 sed.
8601         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8602         part, use /.../, not \|...|. Escape periods in the header file name.
8603         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8604         Reported by Daniel Richard G. <skunk@iskunk.org>.
8605
8606 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8607
8608         Support for old NeXTstep 3.3 gcc.
8609         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8610         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8611         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8612         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8613         * lib/regex.h (_Restrict_arr_): Likewise.
8614         * lib/regex_internal.h (re_token_t): Likewise.
8615         * lib/regexec.c (check_node_accept_bytes): Likewise.
8616         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8617
8618 2011-10-18  Eric Blake  <eblake@redhat.com>
8619
8620         posix_openpt: new module
8621         * modules/posix_openpt: New module.
8622         * m4/posix_openpt.m4: New file.
8623         * lib/posix_openpt.c: Likewise.
8624         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8625         (gl_STDLIB_H_DEFAULTS): Set defaults.
8626         * modules/stdlib (Makefile.am): Substitute macros.
8627         * lib/stdlib.in.h (posix_openpt): Declare.
8628         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8629         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8630         * modules/posix_openpt-tests: New test module.
8631         * tests/test-posix_openpt.c: New test.
8632
8633 2011-10-15  Bruno Haible  <bruno@clisp.org>
8634
8635         xstrtoll: Fix compilation failure.
8636         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8637         from lib/strtol.c.
8638         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8639         some platforms.
8640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8641
8642 2011-10-15  Bruno Haible  <bruno@clisp.org>
8643
8644         vasnprintf: Optimize bit search operation.
8645         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8647         gl_DOUBLE_EXPONENT_LOCATION.
8648         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8649         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8650         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8651         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8652         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8653         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8654         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8655         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8656         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8657
8658 2011-10-15  Bruno Haible  <bruno@clisp.org>
8659
8660         vasnprintf: Fix comments.
8661         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8662
8663 2011-10-14  Bruno Haible  <bruno@clisp.org>
8664
8665         Tests for module 'integer_length_ll'.
8666         * modules/integer_length_ll-tests: New file.
8667         * tests/test-integer_length_ll.c: New file.
8668
8669         New module 'integer_length_ll'.
8670         * lib/integer_length_ll.c: New file.
8671         * modules/integer_length_ll: New file.
8672
8673 2011-10-14  Bruno Haible  <bruno@clisp.org>
8674
8675         Tests for module 'integer_length_l'.
8676         * modules/integer_length_l-tests: New file.
8677         * tests/test-integer_length_l.c: New file.
8678
8679         New module 'integer_length_l'.
8680         * lib/integer_length_l.c: New file.
8681         * modules/integer_length_l: New file.
8682
8683 2011-10-14  Bruno Haible  <bruno@clisp.org>
8684
8685         Tests for module 'integer_length'.
8686         * modules/integer_length-tests: New file.
8687         * tests/test-integer_length.c: New file.
8688
8689         New module 'integer_length'.
8690         * lib/integer_length.h: New file.
8691         * lib/integer_length.c: New file.
8692         * modules/integer_length: New file.
8693
8694 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8695
8696         popen: Fix dependency conditions.
8697         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8698
8699 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8700
8701         perror: Fix autoconf test.
8702         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8703         <stdlib.h> and <string.h>.
8704
8705 2011-10-14  Bruno Haible  <bruno@clisp.org>
8706
8707         ffsl: Optimize on 64-bit platforms.
8708         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8709         unrolling.
8710
8711 2011-10-13  Bruno Haible  <bruno@clisp.org>
8712
8713         ffsl: Optimize on 32-bit platforms.
8714         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8715         use ffs() without a loop.
8716
8717         ffsl, ffsll: Optimize for GCC.
8718         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8719         * lib/ffsl.c (GCC_BUILTIN): New macro.
8720         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8721
8722 2011-10-13  Bruno Haible  <bruno@clisp.org>
8723
8724         ffs, bcopy, memset: Support symbol renaming via config.h.
8725         * lib/ffs.c: Include <config.h>.
8726         * lib/bcopy.c: Likewise.
8727         * lib/memset.c: Likewise.
8728
8729 2011-10-10  Bruno Haible  <bruno@clisp.org>
8730
8731         atanl: Simplify for platforms where 'long double' == 'double'.
8732         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8733         alternative implementation.
8734         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8735         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8736         * modules/atanl (Depends-on): Add atan. Update conditions.
8737
8738 2011-10-10  Bruno Haible  <bruno@clisp.org>
8739
8740         acosl: Simplify for platforms where 'long double' == 'double'.
8741         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8742         alternative implementation.
8743         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8744         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8745         * modules/acosl (Depends-on): Add acos. Update conditions.
8746
8747 2011-10-10  Bruno Haible  <bruno@clisp.org>
8748
8749         asinl: Simplify for platforms where 'long double' == 'double'.
8750         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8751         alternative implementation.
8752         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8753         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8754         * modules/asinl (Depends-on): Add asin. Update conditions.
8755
8756 2011-10-10  Bruno Haible  <bruno@clisp.org>
8757
8758         tanl: Simplify for platforms where 'long double' == 'double'.
8759         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8760         implementation.
8761         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8762         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8763         * modules/tanl (Depends-on): Add tan. Update conditions.
8764         (configure.ac): Don't compile trigl.c if
8765         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8766
8767 2011-10-10  Bruno Haible  <bruno@clisp.org>
8768
8769         cosl: Simplify for platforms where 'long double' == 'double'.
8770         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8771         implementation.
8772         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8773         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8774         * modules/cosl (Depends-on): Add cos. Update conditions.
8775         (configure.ac): Don't compile sincosl.c and trigl.c if
8776         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8777
8778 2011-10-10  Bruno Haible  <bruno@clisp.org>
8779
8780         sinl: Simplify for platforms where 'long double' == 'double'.
8781         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8782         implementation.
8783         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8784         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8785         * modules/sinl (Depends-on): Add sin. Update conditions.
8786         (configure.ac): Don't compile sincosl.c and trigl.c if
8787         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8788
8789 2011-10-10  Bruno Haible  <bruno@clisp.org>
8790
8791         logl: Simplify for platforms where 'long double' == 'double'.
8792         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8793         implementation.
8794         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8795         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8796         * modules/logl (Depends-on): Add log. Update conditions.
8797
8798 2011-10-10  Bruno Haible  <bruno@clisp.org>
8799
8800         expl: Simplify for platforms where 'long double' == 'double'.
8801         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8802         implementation.
8803         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8804         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8805         * modules/expl (Depends-on): Add exp. Update conditions.
8806
8807 2011-10-10  Bruno Haible  <bruno@clisp.org>
8808
8809         sqrtl: Simplify for platforms where 'long double' == 'double'.
8810         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8811         alternative implementation.
8812         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8813         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8814         * modules/sqrtl (Depends-on): Update conditions.
8815
8816 2011-10-10  Bruno Haible  <bruno@clisp.org>
8817
8818         ldexpl: Simplify for platforms where 'long double' == 'double'.
8819         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8820         alternative implementation.
8821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8822         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8823         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8824
8825 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8826
8827         ffsll: set correct witness
8828         * modules/ffsll (configure.ac): Fix typo.
8829
8830 2011-10-10  Bruno Haible  <bruno@clisp.org>
8831
8832         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8833         * lib/printf-frexpl.c: Include <config.h>.
8834         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8835         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8836         second time.
8837         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8838         gl_LONG_DOUBLE_VS_DOUBLE.
8839         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8840         conditions.
8841
8842 2011-10-10  Bruno Haible  <bruno@clisp.org>
8843
8844         frexpl: Simplify for platforms where 'long double' == 'double'.
8845         * lib/frexpl.c: Include <config.h>.
8846         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8847         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8848         time.
8849         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8850         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8851         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8852         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8853         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8854         conditions.
8855
8856 2011-10-10  Jim Meyering  <meyering@redhat.com>
8857
8858         test-renameat: don't leave behind a temporary file
8859         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8860           ERROR: files left in build directory after distclean:
8861           ./gltests/test-renameat.too
8862           make[1]: *** [distcleancheck] Error 1
8863         Reported by Tom G. Christensen.
8864
8865 2011-10-09  Bruno Haible  <bruno@clisp.org>
8866
8867         rint: Determine RINT_LIBM correctly on AIX 7.
8868         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8869         directly, not only through a function pointer. Also accept an optional
8870         4th argument with extra code.
8871         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8872         rintf() call by gcc when optimizing.
8873
8874         mathfunc.m4: Refactor.
8875         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8876         m4 variable.
8877
8878 2011-10-09  Bruno Haible  <bruno@clisp.org>
8879
8880         rintl: Simplify for platforms where 'long double' == 'double'.
8881         * lib/rintl.c: Include <config.h>.
8882         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8883         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8884         time.
8885         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8886         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8887         * modules/rintl (Depends-on): Add rint. Update conditions.
8888
8889 2011-10-09  Bruno Haible  <bruno@clisp.org>
8890
8891         roundl: Simplify for platforms where 'long double' == 'double'.
8892         * lib/roundl.c: Include <config.h>.
8893         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8894         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8895         time.
8896         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8897         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8898         * modules/roundl (Depends-on): Add round. Update conditions.
8899
8900 2011-10-09  Bruno Haible  <bruno@clisp.org>
8901
8902         truncl: Simplify for platforms where 'long double' == 'double'.
8903         * lib/truncl.c: Include <config.h>.
8904         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8905         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8906         time.
8907         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8908         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8909         * modules/truncl (Depends-on): Add trunc. Update conditions.
8910
8911 2011-10-09  Bruno Haible  <bruno@clisp.org>
8912
8913         ceill: Simplify for platforms where 'long double' == 'double'.
8914         * lib/ceill.c: Include <config.h>.
8915         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8916         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8917         time.
8918         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8919         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8920         * modules/ceill (Depends-on): Add ceil. Update conditions.
8921
8922 2011-10-09  Bruno Haible  <bruno@clisp.org>
8923
8924         floorl: Simplify for platforms where 'long double' == 'double'.
8925         * lib/floorl.c: Include <config.h>.
8926         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8927         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8928         time.
8929         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8930         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8931         * modules/floorl (Depends-on): Add floor. Update conditions.
8932
8933 2011-10-09  Bruno Haible  <bruno@clisp.org>
8934
8935         rint: Fix ordering constraints.
8936         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8937         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8938         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8939
8940 2011-10-09  Bruno Haible  <bruno@clisp.org>
8941
8942         copysignl: Simplify for platforms where 'long double' == 'double'.
8943         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8944         alternative.
8945         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8946         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8947         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8948
8949 2011-10-09  Bruno Haible  <bruno@clisp.org>
8950
8951         Tests for module 'rintl'.
8952         * modules/rintl-tests: New file.
8953         * tests/test-rintl.c: New file.
8954
8955         New module 'rintl'.
8956         * lib/math.in.h (rintl): New declaration.
8957         * lib/rintl.c: New file.
8958         * m4/rintl.m4: New file.
8959         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8961         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8962         * modules/rintl: New file.
8963         * tests/test-math-c++.cc: Check the declaration of rintl.
8964         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8965         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8966         * doc/posix-functions/rintl.texi: Mention the new module.
8967
8968 2011-10-09  Bruno Haible  <bruno@clisp.org>
8969
8970         Tests for module 'rintf'.
8971         * modules/rintf-tests: New file.
8972         * tests/test-rintf.c: New file.
8973
8974         New module 'rintf'.
8975         * lib/math.in.h (rintf): New declaration.
8976         * lib/rintf.c: New file.
8977         * m4/rintf.m4: New file.
8978         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8980         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8981         * modules/rintf: New file.
8982         * tests/test-math-c++.cc: Check the declaration of rintf.
8983         * doc/posix-functions/rintf.texi: Mention the new module.
8984
8985 2011-10-09  Bruno Haible  <bruno@clisp.org>
8986
8987         rint: Support for MSVC.
8988         * lib/math.in.h (rint): New declaration.
8989         * lib/rint.c: New file.
8990         * m4/rint.m4: New file.
8991         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8993         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8994         * modules/rint (Description): Fix.
8995         (Files): Add lib/rint.c, m4/rint.m4.
8996         (Depends-on): Add math.
8997         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8998         gl_MATH_MODULE_INDICATOR.
8999         * tests/test-math-c++.cc: Check the declaration of rint.
9000         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9001         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9002         * doc/posix-functions/rint.texi: Mention the replacement provided by
9003         the module.
9004
9005         rint tests: More tests.
9006         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9007         minus-zero.h, infinity.h, nan.h.
9008         (main): Skip the test if the current rounding mode is not standard. Add
9009         tests for negative numbers, minus zero, infinity, NaN.
9010         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9011         tests/nan.h.
9012         (Depends-on): Add isnand-nolibm.
9013
9014 2011-10-09  Bruno Haible  <bruno@clisp.org>
9015
9016         Tests for module 'copysignl'.
9017         * modules/copysignl-tests: New file.
9018         * tests/test-copysignl.c: New file.
9019
9020         New module 'copysignl'.
9021         * lib/math.in.h (copysignl): New declaration.
9022         * lib/copysignl.c: New file.
9023         * m4/copysignl.m4: New file.
9024         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9026         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9027         HAVE_COPYSIGNL.
9028         * modules/copysignl: New file.
9029         * tests/test-math-c++.cc: Check the declaration of copysignl.
9030         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9031         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9032         * doc/posix-functions/copysignl.texi: Mention the new module.
9033
9034 2011-10-09  Bruno Haible  <bruno@clisp.org>
9035
9036         Tests for module 'copysignf'.
9037         * modules/copysignf-tests: New file.
9038         * tests/test-copysignf.c: New file.
9039
9040         New module 'copysignf'.
9041         * lib/math.in.h (copysignf): New declaration.
9042         * lib/copysignf.c: New file.
9043         * m4/copysignf.m4: New file.
9044         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9046         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9047         HAVE_COPYSIGNF.
9048         * modules/copysignf: New file.
9049         * tests/test-math-c++.cc: Check the declaration of copysignf.
9050         * doc/posix-functions/copysignf.texi: Mention the new module.
9051
9052 2011-10-09  Bruno Haible  <bruno@clisp.org>
9053
9054         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9055         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9056         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9057         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9058         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9059         gl_SIGNAL_H_DEFAULTS.
9060
9061 2011-10-09  Bruno Haible  <bruno@clisp.org>
9062
9063         poll: Make macro safer.
9064         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9065         ac_cv_header_poll_h is not set.
9066
9067 2011-10-09  Bruno Haible  <bruno@clisp.org>
9068
9069         copysign: Provide replacement.
9070         * lib/math.in.h (copysign): New declaration.
9071         * lib/copysign.c: New file.
9072         * m4/copysign.m4: New file.
9073         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9075         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9076         HAVE_COPYSIGN.
9077         * modules/copysign (Description): Clarify.
9078         (Files): Add lib/copysign.c, m4/copysign.m4.
9079         (Depends-on): Add math, signbit.
9080         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9081         gl_MATH_MODULE_INDICATOR.
9082         * tests/test-math-c++.cc: Check the declaration of copysign.
9083         * doc/posix-functions/copysign.texi: Mention the effects of the module
9084         on Minix and MSVC.
9085
9086 2011-10-09  Bruno Haible  <bruno@clisp.org>
9087
9088         isinf: Ensure macro on AIX 5.1.
9089         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9090         macro.
9091         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9092
9093 2011-10-09  Bruno Haible  <bruno@clisp.org>
9094
9095         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9096         * modules/snprintf-posix-tests (configure.ac): Require
9097         gl_LONG_DOUBLE_VS_DOUBLE.
9098         * modules/sprintf-posix-tests (configure.ac): Likewise.
9099         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9100         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9101         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9102         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9103         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9104         tests on platforms where 'long double' is the same as 'double'.
9105         * tests/test-sprintf-posix.h (test_function): Likewise.
9106         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9107         * tests/test-vasprintf-posix.c (test_function): Likewise.
9108
9109         *printf: Fix for platforms where 'long double' == 'double'.
9110         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9111         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9112         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9113         * modules/fprintf-posix (Files): Likewise.
9114         * modules/obstack-printf-posix (Files): Likewise.
9115         * modules/snprintf-posix (Files): Likewise.
9116         * modules/sprintf-posix (Files): Likewise.
9117         * modules/vasnprintf (Files): Likewise.
9118         * modules/vasnprintf-posix (Files): Likewise.
9119         * modules/vasprintf-posix (Files): Likewise.
9120         * modules/vdprintf-posix (Files): Likewise.
9121         * modules/vfprintf-posix (Files): Likewise.
9122         * modules/vsnprintf-posix (Files): Likewise.
9123         * modules/vsprintf-posix (Files): Likewise.
9124         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9125         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9126         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9127         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9128         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9129         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9130         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9131
9132         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9133         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9134         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9135         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9136         'long double'.
9137         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9138
9139         isinf: Fix for platforms where 'long double' == 'double'.
9140         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9141         Don't blindly assume 80-bit 'long double'.
9142
9143         isfinite: Fix for platforms where 'long double' == 'double'.
9144         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9145         Don't blindly assume 80-bit 'long double'.
9146
9147         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9148         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9149         * modules/isfinite-tests (configure.ac): Require
9150         gl_LONG_DOUBLE_VS_DOUBLE.
9151         * modules/isinf-tests (configure.ac): Likewise.
9152         * modules/isnan-tests (configure.ac): Likewise.
9153         * modules/isnanl-tests (configure.ac): Likewise.
9154         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9155         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9156         tests on platforms where 'long double' is the same as 'double'.
9157         * tests/test-isinf.c (test_isinfl): Likewise.
9158         * tests/test-isnan.c (test_long_double): Likewise.
9159         * tests/test-isnanl.h (main): Likewise.
9160
9161 2011-10-08  Bruno Haible  <bruno@clisp.org>
9162
9163         Tests for module 'tanhf'.
9164         * modules/tanhf-tests: New file.
9165         * tests/test-tanhf.c: New file.
9166
9167         New module 'tanhf'.
9168         * lib/math.in.h (tanhf): New declaration.
9169         * lib/tanhf.c: New file.
9170         * m4/tanhf.m4: New file.
9171         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9173         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9174         * modules/tanhf: New file.
9175         * tests/test-math-c++.cc: Check the declaration of tanhf.
9176         * doc/posix-functions/tanhf.texi: Mention the new module.
9177
9178         tanh: Use a .m4 file.
9179         * m4/tanh.m4: New file.
9180         * modules/tanh (Files): Add it.
9181         (configure.ac): Just invoke gl_FUNC_TANH.
9182
9183 2011-10-08  Bruno Haible  <bruno@clisp.org>
9184
9185         Tests for module 'coshf'.
9186         * modules/coshf-tests: New file.
9187         * tests/test-coshf.c: New file.
9188
9189         New module 'coshf'.
9190         * lib/math.in.h (coshf): New declaration.
9191         * lib/coshf.c: New file.
9192         * m4/coshf.m4: New file.
9193         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9195         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9196         * modules/coshf: New file.
9197         * tests/test-math-c++.cc: Check the declaration of coshf.
9198         * doc/posix-functions/coshf.texi: Mention the new module.
9199
9200         cosh: Use a .m4 file.
9201         * m4/cosh.m4: New file.
9202         * modules/cosh (Files): Add it.
9203         (configure.ac): Just invoke gl_FUNC_COSH.
9204
9205 2011-10-08  Bruno Haible  <bruno@clisp.org>
9206
9207         Tests for module 'sinhf'.
9208         * modules/sinhf-tests: New file.
9209         * tests/test-sinhf.c: New file.
9210
9211         New module 'sinhf'.
9212         * lib/math.in.h (sinhf): New declaration.
9213         * lib/sinhf.c: New file.
9214         * m4/sinhf.m4: New file.
9215         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9217         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9218         * modules/sinhf: New file.
9219         * tests/test-math-c++.cc: Check the declaration of sinhf.
9220         * doc/posix-functions/sinhf.texi: Mention the new module.
9221
9222         sinh: Use a .m4 file.
9223         * m4/sinh.m4: New file.
9224         * modules/sinh (Files): Add it.
9225         (configure.ac): Just invoke gl_FUNC_SINH.
9226
9227 2011-10-08  Bruno Haible  <bruno@clisp.org>
9228
9229         Tests for module 'atan2f'.
9230         * modules/atan2f-tests: New file.
9231         * tests/test-atan2f.c: New file.
9232
9233         New module 'atan2f'.
9234         * lib/math.in.h (atan2f): New declaration.
9235         * lib/atan2f.c: New file.
9236         * m4/atan2f.m4: New file.
9237         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9239         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9240         * modules/atan2f: New file.
9241         * tests/test-math-c++.cc: Check the declaration of atan2f.
9242         * doc/posix-functions/atan2f.texi: Mention the new module.
9243
9244         atan2: Use a .m4 file.
9245         * m4/atan2.m4: New file.
9246         * modules/atan2 (Files): Add it.
9247         (configure.ac): Just invoke gl_FUNC_ATAN2.
9248
9249 2011-10-08  Bruno Haible  <bruno@clisp.org>
9250
9251         Tests for module 'atanf'.
9252         * modules/atanf-tests: New file.
9253         * tests/test-atanf.c: New file.
9254
9255         New module 'atanf'.
9256         * lib/math.in.h (atanf): New declaration.
9257         * lib/atanf.c: New file.
9258         * m4/atanf.m4: New file.
9259         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9261         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9262         * modules/atanf: New file.
9263         * tests/test-math-c++.cc: Check the declaration of atanf.
9264         * doc/posix-functions/atanf.texi: Mention the new module.
9265
9266         atan: Use a .m4 file.
9267         * m4/atan.m4: New file.
9268         * modules/atan (Files): Add it.
9269         (configure.ac): Just invoke gl_FUNC_ATAN.
9270
9271 2011-10-08  Bruno Haible  <bruno@clisp.org>
9272
9273         Tests for module 'acosf'.
9274         * modules/acosf-tests: New file.
9275         * tests/test-acosf.c: New file.
9276
9277         New module 'acosf'.
9278         * lib/math.in.h (acosf): New declaration.
9279         * lib/acosf.c: New file.
9280         * m4/acosf.m4: New file.
9281         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9282         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9283         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9284         * modules/acosf: New file.
9285         * tests/test-math-c++.cc: Check the declaration of acosf.
9286         * doc/posix-functions/acosf.texi: Mention the new module.
9287
9288         acos: Use a .m4 file.
9289         * m4/acos.m4: New file.
9290         * modules/acos (Files): Add it.
9291         (configure.ac): Just invoke gl_FUNC_ACOS.
9292
9293 2011-10-08  Bruno Haible  <bruno@clisp.org>
9294
9295         Tests for module 'asinf'.
9296         * modules/asinf-tests: New file.
9297         * tests/test-asinf.c: New file.
9298
9299         New module 'asinf'.
9300         * lib/math.in.h (asinf): New declaration.
9301         * lib/asinf.c: New file.
9302         * m4/asinf.m4: New file.
9303         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9305         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9306         * modules/asinf: New file.
9307         * tests/test-math-c++.cc: Check the declaration of asinf.
9308         * doc/posix-functions/asinf.texi: Mention the new module.
9309
9310         asin: Use a .m4 file.
9311         * m4/asin.m4: New file.
9312         * modules/asin (Files): Add it.
9313         (configure.ac): Just invoke gl_FUNC_ASIN.
9314
9315 2011-10-08  Bruno Haible  <bruno@clisp.org>
9316
9317         Tests for module 'tanf'.
9318         * modules/tanf-tests: New file.
9319         * tests/test-tanf.c: New file.
9320
9321         New module 'tanf'.
9322         * lib/math.in.h (tanf): New declaration.
9323         * lib/tanf.c: New file.
9324         * m4/tanf.m4: New file.
9325         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9326         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9327         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9328         * modules/tanf: New file.
9329         * tests/test-math-c++.cc: Check the declaration of tanf.
9330         * doc/posix-functions/tanf.texi: Mention the new module.
9331
9332         tan: Use a .m4 file.
9333         * m4/tan.m4: New file.
9334         * modules/tan (Files): Add it.
9335         (configure.ac): Just invoke gl_FUNC_TAN.
9336
9337 2011-10-08  Bruno Haible  <bruno@clisp.org>
9338
9339         Tests for module 'cosf'.
9340         * modules/cosf-tests: New file.
9341         * tests/test-cosf.c: New file.
9342
9343         New module 'cosf'.
9344         * lib/math.in.h (cosf): New declaration.
9345         * lib/cosf.c: New file.
9346         * m4/cosf.m4: New file.
9347         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9349         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9350         * modules/cosf: New file.
9351         * tests/test-math-c++.cc: Check the declaration of cosf.
9352         * doc/posix-functions/cosf.texi: Mention the new module.
9353
9354         cos: Use a .m4 file.
9355         * m4/cos.m4: New file.
9356         * modules/cos (Files): Add it.
9357         (configure.ac): Just invoke gl_FUNC_COS.
9358
9359 2011-10-08  Bruno Haible  <bruno@clisp.org>
9360
9361         Tests for module 'sinf'.
9362         * modules/sinf-tests: New file.
9363         * tests/test-sinf.c: New file.
9364
9365         New module 'sinf'.
9366         * lib/math.in.h (sinf): New declaration.
9367         * lib/sinf.c: New file.
9368         * m4/sinf.m4: New file.
9369         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9371         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9372         * modules/sinf: New file.
9373         * tests/test-math-c++.cc: Check the declaration of sinf.
9374         * doc/posix-functions/sinf.texi: Mention the new module.
9375
9376         sin: Use a .m4 file.
9377         * m4/sin.m4: New file.
9378         * modules/sin (Files): Add it.
9379         (configure.ac): Just invoke gl_FUNC_SIN.
9380
9381 2011-10-08  Bruno Haible  <bruno@clisp.org>
9382
9383         Tests for module 'powf'.
9384         * modules/powf-tests: New file.
9385         * tests/test-powf.c: New file.
9386
9387         New module 'powf'.
9388         * lib/math.in.h (powf): New declaration.
9389         * lib/powf.c: New file.
9390         * m4/powf.m4: New file.
9391         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9393         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9394         * modules/powf: New file.
9395         * tests/test-math-c++.cc: Check the declaration of powf.
9396         * doc/posix-functions/powf.texi: Mention the new module.
9397
9398         pow: Use a .m4 file.
9399         * m4/pow.m4: New file.
9400         * modules/pow (Files): Add it.
9401         (configure.ac): Just invoke gl_FUNC_POW.
9402
9403 2011-10-08  Bruno Haible  <bruno@clisp.org>
9404
9405         Tests for module 'log10f'.
9406         * modules/log10f-tests: New file.
9407         * tests/test-log10f.c: New file.
9408
9409         New module 'log10f'.
9410         * lib/math.in.h (log10f): New declaration.
9411         * lib/log10f.c: New file.
9412         * m4/log10f.m4: New file.
9413         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9415         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9416         * modules/log10f: New file.
9417         * tests/test-math-c++.cc: Check the declaration of log10f.
9418         * doc/posix-functions/log10f.texi: Mention the new module.
9419
9420         log10: Use a .m4 file.
9421         * m4/log10.m4: New file.
9422         * modules/log10 (Files): Add it.
9423         (configure.ac): Just invoke gl_FUNC_LOG10.
9424
9425 2011-10-08  Bruno Haible  <bruno@clisp.org>
9426
9427         Tests for module 'logf'.
9428         * modules/logf-tests: New file.
9429         * tests/test-logf.c: New file.
9430
9431         New module 'logf'.
9432         * lib/math.in.h (logf): New declaration.
9433         * lib/logf.c: New file.
9434         * m4/logf.m4: New file.
9435         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9437         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9438         * modules/logf: New file.
9439         * tests/test-math-c++.cc: Check the declaration of logf.
9440         * doc/posix-functions/logf.texi: Mention the new module.
9441
9442         log: Use a .m4 file.
9443         * m4/log.m4: New file.
9444         * modules/log (Files): Add it.
9445         (configure.ac): Just invoke gl_FUNC_LOG.
9446
9447 2011-10-08  Bruno Haible  <bruno@clisp.org>
9448
9449         Tests for module 'expf'.
9450         * modules/expf-tests: New file.
9451         * tests/test-expf.c: New file.
9452
9453         New module 'expf'.
9454         * lib/math.in.h (expf): New declaration.
9455         * lib/expf.c: New file.
9456         * m4/expf.m4: New file.
9457         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9459         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9460         * modules/expf: New file.
9461         * tests/test-math-c++.cc: Check the declaration of expf.
9462         * doc/posix-functions/expf.texi: Mention the new module.
9463
9464         exp: Use a .m4 file.
9465         * m4/exp.m4: New file.
9466         * modules/exp (Files): Add it.
9467         (configure.ac): Just invoke gl_FUNC_EXP.
9468
9469 2011-10-08  Bruno Haible  <bruno@clisp.org>
9470
9471         Tests for module 'sqrtf'.
9472         * modules/sqrtf-tests: New file.
9473         * tests/test-sqrtf.c: New file.
9474
9475         New module 'sqrtf'.
9476         * lib/math.in.h (sqrtf): New declaration.
9477         * lib/sqrtf.c: New file.
9478         * m4/sqrtf.m4: New file.
9479         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9481         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9482         * modules/sqrtf: New file.
9483         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9484         * doc/posix-functions/sqrtf.texi: Mention the new module.
9485
9486 2011-10-08  Bruno Haible  <bruno@clisp.org>
9487
9488         Tests: Avoid link failures w.r.t. libintl.
9489         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9490         $(LIBINTL).
9491         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9492         $(LIBINTL).
9493         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9494         against $(LIBINTL).
9495         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9496         $(LIBINTL).
9497         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9498         $(LIBINTL).
9499         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9500
9501 2011-10-08  Bruno Haible  <bruno@clisp.org>
9502
9503         pow tests: Defeat compiler optimizations.
9504         * tests/test-pow.c (main): Assign arguments to x and y before use.
9505
9506 2011-10-08  Bruno Haible  <bruno@clisp.org>
9507
9508         gnulib-tool: Improve last commit.
9509         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9510         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9511         ignore dependencies that are not among the modules list.
9512
9513 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9514
9515         gnulib-tool: don't follow dependencies to avoided modules
9516         This fixes a bug that is related to the previous one.
9517         * gnulib-tool (func_modules_transitive_closure)
9518         (func_emit_autoconf_snippets):
9519         Check whether a dependency is acceptable before using it.
9520         (--extract-dependencies): Report an error if --avoid is also used,
9521         since this combination of options is not yet supported.
9522
9523         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9524         Problem reported by Peter Dyballa in
9525         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9526         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9527         when echoing "$condition".
9528
9529 2011-10-07  Bruno Haible  <bruno@clisp.org>
9530
9531         Fix documentation about math functions on MacOS X.
9532         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9533         MacOS X 10.5.
9534         * doc/posix-functions/fdim.texi: Likewise.
9535         * doc/posix-functions/feclearexcept.texi: Likewise.
9536         * doc/posix-functions/fegetenv.texi: Likewise.
9537         * doc/posix-functions/fegetround.texi: Likewise.
9538         * doc/posix-functions/feholdexcept.texi: Likewise.
9539         * doc/posix-functions/feraiseexcept.texi: Likewise.
9540         * doc/posix-functions/fesetenv.texi: Likewise.
9541         * doc/posix-functions/fesetround.texi: Likewise.
9542         * doc/posix-functions/fetestexcept.texi: Likewise.
9543         * doc/posix-functions/feupdateenv.texi: Likewise.
9544         * doc/posix-functions/fmax.texi: Likewise.
9545         * doc/posix-functions/fmin.texi: Likewise.
9546         * doc/posix-functions/log2.texi: Likewise.
9547         * doc/posix-functions/modff.texi: Likewise.
9548         * doc/posix-functions/nan.texi: Likewise.
9549         * doc/posix-functions/nanf.texi: Likewise.
9550         * doc/posix-functions/nextafterf.texi: Likewise.
9551         * doc/posix-functions/remquo.texi: Likewise.
9552
9553 2011-10-07  Bruno Haible  <bruno@clisp.org>
9554
9555         modff: Drop assumption about library that defines modff.
9556         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9557         AC_CHECK_FUNCS.
9558         * modules/modff (Files): Add m4/mathfunc.m4.
9559
9560 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9561
9562         raise tests: Avoid a GCC warning.
9563         * tests/test-raise.c (handler): Use _Noreturn.
9564
9565 2011-10-07  Bruno Haible  <bruno@clisp.org>
9566
9567         Tests for module 'ldexpf'.
9568         * modules/ldexpf-tests: New file.
9569         * tests/test-ldexpf.c: New file.
9570
9571         New module 'ldexpf'.
9572         * lib/math.in.h (ldexpf): New declaration.
9573         * lib/ldexpf.c: New file.
9574         * m4/ldexpf.m4: New file.
9575         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9577         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9578         * modules/ldexpf: New file.
9579         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9580         * doc/posix-functions/ldexpf.texi: Mention the new module.
9581
9582 2011-10-06  Bruno Haible  <bruno@clisp.org>
9583
9584         frexpf: Work around problems on IRIX and mingw.
9585         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9587         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9588         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9589         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9590         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9591         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9592
9593 2011-10-06  Bruno Haible  <bruno@clisp.org>
9594
9595         fabsf: Drop assumption about library that defines fabsf.
9596         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9597         AC_CHECK_FUNCS.
9598         * modules/fabsf (Files): Add m4/mathfunc.m4.
9599
9600 2011-10-06  Bruno Haible  <bruno@clisp.org>
9601
9602         frexpf: Drop assumption about library that defines frexpf.
9603         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9604         'int *', 'float *', 'long double *', 'float', 'long double'.
9605         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9606         AC_CHECK_FUNCS.
9607         * modules/frexpf (Files): Add m4/mathfunc.m4.
9608
9609         Tests for module 'frexpf'.
9610         * modules/frexpf-tests: New file.
9611         * tests/test-frexpf.c: New file.
9612
9613         New module 'frexpf'.
9614         * lib/math.in.h (frexpf): New declaration.
9615         * lib/frexpf.c: New file.
9616         * m4/frexpf.m4: New file.
9617         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9619         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9620         * modules/frexpf: New file.
9621         * tests/test-math-c++.cc: Check the declaration of frexpf.
9622         * doc/posix-functions/frexpf.texi: Mention the new module.
9623
9624 2011-10-06  Bruno Haible  <bruno@clisp.org>
9625
9626         math: Sort function declarations of math.in.h.
9627         * lib/math.in.h (frexp, logb): Move declarations.
9628
9629 2011-10-05  Bruno Haible  <bruno@clisp.org>
9630
9631         Tests for module 'modff'.
9632         * modules/modff-tests: New file.
9633         * tests/test-modff.c: New file.
9634
9635         New module 'modff'.
9636         * lib/math.in.h (modff): New declaration.
9637         * lib/modff.c: New file.
9638         * m4/modff.m4: New file.
9639         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9641         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9642         * modules/modff: New file.
9643         * tests/test-math-c++.cc: Check the declaration of modff.
9644         * doc/posix-functions/modff.texi: Mention the new module.
9645
9646         modf tests: Make test sharper.
9647         * tests/test-modf.c (main): Strengthen upper bound.
9648
9649         modf: Use a .m4 file.
9650         * m4/modf.m4: New file.
9651         * modules/modf (Files): Add it.
9652         (configure.ac): Just invoke gl_FUNC_MODF.
9653
9654 2011-10-05  Bruno Haible  <bruno@clisp.org>
9655
9656         Tests for module 'fmodf'.
9657         * modules/fmodf-tests: New file.
9658         * tests/test-fmodf.c: New file.
9659
9660         New module 'fmodf'.
9661         * lib/math.in.h (fmodf): New declaration.
9662         * lib/fmodf.c: New file.
9663         * m4/fmodf.m4: New file.
9664         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9666         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9667         * modules/fmodf: New file.
9668         * tests/test-math-c++.cc: Check the declaration of fmodf.
9669         * doc/posix-functions/fmodf.texi: Mention the new module.
9670
9671         fmod: Use a .m4 file.
9672         * m4/fmod.m4: New file.
9673         * modules/fmod (Files): Add it.
9674         (configure.ac): Just invoke gl_FUNC_FMOD.
9675
9676 2011-10-05  Bruno Haible  <bruno@clisp.org>
9677
9678         Tests for module 'fabsf'.
9679         * modules/fabsf-tests: New file.
9680         * tests/test-fabsf.c: New file.
9681
9682         New module 'fabsf'.
9683         * lib/math.in.h (fabsf): New declaration.
9684         * lib/fabsf.c: New file.
9685         * m4/fabsf.m4: New file.
9686         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9687         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9688         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9689         * modules/fabsf: New file.
9690         * tests/test-math-c++.cc: Check the declaration of fabsf.
9691         * doc/posix-functions/fabsf.texi: Mention the new module.
9692
9693         fabs: Use a .m4 file.
9694         * m4/fabs.m4: New file.
9695         * modules/fabs (Files): Add it.
9696         (configure.ac): Just invoke gl_FUNC_FABS.
9697
9698 2011-10-05  Jim Meyering  <meyering@redhat.com>
9699
9700         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9701         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9702         ls -lL regression introduced in coreutils-8.12, it does so at the
9703         cost of an additional stat call in the common case.  Besides, now
9704         that the kernel change that prompted commit 95f7c57f has been reverted
9705         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9706         we have no use for commit 95f7c57f, "file-has-acl: use
9707         acl_extended_file_nofollow if available".
9708
9709 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9710
9711         file-has-acl: revert unintended change in behavior of ls -L
9712         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9713         derived from...
9714         (file_has_acl): ...code here.  Call it.
9715         This problem was introduced with 2011-07-22 commit 95f7c57f,
9716         "file-has-acl: use acl_extended_file_nofollow if available".
9717         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9718
9719 2011-10-03  Bruno Haible  <bruno@clisp.org>
9720
9721         poll: Avoid link errors on MSVC.
9722         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9723         * modules/poll (Depends-on): Add sockets.
9724         (Link): New section.
9725         * NEWS: Mention the change.
9726         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9727         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9728         $(LIB_POLL) instead of $(LIBSOCKET).
9729
9730 2011-10-03  Bruno Haible  <bruno@clisp.org>
9731
9732         sys_select tests: Fix link error on MSVC 9.
9733         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9734         with $(LIB_SELECT) instead of $(LIBSOCKET).
9735
9736 2011-10-03  Bruno Haible  <bruno@clisp.org>
9737
9738         sys_select: Fix compilation error on mingw.
9739         * lib/sys_select.in.h: On native Windows, include <io.h>.
9740
9741 2011-10-03  Bruno Haible  <bruno@clisp.org>
9742
9743         wmemset: Support for MSVC.
9744         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9745         whether wmemset() exists.
9746
9747 2011-10-03  Bruno Haible  <bruno@clisp.org>
9748
9749         wmemmove: Support for MSVC.
9750         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9751         whether wmemmove() exists.
9752
9753 2011-10-03  Bruno Haible  <bruno@clisp.org>
9754
9755         wmemcpy: Support for MSVC.
9756         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9757         whether wmemcpy() exists.
9758
9759 2011-10-03  Bruno Haible  <bruno@clisp.org>
9760
9761         wmemcmp: Support for MSVC.
9762         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9763         whether wmemcmp() exists.
9764
9765 2011-10-03  Bruno Haible  <bruno@clisp.org>
9766
9767         wmemchr: Support for MSVC.
9768         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9769         whether wmemchr() exists.
9770
9771 2011-10-03  Bruno Haible  <bruno@clisp.org>
9772
9773         glthread/*, strsignal: Support for MSVC.
9774         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9775         including <winsock.h> on MSVC 9.
9776         * lib/glthread/lock.h: Likewise.
9777         * lib/glthread/thread.h: Likewise.
9778         * lib/glthread/tls.h: Likewise.
9779         * lib/glthread/yield.h: Likewise.
9780         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9781         if HAVE_UNISTD_H is false.
9782         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9783
9784 2011-10-03  Bruno Haible  <bruno@clisp.org>
9785
9786         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9787         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9788         Set to 100000.
9789
9790 2011-10-03  Bruno Haible  <bruno@clisp.org>
9791
9792         acl: Fix specification.
9793         * lib/file-has-acl.c (file_has_acl): Fix specification.
9794
9795 2011-10-03  Bruno Haible  <bruno@clisp.org>
9796
9797         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9798         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9799         (compute_curr_prefix, shared_library_fullname,
9800         find_shared_library_fullname, get_shared_library_fullname, relocate):
9801         Use it together with PIC && INSTALLDIR.
9802         Reported by <jojelino@gmail.com>
9803         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9804
9805 2011-10-01  Jim Meyering  <meyering@redhat.com>
9806
9807         maint.mk: adjust a release-related rule not to require use of gzip
9808         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9809         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9810         projects that build only .tar.xz files.  Also fix an erroneous test.
9811
9812         test-linkat: don't leave behind a temporary file
9813         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9814         Otherwise, coreutils' "make distcheck" would fail with this:
9815           Only in /c/cu/tests/torture/coreutils/test/\
9816             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9817           make[2]: *** [my-distcheck] Error 1
9818
9819         float, math: add omitted file
9820         * lib/itold.c: Add file, required for yesterday's float change.
9821
9822 2011-10-01  Bruno Haible  <bruno@clisp.org>
9823
9824         isinf: Fix for OpenBSD/x86.
9825         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9826         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9827         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9828
9829 2011-10-01  Bruno Haible  <bruno@clisp.org>
9830
9831         isfinite: Fix syntax error in configure test.
9832         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9833
9834         isfinite: Fix typo.
9835         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9836         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9837
9838 2011-10-01  Bruno Haible  <bruno@clisp.org>
9839
9840         nonblocking tests: Fix test failure on Linux/IA-64.
9841         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9842         Set to 270000.
9843
9844 2011-10-01  Bruno Haible  <bruno@clisp.org>
9845
9846         mkfifoat tests: Fix a test failure on mingw.
9847         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9848         with error ENOSYS.
9849
9850 2011-09-30  Bruno Haible  <bruno@clisp.org>
9851
9852         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9853         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9854         'long double'. Set REPLACE_ITOLD.
9855         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9856         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9857         * lib/itold.c: New file.
9858         * modules/float (Files): Add lib/itold.c.
9859         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9860         (Makefile.am): Substitute REPLACE_ITOLD.
9861         * modules/math (Depends-on): Add float.
9862         (Makefile.am): Substitute REPLACE_ITOLD.
9863         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9864         * doc/posix-headers/math.texi: Likewise.
9865         * doc/posix-functions/logl.texi: Likewise.
9866
9867 2011-09-30  Bruno Haible  <bruno@clisp.org>
9868
9869         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9870         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9871         Set to 140000.
9872
9873 2011-09-30  Bruno Haible  <bruno@clisp.org>
9874
9875         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9876         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9877         invocation, say "right after AC_PROG_CC_STDC", not "right after
9878         AC_PROG_CC".
9879         Reported by Gary V. Vaughan <gary@gnu.org>.
9880
9881 2011-09-30  Bruno Haible  <bruno@clisp.org>
9882
9883         Centralize C99 requirement.
9884         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9885         * modules/stdarg (configure.ac-early): Invoke it instead of
9886         AC_PROG_CC_STDC.
9887         Reported by Gary V. Vaughan and Paul Eggert.
9888
9889 2011-09-29  Bruno Haible  <bruno@clisp.org>
9890
9891         float: Fix LDBL_MAX value on Linux/PowerPC.
9892         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9893         on Linux/PowerPC.
9894         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9895         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9896         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9897         platform.
9898         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9899
9900 2011-09-29  Bruno Haible  <bruno@clisp.org>
9901
9902         doc: Improve doc about gl_EARLY.
9903         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9904         AC_PROG_CC_STDC invocation.
9905         Reported by Gary V. Vaughan <gary@gnu.org>.
9906
9907 2011-09-28  Bruno Haible  <bruno@clisp.org>
9908
9909         fgetc, fputc, fread, fwrite tests: Fix link error.
9910         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9911         on non-MSVC platforms.
9912         * tests/test-fputc.c (main): Likewise.
9913         * tests/test-fread.c (main): Likewise.
9914         * tests/test-fwrite.c (main): Likewise.
9915         Reported by Jim Meyering.
9916
9917 2011-09-27  Bruno Haible  <bruno@clisp.org>
9918
9919         fputc, fwrite tests: Avoid test failure on MSVC.
9920         * tests/test-fgetc.c: Include msvc-inval.h.
9921         (main): Invoke gl_msvc_inval_ensure_handler.
9922         * tests/test-fputc.c: Include msvc-inval.h.
9923         (main): Invoke gl_msvc_inval_ensure_handler.
9924         * tests/test-fread.c: Include msvc-inval.h.
9925         (main): Invoke gl_msvc_inval_ensure_handler.
9926         * tests/test-fwrite.c: Include msvc-inval.h.
9927         (main): Invoke gl_msvc_inval_ensure_handler.
9928         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9929         * modules/fputc-tests (Depends-on): Likewise.
9930         * modules/fread-tests (Depends-on): Likewise.
9931         * modules/fwrite-tests (Depends-on): Likewise.
9932
9933 2011-09-27  Bruno Haible  <bruno@clisp.org>
9934
9935         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9936         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9937         (raise): Remove older, duplicated declaration.
9938         (_gl_raise_SIGPIPE): New declaration.
9939         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9940         (rpl_raise): Remove function.
9941         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9942         a gnulib-defined SIGPIPE here.
9943         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9944         'sigprocmask' has detected missing signal-blocking and the module
9945         'sigpipe' is enabled.
9946         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9947
9948 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9949
9950         base64-tests: avoid memory leak
9951         * tests/test-base64.c (main): Plug memory leak.
9952
9953         base32: new module
9954         * modules/base32: New module.
9955         * lib/base32.c: New file.
9956         * lib/base32.h: Likewise.
9957         * m4/base32.m4: Likewise.
9958         * modules/base32-tests: New test.
9959         * tests/test-base32.c: Likewise.
9960         * MODULES.html.sh (Misc): Mention it.
9961
9962 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9963
9964         gnulib: use more-standard license notice wording
9965         * gnulib-tool (func_emit_copyright_notice): When emitting a
9966         license notice into a file, use the standard wording as suggested
9967         by the current information for GNU maintainers, except say "file"
9968         rather than "program".  The new wording gives a license version
9969         number, which addresses an issue raised by Glenn Morris in
9970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9971         * m4/onceonly.m4: Use that same wording here, too.
9972
9973         dup2: minor simplification
9974         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9975         as lib/dup2.c no longer uses 'inline'.
9976
9977 2011-09-25  Bruno Haible  <bruno@clisp.org>
9978
9979         strings: Fix compilation error on MSVC.
9980         * lib/strings.in.h: Include <stddef.h> for size_t.
9981
9982 2011-09-25  Bruno Haible  <bruno@clisp.org>
9983
9984         fflush et al.: Document limitation on MSVC.
9985         * doc/posix-functions/fflush.texi: Document possible crash in handling
9986         mode other than DEFAULT_HANDLING.
9987         * doc/posix-functions/fgetc.texi: Likewise.
9988         * doc/posix-functions/fputc.texi: Likewise.
9989         * doc/posix-functions/fread.texi: Likewise.
9990         * doc/posix-functions/fwrite.texi: Likewise.
9991
9992 2011-09-25  Bruno Haible  <bruno@clisp.org>
9993
9994         msvc-inval: Allow three invalid parameter handling modes.
9995         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9996         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9997         macros.
9998         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9999         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10000         SANE_LIBRARY_HANDLING as a no-op.
10001         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10002         <stdlib.h>.
10003         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10004
10005 2011-09-25  Bruno Haible  <bruno@clisp.org>
10006
10007         msvc-inval: Make handler multithread-safe.
10008         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10009         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10010         declarations.
10011         (gl_msvc_inval_current): New declaration.
10012         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10013         Operate on the structure returned by gl_msvc_inval_current().
10014         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10015         Remove varaiables.
10016         (tls_index, tls_initialized): New variables.
10017         (not_per_thread): New variable.
10018         (gl_msvc_inval_current): New function.
10019         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10020         returned by gl_msvc_inval_current().
10021
10022 2011-09-25  Bruno Haible  <bruno@clisp.org>
10023
10024         msvc-inval: Install handler globally.
10025         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10026         !_MSC_VER.
10027         (gl_msvc_invalid_parameter_handler): Remove declaration.
10028         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10029         declarations.
10030         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10031         Install the handler globally, don't uninstall it.
10032         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10033         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10034         currently valid, call RaiseException instead.
10035         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10036         for !_MSC_VER.
10037
10038 2011-09-25  Bruno Haible  <bruno@clisp.org>
10039
10040         strerror_r-posix: Fix for MSVC 9.
10041         * lib/strerror_r.c (local_snprintf): New function.
10042         (snprintf): Define to local_snprintf, not to _snprintf.
10043
10044 2011-09-25  Bruno Haible  <bruno@clisp.org>
10045
10046         ftruncate: Support for MSVC 9.
10047         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10048         (chsize_nothrow): New function.
10049         (chsize): Redefine as a macro.
10050         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10051         * modules/ftruncate (Depends-on): Add msvc-inval.
10052
10053 2011-09-25  Bruno Haible  <bruno@clisp.org>
10054
10055         New module 'fstat'.
10056         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10057         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10058         * lib/fchdir.c (rpl_fstat): Remove function.
10059         * m4/fstat.m4: New file.
10060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10062         declared.
10063         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10064         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10065         * modules/fstat: New file.
10066         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10067         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10068         is set.
10069         * doc/posix-functions/fstat.texi: Mention the new module and the
10070         problem on MSVC.
10071         * NEWS: Mention the change.
10072         * modules/acl (Depends-on): Add fstat.
10073         * modules/chdir-safer (Depends-on): Likewise.
10074         * modules/chown (Depends-on): Likewise.
10075         * modules/copy-file (Depends-on): Likewise.
10076         * modules/fchdir (Depends-on): Likewise.
10077         * modules/fdopendir (Depends-on): Likewise.
10078         * modules/fopen (Depends-on): Likewise.
10079         * modules/fts (Depends-on): Likewise.
10080         * modules/getcwd (Depends-on): Likewise.
10081         * modules/isapipe (Depends-on): Likewise.
10082         * modules/linkat (Depends-on): Likewise.
10083         * modules/lseek (Depends-on): Likewise.
10084         * modules/mkdir-p (Depends-on): Likewise.
10085         * modules/open (Depends-on): Likewise.
10086         * modules/openat (Depends-on): Likewise.
10087         * modules/read-file (Depends-on): Likewise.
10088         * modules/renameat (Depends-on): Likewise.
10089         * modules/utimens (Depends-on): Likewise.
10090
10091 2011-09-25  Bruno Haible  <bruno@clisp.org>
10092
10093         linkat: Fix compilation on MSVC 9.
10094         * lib/linkat.c: Don't include <stdint.h>.
10095
10096 2011-09-25  Bruno Haible  <bruno@clisp.org>
10097
10098         fclose: Support for MSVC 9.
10099         * lib/fclose.c: Include msvc-inval.h.
10100         (fclose_nothrow): New function.
10101         (rpl_fclose): Use it.
10102         * modules/fclose (Depends-on): Add msvc-inval.
10103         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10104
10105 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10106
10107         dup2: minor simplifications
10108         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10109         that it's a performance win.
10110         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10111         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10112
10113 2011-09-24  Jim Meyering  <meyering@redhat.com>
10114
10115         test-futimens: avoid a warning from gcc -Wshadow
10116         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10117         to avoid a shadowing warning.
10118
10119 2011-09-24  Bruno Haible  <bruno@clisp.org>
10120
10121         fdopen: Support for MSVC 9.
10122         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10123         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10124         * lib/fdopen.c: Include msvc-inval.h.
10125         (fdopen_nothrow): New function.
10126         (rpl_fdopen): Use it.
10127         * modules/fdopen (Depends-on): Add msvc-inval.
10128         * modules/fclose-tests (Depends-on): Add fdopen.
10129         * modules/fflush-tests (Depends-on): Likewise.
10130         * modules/fgetc-tests (Depends-on): Likewise.
10131         * modules/fputc-tests (Depends-on): Likewise.
10132         * modules/fread-tests (Depends-on): Likewise.
10133         * modules/freopen-tests (Depends-on): Likewise.
10134         * modules/fseeko-tests (Depends-on): Likewise.
10135         * modules/ftello-tests (Depends-on): Likewise.
10136         * modules/fwrite-tests  (Depends-on): Likewise.
10137         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10138
10139 2011-09-24  Bruno Haible  <bruno@clisp.org>
10140
10141         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10142         * modules/fgetc-tests (Depends-on): Add unistd.
10143         * modules/fputc-tests (Depends-on): Likewise.
10144         * modules/fread-tests (Depends-on): Likewise.
10145         * modules/fwrite-tests (Depends-on): Likewise.
10146
10147 2011-09-24  Bruno Haible  <bruno@clisp.org>
10148
10149         dup: Simplify autoconf test.
10150         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10151         on gl_MSVC_INVAL's result.
10152
10153 2011-09-24  Bruno Haible  <bruno@clisp.org>
10154
10155         Tests for function fwrite().
10156         * modules/fwrite-tests: New file.
10157         * tests/test-fwrite.c: New file.
10158         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10159
10160         Tests for function fread().
10161         * modules/fread-tests: New file.
10162         * tests/test-fread.c: New file.
10163         * modules/stdio-tests (Depends-on): Add fread-tests.
10164
10165         Activate fputc tests.
10166         * modules/stdio-tests (Depends-on): Add fputc-tests.
10167
10168         Enhance fgetc, fputc tests.
10169         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10170         * tests/test-fputc.c (main): Likewise.
10171
10172 2011-09-24  Bruno Haible  <bruno@clisp.org>
10173
10174         write: Support for MSVC 9.
10175         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10176         is not 1.
10177         * lib/write.c (write_nothrow): New function.
10178         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10179         not 1. Use write_nothrow.
10180         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10181         invalid parameter handler.
10182         (gl_PREREQ_WRITE): New macro.
10183         * modules/write (Depends-on): Add msvc-inval.
10184         (configure.ac): Invoke gl_PREREQ_WRITE.
10185         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10186
10187 2011-09-24  Bruno Haible  <bruno@clisp.org>
10188
10189         read: Fix last commit.
10190         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10191
10192 2011-09-24  Bruno Haible  <bruno@clisp.org>
10193
10194         dup2: Fix last commit.
10195         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10196         (rpl_dup2): Disable fcntl workaround on native Windows.
10197
10198         sigprocmask: Make code safer.
10199         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10200         section that changes macro definitions for this compilation unit.
10201
10202 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10203
10204         dup2: clarify by coalescing Windows-specific material
10205         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10206         "msvc-nothrow.h"' to the Windows-specific section, so that the
10207         Emacs source need not contain these include files.
10208         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10209         Windows-specific fixes into this function rather than just the
10210         nothrow fix, as this shortens and clarifies the code.  Always
10211         define as a function, as that's a bit cleaner than having it be
10212         sometimes a function and sometimes a macro.
10213         (rpl_dup2): Move the Windows-specific stuff out of here and into
10214         ms_windows_dup2.  Don't protect the Haiku-related fix with
10215         "#if !defined __linux__", as the same code also works around
10216         a Linux kernel bug, and it doesn't add any system calls on any
10217         platform.  Add comment about FreeBSD 6.1.
10218
10219         sigprocmask: move #include directive
10220         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10221         Windows-specific section, so that the Emacs source need not
10222         contain msvc-inval.h.
10223
10224 2011-09-23  Bruno Haible  <bruno@clisp.org>
10225
10226         read: Support for MSVC 9.
10227         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10228         is not 1.
10229         * lib/read.c (read_nothrow): New function.
10230         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10231         read_nothrow.
10232         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10233         invalid parameter handler.
10234         (gl_PREREQ_READ): New macro.
10235         * modules/read (Depends-on): Add msvc-inval.
10236         (configure.ac): Invoke gl_PREREQ_READ.
10237         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10238
10239 2011-09-23  Bruno Haible  <bruno@clisp.org>
10240
10241         close: Support for MSVC 9.
10242         * lib/close.c: Include <errno.h>, msvc-inval.h.
10243         (close_nothrow): New function.
10244         (rpl_close): Use it.
10245         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10246         invalid parameter handler.
10247         * modules/close (Depends-on): Add msvc-inval.
10248         * modules/dup2-tests (Depends-on): Add close.
10249         * modules/dup3-tests (Depends-on): Likewise.
10250         * modules/fcntl-tests (Depends-on): Likewise.
10251         * modules/spawn-pipe-tests (Depends-on): Likewise.
10252         * modules/unistd-safer-tests (Depends-on): Likewise.
10253         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10254
10255 2011-09-23  Bruno Haible  <bruno@clisp.org>
10256
10257         New module 'dup'.
10258         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10259         Allow replacement.
10260         * lib/dup.c: New file.
10261         * lib/fchdir.c (rpl_dup): Remove function.
10262         * m4/dup.m4: New file.
10263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10264         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10265         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10266         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10267         * modules/dup: New file.
10268         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10269         'dup' module is in use.
10270         * modules/fdopendir (Depends-on): Add dup.
10271         * modules/fdutimensat-tests (Depends-on): Likewise.
10272         * modules/fts (Depends-on): Likewise.
10273         * modules/futimens-tests (Depends-on): Likewise.
10274         * modules/posix_spawnp-tests (Depends-on): Likewise.
10275         * modules/unistd-safer-tests (Depends-on): Likewise.
10276         * modules/utimens-tests (Depends-on): Likewise.
10277         * doc/posix-functions/dup.texi: Mention the new module and the problem
10278         on MSVC.
10279
10280 2011-09-23  Bruno Haible  <bruno@clisp.org>
10281
10282         getdtablesize: Support for MSVC 9.
10283         * lib/getdtablesize.c: Include msvc-inval.h.
10284         (_setmaxstdio_nothrow): New function.
10285         (_setmaxstdio): Redefine it.
10286         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10287         * modules/getdtablesize (Depends-on): Add msvc-inval.
10288         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10289
10290 2011-09-23  Bruno Haible  <bruno@clisp.org>
10291
10292         signal-h: Rename from signal.
10293         * modules/signal-h: Renamed from modules/signal.
10294         * modules/pthread_sigmask (Depends-on): Update.
10295         * modules/raise (Depends-on): Likewise.
10296         * modules/sigaction (Depends-on): Likewise.
10297         * modules/sigpipe (Depends-on): Likewise.
10298         * modules/sigprocmask (Depends-on): Likewise.
10299         * modules/sys_select (Depends-on): Likewise.
10300         * modules/signal-h-tests: Renamed from modules/signal-tests.
10301         (Files, Depends-on, Makefile.am): Update.
10302         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10303         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10304         (Files, Makefile.am): Update.
10305         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10306         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10307         * modules/signal: New placeholder file.
10308         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10309         * doc/posix-headers/signal.texi: Update.
10310         * NEWS: Mention the change.
10311
10312 2011-09-23  Bruno Haible  <bruno@clisp.org>
10313
10314         sigprocmask: Avoid crashes through signal() on MSVC 9.
10315         * lib/sigprocmask.c: Include msvc-inval.h.
10316         (signal_nothrow): New function.
10317         (signal): Redefine it.
10318         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10319         * modules/sigprocmask (Depends-on): Add msvc-inval.
10320         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10321
10322 2011-09-23  Bruno Haible  <bruno@clisp.org>
10323
10324         Tests for module 'raise'.
10325         * modules/raise-tests: New file.
10326         * tests/test-raise.c: New file.
10327
10328         raise: Support for MSVC.
10329         * lib/signal.in.h (raise): New declaration.
10330         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10331         for native Windows platforms.
10332         * m4/raise.m4: New file.
10333         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10334         HAVE_RAISE, REPLACE_RAISE.
10335         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10336         REPLACE_RAISE.
10337         * modules/raise (Status, Notice): Remove fields.
10338         (Files): Add m4/raise.m4.
10339         (Depends-on): Add signal, msvc-inval.
10340         (configure.ac): Use the common idioms.
10341         (Maintainer): Add me.
10342         * tests/test-signal-c++.cc: Check the signature of raise.
10343         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10344
10345 2011-09-23  Bruno Haible  <bruno@clisp.org>
10346
10347         pipe2: Fix compilation on pre-C99 compilers.
10348         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10349
10350 2011-09-23  Bruno Haible  <bruno@clisp.org>
10351
10352         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10353         * lib/msvc-nothrow.h: New file.
10354         * lib/msvc-nothrow.c: New file.
10355         * m4/msvc-nothrow.m4: New file.
10356         * modules/msvc-nothrow: New file.
10357         * lib/dup2.c: Include msvc-nothrow.h.
10358         (rpl_dup2): No need to protect _get_osfhandle call here.
10359         * lib/accept4.c: Include msvc-nothrow.h.
10360         * lib/error.c: Likewise.
10361         * lib/fcntl.c: Likewise.
10362         * lib/lseek.c: Likewise.
10363         * lib/nonblocking.c: Likewise.
10364         * lib/poll.c: Likewise.
10365         * lib/read.c: Likewise.
10366         * lib/select.c: Likewise.
10367         * lib/sockets.h: Likewise.
10368         * lib/sockets.c: Likewise.
10369         * lib/stdio-read.c: Likewise.
10370         * lib/stdio-write.c: Likewise.
10371         * lib/write.c: Likewise.
10372         * lib/w32sock.h: Likewise.
10373         * lib/w32spawn.h: Likewise.
10374         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10375         * lib/fsync.c: Likewise.
10376         * lib/isapipe.c: Likewise.
10377         * modules/dup2 (Depends-on): Add msvc-nothrow.
10378         * modules/accept4 (Depends-on): Likewise.
10379         * modules/error (Depends-on): Likewise.
10380         * modules/fcntl (Depends-on): Likewise.
10381         * modules/lseek (Depends-on): Likewise.
10382         * modules/nonblocking (Depends-on): Likewise.
10383         * modules/poll (Depends-on): Likewise.
10384         * modules/read (Depends-on): Likewise.
10385         * modules/select (Depends-on): Likewise.
10386         * modules/sockets (Depends-on): Likewise.
10387         * modules/sigpipe (Depends-on): Likewise.
10388         * modules/write (Depends-on): Likewise.
10389         * modules/accept (Depends-on): Likewise.
10390         * modules/bind (Depends-on): Likewise.
10391         * modules/connect (Depends-on): Likewise.
10392         * modules/gethostname (Depends-on): Likewise.
10393         * modules/getpeername (Depends-on): Likewise.
10394         * modules/getsockname (Depends-on): Likewise.
10395         * modules/getsockopt (Depends-on): Likewise.
10396         * modules/ioctl (Depends-on): Likewise.
10397         * modules/listen (Depends-on): Likewise.
10398         * modules/recv (Depends-on): Likewise.
10399         * modules/recvfrom (Depends-on): Likewise.
10400         * modules/send (Depends-on): Likewise.
10401         * modules/sendto (Depends-on): Likewise.
10402         * modules/setsockopt (Depends-on): Likewise.
10403         * modules/shutdown (Depends-on): Likewise.
10404         * modules/socket (Depends-on): Likewise.
10405         * modules/execute (Depends-on): Likewise.
10406         * modules/spawn-pipe (Depends-on): Likewise.
10407         * modules/flock (Depends-on): Likewise.
10408         * modules/fsync (Depends-on): Likewise.
10409         * modules/isapipe (Depends-on): Likewise.
10410         * tests/test-cloexec.c: Include msvc-nothrow.h.
10411         * tests/test-dup-safer.c: Likewise.
10412         * tests/test-dup2.c: Likewise.
10413         * tests/test-dup3.c: Likewise.
10414         * tests/test-fcntl.c: Likewise.
10415         * tests/test-pipe.c: Likewise.
10416         * tests/test-pipe2.c: Likewise.
10417         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10418         * modules/unistd-safer-tests (Depends-on): Likewise.
10419         * modules/dup2-tests (Depends-on): Likewise.
10420         * modules/dup3-tests (Depends-on): Likewise.
10421         * modules/fcntl-tests (Depends-on): Likewise.
10422         * modules/pipe-posix-tests (Depends-on): Likewise.
10423         * modules/pipe2-tests (Depends-on): Likewise.
10424
10425 2011-09-23  Bruno Haible  <bruno@clisp.org>
10426
10427         dup2: Make code more maintainable.
10428         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10429         (rpl_dup2): Use it.
10430         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10431         * modules/dup2 (configure.ac): Invoke it.
10432         Reported by Paul Eggert.
10433
10434 2011-09-23  Bruno Haible  <bruno@clisp.org>
10435
10436         msvc-inval: Fix compilation error.
10437         * lib/msvc-inval.h: Include <excpt.h>.
10438
10439 2011-09-23  Bruno Haible  <bruno@clisp.org>
10440
10441         mkdir: Tweak for MSVC 9.
10442         * lib/sys_stat.in.h: Update comments.
10443         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10444
10445         Tests for module 'chdir'.
10446         * modules/chdir-tests: New file.
10447         * tests/test-chdir.c: New file.
10448
10449         New module 'chdir'.
10450         * modules/chdir: New file.
10451         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10452         (chdir): New declaration.
10453         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10454         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10455         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10456         * tests/test-unistd-c++.cc: Check signature of chdir.
10457         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10458         * modules/chdir-long (Depends-on): Add chdir.
10459         * modules/fchdir (Depends-on): Likewise.
10460         * modules/rename (Depends-on): Likewise.
10461         * modules/savewd (Depends-on): Likewise.
10462
10463         rmdir: Support for mingw, MSVC 9.
10464         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10465         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10466
10467         getcwd: Tweak for MSVC 9.
10468         * lib/unistd.in.h: Update comments.
10469         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10470
10471 2011-09-22  Bruno Haible  <bruno@clisp.org>
10472
10473         strerror_r-posix: Avoid a link error on MSVC.
10474         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10475         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10476
10477 2011-09-22  Bruno Haible  <bruno@clisp.org>
10478
10479         select: Avoid link errors on MSVC.
10480         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10481         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10482         * modules/pselect (Link): Likewise.
10483         * NEWS: Mention the change.
10484         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10485         test-select-stdin against $(LIB_SELECT).
10486         * modules/pselect-tests (Makefile.am): Link test-pselect against
10487         $(LIB_SELECT).
10488
10489 2011-09-22  Bruno Haible  <bruno@clisp.org>
10490
10491         select: Avoid compilation error on MSVC.
10492         * lib/select.c: Don't include <stdbool.h>.
10493
10494 2011-09-21  Bruno Haible  <bruno@clisp.org>
10495
10496         Consolidate all uses of PATH_MAX in *.m4 files.
10497         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10498         macros.
10499         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10500         and gl_PATHMAX_SNIPPET.
10501         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10502         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10503         * modules/chdir-long (Files): Add m4/pathmax.m4.
10504         * modules/getcwd (Files): Likewise.
10505
10506 2011-09-21  Bruno Haible  <bruno@clisp.org>
10507
10508         ftruncate: Un-deprecate, concentrate on Win32 support.
10509         * modules/ftruncate (Status, Notice): Remove sections.
10510         (Depends-on): Add largefile.
10511         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10512         non-mingw platforms.
10513         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10514         include <io.h>.
10515         * modules/perror-tests (Depends-on): Add ftruncate.
10516         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10517         'ftruncate' module.
10518
10519 2011-09-21  Bruno Haible  <bruno@clisp.org>
10520
10521         Add dependencies to new dirent related modules.
10522         * modules/opendir (Depends-on): Add closedir.
10523         * modules/getcwd (Depends-on): Add opendir, closedir.
10524         * modules/dirent-safer-tests (Depends-on): Likewise.
10525         * modules/fdopendir-tests (Depends-on): Likewise.
10526         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10527         * modules/renameat-tests (Depends-on): Likewise.
10528
10529 2011-09-21  Bruno Haible  <bruno@clisp.org>
10530
10531         opendir: Avoid compilation error on mingw.
10532         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10533         * modules/opendir (Depends-on): Add unistd.
10534
10535 2011-09-21  Bruno Haible  <bruno@clisp.org>
10536
10537         ftruncate tests: Avoid a test failure on mingw.
10538         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10539
10540 2011-09-21  Bruno Haible  <bruno@clisp.org>
10541
10542         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10543         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10544         native Windows.
10545
10546 2011-09-21  Bruno Haible  <bruno@clisp.org>
10547
10548         New module 'fdopen'.
10549         * lib/stdio.in.h (fdopen): New declaration.
10550         * lib/fdopen.c: New file.
10551         * m4/fdopen.m4: New file.
10552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10553         REPLACE_FDOPEN.
10554         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10555         REPLACE_FDOPEN.
10556         * modules/fdopen: New file.
10557         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10558         * tests/test-stdio-c++.cc: Check signature of fdopen.
10559         * doc/posix-functions/fdopen.texi: Mention the new module.
10560
10561 2011-09-21  Bruno Haible  <bruno@clisp.org>
10562
10563         unlockpt tests: Avoid test failure on NetBSD 5.1.
10564         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10565         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10566
10567 2011-09-21  Bruno Haible  <bruno@clisp.org>
10568
10569         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10570         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10571         * tests/test-getlogin_r.c (main): Likewise.
10572
10573 2011-09-20  Bruno Haible  <bruno@clisp.org>
10574
10575         time tests: Don't require pid_t.
10576         * doc/posix-headers/time.texi: Revert last change.
10577         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10578         * tests/test-time.c: Comment out the check for pid_t.
10579
10580 2011-09-20  Bruno Haible  <bruno@clisp.org>
10581
10582         fsync tests: Avoid a test failure on mingw.
10583         * tests/test-fsync.c (main): Allow a failure with EIO.
10584
10585 2011-09-20  Bruno Haible  <bruno@clisp.org>
10586
10587         euidaccess: Update comments.
10588         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10589
10590 2011-09-20  Bruno Haible  <bruno@clisp.org>
10591
10592         Ensure EBADF returns for socket functions on mingw.
10593         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10594         descriptor is invalid.
10595         * lib/bind.c (rpl_bind): Likewise.
10596         * lib/connect.c (rpl_connect): Likewise.
10597         * lib/getpeername.c (rpl_getpeername): Likewise.
10598         * lib/getsockname.c (rpl_getsockname): Likewise.
10599         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10600         * lib/listen.c (rpl_listen): Likewise.
10601         * lib/recv.c (rpl_recv): Likewise.
10602         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10603         * lib/send.c (rpl_send): Likewise.
10604         * lib/sendto.c (rpl_sendto): Likewise.
10605         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10606         * lib/shutdown.c (rpl_shutdown): Likewise.
10607
10608 2011-09-20  Bruno Haible  <bruno@clisp.org>
10609
10610         select tests: EBADF tests.
10611         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10612         test_bad_fd): New functions.
10613         (test_function): Invoke also test_bad_fd.
10614
10615 2011-09-20  Bruno Haible  <bruno@clisp.org>
10616
10617         Tests for module 'posix_spawn_file_actions_addopen.
10618         * modules/posix_spawn_file_actions_addopen-tests: New file.
10619         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10620
10621         Tests for module 'posix_spawn_file_actions_adddup2'.
10622         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10623         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10624
10625         Tests for module 'posix_spawn_file_actions_addclose'.
10626         * modules/posix_spawn_file_actions_addclose-tests: New file.
10627         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10628
10629 2011-09-20  Bruno Haible  <bruno@clisp.org>
10630
10631         Tests for module 'unlockpt'.
10632         * modules/unlockpt-tests: New file.
10633         * tests/test-unlockpt.c: New file.
10634         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10635
10636         Tests for module 'grantpt'.
10637         * modules/grantpt-tests: New file.
10638         * tests/test-grantpt.c: New file.
10639         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10640
10641 2011-09-20  Bruno Haible  <bruno@clisp.org>
10642
10643         freopen tests: EBADF tests.
10644         * tests/test-freopen.c: Include errno.h, unistd.h.
10645         (main): Add tests for EBADF, commented out for the moment.
10646
10647         fclose tests: EBADF tests.
10648         * tests/test-fclose.c (main): Add tests for EBADF.
10649
10650         fflush tests: EBADF tests.
10651         * tests/test-fflush.c: Include errno.h, macros.h.
10652         (main): Add tests for EBADF.
10653
10654         ftello tests: EBADF tests.
10655         * tests/test-ftello4.sh: New file.
10656         * tests/test-ftello4.c: New file.
10657         * modules/ftello-tests (Files): Add them.
10658         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10659
10660         fseeko tests: EBADF tests.
10661         * tests/test-fseeko4.sh: New file.
10662         * tests/test-fseeko4.c: New file.
10663         * modules/fseeko-tests (Files): Add them.
10664         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10665
10666         Tests for function fputc().
10667         * modules/fputc-tests: New file.
10668         * tests/test-fputc.c: New file.
10669         * modules/stdio-tests (Depends-on): Add fputc-tests.
10670
10671         Tests for function fgetc().
10672         * modules/fgetc-tests: New file.
10673         * tests/test-fgetc.c: New file.
10674         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10675
10676         Tests for function fdopen().
10677         * modules/fdopen-tests: New file.
10678         * tests/test-fdopen.c: New file.
10679         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10680
10681         Tests for module 'vdprintf'.
10682         * modules/vdprintf-tests: New file.
10683         * tests/test-vdprintf.c: New file.
10684
10685         Tests for module 'dprintf'.
10686         * modules/dprintf-tests: New file.
10687         * tests/test-dprintf.c: New file.
10688
10689 2011-09-20  Bruno Haible  <bruno@clisp.org>
10690
10691         Tests for module 'ioctl'.
10692         * modules/ioctl-tests: New file.
10693         * tests/test-ioctl.c: New file.
10694
10695 2011-09-20  Bruno Haible  <bruno@clisp.org>
10696
10697         fcntl tests: EBADF tests.
10698         * tests/test-fcntl.c (main): Add more tests for EBADF.
10699
10700 2011-09-20  Bruno Haible  <bruno@clisp.org>
10701
10702         utimensat tests: EBADF tests.
10703         * tests/test-utimensat.c (main): Add tests for EBADF.
10704
10705         renameat tests: EBADF tests.
10706         * tests/test-renameat.c (main): Add tests for EBADF.
10707
10708         mkfifoat tests: EBADF tests.
10709         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10710
10711         readlinkat tests: EBADF tests.
10712         * tests/test-readlinkat.c (main): Add tests for EBADF.
10713
10714         symlinkat tests: EBADF tests.
10715         * tests/test-symlinkat.c (main): Add tests for EBADF.
10716
10717         linkat tests: EBADF tests.
10718         * tests/test-linkat.c (main): Add tests for EBADF.
10719
10720         Tests for module 'faccessat'.
10721         * modules/faccessat-tests: New file.
10722         * tests/test-faccessat.c: New file.
10723
10724         fdopendir tests: EBADF tests.
10725         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10726
10727         openat tests: EBADF tests.
10728         * tests/test-fchownat.c (main): Add tests for EBADF.
10729         * tests/test-fstatat.c (main): Likewise.
10730         * tests/test-mkdirat.c (main): Likewise.
10731         * tests/test-openat.c (main): Likewise.
10732         * tests/test-unlinkat.c (main): Likewise.
10733         * tests/test-fchmodat.c: New file.
10734         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10735         (Makefile.am): Also run 'test-fchmodat'.
10736
10737 2011-09-20  Bruno Haible  <bruno@clisp.org>
10738
10739         utimens, futimens, fdutimensat tests: EBADF tests.
10740         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10741
10742         Tests for function fstat().
10743         * modules/fstat-tests: New file.
10744         * tests/test-fstat.c: New file.
10745         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10746
10747 2011-09-20  Bruno Haible  <bruno@clisp.org>
10748
10749         test-ttyname_r tests: EBADF tests.
10750         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10751
10752         Tests for module 'isatty'.
10753         * modules/isatty-tests: New file.
10754         * tests/test-isatty.c: New file.
10755
10756         Tests for module 'write'.
10757         * modules/write-tests: New file.
10758         * tests/test-write.c: New file.
10759
10760         Tests for module 'read'.
10761         * modules/read-tests: New file.
10762         * tests/test-read.c: New file.
10763
10764         pwrite tests: EBADF tests.
10765         * tests/test-pwrite.c (main): Add tests for EBADF.
10766
10767         pread tests: EBADF tests.
10768         * tests/test-pread.c (main): Add tests for EBADF.
10769
10770         lseek tests: EBADF tests.
10771         * tests/test-lseek.c (main): Add more tests for EBADF.
10772
10773         Tests for module 'ftruncate'.
10774         * modules/ftruncate-tests: New file.
10775         * tests/test-ftruncate.sh: New file.
10776         * tests/test-ftruncate.c: New file.
10777
10778         fsync tests: EBADF tests.
10779         * tests/test-fsync.c (main): Add more tests for EBADF.
10780
10781         fdatasync tests: EBADF tests.
10782         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10783
10784         Tests for module 'fchown'.
10785         * modules/fchown-tests: New file.
10786         * tests/test-fchown.c: New file.
10787
10788         Tests for module 'fchmod'.
10789         * modules/fchmod-tests: New file.
10790         * tests/test-fchmod.c: New file.
10791
10792         fchdir tests: EBADF tests.
10793         * tests/test-fchdir.c (main): Add more tests for EBADF.
10794
10795         dup2 tests: EBADF tests.
10796         * tests/test-dup2.c (main): Add more tests for EBADF.
10797
10798         Tests for module 'dup'.
10799         * modules/dup-tests: New file.
10800         * tests/test-dup.c: New file.
10801
10802         Tests for module 'close'.
10803         * modules/close-tests: New file.
10804         * tests/test-close.c: New file.
10805
10806 2011-09-20  Bruno Haible  <bruno@clisp.org>
10807
10808         Tests for module 'shutdown'.
10809         * modules/shutdown-tests: New file.
10810         * tests/test-shutdown.c: New file.
10811
10812         Tests for module 'setsockopt'.
10813         * modules/setsockopt-tests: New file.
10814         * tests/test-setsockopt.c: New file.
10815
10816         Tests for module 'sendto'.
10817         * modules/sendto-tests: New file.
10818         * tests/test-sendto.c: New file.
10819
10820         Tests for module 'send'.
10821         * modules/send-tests: New file.
10822         * tests/test-send.c: New file.
10823
10824         Tests for module 'recvfrom'.
10825         * modules/recvfrom-tests: New file.
10826         * tests/test-recvfrom.c: New file.
10827
10828         Tests for module 'recv'.
10829         * modules/recv-tests: New file.
10830         * tests/test-recv.c: New file.
10831
10832         Tests for module 'listen'.
10833         * modules/listen-tests: New file.
10834         * tests/test-listen.c: New file.
10835
10836         Tests for module 'getsockopt'.
10837         * modules/getsockopt-tests: New file.
10838         * tests/test-getsockopt.c: New file.
10839
10840         Tests for module 'getsockname'.
10841         * modules/getsockname-tests: New file.
10842         * tests/test-getsockname.c: New file.
10843
10844         Tests for module 'getpeername'.
10845         * modules/getpeername-tests: New file.
10846         * tests/test-getpeername.c: New file.
10847
10848         Tests for module 'connect'.
10849         * modules/connect-tests: New file.
10850         * tests/test-connect.c: New file.
10851
10852         Tests for module 'bind'.
10853         * modules/bind-tests: New file.
10854         * tests/test-bind.c: New file.
10855
10856         accept4 tests: Fix for native Windows.
10857         * tests/test-accept4.c: Include sockets.h.
10858         (main): Invoke gl_sockets_startup.
10859         * modules/accept4-tests (Depends-on): Add sockets.
10860
10861         accept tests: Fix for native Windows.
10862         * tests/test-accept.c: Include sockets.h.
10863         (main): Invoke gl_sockets_startup.
10864         * modules/accept-tests (Depends-on): Add sockets.
10865
10866 2011-09-19  Bruno Haible  <bruno@clisp.org>
10867
10868         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10869         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10870         do...while(0).
10871         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10872         Suggested by Paul Eggert.
10873
10874 2011-09-19  Bruno Haible  <bruno@clisp.org>
10875
10876         sched: Ensure pid_t is defined.
10877         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10878         not define pid_t.
10879         * lib/sched.in.h: Include <sys/types.h>.
10880         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10882
10883 2011-09-19  Bruno Haible  <bruno@clisp.org>
10884
10885         msvc-inval: Ensure the entire expansion is a single statement.
10886         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10887         of braces.
10888
10889 2011-09-19  Jim Meyering  <meyering@redhat.com>
10890
10891         tests: use printf, not echo in init.sh's warn_ function
10892         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10893         misbehave when given strings containing a backslash or starting
10894         with e.g., -n.  James Youngman suggested setting IFS.
10895
10896 2011-09-19  Eric Blake  <eblake@redhat.com>
10897
10898         futimens: enhance test
10899         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10900         closed non-negative fd.
10901
10902         date: accept 'hence' as opposite of 'ago'
10903         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10904         * tests/test-parse-datetime.c (main): Enhance test.
10905         Suggested by Jesse Wilson.
10906
10907 2011-09-19  Jim Meyering  <meyering@redhat.com>
10908
10909         getcwd: don't fail in a deep directory on a system without openat
10910         Before this change, getcwd would fail when called from a directory
10911         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10912         the non-openat implementation used "..", "../..", "../../..", etc.
10913         to access ancestor directories.  With too many, that string would
10914         be longer than PATH_MAX.
10915         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10916         using gnulib's openat replacement.
10917         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10918         we're using the replacement function.
10919
10920 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10921
10922         maint.mk: avoid warnings from perl about missing files
10923         * top/maint.mk (def_sym_regex): Ignore files listed in
10924         $(gl_other_headers_) that do not exist, say because a project
10925         does not use a corresponding module.
10926
10927 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10928
10929         stat: use pathmax.h only if needed
10930         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10931         This is better for Emacs, which does not have a mingw port and
10932         therefore can avoid the pathmax module.
10933
10934         utimens: remove dependency on dup2
10935         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10936         to work around the Linux kernel bug.
10937         * modules/utimens (Depends-on): Remove dup2.
10938
10939 2011-09-18  Bruno Haible  <bruno@clisp.org>
10940
10941         inet_ntop, inet_pton: Look for it also in libresolv.
10942         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10943         libnsl, search for it in libresolv.
10944         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10945         Needed on Solaris 7.
10946
10947 2011-09-18  Bruno Haible  <bruno@clisp.org>
10948
10949         accept, accept4 tests: Avoid link error on Solaris.
10950         * modules/accept-tests (Makefile.am): Link test-accept against
10951         $(LIBSOCKET).
10952         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10953         $(LIBSOCKET).
10954
10955         accept4: Avoid link error on Solaris.
10956         * modules/accept4 (Link): New section.
10957
10958         socket functions: Avoid link errors on Solaris.
10959         * modules/accept (Depends-on): Add socketlib.
10960         (Link): New section.
10961         * modules/bind (Depends-on): Add socketlib.
10962         (Link): New section.
10963         * modules/connect (Depends-on): Add socketlib.
10964         (Link): New section.
10965         * modules/getpeername (Depends-on): Add socketlib.
10966         (Link): New section.
10967         * modules/getsockname (Depends-on): Add socketlib.
10968         (Link): New section.
10969         * modules/getsockopt (Depends-on): Add socketlib.
10970         (Link): New section.
10971         * modules/listen (Depends-on): Add socketlib.
10972         (Link): New section.
10973         * modules/recv (Depends-on): Add socketlib.
10974         (Link): New section.
10975         * modules/recvfrom (Depends-on): Add socketlib.
10976         (Link): New section.
10977         * modules/send (Depends-on): Add socketlib.
10978         (Link): New section.
10979         * modules/sendto (Depends-on): Add socketlib.
10980         (Link): New section.
10981         * modules/setsockopt (Depends-on): Add socketlib.
10982         (Link): New section.
10983         * modules/shutdown (Depends-on): Add socketlib.
10984         (Link): New section.
10985         * modules/socket (Depends-on): Add socketlib.
10986         (Link): New section.
10987
10988 2011-09-18  Bruno Haible  <bruno@clisp.org>
10989
10990         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10991         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10992         than 5 seconds.
10993         * modules/ptsname-tests (configure.ac): Test for alarm.
10994
10995 2011-09-18  Bruno Haible  <bruno@clisp.org>
10996
10997         posix_spawn_file_actions_add*: Fix module dependencies.
10998         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10999         posix_spawn_file_actions_init.
11000         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11001         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11002
11003 2011-09-18  Bruno Haible  <bruno@clisp.org>
11004
11005         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11006         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11007         * tests/test-renameat.c (main): Likewise.
11008
11009 2011-09-18  Bruno Haible  <bruno@clisp.org>
11010
11011         Tests for module 'accept4'.
11012         * modules/accept4-tests: New file.
11013         * tests/test-accept4.c: New file.
11014
11015 2011-09-18  Bruno Haible  <bruno@clisp.org>
11016
11017         Tests for module 'accept'.
11018         * modules/accept-tests: New file.
11019         * tests/test-accept.c: New file.
11020
11021 2011-09-18  Bruno Haible  <bruno@clisp.org>
11022
11023         dup2: Support for MSVC.
11024         * lib/dup2.c: Include msvc-inval.h.
11025         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11026         _get_osfhandle calls.
11027         * modules/dup2 (Depends-on): Add msvc-inval.
11028         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11029
11030         New module 'msvc-inval'.
11031         * lib/msvc-inval.h: New file.
11032         * lib/msvc-inval.c: New file.
11033         * m4/msvc-inval.m4: New file.
11034         * modules/msvc-inval: New file.
11035
11036 2011-09-17  Bruno Haible  <bruno@clisp.org>
11037
11038         Tests for module 'pclose'.
11039         * modules/pclose-tests: New file.
11040
11041         New module 'pclose'.
11042         * lib/stdio.in.h (pclose): New declaration.
11043         * lib/pclose.c: New file.
11044         * m4/pclose.m4: New file.
11045         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11046         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11047         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11048         * modules/pclose: New file.
11049         * modules/popen-tests (Depends-on): Add pclose.
11050         * modules/popen-safer-tests (Depends-on): Likewise.
11051         * doc/posix-functions/pclose.texi: Mention the new module.
11052
11053 2011-09-17  Bruno Haible  <bruno@clisp.org>
11054
11055         popen: Support for MSVC.
11056         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11057         * lib/popen.c (popen): Provide alternate definition for native Windows.
11058         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11060         * modules/popen (Depends-on, configure.ac): Update condition.
11061         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11062         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11063         fixed.
11064
11065 2011-09-17  Bruno Haible  <bruno@clisp.org>
11066
11067         isnanl, isnand, isnanf: Work around MSVC bug.
11068         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11069
11070 2011-09-17  Bruno Haible  <bruno@clisp.org>
11071
11072         sys_socket tests: Fix recent mistake.
11073         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11074
11075 2011-09-17  Bruno Haible  <bruno@clisp.org>
11076
11077         putenv: Support for MSVC.
11078         * modules/putenv (Depends-on): Add environ.
11079         * lib/putenv.c (environ): Disable declaration.
11080         * lib/unistd.in.h: Update comment.
11081
11082 2011-09-17  Bruno Haible  <bruno@clisp.org>
11083
11084         math: Avoid macro redefinition warnings on MSVC.
11085         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11086         Undefine before redefining.
11087
11088 2011-09-17  Bruno Haible  <bruno@clisp.org>
11089
11090         doc: Mention functions which are declared as macros.
11091         * doc/posix-functions/*[fl].texi: Mention that some functions are
11092         defined as macros with arguments only.
11093
11094 2011-09-17  Bruno Haible  <bruno@clisp.org>
11095
11096         Add dependencies to new dirent related modules.
11097         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11098         * modules/fts (Depends-on): Likewise.
11099         * modules/glob (Depends-on): Likewise.
11100         * modules/savedir (Depends-on): Likewise.
11101         * modules/scandir (Depends-on): Likewise.
11102         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11103         * modules/fdopendir (Depends-on): Add opendir.
11104
11105 2011-09-17  Bruno Haible  <bruno@clisp.org>
11106
11107         inet_pton: Support for MSVC on Windows Vista or newer.
11108         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11109         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11110         HAVE_DECL_INET_PTON is defined.
11111         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11112         On platforms with <winsock2.h>, test whether inet_pton is declared in
11113         <ws2tcpip.h>. If so, arrange to replace it.
11114         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11115         REPLACE_INET_PTON.
11116         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11117         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11118         (Depends-on, configure.ac): Update condition.
11119         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11120
11121 2011-09-17  Bruno Haible  <bruno@clisp.org>
11122
11123         inet_ntop: Support for MSVC on Windows Vista or newer.
11124         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11125         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11126         HAVE_DECL_INET_NTOP is defined.
11127         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11128         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11129         <ws2tcpip.h>. If so, arrange to replace it.
11130         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11131         REPLACE_INET_NTOP.
11132         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11133         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11134         (Depends-on, configure.ac): Update condition.
11135         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11136
11137 2011-09-16  Eric Blake  <eblake@redhat.com>
11138
11139         test-fsync: yet another enhancement
11140         * tests/test-fsync.c (main): Also test behavior on read-only text
11141         file.
11142
11143 2011-09-16  Bruno Haible  <bruno@clisp.org>
11144
11145         Enhance fsync, fdatasync tests.
11146         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11147         * tests/test-fdatasync.c (main): Likewise.
11148
11149 2011-09-16  Bruno Haible  <bruno@clisp.org>
11150
11151         Support for MSVC compiler: Ensure mode_t gets defined.
11152         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11153         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11155         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11156         * tests/test-fcntl-h.c: Check that mode_t is defined.
11157         * tests/test-sys_stat.c: Likewise.
11158         * tests/test-sys_types.c: Likewise.
11159         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11160         * doc/posix-headers/sys_stat.texi: Likewise.
11161         * doc/posix-headers/sys_types.texi: Likewise.
11162
11163 2011-09-16  Bruno Haible  <bruno@clisp.org>
11164
11165         sys_stat: Support for MSVC.
11166         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11167         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11168         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11169         MSVC.
11170
11171 2011-09-16  Bruno Haible  <bruno@clisp.org>
11172
11173         Support for MSVC compiler: Ensure off_t gets defined.
11174         * lib/unistd.in.h: Include <sys/types.h>.
11175         * tests/test-fcntl-h.c: Check that off_t is defined.
11176         * tests/test-sys_stat.c: Likewise.
11177         * tests/test-sys_types.c: Likewise.
11178
11179 2011-09-16  Eric Blake  <eblake@redhat.com>
11180
11181         fdatasync: port to Solaris
11182         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11183         * modules/fdatasync (Link): Document it.
11184         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11185
11186         fdatasync: port to MacOS X 10.7
11187         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11188         declared.
11189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11190         * modules/unistd (Makefile.am): Substitute it.
11191         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11192         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11193
11194         fdatasync: minor improvements
11195         * modules/fdatasync (Depends-on): Add condition for fsync.
11196         * lib/fdatasync.c (fdatasync): Add comment.
11197         * tests/test-unistd-c++.cc: Test fdatasync.
11198
11199         unistd: update refs to newer POSIX
11200         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11201         Suggested by Bruno Haible.
11202
11203         fdatasync: new module
11204         * modules/fsync (Description): Document difference to fdatasync.
11205         * modules/fdatasync: New module.
11206         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11207         * lib/fdatasync.c (fdatasync): Likewise.
11208         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11209         defaults.
11210         * modules/unistd (Makefile.am): Set witnesses.
11211         * lib/unistd.in.h (fdatasync): Declare.
11212         * MODULES.html.sh: Document it.
11213         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11214         * modules/fdatasync-tests: New test.
11215         * tests/test-fdatasync.c: Likewise.
11216
11217 2011-09-16  Eric Blake  <eblake@redhat.com>
11218
11219         test-fsync: enhance tests
11220         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11221         * tests/test-fsync.c (main): Enhance test.
11222
11223 2011-09-15  Bruno Haible  <bruno@clisp.org>
11224
11225         Support for MSVC compiler: Ensure ssize_t gets defined.
11226         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11227         * doc/posix-headers/stdio.texi: Likewise.
11228         * modules/stdio (Depends-on): Add ssize_t.
11229         * modules/sys_socket (Depends-on): Likewise.
11230         * modules/sys_types (Depends-on): Likewise.
11231         * modules/sys_uio (Depends-on): Likewise.
11232         * modules/unistd (Depends-on): Likewise.
11233         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11234         * tests/test-sys_types.c: Check that ssize_t is defined.
11235
11236 2011-09-14  Bruno Haible  <bruno@clisp.org>
11237
11238         Avoid using #, the m4 comment starter character, near brackets.
11239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11240         delimiter character in sed expressions.
11241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11242         Suggested by Eric Blake.
11243
11244         Properly quote AC_CHECK_DECLS' 4th argument.
11245         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11246         argument.
11247         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11248         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11249         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11250         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11251         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11252         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11254         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11255         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11256         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11257         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11258         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11259         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11260         * m4/isinf.m4 (gl_ISINF): Likewise.
11261         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11262         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11263         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11264         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11265         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11266         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11267         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11268         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11269         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11270         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11271         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11272         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11274         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11275         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11276         Reported by Eric Blake.
11277
11278         Properly quote AC_CHECK_DECL's 4th argument.
11279         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11280         argument.
11281         * m4/argp.m4 (gl_ARGP): Likewise.
11282         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11283         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11284         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11285         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11286         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11287         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11289         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11290         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11291         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11292         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11293         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11294         Reported by Eric Blake.
11295
11296 2011-09-14  Eric Blake  <eblake@redhat.com>
11297
11298         opendir: avoid compile warning
11299         * lib/opendir.c (includes): Always include errno.h.
11300         Reported by Tatsuro MATSUOKA.
11301
11302 2011-09-14  Jim Meyering  <meyering@redhat.com>
11303
11304         maint.mk: sc_tight_scope: propagate failure from sub-make
11305         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11306         Reported by Martin von Gagern.
11307
11308 2011-09-13  Bruno Haible  <bruno@clisp.org>
11309
11310         tempname: Support for MSVC.
11311         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11312         MSVC.
11313         * modules/tempname (Depends-on): Add fcntl-h.
11314
11315 2011-09-13  Bruno Haible  <bruno@clisp.org>
11316
11317         sys_time: Support for MSVC.
11318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11319         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11320         include <winsock2.h>.
11321         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11322         function declarations that collide with POSIX.
11323         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11324         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11325
11326 2011-09-13  Bruno Haible  <bruno@clisp.org>
11327
11328         stat: Support for MSVC.
11329         * lib/stat.c: Include pathmax.h.
11330         * modules/stat (Depends-on): Add pathmax.
11331
11332         pathmax: Support for native Windows.
11333         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11334
11335 2011-09-12  Bruno Haible  <bruno@clisp.org>
11336
11337         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11338         * lib/dirent.in.h (struct dirent): New type.
11339         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11340         DT_WHT): New macros.
11341         (DIR): New type.
11342         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11343         (readdir, rewinddir): New declarations.
11344         * lib/dirent-private.h: New file.
11345         * lib/opendir.c: New file.
11346         * lib/readdir.c: New file.
11347         * lib/rewinddir.c: New file.
11348         * lib/closedir.c: New file.
11349         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11350         * m4/opendir.m4: New file.
11351         * m4/readdir.m4: New file.
11352         * m4/rewinddir.m4: New file.
11353         * m4/closedir.m4: New file.
11354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11355         REPLACE_CLOSEDIR here.
11356         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11357         readdir, rewinddir are declared.
11358         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11359         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11360         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11361         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11362         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11363         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11364         * modules/opendir: New file.
11365         * modules/readdir: New file.
11366         * modules/rewinddir: New file.
11367         * modules/closedir: New file.
11368         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11369         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11370         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11371         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11372         * NEWS: Mention the 'fchdir' change.
11373
11374 2011-09-11  Bruno Haible  <bruno@clisp.org>
11375
11376         asm-underscore.m4: Support for MSVC.
11377         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11378         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11379
11380 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11381
11382         Doc about crypt functions.
11383         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11384         needing for _GNU_SOURCE to get crypt.
11385         * doc/posix-functions/encrypt.texi: Likewise.
11386         * doc/posix-functions/setkey.texi: Likewise.
11387
11388 2011-09-11  Bruno Haible  <bruno@clisp.org>
11389
11390         doc: Update regarding MSVC 9.
11391         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11392         tested".
11393         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11394         * doc/posix-headers/*.texi: Likewise.
11395         * doc/pastposix-functions/*.texi: Likewise.
11396         * doc/glibc-functions/*.texi: Likewise.
11397         * doc/glibc-headers/*.texi: Likewise.
11398
11399 2011-09-11  Bruno Haible  <bruno@clisp.org>
11400
11401         unistd et al.: Don't assume <unistd.h> exists.
11402         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11403         does not exist.
11404         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11405         exist. But include <stdlib.h>.
11406         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11407         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11408         symlink() does not exist.
11409         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11410         include <io.h> instead.
11411         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11412         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11413         include <direct.h> instead.
11414         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11415         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11416         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11417         <io.h> instead.
11418         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11419         correctly if the system does not have hard links.
11420         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11421         <direct.h> instead.
11422         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11423         it when looking for function declarations.
11424         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11425         <direct.h> and <io.h> instead.
11426         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11427
11428 2011-09-11  Bruno Haible  <bruno@clisp.org>
11429
11430         strcase: Support for MSVC.
11431         * modules/strcase (Status, Notice): Remove obsoletion mark.
11432         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11433         * doc/posix-functions/strncasecmp.texi: Likewise.
11434
11435         strings: Don't assume <strings.h> exists.
11436         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11437         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11438         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11439         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11440
11441 2011-09-11  Bruno Haible  <bruno@clisp.org>
11442
11443         dirent: Don't assume <dirent.h> exists.
11444         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11445         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11446         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11447         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11448
11449 2011-09-11  Bruno Haible  <bruno@clisp.org>
11450
11451         Fix wint_t on MSVC.
11452         * lib/wchar.in.h (wint_t): On MSVC, override it.
11453         * lib/wctype.in.h (wint_t): Likewise.
11454         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11455         MSVC.
11456         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11457         * doc/posix-headers/wctype.texi: Likewise.
11458
11459 2011-09-11  Bruno Haible  <bruno@clisp.org>
11460
11461         sys_types: Fix typo.
11462         * lib/sys_types.in.h: Fix typo in comment.
11463         Reported by Paul Eggert.
11464
11465         Support for MSVC compiler: Ensure size_t gets defined.
11466         * modules/strings (Depends-on): Add 'sys_types'.
11467         * modules/sys_uio (Depends-on): Likewise.
11468         * lib/sys_uio.in.h: Update comment.
11469
11470         C++ tests for module 'sys_types'.
11471         * modules/sys_types-c++-tests: New file.
11472         * tests/test-sys_types-c++.cc: New file.
11473
11474         Tests for module 'sys_types'.
11475         * modules/sys_types-tests: New file.
11476         * tests/test-sys_types.c: New file.
11477
11478         New module 'sys_types'.
11479         * lib/sys_types.in.h: New file.
11480         * m4/sys_types_h.m4: New file.
11481         * modules/sys_types: New file.
11482         * doc/posix-headers/sys_types.texi: Mention the new module and the
11483         size_t problem on MSVC 9.
11484
11485 2011-09-11  Bruno Haible  <bruno@clisp.org>
11486
11487         Support for MSVC compiler: Avoid division by a literal 0.
11488         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11490         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11491         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11492         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11493         * tests/infinity.h: New file.
11494         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11495         on MSVC.
11496         * tests/test-ceilf1.c: Include infinity.h.
11497         (main): Use Infinityf.
11498         * tests/test-ceil1.c: Include infinity.h.
11499         (main): Use Infinityd.
11500         * tests/test-ceill.c: Include infinity.h.
11501         (main): Use Infinityl.
11502         * tests/test-dprintf-posix.c: Include infinity.h.
11503         (test_function): Use Infinityd.
11504         * tests/test-floorf1.c: Include infinity.h.
11505         (main): Use Infinityf.
11506         * tests/test-floor1.c: Include infinity.h.
11507         (main): Use Infinityd.
11508         * tests/test-floorl.c: Include infinity.h.
11509         (main): Use Infinityl.
11510         * tests/test-fprintf-posix.c: Include infinity.h.
11511         (test_function): Use Infinityd.
11512         * tests/test-frexp.c: Include infinity.h.
11513         (main): Use Infinityd.
11514         * tests/test-frexpl.c: Include infinity.h.
11515         (main): Use Infinityl.
11516         * tests/test-isfinite.c: Include infinity.h.
11517         (test_isfinitef): Use Infinityf.
11518         (test_isfinited): Use Infinityd.
11519         (test_isfinitel): Use Infinityl.
11520         * tests/test-isinf.c: Include infinity.h.
11521         (test_isinff): Use Infinityf.
11522         (test_isinfd): Use Infinityd.
11523         (test_isinfl): Use Infinityl.
11524         * tests/test-isnan.c: Include infinity.h.
11525         (test_float): Use Infinityf.
11526         (test_double): Use Infinityd.
11527         (test_long_double): Use Infinityl.
11528         * tests/test-isnanf.h: Include infinity.h.
11529         (main): Use Infinityf.
11530         * tests/test-isnand.h: Include infinity.h.
11531         (main): Use Infinityd.
11532         * tests/test-isnanl.h: Include infinity.h.
11533         (main): Use Infinityl.
11534         * tests/test-ldexpl.c: Include infinity.h.
11535         (main): Use Infinityl.
11536         * tests/test-printf-posix.h: Include infinity.h.
11537         (test_function): Use Infinityd.
11538         * tests/test-roundf1.c: Include infinity.h.
11539         (main): Use Infinityf.
11540         * tests/test-round1.c: Include infinity.h.
11541         (main): Use Infinityd.
11542         * tests/test-roundl.c: Include infinity.h.
11543         (main): Use Infinityl.
11544         * tests/test-signbit.c: Include infinity.h.
11545         (test_signbitf): Use Infinityf.
11546         (test_signbitd): Use Infinityd.
11547         (test_signbitl): Use Infinityl.
11548         * tests/test-snprintf-posix.h: Include infinity.h.
11549         (test_function): Use Infinityd, Infinityl.
11550         * tests/test-sprintf-posix.h: Include infinity.h.
11551         (test_function): Use Infinityd, Infinityl.
11552         * tests/test-truncf1.c: Include infinity.h.
11553         (main): Use Infinityf.
11554         * tests/test-trunc1.c: Include infinity.h.
11555         (main): Use Infinityd.
11556         * tests/test-truncl.c: Include infinity.h.
11557         (main): Use Infinityl.
11558         * tests/test-vasnprintf-posix.c: Include infinity.h.
11559         (test_function): Use Infinityd, Infinityl.
11560         * tests/test-vasprintf-posix.c: Include infinity.h.
11561         (test_function): Use Infinityd, Infinityl.
11562         * modules/ceilf-tests (Files): Add tests/infinity.h.
11563         * modules/ceil-tests (Files): Likewise.
11564         * modules/ceill-tests (Files): Likewise.
11565         * modules/dprintf-posix-tests (Files): Likewise.
11566         * modules/floorf-tests (Files): Likewise.
11567         * modules/floor-tests (Files): Likewise.
11568         * modules/floorl-tests (Files): Likewise.
11569         * modules/fprintf-posix-tests (Files): Likewise.
11570         * modules/frexp-tests (Files): Likewise.
11571         * modules/frexp-nolibm-tests (Files): Likewise.
11572         * modules/frexpl-tests (Files): Likewise.
11573         * modules/frexpl-nolibm-tests (Files): Likewise.
11574         * modules/isfinite-tests (Files): Likewise.
11575         * modules/isinf-tests (Files): Likewise.
11576         * modules/isnan-tests (Files): Likewise.
11577         * modules/isnanf-tests (Files): Likewise.
11578         * modules/isnanf-nolibm-tests (Files): Likewise.
11579         * modules/isnand-tests (Files): Likewise.
11580         * modules/isnand-nolibm-tests (Files): Likewise.
11581         * modules/isnanl-tests (Files): Likewise.
11582         * modules/isnanl-nolibm-tests (Files): Likewise.
11583         * modules/ldexpl-tests (Files): Likewise.
11584         * modules/printf-posix-tests (Files): Likewise.
11585         * modules/roundf-tests (Files): Likewise.
11586         * modules/round-tests (Files): Likewise.
11587         * modules/roundl-tests (Files): Likewise.
11588         * modules/signbit-tests (Files): Likewise.
11589         * modules/snprintf-posix-tests (Files): Likewise.
11590         * modules/sprintf-posix-tests (Files): Likewise.
11591         * modules/truncf-tests (Files): Likewise.
11592         * modules/trunc-tests (Files): Likewise.
11593         * modules/truncl-tests (Files): Likewise.
11594         * modules/vasnprintf-posix-tests (Files): Likewise.
11595         * modules/vasprintf-posix-tests (Files): Likewise.
11596         * modules/vdprintf-posix-tests (Files): Likewise.
11597         * modules/vfprintf-posix-tests (Files): Likewise.
11598         * modules/vprintf-posix-tests (Files): Likewise.
11599         * modules/vsnprintf-posix-tests (Files): Likewise.
11600         * modules/vsprintf-posix-tests (Files): Likewise.
11601         * modules/xprintf-posix-tests (Files): Likewise.
11602
11603 2011-09-11  Bruno Haible  <bruno@clisp.org>
11604
11605         Ensure pid_t gets defined.
11606         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11607         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11608         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11610         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11611         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11614         * tests/test-fcntl-h.c: Check that pid_t is defined.
11615         * tests/test-sched.c: Likewise.
11616         * tests/test-termios.c: Likewise.
11617         * tests/test-time.c: Likewise.
11618         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11619         * doc/posix-headers/signal.texi: Likewise.
11620         * doc/posix-headers/sys_types.texi: Likewise.
11621         * doc/posix-headers/time.texi: Likewise.
11622
11623 2011-09-11  Bruno Haible  <bruno@clisp.org>
11624
11625         acl: Fix compilation on Solaris 10 (older version).
11626         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11627         of ACE_EVERYONE.
11628         * lib/set-mode-acl.c (qset_acl): Likewise.
11629         Reported by Christian Jullien <eligis@orange.fr>.
11630
11631 2011-09-10  Bruno Haible  <bruno@clisp.org>
11632
11633         iconv, unsetenv: Add support for MSVC compiler.
11634         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11635         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11636
11637 2011-09-10  Bruno Haible  <bruno@clisp.org>
11638
11639         *printf: Add support for MSVC compiler.
11640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11641         handles the exception caused by the %n directive. When cross-compiling,
11642         guess no on native Windows.
11643         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11644         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11645         emulate it through vsnprintf.
11646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11647         * doc/posix-functions/dprintf.texi: Update documentation regarding
11648         MSVC 9.
11649         * doc/posix-functions/fprintf.texi: Likewise.
11650         * doc/posix-functions/printf.texi: Likewise.
11651         * doc/posix-functions/snprintf.texi: Likewise.
11652         * doc/posix-functions/sprintf.texi: Likewise.
11653         * doc/posix-functions/swprintf.texi: Likewise.
11654         * doc/posix-functions/vdprintf.texi: Likewise.
11655         * doc/posix-functions/vfprintf.texi: Likewise.
11656         * doc/posix-functions/vprintf.texi: Likewise.
11657         * doc/posix-functions/vsnprintf.texi: Likewise.
11658         * doc/posix-functions/vsprintf.texi: Likewise.
11659         * doc/glibc-functions/asprintf.texi: Likewise.
11660         * doc/glibc-functions/obstack_printf.texi: Likewise.
11661         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11662         * doc/glibc-functions/vasprintf.texi: Likewise.
11663
11664 2011-09-10  Bruno Haible  <bruno@clisp.org>
11665
11666         nocrash: Add support for native Windows.
11667         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11668
11669 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11670             Bruno Haible  <bruno@clisp.org>
11671
11672         absolute-header, include-next: Add support for MSVC compiler.
11673         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11674         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11675         directory separator in #line directives.
11676         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11677         recognize also backslash as directory separator in #line directives.
11678
11679 2011-09-08  Jim Meyering  <meyering@redhat.com>
11680
11681         maint.mk: mark the post-release commit log with "maint: " prefix
11682         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11683         one-line commit-log summary.
11684
11685 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11686             Bruno Haible  <bruno@clisp.org>
11687
11688         Doc about crypt functions.
11689         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11690         systems.
11691         * doc/posix-functions/encrypt.texi: Likewise.
11692         * doc/posix-functions/setkey.texi: Likewise.
11693
11694 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11695
11696         * lib/gc.h: Fix copyright header.
11697
11698 2011-09-07  Bruno Haible  <bruno@clisp.org>
11699
11700         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11701         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11702         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11703
11704 2011-09-07  Bruno Haible  <bruno@clisp.org>
11705
11706         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11707         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11708         * lib/freopen.c: Likewise.
11709         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11710         * lib/lstat.c: Likewise.
11711         * lib/stat.c: Likewise.
11712         * lib/open.c: Use different syntax for include of <fcntl.h>.
11713         * lib/openat.c: Include fcntl.h again, explicitly.
11714
11715 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11716
11717         parse-datetime: document the newly accepted format
11718         * doc/parse-datetime.texi (Combined date and time of day items):
11719         New section.
11720
11721 2011-09-06  Bruno Haible  <bruno@clisp.org>
11722
11723         acl: Fix a test failure on newer Solaris 10 with ZFS.
11724         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11725         ENOSYS as no ACL.
11726         Reported by Jim Meyering.
11727
11728 2011-09-06  Bruno Haible  <bruno@clisp.org>
11729
11730         acl: Update for AIX >= 5.3 with NFS.
11731         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11732         ENOSYS as no ACL.
11733
11734         acl: Fix a test failure on AIX >= 5.3 with NFS.
11735         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11736         as no ACL.
11737
11738 2011-09-06  Bruno Haible  <bruno@clisp.org>
11739
11740         acl: Fix a test failure on IRIX 6.5 with NFS.
11741         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11742         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11743         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11744         * lib/copy-acl.c (qcopy_acl): Likewise.
11745
11746 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11747
11748         openat: port to AIX 7.1 with large files
11749         AIX 7.1 does a "#define openat open64at" if large files are in use,
11750         so we can't simply #undef openat.  Use the orig_openat trick (similar
11751         to orig_open in lib/open.c) to work around the problem.  Problem
11752         reported by Kevin Brott for GNU tar, in the thread containing
11753         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11754         * lib/openat.c (__need_system_fcntl_h): Define first.
11755         Include <fcntl.h> and <sys/types.h> before undefining.
11756         (orig_openat) [HAVE_OPENAT]: New inline function.
11757         (openat) [HAVE_OPENAT]: Do not undef.
11758         (rpl_openat): Use orig_openat, not openat.
11759
11760 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11761             Bruno Haible  <bruno@clisp.org>
11762
11763         acl: Avoid errors on NonStop Kernel.
11764         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11765         ENOTSUP errors.
11766
11767 2011-09-05  Bruno Haible  <bruno@clisp.org>
11768
11769         acl: Clean up Solaris code.
11770         * lib/acl-internal.h: Remove no-op #if.
11771         * lib/file-has-acl.c: Likewise.
11772         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11773         * lib/copy-acl.c (qcopy_acl): Likewise.
11774
11775 2011-09-05  Bruno Haible  <bruno@clisp.org>
11776
11777         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11778         binaries built on the original Solaris 10.
11779         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11780         trivial.
11781
11782 2011-09-05  Bruno Haible  <bruno@clisp.org>
11783
11784         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11785         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11786         10.
11787         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11788         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11789         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11790         instead of acl_get, facl_get, acl_set, facl_set.
11791
11792 2011-09-05  Bruno Haible  <bruno@clisp.org>
11793
11794         copy-file: Try unit tests on more file systems.
11795         * tests/test-copy-file-1.sh: New file.
11796         * tests/test-copy-file-2.sh: New file.
11797         * modules/copy-file-tests (Files): Add them.
11798         (Makefile.am): Add them to TESTS.
11799
11800         acl: Try unit tests on more file systems.
11801         * tests/test-file-has-acl-1.sh: New file.
11802         * tests/test-file-has-acl-2.sh: New file.
11803         * tests/test-set-mode-acl-1.sh: New file.
11804         * tests/test-set-mode-acl-2.sh: New file.
11805         * tests/test-copy-acl-1.sh: New file.
11806         * tests/test-copy-acl-2.sh: New file.
11807         * modules/acl-tests (Files): Add them.
11808         (Makefile.am): Add them to TESTS.
11809
11810 2011-09-04  Bruno Haible  <bruno@clisp.org>
11811
11812         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11813         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11814         10.
11815         (OLD_ALLOW, OLD_DENY): New macros.
11816         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11817         ACE_ACCESS_ALLOWED_ACE_TYPE.
11818         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11819         ACE_ACCESS_DENIED_ACE_TYPE.
11820         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11821         (NEW_ACE_EXECUTE): Fix value.
11822         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11823         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11824         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11825         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11826         NEW_ACE_SYNCHRONIZE): New macros.
11827         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11828         instead of acl_fromtext, acl_set, facl_set.
11829         Fixes a coreutils/tests/cp/perm failure.
11830
11831 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11832
11833         openat: test for fstatat (..., 0) bug
11834         Further testing with tar suggests that fstatat (..., 0)
11835         does not work in general, on AIX 7.1; see
11836         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11837         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11838         replacement fstatat (which is what older AIX releases were using
11839         anyway).
11840         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11841         use is now changed to orig_fstatat.  This was probably the right
11842         thing to do anyway.
11843         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11844         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11845         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11846         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11847         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11848         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11849         if the bug is found.
11850
11851         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11852         This tests for another fstatat bug on AIX 7.1:
11853         fstatat (AT_FDCWD, ..., 0) does not work.  See
11854         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11855         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11856         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11857         (rpl_fstatat): Adjust so that it works around either (or both)
11858         bugs if present.
11859         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11860
11861 2011-09-03  Karl Berry  <karl@gnu.org>
11862
11863         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11864         in index entries.
11865
11866 2011-09-02  Bruno Haible  <bruno@clisp.org>
11867
11868         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11869         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11870         values of AR, ARFLAGS, RANLIB.
11871         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11872
11873 2011-09-02  Bruno Haible  <bruno@clisp.org>
11874
11875         Find 'ar' program that fits with --host argument.
11876         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11877
11878 2011-09-02  Bruno Haible  <bruno@clisp.org>
11879
11880         tests: init.sh: Support any non-GNU diff.
11881         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11882         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11883         Solaris 8.
11884
11885 2011-09-02  Bruno Haible  <bruno@clisp.org>
11886
11887         tests: init.sh: work also with any non-GNU diff that supports -u
11888         * tests/init.sh: Relax check for diff -u support.
11889         Rather than checking for GNU diff via --version, simply check
11890         for support for -u itself.  Useful at least on OpenBSD 4.9,
11891         AIX 7.1, IRIX 6.5, and Solaris 10.
11892
11893 2011-09-01  Bruno Haible  <bruno@clisp.org>
11894
11895         strtoimax, strtoumax: Document problem on HP-UX 11.
11896         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11897         * doc/posix-functions/strtoumax.texi: Likewise.
11898
11899 2011-09-01  Bruno Haible  <bruno@clisp.org>
11900
11901         strtoumax: Avoid link error on OSF/1 with DTK cc.
11902         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11903         defined as a function.
11904         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11905         strtoumax is defined, not whether it is declared.
11906
11907 2011-09-01  Bruno Haible  <bruno@clisp.org>
11908
11909         strtoimax: Avoid link error on OSF/1 with DTK cc.
11910         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11911         defined as a function.
11912         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11913         strtoimax is defined, not whether it is declared.
11914
11915 2011-09-01  Bruno Haible  <bruno@clisp.org>
11916
11917         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11918         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11919         as a function.
11920         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11921         whether it is declared.
11922
11923 2011-09-01  Bruno Haible  <bruno@clisp.org>
11924
11925         imaxabs: Avoid link error on OSF/1 with DTK cc.
11926         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11927         as a function.
11928         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11929         whether it is declared.
11930
11931 2011-09-01  Bruno Haible  <bruno@clisp.org>
11932
11933         Tests for module 'strtoumax'.
11934         * modules/strtoumax-tests: New file.
11935         * tests/test-strtoumax.c: New file.
11936
11937         Tests for module 'strtoimax'.
11938         * modules/strtoimax-tests: New file.
11939         * tests/test-strtoimax.c: New file.
11940
11941         Tests for module 'imaxdiv'.
11942         * modules/imaxdiv-tests: New file.
11943         * tests/test-imaxdiv.c: New file.
11944
11945         Tests for module 'imaxabs'.
11946         * modules/imaxabs-tests: New file.
11947         * tests/test-imaxabs.c: New file.
11948
11949 2011-09-01  Bruno Haible  <bruno@clisp.org>
11950
11951         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11952         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11953         pthread_create.
11954
11955 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         openat: work around AIX 7.1 fstatat issue
11958         This should fix the problem that was not properly fixed
11959         in the previous change, dated 2011-08-30.
11960         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11961         __need_system_stat_h defined.
11962         (orig_fstatat) [HAVE_FSTATAT]: New function.
11963         (rpl_fstatat): Go back to the old way of doing things,
11964         except call orig_fstatat instead of fstatat.
11965         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11966         Remove unnecessary check whether fstatat fills in st_size etc.
11967
11968 2011-09-01  Bruno Haible  <bruno@clisp.org>
11969
11970         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11971         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11972         just include the system's header.
11973
11974 2011-08-31  Jim Meyering  <meyering@redhat.com>
11975
11976         tests: avoid spurious assertion failure in test-float.c on ppc64
11977         * tests/test-float.c (test_long_double): Comment out an assertion,
11978         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11979         with gcc-4.4.4.
11980
11981         maint: indent with spaces, not TABs
11982         I need to get in the habit of running gnulib's "make check".
11983         Both of these would have been caught.
11984         * m4/largefile.m4: Indent with spaces, not TABs.
11985         * lib/parse-datetime.y (iso_8601_time): Likewise.
11986         Spotted by Pádraig Brady.
11987
11988         test-parse-datetime.c: accommodate a relatively strict gcc warning
11989         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11990         to avoid a warning from gcc's -Werror=missing-declarations.
11991         Insert a few spaces-before-funcall-parenthesis.
11992
11993 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11994
11995         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11996         The parser now accepts ISO 8601 date-time strings with "T" as the
11997         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11998         with a space between the date and time strings.  Now it also parses
11999         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12000         variants like "2004-02-29T16:21:42.333-07:00"
12001         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12002         of day representation using the 'T' separator character.
12003         * doc/parse-datetime.texi (General date syntax): replace use of
12004         deprecated --iso-8601 option with --rfc-3339 in example of date
12005         command output formats that can be parsed.
12006         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12007         lib/parse-datetime.y.
12008         (gmt_offset): New function.
12009         (main): Add additional test cases to validate ISO8601 extended
12010         date and time of day parsing.
12011
12012 2011-08-31  Bruno Haible  <bruno@clisp.org>
12013
12014         freopen: Documentation.
12015         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12016         name.
12017         Reported by Claudio Bley <claudio.bley@gmail.com>.
12018
12019 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12020
12021         freopen: Don't crash if the filename argument is NULL.
12022         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12023         NULL.
12024
12025 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12026
12027         openat: work around AIX 7.1 fstatat bug
12028         Problem reported by Kevin Brott for GNU tar, in the thread containing
12029         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12030         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12031         FSTATAT_ST_SIZE_ETC_BROKEN.
12032         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12033         rpl_fstatat.
12034         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12035         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12036         AC_CHECK_FUNCS_ONCE for fstatat.
12037         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12038         fchmodat, mkdirat, openat and unlinkat.
12039
12040 2011-08-30  Bruno Haible  <bruno@clisp.org>
12041
12042         Avoid endless recursions if config.h includes some header files.
12043         * lib/fopen.c (__need_FILE): Define already before including config.h.
12044         * lib/freopen.c (__need_FILE): Likewise.
12045         * lib/open.c (__need_system_fcntl_h): Likewise.
12046         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12047         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12048         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12049
12050 2011-08-25  Karl Berry  <karl@gnu.org>
12051
12052         * config/srclist.txt (ylwrap): new try.
12053         * build-aux/ylwrap: new file.
12054
12055 2011-08-23  Bruno Haible  <bruno@clisp.org>
12056
12057         tmpdir: Use a good default directory on native Windows.
12058         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12059         (P_tmpdir): Default to _P_tmpdir on native Windows.
12060         (path_search): On native Windows, try the value returned by GetTempPath
12061         before trying P_tmpdir.
12062         * modules/tmpdir (Depends-on): Add pathmax.
12063         Suggested by John Darrington <john@darrington.wattle.id.au>.
12064
12065 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12066
12067         doc: fix typo in README-release
12068         * top/README-release: Capitalize first word of a sentence.
12069
12070 2011-08-19  Jim Meyering  <meyering@redhat.com>
12071
12072         fts: do not exhaust memory when processing million-entry directories
12073         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12074         directory would require about 256*N bytes of memory.  Thus, it was
12075         easy to construct a directory too large to be processed by any of
12076         those tools.  With this change, fts' maximum memory utilization is
12077         now limited to around 30MB.
12078         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12079         (fts_read): When we've processed the final entry (i.e., when
12080         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12081         using the parent entry to read any remaining entries.  Dispatch
12082         depending on what fts_build returns:
12083         - NULL+stop, aka failure: stop
12084         - NULL otherwise: move up in the dir hierarchy
12085         - non-NULL: handle this new entry
12086         (fts_build): Declare and use new local, continue_readdir.
12087         Prepare to be called from fts_read, when the entries
12088         from a partially-read directory have just been exhausted.
12089         In that case, we'll skip the opendir and instead use the parent's
12090         fts_dirp and derive dir_fd from that.
12091         Finally, in the readdir loop, if we read max_entries entries,
12092         exit the loop ensuring *not* to call closedir.  This is required
12093         so that fts_dirp can be reused on a subsequent call.
12094         Prompted by Ben England's report of memory exhaustion in find
12095         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12096
12097         maint: fts: move decl of `dp' down into while loop; split a long line
12098         * lib/fts.c (fts_build): No semantic change.
12099
12100         fts: add/use new struct member, fts_dirp
12101         We are about to use this to manage any directory with
12102         too many entries to read all of them into memory at once.
12103         To do that, we'll need to save the DIR* pointer in each
12104         affected FTSENT struct.
12105         * lib/fts_.h: Include <dirent.h>.
12106         (struct FTSENT) [fts_dirp]: New member.
12107         * lib/fts.c (closedir_and_clear): Define.
12108         Use it in place of closedir so that we are sure to
12109         clear the new fts_dirp member when done with it.
12110         (fts_alloc): Initialize the new member.
12111         (fts_lfree): Free, if needed.
12112
12113         maint: fts: give __opendir2 a new parameter and rename
12114         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12115         than surreptitiously using sole caller's "dir_fd".
12116         (fts_opendir): Rename from __opendir2.
12117
12118         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12119         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12120
12121         maint: fts.c: correct off-by-one indentation
12122         * lib/fts.c (fts_build): Correct indentation, change style
12123         of a couple of block comments, and bracing style.
12124
12125         maint: fts.c: move __opendir2 #define "up" out of function body
12126         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12127
12128         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12129         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12130         out for a long time and besides was useful only on BSD systems.
12131
12132 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12133
12134         regex: port to Stratus OpenVOS
12135         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12136         define to empty, rather than attempting nonportable optimizations.
12137         Problem reported by Paul Green in:
12138         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12139         and fix suggested by Eric Blake in:
12140         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12141
12142 2011-08-17  Eric Blake  <eblake@redhat.com>
12143
12144         getcwd: fix test failures on mingw
12145         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12146         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12147         test if long directory cannot be created, and allow mingw errno.
12148
12149         getcwd-lgpl: fix m4 to match relaxed test for BSD
12150         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12151         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12152         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12153         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12154         signature problem.
12155
12156         getcwd: fix compilation on mingw64
12157         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12158         getcwd.
12159         Reported by Marc-André Lureau.
12160
12161         pipe2: silence compiler warning
12162         * lib/pipe2.c (pipe2): Hide label if it is not used.
12163
12164 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12165
12166         relocatable-prog: fix link error
12167         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12168         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12169         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12170         into modules/relocatable-lib without noticing that
12171         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12172         also needs to build relocatable.c.
12173
12174 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12175
12176         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12178         shell code: it contained a 'break' that was not in a loop.
12179         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12180         via a shell-language loop; this may have been true in old Autoconf
12181         versions, but it's not true in Autoconf 2.68.  I found this bug
12182         when testing coreutils git on Solaris 8, whose shell complains
12183         about the syntax error.
12184
12185 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12186
12187         * lib/base64.c: Fix comment to reference RFC 4648.
12188         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12189         <gvtulder@gmail.com>.
12190
12191 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12192
12193         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12194
12195         po/Makefile.in.in: fix make -q problem
12196         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12197         rule, since there's no file named 'check-macro-version' and its
12198         use as a file breaks make -q.
12199         (all): Don't depend on check-macro-version.
12200         (CHECK_MACRO_VERSION): New macro.
12201         (stamp-po): Use it.
12202
12203         configmake: fix make -q problem
12204         * modules/configmake (configmake.h): Update configmake.h's time stamp
12205         even if the file does not change.  Otherwise, 'make -q' fails.
12206         Problem reported by Simon Josefsson in
12207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12208
12209 2011-08-11  Jim Meyering  <meyering@redhat.com>
12210
12211         git-version-gen: correct the advice in a comment
12212         * build-aux/git-version-gen: Correct comment.
12213         Don't recommend to list .tarball-version in .gitignore.
12214
12215 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12216
12217         base64: fix off-by-one buffer size bug
12218         Problem and (trivial) fix reported by Gijs van Tulder in
12219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12220         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12221         * tests/test-base64.c (main): Catch the bug.
12222
12223 2011-08-10  Eric Blake  <eblake@redhat.com>
12224
12225         closein: correct comments
12226         * lib/closein.c (close_stdin): Improve comments.
12227
12228 2011-08-09  Bruno Haible  <bruno@clisp.org>
12229
12230         More tests for 'fseeko'.
12231         * tests/test-fseeko3.c: New file, from Eric Blake.
12232         * tests/test-fseeko3.sh: New file.
12233         * modules/fseeko-tests (Files): Add them.
12234         (TESTS): Add test-fseeko3.sh.
12235         (check_PROGRAMS): Add test-fseeko3.
12236
12237 2011-08-09  Eric Blake  <eblake@redhat.com>
12238
12239         fseeko: remove unneeded hack
12240         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12241
12242         fseeko: fix bug on glibc
12243         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12244         Reported by John W. Eaton.
12245
12246 2011-08-08  Bruno Haible  <bruno@clisp.org>
12247
12248         unictype/base: Fix interoperability with preinstalled libunistring.
12249         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12250         Reported by Simon Josefsson.
12251
12252 2011-08-08  Bruno Haible  <bruno@clisp.org>
12253
12254         iswblank: Detect declaration correctly.
12255         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12256         AC_CHECK_DECLS invocation.
12257
12258 2011-08-08  Bruno Haible  <bruno@clisp.org>
12259
12260         tcgetsid: Detect declaration correctly.
12261         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12262         AC_CHECK_DECLS invocation.
12263         Reported by Simon Josefsson.
12264
12265 2011-08-08  Eric Blake  <eblake@redhat.com>
12266
12267         largefile: fix typo that regressed large file support
12268         * modules/largefile (configure.ac-early): Fix section name.
12269
12270 2011-08-06  Karl Berry  <karl@gnu.org>
12271
12272         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12273         a separate module.
12274
12275 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12276
12277         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12278         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12279         get prototype for free.
12280
12281 2011-08-04  Bruno Haible  <bruno@clisp.org>
12282
12283         Tests for module 'pathmax'.
12284         * modules/pathmax-tests: New file.
12285         * tests/test-pathmax.c: New file.
12286
12287         canonicalize-lgpl: Support larger filenames on the Hurd.
12288         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12289         Reported by Paul Eggert.
12290
12291         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12292         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12293         * lib/chdir-long.h: Include pathmax.h.
12294         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12295         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12296         (PATH_MAX): Remove code that is done by pathmax.h.
12297         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12298         * lib/tmpfile.c: Add a comment.
12299         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12300         * modules/chdir-long (Depends-on): Add pathmax.
12301         * modules/getcwd (Depends-on): Add pathmax.
12302         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12303         is not defined.
12304         * doc/posix-headers/limits.texi: Mention the pathmax module.
12305         * NEWS: Mention the change.
12306
12307 2011-08-02  Bruno Haible  <bruno@clisp.org>
12308
12309         pthread_sigmask: Actually use results of gl_THREADLIB.
12310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12311         gl_THREADLIB, not gl_[]THREADLIB.
12312         Reported by Eric Blake.
12313
12314 2011-08-02  Jim Meyering  <meyering@redhat.com>
12315
12316         maint.mk: relax the default _gl_TS_function_match regexp
12317         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12318         space between function name and "(" in an "extern" declaration.
12319         That would fail to match a decl with no space there: extern void foo();
12320
12321 2011-07-31  Iain Nicol  <iain@thenicols.net>
12322
12323         git-version-gen: document that EXTRA_DIST must include .version
12324         * build-aux/git-version-gen: In the how-to-use comment, document
12325         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12326         will fail when run from an unpacked distribution tarball.
12327
12328 2011-08-01  Bruno Haible  <bruno@clisp.org>
12329
12330         wctype-h: Fix last change.
12331         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12332         REPLACE_TOWLOWER to 0.
12333         Reported by Sam Steingold <sds@gnu.org>.
12334
12335 2011-07-31  Bruno Haible  <bruno@clisp.org>
12336
12337         frexpl: Update autoconf test.
12338         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12339         according to changes of 2011-06-20.
12340
12341 2011-07-31  Bruno Haible  <bruno@clisp.org>
12342
12343         sys_utsname: Add support for Minix.
12344         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12345         <sys/utsname.h>.
12346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12347         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12348
12349 2011-07-31  Bruno Haible  <bruno@clisp.org>
12350
12351         strings: Add support for Minix.
12352         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12353         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12354         * doc/posix-headers/strings.texi: Document the Minix problem.
12355
12356 2011-07-31  Bruno Haible  <bruno@clisp.org>
12357
12358         wctype-h: Add support for Minix.
12359         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12360         REPLACE_TOWLOWER.
12361         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12362         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12363         REPLACE_ISWCNTRL.
12364
12365 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12368         This is a performance improvement for 64-bit hosts: it causes the
12369         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12370
12371 2011-07-31  Bruno Haible  <bruno@clisp.org>
12372
12373         stdioext: Add support for Minix.
12374         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12375         * lib/fpurge.c (fpurge): Likewise.
12376         * lib/freadahead.c (freadahead): Likewise.
12377         * lib/freadable.c (freadable): Likewise.
12378         * lib/freading.c (freading): Likewise.
12379         * lib/freadptr.c (freadptr): Likewise.
12380         * lib/freadseek.c (freadptrinc): Likewise.
12381         * lib/fseeko.c (rpl_fseeko): Likewise.
12382         * lib/fseterr.c (fseterr): Likewise.
12383         * lib/fwritable.c (fwritable): Likewise.
12384         * lib/fwriting.c (fwriting): Likewise.
12385         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12386         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12387
12388 2011-07-31  Bruno Haible  <bruno@clisp.org>
12389
12390         errno: Port to Minix.
12391         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12392         ECONNABORTED are defined.
12393         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12394         GNULIB_defined_ECONNABORTED): New macros.
12395         * lib/strerror-override.h (strerror_override): Test also
12396         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12397         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12398         ECONNABORTED.
12399         * doc/posix-headers/errno.texi: Mention the Minix problem.
12400
12401 2011-07-31  Bruno Haible  <bruno@clisp.org>
12402
12403         Work around declaration collisions on Minix.
12404         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12405         defined, set REPLACE_MBSINIT.
12406         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12407         defined, set REPLACE_MBRTOWC.
12408         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12409         set REPLACE_MBRLEN.
12410         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12411         defined, set REPLACE_MBSRTOWCS.
12412         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12413         defined, set REPLACE_WCRTOMB.
12414         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12415         defined, set REPLACE_WCSRTOMBS.
12416
12417 2011-07-31  Bruno Haible  <bruno@clisp.org>
12418
12419         Add support for Minix with ACK compiler.
12420         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12421         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12422         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12423
12424 2011-07-31  Bruno Haible  <bruno@clisp.org>
12425
12426         Documentation about Minix.
12427         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12428         * doc/glibc-headers/*.texi: Likewise.
12429         * doc/posix-functions/*.texi: Likewise.
12430         * doc/glibc-functions/*.texi: Likewise.
12431
12432 2011-07-31  Bruno Haible  <bruno@clisp.org>
12433
12434         snippet/warn-on-use: Fix indentation.
12435         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12436
12437 2011-07-25  Jim Meyering  <meyering@redhat.com>
12438
12439         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12440         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12441         commands.
12442
12443 2011-07-27  Jim Meyering  <meyering@redhat.com>
12444
12445         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12446         * top/maint.mk (gl_extract_significant_defines_): Now that
12447         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12448         gnulib/lib/signal.in.h, and now that we recommend to
12449         define-if-undefined those two symbols in application code,
12450         we must filter them out of the "significant" list.
12451         This avoids a "make syntax-check" failure in coreutils.
12452
12453 2011-07-26  Eric Blake  <eblake@redhat.com>
12454
12455         warnings: add comments about previous patch
12456         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12457         * m4/include_next.m4: Likewise.
12458         * m4/warn-on-use.m4: Likewise.
12459         * m4/warnings.m4: Likewise, and simplify use.
12460         Suggested by Stefano Lattarini.
12461
12462         include-next, warnings: support older autoconf
12463         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12464         AS_VAR_PUSHDEF in a way that works with older autoconf.
12465         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12466         Reported by Daniel P. Berrange.
12467
12468 2011-07-25  Bruno Haible  <bruno@clisp.org>
12469
12470         fseek, ftell: Fix doc.
12471         * doc/posix-functions/fseek.texi: Reword statement about
12472         AC_SYS_LARGEFILE.
12473         * doc/posix-functions/ftell.texi: Likewise.
12474
12475 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12476             Bruno Haible  <bruno@clisp.org>
12477
12478         Add dependencies to the 'largefile' module.
12479         * modules/fopen (Depends-on): Add 'largefile'.
12480         * modules/freopen (Depends-on): Likewise.
12481         * modules/fseeko (Depends-on): Likewise.
12482         * modules/ftello (Depends-on): Likewise.
12483         * modules/glob (Depends-on): Likewise.
12484         * modules/lseek (Depends-on): Likewise.
12485         * modules/lstat (Depends-on): Likewise.
12486         * modules/mkostemp (Depends-on): Likewise.
12487         * modules/mkostemps (Depends-on): Likewise.
12488         * modules/mkstemp (Depends-on): Likewise.
12489         * modules/mkstemps (Depends-on): Likewise.
12490         * modules/open (Depends-on): Likewise.
12491         * modules/openat (Depends-on): Likewise.
12492         * modules/pread (Depends-on): Likewise.
12493         * modules/pwrite (Depends-on): Likewise.
12494         * modules/scandir (Depends-on): Likewise.
12495         * modules/stat (Depends-on): Likewise.
12496         * modules/tmpfile (Depends-on): Likewise.
12497         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12498         since the containing module now depends on the largefile module.
12499         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12500         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12501         off_t is fixed by gnulib.
12502         * doc/posix-functions/freopen.texi: Likewise.
12503         * doc/posix-functions/fseeko.texi: Likewise.
12504         * doc/posix-functions/fstatat.texi: Likewise.
12505         * doc/posix-functions/ftello.texi: Likewise.
12506         * doc/posix-functions/glob.texi: Likewise.
12507         * doc/posix-functions/lseek.texi: Likewise.
12508         * doc/posix-functions/lstat.texi: Likewise.
12509         * doc/posix-functions/mkstemp.texi: Likewise.
12510         * doc/posix-functions/open.texi: Likewise.
12511         * doc/posix-functions/openat.texi: Likewise.
12512         * doc/posix-functions/pread.texi: Likewise.
12513         * doc/posix-functions/pwrite.texi: Likewise.
12514         * doc/posix-functions/scandir.texi: Likewise.
12515         * doc/posix-functions/stat.texi: Likewise.
12516         * doc/posix-functions/tmpfile.texi: Likewise.
12517         * doc/glibc-functions/mkostemp.texi: Likewise.
12518         * doc/glibc-functions/mkostemps.texi: Likewise.
12519         * doc/glibc-functions/mkstemps.texi: Likewise.
12520
12521 2011-07-25  Bruno Haible  <bruno@clisp.org>
12522
12523         fcntl: Move AC_LIBOBJ invocation to module description.
12524         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12525         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12526
12527         fcntl: Remove call-in from fchdir.m4.
12528         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12530
12531         dup3: Remove potential call-in from fchdir.m4.
12532         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12534
12535         dup2: Move AC_LIBOBJ invocation to module description.
12536         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12537         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12538         Don't invoke AC_LIBOBJ.
12539         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12540
12541         dup2: Remove call-in from fchdir.m4.
12542         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12544
12545         fclose: Move AC_LIBOBJ invocation to module description.
12546         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12547         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12548         to 1.
12549         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12550
12551         fclose: Remove call-in from close.m4.
12552         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12553         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12554
12555         close: Move AC_LIBOBJ invocation to module description.
12556         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12557         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12558         1.
12559         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12560
12561         close: Remove call-in from fchdir.m4.
12562         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12564
12565         open: Move AC_LIBOBJ invocation to module description.
12566         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12567         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12568         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12569
12570         open: Remove call-in from fchdir.m4.
12571         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12573
12574         fchdir: Start to remove gl_REPLACE_* idiom.
12575         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12576         (gl_FUNC_FCHDIR): Invoke it.
12577
12578 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12579
12580         * lib/ftell.c (ftell): Comment out cast.
12581
12582         close: use gl_REPLACE_FCLOSE only if defined
12583         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12584         is defined.  The close module doesn't depend on the fclose module
12585         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12587         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12588
12589 2011-07-24  Jim Meyering  <meyering@redhat.com>
12590
12591         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12592         * tests/test-select.h (test_function): Declare as "static".
12593
12594 2011-07-24  Bruno Haible  <bruno@clisp.org>
12595
12596         doc: Mention the effects of AC_SYS_LARGEFILE.
12597         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12598         on this function.
12599         * doc/posix-functions/aio_error.texi: Likewise.
12600         * doc/posix-functions/aio_fsync.texi: Likewise.
12601         * doc/posix-functions/aio_read.texi: Likewise.
12602         * doc/posix-functions/aio_return.texi: Likewise.
12603         * doc/posix-functions/aio_suspend.texi: Likewise.
12604         * doc/posix-functions/aio_write.texi: Likewise.
12605         * doc/posix-functions/fgetpos.texi: Likewise.
12606         * doc/posix-functions/fopen.texi: Likewise.
12607         * doc/posix-functions/freopen.texi: Likewise.
12608         * doc/posix-functions/fsetpos.texi: Likewise.
12609         * doc/posix-functions/fstatvfs.texi: Likewise.
12610         * doc/posix-functions/ftruncate.texi: Likewise.
12611         * doc/posix-functions/ftw.texi: Likewise.
12612         * doc/posix-functions/getrlimit.texi: Likewise.
12613         * doc/posix-functions/glob.texi: Likewise.
12614         * doc/posix-functions/lio_listio.texi: Likewise.
12615         * doc/posix-functions/lockf.texi: Likewise.
12616         * doc/posix-functions/mkstemp.texi: Likewise.
12617         * doc/posix-functions/mmap.texi: Likewise.
12618         * doc/posix-functions/nftw.texi: Likewise.
12619         * doc/posix-functions/openat.texi: Likewise.
12620         * doc/posix-functions/opendir.texi: Likewise.
12621         * doc/posix-functions/posix_fadvise.texi: Likewise.
12622         * doc/posix-functions/posix_fallocate.texi: Likewise.
12623         * doc/posix-functions/pread.texi: Likewise.
12624         * doc/posix-functions/pwrite.texi: Likewise.
12625         * doc/posix-functions/readdir.texi: Likewise.
12626         * doc/posix-functions/readdir_r.texi: Likewise.
12627         * doc/posix-functions/rewinddir.texi: Likewise.
12628         * doc/posix-functions/scandir.texi: Likewise.
12629         * doc/posix-functions/seekdir.texi: Likewise.
12630         * doc/posix-functions/setrlimit.texi: Likewise.
12631         * doc/posix-functions/statvfs.texi: Likewise.
12632         * doc/posix-functions/telldir.texi: Likewise.
12633         * doc/posix-functions/tmpfile.texi: Likewise.
12634         * doc/posix-functions/truncate.texi: Likewise.
12635         * doc/glibc-functions/fallocate.texi: Likewise.
12636         * doc/glibc-functions/fstatfs.texi: Likewise.
12637         * doc/glibc-functions/fts_children.texi: Likewise.
12638         * doc/glibc-functions/fts_read.texi: Likewise.
12639         * doc/glibc-functions/getdirentries.texi: Likewise.
12640         * doc/glibc-functions/mkostemp.texi: Likewise.
12641         * doc/glibc-functions/mkostemps.texi: Likewise.
12642         * doc/glibc-functions/mkstemps.texi: Likewise.
12643         * doc/glibc-functions/preadv.texi: Likewise.
12644         * doc/glibc-functions/pwritev.texi: Likewise.
12645         * doc/glibc-functions/sendfile.texi: Likewise.
12646         * doc/glibc-functions/statfs.texi: Likewise.
12647
12648 2011-07-24  Bruno Haible  <bruno@clisp.org>
12649
12650         doc: Fix typo.
12651         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12652
12653 2011-07-24  Bruno Haible  <bruno@clisp.org>
12654
12655         doc: Mention fsusage.
12656         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12657
12658 2011-07-24  Bruno Haible  <bruno@clisp.org>
12659
12660         doc: Mention new glibc headers and functions.
12661         * doc/glibc-headers/gshadow.texi: New file.
12662         * doc/glibc-functions/endsgent.texi: New file.
12663         * doc/glibc-functions/fgetsgent.texi: New file.
12664         * doc/glibc-functions/fgetsgent_r.texi: New file.
12665         * doc/glibc-functions/getsgent.texi: New file.
12666         * doc/glibc-functions/getsgent_r.texi: New file.
12667         * doc/glibc-functions/getsgnam.texi: New file.
12668         * doc/glibc-functions/getsgnam_r.texi: New file.
12669         * doc/glibc-functions/putsgent.texi: New file.
12670         * doc/glibc-functions/setsgent.texi: New file.
12671         * doc/glibc-functions/sgetsgent.texi: New file.
12672         * doc/glibc-functions/sgetsgent_r.texi: New file.
12673         * doc/glibc-functions/malloc_info.texi: New file.
12674         * doc/glibc-functions/preadv.texi: New file.
12675         * doc/glibc-functions/pwritev.texi: New file.
12676         * doc/glibc-functions/register_printf_modifier.texi: New file.
12677         * doc/glibc-functions/register_printf_specifier.texi: New file.
12678         * doc/glibc-functions/register_printf_type.texi: New file.
12679         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12680         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12681         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12682         * doc/glibc-functions/pthread_getname_np.texi: New file.
12683         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12684         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12685         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12686         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12687         * doc/glibc-functions/pthread_setname_np.texi: New file.
12688         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12689         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12690         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12691         * doc/glibc-functions/qsort_r.texi: New file.
12692         * doc/glibc-functions/quick_exit.texi: New file.
12693         * doc/glibc-functions/syncfs.texi: New file.
12694         * doc/gnulib.texi: Include them.
12695         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12696         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12697         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12698         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12699         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12700         * doc/glibc-functions/execvpe.texi: Likewise.
12701
12702 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12703
12704         ftell: don't include <unistd.h>
12705         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12706         guaranteed to define off_t, and the ftell module depends on the
12707         stdio module.
12708
12709         ftell: do not assume wraparound signed arithmetic
12710         * lib/ftell.c: Include <limits.h>.
12711         (ftell): Don't assume wraparound signed arithmetic.
12712
12713 2011-07-24  Bruno Haible  <bruno@clisp.org>
12714
12715         close: No longer depend on module 'fclose'.
12716         * modules/close (Depends-on): Remove fclose.
12717         * NEWS: Mention the change.
12718         Suggested by Sam Steingold <sds@gnu.org>.
12719
12720 2011-07-24  Bruno Haible  <bruno@clisp.org>
12721
12722         fsusage: Enable large volume support on AIX >= 5.2.
12723         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12724         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12725         instead of STAT_STATVFS.
12726         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12727
12728         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12729         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12730         f_blocks field only on MacOS X.
12731
12732         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12734         * modules/fsusage (Depends-on): Add largefile.
12735
12736 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12737
12738         * README: Modernize discussion of signed integers.
12739         Assuming overflow wraparound is no longer safe.
12740         Mention ones' complement and signed magnitude.
12741
12742 2011-07-22  Bruno Haible  <bruno@clisp.org>
12743
12744         select tests, pselect tests: Refactor.
12745         * tests/test-select.h: New file, extracted from tests/test-select.c.
12746         (select_fn): New type.
12747         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12748         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12749         test_pipe): Add my_select argument.
12750         (test_function): Renamed from main. Add my_select argument.
12751         * tests/test-select.c: Move most code to tests/test-select.h. Include
12752         test-select.h.
12753         * modules/select-tests (Files): Add tests/test-select.h.
12754         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12755         (my_select, main): New functions.
12756         * modules/pselect-tests (Files): Add tests/test-select.h,
12757         tests/macros.h, tests/signature.h.
12758         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12759         (configure.ac): Check for <sys/wait.h>.
12760
12761 2011-07-22  Bruno Haible  <bruno@clisp.org>
12762
12763         sys_select tests: Check the signature of FD_*.
12764         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12765         signature tests from here...
12766         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12767         here.
12768         * modules/sys_select-tests (Files): Add tests/signature.h.
12769
12770 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12771
12772         largefile: new module, replacing large-inode
12773         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12774         * MODULES.html.sh: Add largefile, remove large-inode.
12775         * modules/largefile, m4/largefile.m4: New files.
12776         * modules/large-inode, m4/large-inode.m4: Remove.
12777
12778         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12780         implementations that use only 32 bits to count blocks.
12781         On typical hosts with 1024-byte blocks, this fails with file
12782         systems as small as 4 TiB.  Problem reported by Herb Wartens
12783         <http://debbugs.gnu.org/9140> and this should also fix a similar
12784         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12785
12786         large-inode: New module
12787         * MODULES.html.sh: Add it.
12788         * modules/large-inode, m4/large-inode.m4: New files.
12789
12790         extensions: Enable extensions on MacOS X 10.5 and later.
12791         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12792
12793 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12794
12795         file-has-acl: use acl_extended_file_nofollow if available
12796         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12797         (acl_extended_file): New macro.
12798         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12799         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12800
12801 2011-07-21  Bruno Haible  <bruno@clisp.org>
12802
12803         Declare system functions in a way that works with C++.
12804         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12805         declare fdopendir as extern "C".
12806         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12807         declare frexpl as extern "C".
12808         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12809         declare gai_strerror as extern "C".
12810         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12811         programs, declare gai_strerror as extern "C".
12812         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12813         declare getlogin_r as extern "C".
12814         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12815         as extern "C".
12816         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12817         declare ldexpl as extern "C".
12818         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12819         as extern "C".
12820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12821         program, declare getmntinfo as extern "C".
12822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12823         stpncpy as extern "C".
12824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12825         program, declare __xpg_strerror_r as extern "C".
12826         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12827         strndup as extern "C".
12828         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12829         declare memset and bzero as extern "C".
12830         Reported by Sam Steingold <sds@gnu.org>.
12831
12832 2011-07-12  Jim Meyering  <meyering@redhat.com>
12833
12834         maint.mk: prohibit inclusion of "verify.h" without use
12835         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12836
12837 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12838
12839         timer-time: A new module to check for timer_settime()
12840         * m4/timer_time.m4: Check for the posix function.
12841         * modules/timer-time: Add the new module.
12842         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12843         Mention it.
12844
12845 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12846             Bruno Haible  <bruno@clisp.org>
12847
12848         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12850         not defined, assume POSIX threads and look for pthread_sigmask in
12851         $LIBS, without changing $CPPFLAGS.
12852
12853 2011-07-19  Bruno Haible  <bruno@clisp.org>
12854
12855         strstr: Update cross-compilation guess.
12856         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12857         CPUs, guess no, in view of glibc
12858         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12859         Suggested by Eric Blake. Reported by Reuben Thomas.
12860
12861 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12862
12863         getopt-gnu: suppress core dumps from detection code
12864         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12865         to suppress core dumps that may well occur on glibc systems.
12866         * modules/getopt-gnu: Depend on nocrash.
12867
12868 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12869
12870         pthread_sigmask: ensure usleep is declared
12871         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12872         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12873
12874 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12875
12876         doc: Document NonStop portability issues.
12877         * doc/posix-functions/sigaction.texi (sigaction):
12878         * doc/posix-headers/signal.texi (signal.h):
12879         Document NonStop.  See Joachim Schmitz in
12880         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12881
12882 2011-07-15  Bruno Haible  <bruno@clisp.org>
12883
12884         ffsl, ffsll: Avoid unportable behaviour.
12885         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12886
12887 2011-07-15  Bruno Haible  <bruno@clisp.org>
12888
12889         ffs: More tests.
12890         * tests/test-ffs.c (NBITS): New macro.
12891         (main): Add more tests.
12892         * tests/test-ffsl.c (NBITS): New macro.
12893         (main): Add more tests.
12894         * tests/test-ffsll.c (NBITS): New macro.
12895         (main): Add more tests.
12896
12897 2011-07-15  Eric Blake  <eblake@redhat.com>
12898
12899         ffsl, ffsll: new modules
12900         * modules/ffsl: New file.
12901         * modules/ffsll: Likewise.
12902         * m4/ffsl.m4: Likewise.
12903         * m4/ffsll.m4: Likewise.
12904         * lib/ffsl.c: Likewise.
12905         * lib/ffsl.h: Likewise.
12906         * lib/ffsll.c: Likewise.
12907         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12908         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12909         * modules/string (Makefile.am): Substitute witnesses.
12910         * lib/strings.in.h (ffsl, ffsll): Declare.
12911         * modules/ffsl-tests: New test file.
12912         * modules/ffsll-tests: Likewise.
12913         * tests/test-ffsl.c: Likewise.
12914         * tests/test-ffsll.c: Likewise.
12915         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12916         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12917         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12918
12919         ffs: fix m4 prerequisite
12920         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12921
12922         ffs: avoid undefined behavior
12923         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12924         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12925         Reported by Bruno Haible.
12926
12927 2011-07-12  Bruno Haible  <bruno@clisp.org>
12928
12929         pthread_sigmask: Rely on module 'threadlib'.
12930         * modules/pthread_sigmask (Depends-on): Add threadlib.
12931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12932         is defined.
12933
12934 2011-07-12  Bruno Haible  <bruno@clisp.org>
12935
12936         regex: Depend on module 'strcase'.
12937         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12938
12939 2011-07-12  Jim Meyering  <meyering@redhat.com>
12940
12941         warn-on-use: fix typo in file name
12942         * modules/snippet/warn-on-use (Files): Correct file name:
12943         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12944
12945 2011-07-12  Bruno Haible  <bruno@clisp.org>
12946
12947         strings: Document module.
12948         * doc/posix-headers/strings.texi: Mention module 'strings'.
12949
12950 2011-07-12  Bruno Haible  <bruno@clisp.org>
12951
12952         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12953         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12954         (Files, Makefile.am): Update.
12955         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12956         * modules/stdlib (Depends-on): Update.
12957
12958 2011-07-12  Bruno Haible  <bruno@clisp.org>
12959
12960         * NEWS: Mention the changes.
12961
12962         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12963         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12964         (Files, Makefile.am): Update.
12965         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12966         * modules/arpa_inet (Depends-on): Update.
12967         * modules/ctype (Depends-on): Update.
12968         * modules/dirent (Depends-on): Update.
12969         * modules/fcntl-h (Depends-on): Update.
12970         * modules/glob (Depends-on): Update.
12971         * modules/iconv-h (Depends-on): Update.
12972         * modules/inttypes-incomplete (Depends-on): Update.
12973         * modules/langinfo (Depends-on): Update.
12974         * modules/locale (Depends-on): Update.
12975         * modules/math (Depends-on): Update.
12976         * modules/netdb (Depends-on): Update.
12977         * modules/poll-h (Depends-on): Update.
12978         * modules/pty (Depends-on): Update.
12979         * modules/search (Depends-on): Update.
12980         * modules/signal (Depends-on): Update.
12981         * modules/spawn (Depends-on): Update.
12982         * modules/stdio (Depends-on): Update.
12983         * modules/stdlib (Depends-on): Update.
12984         * modules/string (Depends-on): Update.
12985         * modules/strings (Depends-on): Update.
12986         * modules/sys_file (Depends-on): Update.
12987         * modules/sys_ioctl (Depends-on): Update.
12988         * modules/sys_select (Depends-on): Update.
12989         * modules/sys_socket (Depends-on): Update.
12990         * modules/sys_stat (Depends-on): Update.
12991         * modules/sys_time (Depends-on): Update.
12992         * modules/sys_times (Depends-on): Update.
12993         * modules/sys_utsname (Depends-on): Update.
12994         * modules/sys_wait (Depends-on): Update.
12995         * modules/termios (Depends-on): Update.
12996         * modules/time (Depends-on): Update.
12997         * modules/unistd (Depends-on): Update.
12998         * modules/wchar (Depends-on): Update.
12999         * modules/wctype-h (Depends-on): Update.
13000         * MODULES.html.sh (Support for building libraries and executables):
13001         Update.
13002
13003         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13004         * modules/snippet/unused-parameter: Renamed from
13005         modules/unused-parameter.
13006         (Files, Makefile.am): Update.
13007         * build-aux/snippet/unused-parameter.h: Renamed from
13008         build-aux/unused-parameter.h.
13009         * modules/selinux-h (Depends-on): Update.
13010         * modules/unistr/base (Depends-on): Update.
13011         * MODULES.html.sh (Core language properties): Update.
13012
13013         Rename module 'link-warning' to 'snippet/link-warning'.
13014         * modules/snippet/link-warning: Renamed from modules/link-warning.
13015         (Files, Makefile.am): Update.
13016         * build-aux/snippet/link-warning.h: Renamed from
13017         build-aux/link-warning.h.
13018         * MODULES.html.sh (Support for building libraries and executables):
13019         Update.
13020
13021         Rename module 'c++defs' to 'snippet/c++defs'.
13022         * modules/snippet/c++defs: Renamed from modules/c++defs.
13023         (Files, Makefile.am): Update.
13024         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13025         * modules/arpa_inet (Depends-on): Update.
13026         * modules/ctype (Depends-on): Update.
13027         * modules/dirent (Depends-on): Update.
13028         * modules/fcntl-h (Depends-on): Update.
13029         * modules/glob (Depends-on): Update.
13030         * modules/iconv-h (Depends-on): Update.
13031         * modules/langinfo (Depends-on): Update.
13032         * modules/locale (Depends-on): Update.
13033         * modules/math (Depends-on): Update.
13034         * modules/netdb (Depends-on): Update.
13035         * modules/poll-h (Depends-on): Update.
13036         * modules/pty (Depends-on): Update.
13037         * modules/search (Depends-on): Update.
13038         * modules/signal (Depends-on): Update.
13039         * modules/spawn (Depends-on): Update.
13040         * modules/stdio (Depends-on): Update.
13041         * modules/stdlib (Depends-on): Update.
13042         * modules/string (Depends-on): Update.
13043         * modules/strings (Depends-on): Update.
13044         * modules/sys_ioctl (Depends-on): Update.
13045         * modules/sys_select (Depends-on): Update.
13046         * modules/sys_socket (Depends-on): Update.
13047         * modules/sys_stat (Depends-on): Update.
13048         * modules/sys_time (Depends-on): Update.
13049         * modules/sys_wait (Depends-on): Update.
13050         * modules/termios (Depends-on): Update.
13051         * modules/time (Depends-on): Update.
13052         * modules/unistd (Depends-on): Update.
13053         * modules/wchar (Depends-on): Update.
13054         * modules/wctype-h (Depends-on): Update.
13055
13056         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13057         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13058         (Files, Makefile.am): Update.
13059         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13060         * modules/argv-iter (Depends-on): Update.
13061         * modules/arpa_inet (Depends-on): Update.
13062         * modules/dirent (Depends-on): Update.
13063         * modules/fcntl-h (Depends-on): Update.
13064         * modules/fnmatch (Depends-on): Update.
13065         * modules/getopt-posix (Depends-on): Update.
13066         * modules/glob (Depends-on): Update.
13067         * modules/iconv-h (Depends-on): Update.
13068         * modules/inttypes-incomplete (Depends-on): Update.
13069         * modules/locale (Depends-on): Update.
13070         * modules/math (Depends-on): Update.
13071         * modules/netdb (Depends-on): Update.
13072         * modules/search (Depends-on): Update.
13073         * modules/signal (Depends-on): Update.
13074         * modules/spawn (Depends-on): Update.
13075         * modules/stdio (Depends-on): Update.
13076         * modules/stdlib (Depends-on): Update.
13077         * modules/string (Depends-on): Update.
13078         * modules/strings (Depends-on): Update.
13079         * modules/sys_socket (Depends-on): Update.
13080         * modules/sys_stat (Depends-on): Update.
13081         * modules/sys_time (Depends-on): Update.
13082         * modules/sys_times (Depends-on): Update.
13083         * modules/sys_utsname (Depends-on): Update.
13084         * modules/time (Depends-on): Update.
13085         * modules/unistd (Depends-on): Update.
13086         * modules/wchar (Depends-on): Update.
13087         * MODULES.html.sh (Support for building libraries and executables):
13088         Update.
13089
13090 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13091
13092         Improvements on _Noreturn and related modules.
13093
13094         modules/_Exit-tests: test _Noreturn too
13095         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13096         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13097         (main): Use them.
13098
13099         stdnoreturn, stdnoreturn-tests: remove modules
13100         They're not needed here and a bit premature for use elsewhere.  See
13101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13102         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13103         * tests/test-stdnoreturn.c: Remove files.
13104         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13105         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13106         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13107         and using noreturn.
13108         * modules/openat, modules/sigpipe-die, modules/xalloc:
13109         * modules/xmemdup0, modules/xstrtol:
13110         Remove dependency on stdnoreturn.
13111
13112         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13113         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13114         Reparenthesize to avoid GCC warning.
13115         Support Microsoft's syntax.
13116         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13117
13118         _Noreturn-tests: remove module
13119         * modules/_Noreturn-tests: Remove.
13120         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13121         * tests/test-_Noreturn.c: Remove.
13122         * tests/test-stdnoreturn.c: Merge from the old
13123         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13124
13125 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13126
13127         _Noreturn, stdnoreturn, and related modules.
13128
13129         * top/maint.mk: Adjust to new noreturn support.
13130         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13131         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13132
13133         xalloc: use stdnoreturn.h
13134         * lib/xalloc.h: Include <stdnoreturn.h>.
13135         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13136         * modules/xalloc (Depends-on): Add stdnoreturn.
13137
13138         xstrtol: use stdnoreturn.h
13139         * lib/xstrtol.h: Include <stdnoreturn.h>.
13140         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13141         * modules/xstrtol (Depends-on): Add stdnoreturn.
13142
13143         xmemdup0: use stdnoreturn.h
13144         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13145         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13146         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13147
13148         sigpipe-die: use stdnoreturn.h
13149         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13150         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13151         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13152
13153         openat: use stdnoreturn.h
13154         * lib/openat.h: Include <stdnoreturn.h>.
13155         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13156         * modules/openat (Depends-on): Add stdnoreturn.
13157
13158         * lib/openat-die.c (openat_save_fail): Modernize comment.
13159
13160         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13161
13162         * lib/glthread/thread.h: Modernize comment.
13163
13164         obstack: use _Noreturn
13165         * lib/obstack.c (__attribute__): Remove macro.
13166         (print_and_abort): Use _Noreturn.
13167
13168         c-stack: use _Noreturn
13169         * lib/c-stack.c (die, overflow_handler, segv_handler):
13170         Use _Noreturn rather than __attribute__((noreturn)).
13171
13172         argmatch-tests, exclude_tests: use _Noreturn
13173         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13174         Remove.
13175         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13176
13177         stdlib: use _Noreturn
13178         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13179         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13180         * modules/stdlib (Depends-on): Add _Noreturn.
13181         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13182
13183         stdnoreturn-tests: new module
13184         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13185
13186         stdnoreturn: new module
13187         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13188         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13189
13190         _Noreturn-tests: new module
13191         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13192
13193         _Noreturn: new module
13194         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13195         New section, mentioning it.
13196         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13197
13198         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13199
13200 2011-07-11  Eric Blake  <eblake@redhat.com>
13201
13202         ffs: new module
13203         * modules/ffs: New file.
13204         * m4/ffs.m4: Likewise.
13205         * lib/ffs.c: Likewise.
13206         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13207         * modules/strings (Makefile.am): Substitute witness.
13208         (Depends-on): Add c++defs.
13209         * lib/strings.in.h (ffs): Declare.
13210         * modules/ffs-tests: New test file.
13211         * tests/test-ffs.c: Test new module.
13212         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13213         * doc/posix-functions/ffs.texi (ffs): Likewise.
13214
13215         regex: avoid compiler warning
13216         * lib/regex.c (includes): Include <strings.h>, for use of
13217         strcasecmp in regcomp.c.
13218         Reported by Joachim Schmitz.
13219
13220 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13221
13222         stdint: respect system's intmax_t if INTMAX_MAX
13223         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13224         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13225         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13226         long but int64_t is long long, and where we will clash with the
13227         system intmax_t if we override it.  See
13228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13229         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13230         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13231         similarly for UINTMAX_C.
13232
13233 2011-07-08  Bruno Haible  <bruno@clisp.org>
13234
13235         pthread_sigmask tests: Avoid a compiler warning.
13236         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13237         non-zero.
13238
13239         sigprocmask tests: A better way to avoid a compiler warning.
13240         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13241         (main): Complain if system() returns non-zero.
13242         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13243
13244 2011-07-08  Bruno Haible  <bruno@clisp.org>
13245
13246         pthread_sigmask: Work around IRIX bug.
13247         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13248         bug.
13249         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13250         there may be unblocked pending signals.
13251         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13252
13253 2011-07-08  Bruno Haible  <bruno@clisp.org>
13254
13255         pthread_sigmask: Work around Cygwin bug.
13256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13257         bug.
13258         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13259         the system's pthread_sigmask function.
13260         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13261
13262 2011-07-08  Bruno Haible  <bruno@clisp.org>
13263
13264         pthread_sigmask: Work around bug in single-threaded implementation.
13265         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13266         FreeBSD, HP-UX, Solaris bug.
13267         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13268         * lib/pthread_sigmask.c: Include <stddef.h>.
13269         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13270         the system's pthread_sigmask function.
13271         * modules/pthread_sigmask (configure.ac): Invoke
13272         gl_PREREQ_PTHREAD_SIGMASK.
13273         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13274         HP-UX, Solaris.
13275
13276 2011-07-08  Eric Blake  <eblake@redhat.com>
13277
13278         test-sigprocmask: avoid compiler warning
13279         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13280         * tests/test-sigprocmask.c (main): Use it to silence warning.
13281         Reported by Jim Meyering.
13282
13283         test-snprintf: avoid compiler warning
13284         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13285         * tests/test-vsnprintf.c (main): Likewise.
13286         Reported by Jim Meyering.
13287
13288 2011-07-08  Bruno Haible  <bruno@clisp.org>
13289
13290         Tests for module 'pthread_sigmask'.
13291         * modules/pthread_sigmask-tests: New file.
13292         * tests/test-pthread_sigmask1.c: New file, based on
13293         tests/test-sigprocmask.c.
13294         * tests/test-pthread_sigmask2.c: New file.
13295
13296 2011-07-08  Jim Meyering  <meyering@redhat.com>
13297
13298         test-getopt.h: avoid warning about an unused variable
13299         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13300
13301 2011-07-07  Jim Meyering  <meyering@redhat.com>
13302
13303         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13304         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13305         now that it no longer contains leading TABs.
13306         Remove unused "url=FIXME" statement.
13307
13308 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13309
13310         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13312         When gl_THREADLIB is not in use, assume that the POSIX sematics
13313         are desired.  This is better for Emacs, which uses POSIX semantics
13314         on GNUish and/or POSIXish platforms, and does not use threads at
13315         all otherwise.
13316
13317         pthread_sigmask: fix typo when testing for libraries
13318         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13319         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13320
13321 2011-07-08  Eric Blake  <eblake@redhat.com>
13322
13323         fts: introduce FTS_NOATIME
13324         * lib/fts_.h (FTS_NOATIME): New bit flag.
13325         (FTS_OPTIONMASK): Adjust.
13326         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13327         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13328
13329 2011-07-08  Bruno Haible  <bruno@clisp.org>
13330
13331         Tests for module 'thread'.
13332         * modules/thread-tests: New file.
13333         * tests/test-thread_self.c: New file.
13334         * tests/test-thread_create.cc: New file.
13335
13336 2011-07-08  Bruno Haible  <bruno@clisp.org>
13337
13338         thread: Avoid gcc warnings when using gl_thread_self().
13339         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13340         'void *'.
13341         (gl_thread_self_pointer): Update.
13342
13343 2011-07-07  Bruno Haible  <bruno@clisp.org>
13344
13345         signal-c++-tests: Check declaration of pthread_sigmask.
13346         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13347         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13348         $(LIB_PTHREAD_SIGMASK).
13349
13350 2011-07-07  Bruno Haible  <bruno@clisp.org>
13351
13352         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13353         * lib/signal.in.h (pthread_sigmask): Override if
13354         REPLACE_PTHREAD_SIGMASK is 1.
13355         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13356         REPLACE_PTHREAD_SIGMASK.
13357         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13358         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13359         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13360         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13361         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13362
13363 2011-07-07  Bruno Haible  <bruno@clisp.org>
13364
13365         pthread_sigmask: Ensure declaration in <signal.h>.
13366         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13367         include <pthread.h>.
13368         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13369         problem.
13370
13371 2011-07-07  Bruno Haible  <bruno@clisp.org>
13372
13373         pthread_sigmask: Document the module.
13374         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13375
13376 2011-07-07  Bruno Haible  <bruno@clisp.org>
13377
13378         pthread_sigmask: Follow gnulib conventions.
13379         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13380         gl_PTHREAD_SIGMASK.
13381         * modules/pthread_sigmask (configure.ac): Update.
13382
13383 2011-07-07  Bruno Haible  <bruno@clisp.org>
13384
13385         pthread_sigmask: Make declaration C++ safe.
13386         * lib/signal.in.h: In two special conditions, just do an #include_next.
13387         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13388         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13389         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13390         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13391         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13392         not REPLACE_PTHREAD_MASK.
13393         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13394         not REPLACE_PTHREAD_MASK.
13395         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13396
13397 2011-07-07  Bruno Haible  <bruno@clisp.org>
13398
13399         pthread_sigmask: Fix return value.
13400         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13401         * lib/pthread_sigmask.c: New file.
13402         * modules/pthread_sigmask (Files): Add it.
13403         (configure.ac): Invoke AC_LIBOBJ.
13404
13405 2011-07-07  Eric Blake  <eblake@redhat.com>
13406
13407         getopt: more portable argv creation
13408         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13409         const, use char arrays rather than strings.
13410         Suggested by Paul Eggert.
13411
13412 2011-07-07  Bruno Haible  <bruno@clisp.org>
13413
13414         Tests for module 'sigprocmask'.
13415         * modules/sigprocmask-tests: New file.
13416         * tests/test-sigprocmask.c: New file.
13417
13418 2011-07-07  Bruno Haible  <bruno@clisp.org>
13419
13420         float tests: Tweak.
13421         * tests/test-float.c (main): Tweak skip message.
13422
13423 2011-07-07  Eric Blake  <eblake@redhat.com>
13424
13425         getopt: avoid compiler warning during configure
13426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13427         assigning string literals to non-const pointer.
13428
13429         getopt-gnu: avoid crash in glibc getopt
13430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13431         * tests/test-getopt.h (test_getopt): Enhance test.
13432         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13433         * doc/posix-functions/getopt.texi (getopt): Document it.
13434         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13435         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13436         Likewise.
13437
13438 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13439
13440         getopt: handle W; without long options in getopt [BZ #12922]
13441         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13442         but no long options are defined, just return 'W'.
13443
13444 2011-07-07  Bruno Haible  <bruno@clisp.org>
13445
13446         Avoid literal tabs.
13447         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13448         variable containing a tab instead of a literal tab.
13449         Reported by Jim Meyering.
13450
13451 2011-07-07  Bruno Haible  <bruno@clisp.org>
13452
13453         Comments.
13454         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13455
13456 2011-07-06  Bruno Haible  <bruno@clisp.org>
13457
13458         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13459         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13460         <winsock2.h>.
13461         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13462         lib/sys_socket.in.h.
13463         (close, gethostname): Hide declarations from <winsock2.h>.
13464         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13465         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13466         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13467         (select): Don't override if gnulib's <sys/select.h> was already
13468         included.
13469         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13470         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13471         setsockopt, shutdown, select): Tweak indentation.
13472
13473 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13476         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13477         in an application that does not use the sys_select module.
13478
13479 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13480
13481         poll: do not return 0 on timeout=-1
13482         * lib/poll.c: Loop with yield if no events occured
13483
13484 2011-07-06  Eric Blake  <eblake@redhat.com>
13485
13486         pthread_sigmask: always replace when not using pthread
13487         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13488         replacement when using some threading other than pthread.  Fix
13489         logic bug.
13490
13491 2011-07-06  Bruno Haible  <bruno@clisp.org>
13492
13493         Comments.
13494         * m4/printf.m4: Update comments about mingw.
13495
13496 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13497
13498         sys_select: define sigset_t more portably
13499         * lib/sys_select.in.h: Always include <sys/types.h>, since
13500         we now need sigset_t and mingw defines it there.
13501         Include <signal.h> before split inclusion guard, to avoid
13502         mishaps on Solaris, whose <signal.h> eventually includes us.
13503         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13504         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13505         which come from ...
13506         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13507         gl_CHECK_TYPE_SIGSET_T.
13508         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13509         does the real work.
13510         * modules/sys_select (Depends-on): Add 'signal'.
13511
13512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13513         Suggested by Bruno Haible.
13514
13515         pselect: Use pthread_sigmask, not sigprocmask.
13516         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13517         multithreaded apps better than sigprocmask does.
13518         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13519         sigprocmask directly.
13520
13521 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13522
13523         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13524         Don't #undef,  since we don't need any underlying pselect.
13525         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13526         (Depends-on): Add select.
13527         (Link): Add $(LIBSOCKET).
13528         These changes suggested by Bruno Haible.
13529
13530         pselect: document better
13531         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13532         * doc/posix-functions/pselect.texi (pselect): Document new module.
13533
13534         pthread_sigmask: new module
13535         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13536         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13537         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13538         This is done only as a macro; I don't know how well that'll
13539         work for C++.  Move <sys/types.h> include before the include_next,
13540         to avoid mishap on Solaris.
13541         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13542         * modules/signal (Makefile.am): Substitute the check's results.
13543         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13544
13545         test-pselect: new module
13546         * modules/pselect-tests, tests/test-pselect.c: New files.
13547         * tests/test-select.c, tests/test-sys_select-c++.cc:
13548         If TEST_PSELECT is defined, test pselect instead of testing select.
13549
13550         * tests/test-sys_select.c (sigset_t): Test for it, too.
13551         Suggested by Bruno Haible.
13552
13553 2011-07-05  Eric Blake  <eblake@redhat.com>
13554
13555         snprintf: guarantee %1$d, for libintl
13556         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13557         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13558         * doc/posix-functions/snprintf.texi (snprintf): Update.
13559         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13560         * tests/test-snprintf.c (main): Enhance test.
13561         * tests/test-vsnprintf.c (main): Likewise.
13562
13563 2011-07-05  Jim Meyering  <meyering@redhat.com>
13564
13565         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13566         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13567         per Bruno's request, to accommodate this idiom (no space after "#")
13568         even when the function is inside an #if block:
13569         char *
13570         gets (char *s)
13571         #undef gets
13572         {
13573           ...
13574         }
13575
13576 2011-07-04  Jim Meyering  <meyering@redhat.com>
13577
13578         maint: indent with spaces, not TABs, and add a rule to check this
13579         * tests/test-userspec.c: Indent with spaces, not TABs.
13580         * tests/test-argp.c: Likewise.
13581         * tests/test-c-stack2.sh: Likewise.
13582         * tests/test-parse-duration.sh: Likewise
13583         * m4/strtod.m4: Likewise.
13584         * m4/alloca.m4: Likewise.
13585         * m4/pselect.m4: Likewise.
13586         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13587
13588 2011-07-03  Jim Meyering  <meyering@redhat.com>
13589
13590         maint.mk: correct omissions in prohibit_argmatch_without_use check
13591         This rule would mistakenly report that argmatch.h is included without
13592         use even when both the argmatch and invalid_arg macro were used.
13593         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13594         of argmatch and invalid_arg.
13595
13596 2011-07-03  Bruno Haible  <bruno@clisp.org>
13597
13598         Comments about EINTR.
13599         * lib/safe-read.h: Explain the purpose of this module.
13600         * lib/safe-write.h: Likewise.
13601         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13602         module.
13603         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13604         module.
13605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13606
13607 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13608
13609         xnanosleep: Rewrite to use new dtotimespec module.
13610         It has the conversion code that used to be in xnanosleep.
13611         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13612         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13613         (TIME_T_MAX): Remove.
13614         (xnanosleep): Rewrite in terms of dtotimespec.
13615         * modules/xnanosleep (Depends-on): Add dtotimespec.
13616         Remove intprops, stdbool.
13617
13618         timespec-add, timespec-sub: new modules
13619         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13620         * lib/timespec-add.c, lib/timespec-sub.c:
13621         * modules/timespec-add, modules/timespec-sub: New files.
13622
13623         dtotimespec: new module
13624         * lib/timespec.h (dtotimespec): New decl.
13625         * lib/dtotimespec.c, modules/dtotimespec: New files.
13626
13627         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13628
13629         pselect: new module
13630         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13631         (pselect): New decls.
13632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13633         since the standard pselect decl uses 'restrict'.
13634         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13635         HAVE_PSELECT, REPLACE_PSELECT.
13636         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13637         HAVE_PSELECT, REPLACE_PSELECT.
13638         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13639
13640         sys_select: don't depend on sys_socket
13641         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13643         This fix works on GNU and GNU-like platforms, but has not been tested
13644         on native Windows.
13645         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13646         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13647         gl_HEADER_SYS_SOCKET.
13648         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13649         gl_PREREQ_SYS_H_WINSOCK2.
13650
13651 2011-06-29  Eric Blake  <eblake@redhat.com>
13652
13653         pipe2: fix C89 compile problem
13654         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13655         Reported by Bruno Haible.
13656
13657         pipe, pipe2: don't corrupt fd on error
13658         * lib/pipe.c (pipe): Leave fd unchanged on error.
13659         * lib/pipe2.c (pipe2): Likewise.
13660         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13661         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13662
13663 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13664
13665         mmap-anon: do not use regular expressions inadvertently
13666         * m4/mmap-anon.m4: Remove trailing period from strings sought
13667         in the output.
13668
13669 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13670
13671         nanosleep: fix integer overflow problem
13672         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13673         arithmetic wraps around on overflow.
13674
13675         nanosleep: simplify carrying
13676         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13677         first call to the underyling nanosleep, not for the last one.
13678         This doesn't fix any bugs, but it simplifies the computation of
13679         the remaining delay.  Found while auditing integer overflow issues.
13680
13681         dup2: remove test for existence of fcntl
13682         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13683         "#if HAVE_FCNTL", in the configure-time test program.
13684         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13685         and therefore speeds up "configure" a bit.  Found while
13686         adding the dup2 module to Emacs.
13687
13688 2011-06-24  Eric Blake  <eblake@redhat.com>
13689
13690         maint.mk: enhance useless header checks
13691         * top/maint.mk (_sc_header_without_use): Check both include
13692         styles.
13693         (sc_prohibit_assert_without_use)
13694         (sc_prohibit_close_stream_without_use)
13695         (sc_prohibit_getopt_without_use)
13696         (sc_prohibit_quotearg_without_use)
13697         (sc_prohibit_quote_without_use)
13698         (sc_prohibit_long_options_without_use)
13699         (sc_prohibit_inttostr_without_use)
13700         (sc_prohibit_ignore_value_without_use)
13701         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13702         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13703         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13704         (sc_prohibit_hash_pjw_without_use)
13705         (sc_prohibit_safe_read_without_use)
13706         (sc_prohibit_argmatch_without_use)
13707         (sc_prohibit_canonicalize_without_use)
13708         (sc_prohibit_root_dev_ino_without_use)
13709         (sc_prohibit_openat_without_use)
13710         (sc_prohibit_c_ctype_without_use)
13711         (sc_prohibit_signal_without_use)
13712         (sc_prohibit_stdio--_without_use)
13713         (sc_prohibit_stdio-safer_without_use)
13714         (sc_prohibit_strings_without_use)
13715         (sc_prohibit_intprops_without_use)
13716         (sc_prohibit_stddef_without_use)
13717         (sc_prohibit_xfreopen_without_use): Update clients.
13718
13719 2011-06-24  Jim Meyering  <meyering@redhat.com>
13720
13721         syntax-check: keep one maint.mk rule in sync with its header
13722         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13723         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13724         I prefer to avoid temporary files here, so use <(...), but that
13725         is not supported by /bin/sh, so...
13726         (SHELL): Define to /bin/bash.
13727
13728 2011-06-24  Eric Blake  <eblake@redhat.com>
13729
13730         maint.mk: update sc_prohibit_intprops_without_use
13731         * top/maint.mk (_intprops_names): Match recent changes.
13732
13733 2011-06-24  Bruno Haible  <bruno@clisp.org>
13734
13735         strerror-override: No-op tweak.
13736         * lib/strerror-override.h (strerror_override): Reorder conditions,
13737         for consistency with lib/strerror-override.c.
13738
13739 2011-06-23  Eric Blake  <eblake@redhat.com>
13740
13741         maint.mk: test further PATH_MAX issues
13742         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13743         (sc_prohibit_path_max_allocation): ...and also test alloca.
13744         Suggested by Jim Meyering.
13745
13746 2011-06-22  Eric Blake  <eblake@redhat.com>
13747
13748         maint.mk: add syntax-check to avoid char[PATH_MAX]
13749         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13750
13751         stat: be robust to PATH_MAX definition
13752         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13753         * modules/stat (Depends-on): Add verify.
13754
13755         link: work around IRIX bug
13756         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13757         * lib/link.c (rpl_link): Work around it.
13758         * tests/test-link.h (test_link): Enhance test.
13759         * doc/posix-functions/link.texi (link): Document the bug.
13760
13761         getopt: silence clang warning
13762         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13763         dereference.
13764         Reported by Gustavo Martin Domato.
13765
13766 2011-06-22  Jim Meyering  <meyering@redhat.com>
13767
13768         bootstrap: do not insert a blank line into each .gitignore file
13769         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13770
13771 2011-06-21  Eric Blake  <eblake@redhat.com>
13772
13773         perror: test for output mismatch
13774         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13775         perror on IRIX.
13776
13777         strerror_r: fix OpenBSD behavior on out-of-range
13778         * lib/strerror_r.c (strerror_r): Always use maximal string.
13779         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13780
13781         strerror_r: fix OpenBSD behavior on 0
13782         * lib/strerror-override.c (strerror_override): Also override 0
13783         when needed.
13784         * lib/strerror-override.h (strerror_override): Likewise.
13785         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13786         earlier.
13787         * lib/strerror_r.c (strerror_r): Likewise.
13788         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13789         behavior...
13790         (gl_FUNC_STRERROR_0): ...into new macro.
13791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13792         is overridden.
13793         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13794         * modules/strerror-override (Files): Add strerror.m4.
13795         (configure.ac): Also provide override for 0 when needed.
13796         * doc/posix-functions/strerror.texi (strerror): Document this.
13797         * doc/posix-functions/perror.texi (perror): Likewise.
13798
13799         perror: adjust array size
13800         * modules/perror (Depends-on): Add strerror-override.
13801         * lib/perror.c (perror): Use it to avoid magic number.
13802
13803         strerror-override: reduce size
13804         * lib/strerror-override.c (strerror_override): Use fewer lines.
13805
13806 2011-06-20  Bruno Haible  <bruno@clisp.org>
13807
13808         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13809         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13810
13811 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         alloca: port to compilers that can optimize like GCC 4.6.0
13814         * lib/alloca.c (find_stack_direction): New signature, taken from
13815         Autoconf git.  This works with GCC 4.6.0.  This code should never
13816         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13817         be used with other compilers that optimize as well as GCC 4.6.0 does.
13818         (alloca): Adjust to new signature.
13819         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13820         New macro, which patches Autoconf in a similar way.
13821
13822         c-stack: stop worrying about stack direction
13823         * lib/c-stack.c (find_stack_direction): Remove.
13824         (segv_handler): Don't worry about stack direction growth, as it's
13825         too much of a pain to configure this correctly, given how compilers
13826         are optimizing-away our stack-growth detection code.  Instead, assume
13827         that any access to just before or just after the stack is OK.
13828         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13829         Don't require AC_FUNC_ALLOCA; no longer needed.
13830
13831 2011-06-20  Eric Blake  <eblake@redhat.com>
13832
13833         test-stat: don't allocate PATH_MAX bytes
13834         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13835         PATH_MAX-sized buffer.
13836         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13837         * modules/stat-tests (Depends-on): Likewise.
13838         * tests/test-fstatat.c (includes): Drop pathmax.h.
13839         * tests/test-stat.c (includes): Likewise.
13840         Reported by Bruno Haible.
13841
13842 2011-06-20  Bruno Haible  <bruno@clisp.org>
13843
13844         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13845         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13846         * lib/float.c: New file.
13847         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13848         REPLACE_FLOAT_LDBL.
13849         * modules/float (Files): Add lib/float.c.
13850         (configure.ac): Invoke AC_LIBOBJ.
13851         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13852
13853 2011-06-20  Bruno Haible  <bruno@clisp.org>
13854
13855         Tests for module 'float'.
13856         * modules/float-tests: New file.
13857         * tests/test-float.c: New file.
13858
13859 2011-06-19  Bruno Haible  <bruno@clisp.org>
13860
13861         isinf: Coding style.
13862         * lib/isinf.c: Use GNU coding style.
13863
13864 2011-06-19  Bruno Haible  <bruno@clisp.org>
13865
13866         linkat test: Avoid test failure on AIX 7.1.
13867         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13868         * tests/test-link.h (test_link): Likewise.
13869
13870 2011-06-19  Bruno Haible  <bruno@clisp.org>
13871
13872         pread test: Avoid test failure on OpenBSD 4.9.
13873         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13874
13875 2011-06-19  Bruno Haible  <bruno@clisp.org>
13876
13877         sprintf-posix: Fix test failure on AIX 7.1.
13878         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13879         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13880         on AIX.
13881         * doc/posix-functions/fprintf.texi: Likewise.
13882         * doc/posix-functions/printf.texi: Likewise.
13883         * doc/posix-functions/snprintf.texi: Likewise.
13884         * doc/posix-functions/sprintf.texi: Likewise.
13885         * doc/posix-functions/vdprintf.texi: Likewise.
13886         * doc/posix-functions/vfprintf.texi: Likewise.
13887         * doc/posix-functions/vprintf.texi: Likewise.
13888         * doc/posix-functions/vsnprintf.texi: Likewise.
13889         * doc/posix-functions/vsprintf.texi: Likewise.
13890
13891 2011-06-19  Bruno Haible  <bruno@clisp.org>
13892
13893         roundl-ieee: Fix test failure on AIX 7.1.
13894         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13895         * doc/posix-functions/roundl.texi: Mention problem with negative
13896         arguments.
13897
13898 2011-06-19  Bruno Haible  <bruno@clisp.org>
13899
13900         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13901         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13902         * doc/posix-functions/round.texi: Mention problem with negative
13903         arguments.
13904         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13905
13906 2011-06-19  Bruno Haible  <bruno@clisp.org>
13907
13908         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13909         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13910         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13911         * doc/posix-functions/roundf.texi: Mention problem with negative
13912         arguments.
13913         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13914
13915 2011-06-19  Bruno Haible  <bruno@clisp.org>
13916
13917         ceilf-ieee: Work around bug on MacOS X 10.5.
13918         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13919
13920         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13921         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13922         IEEE compliant, avoid compiler optimizations.
13923         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13924         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13925         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13926         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13927         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13928         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13929         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13930         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13931         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13933
13934 2011-06-19  Bruno Haible  <bruno@clisp.org>
13935
13936         ceilf-ieee: Work around bug on AIX 7.1.
13937         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13938         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13939
13940 2011-06-19  Bruno Haible  <bruno@clisp.org>
13941
13942         ceil-ieee: Work around bug on AIX 7.1.
13943         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13944         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13945
13946 2011-06-18  Bruno Haible  <bruno@clisp.org>
13947
13948         fsync test: Avoid test failure on MacOS X and AIX.
13949         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13950         EINVAL.
13951
13952 2011-06-18  Bruno Haible  <bruno@clisp.org>
13953
13954         openat, fdopendir tests: Fix link errors.
13955         * modules/openat-tests (Depends-on): Add progname.
13956         * modules/fdopendir-tests (Depends-on): Likewise.
13957         * tests/test-fchownat.c: Include progname.h.
13958         (main): Call set_program_name.
13959         * tests/test-fstatat.c: Include progname.h.
13960         (main): Call set_program_name.
13961         * tests/test-mkdirat.c: Include progname.h.
13962         (main): Call set_program_name.
13963         * tests/test-openat.c: Include progname.h.
13964         (main): Call set_program_name.
13965         * tests/test-unlinkat.c: Include progname.h.
13966         (main): Call set_program_name.
13967         * tests/test-fdopendir.c: Include progname.h.
13968         (main): Call set_program_name.
13969
13970 2011-06-18  Bruno Haible  <bruno@clisp.org>
13971
13972         Doc update.
13973         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13974         HP-UX.
13975         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13976
13977 2011-06-18  Bruno Haible  <bruno@clisp.org>
13978
13979         getcwd tests: Avoid compilation error on HP-UX 11.31.
13980         * modules/getcwd-tests (Depends-on): Add pathmax.
13981         * tests/test-getcwd.c: Include pathmax.h.
13982
13983 2011-06-18  Bruno Haible  <bruno@clisp.org>
13984
13985         isfinite, isinf: Fix link error on AIX 6 and 7.
13986         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13987         needed, also test the macro with a 'float' argument.
13988         * m4/isinf.m4 (gl_ISINF): Likewise.
13989
13990 2011-06-18  Bruno Haible  <bruno@clisp.org>
13991
13992         getloadavg: Don't clobber LIBS. Regression from previous commit.
13993         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13994         AC_CHECK_LIB from here...
13995         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13996         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13997         gl_func_getloadavg_done.
13998         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13999
14000 2011-06-18  Bruno Haible  <bruno@clisp.org>
14001
14002         clean-temp: Improve documentation.
14003         * lib/clean-temp.h: Explain better how to use this module.
14004         Reported by John Darrington <john@darrington.wattle.id.au>.
14005
14006 2011-06-17  Bruno Haible  <bruno@clisp.org>
14007
14008         pread, pwrite: Avoid cc warning on AIX.
14009         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14010         (pwrite): Likewise.
14011
14012 2011-06-17  Bruno Haible  <bruno@clisp.org>
14013
14014         spawn-pipe tests: Fix link error.
14015         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14016         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14017
14018 2011-06-17  Bruno Haible  <bruno@clisp.org>
14019
14020         Tests: Remove unnecessary dependency.
14021         * modules/canonicalize-tests (Depends-on): Remove progname.
14022         * modules/chown-tests (Depends-on): Likewise.
14023         * modules/dirname-tests (Depends-on): Likewise.
14024         * modules/fdopendir-tests (Depends-on): Likewise.
14025         * modules/fdutimensat-tests (Depends-on): Likewise.
14026         * modules/hash-tests (Depends-on): Likewise.
14027         * modules/lchown-tests (Depends-on): Likewise.
14028         * modules/linkat-tests (Depends-on): Likewise.
14029         * modules/renameat-tests (Depends-on): Likewise.
14030         * modules/spawn-pipe-tests (Depends-on): Likewise.
14031         * modules/utimensat-tests (Depends-on): Likewise.
14032
14033 2011-06-17  Bruno Haible  <bruno@clisp.org>
14034
14035         spawn-pipe tests: Fix link error.
14036         * tests/test-spawn-pipe-child.c: Undefine fflush.
14037
14038 2011-06-17  Bruno Haible  <bruno@clisp.org>
14039
14040         Fix tests link errors.
14041         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14042         * modules/chown-tests (Makefile.am): Don't link test-chown with
14043         LIBINTL.
14044         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14045         LIBINTL.
14046         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14047         LIBINTL.
14048         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14049         LIBINTL.
14050
14051 2011-06-16  Bruno Haible  <bruno@clisp.org>
14052
14053         crypto/gc-sha1: Fix recent regression.
14054         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14055         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14056
14057         crypto/gc-md5: Fix recent regression.
14058         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14059
14060         crypto/gc-md4: Fix recent regression.
14061         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14062         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14063
14064         crypto/gc-arctwo: Fix recent regression.
14065         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14066         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14067
14068         crypto/gc-rijndael: Fix recent regression.
14069         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14070         (configure.ac): Invoke AC_LIBOBJ here.
14071         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14073
14074         crypto/gc-hmac-sha1: Fix recent regression.
14075         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14076         (configure.ac): Invoke AC_LIBOBJ here.
14077         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14079
14080         crypto/gc-hmac-md5: Fix recent regression.
14081         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14082         (configure.ac): Invoke AC_LIBOBJ here.
14083         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14085
14086         crypto/gc-des: Fix recent regression.
14087         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14088         (configure.ac): Invoke AC_LIBOBJ here.
14089         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14090         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14091
14092         crypto/gc-arcfour: Fix recent regression.
14093         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14094         (configure.ac): Invoke AC_LIBOBJ here.
14095         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14097
14098 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14099
14100         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14101         After the 2011-05-21 change, this macro requires
14102         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14103         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14104
14105 2011-06-16  Bruno Haible  <bruno@clisp.org>
14106
14107         fprintftime: Move AC_LIBOBJ invocations to module description.
14108         * m4/fprintftime.m4: Remove file.
14109         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14110         (configure.ac): Remove gl_FPRINTFTIME call.
14111         (Makefile.am): Augment lib_SOURCES.
14112         Reported by Jim Meyering.
14113
14114 2011-06-16  Bruno Haible  <bruno@clisp.org>
14115
14116         tmpfile-safer: Finish 2011-05-23 commit.
14117         * m4/stdio-safer.m4: Really remove file.
14118         Reported by Jim Meyering.
14119
14120 2011-06-16  Bruno Haible  <bruno@clisp.org>
14121
14122         syntax-check: Fix typo.
14123         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14124         printf-posix.m4.
14125         Reported by Jim Meyering.
14126
14127 2011-06-13  Jim Meyering  <meyering@redhat.com>
14128
14129         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14130         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14131
14132 2011-05-23  Bruno Haible  <bruno@clisp.org>
14133
14134         yesno: Move AC_LIBOBJ invocations to module description.
14135         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14136         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14137
14138 2011-05-23  Bruno Haible  <bruno@clisp.org>
14139
14140         xstrtol: Move AC_LIBOBJ invocations to module description.
14141         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14142         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14143
14144 2011-05-23  Bruno Haible  <bruno@clisp.org>
14145
14146         xstrtold: Move AC_LIBOBJ invocations to module description.
14147         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14148         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14149
14150 2011-05-23  Bruno Haible  <bruno@clisp.org>
14151
14152         xstrtod: Move AC_LIBOBJ invocations to module description.
14153         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14154         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14155
14156 2011-05-23  Bruno Haible  <bruno@clisp.org>
14157
14158         xnanosleep: Move AC_LIBOBJ invocations to module description.
14159         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14160         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14161
14162 2011-05-23  Bruno Haible  <bruno@clisp.org>
14163
14164         xgetcwd: Move AC_LIBOBJ invocations to module description.
14165         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14166         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14167
14168 2011-05-23  Bruno Haible  <bruno@clisp.org>
14169
14170         xalloc: Move AC_LIBOBJ invocations to module description.
14171         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14172         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14173
14174 2011-05-23  Bruno Haible  <bruno@clisp.org>
14175
14176         write-any-file: Move AC_LIBOBJ invocations to module description.
14177         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14178         invocation.
14179         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14180
14181 2011-05-23  Bruno Haible  <bruno@clisp.org>
14182
14183         utimens: Move AC_LIBOBJ invocations to module description.
14184         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14185         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14186
14187 2011-05-23  Bruno Haible  <bruno@clisp.org>
14188
14189         utimecmp: Move AC_LIBOBJ invocations to module description.
14190         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14191         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14192
14193 2011-05-23  Bruno Haible  <bruno@clisp.org>
14194
14195         userspec: Move AC_LIBOBJ invocations to module description.
14196         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14197         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14198
14199 2011-05-23  Bruno Haible  <bruno@clisp.org>
14200
14201         unlinkdir: Move AC_LIBOBJ invocations to module description.
14202         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14203         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14204
14205 2011-05-23  Bruno Haible  <bruno@clisp.org>
14206
14207         unistd-safer: Move AC_LIBOBJ invocations to module description.
14208         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14209         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14210
14211 2011-05-23  Bruno Haible  <bruno@clisp.org>
14212
14213         tempname: Move AC_LIBOBJ invocations to module description.
14214         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14215         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14216
14217 2011-05-23  Bruno Haible  <bruno@clisp.org>
14218
14219         strftime: Move AC_LIBOBJ invocations to module description.
14220         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14221         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14222
14223 2011-05-23  Bruno Haible  <bruno@clisp.org>
14224
14225         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14226         * m4/stdlib-safer.m4: Remove file.
14227         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14228         (configure.ac): Remove gl_STDLIB_SAFER call.
14229         (Makefile.am): Augment lib_SOURCES.
14230
14231 2011-05-23  Bruno Haible  <bruno@clisp.org>
14232
14233         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14234         * m4/stdio-safer.m4: Remove file.
14235         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14236         (configure.ac): Remove gl_TMPFILE_SAFER call.
14237         (Makefile.am): Augment lib_SOURCES.
14238
14239 2011-05-23  Bruno Haible  <bruno@clisp.org>
14240
14241         popen-safer: Move AC_LIBOBJ invocations to module description.
14242         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14243         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14244         (configure.ac): Remove gl_POPEN_SAFER call.
14245         (Makefile.am): Augment lib_SOURCES.
14246
14247 2011-05-23  Bruno Haible  <bruno@clisp.org>
14248
14249         freopen-safer: Move AC_LIBOBJ invocations to module description.
14250         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14251         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14252         (configure.ac): Remove gl_FREOPEN_SAFER call.
14253         (Makefile.am): Augment lib_SOURCES.
14254
14255 2011-05-23  Bruno Haible  <bruno@clisp.org>
14256
14257         fopen-safer: Move AC_LIBOBJ invocations to module description.
14258         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14259         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14260         (configure.ac): Remove gl_FOPEN_SAFER call.
14261         (Makefile.am): Augment lib_SOURCES.
14262
14263 2011-05-23  Bruno Haible  <bruno@clisp.org>
14264
14265         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14266         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14267         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14268
14269 2011-05-23  Bruno Haible  <bruno@clisp.org>
14270
14271         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14272         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14273         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14274
14275 2011-05-23  Bruno Haible  <bruno@clisp.org>
14276
14277         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14278         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14279         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14280
14281 2011-05-23  Bruno Haible  <bruno@clisp.org>
14282
14283         settime: Move AC_LIBOBJ invocations to module description.
14284         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14285         * modules/settime (Makefile.am): Augment lib_SOURCES.
14286
14287 2011-05-23  Bruno Haible  <bruno@clisp.org>
14288
14289         savedir: Move AC_LIBOBJ invocations to module description.
14290         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14291         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14292
14293 2011-05-23  Bruno Haible  <bruno@clisp.org>
14294
14295         save-cwd: Move AC_LIBOBJ invocations to module description.
14296         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14297         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14298
14299 2011-05-23  Bruno Haible  <bruno@clisp.org>
14300
14301         same: Move AC_LIBOBJ invocations to module description.
14302         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14303         * modules/same (Makefile.am): Augment lib_SOURCES.
14304
14305 2011-05-23  Bruno Haible  <bruno@clisp.org>
14306
14307         safe-write: Move AC_LIBOBJ invocations to module description.
14308         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14309         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14310         instead of gl_SAFE_WRITE.
14311         (Makefile.am): Augment lib_SOURCES.
14312
14313 2011-05-23  Bruno Haible  <bruno@clisp.org>
14314
14315         safe-read: Move AC_LIBOBJ invocations to module description.
14316         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14317         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14318         of gl_SAFE_READ.
14319         (Makefile.am): Augment lib_SOURCES.
14320
14321 2011-05-23  Bruno Haible  <bruno@clisp.org>
14322
14323         safe-alloc: Move AC_LIBOBJ invocations to module description.
14324         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14325         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14326
14327 2011-05-23  Bruno Haible  <bruno@clisp.org>
14328
14329         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14330         * m4/rijndael.m4: Remove file.
14331         * modules/crypto/rijndael (Files): Remove it.
14332         (configure.ac): Remove gl_RIJNDAEL call.
14333         (Makefile.am): Augment lib_SOURCES.
14334
14335 2011-05-23  Bruno Haible  <bruno@clisp.org>
14336
14337         readtokens: Move AC_LIBOBJ invocations to module description.
14338         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14339         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14340
14341 2011-05-23  Bruno Haible  <bruno@clisp.org>
14342
14343         read-file: Move AC_LIBOBJ invocations to module description.
14344         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14345         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14346         of gl_FUNC_READ_FILE.
14347         (Makefile.am): Augment lib_SOURCES.
14348
14349 2011-05-23  Bruno Haible  <bruno@clisp.org>
14350
14351         quotearg: Move AC_LIBOBJ invocations to module description.
14352         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14353         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14354
14355 2011-05-23  Bruno Haible  <bruno@clisp.org>
14356
14357         quote: Move AC_LIBOBJ invocations to module description.
14358         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14359         * modules/quote (Makefile.am): Augment lib_SOURCES.
14360
14361 2011-05-23  Bruno Haible  <bruno@clisp.org>
14362
14363         posixver: Move AC_LIBOBJ invocations to module description.
14364         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14365         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14366
14367 2011-05-23  Bruno Haible  <bruno@clisp.org>
14368
14369         posixtm: Move AC_LIBOBJ invocations to module description.
14370         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14371         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14372
14373 2011-05-23  Bruno Haible  <bruno@clisp.org>
14374
14375         physmem: Move AC_LIBOBJ invocations to module description.
14376         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14377         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14378
14379 2011-05-23  Bruno Haible  <bruno@clisp.org>
14380
14381         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14382         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14383         invocation.
14384         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14385
14386 2011-05-23  Bruno Haible  <bruno@clisp.org>
14387
14388         mpsort: Move AC_LIBOBJ invocations to module description.
14389         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14390         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14391
14392 2011-05-23  Bruno Haible  <bruno@clisp.org>
14393
14394         modechange: Move AC_LIBOBJ invocations to module description.
14395         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14396         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14397
14398 2011-05-23  Bruno Haible  <bruno@clisp.org>
14399
14400         mkdir-p: Move AC_LIBOBJ invocations to module description.
14401         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14402         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14403
14404 2011-05-23  Bruno Haible  <bruno@clisp.org>
14405
14406         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14407         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14408         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14409
14410 2011-05-23  Bruno Haible  <bruno@clisp.org>
14411
14412         mgetgroups: Move AC_LIBOBJ invocations to module description.
14413         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14414         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14415
14416 2011-05-23  Bruno Haible  <bruno@clisp.org>
14417
14418         memxor: Move AC_LIBOBJ invocations to module description.
14419         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14420         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14421
14422 2011-05-23  Bruno Haible  <bruno@clisp.org>
14423
14424         memcoll: Move AC_LIBOBJ invocations to module description.
14425         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14426         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14427
14428 2011-05-23  Bruno Haible  <bruno@clisp.org>
14429
14430         memcasecmp: Move AC_LIBOBJ invocations to module description.
14431         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14432         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14433
14434 2011-05-23  Bruno Haible  <bruno@clisp.org>
14435
14436         crypto/md5: Move AC_LIBOBJ invocations to module description.
14437         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14438         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14439
14440 2011-05-23  Bruno Haible  <bruno@clisp.org>
14441
14442         crypto/md4: Move AC_LIBOBJ invocations to module description.
14443         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14444         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14445
14446 2011-05-23  Bruno Haible  <bruno@clisp.org>
14447
14448         crypto/md2: Move AC_LIBOBJ invocations to module description.
14449         * m4/md2.m4: Remove file.
14450         * modules/crypto/md2 (Files): Remove it.
14451         (configure.ac): Remove gl_MD2 call.
14452         (Makefile.am): Augment lib_SOURCES.
14453
14454 2011-05-23  Bruno Haible  <bruno@clisp.org>
14455
14456         long-options: Move AC_LIBOBJ invocations to module description.
14457         * m4/long-options.m4: Remove file.
14458         * modules/long-options (Files): Remove it.
14459         (configure.ac): Remove gl_LONG_OPTIONS call.
14460         (Makefile.am): Augment lib_SOURCES.
14461
14462 2011-05-23  Bruno Haible  <bruno@clisp.org>
14463
14464         i-ring: Move AC_LIBOBJ invocations to module description.
14465         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14466         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14467
14468 2011-05-23  Bruno Haible  <bruno@clisp.org>
14469
14470         idcache: Move AC_LIBOBJ invocations to module description.
14471         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14472         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14473
14474 2011-05-23  Bruno Haible  <bruno@clisp.org>
14475
14476         human: Move AC_LIBOBJ invocations to module description.
14477         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14478         * modules/human (Makefile.am): Augment lib_SOURCES.
14479
14480 2011-05-23  Bruno Haible  <bruno@clisp.org>
14481
14482         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14483         * m4/hmac-sha1.m4: Remove file.
14484         * modules/crypto/hmac-sha1 (Files): Remove it.
14485         (configure.ac): Remove gl_HMAC_SHA1 call.
14486         (Makefile.am): Augment lib_SOURCES.
14487
14488 2011-05-23  Bruno Haible  <bruno@clisp.org>
14489
14490         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14491         * m4/hmac-md5.m4: Remove file.
14492         * modules/crypto/hmac-md5 (Files): Remove it.
14493         (configure.ac): Remove gl_HMAC_MD5 call.
14494         (Makefile.am): Augment lib_SOURCES.
14495
14496 2011-05-23  Bruno Haible  <bruno@clisp.org>
14497
14498         hash: Move AC_LIBOBJ invocations to module description.
14499         * m4/hash.m4: Remove file.
14500         * modules/hash (Files): Remove it.
14501         (configure.ac): Remove gl_HASH call.
14502         (Makefile.am): Augment lib_SOURCES.
14503
14504 2011-05-23  Bruno Haible  <bruno@clisp.org>
14505
14506         hard-locale: Move AC_LIBOBJ invocations to module description.
14507         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14508         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14509
14510 2011-05-23  Bruno Haible  <bruno@clisp.org>
14511
14512         getugroups: Move AC_LIBOBJ invocations to module description.
14513         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14514         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14515
14516 2011-05-23  Bruno Haible  <bruno@clisp.org>
14517
14518         gettime: Move AC_LIBOBJ invocations to module description.
14519         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14520         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14521
14522 2011-05-23  Bruno Haible  <bruno@clisp.org>
14523
14524         getndelim2: Move AC_LIBOBJ invocations to module description.
14525         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14526         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14527
14528 2011-05-23  Bruno Haible  <bruno@clisp.org>
14529
14530         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14531         * m4/gc-pbkdf2-sha1.m4: Remove file.
14532         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14533         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14534         (Makefile.am): Augment lib_SOURCES.
14535
14536 2011-05-23  Bruno Haible  <bruno@clisp.org>
14537
14538         fts: Move AC_LIBOBJ invocations to module description.
14539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14540         * modules/fts (configure.ac): ... to here.
14541
14542 2011-05-23  Bruno Haible  <bruno@clisp.org>
14543
14544         file-type: Move AC_LIBOBJ invocations to module description.
14545         * m4/file-type.m4: Remove file.
14546         * modules/file-type (Files): Remove it.
14547         (configure.ac): Remove gl_FILE_TYPE call.
14548         (Makefile.am): Augment lib_SOURCES.
14549
14550 2011-05-23  Bruno Haible  <bruno@clisp.org>
14551
14552         filenamecat*: Respect rules for use of AC_LIBOBJ.
14553         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14554         Remove AC_LIBOBJ invocation.
14555         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14556         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14557
14558 2011-05-23  Bruno Haible  <bruno@clisp.org>
14559
14560         filemode: Move AC_LIBOBJ invocations to module description.
14561         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14562         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14563
14564 2011-05-23  Bruno Haible  <bruno@clisp.org>
14565
14566         openat-safer: Move AC_LIBOBJ invocations to module description.
14567         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14568         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14569
14570 2011-05-23  Bruno Haible  <bruno@clisp.org>
14571
14572         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14573         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14574         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14575
14576 2011-05-23  Bruno Haible  <bruno@clisp.org>
14577
14578         exclude: Move AC_LIBOBJ invocations to module description.
14579         * m4/exclude.m4: Remove file.
14580         * modules/exclude (Files): Remove it.
14581         (configure.ac): Remove gl_EXCLUDE call.
14582         (Makefile.am): Augment lib_SOURCES.
14583
14584 2011-05-23  Bruno Haible  <bruno@clisp.org>
14585
14586         dirname*: Respect rules for use of AC_LIBOBJ.
14587         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14588         invocations.
14589         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14590         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14591
14592 2011-05-23  Bruno Haible  <bruno@clisp.org>
14593
14594         dirent-safer: Move AC_LIBOBJ invocations to module description.
14595         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14596         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14597
14598 2011-05-23  Bruno Haible  <bruno@clisp.org>
14599
14600         crypto/des: Move AC_LIBOBJ invocations to module description.
14601         * m4/des.m4: Remove file.
14602         * modules/crypto/des (Files): Remove it.
14603         (configure.ac): Remove gl_DES call.
14604         (Makefile.am): Augment lib_SOURCES.
14605
14606 2011-05-23  Bruno Haible  <bruno@clisp.org>
14607
14608         cycle-check: Move AC_LIBOBJ invocations to module description.
14609         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14610         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14611
14612 2011-05-23  Bruno Haible  <bruno@clisp.org>
14613
14614         c-strtold: Move AC_LIBOBJ invocations to module description.
14615         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14616         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14617
14618 2011-05-23  Bruno Haible  <bruno@clisp.org>
14619
14620         c-strtod: Move AC_LIBOBJ invocations to module description.
14621         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14622         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14623
14624 2011-05-23  Bruno Haible  <bruno@clisp.org>
14625
14626         crc: Move AC_LIBOBJ invocations to module description.
14627         * m4/crc.m4: Remove file.
14628         * modules/crc (Files): Remove it.
14629         (configure.ac): Remove gl_CRC call.
14630         (Makefile.am): Augment lib_SOURCES.
14631
14632 2011-05-23  Bruno Haible  <bruno@clisp.org>
14633
14634         close-stream: Move AC_LIBOBJ invocations to module description.
14635         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14636         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14637
14638 2011-05-23  Bruno Haible  <bruno@clisp.org>
14639
14640         closeout: Move AC_LIBOBJ invocations to module description.
14641         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14642         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14643
14644 2011-05-23  Bruno Haible  <bruno@clisp.org>
14645
14646         closein: Move AC_LIBOBJ invocations to module description.
14647         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14648         * modules/closein (Makefile.am): Augment lib_SOURCES.
14649
14650 2011-05-23  Bruno Haible  <bruno@clisp.org>
14651
14652         cloexec: Move AC_LIBOBJ invocations to module description.
14653         * m4/cloexec.m4: Remove file.
14654         * modules/cloexec (Files): Remove it.
14655         (configure.ac): Remove gl_CLOEXEC call.
14656         (Makefile.am): Augment lib_SOURCES.
14657
14658 2011-05-23  Bruno Haible  <bruno@clisp.org>
14659
14660         check-version: Move AC_LIBOBJ invocations to module description.
14661         * m4/check-version.m4: Remove file.
14662         * modules/check-version (Files): Remove it.
14663         (configure.ac): Remove gl_CHECK_VERSION call.
14664         (Makefile.am): Augment lib_SOURCES.
14665
14666 2011-05-23  Bruno Haible  <bruno@clisp.org>
14667
14668         chdir-safer: Move AC_LIBOBJ invocations to module description.
14669         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14670         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14671
14672 2011-05-23  Bruno Haible  <bruno@clisp.org>
14673
14674         canonicalize: Move AC_LIBOBJ invocations to module description.
14675         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14676         AC_LIBOBJ invocation.
14677         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14678
14679 2011-05-23  Bruno Haible  <bruno@clisp.org>
14680
14681         canon-host: Move AC_LIBOBJ invocations to module description.
14682         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14683         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14684         instead of gl_CANON_HOST.
14685         (Makefile.am): Augment lib_SOURCES.
14686
14687 2011-05-23  Bruno Haible  <bruno@clisp.org>
14688
14689         backupfile: Move AC_LIBOBJ invocations to module description.
14690         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14691         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14692
14693 2011-05-23  Bruno Haible  <bruno@clisp.org>
14694
14695         argmatch: Move AC_LIBOBJ invocations to module description.
14696         * m4/argmatch.m4: Remove file.
14697         * modules/argmatch (Files): Remove it.
14698         (configure.ac): Remove gl_ARGMATCH call.
14699         (Makefile.am): Augment lib_SOURCES.
14700
14701 2011-05-23  Bruno Haible  <bruno@clisp.org>
14702
14703         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14704         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14705         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14706
14707 2011-05-23  Bruno Haible  <bruno@clisp.org>
14708
14709         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14710         * m4/arcfour.m4: Remove file.
14711         * modules/crypto/arcfour (Files): Remove it.
14712         (configure.ac): Remove gl_ARCFOUR call.
14713         (Makefile.am): Augment lib_SOURCES.
14714
14715 2011-05-22  Bruno Haible  <bruno@clisp.org>
14716
14717         write: Move AC_LIBOBJ invocations to module description.
14718         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14719         * modules/write (configure.ac): ... to here.
14720
14721 2011-05-22  Bruno Haible  <bruno@clisp.org>
14722
14723         wmemset: Move AC_LIBOBJ invocations to module description.
14724         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14725         here...
14726         * modules/wmemset (configure.ac): ... to here.
14727
14728 2011-05-22  Bruno Haible  <bruno@clisp.org>
14729
14730         wmemmove: Move AC_LIBOBJ invocations to module description.
14731         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14732         here...
14733         * modules/wmemmove (configure.ac): ... to here.
14734
14735 2011-05-22  Bruno Haible  <bruno@clisp.org>
14736
14737         wmemcpy: Move AC_LIBOBJ invocations to module description.
14738         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14739         here...
14740         * modules/wmemcpy (configure.ac): ... to here.
14741
14742 2011-05-22  Bruno Haible  <bruno@clisp.org>
14743
14744         wmemcmp: Move AC_LIBOBJ invocations to module description.
14745         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14746         here...
14747         * modules/wmemcmp (configure.ac): ... to here.
14748
14749 2011-05-22  Bruno Haible  <bruno@clisp.org>
14750
14751         wmemchr: Move AC_LIBOBJ invocations to module description.
14752         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14753         here...
14754         * modules/wmemchr (configure.ac): ... to here.
14755
14756 2011-05-22  Bruno Haible  <bruno@clisp.org>
14757
14758         wcswidth: Move AC_LIBOBJ invocations to module description.
14759         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14760         here...
14761         * modules/wcswidth (configure.ac): ... to here.
14762
14763 2011-05-22  Bruno Haible  <bruno@clisp.org>
14764
14765         wcwidth: Respect rules for use of AC_LIBOBJ.
14766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14767         invocation from here...
14768         * modules/wcwidth (configure.ac): ... to here.
14769         (Depends-on): Update conditions.
14770
14771 2011-05-22  Bruno Haible  <bruno@clisp.org>
14772
14773         wctype: Move AC_LIBOBJ invocations to module description.
14774         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14775         invocation from here...
14776         * modules/wctype (configure.ac): ... to here.
14777         (Depends-on): Update conditions.
14778
14779 2011-05-22  Bruno Haible  <bruno@clisp.org>
14780
14781         wctrans: Move AC_LIBOBJ invocations to module description.
14782         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14783         invocation from here...
14784         * modules/wctrans (configure.ac): ... to here.
14785
14786 2011-05-22  Bruno Haible  <bruno@clisp.org>
14787
14788         wctomb: Move AC_LIBOBJ invocations to module description.
14789         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14790         invocations from here...
14791         * modules/wctomb (configure.ac): ... to here.
14792
14793 2011-05-22  Bruno Haible  <bruno@clisp.org>
14794
14795         wctob: Move AC_LIBOBJ invocations to module description.
14796         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14797         gl_PREREQ_WCTOB invocations from here...
14798         * modules/wctob (configure.ac): ... to here.
14799         (Depends-on): Update conditions.
14800
14801 2011-05-22  Bruno Haible  <bruno@clisp.org>
14802
14803         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14804         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14805         here...
14806         * modules/wcsxfrm (configure.ac): ... to here.
14807
14808 2011-05-22  Bruno Haible  <bruno@clisp.org>
14809
14810         wcstok: Move AC_LIBOBJ invocations to module description.
14811         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14812         * modules/wcstok (configure.ac): ... to here.
14813
14814 2011-05-22  Bruno Haible  <bruno@clisp.org>
14815
14816         wcsstr: Move AC_LIBOBJ invocations to module description.
14817         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14818         * modules/wcsstr (configure.ac): ... to here.
14819
14820 2011-05-22  Bruno Haible  <bruno@clisp.org>
14821
14822         wcsspn: Move AC_LIBOBJ invocations to module description.
14823         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14824         * modules/wcsspn (configure.ac): ... to here.
14825
14826 2011-05-22  Bruno Haible  <bruno@clisp.org>
14827
14828         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14829         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14830         gl_PREREQ_WCSRTOMBS invocations from here...
14831         * modules/wcsrtombs (configure.ac): ... to here.
14832
14833 2011-05-22  Bruno Haible  <bruno@clisp.org>
14834
14835         wcsrchr: Move AC_LIBOBJ invocations to module description.
14836         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14837         here...
14838         * modules/wcsrchr (configure.ac): ... to here.
14839
14840 2011-05-22  Bruno Haible  <bruno@clisp.org>
14841
14842         wcspbrk: Move AC_LIBOBJ invocations to module description.
14843         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14844         here...
14845         * modules/wcspbrk (configure.ac): ... to here.
14846
14847 2011-05-22  Bruno Haible  <bruno@clisp.org>
14848
14849         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14850         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14851         gl_PREREQ_WCSNRTOMBS invocations from here...
14852         * modules/wcsnrtombs (configure.ac): ... to here.
14853
14854 2011-05-22  Bruno Haible  <bruno@clisp.org>
14855
14856         wcsnlen: Move AC_LIBOBJ invocations to module description.
14857         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14858         here...
14859         * modules/wcsnlen (configure.ac): ... to here.
14860
14861 2011-05-22  Bruno Haible  <bruno@clisp.org>
14862
14863         wcsncpy: Move AC_LIBOBJ invocations to module description.
14864         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14865         here...
14866         * modules/wcsncpy (configure.ac): ... to here.
14867
14868 2011-05-22  Bruno Haible  <bruno@clisp.org>
14869
14870         wcsncmp: Move AC_LIBOBJ invocations to module description.
14871         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14872         here...
14873         * modules/wcsncmp (configure.ac): ... to here.
14874
14875 2011-05-22  Bruno Haible  <bruno@clisp.org>
14876
14877         wcsncat: Move AC_LIBOBJ invocations to module description.
14878         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14879         here...
14880         * modules/wcsncat (configure.ac): ... to here.
14881
14882 2011-05-22  Bruno Haible  <bruno@clisp.org>
14883
14884         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14885         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14886         from here...
14887         * modules/wcsncasecmp (configure.ac): ... to here.
14888
14889 2011-05-22  Bruno Haible  <bruno@clisp.org>
14890
14891         wcslen: Move AC_LIBOBJ invocations to module description.
14892         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14893         * modules/wcslen (configure.ac): ... to here.
14894
14895 2011-05-22  Bruno Haible  <bruno@clisp.org>
14896
14897         wcsdup: Move AC_LIBOBJ invocations to module description.
14898         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14899         * modules/wcsdup (configure.ac): ... to here.
14900
14901 2011-05-22  Bruno Haible  <bruno@clisp.org>
14902
14903         wcscspn: Move AC_LIBOBJ invocations to module description.
14904         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14905         here...
14906         * modules/wcscspn (configure.ac): ... to here.
14907
14908 2011-05-22  Bruno Haible  <bruno@clisp.org>
14909
14910         wcscpy: Move AC_LIBOBJ invocations to module description.
14911         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14912         * modules/wcscpy (configure.ac): ... to here.
14913
14914 2011-05-22  Bruno Haible  <bruno@clisp.org>
14915
14916         wcscoll: Move AC_LIBOBJ invocations to module description.
14917         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14918         here...
14919         * modules/wcscoll (configure.ac): ... to here.
14920
14921 2011-05-22  Bruno Haible  <bruno@clisp.org>
14922
14923         wcscmp: Move AC_LIBOBJ invocations to module description.
14924         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14925         * modules/wcscmp (configure.ac): ... to here.
14926
14927 2011-05-22  Bruno Haible  <bruno@clisp.org>
14928
14929         wcschr: Move AC_LIBOBJ invocations to module description.
14930         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14931         * modules/wcschr (configure.ac): ... to here.
14932
14933 2011-05-22  Bruno Haible  <bruno@clisp.org>
14934
14935         wcscat: Move AC_LIBOBJ invocations to module description.
14936         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14937         * modules/wcscat (configure.ac): ... to here.
14938
14939 2011-05-22  Bruno Haible  <bruno@clisp.org>
14940
14941         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14942         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14943         here...
14944         * modules/wcscasecmp (configure.ac): ... to here.
14945
14946 2011-05-22  Bruno Haible  <bruno@clisp.org>
14947
14948         wcrtomb: Move AC_LIBOBJ invocations to module description.
14949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14950         invocations from here...
14951         * modules/wcrtomb (configure.ac): ... to here.
14952
14953 2011-05-22  Bruno Haible  <bruno@clisp.org>
14954
14955         wcpncpy: Move AC_LIBOBJ invocations to module description.
14956         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14957         here...
14958         * modules/wcpncpy (configure.ac): ... to here.
14959
14960 2011-05-22  Bruno Haible  <bruno@clisp.org>
14961
14962         wcpcpy: Move AC_LIBOBJ invocations to module description.
14963         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14964         * modules/wcpcpy (configure.ac): ... to here.
14965
14966 2011-05-22  Bruno Haible  <bruno@clisp.org>
14967
14968         waitpid: Move AC_LIBOBJ invocations to module description.
14969         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14970         invocation from here...
14971         * modules/waitpid (configure.ac): ... to here.
14972
14973 2011-05-22  Bruno Haible  <bruno@clisp.org>
14974
14975         utimensat: Move AC_LIBOBJ invocations to module description.
14976         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14977         here...
14978         * modules/utimensat (configure.ac): ... to here.
14979
14980 2011-05-22  Bruno Haible  <bruno@clisp.org>
14981
14982         usleep: Move AC_LIBOBJ invocations to module description.
14983         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14984         here...
14985         * modules/usleep (configure.ac): ... to here.
14986
14987 2011-05-22  Bruno Haible  <bruno@clisp.org>
14988
14989         unlockpt: Move AC_LIBOBJ invocations to module description.
14990         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14991         gl_PREREQ_UNLOCKPT invocations from here...
14992         * modules/unlockpt (configure.ac): ... to here.
14993
14994 2011-05-22  Bruno Haible  <bruno@clisp.org>
14995
14996         unlink: Respect rules for use of AC_LIBOBJ.
14997         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14998         * modules/unlink (configure.ac): ... to here.
14999
15000 2011-05-22  Bruno Haible  <bruno@clisp.org>
15001
15002         uname: Move AC_LIBOBJ invocations to module description.
15003         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15004         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15005         here...
15006         * modules/uname (configure.ac): ... to here.
15007
15008 2011-05-22  Bruno Haible  <bruno@clisp.org>
15009
15010         ttyname_r: Move AC_LIBOBJ invocations to module description.
15011         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15012         gl_PREREQ_TTYNAME_R invocations from here...
15013         * modules/ttyname_r (configure.ac): ... to here.
15014
15015 2011-05-22  Bruno Haible  <bruno@clisp.org>
15016
15017         tsearch: Move AC_LIBOBJ invocations to module description.
15018         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15019         invocations from here...
15020         * modules/tsearch (configure.ac): ... to here.
15021
15022 2011-05-22  Bruno Haible  <bruno@clisp.org>
15023
15024         towctrans: Move AC_LIBOBJ invocations to module description.
15025         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15026         AC_LIBOBJ invocation from here...
15027         * modules/towctrans (configure.ac): ... to here.
15028
15029 2011-05-22  Bruno Haible  <bruno@clisp.org>
15030
15031         tmpfile: Move AC_LIBOBJ invocations to module description.
15032         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15033         invocations from here...
15034         * modules/tmpfile (configure.ac): ... to here.
15035
15036 2011-05-22  Bruno Haible  <bruno@clisp.org>
15037
15038         times: Move AC_LIBOBJ invocations to module description.
15039         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15040         * modules/times (configure.ac): ... to here.
15041
15042 2011-05-22  Bruno Haible  <bruno@clisp.org>
15043
15044         time_r: Move AC_LIBOBJ invocations to module description.
15045         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15046         invocations from here...
15047         * modules/time_r (configure.ac): ... to here.
15048
15049 2011-05-22  Bruno Haible  <bruno@clisp.org>
15050
15051         timegm: Move AC_LIBOBJ invocations to module description.
15052         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15053         invocations from here...
15054         * modules/timegm (configure.ac): ... to here.
15055
15056 2011-05-22  Bruno Haible  <bruno@clisp.org>
15057
15058         tcgetsid: Move AC_LIBOBJ invocations to module description.
15059         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15060         and gl_PREREQ_TCGETSID invocations from here...
15061         * modules/tcgetsid (configure.ac): ... to here.
15062         (Depends-on): Update conditions.
15063
15064 2011-05-22  Bruno Haible  <bruno@clisp.org>
15065
15066         symlinkat: Move AC_LIBOBJ invocations to module description.
15067         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15068         here...
15069         * modules/symlinkat (configure.ac): ... to here.
15070
15071 2011-05-22  Bruno Haible  <bruno@clisp.org>
15072
15073         symlink: Move AC_LIBOBJ invocations to module description.
15074         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15075         here...
15076         * modules/symlink (configure.ac): ... to here.
15077
15078 2011-05-22  Bruno Haible  <bruno@clisp.org>
15079
15080         strverscmp: Move AC_LIBOBJ invocations to module description.
15081         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15083         from here...
15084         * modules/strverscmp (configure.ac): ... to here.
15085
15086 2011-05-22  Bruno Haible  <bruno@clisp.org>
15087
15088         strtok_r: Move AC_LIBOBJ invocations to module description.
15089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15090         and gl_PREREQ_STRTOK_R invocations from here...
15091         * modules/strtok_r (configure.ac): ... to here.
15092         (Depends-on): Update conditions.
15093
15094 2011-05-22  Bruno Haible  <bruno@clisp.org>
15095
15096         strtoumax: Move AC_LIBOBJ invocations to module description.
15097         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15099         from here...
15100         * modules/strtoumax (configure.ac): ... to here.
15101
15102 2011-05-22  Bruno Haible  <bruno@clisp.org>
15103
15104         strtoimax: Move AC_LIBOBJ invocations to module description.
15105         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15107         from here...
15108         * modules/strtoimax (configure.ac): ... to here.
15109
15110 2011-05-22  Bruno Haible  <bruno@clisp.org>
15111
15112         strtoull: Move AC_LIBOBJ invocations to module description.
15113         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15115         from here...
15116         * modules/strtoull (configure.ac): ... to here.
15117
15118 2011-05-22  Bruno Haible  <bruno@clisp.org>
15119
15120         strtoll: Move AC_LIBOBJ invocations to module description.
15121         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15123         here...
15124         * modules/strtoll (configure.ac): ... to here.
15125
15126 2011-05-22  Bruno Haible  <bruno@clisp.org>
15127
15128         strtoul: Move AC_LIBOBJ invocations to module description.
15129         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15130         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15131         * modules/strtoul (configure.ac): ... to here.
15132
15133 2011-05-22  Bruno Haible  <bruno@clisp.org>
15134
15135         strtol: Move AC_LIBOBJ invocations to module description.
15136         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15137         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15138         * modules/strtol (configure.ac): ... to here.
15139
15140 2011-05-22  Bruno Haible  <bruno@clisp.org>
15141
15142         strtod: Move AC_LIBOBJ invocations to module description.
15143         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15144         invocations from here...
15145         * modules/strtod (configure.ac): ... to here.
15146
15147 2011-05-22  Bruno Haible  <bruno@clisp.org>
15148
15149         strstr*: Move AC_LIBOBJ invocations to module description.
15150         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15151         invocations from here...
15152         * modules/strstr-simple (configure.ac): ... to here.
15153         * modules/strstr (configure.ac): ... and here.
15154
15155 2011-05-22  Bruno Haible  <bruno@clisp.org>
15156
15157         strsignal: Move AC_LIBOBJ invocations to module description.
15158         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15159         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15160         * modules/strsignal (configure.ac): ... to here.
15161         (Depends-on): Update conditions.
15162
15163 2011-05-22  Bruno Haible  <bruno@clisp.org>
15164
15165         strsep: Move AC_LIBOBJ invocations to module description.
15166         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15168         here...
15169         * modules/strsep (configure.ac): ... to here.
15170
15171 2011-05-22  Bruno Haible  <bruno@clisp.org>
15172
15173         strptime: Move AC_LIBOBJ invocations to module description.
15174         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15175         gl_PREREQ_STRPTIME invocations from here...
15176         * modules/strptime (configure.ac): ... to here.
15177
15178 2011-05-22  Bruno Haible  <bruno@clisp.org>
15179
15180         strpbrk: Move AC_LIBOBJ invocations to module description.
15181         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15183         here...
15184         * modules/strpbrk (configure.ac): ... to here.
15185
15186 2011-05-22  Bruno Haible  <bruno@clisp.org>
15187
15188         strnlen: Move AC_LIBOBJ invocations to module description.
15189         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15190         invocations from here...
15191         * modules/strnlen (configure.ac): ... to here.
15192
15193 2011-05-22  Bruno Haible  <bruno@clisp.org>
15194
15195         strndup: Move AC_LIBOBJ invocations to module description.
15196         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15197         invocations from here...
15198         * modules/strndup (configure.ac): ... to here.
15199         (Depends-on): Update conditions.
15200
15201 2011-05-22  Bruno Haible  <bruno@clisp.org>
15202
15203         strncat: Move AC_LIBOBJ invocations to module description.
15204         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15205         invocations from here...
15206         * modules/strncat (configure.ac): ... to here.
15207
15208 2011-05-22  Bruno Haible  <bruno@clisp.org>
15209
15210         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15211         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15212         invocations from here...
15213         * modules/strdup (configure.ac): ... to here.
15214         * modules/strdup-posix (configure.ac): ... and here.
15215
15216 2011-05-22  Bruno Haible  <bruno@clisp.org>
15217
15218         strcspn: Move AC_LIBOBJ invocations to module description.
15219         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15220         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15221         here...
15222         * modules/strcspn (configure.ac): ... to here.
15223
15224 2011-05-22  Bruno Haible  <bruno@clisp.org>
15225
15226         strchrnul: Move AC_LIBOBJ invocations to module description.
15227         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15228         gl_PREREQ_STRCHRNUL invocations from here...
15229         * modules/strchrnul (configure.ac): ... to here.
15230
15231 2011-05-22  Bruno Haible  <bruno@clisp.org>
15232
15233         strcasestr*: Move AC_LIBOBJ invocations to module description.
15234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15235         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15236         * modules/strcasestr-simple (configure.ac): ... to here.
15237         * modules/strcasestr (configure.ac): ... and here.
15238
15239 2011-05-22  Bruno Haible  <bruno@clisp.org>
15240
15241         strcase: Move AC_LIBOBJ invocations to module description.
15242         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15243         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15244         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15245         gl_PREREQ_STRNCASECMP invocations from here...
15246         * modules/strcase (configure.ac): ... to here.
15247
15248 2011-05-22  Bruno Haible  <bruno@clisp.org>
15249
15250         stpncpy: Move AC_LIBOBJ invocations to module description.
15251         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15252         here...
15253         * modules/stpncpy (configure.ac): ... to here.
15254
15255 2011-05-22  Bruno Haible  <bruno@clisp.org>
15256
15257         stpcpy: Move AC_LIBOBJ invocations to module description.
15258         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15260         here...
15261         * modules/stpcpy (configure.ac): ... to here.
15262
15263 2011-05-21  Bruno Haible  <bruno@clisp.org>
15264
15265         stat: Move AC_LIBOBJ invocations to module description.
15266         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15267         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15268         here...
15269         * modules/stat (configure.ac): ... to here.
15270
15271 2011-05-21  Bruno Haible  <bruno@clisp.org>
15272
15273         sleep: Move AC_LIBOBJ invocations to module description.
15274         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15275         * modules/sleep (configure.ac): ... to here.
15276
15277 2011-05-21  Bruno Haible  <bruno@clisp.org>
15278
15279         signbit: Move AC_LIBOBJ invocations to module description.
15280         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15281         * modules/signbit (configure.ac): ... to here.
15282
15283 2011-05-21  Bruno Haible  <bruno@clisp.org>
15284
15285         sigprocmask: Move AC_LIBOBJ invocations to module description.
15286         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15287         gl_PREREQ_SIGPROMASK invocations from here...
15288         * modules/sigprocmask (configure.ac): ... to here.
15289
15290 2011-05-21  Bruno Haible  <bruno@clisp.org>
15291
15292         sigaction: Move AC_LIBOBJ invocations to module description.
15293         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15294         gl_PREREQ_SIGACTION invocations from here...
15295         * modules/sigaction (configure.ac): ... to here.
15296
15297 2011-05-21  Bruno Haible  <bruno@clisp.org>
15298
15299         sig2str: Move AC_LIBOBJ invocations to module description.
15300         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15301         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15302         here...
15303         * modules/sig2str (configure.ac): ... to here.
15304
15305 2011-05-21  Bruno Haible  <bruno@clisp.org>
15306
15307         setlocale: Move AC_LIBOBJ invocations to module description.
15308         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15309         gl_PREREQ_SETLOCALE invocations from here...
15310         * modules/setlocale (configure.ac): ... to here.
15311
15312 2011-05-21  Bruno Haible  <bruno@clisp.org>
15313
15314         unsetenv: Move AC_LIBOBJ invocations to module description.
15315         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15316         and gl_PREREQ_UNSETENV invocations from here...
15317         * modules/unsetenv (configure.ac): ... to here.
15318         (Depends-on): Update.
15319
15320 2011-05-21  Bruno Haible  <bruno@clisp.org>
15321
15322         setenv: Move AC_LIBOBJ invocations to module description.
15323         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15324         here...
15325         * modules/setenv (configure.ac): ... to here.
15326
15327 2011-05-21  Bruno Haible  <bruno@clisp.org>
15328
15329         selinux-h: Move AC_LIBOBJ invocations to module description.
15330         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15331         AC_LIBOBJ invocation from here...
15332         * modules/selinux-h (configure.ac): ... to here.
15333
15334 2011-05-21  Bruno Haible  <bruno@clisp.org>
15335
15336         select: Respect rules for use of AC_LIBOBJ.
15337         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15338         here...
15339         * modules/select (configure.ac): ... to here.
15340
15341 2011-05-21  Bruno Haible  <bruno@clisp.org>
15342
15343         scandir: Move AC_LIBOBJ invocations to module description.
15344         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15345         invocations from here...
15346         * modules/scandir (configure.ac): ... to here.
15347
15348 2011-05-21  Bruno Haible  <bruno@clisp.org>
15349
15350         rpmatch: Move AC_LIBOBJ invocations to module description.
15351         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15352         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15353         here...
15354         * modules/rpmatch (configure.ac): ... to here.
15355
15356 2011-05-21  Bruno Haible  <bruno@clisp.org>
15357
15358         rmdir: Respect rules for use of AC_LIBOBJ.
15359         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15360         * modules/rmdir (configure.ac): ... to here.
15361
15362 2011-05-21  Bruno Haible  <bruno@clisp.org>
15363
15364         renameat: Move AC_LIBOBJ invocations to module description.
15365         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15366         here...
15367         * modules/renameat (configure.ac): ... to here.
15368
15369 2011-05-21  Bruno Haible  <bruno@clisp.org>
15370
15371         rename: Respect rules for use of AC_LIBOBJ.
15372         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15373         here...
15374         * modules/rename (configure.ac): ... to here.
15375
15376 2011-05-21  Bruno Haible  <bruno@clisp.org>
15377
15378         remove: Move AC_LIBOBJ invocations to module description.
15379         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15380         here...
15381         * modules/remove (configure.ac): ... to here.
15382
15383 2011-05-21  Bruno Haible  <bruno@clisp.org>
15384
15385         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15386         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15387         macro.
15388         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15389         * modules/relocatable-lib (configure.ac): ... to here.
15390         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15391         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15392
15393 2011-05-21  Bruno Haible  <bruno@clisp.org>
15394
15395         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15396         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15397         here...
15398         * modules/relocatable-prog (configure.ac): ... to here.
15399
15400 2011-05-21  Bruno Haible  <bruno@clisp.org>
15401
15402         regex: Move AC_LIBOBJ invocations to module description.
15403         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15404         invocations from here...
15405         * modules/regex (configure.ac): ... to here.
15406
15407 2011-05-21  Bruno Haible  <bruno@clisp.org>
15408
15409         realloc-*: Move AC_LIBOBJ invocations to module description.
15410         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15411         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15412         AC_LIBOBJ invocations from here...
15413         * modules/realloc-gnu (configure.ac): ... to here.
15414         * modules/realloc-posix (configure.ac): ... and here.
15415
15416 2011-05-21  Bruno Haible  <bruno@clisp.org>
15417
15418         readutmp: Move AC_LIBOBJ invocations to module description.
15419         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15420         * modules/readutmp (configure.ac): ... to here.
15421
15422 2011-05-21  Bruno Haible  <bruno@clisp.org>
15423
15424         readlinkat: Move AC_LIBOBJ invocations to module description.
15425         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15426         here...
15427         * modules/readlinkat (configure.ac): ... to here.
15428
15429 2011-05-21  Bruno Haible  <bruno@clisp.org>
15430
15431         readlink: Move AC_LIBOBJ invocations to module description.
15432         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15433         gl_PREREQ_READLINK invocations from here...
15434         * modules/readlink (configure.ac): ... to here.
15435
15436 2011-05-21  Bruno Haible  <bruno@clisp.org>
15437
15438         readline: Move AC_LIBOBJ invocations to module description.
15439         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15440         gl_PREREQ_READLINE invocations from here...
15441         * modules/readline (configure.ac): ... to here.
15442
15443 2011-05-21  Bruno Haible  <bruno@clisp.org>
15444
15445         read: Move AC_LIBOBJ invocations to module description.
15446         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15447         * modules/read (configure.ac): ... to here.
15448
15449 2011-05-21  Bruno Haible  <bruno@clisp.org>
15450
15451         rawmemchr: Move AC_LIBOBJ invocations to module description.
15452         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15454         from here...
15455         * modules/rawmemchr (configure.ac): ... to here.
15456
15457 2011-05-21  Bruno Haible  <bruno@clisp.org>
15458
15459         random_r: Move AC_LIBOBJ invocations to module description.
15460         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15461         gl_PREREQ_RANDOM_R invocations from here...
15462         * modules/random_r (configure.ac): ... to here.
15463
15464 2011-05-21  Bruno Haible  <bruno@clisp.org>
15465
15466         pwrite: Move AC_LIBOBJ invocations to module description.
15467         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15468         * modules/pwrite (configure.ac): ... to here.
15469
15470 2011-05-21  Bruno Haible  <bruno@clisp.org>
15471
15472         putenv: Move AC_LIBOBJ invocations to module description.
15473         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15474         * modules/putenv (configure.ac): ... to here.
15475
15476 2011-05-21  Bruno Haible  <bruno@clisp.org>
15477
15478         login_tty: Move AC_LIBOBJ invocations to module description.
15479         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15480         * modules/login_tty (configure.ac): ... to here.
15481
15482 2011-05-21  Bruno Haible  <bruno@clisp.org>
15483
15484         openpty: Move AC_LIBOBJ invocations to module description.
15485         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15486         * modules/openpty (configure.ac): ... to here.
15487
15488 2011-05-21  Bruno Haible  <bruno@clisp.org>
15489
15490         forkpty: Move AC_LIBOBJ invocations to module description.
15491         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15492         * modules/forkpty (configure.ac): ... to here.
15493
15494 2011-05-21  Bruno Haible  <bruno@clisp.org>
15495
15496         ptsname: Move AC_LIBOBJ invocations to module description.
15497         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15498         invocations from here...
15499         * modules/ptsname (configure.ac): ... to here.
15500
15501 2011-05-21  Bruno Haible  <bruno@clisp.org>
15502
15503         pread: Move AC_LIBOBJ invocations to module description.
15504         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15505         * modules/pread (configure.ac): ... to here.
15506
15507 2011-05-21  Bruno Haible  <bruno@clisp.org>
15508
15509         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15510         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15511         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15512         * modules/posix_spawn (configure.ac): ... to here.
15513         * modules/posix_spawnp (configure.ac): ... and here.
15514
15515 2011-05-21  Bruno Haible  <bruno@clisp.org>
15516
15517         popen: Move AC_LIBOBJ invocations to module description.
15518         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15519         invocations from here...
15520         * modules/popen (configure.ac): ... to here.
15521
15522 2011-05-21  Bruno Haible  <bruno@clisp.org>
15523
15524         poll: Move AC_LIBOBJ invocations to module description.
15525         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15526         invocations from here...
15527         * modules/poll (configure.ac): ... to here.
15528
15529 2011-05-21  Bruno Haible  <bruno@clisp.org>
15530
15531         pipe-posix: Move AC_LIBOBJ invocations to module description.
15532         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15533         * modules/pipe-posix (configure.ac): ... to here.
15534
15535 2011-05-21  Bruno Haible  <bruno@clisp.org>
15536
15537         openat: Respect rules for use of AC_LIBOBJ.
15538         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15539         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15540         * modules/openat (configure.ac): ... to here.
15541
15542 2011-05-21  Bruno Haible  <bruno@clisp.org>
15543
15544         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15545         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15546         invocation from here...
15547         * modules/obstack-printf (configure.ac): ... to here.
15548         * modules/obstack-printf-posix (configure.ac): ... and here.
15549
15550 2011-05-21  Bruno Haible  <bruno@clisp.org>
15551
15552         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15553         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15554         from here...
15555         * modules/nl_langinfo (configure.ac): ... to here.
15556
15557 2011-05-21  Bruno Haible  <bruno@clisp.org>
15558
15559         nanosleep: Move AC_LIBOBJ invocations to module description.
15560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15561         gl_PREREQ_NANOSLEEP invocations from here...
15562         * modules/nanosleep (configure.ac): ... to here.
15563
15564 2011-05-21  Bruno Haible  <bruno@clisp.org>
15565
15566         mountlist: Move AC_LIBOBJ invocations to module description.
15567         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15568         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15569         * modules/mountlist (configure.ac): ... to here.
15570
15571 2011-05-21  Bruno Haible  <bruno@clisp.org>
15572
15573         mktime: Respect rules for use of AC_LIBOBJ.
15574         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15575         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15576         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15577         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15578         * modules/mktime (configure.ac): ... to here.
15579         * modules/mktime-internal (configure.ac): ... and here.
15580         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15581
15582 2011-05-21  Bruno Haible  <bruno@clisp.org>
15583
15584         mkstemps: Move AC_LIBOBJ invocations to module description.
15585         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15586         here...
15587         * modules/mkstemps (configure.ac): ... to here.
15588
15589 2011-05-21  Bruno Haible  <bruno@clisp.org>
15590
15591         mkstemp: Move AC_LIBOBJ invocations to module description.
15592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15593         gl_PREREQ_MKSTEMP invocations from here...
15594         * modules/mkstemp (configure.ac): ... to here.
15595
15596 2011-05-21  Bruno Haible  <bruno@clisp.org>
15597
15598         mkostemps: Move AC_LIBOBJ invocations to module description.
15599         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15600         here...
15601         * modules/mkostemps (configure.ac): ... to here.
15602
15603 2011-05-21  Bruno Haible  <bruno@clisp.org>
15604
15605         mkostemp: Move AC_LIBOBJ invocations to module description.
15606         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15607         gl_PREREQ_MKOSTEMP invocations from here...
15608         * modules/mkostemp (configure.ac): ... to here.
15609
15610 2011-05-21  Bruno Haible  <bruno@clisp.org>
15611
15612         mknod: Move AC_LIBOBJ invocations to module description.
15613         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15614         * modules/mknod (configure.ac): ... to here.
15615
15616 2011-05-21  Bruno Haible  <bruno@clisp.org>
15617
15618         mkfifoat: Move AC_LIBOBJ invocations to module description.
15619         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15620         here...
15621         * modules/mkfifoat (configure.ac): ... to here.
15622
15623 2011-05-21  Bruno Haible  <bruno@clisp.org>
15624
15625         mkfifo: Respect rules for use of AC_LIBOBJ.
15626         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15627         here...
15628         * modules/mkfifo (configure.ac): ... to here.
15629
15630 2011-05-21  Bruno Haible  <bruno@clisp.org>
15631
15632         mkdtemp: Move AC_LIBOBJ invocations to module description.
15633         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15634         invocations from here...
15635         * modules/mkdtemp (configure.ac): ... to here.
15636
15637 2011-05-21  Bruno Haible  <bruno@clisp.org>
15638
15639         mkdir: Move AC_LIBOBJ invocations to module description.
15640         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15641         * modules/mkdir (configure.ac): ... to here.
15642
15643 2011-05-21  Bruno Haible  <bruno@clisp.org>
15644
15645         memset: Move AC_LIBOBJ invocations to module description.
15646         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15648         here...
15649         * modules/memset (configure.ac): ... to here.
15650
15651 2011-05-21  Bruno Haible  <bruno@clisp.org>
15652
15653         memrchr: Move AC_LIBOBJ invocations to module description.
15654         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15656         here...
15657         * modules/memrchr (configure.ac): ... to here.
15658
15659 2011-05-21  Bruno Haible  <bruno@clisp.org>
15660
15661         mempcpy: Move AC_LIBOBJ invocations to module description.
15662         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15664         here...
15665         * modules/mempcpy (configure.ac): ... to here.
15666
15667 2011-05-21  Bruno Haible  <bruno@clisp.org>
15668
15669         memmove: Move AC_LIBOBJ invocations to module description.
15670         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15671         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15672         here...
15673         * modules/memmove (configure.ac): ... to here.
15674
15675 2011-05-21  Bruno Haible  <bruno@clisp.org>
15676
15677         memmem*: Move AC_LIBOBJ invocations to module description.
15678         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15679         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15680         here...
15681         (gl_FUNC_MEMMEM): ... and here...
15682         * modules/memmem-simple (configure.ac): ... to here.
15683         * modules/memmem (configure.ac): ... and here.
15684
15685 2011-05-21  Bruno Haible  <bruno@clisp.org>
15686
15687         memcpy: Move AC_LIBOBJ invocations to module description.
15688         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15689         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15690         here...
15691         * modules/memcpy (configure.ac): ... to here.
15692
15693 2011-05-21  Bruno Haible  <bruno@clisp.org>
15694
15695         memcmp: Simplify autoconf macro.
15696         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15697         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15698         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15699
15700 2011-05-21  Bruno Haible  <bruno@clisp.org>
15701
15702         memcmp: Move AC_LIBOBJ invocations to module description.
15703         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15704         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15705         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15706         * modules/memcmp (configure.ac): ... to here.
15707         (Depends-on): Update conditions.
15708
15709 2011-05-21  Bruno Haible  <bruno@clisp.org>
15710
15711         memchr: Respect rules for use of AC_LIBOBJ.
15712         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15713         invocations from here...
15714         * modules/memchr (configure.ac): ... to here.
15715
15716 2011-05-21  Bruno Haible  <bruno@clisp.org>
15717
15718         mbtowc: Move AC_LIBOBJ invocations to module description.
15719         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15720         invocations from here...
15721         * modules/mbtowc (configure.ac): ... to here.
15722
15723 2011-05-21  Bruno Haible  <bruno@clisp.org>
15724
15725         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15726         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15727         gl_PREREQ_MBSRTOWCS invocations from here...
15728         * modules/mbsrtowcs (configure.ac): ... to here.
15729
15730 2011-05-21  Bruno Haible  <bruno@clisp.org>
15731
15732         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15733         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15734         gl_PREREQ_MBSNRTOWCS invocations from here...
15735         * modules/mbsnrtowcs (configure.ac): ... to here.
15736
15737 2011-05-21  Bruno Haible  <bruno@clisp.org>
15738
15739         mbsinit: Move AC_LIBOBJ invocations to module description.
15740         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15741         invocations from here...
15742         * modules/mbsinit (configure.ac): ... to here.
15743
15744 2011-05-21  Bruno Haible  <bruno@clisp.org>
15745
15746         mbrlen: Move AC_LIBOBJ invocations to module description.
15747         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15748         invocations from here...
15749         * modules/mbrlen (configure.ac): ... to here.
15750
15751 2011-05-21  Bruno Haible  <bruno@clisp.org>
15752
15753         mbrtowc: Respect rules for use of AC_LIBOBJ.
15754         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15755         invocations from here...
15756         * modules/mbrtowc (configure.ac): ... to here.
15757
15758 2011-05-21  Bruno Haible  <bruno@clisp.org>
15759
15760         malloc-*: Move AC_LIBOBJ invocations to module description.
15761         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15762         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15763         AC_LIBOBJ invocations from here...
15764         * modules/malloc-gnu (configure.ac): ... to here.
15765         * modules/malloc-posix (configure.ac): ... and here.
15766
15767 2011-05-21  Bruno Haible  <bruno@clisp.org>
15768
15769         lstat, openat: Respect rules for use of AC_LIBOBJ.
15770         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15771         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15772         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15773         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15774         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15775         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15776         here.
15777         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15778
15779 2011-05-21  Bruno Haible  <bruno@clisp.org>
15780
15781         lseek: Move AC_LIBOBJ invocations to module description.
15782         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15783         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15784         * modules/lseek (configure.ac): ... to here.
15785
15786 2011-05-21  Bruno Haible  <bruno@clisp.org>
15787
15788         linkat: Move AC_LIBOBJ invocations to module description.
15789         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15790         here...
15791         * modules/linkat (configure.ac): ... to here.
15792
15793 2011-05-21  Bruno Haible  <bruno@clisp.org>
15794
15795         link: Respect rules for use of AC_LIBOBJ.
15796         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15797         * modules/link (configure.ac): ... to here.
15798
15799 2011-05-21  Bruno Haible  <bruno@clisp.org>
15800
15801         lchown: Move AC_LIBOBJ invocations to module description.
15802         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15803         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15804         * modules/lchown (configure.ac): ... to here.
15805
15806 2011-05-21  Bruno Haible  <bruno@clisp.org>
15807
15808         iswctype: Move AC_LIBOBJ invocations to module description.
15809         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15810         here...
15811         * modules/iswctype (configure.ac): ... to here.
15812
15813 2011-05-21  Bruno Haible  <bruno@clisp.org>
15814
15815         iswblank: Move AC_LIBOBJ invocations to module description.
15816         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15817         here...
15818         * modules/iswblank (configure.ac): ... to here.
15819
15820 2011-05-21  Bruno Haible  <bruno@clisp.org>
15821
15822         atanl: Move AC_LIBOBJ invocations to module description.
15823         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15824         * modules/atanl (configure.ac): ... to here.
15825
15826 2011-05-21  Bruno Haible  <bruno@clisp.org>
15827
15828         acosl: Move AC_LIBOBJ invocations to module description.
15829         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15830         * modules/acosl (configure.ac): ... to here.
15831
15832 2011-05-21  Bruno Haible  <bruno@clisp.org>
15833
15834         asinl: Respect rules for use of AC_LIBOBJ.
15835         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15836         * modules/asinl (configure.ac): ... to here.
15837
15838 2011-05-21  Bruno Haible  <bruno@clisp.org>
15839
15840         tanl: Move AC_LIBOBJ invocations to module description.
15841         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15842         * modules/tanl (configure.ac): ... to here.
15843
15844 2011-05-21  Bruno Haible  <bruno@clisp.org>
15845
15846         cosl: Move AC_LIBOBJ invocations to module description.
15847         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15848         * modules/cosl (configure.ac): ... to here.
15849
15850 2011-05-21  Bruno Haible  <bruno@clisp.org>
15851
15852         sinl: Move AC_LIBOBJ invocations to module description.
15853         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15854         * modules/sinl (configure.ac): ... to here.
15855
15856 2011-05-21  Bruno Haible  <bruno@clisp.org>
15857
15858         logl: Move AC_LIBOBJ invocations to module description.
15859         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15860         * modules/logl (configure.ac): ... to here.
15861
15862 2011-05-21  Bruno Haible  <bruno@clisp.org>
15863
15864         expl: Move AC_LIBOBJ invocations to module description.
15865         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15866         * modules/expl (configure.ac): ... to here.
15867
15868 2011-05-21  Bruno Haible  <bruno@clisp.org>
15869
15870         roundl: Move AC_LIBOBJ invocations to module description.
15871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15872         * modules/roundl (configure.ac): ... to here.
15873
15874 2011-05-21  Bruno Haible  <bruno@clisp.org>
15875
15876         round: Move AC_LIBOBJ invocations to module description.
15877         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15878         * modules/round (configure.ac): ... to here.
15879
15880 2011-05-21  Bruno Haible  <bruno@clisp.org>
15881
15882         roundf: Move AC_LIBOBJ invocations to module description.
15883         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15884         * modules/roundf (configure.ac): ... to here.
15885
15886 2011-05-21  Bruno Haible  <bruno@clisp.org>
15887
15888         truncl: Move AC_LIBOBJ invocations to module description.
15889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15890         * modules/truncl (configure.ac): ... to here.
15891
15892 2011-05-21  Bruno Haible  <bruno@clisp.org>
15893
15894         trunc: Move AC_LIBOBJ invocations to module description.
15895         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15896         * modules/trunc (configure.ac): ... to here.
15897
15898 2011-05-21  Bruno Haible  <bruno@clisp.org>
15899
15900         truncf: Move AC_LIBOBJ invocations to module description.
15901         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15902         * modules/truncf (configure.ac): ... to here.
15903
15904 2011-05-21  Bruno Haible  <bruno@clisp.org>
15905
15906         ceill: Move AC_LIBOBJ invocations to module description.
15907         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15908         * modules/ceill (configure.ac): ... to here.
15909
15910 2011-05-21  Bruno Haible  <bruno@clisp.org>
15911
15912         ceil: Move AC_LIBOBJ invocations to module description.
15913         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15914         * modules/ceil (configure.ac): ... to here.
15915
15916 2011-05-21  Bruno Haible  <bruno@clisp.org>
15917
15918         ceilf: Move AC_LIBOBJ invocations to module description.
15919         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15920         * modules/ceilf (configure.ac): ... to here.
15921
15922 2011-05-21  Bruno Haible  <bruno@clisp.org>
15923
15924         floorl: Respect rules for use of AC_LIBOBJ.
15925         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15926         * modules/floorl (configure.ac): ... to here.
15927
15928 2011-05-21  Bruno Haible  <bruno@clisp.org>
15929
15930         floor: Respect rules for use of AC_LIBOBJ.
15931         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15932         * modules/floor (configure.ac): ... to here.
15933
15934 2011-05-21  Bruno Haible  <bruno@clisp.org>
15935
15936         floorf: Move AC_LIBOBJ invocations to module description.
15937         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15938         * modules/floorf (configure.ac): ... to here.
15939
15940 2011-05-20  Bruno Haible  <bruno@clisp.org>
15941
15942         sqrtl: Respect rules for use of AC_LIBOBJ.
15943         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15944         * modules/sqrtl (configure.ac): ... to here.
15945
15946 2011-05-20  Bruno Haible  <bruno@clisp.org>
15947
15948         ldexpl: Respect rules for use of AC_LIBOBJ.
15949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15950         * modules/ldexpl (configure.ac): ... to here.
15951
15952 2011-05-20  Bruno Haible  <bruno@clisp.org>
15953
15954         frexpl*: Respect rules for use of AC_LIBOBJ.
15955         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15956         invocation from here...
15957         * modules/frexpl (configure.ac): ... to here.
15958         * modules/frexpl-nolibm (configure.ac): ... and here.
15959
15960 2011-05-20  Bruno Haible  <bruno@clisp.org>
15961
15962         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15963         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15964         invocation from here...
15965         * modules/frexp (configure.ac): ... to here.
15966         * modules/frexp-nolibm (configure.ac): ... and here.
15967
15968 2011-05-20  Bruno Haible  <bruno@clisp.org>
15969
15970         isnan: Respect rules for use of AC_LIBOBJ.
15971         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15972         invocations here.
15973         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15974         REPLACE_ISNAN.
15975         * modules/isnand (configure.ac): Likewise.
15976         * modules/isnanl (configure.ac): Likewise.
15977
15978 2011-05-20  Bruno Haible  <bruno@clisp.org>
15979
15980         isnanl*: Respect rules for use of AC_LIBOBJ.
15981         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15982         invocation from here...
15983         * modules/isnanl (configure.ac): ... to here.
15984         * modules/isnanl-nolibm (configure.ac): ... and here.
15985
15986 2011-05-20  Bruno Haible  <bruno@clisp.org>
15987
15988         isnand*: Move AC_LIBOBJ invocations to module description.
15989         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15990         invocation from here...
15991         * modules/isnand (configure.ac): ... to here.
15992         * modules/isnand-nolibm (configure.ac): ... and here.
15993
15994 2011-05-20  Bruno Haible  <bruno@clisp.org>
15995
15996         isnanf*: Move AC_LIBOBJ invocations to module description.
15997         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15998         invocation from here...
15999         * modules/isnanf (configure.ac): ... to here.
16000         * modules/isnanf-nolibm (configure.ac): ... and here.
16001
16002 2011-05-20  Bruno Haible  <bruno@clisp.org>
16003
16004         isnan*: Separate the AC_LIBOBJ invocations.
16005         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16006         AC_LIBOBJ invocation.
16007         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16008         here.
16009         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16010         AC_LIBOBJ invocation.
16011         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16012         here.
16013         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16014         AC_LIBOBJ invocation.
16015         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16016         here.
16017         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16018
16019 2011-05-08  Bruno Haible  <bruno@clisp.org>
16020
16021         isinf: Move AC_LIBOBJ invocations to module description.
16022         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16023         * modules/isinf (configure.ac): ... to here.
16024
16025 2011-05-08  Bruno Haible  <bruno@clisp.org>
16026
16027         isfinite: Move AC_LIBOBJ invocations to module description.
16028         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16029         * modules/isfinite (configure.ac): ... to here.
16030
16031 2011-05-08  Bruno Haible  <bruno@clisp.org>
16032
16033         isblank: Move AC_LIBOBJ invocations to module description.
16034         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16035         here...
16036         * modules/isblank (configure.ac): ... to here.
16037
16038 2011-05-08  Bruno Haible  <bruno@clisp.org>
16039
16040         isapipe: Move AC_LIBOBJ invocations to module description.
16041         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16042         gl_PREREQ_ISAPIPE invocations from here...
16043         * modules/isapipe (configure.ac): ... to here.
16044         (Depends-on): Update condition.
16045
16046 2011-05-08  Bruno Haible  <bruno@clisp.org>
16047
16048         ioctl: Move AC_LIBOBJ invocations to module description.
16049         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16050         invocations from here...
16051         * modules/ioctl (configure.ac): ... to here.
16052         (Depends-on): Update condition.
16053
16054 2011-05-08  Bruno Haible  <bruno@clisp.org>
16055
16056         imaxdiv: Move AC_LIBOBJ invocations to module description.
16057         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16058         invocations from here...
16059         * modules/imaxdiv (configure.ac): ... to here.
16060
16061 2011-05-08  Bruno Haible  <bruno@clisp.org>
16062
16063         imaxabs: Move AC_LIBOBJ invocations to module description.
16064         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16065         invocations from here...
16066         * modules/imaxabs (configure.ac): ... to here.
16067
16068 2011-05-08  Bruno Haible  <bruno@clisp.org>
16069
16070         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16071         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16072         AC_LIBOBJ invocations from here...
16073         * modules/getaddrinfo (configure.ac): ... to here.
16074         (Depends-on): Add conditions.
16075
16076 2011-05-08  Bruno Haible  <bruno@clisp.org>
16077
16078         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16079         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16080         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16081         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16082         (gl_PREREQ_INET_PTON): ... from here.
16083         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16084         gl_PREREQ_INET_PTON here.
16085         (Depends-on): Update condition.
16086
16087 2011-05-08  Bruno Haible  <bruno@clisp.org>
16088
16089         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16090         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16091         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16092         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16093         (gl_PREREQ_INET_NTOP): ... from here.
16094         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16095         gl_PREREQ_INET_NTOP here.
16096         (Depends-on): Update condition.
16097
16098 2011-05-08  Bruno Haible  <bruno@clisp.org>
16099
16100         iconv_open: Move AC_LIBOBJ invocations to module description.
16101         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16102         AC_LIBOBJ invocations from here...
16103         * modules/iconv_open (configure.ac): ... to here.
16104
16105 2011-05-08  Bruno Haible  <bruno@clisp.org>
16106
16107         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16108         If module 'iconv_open' is among the main modules and module
16109         'iconv_open-utf' is among the tests dependencies, then
16110         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16111         return the special iconv_t values. Therefore iconv() and iconv_close()
16112         must support these special iconv_t values, already in lib, not only in
16113         tests.
16114         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16115         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16116         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16117         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16118         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16119         (Depends-on): Add the dependencies of iconv_open-utf.
16120         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16121         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16122         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16123
16124 2011-05-08  Bruno Haible  <bruno@clisp.org>
16125
16126         group-member: Move AC_LIBOBJ invocations to module description.
16127         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16128         gl_PREREQ_GROUP_MEMBER invocations from here...
16129         * modules/group-member (configure.ac): ... to here.
16130
16131 2011-05-08  Bruno Haible  <bruno@clisp.org>
16132
16133         grantpt: Move AC_LIBOBJ invocations to module description.
16134         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16135         invocations from here...
16136         * modules/grantpt (configure.ac): ... to here.
16137
16138 2011-05-08  Bruno Haible  <bruno@clisp.org>
16139
16140         glob: Move AC_LIBOBJ invocations to module description.
16141         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16142         from here...
16143         * modules/glob (configure.ac): ... to here.
16144
16145 2011-05-08  Bruno Haible  <bruno@clisp.org>
16146
16147         getusershell: Move AC_LIBOBJ invocations to module description.
16148         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16149         Move AC_LIBOBJ invocation from here...
16150         * modules/getusershell (configure.ac): ... to here.
16151         (Depends-on): Update condition.
16152
16153 2011-05-08  Bruno Haible  <bruno@clisp.org>
16154
16155         gettimeofday: Move AC_LIBOBJ invocations to module description.
16156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16157         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16158         gl_PREREQ_GETTIMEOFDAY invocations from here...
16159         * modules/gettimeofday (configure.ac): ... to here.
16160
16161 2011-05-08  Bruno Haible  <bruno@clisp.org>
16162
16163         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16164         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16165         just gl_FUNC_TZSET.
16166         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16167         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16168         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16169         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16170
16171 2011-05-08  Bruno Haible  <bruno@clisp.org>
16172
16173         getsubopt: Move AC_LIBOBJ invocations to module description.
16174         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16175         gl_PREREQ_GETSUBOPT invocations from here...
16176         * modules/getsubopt (configure.ac): ... to here.
16177
16178 2011-05-08  Bruno Haible  <bruno@clisp.org>
16179
16180         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16181         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16182         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16183         * modules/getpass-gnu (configure.ac): ... to here.
16184
16185 2011-05-08  Bruno Haible  <bruno@clisp.org>
16186
16187         getpass: Move AC_LIBOBJ invocations to module description.
16188         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16189         gl_PREREQ_GETPASS invocations from here...
16190         * modules/getpass (configure.ac): ... to here.
16191
16192 2011-05-08  Bruno Haible  <bruno@clisp.org>
16193
16194         getpagesize: Move AC_LIBOBJ invocations to module description.
16195         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16196         from here...
16197         * modules/getpagesize (configure.ac): ... to here.
16198
16199 2011-05-08  Bruno Haible  <bruno@clisp.org>
16200
16201         getopt: Move AC_LIBOBJ invocations to module description.
16202         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16203         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16204         invocations from here...
16205         * modules/getopt-gnu (configure.ac): ... to here.
16206         * modules/getopt-posix (configure.ac): ... and here.
16207         (Depends-on): Update condition.
16208
16209 2011-05-08  Bruno Haible  <bruno@clisp.org>
16210
16211         getopt, argp: Respect rules for use of AC_LIBOBJ.
16212         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16213         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16214         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16215         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16216
16217 2011-05-08  Bruno Haible  <bruno@clisp.org>
16218
16219         getlogin_r: Move AC_LIBOBJ invocations to module description.
16220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16221         gl_PREREQ_GETLOGIN_R invocations from here...
16222         * modules/getlogin_r (configure.ac): ... to here.
16223
16224 2011-05-08  Bruno Haible  <bruno@clisp.org>
16225
16226         getlogin: Move AC_LIBOBJ invocations to module description.
16227         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16228         here...
16229         * modules/getlogin (configure.ac): ... to here.
16230
16231 2011-05-08  Bruno Haible  <bruno@clisp.org>
16232
16233         getloadavg: Move AC_LIBOBJ invocations to module description.
16234         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16235         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16236         * modules/getloadavg (configure.ac): ... to here.
16237
16238 2011-05-08  Bruno Haible  <bruno@clisp.org>
16239
16240         gethrxtime: Move AC_LIBOBJ invocations to module description.
16241         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16242         LIB_GETHRXTIME from here...
16243         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16244         invocations from here...
16245         * modules/gethrxtime (configure.ac): ... to here.
16246
16247 2011-05-08  Bruno Haible  <bruno@clisp.org>
16248
16249         gethostname: Move AC_LIBOBJ invocations to module description.
16250         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16251         gl_PREREQ_GETHOSTNAME invocations from here...
16252         * modules/gethostname (configure.ac): ... to here.
16253
16254 2011-05-08  Bruno Haible  <bruno@clisp.org>
16255
16256         getgroups: Move AC_LIBOBJ invocations to module description.
16257         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16258         here...
16259         * modules/getgroups (configure.ac): ... to here.
16260
16261 2011-05-08  Bruno Haible  <bruno@clisp.org>
16262
16263         getdtablesize: Move AC_LIBOBJ invocations to module description.
16264         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16265         invocation from here...
16266         * modules/getdtablesize (configure.ac): ... to here.
16267
16268 2011-05-08  Bruno Haible  <bruno@clisp.org>
16269
16270         getdomainname: Move AC_LIBOBJ invocations to module description.
16271         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16272         gl_PREREQ_GETDOMAINNAME invocations from here...
16273         * modules/getdomainname (configure.ac): ... to here.
16274
16275 2011-05-08  Bruno Haible  <bruno@clisp.org>
16276
16277         getline: Move AC_LIBOBJ invocations to module description.
16278         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16279         invocations from here...
16280         * modules/getline (configure.ac): ... to here.
16281
16282 2011-05-08  Bruno Haible  <bruno@clisp.org>
16283
16284         getline: Simplify.
16285         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16286         It's already handled through the module dependency.
16287
16288 2011-05-08  Bruno Haible  <bruno@clisp.org>
16289
16290         getdelim: Move AC_LIBOBJ invocations to module description.
16291         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16292         and gl_PREREQ_GETDELIM invocations from here...
16293         * modules/getdelim (configure.ac): ... to here.
16294         (Depends-on): Fix condition.
16295
16296 2011-05-08  Bruno Haible  <bruno@clisp.org>
16297
16298         getcwd: Move AC_LIBOBJ invocations to module description.
16299         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16300         invocations from here...
16301         * modules/getcwd (configure.ac): ... to here.
16302
16303 2011-05-08  Bruno Haible  <bruno@clisp.org>
16304
16305         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16306         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16307         here...
16308         * modules/getcwd-lgpl (configure.ac): ... to here.
16309
16310 2011-05-07  Bruno Haible  <bruno@clisp.org>
16311
16312         crypto/gc: Move AC_LIBOBJ invocations to module description.
16313         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16314         * modules/crypto/gc (configure.ac): ... to here.
16315
16316 2011-05-07  Bruno Haible  <bruno@clisp.org>
16317
16318         fwriting: Move AC_LIBOBJ invocations to module description.
16319         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16320         here...
16321         * modules/fwriting (configure.ac): ... to here.
16322
16323 2011-05-07  Bruno Haible  <bruno@clisp.org>
16324
16325         fwritable: Move AC_LIBOBJ invocations to module description.
16326         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16327         here...
16328         * modules/fwritable (configure.ac): ... to here.
16329
16330 2011-05-07  Bruno Haible  <bruno@clisp.org>
16331
16332         futimens: Move AC_LIBOBJ invocations to module description.
16333         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16334         here...
16335         * modules/futimens (configure.ac): ... to here.
16336
16337 2011-05-07  Bruno Haible  <bruno@clisp.org>
16338
16339         ftruncate: Move AC_LIBOBJ invocations to module description.
16340         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16341         gl_PREREQ_FTRUNCATE invocations from here...
16342         * modules/ftruncate (configure.ac): ... to here.
16343
16344 2011-05-07  Bruno Haible  <bruno@clisp.org>
16345
16346         fsync: Move AC_LIBOBJ invocations to module description.
16347         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16348         invocations from here...
16349         * modules/fsync (configure.ac): ... to here.
16350
16351 2011-05-07  Bruno Haible  <bruno@clisp.org>
16352
16353         fsusage: Move AC_LIBOBJ invocations to module description.
16354         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16355         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16356         * modules/fsusage (configure.ac): ... to here.
16357
16358 2011-05-07  Bruno Haible  <bruno@clisp.org>
16359
16360         freopen: Move AC_LIBOBJ invocations to module description.
16361         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16362         invocations from here...
16363         * modules/freopen (configure.ac): ... to here.
16364
16365 2011-05-07  Bruno Haible  <bruno@clisp.org>
16366
16367         free: Move AC_LIBOBJ invocations to module description.
16368         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16369         invocations from here...
16370         * modules/free (configure.ac): ... to here.
16371
16372 2011-05-07  Bruno Haible  <bruno@clisp.org>
16373
16374         freadable: Move AC_LIBOBJ invocations to module description.
16375         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16376         here...
16377         * modules/freadable (configure.ac): ... to here.
16378
16379 2011-05-07  Bruno Haible  <bruno@clisp.org>
16380
16381         fpurge: Move AC_LIBOBJ invocations to module description.
16382         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16383         invocations from here...
16384         * modules/fpurge (configure.ac): ... to here.
16385
16386 2011-05-07  Bruno Haible  <bruno@clisp.org>
16387
16388         fpending: Move AC_LIBOBJ invocations to module description.
16389         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16390         gl_FUNC_FPENDING.
16391         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16392         invocations from here...
16393         * modules/fpending (configure.ac): ... to here.
16394
16395 2011-05-07  Bruno Haible  <bruno@clisp.org>
16396
16397         fopen: Move AC_LIBOBJ invocations to module description.
16398         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16399         invocations from here...
16400         * modules/fopen (configure.ac): ... to here.
16401
16402 2011-05-07  Bruno Haible  <bruno@clisp.org>
16403
16404         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16405         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16406         gl_FUNC_FNMATCH_POSIX.
16407         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16408         invocations from here...
16409         * modules/fnmatch (configure.ac): ... to here.
16410         * modules/fnmatch-gnu (configure.ac): ... and here.
16411
16412 2011-05-07  Bruno Haible  <bruno@clisp.org>
16413
16414         flock: Move AC_LIBOBJ invocations to module description.
16415         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16416         invocations from here...
16417         * modules/flock (configure.ac): ... to here.
16418
16419 2011-05-07  Bruno Haible  <bruno@clisp.org>
16420
16421         fileblocks: Move AC_LIBOBJ invocations to module description.
16422         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16423         gl_PREREQ_FILEBLOCKS invocations from here...
16424         * modules/fileblocks (configure.ac): ... to here.
16425
16426 2011-05-06  Bruno Haible  <bruno@clisp.org>
16427
16428         fflush: Move AC_LIBOBJ invocations to module description.
16429         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16430         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16431         invocations from here...
16432         * modules/fflush (configure.ac): ... to here.
16433
16434 2011-05-06  Bruno Haible  <bruno@clisp.org>
16435
16436         fdopendir: Move AC_LIBOBJ invocations to module description.
16437         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16438         here...
16439         * modules/fdopendir (configure.ac): ... to here.
16440         (Depends-on): Improve conditions.
16441
16442 2011-05-06  Bruno Haible  <bruno@clisp.org>
16443
16444         _Exit: Move AC_LIBOBJ invocations to module description.
16445         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16446         invocations from here...
16447         * modules/_Exit (configure.ac): ... to here.
16448
16449 2011-05-21  Bruno Haible  <bruno@clisp.org>
16450
16451         euidaccess: Respect rules for use of AC_LIBOBJ.
16452         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16453         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16454         from here...
16455         * modules/euidaccess (configure.ac): ... to here.
16456
16457 2011-05-06  Bruno Haible  <bruno@clisp.org>
16458
16459         error: Move AC_LIBOBJ invocations to module description.
16460         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16461         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16462         invocations from here...
16463         * modules/error (configure.ac): ... to here.
16464
16465 2011-05-06  Bruno Haible  <bruno@clisp.org>
16466
16467         duplocale: Move AC_LIBOBJ invocations to module description.
16468         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16469         gl_PREREQ_DUPLOCALE invocations from here...
16470         * modules/duplocale (configure.ac): ... to here.
16471
16472 2011-05-05  Bruno Haible  <bruno@clisp.org>
16473
16474         dirfd: Move AC_LIBOBJ invocations to module description.
16475         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16476         gl_FUNC_DIRFD.
16477         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16478         here...
16479         * modules/dirfd (configure.ac): ... to here.
16480         (Depends-on): Fix condition.
16481
16482 2011-05-05  Bruno Haible  <bruno@clisp.org>
16483
16484         chown: Respect rules for use of AC_LIBOBJ.
16485         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16486         * modules/chown (configure.ac): ... to here.
16487
16488 2011-05-05  Bruno Haible  <bruno@clisp.org>
16489
16490         chdir-long: Move AC_LIBOBJ invocations to module description.
16491         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16492         gl_PREREQ_CHDIR_LONG invocations from here...
16493         * modules/chdir-long (configure.ac): ... to here.
16494
16495 2011-05-05  Bruno Haible  <bruno@clisp.org>
16496
16497         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16498         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16499         from here...
16500         * modules/canonicalize-lgpl (configure.ac): ... to here.
16501
16502 2011-05-05  Bruno Haible  <bruno@clisp.org>
16503
16504         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16505         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16506         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16507         REPLACE_CALLOC.
16508         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16509         * modules/calloc-gnu (configure.ac): Likewise.
16510
16511 2011-05-05  Bruno Haible  <bruno@clisp.org>
16512
16513         btowc: Move AC_LIBOBJ invocations to module description.
16514         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16515         invocations from here...
16516         * modules/btowc (configure.ac): ... to here.
16517
16518 2011-05-21  Bruno Haible  <bruno@clisp.org>
16519
16520         atexit: Move AC_LIBOBJ invocations to module description.
16521         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16522         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16523         here...
16524         * modules/atexit (configure.ac): ... to here.
16525
16526 2011-05-05  Bruno Haible  <bruno@clisp.org>
16527
16528         atoll: Move AC_LIBOBJ invocations to module description.
16529         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16530         invocations from here...
16531         * modules/atoll (configure.ac): ... to here.
16532
16533 2011-05-05  Bruno Haible  <bruno@clisp.org>
16534
16535         argz: Move AC_LIBOBJ invocations to module description.
16536         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16537         * modules/argz (configure.ac): ... to here.
16538
16539 2011-05-05  Bruno Haible  <bruno@clisp.org>
16540
16541         alphasort: Move AC_LIBOBJ invocations to module description.
16542         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16543         gl_PREREQ_ALPHASORT invocations from here...
16544         * modules/alphasort (configure.ac): ... to here.
16545
16546 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16547
16548         verify: new macro verify_expr; verify_true deprecated
16549         * NEWS: Mention this.
16550         * doc/verify.texi (Compile-time Assertions): Document this.
16551         * lib/verify.h (verify_true): Deprecate.
16552         (verify_expr): New macro.
16553         * tests/test-verify.c (function): Test verify_expr.
16554
16555 2011-06-14  Jim Meyering  <meyering@redhat.com>
16556
16557         init.sh: give more portable redirection-related advice in a comment
16558         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16559         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16560         for lots of discussion.  Stefano Lattarini suggested the solution
16561         of putting "9>&2" after the command.  Reported by Bruno Haible.
16562
16563 2011-06-13  Bruno Haible  <bruno@clisp.org>
16564
16565         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16566         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16567         'none'.
16568
16569 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16570
16571         ftoastr: use strtof only if HAVE_STRTOF
16572         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16573         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16574         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16575         * modules/ftoastr (configure.ac): Check for strtof.
16576
16577 2011-06-13  Bruno Haible  <bruno@clisp.org>
16578
16579         gnulib-tool: Addendum to 2011-06-08 commit.
16580         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16581         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16582
16583 2011-06-13  Bruno Haible  <bruno@clisp.org>
16584
16585         fseeko: Provide a non-inline replacement of fseek().
16586         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16587         * modules/fseeko (Depends-on): Add fseek.
16588         * modules/fseek (License): Change to LGPLv2+.
16589
16590 2011-06-13  Bruno Haible  <bruno@clisp.org>
16591
16592         ftello: Provide a non-inline replacement of ftell().
16593         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16594         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16595         not have ftello() (such as on mingw).
16596         * modules/ftello (Depends-on): Add ftell.
16597         * modules/ftell (License): Change to LGPLv2+.
16598
16599 2011-05-07  Bruno Haible  <bruno@clisp.org>
16600
16601         ftell: Move AC_LIBOBJ invocations to module description.
16602         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16603         * modules/ftell (configure.ac): ... to here.
16604
16605 2011-05-07  Bruno Haible  <bruno@clisp.org>
16606
16607         ftello: Respect rules for use of AC_LIBOBJ.
16608         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16609         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16610         here...
16611         * modules/ftello (configure.ac): ... to here.
16612
16613 2011-05-07  Bruno Haible  <bruno@clisp.org>
16614
16615         fseeko: Simplify.
16616         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16617         (gl_FUNC_FSEEKO): Inline it here.
16618
16619 2011-05-07  Bruno Haible  <bruno@clisp.org>
16620
16621         fseek: Move AC_LIBOBJ invocations to module description.
16622         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16623         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16624         * modules/fseek (configure.ac): ... to here.
16625
16626 2011-05-07  Bruno Haible  <bruno@clisp.org>
16627
16628         fseek: Respect rules for use of AC_LIBOBJ.
16629         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16630         here...
16631         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16632
16633 2011-05-07  Bruno Haible  <bruno@clisp.org>
16634
16635         fseeko: Respect rules for use of AC_LIBOBJ.
16636         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16637         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16638         here...
16639         * modules/fseeko (configure.ac): ... to here.
16640
16641 2011-06-13  Bruno Haible  <bruno@clisp.org>
16642
16643         gnulib-tool: Allow comments in the 'Depends-on' section.
16644         * doc/gnulib.texi (Module description): Mention comment syntax in the
16645         Depends-on section.
16646         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16647
16648 2011-06-13  Bruno Haible  <bruno@clisp.org>
16649
16650         file-set.h: guard __attibute__ use, now that it's not always defined
16651         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16652         versions that support it.  This fixes a coreutils build failure with
16653         the vendor cc on HP-UX 11.31.
16654
16655 2011-06-12  Bruno Haible  <bruno@clisp.org>
16656
16657         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16658         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16659         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16660         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16661         (acl, aclsort): New declarations.
16662         (aclv_nontrivial): New declaration.
16663         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16664         (file_has_acl): Read also the second kind of HP-UX ACLs.
16665         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16666         kind of HP-UX ACLs if the first kind fails.
16667         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16668         second kind of HP-UX ACLs.
16669         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16670         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16671         agree.
16672         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16673         hpuxjfs.
16674         Handle hpuxjfs.
16675         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16676         hpuxjfs.
16677         Handle hpuxjfs.
16678         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16679         (func_test_same_acls): Use both lsacl and getacl.
16680         Handle hpuxjfs.
16681         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16682         (func_test_same_acls): Use both lsacl and getacl.
16683         Handle hpuxjfs.
16684
16685 2011-06-12  Bruno Haible  <bruno@clisp.org>
16686
16687         acl: Complete the 2010-08-10 fix.
16688         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16689         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16690         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16691         explicitly.
16692         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16693         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16694
16695 2011-06-12  Bruno Haible  <bruno@clisp.org>
16696
16697         spawn-pipe tests: Comments.
16698         * tests/test-spawn-pipe-child.c (main): Update comment.
16699         Reported by James Youngman <jay@gnu.org>.
16700
16701 2011-06-11  James Youngman  <jay@gnu.org>
16702
16703         New module 'stat-size'.
16704         * modules/stat-size: New module.  Provides macros for accessing
16705         file size information in instances of struct stat.  Depends on the
16706         fileblocks module because it calls st_blocks.
16707         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16708         * doc/gnulib.texi: Include stat-size.texi.
16709         * doc/stat-size.texi: Documentation for this module.
16710         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16711         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16712         AC_STRUCT_ST_BLOCKS.
16713
16714 2011-06-09  Bruno Haible  <bruno@clisp.org>
16715
16716         thread: Support pthreads-win32.
16717         * lib/glthread/thread.h (gl_thread_self): Define differently on
16718         pthreads-win32.
16719         (gl_null_thread): New declaration.
16720         (gl_thread_self_pointer): New macro.
16721         * lib/glthread/thread.c (gl_null_thread): New constant.
16722         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16723         gl_thread_self.
16724         * tests/test-tls.c: Likewise.
16725         Suggested by Paul Eggert. Reported by Eric Blake.
16726
16727 2011-06-09  Bruno Haible  <bruno@clisp.org>
16728
16729         thread: Fix confusion between NULL and 0.
16730         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16731         Reported by Paul Eggert.
16732
16733 2011-06-09  Bruno Haible  <bruno@clisp.org>
16734
16735         spawn-pipe tests: Avoid test failure on HP-UX 11.
16736         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16737         is closed.
16738
16739 2011-06-09  Bruno Haible  <bruno@clisp.org>
16740
16741         acl tests: Fix compilation error on HP-UX 11.
16742         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16743
16744 2011-06-09  Bruno Haible  <bruno@clisp.org>
16745
16746         rmdir: Avoid test failure on HP-UX 10.20.
16747         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16748         EEXIST.
16749
16750 2011-06-08  Eric Blake  <eblake@redhat.com>
16751
16752         perror: fix test on mingw
16753         * modules/perror-tests (Depends-on): Add dup2.
16754
16755         strerror_r-posix: fix on MacOS
16756         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16757         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16758         logic bug.
16759         * lib/strerror_r.c (strerror_r): Fix the bug.
16760         * lib/strerror.c (strerror): Likewise.
16761         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16762         problem.
16763         * doc/posix-functions/strerror.texi (strerror): Likewise.
16764         * doc/posix-functions/perror.texi (perror): Likewise.
16765         * tests/test-strerror.c (main): Enhance test.
16766         * tests/test-strerror_r.c (main): Likewise.
16767
16768 2011-06-08  Bruno Haible  <bruno@clisp.org>
16769
16770         gnulib-tool: Better isolation between different gnulib-tool invocations.
16771         * gnulib-tool: New option --witness-c-macro.
16772         (witness_c_macro): New variable.
16773         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16774         AM_CPPFLAGS define it as a C macro.
16775         (func_emit_tests_Makefile_am): Likewise.
16776         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16777         read it from there.
16778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16779         m4_define, not AC_DEFUN.
16780         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16781         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16782         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16783         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16784         s|...|...|, to substitute the values of the GNULIB_* module indicator
16785         variables.
16786         * modules/dirent (Makefile.am): Likewise.
16787         * modules/fcntl-h (Makefile.am): Likewise.
16788         * modules/iconv-h (Makefile.am): Likewise.
16789         * modules/langinfo (Makefile.am): Likewise.
16790         * modules/locale (Makefile.am): Likewise.
16791         * modules/math (Makefile.am): Likewise.
16792         * modules/netdb (Makefile.am): Likewise.
16793         * modules/poll-h (Makefile.am): Likewise.
16794         * modules/pty (Makefile.am): Likewise.
16795         * modules/search (Makefile.am): Likewise.
16796         * modules/signal (Makefile.am): Likewise.
16797         * modules/spawn (Makefile.am): Likewise.
16798         * modules/stdio (Makefile.am): Likewise.
16799         * modules/stdlib (Makefile.am): Likewise.
16800         * modules/string (Makefile.am): Likewise.
16801         * modules/sys_ioctl (Makefile.am): Likewise.
16802         * modules/sys_select (Makefile.am): Likewise.
16803         * modules/sys_socket (Makefile.am): Likewise.
16804         * modules/sys_stat (Makefile.am): Likewise.
16805         * modules/sys_times (Makefile.am): Likewise.
16806         * modules/sys_utsname (Makefile.am): Likewise.
16807         * modules/sys_wait (Makefile.am): Likewise.
16808         * modules/termios (Makefile.am): Likewise.
16809         * modules/time (Makefile.am): Likewise.
16810         * modules/unistd (Makefile.am): Likewise.
16811         * modules/wchar (Makefile.am): Likewise.
16812
16813 2011-06-08  Eric Blake  <eblake@redhat.com>
16814
16815         strerror: simplify replacement
16816         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16817         * modules/strerror (configure.ac): No prereqs needed here...
16818         * modules/strerror-override (configure.ac): ...but this needs it.
16819         (Files): Add file for needed prereq macro.
16820
16821 2011-06-08  Bruno Haible  <bruno@clisp.org>
16822
16823         strerror_r-posix: Tweaks.
16824         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16825         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16826         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16827         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16828         (gl_FUNC_STRERROR_R): ... to here.
16829         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16830
16831 2011-06-07  Eric Blake  <eblake@redhat.com>
16832
16833         perror: document fixed bugs
16834         * doc/posix-functions/perror.texi (perror): Document recent
16835         patches.
16836
16837 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         stat-time: get_stat_birthtime failure is better-defined
16840         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16841         return a timestamp whose tv_sec and tv_nsec values are both -1.
16842         Previously, the spec said only that the tv_nsec value was negative.
16843         This upward-compatible change simplifies GNU tar a bit.
16844
16845 2011-06-07  Eric Blake  <eblake@redhat.com>
16846
16847         strerror_r-posix: work around cygwin 1.7.9
16848         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16849         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16850         bug without replacing strerror_r.
16851         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16852         strerror_r is buggy, but without requiring strerror_r compilation.
16853         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16854
16855         test-perror: relax test to ignore cygwin bug
16856         * tests/test-perror2.c (main): Relax test on requiring detection
16857         of stream errors, and use unbuffered stream.
16858         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16859         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16860         * doc/posix-functions/fputc.texi (fputc): Likewise.
16861         * doc/posix-functions/fputs.texi (fputs): Likewise.
16862         * doc/posix-functions/fputws.texi (fputws): Likewise.
16863         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16864         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16865         * doc/posix-functions/getopt.texi (getopt): Likewise.
16866         * doc/posix-functions/perror.texi (perror): Likewise.
16867         * doc/posix-functions/printf.texi (printf): Likewise.
16868         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16869         * doc/posix-functions/psignal.texi (psignal): Likewise.
16870         * doc/posix-functions/putc.texi (putc): Likewise.
16871         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16872         Likewise.
16873         * doc/posix-functions/putchar.texi (putchar): Likewise.
16874         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16875         Likewise.
16876         * doc/posix-functions/puts.texi (puts): Likewise.
16877         * doc/posix-functions/putwc.texi (putwc): Likewise.
16878         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16879         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16880         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16881         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16882         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16883         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16884         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16885         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16886
16887 2011-05-22  Bruno Haible  <bruno@clisp.org>
16888
16889         strerror: Move AC_LIBOBJ invocations to module description.
16890         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16891         gl_PREREQ_STRERROR invocations from here...
16892         * modules/strerror (configure.ac): ... to here.
16893
16894 2011-05-21  Bruno Haible  <bruno@clisp.org>
16895
16896         perror: Use common idiom.
16897         * modules/perror (configure.ac): Reorder statements.
16898
16899 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16900
16901         tests: fix usage message in 'mktempd_'
16902         * tests/init.sh (mktempd_): In the usage message, use literal
16903         'mktempd_', not '$ME' (which is even undefined), as the name of
16904         the subroutine.
16905
16906 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16907
16908         tests init: new function 'fatal_', for hard errors
16909         Before this patch, the only way offered by tests/init.sh to
16910         properly signal a hard error was the `framework_failure_'
16911         function.  But the error message issued by that function,
16912         as its name would suggest, refers to a set-up failure in the
16913         testsuite, while hard errors can obviously also be due to
16914         other reasons.  The best way to fix this inconsistency is to
16915         introduce a new function with a more general error message.
16916         * tests/init.sh (fatal_): New function.
16917
16918 2011-06-06  Eric Blake  <eblake@redhat.com>
16919
16920         canonicalize-lgpl: use common idiom
16921         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16922         over newer POSIX -Rf.
16923         Reported by Bruno Haible.
16924
16925         canonicalize-lgpl: work around AIX realpath bug
16926         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16927         * doc/posix-functions/realpath.texi (realpath): Document it.
16928         Reported by Bruno Haible.
16929
16930         strerror: work around FreeBSD bug
16931         * lib/strerror.c (strerror): Special case 0.
16932         Reported by Bruno Haible.
16933
16934         strerror-override: avoid bloating errno module
16935         * modules/errno (Files, configure.ac): Move replacement strings...
16936         * modules/strerror-override: ...to new module.
16937         * modules/strerror (Depends-on): Add strerror-override.
16938         * modules/strerror_r-posix (Depends-on): Likewise.
16939         * MODULES.html.sh: Document new module.
16940         Reported by Bruno Haible.
16941
16942 2011-06-06  Bruno Haible  <bruno@clisp.org>
16943
16944         spawn-pipe tests: Rename program.
16945         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16946         * tests/test-spawn-pipe-child.c: Update comment.
16947         * tests/test-spawn-pipe.sh: Update.
16948         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16949
16950         spawn-pipe tests: Link the child program only against libc.
16951         * tests/test-spawn-pipe-child.c: New file, extracted from
16952         tests/test-spawn-pipe.c.
16953         (main): Expect only one argument.
16954         (is_open): New function, copied from tests/test-pipe.c.
16955         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16956         (child_main): Remove function.
16957         (test_pipe): Pass only one argument to the child program.
16958         (main): Remove child process code. Expect the child program's name as
16959         first argument.
16960         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16961         argument.
16962         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16963         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16964         test-spawn-pipe-child against no libraries.
16965
16966 2011-06-06  Bruno Haible  <bruno@clisp.org>
16967
16968         careadlinkat: Avoid mismatch between ssize_t and int.
16969         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16970         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16971
16972 2011-06-06  Jim Meyering  <meyering@redhat.com>
16973
16974         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16975         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16976         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16977
16978 2011-06-05  Bruno Haible  <bruno@clisp.org>
16979
16980         ansi-c++-opt: Interoperability with libtool.
16981         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16982         set the variable to "no", not to ":".
16983         * NEWS: Mention the change.
16984
16985 2011-06-05  Bruno Haible  <bruno@clisp.org>
16986
16987         acl: Fix test failure on AIX 7.
16988         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16989         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16990
16991 2011-06-05  Bruno Haible  <bruno@clisp.org>
16992
16993         pipe-filter-ii: Fix test failure on AIX and IRIX.
16994         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16995         with EAGAIN, retry with a smaller buffer size.
16996
16997 2011-06-05  Bruno Haible  <bruno@clisp.org>
16998
16999         localename: Fix link dependencies.
17000         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17001         * modules/localename-tests (Makefile.am): Link test-localename with
17002         $(LIBTHREAD).
17003
17004 2011-06-05  Bruno Haible  <bruno@clisp.org>
17005
17006         error: Avoid gcc warning.
17007         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17008
17009 2011-06-05  Bruno Haible  <bruno@clisp.org>
17010
17011         unsetenv: Avoid gcc warning.
17012         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17013
17014 2011-06-05  Bruno Haible  <bruno@clisp.org>
17015
17016         setenv: Avoid gcc warning.
17017         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17018
17019 2011-06-05  Bruno Haible  <bruno@clisp.org>
17020
17021         sys_select: Ensure memset is declared also on AIX 7.
17022         * lib/sys_select.in.h: Include <string.h> also on AIX.
17023         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17024         self-contained also on AIX 7.1.
17025
17026 2011-06-04  Jim Meyering  <meyering@redhat.com>
17027
17028         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17029         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17030         function name, "error".
17031         (_gl_translatable_diag_func_re): New configurable variable.
17032
17033 2011-06-04  Bruno Haible  <bruno@clisp.org>
17034
17035         getopt: Avoid gcc warning.
17036         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17037
17038 2011-06-04  Bruno Haible  <bruno@clisp.org>
17039
17040         strerror_r: Fix comments.
17041         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17042         commit.
17043
17044 2011-06-04  Bruno Haible  <bruno@clisp.org>
17045
17046         perror: Fix compilation error.
17047         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17048         Undefine fprintf, not sprintf.
17049         * modules/perror (Depends-on): Remove intprops, verify.
17050
17051 2011-06-04  Bruno Haible  <bruno@clisp.org>
17052
17053         setlocale: Enable replacement on Cygwin 1.5.
17054         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17055         Cygwin 1.5.x.
17056         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17057         LC_CTYPE category also exists on Cygwin 1.5.x.
17058
17059 2011-06-04  Bruno Haible  <bruno@clisp.org>
17060
17061         strerror-override: Don't disable symbol renamings.
17062         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17063         * lib/strerror-override.c: Include config.h.
17064         (strerror_override): Don't undefine.
17065
17066 2011-06-03  Bruno Haible  <bruno@clisp.org>
17067
17068         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17069         * lib/localename.h: Update copyright header.
17070         * lib/localename.c: Likewise.
17071         * lib/relocatable.h: Likewise.
17072         * lib/relocatable.c: Likewise.
17073
17074 2011-06-02  Bruno Haible  <bruno@clisp.org>
17075
17076         doc: Fix a module name.
17077         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17078
17079 2011-06-02  Bruno Haible  <bruno@clisp.org>
17080
17081         pipe2: Remove dependency on 'nonblocking' module.
17082         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17083         O_NONBLOCK is defined by gnulib.
17084         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17085         is zero.
17086         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17087         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17088         defined by gnulib.
17089         (get_nonblocking_flag): New function.
17090         (main): Test O_NONBLOCK flag only if it is nonzero.
17091         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17092
17093 2011-06-03  Jim Meyering  <meyering@redhat.com>
17094
17095         maint: three new prohibit-header-without-use rules
17096         Prohibit use of cloexec.h, posixver.h, same.h without use.
17097         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17098         (sc_prohibit_posixver_without_use): Likewise.
17099         (sc_prohibit_same_without_use): Likewise.
17100
17101 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17102
17103         allocator: 'die' routine is now given requested size
17104         * lib/allocator.h (struct allocator.die): New size arg.
17105         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17106         If the actual problem is an ssize_t limitation, not a size_t or
17107         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17108
17109 2011-06-01  Eric Blake  <eblake@redhat.com>
17110
17111         strerror: drop strerror_r dependency
17112         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17113         * lib/strerror-override.c (strerror_override): ...to new file.
17114         * lib/strerror-override.h: Add prototype.
17115         * lib/strerror-impl.h: Delete.
17116         * lib/strerror.c (strerror): New implementation.
17117         * modules/errno (Files): Add new files.
17118         (configure.ac): Compile new file as appropriate.
17119         * modules/strerror (Files): Drop unused file.
17120         (Depends-on): Drop strerror_r-posix.
17121         * MODULES.html.sh: Document strerror_r-posix.
17122         Requested by Sam Steingold.
17123
17124         perror: call strerror_r directly
17125         * modules/perror (Files): Drop strerror-impl.h.
17126         * lib/perror.c (perror): Use our own stack buffer, rather than
17127         calling a wrapper that uses static storage.
17128         * doc/posix-functions/perror.texi (perror): Document a limitation
17129         of our replacement.
17130
17131         strerror_r: fix includes for FreeBSD
17132         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17133         since we use abort on some platforms.
17134         Reported by Matthias Bolte.
17135
17136 2011-05-31  Bruno Haible  <bruno@clisp.org>
17137
17138         Fix link errors in tests: openat-die uses gettext-h.
17139         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17140         against $(LIBINTL).
17141         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17142         against $(LIBINTL).
17143         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17144         $(LIBINTL).
17145         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17146         against $(LIBINTL).
17147         * modules/linkat-tests (Makefile.am): Link test-linkat against
17148         $(LIBINTL).
17149         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17150         $(LIBINTL).
17151         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17152         against $(LIBINTL).
17153         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17154         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17155         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17156         $(LIBINTL).
17157         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17158         $(LIBINTL).
17159         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17160         $(LIBINTL).
17161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17162
17163 2011-05-31  Bruno Haible  <bruno@clisp.org>
17164
17165         Fix link errors in tests: wait-process uses gettext-h.
17166         * modules/nonblocking-pipe-tests (Makefile.am): Set
17167         test_nonblocking_pipe_main_LDADD.
17168         * modules/nonblocking-socket-tests (Makefile.am): Link
17169         test-nonblocking-socket-main against $(LIBINTL).
17170         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17171
17172 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17173
17174         assert-h: work around 'verify' incompatibility
17175         * lib/verify.h: Use @...@ directives, not ifdef.
17176         * modules/assert-h (assert.h): Implement the directives.
17177         (assert.h): Substitute the symbol-prefix more consistently.
17178
17179 2011-05-29  Jim Meyering  <meyering@redhat.com>
17180
17181         trim: remove three superfluous assignments
17182         * lib/trim.c (trim2): Remove three superfluous assignments
17183         and correct brace positioning.
17184
17185 2011-05-29  Bruno Haible  <bruno@clisp.org>
17186
17187         wctype-h: Avoid namespace pollution on Solaris 2.6.
17188         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17189         identifiers.
17190         * doc/posix-headers/wctype.texi: Mention the problem.
17191         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17192
17193 2011-05-28  Jim Meyering  <meyering@redhat.com>
17194
17195         parse-datetime.y: accommodate -Wstrict-overflow
17196         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17197         placate -Wstrict-overflow.
17198
17199         trim: avoid a warning from -O2 -Wstrict-overflow
17200         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17201
17202 2011-05-29  Bruno Haible  <bruno@clisp.org>
17203
17204         gnulib-tool: Fix bug in yesterday's commit.
17205         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17206         twice.
17207
17208 2011-05-29  Bruno Haible  <bruno@clisp.org>
17209
17210         Allow multiple gnulib generated include files to be combined.
17211         * gnulib-tool (func_compute_include_guard_prefix): New function.
17212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17213         ${gl_include_guard_prefix} references.
17214         (func_import, func_create_testdir): Invoke
17215         func_compute_include_guard_prefix.
17216         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17217         * lib/ctype.in.h: Likewise.
17218         * lib/dirent.in.h: Likewise.
17219         * lib/errno.in.h: Likewise.
17220         * lib/fcntl.in.h: Likewise.
17221         * lib/float.in.h: Likewise.
17222         * lib/getopt.in.h: Likewise.
17223         * lib/iconv.in.h: Likewise.
17224         * lib/langinfo.in.h: Likewise.
17225         * lib/locale.in.h: Likewise.
17226         * lib/math.in.h: Likewise.
17227         * lib/netdb.in.h: Likewise.
17228         * lib/netinet_in.in.h: Likewise.
17229         * lib/poll.in.h: Likewise.
17230         * lib/pthread.in.h: Likewise.
17231         * lib/pty.in.h: Likewise.
17232         * lib/sched.in.h: Likewise.
17233         * lib/se-selinux.in.h: Likewise.
17234         * lib/search.in.h: Likewise.
17235         * lib/signal.in.h: Likewise.
17236         * lib/spawn.in.h: Likewise.
17237         * lib/stdarg.in.h: Likewise.
17238         * lib/stddef.in.h: Likewise.
17239         * lib/stdint.in.h: Likewise.
17240         * lib/stdio.in.h: Likewise.
17241         * lib/stdlib.in.h: Likewise.
17242         * lib/string.in.h: Likewise.
17243         * lib/strings.in.h: Likewise.
17244         * lib/sys_file.in.h: Likewise.
17245         * lib/sys_ioctl.in.h: Likewise.
17246         * lib/sys_select.in.h: Likewise.
17247         * lib/sys_socket.in.h: Likewise.
17248         * lib/sys_stat.in.h: Likewise.
17249         * lib/sys_time.in.h: Likewise.
17250         * lib/sys_times.in.h: Likewise.
17251         * lib/sys_uio.in.h: Likewise.
17252         * lib/sys_utsname.in.h: Likewise.
17253         * lib/sys_wait.in.h: Likewise.
17254         * lib/sysexits.in.h: Likewise.
17255         * lib/termios.in.h: Likewise.
17256         * lib/time.in.h: Likewise.
17257         * lib/unistd.in.h: Likewise.
17258         * lib/wchar.in.h: Likewise.
17259         * lib/wctype.in.h: Likewise.
17260         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17261         * modules/ctype (Makefile.am): Likewise.
17262         * modules/dirent (Makefile.am): Likewise.
17263         * modules/errno (Makefile.am): Likewise.
17264         * modules/fcntl-h (Makefile.am): Likewise.
17265         * modules/float (Makefile.am): Likewise.
17266         * modules/getopt-posix (Makefile.am): Likewise.
17267         * modules/iconv-h (Makefile.am): Likewise.
17268         * modules/langinfo (Makefile.am): Likewise.
17269         * modules/locale (Makefile.am): Likewise.
17270         * modules/math (Makefile.am): Likewise.
17271         * modules/netdb (Makefile.am): Likewise.
17272         * modules/netinet_in (Makefile.am): Likewise.
17273         * modules/poll-h (Makefile.am): Likewise.
17274         * modules/pthread (Makefile.am): Likewise.
17275         * modules/pty (Makefile.am): Likewise.
17276         * modules/sched (Makefile.am): Likewise.
17277         * modules/search (Makefile.am): Likewise.
17278         * modules/selinux-h (Makefile.am): Likewise.
17279         * modules/signal (Makefile.am): Likewise.
17280         * modules/spawn (Makefile.am): Likewise.
17281         * modules/stdarg (Makefile.am): Likewise.
17282         * modules/stddef (Makefile.am): Likewise.
17283         * modules/stdint (Makefile.am): Likewise.
17284         * modules/stdio (Makefile.am): Likewise.
17285         * modules/stdlib (Makefile.am): Likewise.
17286         * modules/string (Makefile.am): Likewise.
17287         * modules/strings (Makefile.am): Likewise.
17288         * modules/sys_file (Makefile.am): Likewise.
17289         * modules/sys_ioctl (Makefile.am): Likewise.
17290         * modules/sys_select (Makefile.am): Likewise.
17291         * modules/sys_socket (Makefile.am): Likewise.
17292         * modules/sys_stat (Makefile.am): Likewise.
17293         * modules/sys_time (Makefile.am): Likewise.
17294         * modules/sys_times (Makefile.am): Likewise.
17295         * modules/sys_uio (Makefile.am): Likewise.
17296         * modules/sys_utsname (Makefile.am): Likewise.
17297         * modules/sys_wait (Makefile.am): Likewise.
17298         * modules/sysexits (Makefile.am): Likewise.
17299         * modules/termios (Makefile.am): Likewise.
17300         * modules/time (Makefile.am): Likewise.
17301         * modules/unistd (Makefile.am): Likewise.
17302         * modules/wchar (Makefile.am): Likewise.
17303         * modules/wctype-h (Makefile.am): Likewise.
17304         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17305
17306 2011-05-29  Bruno Haible  <bruno@clisp.org>
17307
17308         assert-h: Allow multiple gnulib generated replacements to coexist.
17309         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17310
17311 2011-05-29  Bruno Haible  <bruno@clisp.org>
17312
17313         argp: Allow coexistence with strerror_r-posix module.
17314         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17315         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17316         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17317         not the glibc signature.
17318
17319 2011-05-28  Bruno Haible  <bruno@clisp.org>
17320
17321         gnulib-tool: Alternative structure of testdirs, similar to --import.
17322         * gnulib-tool: New option --single-configure.
17323         (func_usage): Document it.
17324         (single_configure): New variable.
17325         (func_modules_transitive_closure_separately,
17326         func_modules_transitive_closure_separately,
17327         func_determine_use_libtests, func_modules_add_dummy_separately,
17328         func_modules_to_filelist_separately): New functions, extracted from
17329         func_import.
17330         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17331         (func_import): Use the new functions.
17332         (func_create_testdir): Set final_modules. Handle $single_configure =
17333         true case.
17334
17335 2011-05-28  Bruno Haible  <bruno@clisp.org>
17336
17337         getloadavg: Remove an unreliable safety check.
17338         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17339         getloadavg.c is in place.
17340         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17341         Reported by Sam Steingold <sds@gnu.org>.
17342
17343 2011-05-28  Bruno Haible  <bruno@clisp.org>
17344
17345         doc: Cleanup yet another file produced by texinfo.tex.
17346         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17347
17348 2011-05-28  Bruno Haible  <bruno@clisp.org>
17349
17350         Finish the conditional dependencies mechanism.
17351         * gnulib-tool: New option --no-conditional-dependencies.
17352         (func_usage): Document it. Don't mark --conditional-dependencies as
17353         experimental.
17354         (cond_dependencies): The possible values can now be true, false, empty.
17355         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17356         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17357         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17358
17359 2011-05-28  Bruno Haible  <bruno@clisp.org>
17360
17361         doc: Use a recent texinfo.tex.
17362         * doc/Makefile (tex_opts): New variable.
17363         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17364
17365 2011-05-28  Jim Meyering  <meyering@redhat.com>
17366
17367         intprops.h: adjust comment to match code change
17368         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17369         only once, it *may* have side effects.  Also fix an unrelated typo.
17370         (_GL_INT_SIGNED): Likewise.
17371
17372 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17373
17374         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17375
17376 2011-05-26  Bruno Haible  <bruno@clisp.org>
17377
17378         mbsrchr: Avoid collision with system function on Interix.
17379         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17380         Reported by Markus Duft <mduft@gentoo.org>.
17381
17382 2011-05-15  James Youngman  <jay@gnu.org>
17383
17384         getopt: for ambiguous options, enumerate the possibilities.
17385         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17386         the ambiguous options when an ambiguous prefix is given. This was
17387         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17388         glibc change was
17389         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17390
17391 2011-05-25  Eric Blake  <eblake@redhat.com>
17392
17393         getcwd: work around mingw bug
17394         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17395         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17396         Reported by Matthias Bolte.
17397
17398 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17399
17400         test-intprops: disable -Wtype-limits diagnostics
17401         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17402         diagnostics.  Otherwise, the integer overflow macros generate many
17403         diagnostics.  Reported by Jim Meyering in
17404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17405
17406         intprops: shorten, to pacify gcc -Woverlength-strings
17407         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17408         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17409         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17410         likely to run afoul of C compiler limits for string constant lengths.
17411         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17412
17413 2011-05-24  Eric Blake  <eblake@redhat.com>
17414
17415         docs: document recently fixed glibc printf bug
17416         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17417         * doc/posix-functions/printf.texi (printf): Likewise.
17418         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17419         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17420
17421         closein-tests: convert to init.sh
17422         * modules/closein-tests (Files): Add init.sh
17423         * tests/test-closein.sh Use it.
17424
17425         yesno-tests: convert to init.sh
17426         * modules/yesno-tests (Files): Add init.sh.
17427         * tests/test-yesno.sh: Use it.
17428
17429         atexit-tests: ensure reliable exit status
17430         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17431         Reported by Bruno Haible.
17432
17433 2011-05-24  Bruno Haible  <bruno@clisp.org>
17434
17435         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17436         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17437         gl_PREREQ_STRERROR_R invocations from here...
17438         * modules/strerror_r-posix (configure.ac): ... to here.
17439
17440 2011-05-24  Eric Blake  <eblake@redhat.com>
17441
17442         strerror_r: fix missing header
17443         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17444
17445         strerror_r: fix AIX test failures
17446         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17447         ERANGE failure.
17448
17449         strerror_r: fix Solaris test failures
17450         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17451         failures.
17452         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17453
17454         strerror_r: enforce POSIX recommendations
17455         * lib/strerror_r.c (safe_copy): New helper method.
17456         (strerror_r): Guarantee a non-empty string.
17457         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17458         recent POSIX rulings and to match our strerror guarantees.
17459         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17460
17461 2011-05-24  Jim Meyering  <meyering@redhat.com>
17462
17463         test-perror2.c: avoid warning about unused variable
17464         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17465
17466 2011-05-24  Eric Blake  <eblake@redhat.com>
17467
17468         perror: avoid spurious test failure on HP-UX
17469         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17470
17471         tests: fix logic bug in init.sh
17472         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17473         shell.
17474
17475 2011-05-24  Jim Meyering  <meyering@redhat.com>
17476
17477         utimensat: do not reference an out-of-scope buffer
17478         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17479         declared in an inner scope, yet "times" would be dereferenced outside
17480         the scope in which "ts" was valid.
17481         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17482         of ts[2] "out/up", so that the use of aliased "times" (via
17483         "times = ts;") does not end up referencing an out-of-scope "ts"
17484
17485         opendir-safer.c: don't clobber errno; don't close negative FD
17486         * lib/opendir-safer.c (opendir_safer):
17487         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17488         file descriptor, and more importantly, don't clobber the
17489         offending errno value with EINVAL.  Before, upon failure
17490         of dup_safer, we would pass the negative file descriptor to
17491         fdopendir, which would clobber errno.
17492
17493 2011-05-23  Bruno Haible  <bruno@clisp.org>
17494
17495         idcache: Fix module description.
17496         * modules/idcache (Include): Set to "idcache.h".
17497
17498 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17499
17500         gnulib-tool: fix portability problem with MacOS sed
17501         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17502         before the "}".  Problem reported by Leo in
17503         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17504         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17505         sed_extract_condition1, sed_extract_condition2.
17506
17507 2011-05-23  Bruno Haible  <bruno@clisp.org>
17508
17509         hash: Simplify autoconf macro.
17510         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17511
17512 2011-05-23  Bruno Haible  <bruno@clisp.org>
17513
17514         getugroups: Fix module description.
17515         * modules/getugroups (Include): Set to "getugroups.h".
17516
17517 2011-05-23  Bruno Haible  <bruno@clisp.org>
17518
17519         linkat: Simplify autoconf macro.
17520         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17521
17522 2011-05-23  Bruno Haible  <bruno@clisp.org>
17523             Eric Blake  <eblake@redhat.com>
17524
17525         linkat, renameat: Update dependencies.
17526         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17527         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17528         symlinkat.
17529
17530 2011-05-23  Jim Meyering  <meyering@redhat.com>
17531
17532         maint.mk: more tight_scope improvements
17533         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17534         (_gl_TS_headers): Define only in if-0'd block.
17535         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17536         sometimes we must *not* use it.  Adjust uses accordingly.
17537         (sc_tight_scope): Use much simpler grep-based test to determine
17538         whether we skip this rule.
17539
17540         maint.mk: generalize/improve the tight-scope rule
17541         * top/maint.mk: Emit a warning when the test is skipped.
17542         (_gl_TS_dir): Add $(srcdir)/ prefix.
17543         (_gl_TS_function_match): Simplify, rather than trying
17544         to enumerate common types.  Otherwise, it would fail to match an
17545         "extern unsigned char const *" declaration in idutils.
17546         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17547         a way to support use of that type of macro.
17548         (_gl_TS_var_match): Simplify regexp.
17549         (_gl_TS_obj_files): New configurable variable.
17550         (_gl_TS_headers): Likewise.
17551
17552 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17553
17554         verify: fix bug when gnulib <assert.h> is also included
17555         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17556         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17557         Perhaps there's a better way, but this fixes the immediate problem.
17558         Problem reported by Bruno Haible in
17559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17560
17561 2011-05-22  Bruno Haible  <bruno@clisp.org>
17562
17563         xgetcwd: Simplify autoconf macro.
17564         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17565
17566 2011-05-22  Bruno Haible  <bruno@clisp.org>
17567
17568         New module 'mktime-internal'.
17569         * modules/mktime-internal: New file.
17570         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17571         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17572         mktime_internal as a C macro if libc has __mktime_internal.
17573         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17574         conditions.
17575         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17576
17577 2011-05-22  Bruno Haible  <bruno@clisp.org>
17578
17579         timegm: Correct mktime replacement statements.
17580         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17581         defining mktime as a C macro. This completes a 2009-07-28 commit.
17582
17583 2011-05-22  Bruno Haible  <bruno@clisp.org>
17584
17585         timegm: Simplify autoconf macro.
17586         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17587
17588 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17589
17590         clock-time: change to LGPLv2+.
17591         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17592         BSD-like but we have no mark for that; this is good enough for now.
17593
17594 2011-05-21  Bruno Haible  <bruno@clisp.org>
17595
17596         strerror_r: Fix comments.
17597         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17598
17599 2011-05-21  Bruno Haible  <bruno@clisp.org>
17600
17601         relocatable-prog-wrapper: Fix possible link error.
17602         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17603         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17604         (gl_FUNC_SETENV): ... to here.
17605         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17606         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17607
17608 2011-05-21  Bruno Haible  <bruno@clisp.org>
17609
17610         relocatable-prog-wrapper: Assume strerror() exists.
17611         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17612         m4/strerror.m4.
17613         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17614         * lib/relocwrapper.c: Remove mention of strerror module.
17615         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17616         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17617         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17618         C macro.
17619
17620 2011-05-21  Bruno Haible  <bruno@clisp.org>
17621
17622         select: Simplify replacement idiom.
17623         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17624         Win32 platforms.
17625         * lib/sys_select.in.h (select): Simplify accordingly.
17626         * modules/select (Depends-on): Likewise.
17627
17628 2011-05-21  Bruno Haible  <bruno@clisp.org>
17629
17630         mkdir-p: Simplify autoconf macro.
17631         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17632         gl_FUNC_LCHOWN.
17633
17634 2011-05-21  Eric Blake  <eblake@redhat.com>
17635
17636         strerror_r: avoid clobbering strerror on cygwin
17637         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17638         fall back instead to sys_errlist.
17639         * modules/strerror (configure.ac): Add witness.
17640         * tests/test-strerror_r.c (main): Enhance test.
17641         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17642         * tests/test-perror2.c (main): Free memory before exit.
17643
17644 2011-05-21  Bruno Haible  <bruno@clisp.org>
17645
17646         mkdtemp: Use gnulib naming conventions.
17647         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17648         * modules/mkdtemp (configure.ac): Update.
17649
17650 2011-05-20  Eric Blake  <eblake@redhat.com>
17651
17652         strerror_r: avoid corrupting errno on Solaris
17653         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17654         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17655
17656         strerror_r: avoid compiler warning
17657         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17658
17659         strerror_r: simplify AIX code
17660         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17661
17662         test-perror: avoid spurious failure on FreeBSD
17663         * modules/perror-tests (Depends-on): Add strerror, now that
17664         strerror_r no longer pulls it in.
17665
17666 2011-05-20  Bruno Haible  <bruno@clisp.org>
17667
17668         strerror_r-posix: Remove unused dependencies.
17669         * modules/strerror_r-posix (Depends-on): Remove strerror.
17670         Reported by Eric Blake.
17671
17672 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         intprops: remove assumption about A|B representation
17675         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17676         is a valid integer if both A and B are.  Although this is true for
17677         all known practical hosts, the C standard doesn't guarantee it,
17678         and the code need not assume it.  Also, this change may work around
17679         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17681
17682 2011-05-20  Eric Blake  <eblake@redhat.com>
17683
17684         perror: work around FreeBSD bug
17685         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17686         is broken.  Move AC_LIBOBJ...
17687         * modules/perror (configure.ac): Here.
17688         * doc/posix-functions/perror.texi (perror): Document this.
17689         * tests/test-perror2.c (main): Enhance test.
17690
17691         test-perror: check for strerror interactions
17692         * tests/macros.h (STREQ): Add macro.
17693         * modules/perror-tests (Files): Add second test.
17694         * tests/test-perror2.c (main): New file.
17695         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17696
17697         test-perror: rewrite to use init script
17698         * modules/perror-tests (Files): Add init.sh.
17699         * tests/test-perror.sh: Use temporary directory.
17700
17701 2011-05-20  Jim Meyering  <meyering@redhat.com>
17702
17703         maint: replace misused "a" with "an"
17704         * doc/intprops.texi: "a integer"
17705         * doc/regex.texi: "a explanation"
17706         * lib/alignof.h: "a object"
17707         * lib/argmatch.h: "a explanation"
17708         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17709         * lib/stdint.in.h: "a integer"
17710         * lib/userspec.c: "a owner"
17711         * doc/gnulib.texi: Fix "a idea", and reword.
17712
17713 2011-05-19  Jim Meyering  <meyering@redhat.com>
17714
17715         maint: correct misuse of "a" and "an"
17716         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17717         * lib/argp-help.c: "an docum...": s/an/a/
17718         * lib/argp-parse.c: "An vector": s/An/A/
17719         * lib/execute.c: "an native": s/an/a/
17720         * lib/spawn-pipe.c: Likewise.
17721         * lib/gc.h: "an Gc_rc": s/an/a/
17722         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17723         * lib/fts.c: "an stat.st_dev": s/an/a/
17724
17725 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17726
17727         intprops-tests: work around HP-UX 11.23 cc bug with constants
17728         * tests/test-intprops.c (VERIFY): New macro.
17729         (main): Use it, instead of verify, to work around the compiler bug; see
17730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17731
17732         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17733         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17734         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17735         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17736         (_GL_REMAINDER_OVERFLOW): Use it.
17737
17738         intprops-tests: revert unsigned part of previous change
17739         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17740         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17741         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17743
17744 2011-05-19  Bruno Haible  <bruno@clisp.org>
17745
17746         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17747         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17748         strerror_r() returned without filling the buffer.
17749         Reported by Eric Blake.
17750
17751 2011-05-19  Eric Blake  <eblake@redhat.com>
17752
17753         strerror_r: guarantee unchanged errno
17754         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17755         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17756         failure.
17757         * tests/test-strerror_r.c (main): Enhance test.
17758
17759 2011-05-19  Bruno Haible  <bruno@clisp.org>
17760
17761         strerror_r: Reorder #if blocks.
17762         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17763         for consistency with the previous commit.
17764
17765 2011-05-19  Bruno Haible  <bruno@clisp.org>
17766
17767         perror: Avoid clobbering the strerror buffer when possible.
17768         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17769         * lib/strerror.c: Include it.
17770         * modules/strerror (Files): Add lib/strerror-impl.h.
17771         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17772         (my_strerror): New function, defined through lib/strerror-impl.h.
17773         (perror): Use it instead of strerror.
17774         * modules/perror (Files): Add lib/strerror-impl.h.
17775         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17776
17777 2011-05-19  Eric Blake  <eblake@redhat.com>
17778
17779         strerror_r: fix on newer cygwin
17780         * lib/strerror_r.c (strerror_r): Cygwin now has
17781         __xpg_strerror_r, use it.
17782
17783 2011-05-19  Bruno Haible  <bruno@clisp.org>
17784
17785         strerror_r: Avoid clobbering the strerror buffer when possible.
17786         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17787         (sys_nerr, sys_errlist): New declarations.
17788         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17789         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17790         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17791
17792 2011-05-19  Bruno Haible  <bruno@clisp.org>
17793
17794         strerror_r: Fix test failure on mingw.
17795         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17796         EXTEND_STRERROR_R.
17797         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17798         macros from errno.in.h instead.
17799
17800 2011-05-19  Eric Blake  <eblake@redhat.com>
17801
17802         strerror: relax test for Solaris
17803         * tests/test-strerror.c (main): Permit Solaris behavior.
17804         * tests/test-strerror_r.c (main): Likewise.
17805
17806         strerror: enforce POSIX ruling on strerror(0)
17807         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17809         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17810         * doc/posix-functions/strerror.texi (strerror): Document it.
17811         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17812         * tests/test-strerror.c (main): Strengthen test.
17813         * tests/test-strerror_r.c (main): Likewise.
17814
17815 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17816
17817         intprop-tests: port to older and more-pedantic compilers
17818         * modules/intprops-tests (Files): Add tests/macros.h.
17819         * tests/test-intprops.c: Include macros.h.
17820         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17821         it's no longer documented to expand to an integer constant expression.
17822         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17823         argument is floating point, as it's no longer documented to expand
17824         to an integer constant expression in that case.
17825         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17826         compiler bugs reported by Bruno Haible.  See
17827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17828         (U0, U1): New constants, to work around the same bugs.  Also,
17829         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17830
17831         intprops: work around C compiler bugs
17832         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17833         bug in Sun C 5.11 2010/08/13 and other compilers; see
17834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17835
17836         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17837         * doc/intprops.texi (Integer Type Determination): Fix
17838         documentation for TYPE_IS_INTEGER: it returns an constant
17839         expression, not an integer constant expression.  Fix doc for
17840         TYPE_SIGNED: it returns an integer constant expression only if its
17841         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17842         hardly worth documented that way....)
17843
17844 2011-05-18  Bruno Haible  <bruno@clisp.org>
17845
17846         strerror_r: Avoid clobbering the strerror buffer when possible.
17847         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17848         Handle gnulib defined errno values here. When strerror() returns NULL
17849         or an empty string, return EINVAL.
17850         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17851         gnulib defined errno values here.
17852         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17853
17854 2011-05-18  Eric Blake  <eblake@redhat.com>
17855
17856         fnmatch: avoid compiler warning
17857         * lib/fnmatch_loop.c (FCT): Use correct type.
17858         Reported by Matthias Bolte.
17859
17860 2011-05-13  Jim Meyering  <meyering@redhat.com>
17861
17862         maint.mk: three new prohibit_<HDR>_without_use rules
17863         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17864         (sc_prohibit_stdio-safer_without_use): Likewise.
17865         (sc_prohibit_xfreopen_without_use): Likewise.
17866
17867 2011-05-17  Jim Meyering  <meyering@redhat.com>
17868
17869         announce-gen: fail if the NEWS delta is empty
17870         If there's nothing noteworthy in NEWS, then either you forgot
17871         or you shouldn't be releasing.
17872         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17873
17874 2011-05-17  Pádraig Brady <P@draigBrady.com>
17875
17876         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17877         reserved symbols starting with double underscore from the check.
17878
17879 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17880
17881         intprops: add doc
17882         * doc/intprops.texi: New file, documenting intprops.
17883         * doc/gnulib.texi (Particular Modules): Include it.
17884
17885         verify: add doc to gnulib manual and fix example
17886         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17887         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17888         (Compile-time Assertions): Fix example so it can't overflow.
17889
17890 2011-05-17  Jim Meyering  <meyering@redhat.com>
17891
17892         warnings.m4: don't usurp save_CPPFLAGS variable name
17893         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17894
17895         doc: fix typo
17896         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17897
17898 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17899             Bruno Haible  <bruno@clisp.org>
17900
17901         doc: Tweak recent change.
17902         * README (Portability guidelines): Tweak new text.
17903         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17904         Interix 6.1.
17905
17906 2011-05-16  Eric Blake  <eblake@redhat.com>
17907
17908         inttypes: avoid autoconf warning
17909         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17910         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17911
17912 2011-05-16  Sam Steingold <sds@gnu.org>
17913         and Eric Blake  <eblake@redhat.com>
17914
17915         vc-list-files: accept multiple directory operands
17916         * build-aux/vc-list-files: Iterate over all remaining operands.
17917
17918 2011-05-16  Bruno Haible  <bruno@clisp.org>
17919
17920         Fix confusion regarding deprecated modules.
17921         * modules/calloc (Status, Notice): Mark module as deprecated, not
17922         obsolete.
17923         * modules/fnmatch-posix (Status, Notice): Likewise.
17924         * modules/getdate (Status, Notice): Likewise.
17925         * modules/getopt (Status, Notice): Likewise.
17926         * modules/malloc (Status, Notice): Likewise.
17927         * modules/pipe (Status, Notice): Likewise.
17928         * modules/realloc (Status, Notice): Likewise.
17929         * modules/rename-dest-slash (Status, Notice): Likewise.
17930         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17931         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17932         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17933         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17934         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17935
17936 2011-05-16  Bruno Haible  <bruno@clisp.org>
17937
17938         doc: List the target platforms.
17939         * doc/gnulib-intro.texi (Target Platforms): New section.
17940         * doc/gnulib.texi (Introduction): Update menu.
17941         * README (Portability guidelines): Refer to the new section. Update
17942         statement about oldest supported environment. Remove rationale why
17943         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17944         unportable C89 function.
17945         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17946         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17947
17948 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17951
17952 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17953
17954         intprops-tests: new module
17955         * modules/intprops-tests, tests/test-intprops.c: New files.
17956
17957         intprops: add safe, portable integer overflow checking
17958         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17959         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17960         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17961         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17962         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17963         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17964         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17965         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17966         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17967         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17968         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17969
17970 2011-05-12  James Youngman  <jay@gnu.org>
17971
17972         Add a test for glibc's Bugzilla bug #12378.
17973         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17974         doesn't allow the literal matching of a lone "[" (which is
17975         required by POSIX).
17976         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17977
17978 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17979
17980         Sync glibc change fixing Bugzilla bug #12378.
17981         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17982         beginning and fall back to matching as normal character if the
17983         string ends before the matching ']' is found.  This is what POSIX
17984         requires.
17985
17986 2011-05-13  Eric Blake  <eblake@redhat.com>
17987
17988         getcwd-lgpl: relax test for FreeBSD
17989         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17990         issue.
17991         * tests/test-getcwd-lgpl.c (main): Relax test.
17992         Reported by Matthias Bolte.
17993
17994 2011-05-11  Eric Blake  <eblake@redhat.com>
17995
17996         test-fflush: silence compiler warning
17997         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17998
17999 2011-05-11  Bruno Haible  <bruno@clisp.org>
18000
18001         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18002         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18003         * modules/canonicalize (Depends-on): Add 'nocrash'.
18004         * modules/canonicalize-lgpl (Depends-on): Likewise.
18005         * doc/posix-functions/realpath.texi: Update platforms list.
18006         Reported by Ryan Schmidt <ryandesign@macports.org>.
18007
18008 2011-05-11  Bruno Haible  <bruno@clisp.org>
18009
18010         group-member: Declare function in <unistd.h>.
18011         * lib/unistd.in.h (group_member): New declaration.
18012         * lib/group-member.h: Remove file.
18013         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18014         * tests/test-unistd-c++.cc: Check signature of group_member.
18015         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18016         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18017         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18018         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18019         HAVE_GROUP_MEMBER.
18020         * modules/group-member (Files): Remove lib/group-member.h.
18021         (Depends-on): Add unistd. Specify conditions.
18022         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18023         (Include): Change to <unistd.h>.
18024         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18025         HAVE_GROUP_MEMBER.
18026         * NEWS: Mention the change.
18027         * lib/euidaccess.c: Don't include group-member.h.
18028
18029 2011-05-11  Bruno Haible  <bruno@clisp.org>
18030
18031         group-member: Document module.
18032         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18033         module.
18034
18035 2011-05-11  Bruno Haible  <bruno@clisp.org>
18036
18037         fclose: Fix mistake earlier today.
18038         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18039
18040 2011-05-11  Eric Blake  <eblake@redhat.com>
18041
18042         fclose: preserve fflush errors
18043         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18044         Reported by Jim Meyering.
18045
18046         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18047         * build-aux/bootstrap (check_versions): When no specific version
18048         is required, merely check that the app produces an exit status
18049         that indicates its existence.
18050
18051         maint.mk: drop redundant check
18052         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18053         the same but better.
18054
18055 2011-05-11  Bruno Haible  <bruno@clisp.org>
18056
18057         fclose: Fix possible link error.
18058         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18059         unregister_shadow_fd. Improve comments.
18060         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18061         Eric Blake.
18062
18063 2011-05-11  Jim Meyering  <meyering@redhat.com>
18064
18065         maint.mk: improve "can not" detection and generalize rule name
18066         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18067         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18068         Use the same technique as in sc_prohibit_doubled_word, so that
18069         we recognize "can not" also when the words are separated by a newline.
18070         Suggested by Eric Blake.
18071         (perl_filename_lineno_text_): Define.  Factored out of...
18072         (prohibit_doubled_word_): ...here.  Use the new definition.
18073         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18074         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18075         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18076
18077 2011-05-10  Eric Blake  <eblake@redhat.com>
18078
18079         fclose: avoid double close race when possible
18080         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18081         all but WINDOWS_SOCKETS.
18082
18083 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18084
18085         openat: correct new comment
18086         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18087
18088 2011-05-10  Jim Meyering  <meyering@redhat.com>
18089
18090         openat: add comments
18091         * lib/openat-proc.c (openat_proc_name): Add comments,
18092         mostly from Eric Blake.
18093
18094 2011-05-09  Eric Blake  <eblake@redhat.com>
18095
18096         openat: reduce syscalls in first probe of /proc
18097         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18098         be a directory.  Simplify the probe for .. bugs.
18099         * modules/openat (Depends-on): Drop same-inode.
18100         Reported by Bastien ROUCARIES.
18101
18102 2011-05-09  Jim Meyering  <meyering@redhat.com>
18103
18104         maint.mk: change semantics/name of tight_scope variables
18105         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18106         Rename variables to align with semantics that make them more useful.
18107
18108         maint.mk: tweak new rule's name not to impinge
18109         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18110         (sc_tight_scope): Use new rule name rather than $@-0.
18111
18112         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18113         * top/maint.mk (sc_tight_scope): New rule.
18114         (sc_tight_scope-0): New rule, ifdef'd out.
18115         (_gl_TS_dir): Default.
18116         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18117         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18118
18119 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18120
18121         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18122         Haible <bruno@clisp.org>.
18123
18124 2011-05-08  Bruno Haible  <bruno@clisp.org>
18125
18126         Comments.
18127         * m4/isnanf.m4: Add comment.
18128         * m4/isnanl.m4: Likewise.
18129
18130 2011-05-08  Bruno Haible  <bruno@clisp.org>
18131
18132         glob: Remove obsolete macro.
18133         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18134
18135 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18136
18137         intprops: Sun C 5.11 supports __typeof__
18138         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18139         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18140         which is new.
18141         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18142
18143         intprops: switch to usual gnulib indenting and naming
18144         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18145         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18146
18147         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18148
18149 2011-05-08  Jim Meyering  <meyering@redhat.com>
18150
18151         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18152         * top/maint.mk (release-prep): Use make's --no-print-directory
18153         option when generating the announcement.  This eliminates the
18154         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18155         generated announcement template.
18156
18157 2011-05-08  Bruno Haible  <bruno@clisp.org>
18158
18159         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18160         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18161         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18162
18163 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18164
18165         ignore-value, verify: Omit include files from lib_SOURCES.
18166         * modules/ignore-value, modules/verify (Makefile.am):
18167         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18168         that leads Automake to duplicate use of am__objects_... variables
18169         in Makefile.in.  See
18170         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18171
18172 2011-05-07  Bruno Haible  <bruno@clisp.org>
18173
18174         fclose: Simplify autoconf macro.
18175         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18176         defined.
18177
18178 2011-05-07  Bruno Haible  <bruno@clisp.org>
18179
18180         canonicalize-lgpl: Fix autoconf macro ordering bug.
18181         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18182         gl_STDLIB_H_DEFAULTS.
18183
18184 2011-05-06  Eric Blake  <eblake@redhat.com>
18185
18186         maintainer-makefile: make sc_po_check easier to tune
18187         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18188         to probe for strings, such as an alternate location for gnulib.
18189
18190         fclose: guarantee behavior on seekable stdin
18191         * modules/fclose (Depends-on): Add fflush.
18192         * doc/posix-functions/fclose.texi (fclose): Document this.
18193         * tests/test-fclose.c (main): Make test for this unconditional.
18194
18195 2011-05-06  Bruno Haible  <bruno@clisp.org>
18196
18197         fflush, fpurge: Relicense under LGPLv2+.
18198         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18199         * modules/fpurge (License): Likewise.
18200         With permission from Eric Blake and Jim Meyering.
18201         Suggested by Eric Blake.
18202
18203 2011-05-06  Karl Berry  <karl@gnu.org>
18204
18205         * MODULES.html.sh (func_all_modules): remove exit.
18206
18207 2011-05-06  Jim Meyering  <meyering@redhat.com>
18208
18209         maint.mk: use info-gnu@ as the default only for a stable release
18210         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18211         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18212         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18213         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18214
18215 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18216
18217         assert-h: new module, which supports C1X-style static_assert
18218         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18219         * lib/verify.h: Revamp so that this can be copied into assert.h,
18220         while retaining the ability to use it standalone as before.
18221         Rename private identifiers so as not to encroach on the
18222         standard C namespace, since this is now used by assert.h.
18223         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18224         the old verify_true.
18225         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18226         the old verify_true.  Use _GL_VERIFY_TYPE.
18227         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18228         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18229         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18230         defined when this file is copied into the replacement assert.h.
18231         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18232         and _Static_assert is not built in.
18233         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18234         defined, and use the new macros mentioned above.
18235         * doc/posix-headers/assert.texi: Document this.
18236
18237 2011-05-05  Bruno Haible  <bruno@clisp.org>
18238
18239         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18240         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18241         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18242         gl_REPLACE_FCLOSE here.
18243         * modules/fflush (Depends-on): Remove fclose.
18244         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18245         combination with module 'fclose'.
18246
18247 2011-05-05  Bruno Haible  <bruno@clisp.org>
18248
18249         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18250         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18251         gl_FUNC_FFLUSH.
18252         (gl_FUNC_FFLUSH): Use it.
18253         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18254         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18255         gl_REPLACE_FSEEKO here.
18256
18257 2011-05-05  Bruno Haible  <bruno@clisp.org>
18258
18259         tzset: Relicense under LGPL.
18260         * modules/tzset (License): Change to LGPL.
18261         No agreement needed; it's a no-op.
18262
18263         strtoimax, strtoumax: Relicense under LGPL.
18264         * modules/strtoimax (License): Change to LGPL.
18265         * modules/strtoumax (License): Likewise.
18266         With permission from Jim Meyering, Paul Eggert:
18267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18269
18270         getgroups: Relicense under LGPL.
18271         * modules/getgroups (License): Change to LGPL.
18272         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18276
18277         nanosleep: Relicense under LGPL.
18278         * modules/nanosleep (License): Change to LGPL.
18279         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18280         Haible:
18281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18285
18286         futimens: Relicense under LGPL.
18287         * modules/futimens (License): Change to LGPL.
18288         With permission from Eric Blake:
18289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18290
18291         fflush: Relicense under LGPL.
18292         * modules/fflush (License): Change to LGPL.
18293         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18297
18298         tmpfile: Relicense under LGPL.
18299         * modules/tmpfile (License): Change to LGPL.
18300         With permission from Ben Pfaff:
18301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18302
18303         isfinite: Relicense under LGPL.
18304         * modules/isfinite (License): Change to LGPL.
18305         With permission from Ben Pfaff, Bruno Haible:
18306         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18308
18309         acosl..tanl: Relicense under LGPL.
18310         * modules/acosl (License): Change to LGPL.
18311         * modules/asinl (License): Likewise.
18312         * modules/atanl (License): Likewise.
18313         * modules/cosl (License): Likewise.
18314         * modules/expl (License): Likewise.
18315         * modules/logl (License): Likewise.
18316         * modules/sinl (License): Likewise.
18317         * modules/sqrtl (License): Likewise.
18318         * modules/tanl (License): Likewise.
18319         Source code originally from glibc and Paolo Bonzini. Agreements:
18320         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18322
18323 2011-05-05  Bruno Haible  <bruno@clisp.org>
18324
18325         signal: Define sighandler_t.
18326         * lib/signal.in.h (sighandler_t): New type.
18327         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18328         whether sighandler_t is defined.
18329         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18330         * modules/signal (Depends-on): Add extensions.
18331         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18332         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18333         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18334
18335 2011-05-05  Eric Blake  <eblake@redhat.com>
18336
18337         maint: remove useless REPLACE_*_H macros
18338         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18339         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18341         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18342         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18343         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18344         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18345         * m4/btowc.m4: Update callers.
18346         * m4/dirfd.m4: Likewise.
18347         * m4/duplocale.m4: Likewise.
18348         * m4/fchdir.m4: Likewise.
18349         * m4/fdopendir.m4: Likewise.
18350         * m4/inet_ntop.m4: Likewise.
18351         * m4/inet_pton.m4: Likewise.
18352         * m4/ioctl.m4: Likewise.
18353         * m4/mbrlen.m4: Likewise.
18354         * m4/mbrtowc.m4: Likewise.
18355         * m4/mbsinit.m4: Likewise.
18356         * m4/mbsnrtowcs.m4: Likewise.
18357         * m4/mbsrtowcs.m4: Likewise.
18358         * m4/poll.m4: Likewise.
18359         * m4/setlocale.m4: Likewise.
18360         * m4/wcrtomb.m4: Likewise.
18361         * m4/wcsnrtombs.m4: Likewise.
18362         * m4/wcsrtombs.m4: Likewise.
18363         * m4/wctob.m4: Likewise.
18364         * m4/wcwidth.m4: Likewise.
18365         * modules/posix_spawn: Likewise.
18366         * modules/posix_spawn_file_actions_addclose: Likewise.
18367         * modules/posix_spawn_file_actions_adddup2: Likewise.
18368         * modules/posix_spawn_file_actions_addopen: Likewise.
18369         * modules/posix_spawn_file_actions_destroy: Likewise.
18370         * modules/posix_spawn_file_actions_init: Likewise.
18371         * modules/posix_spawnattr_destroy: Likewise.
18372         * modules/posix_spawnattr_getflags: Likewise.
18373         * modules/posix_spawnattr_getpgroup: Likewise.
18374         * modules/posix_spawnattr_getschedparam: Likewise.
18375         * modules/posix_spawnattr_getschedpolicy: Likewise.
18376         * modules/posix_spawnattr_getsigdefault: Likewise.
18377         * modules/posix_spawnattr_getsigmask: Likewise.
18378         * modules/posix_spawnattr_init: Likewise.
18379         * modules/posix_spawnattr_setflags: Likewise.
18380         * modules/posix_spawnattr_setpgroup: Likewise.
18381         * modules/posix_spawnattr_setschedparam: Likewise.
18382         * modules/posix_spawnattr_setschedpolicy: Likewise.
18383         * modules/posix_spawnattr_setsigdefault: Likewise.
18384         * modules/posix_spawnattr_setsigmask: Likewise.
18385         * modules/posix_spawnp: Likewise.
18386
18387 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18388
18389         Add option to do-release-commit-and-tag to specify branch.
18390         * build-aux/do-release-commit-and-tag: Add --branch.
18391
18392 2011-05-03  Bruno Haible  <bruno@clisp.org>
18393
18394         Avoid unnecessary compilation units, through conditional dependencies.
18395         * modules/accept (Depends-on): Add conditions to the dependencies.
18396         * modules/acosl (Depends-on): Likewise.
18397         * modules/argz (Depends-on): Likewise.
18398         * modules/asinl (Depends-on): Likewise.
18399         * modules/atanl (Depends-on): Likewise.
18400         * modules/atoll (Depends-on): Likewise.
18401         * modules/bind (Depends-on): Likewise.
18402         * modules/btowc (Depends-on): Likewise.
18403         * modules/canonicalize-lgpl (Depends-on): Likewise.
18404         * modules/ceil (Depends-on): Likewise.
18405         * modules/ceilf (Depends-on): Likewise.
18406         * modules/ceill (Depends-on): Likewise.
18407         * modules/chdir-long (Depends-on): Likewise.
18408         * modules/chown (Depends-on): Likewise.
18409         * modules/close (Depends-on): Likewise.
18410         * modules/connect (Depends-on): Likewise.
18411         * modules/cosl (Depends-on): Likewise.
18412         * modules/dirfd (Depends-on): Likewise.
18413         * modules/dprintf (Depends-on): Likewise.
18414         * modules/dprintf-posix (Depends-on): Likewise.
18415         * modules/error (Depends-on): Likewise.
18416         * modules/euidaccess (Depends-on): Likewise.
18417         * modules/expl (Depends-on): Likewise.
18418         * modules/faccessat (Depends-on): Likewise.
18419         * modules/fchdir (Depends-on): Likewise.
18420         * modules/fclose (Depends-on): Likewise.
18421         * modules/fcntl (Depends-on): Likewise.
18422         * modules/fdopendir (Depends-on): Likewise.
18423         * modules/fflush (Depends-on): Likewise.
18424         * modules/floor (Depends-on): Likewise.
18425         * modules/floorf (Depends-on): Likewise.
18426         * modules/floorl (Depends-on): Likewise.
18427         * modules/fnmatch (Depends-on): Likewise.
18428         * modules/fopen (Depends-on): Likewise.
18429         * modules/fprintf-posix (Depends-on): Likewise.
18430         * modules/frexp (Depends-on): Likewise.
18431         * modules/frexp-nolibm (Depends-on): Likewise.
18432         * modules/frexpl (Depends-on): Likewise.
18433         * modules/frexpl-nolibm (Depends-on): Likewise.
18434         * modules/fseek (Depends-on): Likewise.
18435         * modules/fsusage (Depends-on): Likewise.
18436         * modules/ftell (Depends-on): Likewise.
18437         * modules/ftello (Depends-on): Likewise.
18438         * modules/futimens (Depends-on): Likewise.
18439         * modules/getcwd (Depends-on): Likewise.
18440         * modules/getcwd-lgpl (Depends-on): Likewise.
18441         * modules/getdelim (Depends-on): Likewise.
18442         * modules/getdomainname (Depends-on): Likewise.
18443         * modules/getgroups (Depends-on): Likewise.
18444         * modules/gethostname (Depends-on): Likewise.
18445         * modules/getline (Depends-on): Likewise.
18446         * modules/getlogin_r (Depends-on): Likewise.
18447         * modules/getopt-posix (Depends-on): Likewise.
18448         * modules/getpeername (Depends-on): Likewise.
18449         * modules/getsockname (Depends-on): Likewise.
18450         * modules/getsockopt (Depends-on): Likewise.
18451         * modules/getsubopt (Depends-on): Likewise.
18452         * modules/getusershell (Depends-on): Likewise.
18453         * modules/glob (Depends-on): Likewise.
18454         * modules/grantpt (Depends-on): Likewise.
18455         * modules/iconv_open (Depends-on): Likewise.
18456         * modules/iconv_open-utf (Depends-on): Likewise.
18457         * modules/inet_ntop (Depends-on): Likewise.
18458         * modules/inet_pton (Depends-on): Likewise.
18459         * modules/ioctl (Depends-on): Likewise.
18460         * modules/isapipe (Depends-on): Likewise.
18461         * modules/isfinite (Depends-on): Likewise.
18462         * modules/isinf (Depends-on): Likewise.
18463         * modules/lchown (Depends-on): Likewise.
18464         * modules/ldexpl (Depends-on): Likewise.
18465         * modules/link (Depends-on): Likewise.
18466         * modules/linkat (Depends-on): Likewise.
18467         * modules/listen (Depends-on): Likewise.
18468         * modules/logl (Depends-on): Likewise.
18469         * modules/lstat (Depends-on): Likewise.
18470         * modules/mbrlen (Depends-on): Likewise.
18471         * modules/mbrtowc (Depends-on): Likewise.
18472         * modules/mbsinit (Depends-on): Likewise.
18473         * modules/mbsnrtowcs (Depends-on): Likewise.
18474         * modules/mbsrtowcs (Depends-on): Likewise.
18475         * modules/mbtowc (Depends-on): Likewise.
18476         * modules/memcmp (Depends-on): Likewise.
18477         * modules/mkdir (Depends-on): Likewise.
18478         * modules/mkdtemp (Depends-on): Likewise.
18479         * modules/mkfifo (Depends-on): Likewise.
18480         * modules/mkfifoat (Depends-on): Likewise.
18481         * modules/mknod (Depends-on): Likewise.
18482         * modules/mkostemp (Depends-on): Likewise.
18483         * modules/mkostemps (Depends-on): Likewise.
18484         * modules/mkstemp (Depends-on): Likewise.
18485         * modules/mkstemps (Depends-on): Likewise.
18486         * modules/mktime (Depends-on): Likewise.
18487         * modules/nanosleep (Depends-on): Likewise.
18488         * modules/open (Depends-on): Likewise.
18489         * modules/openat (Depends-on): Likewise.
18490         * modules/perror (Depends-on): Likewise.
18491         * modules/poll (Depends-on): Likewise.
18492         * modules/popen (Depends-on): Likewise.
18493         * modules/posix_spawn (Depends-on): Likewise.
18494         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18495         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18496         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18497         * modules/posix_spawnp (Depends-on): Likewise.
18498         * modules/pread (Depends-on): Likewise.
18499         * modules/printf-posix (Depends-on): Likewise.
18500         * modules/ptsname (Depends-on): Likewise.
18501         * modules/putenv (Depends-on): Likewise.
18502         * modules/pwrite (Depends-on): Likewise.
18503         * modules/readline (Depends-on): Likewise.
18504         * modules/readlink (Depends-on): Likewise.
18505         * modules/readlinkat (Depends-on): Likewise.
18506         * modules/recv (Depends-on): Likewise.
18507         * modules/recvfrom (Depends-on): Likewise.
18508         * modules/regex (Depends-on): Likewise.
18509         * modules/remove (Depends-on): Likewise.
18510         * modules/rename (Depends-on): Likewise.
18511         * modules/renameat (Depends-on): Likewise.
18512         * modules/rmdir (Depends-on): Likewise.
18513         * modules/round (Depends-on): Likewise.
18514         * modules/roundf (Depends-on): Likewise.
18515         * modules/roundl (Depends-on): Likewise.
18516         * modules/rpmatch (Depends-on): Likewise.
18517         * modules/select (Depends-on): Likewise.
18518         * modules/send (Depends-on): Likewise.
18519         * modules/sendto (Depends-on): Likewise.
18520         * modules/setenv (Depends-on): Likewise.
18521         * modules/setlocale (Depends-on): Likewise.
18522         * modules/setsockopt (Depends-on): Likewise.
18523         * modules/shutdown (Depends-on): Likewise.
18524         * modules/sigaction (Depends-on): Likewise.
18525         * modules/signbit (Depends-on): Likewise.
18526         * modules/sigprocmask (Depends-on): Likewise.
18527         * modules/sinl (Depends-on): Likewise.
18528         * modules/sleep (Depends-on): Likewise.
18529         * modules/snprintf (Depends-on): Likewise.
18530         * modules/snprintf-posix (Depends-on): Likewise.
18531         * modules/socket (Depends-on): Likewise.
18532         * modules/sprintf-posix (Depends-on): Likewise.
18533         * modules/sqrtl (Depends-on): Likewise.
18534         * modules/stat (Depends-on): Likewise.
18535         * modules/strchrnul (Depends-on): Likewise.
18536         * modules/strdup-posix (Depends-on): Likewise.
18537         * modules/strerror (Depends-on): Likewise.
18538         * modules/strerror_r-posix (Depends-on): Likewise.
18539         * modules/strndup (Depends-on): Likewise.
18540         * modules/strnlen (Depends-on): Likewise.
18541         * modules/strptime (Depends-on): Likewise.
18542         * modules/strsep (Depends-on): Likewise.
18543         * modules/strsignal (Depends-on): Likewise.
18544         * modules/strstr-simple (Depends-on): Likewise.
18545         * modules/strtod (Depends-on): Likewise.
18546         * modules/strtoimax (Depends-on): Likewise.
18547         * modules/strtok_r (Depends-on): Likewise.
18548         * modules/strtoumax (Depends-on): Likewise.
18549         * modules/symlink (Depends-on): Likewise.
18550         * modules/symlinkat (Depends-on): Likewise.
18551         * modules/tanl (Depends-on): Likewise.
18552         * modules/tcgetsid (Depends-on): Likewise.
18553         * modules/tmpfile (Depends-on): Likewise.
18554         * modules/trunc (Depends-on): Likewise.
18555         * modules/truncf (Depends-on): Likewise.
18556         * modules/truncl (Depends-on): Likewise.
18557         * modules/uname (Depends-on): Likewise.
18558         * modules/unlink (Depends-on): Likewise.
18559         * modules/unlockpt (Depends-on): Likewise.
18560         * modules/unsetenv (Depends-on): Likewise.
18561         * modules/usleep (Depends-on): Likewise.
18562         * modules/utimensat (Depends-on): Likewise.
18563         * modules/vasprintf (Depends-on): Likewise.
18564         * modules/vdprintf (Depends-on): Likewise.
18565         * modules/vdprintf-posix (Depends-on): Likewise.
18566         * modules/vfprintf-posix (Depends-on): Likewise.
18567         * modules/vprintf-posix (Depends-on): Likewise.
18568         * modules/vsnprintf (Depends-on): Likewise.
18569         * modules/vsnprintf-posix (Depends-on): Likewise.
18570         * modules/vsprintf-posix (Depends-on): Likewise.
18571         * modules/wcrtomb (Depends-on): Likewise.
18572         * modules/wcscasecmp (Depends-on): Likewise.
18573         * modules/wcscspn (Depends-on): Likewise.
18574         * modules/wcsdup (Depends-on): Likewise.
18575         * modules/wcsncasecmp (Depends-on): Likewise.
18576         * modules/wcsnrtombs (Depends-on): Likewise.
18577         * modules/wcspbrk (Depends-on): Likewise.
18578         * modules/wcsrtombs (Depends-on): Likewise.
18579         * modules/wcsspn (Depends-on): Likewise.
18580         * modules/wcsstr (Depends-on): Likewise.
18581         * modules/wcstok (Depends-on): Likewise.
18582         * modules/wcswidth (Depends-on): Likewise.
18583         * modules/wctob (Depends-on): Likewise.
18584         * modules/wctomb (Depends-on): Likewise.
18585         * modules/wctype (Depends-on): Likewise.
18586         * modules/wcwidth (Depends-on): Likewise.
18587         * modules/write (Depends-on): Likewise.
18588
18589 2011-05-03  Bruno Haible  <bruno@clisp.org>
18590
18591         Support for conditional dependencies.
18592         * doc/gnulib.texi (Module description): Document the syntax of
18593         conditional dependencies.
18594         * gnulib-tool: New option --conditional-dependencies.
18595         (func_usage): Document it.
18596         (cond_dependencies): New variable.
18597         (func_get_automake_snippet_conditional,
18598         func_get_automake_snippet_unconditional): New functions, extracted from
18599         func_get_automake_snippet.
18600         (func_get_automake_snippet): Use them.
18601         (sed_first_32_chars): New variable.
18602         (func_module_shellfunc_name): New function.
18603         (func_module_shellvar_name): New function.
18604         (func_module_conditional_name): New function.
18605         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18606         func_cond_module_condition): New functions.
18607         (func_modules_transitive_closure): Add support for conditional
18608         dependencies.
18609         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18610         conditional automake snippet in an automake conditional.
18611         (func_emit_autoconf_snippets): Emit shell functions that contain the
18612         code for conditional modules.
18613         (func_import, func_create_testdir): Update specification.
18614
18615 2011-05-03  Eric Blake  <eblake@redhat.com>
18616
18617         test-getaddrinfo: report error information
18618         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18619
18620 2011-05-03  Jim Meyering  <meyering@redhat.com>
18621
18622         bootstrap: avoid build failure when $GZIP is set
18623         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18624         program name.  If defined at all, it is supposed to list gzip options.
18625         Reported by Alan Curry in http://debbugs.gnu.org/8609
18626
18627 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18628
18629         readme-release: new module with release instructions
18630         * modules/readme-release: New module.
18631         * top/README-release: New file, from coreutils, grep, diffutils.
18632         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18633
18634 2011-05-02  Eric Blake  <eblake@redhat.com>
18635
18636         fflush: also replace fclose when fixing fflush
18637         * modules/fflush (Depends-on): Add fclose.
18638         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18639         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18640         memstreams with no backing fd.
18641         * doc/posix-functions/fclose.texi (fclose): Document the use of
18642         fflush module to fix the bug.
18643         * tests/test-fclose.c (main): Relax test when fclose is used in
18644         isolation.
18645
18646         fclose: add some tests
18647         * modules/fclose-tests: New test module.
18648         * tests/test-fclose.c: New file.
18649         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18650
18651         fclose: reduced dependencies
18652         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18653         simpler lseek.
18654         * lib/fclose.c (rpl_fclose): Likewise.
18655         Reported by Simon Josefsson.
18656
18657         exit: drop remaining clients
18658         * modules/argmatch (Depends-on): Replace exit with stdlib.
18659         * modules/copy-file (Depends-on): Likewise.
18660         * modules/execute (Depends-on): Likewise.
18661         * modules/exitfail (Depends-on): Likewise.
18662         * modules/obstack (Depends-on): Likewise.
18663         * modules/pagealign_alloc (Depends-on): Likewise.
18664         * modules/pipe-filter-gi (Depends-on): Likewise.
18665         * modules/pipe-filter-ii (Depends-on): Likewise.
18666         * modules/savewd (Depends-on): Likewise.
18667         * modules/spawn-pipe (Depends-on): Likewise.
18668         * modules/wait-process (Depends-on): Likewise.
18669         * modules/xsetenv (Depends-on): Likewise.
18670         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18671         * modules/git-merge-changelog (Depends-on): Likewise.
18672         * modules/long-options (Depends-on): Likewise.
18673         * modules/pt_chown (Depends-on): Likewise.
18674         * modules/sysexits (Depends-on): Likewise.
18675
18676         freading: relax license from LGPLv3+ to LGPLv2+
18677         * modules/freading (License): Relax LGPL version.
18678
18679 2011-05-02  Bruno Haible  <bruno@clisp.org>
18680
18681         fchdir: Remove unused dependencies.
18682         * modules/fchdir (Depends-on): Remove include_next.
18683
18684 2011-05-02  Bruno Haible  <bruno@clisp.org>
18685
18686         gnulib-tool: Refactor.
18687         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18688         from func_emit_autoconf_snippets.
18689         (func_emit_autoconf_snippets): Use it.
18690
18691 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18692
18693         * NEWS: Document removal of 'exit'.
18694         * modules/exit: Remove file.
18695
18696 2011-05-01  Bruno Haible  <bruno@clisp.org>
18697
18698         Update DEPENDENCIES.
18699         * DEPENDENCIES (gettext): Recommend the newest release.
18700         Reported by Simon Josefsson.
18701
18702 2011-05-01  Bruno Haible  <bruno@clisp.org>
18703
18704         gnulib-tool: Reduce code duplication.
18705         * gnulib-tool (func_emit_autoconf_snippets): New function.
18706         (func_import, func_create_testdir): Use it.
18707
18708 2011-04-30  Eric Blake  <eblake@redhat.com>
18709
18710         fclose: don't fail on non-seekable input stream
18711         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18712         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18713         since fflush is allowed to fail in that case.
18714
18715 2011-04-30  Bruno Haible  <bruno@clisp.org>
18716
18717         dup3: cleanup
18718         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18719
18720 2011-04-30  Bruno Haible  <bruno@clisp.org>
18721
18722         netdb: Make it work in C++ mode.
18723         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18724         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18725         module.
18726         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18727         gl_MODULE_INDICATOR_FOR_TESTS.
18728         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18729         * modules/netdb-c++-tests: New file.
18730         * tests/test-netdb-c++.cc: New file.
18731
18732 2011-04-30  Bruno Haible  <bruno@clisp.org>
18733
18734         New modules 'vfscanf', 'vscanf'.
18735         * modules/vfscanf: New file.
18736         * modules/vscanf: New file.
18737         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18738         here.
18739         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18740         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18741
18742 2011-04-30  Bruno Haible  <bruno@clisp.org>
18743
18744         passfd: Add comments.
18745         * lib/passfd.c: Add comments about platforms.
18746
18747 2011-04-30  Bruno Haible  <bruno@clisp.org>
18748
18749         sys_uio: Make <sys/uio.h> self-contained.
18750         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18751         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18752
18753 2011-04-30  Bruno Haible  <bruno@clisp.org>
18754
18755         sys_socket: Ensure 'struct iovec' definition.
18756         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18757         <sys/socket.h>.
18758         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18759
18760 2011-04-30  Bruno Haible  <bruno@clisp.org>
18761
18762         sys_uio: Protect definition of 'struct iovec'.
18763         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18764         it as a C struct.
18765
18766 2011-04-30  Bruno Haible  <bruno@clisp.org>
18767
18768         manywarnings: fix indentation
18769         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18770
18771 2011-04-30  Pádraig Brady <P@draigBrady.com>
18772
18773         manywarnings: add -Wno-missing-field-initializers if needed.
18774         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18775         option if it's needed to allow initialization with { 0, }
18776
18777 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18778
18779         announce-gen: cosmetic improvement
18780         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18781
18782 2011-04-29  Jim Meyering  <meyering@redhat.com>
18783
18784         vc-list-files: indent with spaces, not TABs
18785         * build-aux/vc-list-files: Convert leading TABs to spaces,
18786         to match the style of most other files in gnulib.
18787
18788         announce-gen: indent with spaces, not TABs
18789         * build-aux/announce-gen: Convert all TABs to spaces, to match
18790         the style of most other files in gnulib.
18791
18792 2011-04-29  Eric Blake  <eblake@redhat.com>
18793
18794         quotearg: avoid uninitialized variable use
18795         * lib/quotearg.c (quoting_options_from_style): Initialize
18796         remaining fields, and ensure that custom styles are only used via
18797         quoting_options rather than quoting_style.
18798
18799 2011-04-29  Jim Meyering  <meyering@redhat.com>
18800
18801         maint.mk: remove unused VC-tag variable
18802         * top/maint.mk (VC-tag): Remove unused variable.
18803
18804 2011-04-29  Bruno Haible  <bruno@clisp.org>
18805
18806         netdb: fix gai_strerror replacements
18807         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18808         * modules/netdb: Substitute it.
18809
18810 2011-04-29  Jim Meyering  <meyering@redhat.com>
18811
18812         test-getcwd.c: avoid new set-but-not-used warning
18813         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18814         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18815         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18816         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18817
18818         test-hash.c: avoid a new shadowing warning
18819         * tests/test-hash.c (main): Don't shadow "dup".
18820
18821 2011-04-28  Eric Blake  <eblake@redhat.com>
18822
18823         getaddrinfo: fix gai_strerror signature
18824         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18825         and work around mingw with UNICODE defined.
18826         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18827         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18828         * modules/netdb (Makefile.am): Substitute it.
18829         * lib/netdb.in.h (gai_strerror): Declare replacement.
18830         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18831         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18832         the fix.
18833
18834         getsockopt: avoid compiler warning
18835         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18836         Reported by Matthias Bolte.
18837
18838         tests: drop unused link dependency
18839         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18840         * modules/dirent-safer-tests (Makefile.am): Likewise.
18841         * modules/fdopendir-tests (Makefile.am): Likewise.
18842         * modules/mkfifoat-tests (Makefile.am): Likewise.
18843         * modules/openat-safer-tests (Makefile.am): Likewise.
18844         * modules/openat-tests (Makefile.am): Likewise.
18845         * modules/readlinkat-tests (Makefile.am): Likewise.
18846         * modules/symlinkat-tests (Makefile.am): Likewise.
18847         * modules/linkat-tests (Makefile.am): Likewise.
18848         (Depends-on): Switch to filenamecat-lgpl.
18849         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18850         LIBINTL.
18851         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18852         * tests/test-linkat.c (main): Don't require xalloc.
18853
18854         hash, mgetgroups: drop xalloc dependency
18855         * lib/hash.c (includes): Adjust includes.
18856         * lib/mgetgroups.c (includes): Likewise.
18857         (xgetgroups): Move...
18858         * lib/xgetgroups.c: ...to new file.
18859         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18860         * modules/xgetgroups: New file, split from...
18861         * modules/mgetgroups: ...here.
18862         (Depends-on): Add xalloc-oversized.
18863         * modules/hash (Depends-on): Likewise.
18864         * modules/hash-tests (Depends-on): Drop xalloc.
18865         (test_hash_LDADD): Drop unused library.
18866         * tests/test-hash.c (main): Break xalloc dependency.
18867         (includes): Drop unused include.
18868
18869         xalloc-oversized: new module
18870         * modules/xalloc-oversized: New module.
18871         * modules/xalloc (Depends-on): Add it.
18872         * lib/xalloc.h (xalloc_oversized): Move...
18873         * lib/xalloc-oversized.h: ...into new file.
18874
18875         utimecmp: drop dependency on xmalloc
18876         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18877         due to memory pressure.
18878         * modules/utimecmp (Depends-on): Drop xalloc.
18879
18880 2011-04-27  Eric Blake  <eblake@redhat.com>
18881
18882         getcwd: fix mingw bugs
18883         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18884         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18885         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18886
18887 2011-04-27  Bruno Haible  <bruno@clisp.org>
18888
18889         mkstemps: Ensure declaration on MacOS X 10.5.
18890         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18891         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18892         MacOS X.
18893
18894 2011-04-27  Bruno Haible  <bruno@clisp.org>
18895
18896         mkstemp: More documentation.
18897         * doc/posix-functions/mkstemp.texi: Document header file problem on
18898         MacOS X.
18899
18900 2011-04-27  Bruno Haible  <bruno@clisp.org>
18901
18902         mkstemp: Tweak configure message when cross-compiling.
18903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18904         result as a guess.
18905
18906 2011-04-27  Bruno Haible  <bruno@clisp.org>
18907
18908         clean-temp: Clarify what it does.
18909         * lib/clean-temp.h: Add more comments.
18910         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18911         module.
18912         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18913         * doc/glibc-functions/mkstemps.texi: Likewise.
18914         * doc/glibc-functions/mkostemps.texi: Likewise.
18915
18916 2011-04-27  Eric Blake  <eblake@redhat.com>
18917
18918         fchdir: avoid extra chdir and fix test
18919         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18920         getcwd-lgpl.
18921         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18922         have to be canonical.
18923         (canonicalize_file_name): Drop unused macro.
18924         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18925
18926         filenamecat-lgpl: fix licence
18927         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18928         when it was first created.
18929
18930         linkat, renameat: add missing dependency
18931         * modules/linkat (Depends-on): Require getcwd-lgpl.
18932         * modules/renameat (Depends-on): Likewise.
18933
18934         tests: reduce dependencies
18935         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18936         * tests/test-renameat.c (main): Likewise.
18937         * modules/linkat-tests (Depends-on): Relax dependency.
18938         * modules/renameat-tests (Depends-on): Likewise.
18939         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18940         dependency explicit.
18941
18942         save-cwd: reduce default dependency
18943         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18944         * lib/save-cwd.c: Update comments.
18945         * NEWS: Document the semantic change.
18946
18947         getcwd: enhance tests
18948         * tests/test-getcwd-lgpl.c: New file, taken from...
18949         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18950         repeat long path stress tests from m4 probe.
18951         * modules/getcwd-lgpl-tests: New module.
18952         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18953         * m4/getcwd-abort-bug.m4: Update comment.
18954         * m4/getcwd-path-max.m4: Likewise.
18955
18956         getcwd-lgpl: new module
18957         * modules/getcwd-lgpl: New module.
18958         * lib/getcwd-lgpl.c: New file.
18959         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18960         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18961         * modules/getcwd (configure.ac): Set C witness.
18962         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18963
18964         getcwd: tweak comments
18965         * m4/getcwd-abort-bug.m4: Fix comments.
18966         * m4/getcwd-path-max.m4: Likewise.
18967         * m4/getcwd.m4: Likewise.
18968
18969 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18970         and Eric Blake  <eblake@redhat.com>
18971
18972         mkstemp: replace if system version uses wrong permissions
18973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18974         read/write mode bits set in file created by mkstemp.
18975         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18976
18977 2011-04-27  Eric Blake  <eblake@redhat.com>
18978
18979         passfd: avoid compiler warning
18980         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18981         Reported by Laine Stump.
18982
18983 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18984
18985         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18986         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18987
18988 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18989         and Eric Blake  <eblake@redhat.com>
18990
18991         mkstemp: mention clean-temp module
18992         * lib/mkstemp.c: Add comment.
18993         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18994
18995 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18996
18997         inttypes: also provide default values for 32-bit tests
18998         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18999         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19000
19001 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19002
19003         strtoumax: remove dependency on strtoimax
19004         This is like the strtoull change of yesterday.
19005         * modules/strtoumax (Files): Add lib/strtoimax.c.
19006         (Depends-on): Remove strtoimax and add verify.
19007
19008         inttypes-incomplete: new module
19009         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19010         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19011         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19012         of gl_INTTYPES_H.
19013         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19014         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19015         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19016         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19017         * modules/strtoumax, modules/xstrtol (Depends-on):
19018         Depend on inttypes-incomplete, not inttypes.
19019         * modules/inttypes-incomplete: New module, containing the contents
19020         of the old modules/inttypes module, except that the Files: section
19021         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19022         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19023         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19024         (Depends-on): Depend only on inttypes-incomplete.
19025         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19026
19027         inttypes: omit now-redundant strtoimax and strtoumax work
19028         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19029         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19030
19031         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19032         This supports apps that need pointers to strtoimax and strtoumax,
19033         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19034         nonexistent functions.  See
19035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19036         et seq.
19037         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19038         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19039         a macro.
19040         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19041
19042 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19043
19044         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19045
19046 2011-04-25  Bruno Haible  <bruno@clisp.org>
19047
19048         strtol, strtoul: Mark modules as obsolete.
19049         * modules/strtol (Status, Notice): New sections.
19050         * modules/strtoul (Status, Notice): New sections.
19051
19052 2011-04-25  Bruno Haible  <bruno@clisp.org>
19053
19054         strtod: Remove check for strtod, unless supporting old platforms.
19055         * modules/strtod-obsolete: New file.
19056         * m4/strtod-obsolete.m4: New file.
19057         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19058         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19059         * modules/strtod (Depends-on): Add strtod-obsolete.
19060         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19061
19062 2011-04-25  Bruno Haible  <bruno@clisp.org>
19063
19064         strcase: Make module obsolete.
19065         * modules/strcase (Status, Notice): New sections.
19066
19067 2011-04-25  Bruno Haible  <bruno@clisp.org>
19068
19069         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19070         * modules/dup2-obsolete: New file.
19071         * m4/dup2-obsolete.m4: New file.
19072         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19073         gl_FUNC_DUP2_OBSOLETE is not also defined.
19074         * modules/dup2 (Depends-on): Add dup2-obsolete.
19075         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19076
19077 2011-04-25  Bruno Haible  <bruno@clisp.org>
19078
19079         strnlen: Avoid memchr related link error on old obsolete platforms.
19080         * modules/memchr-obsolete: New file.
19081         * m4/memchr-obsolete.m4: New file.
19082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19083         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19084         * modules/memchr (Depends-on): Add memchr-obsolete.
19085         * modules/strnlen (Depends-on): Likewise.
19086         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19087
19088 2011-04-25  Jim Meyering  <meyering@redhat.com>
19089
19090         maint.mk: makefile_at_at_check extend and clean up
19091         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19092         in addition to */Makefile.am.
19093         Exempt legitimate uses of @VAR@ notation, e.g.,
19094         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19095         Remove obsolete coreutils-specific comment.
19096         Prompted by discussion here:
19097         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19098
19099 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19100
19101         strtoul: remove dependency on strtol
19102         This is so that 'configure' need not check for strtol merely because
19103         the application needs strtoul.
19104         * modules/strtoul (Files): Add lib/strtol.c.
19105         (Depends-on): Remove strtol.
19106
19107         strtoull: remove dependency on strtoul
19108         This is like the strtoll change.
19109         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19110         (Depends-on): Remove strtoul.
19111
19112         strtoll: remove dependency on strtol
19113         This is so that 'configure' need not check for strtol merely because
19114         the application needs strtoll.
19115         * modules/strtoll (Files): Add lib/strtol.c.
19116         (Depends-on): Remove strtol.
19117
19118 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19119
19120         inttypes: Move some configure check to module 'imaxdiv'.
19121         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19122         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19123         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19124
19125 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19126
19127         inttypes: Move some configure check to module 'imaxabs'.
19128         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19129         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19130         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19131
19132 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19133
19134         inttypes: Remove configure tests that are not needed since 2009-12-31.
19135         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19136         gl_cv_header_working_inttypes_h.
19137
19138 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19139
19140         * modules/strnlen (Depends-on): Remove memchr.
19141         The strnlen implementation doesn't need the memchr module's fixes; see
19142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19143
19144         strtol: remove dependency on wchar
19145         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19146         * modules/strtol (Depends-on): Remove wchar.
19147
19148 2011-04-21  Eric Blake  <eblake@redhat.com>
19149
19150         passfd: fix test regression on Linux
19151         * modules/passfd-tests (configure.ac): Correct socketpair check.
19152
19153         passfd: speed up configure and drop unused code
19154         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19155         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19156         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19157         Instead of probing at configure for unix_scm_rights_bsd44_way,
19158         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19159         check to a struct member probe.
19160         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19161         (sendfd, recvfd): Update preprocessor checks.
19162         * modules/passfd (Files): Reflect rename, and drop unused file.
19163         (Depends-on): Drop unused dependency.
19164
19165         passfd: allow compilation on mingw
19166         * modules/sys_socket (Depends-on): Add sys_uio.
19167         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19168         iovec and a minimal struct msghdr.
19169         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19170         * tests/test-sys_socket.c (main): Enhance test.
19171         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19172         guaranteed to provide what we need.
19173         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19174         * modules/passfd-tests (Depends-on): Add sys_wait.
19175         * tests/test-passfd.c (main): Skip test on mingw, for now.
19176         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19177         partial 'struct msghdr' implementation.
19178
19179         sys_uio: new module
19180         * modules/sys_uio: New module.
19181         * modules/sys_uio-tests: Likewise.
19182         * lib/sys_uio.in.h: New file.
19183         * m4/sys_uio_h.m4: Likewise.
19184         * tests/test-sys_uio.c: Likewise.
19185         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19186         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19187
19188 2011-04-20  Jim Meyering  <meyering@redhat.com>
19189
19190         useless-if-before-free: avoid false-positive
19191         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19192         disjunct so that it too requires a terminating ";".  Without that,
19193         this script would identify as useless one statement from gcc that
19194         was not:
19195           if (aligned_ptr)
19196             free (((void **) aligned_ptr) [-1]);
19197
19198 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19199
19200         doc: update users.txt.
19201         * users.txt: Add barcode.
19202
19203 2011-04-19  Bruno Haible  <bruno@clisp.org>
19204
19205         ioctl: Remove link dependency on native Windows.
19206         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19207         (gl_close_fn, gl_ioctl_fn): New types.
19208         (struct fd_hook): Renamed from struct close_hook. Change type of
19209         private_close_fn field. Add private_ioctl_fn field.
19210         (close_hook_fn): Add parameter for primary close method.
19211         (execute_close_hooks, execute_all_close_hooks): Likewise.
19212         (ioctl_hook_fn): New type.
19213         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19214         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19215         argument.
19216         (unregister_fd_hook): Renamed from unregister_close_hook.
19217         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19218         Don't include <unistd.h>.
19219         (close): Remove undef.
19220         (anchor): Update.
19221         (execute_close_hooks): Add argument for primary close method.
19222         (execute_all_close_hooks): Likewise.
19223         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19224         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19225         argument. Allow each argument to be NULL.
19226         (unregister_fd_hook): Renamed from unregister_close_hook.
19227         * lib/close.c (rpl_close): Pass 'close' function pointer to
19228         execute_all_close_hooks.
19229         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19230         (primary_ioctl): New function.
19231         (ioctl): Don't call ioctlsocket here. Instead, call
19232         execute_all_ioctl_hooks.
19233         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19234         close method.
19235         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19236         (fd_sockets_hook): Renamed from close_sockets_hook.
19237         (gl_sockets_startup, gl_sockets_cleanup): Update.
19238         * modules/fd-hook: Renamed from modules/close-hook. Update.
19239         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19240         * modules/sockets (Depends-on): Likewise.
19241         * modules/ioctl (Depends-on): Add fd-hook.
19242         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19243         GNULIB_SOCKET.
19244
19245 2011-04-19  Bruno Haible  <bruno@clisp.org>
19246
19247         Move the support of O_NONBLOCK in open() to the 'open' module.
19248         * modules/nonblocking (Depends-on): Remove 'open'.
19249         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19250         gl_cv_have_open_O_NONBLOCK.
19251         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19252         O_NONBLOCK support.
19253         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19254
19255 2011-04-17  Bruno Haible  <bruno@clisp.org>
19256
19257         pipe2: Simplify code.
19258         * lib/pipe2.c (pipe2): Reduce code duplication.
19259
19260 2011-04-17  Bruno Haible  <bruno@clisp.org>
19261
19262         nonblocking: Add comment.
19263         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19264
19265 2011-04-17  Bruno Haible  <bruno@clisp.org>
19266
19267         nonblocking: Add tests for sockets.
19268         * tests/test-nonblocking-socket.sh: New file.
19269         * tests/test-nonblocking-socket-main.c: New file.
19270         * tests/test-nonblocking-socket-child.c: New file.
19271         * tests/test-nonblocking-socket.h: New file.
19272         * tests/socket-server.h: New file.
19273         * tests/socket-client.h: New file.
19274         * modules/nonblocking-socket-tests: New file.
19275         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19276
19277 2011-04-17  Bruno Haible  <bruno@clisp.org>
19278
19279         nonblocking: Add tests for pipes.
19280         * tests/test-nonblocking-pipe.sh: New file.
19281         * tests/test-nonblocking-pipe-main.c: New file.
19282         * tests/test-nonblocking-pipe-child.c: New file.
19283         * tests/test-nonblocking-pipe.h: New file.
19284         * tests/test-nonblocking-writer.h: New file.
19285         * tests/test-nonblocking-reader.h: New file.
19286         * tests/test-nonblocking-misc.h: New file.
19287         * modules/nonblocking-pipe-tests: New file.
19288         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19289
19290 2011-04-16  Bruno Haible  <bruno@clisp.org>
19291
19292         gettext: Clarify the needed programmer actions.
19293         * modules/gettext (Notice): New field.
19294         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19295
19296 2011-04-16  Bruno Haible  <bruno@clisp.org>
19297
19298         strchrnul: Tweak last commit.
19299         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19300         bug.
19301         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19302         as in _GL_FUNCDECL_SYS.
19303         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19304         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19305
19306 2011-04-15  Eric Blake  <eblake@redhat.com>
19307
19308         strchrnul: work around cygwin bug
19309         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19310         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19312         * modules/string (Makefile.am): Substitute it.
19313         * lib/string.in.h (strchrnul): Use it.
19314
19315 2011-04-15  Bruno Haible  <bruno@clisp.org>
19316
19317         Don't require lib/stdio-write.c when only module 'stdio' is used.
19318         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19319         invocation.
19320         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19321
19322 2011-04-14  Bruno Haible  <bruno@clisp.org>
19323
19324         Support non-blocking pipe I/O in read() on native Windows.
19325         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19326         (read): New declaration.
19327         * lib/read.c: New file.
19328         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19329         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19330         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19331         vscanf): New declarations.
19332         * lib/stdio-read.c: New file.
19333         * m4/read.m4: New file.
19334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19335         REPLACE_READ.
19336         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19337         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19338         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19339         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19340         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19341         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19342         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19343         * modules/read: New file.
19344         * modules/nonblocking (Files): Add lib/stdio-read.c.
19345         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19346         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19347         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19348         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19349         * modules/pread (Depends-on): Add read.
19350         * modules/safe-read (Depends-on): Likewise.
19351         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19352         gets, scanf, vfscanf, vscanf): Verify signatures.
19353         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19354         problem with non-blocking pipes.
19355         * doc/posix-functions/fgetc.texi: Likewise.
19356         * doc/posix-functions/fgets.texi: Likewise.
19357         * doc/posix-functions/fread.texi: Likewise.
19358         * doc/posix-functions/fscanf.texi: Likewise.
19359         * doc/posix-functions/getc.texi: Likewise.
19360         * doc/posix-functions/getchar.texi: Likewise.
19361         * doc/posix-functions/gets.texi: Likewise.
19362         * doc/posix-functions/scanf.texi: Likewise.
19363         * doc/posix-functions/vfscanf.texi: Likewise.
19364         * doc/posix-functions/vscanf.texi: Likewise.
19365
19366 2011-04-14  Bruno Haible  <bruno@clisp.org>
19367
19368         Support non-blocking pipe I/O in write() on native Windows.
19369         * lib/write.c (rpl_write): Split a write request that failed merely
19370         because the byte count was larger than the pipe buffer's size.
19371         * doc/posix-functions/write.texi: Mention the problem with large byte
19372         counts.
19373
19374 2011-04-14  Bruno Haible  <bruno@clisp.org>
19375
19376         wchar: Ensure that wchar_t gets defined on uClibc.
19377         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19378         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19379
19380 2011-04-13  Bruno Haible  <bruno@clisp.org>
19381
19382         safe-write, full-read: Avoid unnecessary compilation units.
19383         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19384         (Depends-on): Remove safe-read. Add ssize_t.
19385         * modules/full-read (Files): Add lib/full-write.c.
19386         (Depends-on): Add full-write.
19387
19388 2011-04-13  Bruno Haible  <bruno@clisp.org>
19389
19390         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19391         * modules/pwrite (Depends-on): Add 'write'.
19392
19393 2011-04-13  Bruno Haible  <bruno@clisp.org>
19394
19395         Support non-blocking pipe I/O in write() on native Windows.
19396         * lib/unistd.in.h (write): Enable replacement also if
19397         GNULIB_UNISTD_H_NONBLOCKING is 1.
19398         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19399         (rpl_write): When failing to write on a non-blocking pipe, change
19400         errno from ENOSPC to EAGAIN.
19401         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19402         putchar, puts, vfprintf, vprintf): Enable replacement also if
19403         GNULIB_STDIO_H_NONBLOCKING is 1.
19404         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19405         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19406         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19407         CALL_WITH_SIGPIPE_EMULATION.
19408         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19409         * m4/nonblocking.m4: New file.
19410         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19411         for non-blocking I/O support.
19412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19413         GNULIB_UNISTD_H_NONBLOCKING.
19414         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19415         required for non-blocking I/O support.
19416         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19417         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19418         lib/stdio-write.c, m4/asm-underscore.m4.
19419         (Depends-on): Add stdio, unistd.
19420         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19421         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19422         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19423         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19424         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19425         problem with non-blocking pipes.
19426         * doc/posix-functions/fputc.texi: Likewise.
19427         * doc/posix-functions/fputs.texi: Likewise.
19428         * doc/posix-functions/fwrite.texi: Likewise.
19429         * doc/posix-functions/printf.texi: Likewise.
19430         * doc/posix-functions/putc.texi: Likewise.
19431         * doc/posix-functions/putchar.texi: Likewise.
19432         * doc/posix-functions/puts.texi: Likewise.
19433         * doc/posix-functions/vfprintf.texi: Likewise.
19434         * doc/posix-functions/vprintf.texi: Likewise.
19435         * doc/posix-functions/write.texi: Likewise.
19436
19437 2011-04-10  Jim Meyering  <meyering@redhat.com>
19438
19439         maint.mk: prohibit doubled words
19440         Detect them also when they're separated by a newline.
19441         There are 3 ways to customize it:
19442           - disable the test on a per file basis, as usual with rules using
19443             $(VC_LIST_EXCEPT)
19444           - replace the default doubled-word-selecting regexp (affects all files)
19445           - ignore a particular file-vs-doubled-word match
19446         I nearly used that last one to ignore the "is is" match in
19447         coreutils' NEWS file, since the text was "ls -is is ..."
19448         To do that, I would have added this line to cfg.mk:
19449           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19450         but it would have ignored any "is is" match in NEWS.
19451         Low probability, but still...
19452         Instead, I changed the text, slightly:
19453           -  ls -is is now consistent with ls -lis in ignoring values returned
19454           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19455         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19456         (prohibit_doubled_word_): Define.
19457         (sc_prohibit_doubled_word): New rule.
19458         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19459
19460 2011-04-10  Jim Meyering  <meyering@redhat.com>
19461
19462         maint: fix doubled-word typo in comment
19463         * m4/gethostname.m4: s/is is/it is/
19464         * m4/getdomainname.m4: Likewise.
19465
19466 2011-04-10  Jim Meyering  <meyering@redhat.com>
19467
19468         maint: remove doubled word: s/it it/it/
19469         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19470
19471 2011-04-10  Jim Meyering  <meyering@redhat.com>
19472
19473         maint.mk: remove useless semicolon and backslash
19474         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19475         semicolon and backslash.
19476
19477 2011-04-10  Bruno Haible  <bruno@clisp.org>
19478
19479         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19480         * modules/stdint-tests (Depends-on): Add wchar.
19481
19482 2011-04-10  Jim Meyering  <meyering@redhat.com>
19483
19484         maint: remove doubled words in comments, e.g., s/a a/a/
19485         * lib/strptime.c (day_of_the_week): s/the the/the/
19486         * tests/test-chown.h (test_chown): s/a a/a/
19487
19488         test-chown.h: correct a cast
19489         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19490         when the destination is a stat.st_gid.
19491
19492 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19493
19494         getaddrinfo: Fix test for sa_len member.
19495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19496         include <sys/types.h> before <sys/socket.h>.
19497
19498 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19499
19500         maint: change "can not" to "cannot"
19501         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19502         boundaries.
19503
19504 2011-04-09  Jim Meyering  <meyering@redhat.com>
19505
19506         maint: change "a a" to "a"
19507         * tests/test-lchown.h (test_lchown): s/a a/a/
19508
19509         maint.mk: prohibit \<the the\>
19510         * top/maint.mk (sc_prohibit_the_the): New rule.
19511
19512         maint: fix "the the" in comment
19513         * lib/count-one-bits.h: s/the the/the/
19514
19515         maint: change "can not" to "cannot"
19516         But do not change the occurrences in maintain.texi or in
19517         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19518         * doc/gnulib-tool.texi: s/can not/cannot/
19519         * doc/posix-functions/accept.texi (accept): Likewise.
19520         * doc/posix-functions/socket.texi (socket): Likewise.
19521         * lib/mbrtowc.c: Likewise.
19522
19523         maint.mk: prohibit use of "can not"
19524         * top/maint.mk (sc_prohibit_can_not): New rule.
19525         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19526
19527 2011-04-09  Bruno Haible  <bruno@clisp.org>
19528
19529         careadlinkat: Guard against misuse of careadlinkatcwd.
19530         * lib/careadlinkat.c: Include <stdlib.h>.
19531         (careadlinkatcwd): Check that the fd argument is as expected.
19532
19533 2011-04-09  Bruno Haible  <bruno@clisp.org>
19534
19535         careadlinkat: Use common coding style.
19536         * lib/careadlinkat.c: Move gnulib includes after system includes.
19537
19538 2011-04-09  Bruno Haible  <bruno@clisp.org>
19539
19540         careadlinkat: Clarify specification.
19541         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19542         (careadlinkatcwd): Add comment.
19543         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19544
19545 2011-04-09  Bruno Haible  <bruno@clisp.org>
19546
19547         areadlinkat: Avoid link error on many platforms.
19548         * modules/areadlinkat (Depends-on): Add areadlink.
19549
19550 2011-04-09  Bruno Haible  <bruno@clisp.org>
19551
19552         allocator, careadlinkat: Fix double-inclusion guard.
19553         * lib/allocator.h: Fix double-inclusion guard.
19554         * lib/careadlinkat.h: Likewise.
19555
19556 2011-04-09  Bruno Haible  <bruno@clisp.org>
19557
19558         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19559         * lib/relocwrapper.c: Update dependencies hierarchy.
19560         * build-aux/install-reloc: Update list of files to be compiled.
19561         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19562         lib/allocator.[hc].
19563
19564 2011-04-08  Eric Blake  <eblake@redhat.com>
19565
19566         strftime: silence gnulib-tool warning
19567         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19568
19569 2011-04-08  Bruno Haible  <bruno@clisp.org>
19570
19571         verify: Fix syntax error with GCC 4.6 in C++ mode.
19572         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19573         (HAVE_STATIC_ASSERT): New macro.
19574         (verify_true, verify): Use 'static_assert' if it is supported and
19575         '_Static_assert' is not supported.
19576
19577 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19578
19579         allocator: New module.
19580         * modules/allocator, lib/allocator.c: New files.
19581         * lib/allocator.h (stdlib_allocator): New decl.
19582         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19583         Remove.  Do not include <stdlib.h>.
19584         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19585         * modules/careadlinkat (Files): Remove lib/allocator.h.
19586         (Depends-on): Add allocator.
19587
19588         stdlib: let modules use system malloc, realloc
19589         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19590         if !_GL_USE_STDLIB_ALLOC.
19591         (malloc, realloc): Limit this change to a smaller scope.
19592
19593         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19594         (malloc, realloc): Don't #undef; no longer needed.
19595         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19596         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19597         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19598         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19599         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19600         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19601         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19602         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19603
19604         careadlinkat: rename members to avoid problem
19605         * lib/allocator.h (struct allocator): Rename members from
19606         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19607         and realloc are #define'd.  Reported by Eric Blake in
19608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19609         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19610
19611 2011-04-08  Eric Blake  <eblake@redhat.com>
19612
19613         nonblocking: reduce dependency
19614         * tests/test-nonblocking.c: Only test sockets when in use.
19615         * modules/nonblocking-tests (Depends-on): Drop socket.
19616         (Makefile.am): Link even if sockets are not present.
19617         * modules/pipe2-tests (Makefile.am): Likewise.
19618         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19619
19620         pipe2: fix O_NONBLOCK support on mingw
19621         * modules/pipe2 (Depends-on): Add nonblocking.
19622         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19623         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19624         * tests/test-nonblocking.c (main): Likewise.
19625         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19626
19627         fcntl-h: fix O_ACCMODE on cygwin
19628         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19629         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19630
19631         pipe-filter: drop O_NONBLOCK workarounds
19632         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19633         * modules/pipe-filter-ii (Depends-on): Likewise.
19634         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19635
19636         nonblocking: provide O_NONBLOCK for mingw
19637         * modules/nonblocking (Depends-on): Add open.
19638         (configure.ac): Set new witness macro.
19639         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19640         * modules/fcntl-h (Makefile.am): Substitute it.
19641         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19642         nonblocking module is in use.
19643         * lib/nonblocking.c: Adjust portability test.
19644         * lib/open.c (open): Don't let native open see gnulib flag.
19645         * tests/test-fcntl-h.c (main): Enhance test.
19646         * tests/test-open.h (test_open): Likewise.
19647         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19648
19649         careadlinkat: fix compilation error on mingw
19650         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19651         within struct allocator.
19652
19653 2011-04-06  Eric Blake  <eblake@redhat.com>
19654
19655         binary-io: relicense under LGPLv2+
19656         * modules/binary-io (License): Relax to LGPLv2+.
19657         Requested for libvirt, and required by pipe2.
19658
19659 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         verify: use _Static_assert if available
19662         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19663         (verify_true, verify): Use it if available.  This generates better
19664         diagnostics with GCC 4.6.0 and later.
19665
19666 2011-04-05  Bruno Haible  <bruno@clisp.org>
19667
19668         Remove leftover generated .h files after config.status changed.
19669
19670         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19671         GL_GENERATE_ALLOCA_H.
19672         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19673         GL_GENERATE_ALLOCA_H evaluates to false.
19674
19675         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19676         GL_GENERATE_ARGZ_H.
19677         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19678         evaluates to false.
19679
19680         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19681         GL_GENERATE_BYTESWAP_H.
19682         * modules/byteswap (Makefile.am): Remove byteswap.h if
19683         GL_GENERATE_BYTESWAP_H evaluates to false.
19684
19685         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19686         GL_GENERATE_ERRNO_H.
19687         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19688         evaluates to false.
19689
19690         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19691         GL_GENERATE_FLOAT_H.
19692         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19693         evaluates to false.
19694
19695         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19696         GL_GENERATE_FNMATCH_H.
19697         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19698         GL_GENERATE_FNMATCH_H evaluates to false.
19699
19700         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19701         GL_GENERATE_GLOB_H.
19702         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19703         evaluates to false.
19704
19705         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19706         automake conditional GL_GENERATE_ICONV_H.
19707         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19708         evaluates to false.
19709
19710         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19711         GL_GENERATE_NETINET_IN_H.
19712         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19713         GL_GENERATE_NETINET_IN_H evaluates to false.
19714
19715         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19716         conditional GL_GENERATE_PTHREAD_H.
19717         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19718         * modules/pthread (Makefile.am): Remove pthread.h if
19719         GL_GENERATE_PTHREAD_H evaluates to false.
19720
19721         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19722         GL_GENERATE_SCHED_H.
19723         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19724         evaluates to false.
19725
19726         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19727         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19728         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19729         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19730
19731         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19732         GL_GENERATE_STDARG_H.
19733         * modules/stdarg (Makefile.am): Remove stdarg.h if
19734         GL_GENERATE_STDARG_H evaluates to false.
19735
19736         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19737         GL_GENERATE_STDBOOL_H.
19738         * modules/stdbool (Makefile.am): Remove stdbool.h if
19739         GL_GENERATE_STDBOOL_H evaluates to false.
19740
19741         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19742         conditional GL_GENERATE_STDDEF_H.
19743         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19744         * modules/stddef (Makefile.am): Remove stddef.h if
19745         GL_GENERATE_STDDEF_H evaluates to false.
19746
19747         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19748         GL_GENERATE_STDINT_H.
19749         * modules/stdint (Makefile.am): Remove stdint.h if
19750         GL_GENERATE_STDINT_H evaluates to false.
19751
19752         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19753         GL_GENERATE_SYSEXITS_H.
19754         * modules/sysexits (Makefile.am): Remove sysexits.h if
19755         GL_GENERATE_SYSEXITS_H evaluates to false.
19756
19757         Reported by Karl Berry and Ralf Wildenhues.
19758
19759 2011-04-05  Bruno Haible  <bruno@clisp.org>
19760
19761         Ensure to rebuild generated .h files when config.status has changed.
19762         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19763         config.status.
19764         * modules/ctype (Makefile.am): Likewise.
19765         * modules/dirent (Makefile.am): Likewise.
19766         * modules/errno (Makefile.am): Likewise.
19767         * modules/fcntl-h (Makefile.am): Likewise.
19768         * modules/float (Makefile.am): Likewise.
19769         * modules/getopt-posix (Makefile.am): Likewise.
19770         * modules/glob (Makefile.am): Likewise.
19771         * modules/iconv-h (Makefile.am): Likewise.
19772         * modules/inttypes (Makefile.am): Likewise.
19773         * modules/langinfo (Makefile.am): Likewise.
19774         * modules/locale (Makefile.am): Likewise.
19775         * modules/math (Makefile.am): Likewise.
19776         * modules/netdb (Makefile.am): Likewise.
19777         * modules/netinet_in (Makefile.am): Likewise.
19778         * modules/poll-h (Makefile.am): Likewise.
19779         * modules/pthread (Makefile.am): Likewise.
19780         * modules/pty (Makefile.am): Likewise.
19781         * modules/sched (Makefile.am): Likewise.
19782         * modules/search (Makefile.am): Likewise.
19783         * modules/selinux-h (Makefile.am): Likewise.
19784         * modules/signal (Makefile.am): Likewise.
19785         * modules/spawn (Makefile.am): Likewise.
19786         * modules/stdarg (Makefile.am): Likewise.
19787         * modules/stdbool (Makefile.am): Likewise.
19788         * modules/stddef (Makefile.am): Likewise.
19789         * modules/stdint (Makefile.am): Likewise.
19790         * modules/stdio (Makefile.am): Likewise.
19791         * modules/stdlib (Makefile.am): Likewise.
19792         * modules/string (Makefile.am): Likewise.
19793         * modules/strings (Makefile.am): Likewise.
19794         * modules/sys_file (Makefile.am): Likewise.
19795         * modules/sys_ioctl (Makefile.am): Likewise.
19796         * modules/sys_select (Makefile.am): Likewise.
19797         * modules/sys_socket (Makefile.am): Likewise.
19798         * modules/sys_stat (Makefile.am): Likewise.
19799         * modules/sys_time (Makefile.am): Likewise.
19800         * modules/sys_times (Makefile.am): Likewise.
19801         * modules/sys_utsname (Makefile.am): Likewise.
19802         * modules/sys_wait (Makefile.am): Likewise.
19803         * modules/sysexits (Makefile.am): Likewise.
19804         * modules/termios (Makefile.am): Likewise.
19805         * modules/time (Makefile.am): Likewise.
19806         * modules/unistd (Makefile.am): Likewise.
19807         * modules/wchar (Makefile.am): Likewise.
19808         * modules/wctype-h (Makefile.am): Likewise.
19809         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19810
19811 2011-04-05  Bruno Haible  <bruno@clisp.org>
19812
19813         pipe2: Relicense under LGPLv2+.
19814         * modules/pipe2 (License): Change to LGPLv2+.
19815         Requested by Eric Blake, for libvirt.
19816
19817 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19818
19819         bootstrap: compute gnulib_extra_files after updating build_aux
19820         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19821         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19822
19823 2011-04-05  Eric Blake  <eblake@redhat.com>
19824
19825         bootstrap: preserve git whitelist item sorting
19826         * build-aux/bootstrap (sort_patterns): New function.
19827         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19828
19829 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19830
19831         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19832         sc_space_tab check.
19833
19834 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19835
19836         areadlink, areadlinkat: rewrite in terms of careadlinkat
19837         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19838         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19839         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19840         (malloc, realloc): Remove #undefs.
19841         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19842         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19843         readlink, ssize_t, stdint, unistd.
19844         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19845         areadlink, stdint.
19846
19847         careadlinkat: new module
19848         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19849         * modules/careadlinkat: New files, written by me with
19850         a review and feedback from Ben Pfaff in
19851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19852
19853 2011-04-01  Bruno Haible  <bruno@clisp.org>
19854
19855         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19856         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19857         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19858         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19859         Reported by Bruce Korb <bruce.korb@gmail.com>.
19860
19861 2011-04-01  Bruno Haible  <bruno@clisp.org>
19862
19863         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19864         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19865         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19866         * modules/wcpcpy (Depends-on): Add extensions.
19867         * modules/wcpncpy (Depends-on): Likewise.
19868         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19869         systems.
19870         * doc/posix-functions/wcpncpy.texi: Likewise.
19871         * doc/posix-functions/wcwidth.texi: Likewise.
19872
19873 2011-03-31  Eric Blake  <eblake@redhat.com>
19874
19875         nonblocking: fix mingw test failures
19876         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19877         non-blocking flag on regular file.
19878         (get_nonblocking_flag): Set errno on invalid fd.
19879         * tests/test-nonblocking.c (main): Avoid test failure on
19880         directories if fchdir is not active.
19881         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19882
19883 2011-03-31  Bruno Haible  <bruno@clisp.org>
19884
19885         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19886         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19887         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19888         Reported by Simon Josefsson <simon@josefsson.org>.
19889
19890 2011-03-31  Bruno Haible  <bruno@clisp.org>
19891         and Eric Blake  <eblake@redhat.com>
19892
19893         nonblocking: new module
19894         * modules/nonblocking: New module.
19895         * modules/nonblocking-tests: Likewise.
19896         * lib/nonblocking.h: New file.
19897         * lib/nonblocking.c: Likewise.
19898         * tests/test-nonblocking.c: New test.
19899         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19900
19901 2011-03-30  Bruno Haible  <bruno@clisp.org>
19902
19903         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19904         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19905         instead of 'printf' format for GCC >= 4.4.
19906         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19907         (fprintf, printf, vfprintf, vprintf): Declare with
19908         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19909         the system's vfprintf() function.
19910         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19911
19912 2011-03-30  Eric Blake  <eblake@redhat.com>
19913
19914         passfd: fix scoping bug
19915         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19916         before sendmsg/recvmsg.
19917
19918         passfd: standardize coding conventions
19919         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19920         can be learned at compile time.
19921         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19922         ifdefs.
19923         (sendfd, recvfd): Follow gnulib code conventions.
19924
19925         passfd: fix incorrect sendmsg arguments
19926         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19927         incorrect msg_controllen value.
19928         * modules/passfd-tests (Depends-on): Check for alarm.
19929         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19930         Reported by Bastien ROUCARIES.
19931
19932 2011-03-30  Bruno Haible  <bruno@clisp.org>
19933
19934         c-strcasestr: Relicense under LGPLv2+.
19935         * modules/c-strcasestr (License): Change to LGPLv2+.
19936         Requested by Eric Blake, for libvirt.
19937
19938 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19939
19940         * users.txt: Add libidn2.  Fix libtasn1 link.
19941
19942 2011-03-30  Jim Meyering  <meyering@redhat.com>
19943
19944         tests: readlink* ("",... fails with EINVAL on newer kernels
19945         readlink and readlinkat have typically failed with ENOENT for
19946         the invalid, empty file name,  "".  However, with the advent
19947         of linux-2.6.39, they fail with EINVAL.
19948         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19949         when operating on the empty file name.
19950         * tests/test-readlink.h (test_readlink): Likewise.
19951
19952 2011-03-29  Bruno Haible  <bruno@clisp.org>
19953
19954         Relicense some modules under LGPLv2+, for libidn2.
19955         * modules/array-mergesort (License): Change to LGPLv2+.
19956         * modules/c-strcaseeq (License): Likewise.
19957         * modules/striconveh (License): Likewise.
19958         * modules/striconveha (License): Likewise.
19959         * modules/uniconv/base (License): Likewise.
19960         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19961         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19962         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19963         * modules/unictype/base (License): Likewise.
19964         * modules/unictype/bidiclass-of (License): Likewise.
19965         * modules/unictype/category-M (License): Likewise.
19966         * modules/unictype/category-none (License): Likewise.
19967         * modules/unictype/category-of (License): Likewise.
19968         * modules/unictype/category-test (License): Likewise.
19969         * modules/unictype/category-test-withtable (License): Likewise.
19970         * modules/unictype/combining-class (License): Likewise.
19971         * modules/unictype/joiningtype-of (License): Likewise.
19972         * modules/unictype/scripts (License): Likewise.
19973         * modules/uninorm/base (License): Likewise.
19974         * modules/uninorm/canonical-decomposition (License): Likewise.
19975         * modules/uninorm/composition (License): Likewise.
19976         * modules/uninorm/decompose-internal (License): Likewise.
19977         * modules/uninorm/decomposition-table (License): Likewise.
19978         * modules/uninorm/nfc (License): Likewise.
19979         * modules/uninorm/nfd (License): Likewise.
19980         * modules/uninorm/u32-normalize (License): Likewise.
19981         * modules/unistr/base (License): Likewise.
19982         * modules/unistr/u32-cpy (License): Likewise.
19983         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19984         * modules/unistr/u32-to-u8 (License): Likewise.
19985         * modules/unistr/u32-uctomb (License): Likewise.
19986         * modules/unistr/u8-check (License): Likewise.
19987         * modules/unistr/u8-mblen (License): Likewise.
19988         * modules/unistr/u8-mbtouc (License): Likewise.
19989         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19990         * modules/unistr/u8-mbtoucr (License): Likewise.
19991         * modules/unistr/u8-prev (License): Likewise.
19992         * modules/unistr/u8-strlen (License): Likewise.
19993         * modules/unistr/u8-to-u32 (License): Likewise.
19994         * modules/unistr/u8-uctomb (License): Likewise.
19995         * modules/unitypes (License): Likewise.
19996         Requested by Simon Josefsson.
19997
19998 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19999
20000         lib-symbol-visibility: Add a notice.
20001         * modules/lib-symbol-visibility (Notice): New field.
20002
20003 2011-03-29  Bruno Haible  <bruno@clisp.org>
20004
20005         getaddrinfo: Doc fix.
20006         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20007         section "fixed in Gnulib".
20008
20009 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20010
20011         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20012         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20013
20014 2011-03-26  Bruno Haible  <bruno@clisp.org>
20015
20016         unictype/property-byname: Reduce the number of load-time relocations.
20017         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20018         (UC_PROPERTY_INDEX_*): New enumeration values.
20019         (uc_property_byname): Convert an index from the lookup table to an
20020         uc_property_t.
20021         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20022         values.
20023
20024 2011-03-26  Bruno Haible  <bruno@clisp.org>
20025
20026         unictype/property-byname: Allow omitted word separators and aliases.
20027         * lib/unictype/pr_byname.gperf: Add property names without word
20028         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20029         for 'space'.
20030
20031 2011-03-26  Bruno Haible  <bruno@clisp.org>
20032
20033         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20034         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20035         also hyphens to space.
20036         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20037         without spaces.
20038         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20039
20040 2011-03-26  Bruno Haible  <bruno@clisp.org>
20041
20042         unictype/joiningtype-byname: Recognize long names as well.
20043         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20044         a long name.
20045         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20046         unictype/joiningtype_byname.h.
20047         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20048         * lib/unictype/joiningtype_byname.gperf: New file.
20049         * modules/unictype/joiningtype-byname (Files): Add
20050         lib/unictype/joiningtype_byname.gperf.
20051         (Depends-on): Add gperf.
20052         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20053         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20054         long names.
20055
20056         Tests for module 'unictype/joiningtype-longname'.
20057         * modules/unictype/joiningtype-longname-tests: New file.
20058         * tests/unictype/test-joiningtype_longname.c: New file.
20059
20060         New module 'unictype/joiningtype-longname'.
20061         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20062         * lib/unictype/joiningtype_longname.c: New file.
20063         * modules/unictype/joiningtype-longname: New file.
20064         * modules/unictype/joiningtype-all (Depends-on): Add
20065         unictype/joiningtype-longname.
20066
20067 2011-03-26  Bruno Haible  <bruno@clisp.org>
20068
20069         unictype/bidiclass-byname: Recognize long names as well.
20070         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20071         name.
20072         * lib/unictype/bidi_byname.c: Include <string.h>,
20073         unictype/bidi_byname.h.
20074         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20075         * lib/unictype/bidi_byname.gperf: New file.
20076         * modules/unictype/bidiclass-byname (Files): Add
20077         lib/unictype/bidi_byname.gperf.
20078         (Depends-on): Add gperf.
20079         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20080         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20081         long names.
20082
20083         Tests for module 'unictype/bidiclass-longname'.
20084         * modules/unictype/bidiclass-longname-tests: New file.
20085         * tests/unictype/test-bidi_longname.c: New file.
20086
20087         New module 'unictype/bidiclass-longname'.
20088         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20089         * lib/unictype/bidi_longname.c: New file.
20090         * modules/unictype/bidiclass-longname: New file.
20091         * modules/unictype/bidiclass-all (Depends-on): Add
20092         unictype/bidiclass-longname.
20093
20094 2011-03-26  Bruno Haible  <bruno@clisp.org>
20095
20096         unictype/bidi*: Rename modules.
20097         * modules/unictype/bidiclass-all: Renamed from
20098         modules/unictype/bidicategory-all.
20099         * modules/unictype/bidiclass-name: Renamed from
20100         modules/unictype/bidiclass-name.
20101         (Description): Update.
20102         * modules/unictype/bidiclass-name-tests: Renamed from
20103         modules/unictype/bidicategory-name-tests.
20104         * modules/unictype/bidiclass-byname: Renamed from
20105         modules/unictype/bidicategory-byname.
20106         (Description): Update.
20107         * modules/unictype/bidiclass-byname-tests: Renamed from
20108         modules/unictype/bidicategory-byname-tests.
20109         * modules/unictype/bidiclass-of: Renamed from
20110         modules/unictype/bidicategory-of.
20111         (Description): Update.
20112         * modules/unictype/bidiclass-of-tests: Renamed from
20113         modules/unictype/bidicategory-of-tests.
20114         * modules/unictype/bidiclass-test: Renamed from
20115         modules/unictype/bidicategory-test.
20116         (Description): Update.
20117         * modules/unictype/bidiclass-test-tests: Renamed from
20118         modules/unictype/bidicategory-test-tests.
20119         * modules/unictype/bidicategory-all: New file, a simple redirection.
20120         * modules/unictype/bidicategory-name: Likewise.
20121         * modules/unictype/bidicategory-byname: Likewise.
20122         * modules/unictype/bidicategory-of: Likewise.
20123         * modules/unictype/bidicategory-test: Likewise.
20124         * modules/unictype/property-bidi-* (Dependencies): Update.
20125         * lib/unictype/bidi_*.c: Update comment.
20126
20127 2011-03-26  Bruno Haible  <bruno@clisp.org>
20128
20129         unictype/bidi*: Rename functions, part 2.
20130         * modules/unictype/bidicategory-name (configure.ac): Update required
20131         libunistring version.
20132         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20133
20134 2011-03-25  Bruno Haible  <bruno@clisp.org>
20135
20136         New module 'unictype/combining-class-all'.
20137         * modules/unictype/combining-class-all: New file.
20138
20139         Tests for module 'unictype/combining-class-byname'.
20140         * modules/unictype/combining-class-byname-tests: New file.
20141         * tests/unictype/test-combiningclass_byname.c: New file.
20142
20143         New module 'unictype/combining-class-byname'.
20144         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20145         * lib/unictype/combiningclass_byname.c: New file.
20146         * lib/unictype/combiningclass_byname.gperf: New file.
20147         * modules/unictype/combining-class-byname: New file.
20148
20149         Tests for module 'unictype/combining-class-longname'.
20150         * modules/unictype/combining-class-longname-tests: New file.
20151         * tests/unictype/test-combiningclass_longname.c: New file.
20152
20153         New module 'unictype/combining-class-longname'.
20154         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20155         * lib/unictype/combiningclass_longname.c: New file.
20156         * modules/unictype/combining-class-longname: New file.
20157
20158         Tests for module 'unictype/combining-class-name'.
20159         * modules/unictype/combining-class-name-tests: New file.
20160         * tests/unictype/test-combiningclass_name.c: New file.
20161
20162         New module 'unictype/combining-class-name'.
20163         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20164         * lib/unictype/combiningclass_name.c: New file.
20165         * modules/unictype/combining-class-name: New file.
20166
20167 2011-03-25  Bruno Haible  <bruno@clisp.org>
20168
20169         unictype/combining-class: Rename source files.
20170         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20171         of unictype/combining.h.
20172         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20173         Update.
20174         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20175         * modules/unictype/combining-class (Description): Fix.
20176         (Files, Makefile.am): Update.
20177         * tests/unictype/test-combiningclass.c: Renamed from
20178         tests/unictype/test-combining.c.
20179         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20180
20181 2011-03-25  Bruno Haible  <bruno@clisp.org>
20182
20183         unictype: Update list of canonical combining classes.
20184         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20185
20186 2011-03-25  Bruno Haible  <bruno@clisp.org>
20187
20188         unictype/category-byname: Recognize long names as well.
20189         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20190         a long name.
20191         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20192         unictype/categ_byname.h.
20193         (UC_CATEGORY_INDEX_*): New enumeration values.
20194         (uc_general_category_byname): Use uc_general_category_lookup and
20195         convert from index to value.
20196         * lib/unictype/categ_byname.gperf: New file.
20197         * modules/unictype/category-byname (Files): Add
20198         lib/unictype/categ_byname.gperf.
20199         (Depends-on): Add gperf.
20200         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20201         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20202         long names.
20203
20204         Tests for module 'unictype/category-longname'.
20205         * modules/unictype/category-longname-tests: New file.
20206         * tests/unictype/test-categ_longname.c: New file.
20207
20208         New module 'unictype/category-longname'.
20209         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20210         * lib/unictype/categ_longname.c: New file.
20211         * modules/unictype/category-longname: New file.
20212         * modules/unictype/category-all (Depends-on): Add it.
20213
20214 2011-03-25  Bruno Haible  <bruno@clisp.org>
20215
20216         Tests for module 'unictype/category-LC'.
20217         * modules/unictype/category-LC-tests: New file.
20218         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20219
20220         New module 'unictype/category-LC'.
20221         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20222         (UC_CATEGORY_LC): New declaration.
20223         (UC_CASED_LETTER): New macro.
20224         * lib/gen-uni-tables.c (is_category_LC): New function.
20225         (output_categories): Also handle category LC.
20226         (UC_CATEGORY_MASK_LC): New enumeration value.
20227         (general_category_byname): Also handle category LC.
20228         * lib/unictype/categ_LC.c: New file.
20229         * lib/unictype/categ_LC.h: New file, automatically generated.
20230         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20231         category LC.
20232         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20233         * modules/unictype/category-LC: New file.
20234         * modules/unictype/category-byname (Depends-on): Add
20235         unictype/category-LC.
20236         * modules/unictype/category-all (Depends-on): Likewise.
20237
20238 2011-03-25  Eric Blake  <eblake@redhat.com>
20239
20240         xmalloc: revert yesterday's regression
20241         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20242         realloc's underlying behavior (allowing allocation of zero-size
20243         objects, especially if malloc-gnu is also in use).
20244
20245 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20246
20247         maint.mk: add missing version to VC-tag
20248         * top/maint.mk: git tag was missing actual tag name; add it.
20249
20250         valgrind: do leak checking, and exit with code 1 on error (not 0)
20251         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20252         to VALGRIND.
20253
20254 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20255
20256         posix-modules: say what it does.
20257         * posix-modules: Add a line to the --help output saying what it does.
20258
20259 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20260
20261         xmalloc: Do not leak if underlying realloc is C99 compatible.
20262         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20263         This avoids a leak on C99-based systems.  See
20264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20265
20266 2011-03-24  Eric Blake  <eblake@redhat.com>
20267
20268         realloc: document portability problem
20269         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20270         passing 0 size to realloc.
20271
20272 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20273
20274         doc: update users.txt
20275         * users.txt: Add cvsps, tmpwatch
20276
20277 2011-03-23  Matt Rice  <ratmice@gmail.com>
20278
20279         doc: update users.txt
20280         * users.txt: Add gdb.
20281
20282 2011-03-23  Jim Meyering  <meyering@redhat.com>
20283
20284         doc: update users.txt
20285         Looking through matches up to the following URL (there are still
20286         several more pages), I found several projects that use gnulib:
20287         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20288         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20289         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20290
20291 2011-03-22  Bruno Haible  <bruno@clisp.org>
20292
20293         unictype/bidi*: Rename functions.
20294         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20295         uc_bidi_class, uc_is_bidi_class): New declarations.
20296         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20297         uc_bidi_category_byname.
20298         (uc_bidi_category_byname): New function.
20299         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20300         u_bidi_category_name.
20301         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20302         (uc_bidi_category_name): New function.
20303         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20304         uc_bidi_category.
20305         (uc_bidi_category): New function.
20306         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20307         uc_is_bidi_category. Invoke uc_bidi_class.
20308         (uc_is_bidi_category): New function.
20309         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20310         instead of uc_bidi_category_byname.
20311         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20312         instead of uc_bidi_category_name.
20313         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20314         uc_bidi_category.
20315         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20316         instead of uc_is_bidi_category.
20317
20318 2011-03-21  Bruno Haible  <bruno@clisp.org>
20319
20320         New module 'unictype/joininggroup-all'.
20321         * modules/unictype/joininggroup-all: New file.
20322
20323         Tests for module 'unictype/joininggroup-of'.
20324         * modules/unictype/joininggroup-of-tests: New file.
20325         * tests/unictype/test-joininggroup_of.c: New file.
20326         * tests/unictype/test-joininggroup_of.h: New file, automatically
20327         generated by gen-uni-tables.
20328
20329         New module 'unictype/joininggroup-of'.
20330         * modules/unictype/joininggroup-of: New file.
20331         * lib/unictype/joininggroup_of.c: New file.
20332         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20333         gen-uni-tables.
20334
20335         Tests for module 'unictype/joininggroup-byname'.
20336         * modules/unictype/joininggroup-byname-tests: New file.
20337         * tests/unictype/test-joininggroup_byname.c: New file.
20338
20339         New module 'unictype/joininggroup-byname'.
20340         * modules/unictype/joininggroup-byname: New file.
20341         * lib/unictype/joininggroup_byname.c: New file.
20342         * lib/unictype/joininggroup_byname.gperf: New file.
20343
20344         Tests for module 'unictype/joininggroup-name'.
20345         * modules/unictype/joininggroup-name-tests: New file.
20346         * tests/unictype/test-joininggroup_name.c: New file.
20347
20348         New module 'unictype/joininggroup-name'.
20349         * modules/unictype/joininggroup-name: New file.
20350         * lib/unictype/joininggroup_name.c: New file.
20351         * lib/unictype/joininggroup_name.h: New file.
20352
20353         New module 'unictype/joiningtype-all'.
20354         * modules/unictype/joiningtype-all: New file.
20355
20356         Tests for module 'unictype/joiningtype-of'.
20357         * modules/unictype/joiningtype-of-tests: New file.
20358         * tests/unictype/test-joiningtype_of.c: New file.
20359         * tests/unictype/test-joiningtype_of.h: New file, automatically
20360         generated by gen-uni-tables.
20361
20362         New module 'unictype/joiningtype-of'.
20363         * modules/unictype/joiningtype-of: New file.
20364         * lib/unictype/joiningtype_of.c: New file.
20365         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20366         gen-uni-tables.
20367
20368         Tests for module 'unictype/joiningtype-byname'.
20369         * modules/unictype/joiningtype-byname-tests: New file.
20370         * tests/unictype/test-joiningtype_byname.c: New file.
20371
20372         New module 'unictype/joiningtype-byname'.
20373         * modules/unictype/joiningtype-byname: New file.
20374         * lib/unictype/joiningtype_byname.c: New file.
20375
20376         Tests for module 'unictype/joiningtype-name'.
20377         * modules/unictype/joiningtype-name-tests: New file.
20378         * tests/unictype/test-joiningtype_name.c: New file.
20379
20380         New module 'unictype/joiningtype-name'.
20381         * modules/unictype/joiningtype-name: New file.
20382         * lib/unictype/joiningtype_name.c: New file.
20383
20384         unictype: Add support for Arabic shaping properties.
20385         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20386         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20387         declarations.
20388         (UC_JOINING_GROUP_*): New enumeration values.
20389         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20390         declarations.
20391         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20392         (unicode_joining_type): New variable.
20393         (UC_JOINING_GROUP_*): New enumeration values.
20394         (unicode_joining_group): New variable.
20395         (fill_arabicshaping, joining_type_as_c_identifier,
20396         output_joining_type_test, output_joining_type,
20397         joining_group_as_c_identifier, output_joining_group_test,
20398         output_joining_group): New functions.
20399         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20400         fill_arabicshaping and output_joining_type_test, output_joining_type,
20401         output_joining_group_test, output_joining_group.
20402         Reported by Simon Josefsson.
20403
20404 2011-03-21  Jim Meyering  <meyering@redhat.com>
20405
20406         strftime: fix a bug in yesterday's change
20407         * lib/strftime.c (add): Accommodate width's initial value of -1.
20408         Otherwise, nstrftime would copy uninitialized data into
20409         the result buffer.
20410
20411 2011-03-21  Jim Meyering  <meyering@redhat.com>
20412
20413         tests: add strftime-tests module
20414         * tests/test-strftime.c: New file.
20415         * modules/strftime-tests: New module.
20416
20417 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20418
20419         strftime: don't assume a byte count fits in 'int'
20420         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20421         found this problem by static analysis, using gcc -Wstrict-overflow
20422         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20423         on an integer overflow having undefined behavior, but it turns out
20424         that the argument is a size, which might not fit in 'int' anyway,
20425
20426 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20427
20428         stdio: don't require ignore_value around fwrite
20429
20430         This patch works around libc bug 11959
20431         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20432         Without this patch, applications must often write
20433         ignore_value (fwrite (...)) even though the ignore_value is
20434         not helpful here.  It's common to write many objects, using
20435         fwrite/printf/etc., and then use ferror to detect output error.
20436
20437         I considered making this patch optional, but decided against it,
20438         because libc is obviously being inconsistent here: there is no
20439         reason libc should insist that user code must inspect fwrite
20440         return's value without also insisting that it inspect printf's,
20441         putchar's, etc.  If user code wants to have a strict style where
20442         all these functions' values are checked (so that ferror need not
20443         be checked), we could add support for that style in a new gnulib
20444         module, but in the meantime it's better to be consistent and to
20445         support common usage.
20446
20447         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20448         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20449         that we are compiling in checking mode, and if not C++, and
20450         if not already wrapping fwrite for some other reason.
20451         (fwrite): #define to rpl_fwrite if the latter is defined.
20452
20453 2011-03-20  Bruno Haible  <bruno@clisp.org>
20454
20455         verror: Fix compilation error introduced on 2011-02-13.
20456         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20457         instead of __attribute__.
20458         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20459
20460 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20461             Bruno Haible  <bruno@clisp.org>
20462
20463         socklen: do not depend on sys_socket
20464         While trying to modify Emacs to use gnulib's socklen module,
20465         I discovered a circular dependency: socklen depends on sys_socket
20466         and vice versa.  Emacs can use socklen, but it does not need
20467         sys_socket because it has its own substitute for sys/socket.h.
20468         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20469         gl_TYPE_SOCKLEN_T.
20470         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20471         gl_PREREQ_SYS_H_SOCKET.
20472         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20473         gl_PREREQ_SYS_H_SOCKET.
20474         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20475         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20476         * modules/socklen (Depends-on): Do not depend on sys_socket.
20477         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20478
20479 2011-03-20  Jim Meyering  <meyering@redhat.com>
20480
20481         maint.mk: sort file names *after* new transformation
20482         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20483         prefix would have led to an unwarranted failure in GNU parted.
20484         Sort after that transformation.
20485
20486 2011-03-19  Jim Meyering  <meyering@redhat.com>
20487
20488         maint.mk: fix po-file syntax-check rule
20489         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20490         Patch by Bruno Haible.
20491
20492 2011-03-19  Bruno Haible  <bruno@clisp.org>
20493
20494         socklen: Update comment.
20495         * m4/socklen.m4: Update comment about platforms.
20496
20497 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20498             Bruno Haible  <bruno@clisp.org>
20499
20500         inet_ntop, inet_pton: Simplify.
20501         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20502         documented to provide socklen_t and we already depend on sys_socket.
20503         * modules/inet_pton (Depends-on): Likewise.
20504         * lib/arpa_inet.in.h: Adjust comment.
20505
20506 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20507             Bruno Haible  <bruno@clisp.org>
20508
20509         netdb: Simplify.
20510         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20511         documented to provide socklen_t and we already depend on sys_socket.
20512         * lib/netdb.in.h: Adjust comment.
20513
20514 2011-03-19  Bruno Haible  <bruno@clisp.org>
20515
20516         sys_socket, netdb: Document problem with socklen_t.
20517         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20518         platforms.
20519         * doc/posix-headers/netdb.texi: Likewise.
20520
20521 2011-03-18  Eric Blake  <eblake@redhat.com>
20522
20523         maint.mk: let po check work in VPATH build
20524         * top/maint.mk (po_file): Allow cfg.mk override.
20525         (sc_po_check): Allow VPATH use.
20526         Reported by Jiri Denemark.
20527
20528 2011-03-16  Jim Meyering  <meyering@redhat.com>
20529
20530         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20531         Before, you would have had to create one .x-sc_ file per rule in order
20532         to exempt offending files.  Now, you may instead use a Make variable --
20533         usually defined in cfg.mk -- whose name identifies the affected rule.
20534         * top/maint.mk (_sc_excl): Define.
20535         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20536         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20537
20538 2011-03-13  Bruno Haible  <bruno@clisp.org>
20539
20540         ignore-value tests: Avoid warnings.
20541         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20542         empty for gcc < 3.4.
20543
20544 2011-03-13  Bruno Haible  <bruno@clisp.org>
20545
20546         passfd: Fix link error on Solaris.
20547         * modules/passfd (Description): Correct.
20548         (Depends-on): Add socketlib.
20549         (Link): New section.
20550         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20551
20552 2011-03-13  Bruno Haible  <bruno@clisp.org>
20553
20554         passfd: Fix link error on AIX 5.2.
20555         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20556
20557 2011-03-13  Bruno Haible  <bruno@clisp.org>
20558
20559         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20560         * lib/sys_socket.in.h: Include <stddef.h>.
20561         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20562         CMSG_FIRSTHDR. Remove unused variable.
20563
20564 2011-03-13  Bruno Haible  <bruno@clisp.org>
20565
20566         passfd: Fix compilation error on OpenBSD.
20567         * lib/passfd.c: Include <sys/uio.h>.
20568
20569 2011-03-13  Bruno Haible  <bruno@clisp.org>
20570
20571         passfd test: Fix warnings.
20572         * tests/test-passfd.c: Include <sys/wait.h>.
20573         (main): Fix typo.
20574
20575 2011-03-13  Bruno Haible  <bruno@clisp.org>
20576
20577         passfd module, part 4, tweaks.
20578         * tests/test-passfd.c: Reorder includes.
20579         (main): Fix perror and printf calls.
20580
20581 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20582
20583         passfd module, part 4.
20584         * modules/passfd-tests: New file.
20585         * tests/test-passfd.c: New file.
20586
20587 2011-03-13  Jim Meyering  <meyering@redhat.com>
20588
20589         Makefile: rely on GNU make; derive syntax-check rule names
20590         Rather than requiring that each sc_ rule be listed as a dependent
20591         of "check", use features of GNU make to derive the list.
20592         * Makefile (syntax-check-rules): Define.
20593         (check): Depend on the new variable, not the hard-coded list.
20594
20595 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20596             Bruno Haible  <bruno@clisp.org>
20597
20598         passfd module, part 3.
20599         * lib/passfd.h (recvfd): Add a flags argument.
20600         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20601         (recvfd): Add a flags argument.
20602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20603         exists.
20604         * modules/passfd (Depends-on): Add cloexec.
20605         Suggested by Eric Blake.
20606
20607 2011-03-13  Bruno Haible  <bruno@clisp.org>
20608
20609         passfd module, part 2, tweaks.
20610         * modules/passfd (Files): Reorder.
20611         (Depends-on): Remove errno.
20612         (Include): Remove <sys/socket.h>, <sys/un.h>.
20613         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20614         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20615         specification header. Include <sys/socket.h> always. Don't include
20616         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20617         (sendfd): Clarify that it sets errno when it fails.
20618         (recvfd): Fix specification.
20619
20620 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20621
20622         passfd module, part 2.
20623         * modules/passfd: New file.
20624         * lib/passfd.h: New file.
20625         * lib/passfd.c: New file.
20626
20627 2011-03-12  Bruno Haible  <bruno@clisp.org>
20628
20629         wcswidth, mbswidth: Avoid integer overflow.
20630         * lib/wcswidth.c: Include <limits.h>.
20631         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20632         * lib/mbswidth.c: Include <limits.h>.
20633         (mbsnwidth): Avoid 'int' overflow.
20634         Reported by Jim Meyering.
20635
20636 2011-03-12  Bruno Haible  <bruno@clisp.org>
20637
20638         futimens, utimensat: Avoid endless recursion on Solaris 10.
20639         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20640         Solaris.
20641         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20642         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20643
20644 2011-03-11  Jim Meyering  <meyering@redhat.com>
20645
20646         maint.mk: relax a regexp to accommodate other formatting styles
20647         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20648         between "ngettext" and the following "(".
20649
20650 2011-03-11  Pádraig Brady <P@draigBrady.com>
20651
20652         maint.mk: suppress a false positive warning
20653         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20654         diagnostics are marked with ngettext.
20655
20656 2011-03-10  Eric Blake  <eblake@redhat.com>
20657
20658         wchar: add explicit dependencies, for Tru64
20659         * modules/mbmemcasecoll (Depends-on): Add wchar.
20660         * modules/mbtowc (Depends-on): Likewise.
20661         * modules/vasnprintf (Depends-on): Likewise.
20662         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20663         * modules/wctomb (Depends-on): Likewise.
20664         Reported by Peter O'Gorman.
20665
20666 2011-03-08  Bruno Haible  <bruno@clisp.org>
20667
20668         passfd module, part 1, tweaks.
20669         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20670         Improve indentation. Improve AC_MSG_CHECKING messages.
20671         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20672         gl_SOCKET_FAMILIES.
20673
20674 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20675
20676         passfd module, part 1.
20677         * m4/afunix.m4: New file.
20678         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20679         sockets.
20680
20681 2011-03-08  Bruno Haible  <bruno@clisp.org>
20682
20683         regex-quote: New API.
20684         * lib/regex-quote.h: Include <stdbool.h>.
20685         (struct regex_quote_spec): New type.
20686         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20687         New declarations.
20688         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20689         'const struct regex_quote_spec *' argument.
20690         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20691         (pcre_special): New constant.
20692         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20693         New functions.
20694         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20695         'const struct regex_quote_spec *' argument.
20696         * modules/regex-quote (Depends-on): Add stdbool.
20697         * tests/test-regex-quote.c (check): Update for new API. Add test for
20698         anchored results.
20699         * NEWS: Mention the API change.
20700         Reported by Reuben Thomas and Eric Blake.
20701
20702 2011-03-06  Bruno Haible  <bruno@clisp.org>
20703
20704         regex-quote: Fix creation of POSIX extended regular expressions.
20705         * lib/regex-quote.c (ere_special): Add grouping and alternation
20706         operators.
20707
20708 2011-03-05  Bruno Haible  <bruno@clisp.org>
20709
20710         doc: Improve doc regarding autopoint vs. gnulib.
20711         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20712         disable autopoint while running autoreconf.
20713         Suggested by Ralf Wildenhues.
20714
20715 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20716
20717         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20718         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20719
20720 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20721
20722         parse-duration: remove xalloc.h dependency
20723         * lib/parse-duration.c (parse_period): handle NULL return from
20724         strdup instead of calling xstrdup().
20725         * modules/parse-duration: remove "xalloc" dependency
20726
20727 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20728
20729         bootstrap: honor m4_base when running aclocal
20730         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20731
20732 2011-03-02  Jim Meyering  <meyering@redhat.com>
20733
20734         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20735         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20736         on request from Matt Booth.
20737
20738 2011-03-01  Eric Blake  <eblake@redhat.com>
20739
20740         test-link: work on Hurd
20741         * tests/test-link.h (test_link): Hurd rejects linking directories
20742         with EISDIR instead of the POSIX-mandated EPERM.
20743
20744 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20745
20746         stdio: simplify by moving files to printf-posix, sigpipe
20747         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20748         since this symbol is needed only if printf is replaced.
20749         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20750         Require gl_ASM_SYMBOL_PREFIX.
20751         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20752         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20753         (Depends-on): Add 'raise'.
20754         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20755         * modules/stdio (Files): Remove lib/stdio-write.c,
20756         m4/asm-underscore.m4.
20757         (Depends-on): Remove 'raise'.
20758
20759         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20760         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20761         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20762         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20763
20764 2011-02-28  Bruno Haible  <bruno@clisp.org>
20765
20766         localcharset: Assume ANSI C behaviour of free().
20767         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20768         calling free().
20769         Suggested by Simon Josefsson <simon@josefsson.org>.
20770
20771 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20772             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20773             Bruno Haible  <bruno@clisp.org>  (tiny change)
20774
20775         On Cygwin, use /proc file system instead of win32 API.
20776         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20777         Win32 file names.
20778         (DllMain): Simplify by removing Cygwin specific code.
20779         (find_shared_library_fullname): Use Linux specific implementation also
20780         for Cygwin.
20781         (get_shared_library_fullname): Update accordingly.
20782         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20783         Win32 file names.
20784         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20785         Cygwin specific code.
20786
20787 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20788             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20789
20790         Fix OpenMP flag detection for various Fortran compilers.
20791         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20792         OpenMP-conditional compilation construct, to force compile
20793         failure with missing OpenMP flag.
20794         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20795
20796 2011-02-25  Eric Blake  <eblake@redhat.com>
20797
20798         strstr: expand test coverage
20799         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20800         compilation.
20801         * tests/test-memmem.c (main): Duplicate tests.
20802         * tests/test-strcasestr.c (main): Likewise.
20803         * tests/test-c-strcasestr.c (main): Likewise.
20804
20805 2011-02-25  Jim Meyering  <meyering@redhat.com>
20806
20807         maint.mk: detect missing-NL-at-EOF, too
20808         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20809         it also detects when a file lacks a newline at EOF.
20810         (require_exactly_one_NL_at_EOF_): Renamed from
20811         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20812         since people may well have .x-sc_... file names tied to the
20813         existing name.  Suggested by Eric Blake.
20814
20815 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20816
20817         dirname: move m4/dos.m4 functionality into lib/dosname.h
20818
20819         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20820         extracts symbols from it, puts them into config.h; but it's much
20821         easier to use the symbols directly.  filename.h already does this,
20822         but it disagrees with dos.m4 in some respects.  This patch
20823         introduces a different include file dosname.h that packages up
20824         dos.m4, and then later we can work on merging filename.h and
20825         dosname.h.  Applications that need only the easy-to-configure
20826         symbols should consider including dosname.h rather than dirname.h.
20827         * NEWS: Mention incompatible changes.
20828         * m4/dos.m4: Remove.
20829         * lib/dosname.h, modules/dosname: New files.
20830         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20831         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20832         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20833         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20834         Include dosname.h, not dirname.h.
20835         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20836         Include dosname.h, for definitions of symbols like ISSLASH
20837         that used to be in config.h.
20838         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20839         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20840         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20841         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20842         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20843         * modules/rmdir (Files): Likewise.
20844         * modules/stat (Files): Likewise.
20845         * modules/unlink (Files): Likewise.
20846         * modules/dirname-lgpl (Depends-on): Add dosname.
20847         * modules/lstat (Depends-on): Likewise.
20848         * modules/openat (Depends-on): Likewise.
20849         * modules/rmdir (Depends-on): Likewise.
20850         * modules/savewd (Depends-on): Likewise.
20851         * modules/stat (Depends-on): Likewise.
20852         * modules/unlink (Depends-on): Likewise.
20853         * modules/openat (Depends-on): Remove dirname-lgpl.
20854         * modules/savewd (Depends-on): Likewise.
20855         * tests/test-dirname.c: Do not use removed symbols like
20856         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20857         the remaining symbols, e.g., ISSLASH ('\\').
20858
20859 2011-02-25  Eric Blake  <eblake@redhat.com>
20860
20861         strstr: revert patches that introduced bug and pessimization
20862         * lib/str-two-way.h: Add another reference.
20863         (two_way_short_needle, two_way_long_needle): Revert changes from
20864         2011-02-24; they pessimize search speed.
20865         (critical_factorization): Partially revert changes from
20866         2010-06-22; they violate the requirement that the left half of the
20867         needle be smaller than the period of the needle.
20868
20869 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20870
20871         filenamecat: remove unnecessary dependency on dirname-lgpl
20872         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20873         is no direct dependency, just an indirect one via filenamecat-lgpl.
20874
20875         remove: remove unnecessary use of m4/dos.m4
20876         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20877         * modules/remove (FILES): Remove m4/dos.m4.
20878
20879         * lib/openat-proc.c: Don't include dirname.h; not needed.
20880
20881         backupfile: remove unnecessary use of m4/dos.m4
20882         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20883         of its symbols are used by the backupfile code.  backupfile.c does
20884         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20885         for the rare case of programs that want all their backup file
20886         names to live within 8+3 limits, and dos.m4 doesn't address that.
20887         * modules/backupfile (Files): Remove m4/dos.m4.
20888
20889 2011-02-24  Jim Meyering  <meyering@redhat.com>
20890
20891         strstr: fix a bug whereby strstr would mistakenly return NULL
20892         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20893         in period calculation.
20894         (two_way_long_needle): Likewise.
20895         The original problem was reported by Mike Stump in
20896         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20897         Ralf Wildenhues provided the short needle and haystack.
20898         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20899         Add a more involved test to trigger the bug in two_way_long_needle.
20900
20901 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20902
20903         gnulib-tool: remove use of bold display in help screen
20904         * gnulib-tool (func_usage): Do not use bold display anymore in the
20905         help screen.  That was just meant to be a temporary emphasis for a
20906         backward-incompatible change.
20907
20908 2011-02-23  Bruno Haible  <bruno@clisp.org>
20909
20910         Fix misindentation of preprocessor directives.
20911         * lib/argp-namefrob.h: Reindent preprocessor directives.
20912         * lib/getopt_int.h (struct _getopt_data): Likewise.
20913         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20914         * lib/vasnprintf.c (decode_long_double): Likewise.
20915         * tests/test-argmatch.c: Insert blank lines, for clarity.
20916         * tests/test-exclude.c: Likewise.
20917
20918 2011-02-22  Bruno Haible  <bruno@clisp.org>
20919
20920         ioctl: Fix for MacOS X in 64-bit mode.
20921         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20922         value.
20923         Suggested by Eric Blake.
20924         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20925
20926 2011-02-22  Jim Meyering  <meyering@redhat.com>
20927
20928         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20929         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20930         in lib/.
20931
20932 2011-02-22  Eric Blake  <eblake@redhat.com>
20933
20934         maint: avoid any CDPATH issue
20935         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20936
20937         maint: adjust cpp indentation for my modules, as well
20938         * Makefile (sc_cpp_indent_check): Add my name.
20939         * lib/fbufmode.c: Filter through cppi.
20940         * lib/fpurge.c: Likewise.
20941         * lib/freadable.c: Likewise.
20942         * lib/freading.c: Likewise.
20943         * lib/fwritable.c: Likewise.
20944         * lib/fwriting.c: Likewise.
20945         * lib/sigaction.c: Likewise.
20946
20947 2011-02-22  Jim Meyering  <meyering@redhat.com>
20948
20949         maint: adjust cpp indentation to reflect nesting depth
20950         I.e., in a block of code that begins with an unnested "#if",
20951         put one space between the "#" in column 1 and following token.
20952         For example,
20953         -#include <sys/vfs.h>
20954         +# include <sys/vfs.h>
20955         Do this only in .c files that are part of a module I maintain.
20956         * lib/linkat.c: Filter through cppi.
20957         * lib/nanosleep.c: Likewise.
20958         * lib/openat.c: Likewise.
20959         * lib/openat-die.c: Likewise.
20960         * lib/dup3.c: Likewise.
20961         * lib/fchownat.c: Likewise.
20962         * lib/flock.c: Likewise.
20963         * lib/fsync.c: Likewise.
20964         * lib/fts.c: Likewise.
20965         * lib/getpass.c: Likewise.
20966         * lib/gettimeofday.c: Likewise.
20967         * lib/userspec.c: Likewise.
20968         * Makefile (sc_cpp_indent_check): New rule, to check this.
20969
20970 2011-02-22  Bruno Haible  <bruno@clisp.org>
20971
20972         New module 'wctomb'.
20973         * lib/stdlib.in.h (wctomb): New declaration.
20974         * lib/wctomb.c: New file.
20975         * lib/wctomb-impl.h: New file.
20976         * m4/wctomb.m4: New file.
20977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20978         REPLACE_WCTOMB.
20979         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20980         REPLACE_WCTOMB.
20981         * modules/wctomb: New file.
20982         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20983         * doc/posix-functions/wctomb.texi: Mention the new module.
20984         * modules/wctob (Depends-on): Add wctomb.
20985
20986 2011-02-22  Bruno Haible  <bruno@clisp.org>
20987
20988         New module 'mbtowc'.
20989         * lib/stdlib.in.h (mbtowc): New declaration.
20990         * lib/mbtowc.c: New file.
20991         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20992         * m4/mbtowc.m4: New file.
20993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20994         REPLACE_MBTOWC.
20995         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20996         REPLACE_MBTOWC.
20997         * modules/mbtowc: New file.
20998         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20999         * doc/posix-functions/mbtowc.texi: Mention the new module.
21000         * modules/btowc (Depends-on): Add mbtowc.
21001
21002 2011-02-22  Bruno Haible  <bruno@clisp.org>
21003
21004         wcrtomb: Add more tests for native Windows platforms.
21005         * tests/test-wcrtomb-w32-1.sh: New file.
21006         * tests/test-wcrtomb-w32-2.sh: New file.
21007         * tests/test-wcrtomb-w32-3.sh: New file.
21008         * tests/test-wcrtomb-w32-4.sh: New file.
21009         * tests/test-wcrtomb-w32-5.sh: New file.
21010         * tests/test-wcrtomb-w32.c: New file.
21011         * modules/wcrtomb-tests (Files): Add them.
21012         (Makefile.am): Arrange to run these tests.
21013         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21014         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21015
21016 2011-02-20  Bruno Haible  <bruno@clisp.org>
21017
21018         wcrtomb: Enhance test.
21019         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21020
21021 2011-02-20  Bruno Haible  <bruno@clisp.org>
21022
21023         mbrtowc: Tiny optimization.
21024         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21025
21026 2011-02-20  Jim Meyering  <meyering@redhat.com>
21027
21028         test-exclude.c: remove unmatched #endif
21029         * tests/test-exclude.c: Remove stray #endif, left over from
21030         the change of a week ago.
21031
21032 2011-02-19  Jim Meyering  <meyering@redhat.com>
21033
21034         git-version-gen: skip "-dirty" check when appropriate
21035         * build-aux/git-version-gen: Don't run any git commands when the
21036         version string comes from .tarball-version.  Prior to this, we
21037         would run git update-index --refresh even from a just-unpacked
21038         tarball directory, and that could affect a .git/ directory in a
21039         parent of the build directory.  Reported by Mike Frysinger.
21040
21041 2011-02-19  Bruno Haible  <bruno@clisp.org>
21042
21043         unictype/property-byname: Reduce the size of the 'data' segment.
21044         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21045
21046 2011-02-19  Bruno Haible  <bruno@clisp.org>
21047
21048         unictype/scripts: Reduce the size of the 'data' segment.
21049         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21050         '%pic'.
21051         * lib/unictype/scripts_byname.gperf: Regenerated.
21052
21053 2011-02-19  Bruno Haible  <bruno@clisp.org>
21054
21055         stdint: Update documentation.
21056         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21057
21058 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21059
21060         stdint: omit redundant check for wchar.h
21061         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21062         always tests whether wchar.h exists, so remove the now-redundant test.
21063
21064 2011-02-18  Bruno Haible  <bruno@clisp.org>
21065
21066         stdint: Cut dependency to module 'wchar'.
21067         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21068         include the necessary prerequisites.
21069         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21070         * modules/stdint (Depends-on): Remove wchar.
21071         (Makefile.am): Substitute HAVE_WCHAR_H.
21072         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21073
21074 2011-02-18  Eric Blake  <eblake@redhat.com>
21075
21076         longlong: skip, rather than fail, on cross-compilation
21077         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21078         when cross-compiling; regression from 2011-02-16.
21079
21080 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21081
21082         * NEWS: Mention 2011-02-08 change to stdlib.
21083
21084 2011-02-17  Bruno Haible  <bruno@clisp.org>
21085
21086         getloadavg: Add comments about platforms.
21087         * m4/getloadavg.m4: Add comment.
21088         * lib/getloadavg.c: Likewise.
21089
21090 2011-02-17  Bruno Haible  <bruno@clisp.org>
21091
21092         getloadavg: Fix link error on Solaris 2.6.
21093         * modules/getloadavg (Link): New section.
21094         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21095         linking test-getloadavg.
21096         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21097         getloadavg.
21098
21099 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21100
21101         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21102         It was 'int', but this doesn't match the IRIX 6.5 manual.
21103         Suggested by Bruno Haible in
21104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21105
21106 2011-02-17  Bruno Haible  <bruno@clisp.org>
21107
21108         havelib: Fix comments.
21109         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21110         change.
21111
21112 2011-02-17  Bruno Haible  <bruno@clisp.org>
21113
21114         havelib: Update config.rpath.
21115         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21116
21117 2011-02-17  Bruno Haible  <bruno@clisp.org>
21118
21119         getloadavg test: Add some plausibility checks.
21120         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21121         is improbable.
21122
21123 2011-02-16  Eric Blake  <eblake@redhat.com>
21124
21125         maintainer-makefile: make syntax-check a no-op from tarballs
21126         * top/maint.mk (no-vc-detected): New rule.
21127         (local-checks-available): Use it to avoid hanging if someone tries
21128         'make syntax-check' from a tarball.  Also append to any non-syntax
21129         checks already defined in cfg.mk.
21130
21131 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21132
21133         longlong: tune, particularly for common case of c99
21134
21135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21136         or running anything if c99, or if unsigned long long int does not
21137         work.  In either case, we know the answer without further tests.
21138         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21139         it at most once, and use its results for both long long int and
21140         unsigned long long int.  This is more likely to be efficient in
21141         the common case where the program wants to check for both long
21142         long int and unsigned long long int.
21143         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21144         since the answer is already known.
21145
21146 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21147
21148         getloadavg: set errno
21149         * lib/getloadavg.c: Set errno when returning -1.  If no other
21150         error number looks appropriate, set it to ENOSYS if the getloadavg
21151         looks like it can't possibly ever work, ENOTSUP otherwise.
21152         Suggested by Bruno Haible in
21153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21154
21155         getloadavg: trim unused parts and speed up 'configure'
21156         * NEWS: Document this.
21157         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21158         always compiled if getloadavg is absent.
21159         Move test code to ...
21160         * tests/test-getloadavg.c: New file, containing previous
21161         contents of test from lib/getloadavg.c.  It also contains
21162         suggestions by Bruno Haible in
21163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21164         * modules/getloadavg-tests: New file.
21165         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21166         Do tests in the same order as they're needed for getloadavg.c.
21167         Omit setgid-related tests that generate symbols KMEM_GROUP,
21168         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21169         Do only the tests that are needed to see whether the system has
21170         getloadavg, moving the other tests into ...
21171         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21172         NLIST_NAME_UNION; nobody should be using it.  Do not define
21173         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21174         relevant, as the user of this module shouldn't care how getloadavg
21175         is implemented.
21176
21177         getloadavg: omit unused var
21178         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21179
21180 2011-02-15  Jim Meyering  <meyering@redhat.com>
21181
21182         doc: update users.txt
21183         * users.txt: Update iwhd's URL.
21184
21185 2011-02-13  Bruno Haible  <bruno@clisp.org>
21186
21187         Consistent macro naming for macros that use GCC __attribute__.
21188         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21189         _ATTRIBUTE_NONNULL_.
21190         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21191         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21192         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21193         ATTRIBUTE_DEPRECATED.
21194         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21195         ATTRIBUTE_NORETURN.
21196         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21197         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21198         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21199         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21200         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21201         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21202         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21203         ATTRIBUTE_SENTINEL.
21204         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21205         ATTRIBUTE_RETURN_CHECK.
21206         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21207         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21208         ATTRIBUTE_NORETURN.
21209         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21210         Reported by Paul Eggert.
21211
21212 2011-02-13  Bruno Haible  <bruno@clisp.org>
21213
21214         Don't interfere with a program's definition of __attribute__.
21215         * lib/argp.h (__attribute__): Remove definition.
21216         (_GL_ATTRIBUTE_FORMAT): New macro.
21217         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21218         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21219         (_GL_ATTRIBUTE_FORMAT): New macro.
21220         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21221         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21222         GCC 3 or newer.
21223         * lib/error.h (__attribute__): Remove definition.
21224         (_GL_ATTRIBUTE_FORMAT): New macro.
21225         (error, error_at_line): Use it.
21226         * lib/hash.h (__attribute__): Remove definition.
21227         (ATTRIBUTE_WUR): Update definition. Define always.
21228         * lib/openat.h (__attribute__): Remove definition.
21229         (ATTRIBUTE_NORETURN): Update definition. Define always.
21230         * lib/sigpipe-die.h (__attribute__): Remove definition.
21231         (ATTRIBUTE_NORETURN): Update definition. Define always.
21232         * lib/vasnprintf.h (__attribute__): Remove definition.
21233         (_GL_ATTRIBUTE_FORMAT): New macro.
21234         (asnprintf, vasnprintf): Use it.
21235         * lib/xalloc.h (__attribute__): Remove definition.
21236         (ATTRIBUTE_NORETURN): Update definition. Define always.
21237         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21238         * lib/xmemdup0.h (__attribute__): Remove definition.
21239         (ATTRIBUTE_NORETURN): Update definition. Define always.
21240         * lib/xprintf.h (__attribute__): Remove definition.
21241         (_GL_ATTRIBUTE_FORMAT): New macro.
21242         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21243         * lib/xstrtol.h (__attribute__): Remove definition.
21244         (ATTRIBUTE_NORETURN): Update definition. Define always.
21245         * lib/xvasprintf.h (__attribute__): Remove definition.
21246         (_GL_ATTRIBUTE_FORMAT): New macro.
21247         (xasprintf, xvasprintf): Use it.
21248         * tests/test-argmatch.c (__attribute__): Remove definition.
21249         (ATTRIBUTE_NORETURN): Update definition. Define always.
21250         * tests/test-exclude.c (__attribute__): Remove definition.
21251         (ATTRIBUTE_NORETURN): Update definition. Define always.
21252         Reported by Paul Eggert.
21253
21254 2011-02-13  Bruno Haible  <bruno@clisp.org>
21255
21256         mbrtowc: Add more tests for native Windows platforms.
21257         * tests/test-mbrtowc-w32-1.sh: New file.
21258         * tests/test-mbrtowc-w32-2.sh: New file.
21259         * tests/test-mbrtowc-w32-3.sh: New file.
21260         * tests/test-mbrtowc-w32-4.sh: New file.
21261         * tests/test-mbrtowc-w32-5.sh: New file.
21262         * tests/test-mbrtowc-w32.c: New file.
21263         * modules/mbrtowc-tests (Files): Add them.
21264         (Makefile.am): Arrange to run these tests.
21265         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21266         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21267
21268 2011-02-13  Bruno Haible  <bruno@clisp.org>
21269
21270         mbrtowc: Work around native Windows bug.
21271         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21272         guess when no suitable locale for testing was found.
21273         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21274
21275 2011-02-13  Bruno Haible  <bruno@clisp.org>
21276
21277         mbsinit: Work around mingw bug.
21278         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21279         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21280         Windows.
21281         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21282
21283 2011-02-13  Bruno Haible  <bruno@clisp.org>
21284
21285         mbsinit: Don't crash for a NULL argument.
21286         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21287         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21288
21289 2011-02-13  Bruno Haible  <bruno@clisp.org>
21290
21291         Don't interfere with a program's definition of __attribute__.
21292         * lib/stdio.in.h (__attribute__): Remove definition.
21293         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21294         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21295         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21296         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21297         * lib/string.in.h (__attribute__): Remove definition.
21298         Reported by Paul Eggert.
21299
21300 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21301
21302         stdlib: don't get in the way of non-GCC __attribute__
21303         See thread starting at
21304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21305         Revert previous stdlib change, installing the following instead:
21306         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21307         to get in the way of a non-GCC compiler that supports __attribute__.
21308         (_GL_ATTRIBUTE_RETURN): New macro.
21309         (_Exit): Use it instead of __attribute__.
21310
21311 2011-02-12  Bruno Haible  <bruno@clisp.org>
21312
21313         quotearg test: Avoid test failure on mingw.
21314         * tests/test-quotearg.sh: Convert the locale identifier from native
21315         Windows syntax to Unix syntax.
21316
21317 2011-02-12  Bruno Haible  <bruno@clisp.org>
21318
21319         setlocale: Prefer gnulib's override over libintl's override.
21320         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21321         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21322         GNULIB_defined_setlocale is set.
21323
21324 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21325
21326         stdlib: support non-GCC __attribute__
21327
21328         Fix a serious and tricky problem encountered when attempting to
21329         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21330         5.5, but it crashed due to memory corruption on Solaris 10 with
21331         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21332         bits that are otherwise zero.  This tagging is optional inside
21333         Emacs but is preferred and is used when __attribute__ ((__aligned
21334         (8))) works, as it does with both recent-enough GCC and with Sun C
21335         5.11.  However, Sun C 5.11 is not GCC and does not #define
21336         __GNUC__ and __GNUC_MINOR__.
21337
21338         When I added the getloadavg module to Emacs, it brought in
21339         stdlib.in.h, which contained this fragment:
21340
21341            #ifndef __attribute__
21342            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21343            #  define __attribute__(Spec)   /* empty */
21344            # endif
21345            #endif
21346
21347         When files that include <stdlib.h> were compiled with Sun C 5.11,
21348         the above code disabled __attribute__ ((__aligned (8))), which
21349         caused variables to not be properly aligned, which eventually led
21350         to the pointer corruption mentioned above.  (This was a bit hard
21351         to diagnose, unfortunately.)
21352
21353         Several "#define __attribute__(X) /* empty */" code snippets need
21354         to be eradicated from Gnulib to work with non-GCC compilers that
21355         support __attribute__.  The Autoconf way to do this is to test for
21356         each kind of attribute that we want support for, and selectively
21357         enable that in source code.
21358
21359         Fix this problem just for stdlib.h, by adding a test for the
21360         __noreturn__ attribute, and change stdlib.in.h to use that test
21361         when needed.  This technique can be easily generalized to the
21362         other *.in.h files and attributes, and a similar technique can be
21363         used for *.h and *.c files.  This patch is enough to solve the
21364         problem for Emacs + getloadavg, and I thought I'd publish it for
21365         feedback before undertaking further, similar fixes in other
21366         modules.
21367
21368         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21369         because it's not needed for stdlib.h.  It merely substitutes the
21370         value directly into stdlib.h.  We may well need to #define it, or
21371         similar symbols, for other modules, but it's nice to also have an
21372         option to not #define it for applications like Emacs that do not
21373         need it.
21374
21375         * lib/stdlib.in.h (__attribute__): Do not #define.
21376         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21377         be defined only if the _Exit module is also used.
21378         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21380         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21381         platforms.
21382         * modules/_Exit (Files): Add m4/attribute.m4.
21383         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21384         * m4/attribute.m4: New file.
21385
21386 2011-02-12  Bruno Haible  <bruno@clisp.org>
21387
21388         wcsrtombs: Work around bug on native Windows.
21389         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21390         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21391         instead of len.
21392         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21393
21394 2011-02-12  Bruno Haible  <bruno@clisp.org>
21395
21396         mbsrtowcs: Work around bug on native Windows.
21397         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21398         against mingw bug.
21399         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21400
21401 2011-02-12  Bruno Haible  <bruno@clisp.org>
21402
21403         Avoid setlocale bugs in tests.
21404         * modules/btowc (Dependencies): Add setlocale.
21405         * modules/c-strcase (Dependencies): Likewise.
21406         * modules/mbmemcasecmp (Dependencies): Likewise.
21407         * modules/mbmemcasecoll (Dependencies): Likewise.
21408         * modules/mbrtowc (Dependencies): Likewise.
21409         * modules/mbscasecmp (Dependencies): Likewise.
21410         * modules/mbscasestr (Dependencies): Likewise.
21411         * modules/mbschr (Dependencies): Likewise.
21412         * modules/mbscspn (Dependencies): Likewise.
21413         * modules/mbsinit (Dependencies): Likewise.
21414         * modules/mbsncasecmp (Dependencies): Likewise.
21415         * modules/mbsnrtowcs (Dependencies): Likewise.
21416         * modules/mbspbrk (Dependencies): Likewise.
21417         * modules/mbspcasecmp (Dependencies): Likewise.
21418         * modules/mbsrchr (Dependencies): Likewise.
21419         * modules/mbsrtowcs (Dependencies): Likewise.
21420         * modules/mbsspn (Dependencies): Likewise.
21421         * modules/mbsstr (Dependencies): Likewise.
21422         * modules/nl_langinfo (Dependencies): Likewise.
21423         * modules/quotearg (Dependencies): Likewise.
21424         * modules/unicase/locale-language (Dependencies): Likewise.
21425         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21426         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21427         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21428         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21429         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21430         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21431         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21432         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21433         * modules/vasnprintf-posix (Dependencies): Likewise.
21434         * modules/wcrtomb (Dependencies): Likewise.
21435         * modules/wcsnrtombs (Dependencies): Likewise.
21436         * modules/wcsrtombs (Dependencies): Likewise.
21437
21438 2011-02-12  Bruno Haible  <bruno@clisp.org>
21439
21440         setlocale: Workaround native Windows bug.
21441         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21442         succeeds but sets LC_CTYPE to "C", report a failure.
21443         * tests/test-setlocale2.sh: New file.
21444         * tests/test-setlocale2.c: New file.
21445         * modules/setlocale-tests (Files): Add the new files.
21446         (Makefile.am): Enable test-setlocale2.sh test.
21447         * doc/posix-functions/setlocale.texi: Mention workaround.
21448
21449 2011-02-11  Bruno Haible  <bruno@clisp.org>
21450
21451         Tests for module 'setlocale'.
21452         * modules/setlocale-tests: New file.
21453         * tests/test-setlocale1.sh: New file.
21454         * tests/test-setlocale1.c: New file.
21455
21456         New module 'setlocale'.
21457         * lib/locale.in.h (setlocale): New declaration.
21458         * lib/setlocale.c: New file, based on
21459         gettext/gettext-runtime/intl/setlocale.c.
21460         * m4/setlocale.m4: New file.
21461         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21462         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21463         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21464         REPLACE_SETLOCALE.
21465         * modules/setlocale: New file.
21466         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21467         * doc/posix-functions/setlocale.texi: Mention the new module.
21468
21469 2011-02-11  Bruno Haible  <bruno@clisp.org>
21470
21471         Prepare for locale dependent tests on mingw.
21472         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21473         because it has the wrong locale encoding.
21474         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21475         French_France.1252 instead of "fr".
21476         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21477         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21478         because it has the wrong locale encoding.
21479         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21480         native Windows, try Turkish_Turkey.65001.
21481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21482         Chinese_China.54936.
21483
21484         Prepare for locale dependent tests on mingw.
21485         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21486         differently.
21487         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21488         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21489         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21490         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21491
21492 2011-02-11  Eric Blake  <eblake@redhat.com>
21493
21494         strptime: avoid compiler warnings
21495         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21496         compiler warnings about dead code.
21497         Reported by Daniel P. Berrange.
21498
21499 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21500
21501         doc: update users.txt
21502         * users.txt: Add rcs.
21503
21504 2011-02-10  John W. Eaton  <jwe@gnu.org>
21505
21506         doc: update users.txt
21507         * users.txt: Add octave.
21508
21509 2011-02-10  Jim Meyering  <meyering@redhat.com>
21510
21511         doc: update users.txt
21512         * users.txt: Add iwhd.
21513
21514 2011-02-09  Bruno Haible  <bruno@clisp.org>
21515
21516         gnulib-tool: Make copyright notice adjustment more robust.
21517         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21518         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21519         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21520         License".
21521         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21522
21523 2011-02-06  Bruno Haible  <bruno@clisp.org>
21524
21525         New module 'towctrans'.
21526         * modules/towctrans: New file.
21527         * lib/wctype.in.h (towctrans): New declaration.
21528         * lib/towctrans.c: New file.
21529         * lib/towctrans-impl.h: New file.
21530         * m4/towctrans.m4: New file.
21531         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21532         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21533         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21534         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21535         * doc/posix-functions/towctrans.texi: Mention the new module.
21536
21537 2011-02-06  Bruno Haible  <bruno@clisp.org>
21538
21539         New module 'wctrans'.
21540         * modules/wctrans: New file.
21541         * lib/wctype.in.h (wctrans): New declaration.
21542         * lib/wctrans.c: New file.
21543         * lib/wctrans-impl.h: New file.
21544         * m4/wctrans.m4: New file.
21545         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21546         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21547         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21548         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21549         * doc/posix-functions/wctrans.texi: Mention the new module.
21550
21551 2011-02-06  Bruno Haible  <bruno@clisp.org>
21552
21553         New module 'iswctype'.
21554         * modules/iswctype: New file.
21555         * lib/wctype.in.h (iswctype): New declaration.
21556         * lib/iswctype.c: New file.
21557         * lib/iswctype-impl.h: New file.
21558         * m4/iswctype.m4: New file.
21559         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21560         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21561         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21562         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21563         * doc/posix-functions/iswctype.texi: Mention the new module and the
21564         HP-UX 11.00 problem.
21565
21566 2011-02-06  Bruno Haible  <bruno@clisp.org>
21567
21568         New module 'wctype'.
21569         * modules/wctype: Change to represent the wctype() substitute.
21570         * lib/wctype.in.h (wctype): New declaration.
21571         * lib/wctype.c: New file.
21572         * lib/wctype-impl.h: New file.
21573         * m4/wctype.m4: New file.
21574         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21575         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21576         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21577         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21578         * doc/posix-functions/wctype.texi: Mention the new module and the
21579         HP-UX 11.00 problem.
21580
21581 2011-02-06  Bruno Haible  <bruno@clisp.org>
21582
21583         wctype-h: Ensure wctype_t and wctrans_t are defined.
21584         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21585         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21586         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21587         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21588         HAVE_WCTRANS_T.
21589         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21590
21591 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21592
21593         flock: fix license typo
21594
21595         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21596         omitted.
21597
21598 2011-02-08  Bruno Haible  <bruno@clisp.org>
21599
21600         Split large sed scripts, for HP-UX sed.
21601         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21602         to avoid HP-UX limit of 99 commands, in the near future.
21603         * modules/stdlib (Makefile.am): Likewise.
21604         * modules/unistd (Makefile.am): Likewise.
21605         * modules/wchar (Makefile.am): Likewise.
21606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21607         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21608         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21609
21610 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21611             Bruno Haible  <bruno@clisp.org>
21612
21613         stdlib: improve random_r modularization
21614         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21615         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21616         you also need the random_r module to get this material right.
21617         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21618         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21619         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21620
21621 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21622
21623         stdlib: don't depend on stdint
21624         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21625         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21626         be independent of whether stdint.h is needed.
21627         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21628         here, instead of ...
21629         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21630         struct random_data should be using the random_r module, not just
21631         the stdlib module (which wouldn't make sense: what package needs
21632         just struct random_data without also needing random_r?).
21633         * modules/stdlib (Depends-on): Remove stdint.
21634
21635         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21636         See the thread rooted at
21637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21638         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21639         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21640         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21641         __VMS)); previously it was always included (via fcntl--.h).
21642         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21643         hand; this is good enough for load averages.  Also, do not use
21644         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21645         flags directly if available and don't bother otherwise.  (Packages
21646         that need the extra reliability should use the modules that define
21647         these flags on older platforms that lack them.)
21648         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21649         fcntl-safer.
21650
21651 2011-02-08  Jim Meyering  <meyering@redhat.com>
21652
21653         di-set.h, ino-map.h: add multiple-inclusion guard
21654         Technically, the guard is required only for ino-map.h, due to its
21655         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21656         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21657         * lib/ino-map.h: Likewise.
21658
21659 2011-02-06  Bruno Haible  <bruno@clisp.org>
21660
21661         iswblank: Ensure declaration on glibc systems.
21662         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21663         * modules/iswblank (Dependencies): Add 'extensions'.
21664         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21665
21666 2011-02-06  Bruno Haible  <bruno@clisp.org>
21667
21668         New module 'iswblank'.
21669         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21670         * modules/iswblank: New file.
21671         * modules/wctype-h (Files): Remove lib/iswblank.c.
21672         (Makefile.am): Substitute GNULIB_ISWBLANK.
21673         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21674         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21675         (gl_WCTYPE_H_DEFAULTS): New macro.
21676         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21677         * modules/iswblank-tests: New file.
21678         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21679         * tests/test-wctype-h.c (main): Remove iswblank tests.
21680         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21681         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21682         of 'wctype-h'.
21683         * NEWS: Mention the change.
21684         * modules/mbchar (Depends-on): Add iswblank.
21685
21686 2011-02-08  Bruno Haible  <bruno@clisp.org>
21687
21688         di-set tests: Refactor.
21689         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21690         unnecessary includes.
21691         (ASSERT): Remove macro.
21692         (main): Make C90 compliant by avoiding variable declaration after
21693         statement.
21694         * modules/di-set-tests (Files): Add tests/macros.h.
21695
21696 2011-02-08  Bruno Haible  <bruno@clisp.org>
21697
21698         ino-map tests: Refactor.
21699         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21700         unnecessary includes.
21701         (ASSERT): Remove macro.
21702         (main): Make C90 compliant by avoiding variable declaration after
21703         statement.
21704         * modules/ino-map-tests (Files): Add tests/macros.h.
21705
21706 2011-02-08  Jim Meyering  <meyering@redhat.com>
21707
21708         di-set: add "const" to a cast
21709         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21710         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21711
21712 2011-02-06  Bruno Haible  <bruno@clisp.org>
21713
21714         Rename module 'wctype' to 'wctype-h'.
21715         * modules/wctype-h: Renamed from modules/wctype.
21716         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21717         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21718         (Files, Depends-on, Makefile.am): Update.
21719         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21720         (Files, Makefile.am): Update.
21721         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21722         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21723         * doc/posix-headers/wctype.texi: Update.
21724         * doc/posix-functions/iswalnum.texi: Update.
21725         * doc/posix-functions/iswalpha.texi: Update.
21726         * doc/posix-functions/iswblank.texi: Update.
21727         * doc/posix-functions/iswcntrl.texi: Update.
21728         * doc/posix-functions/iswdigit.texi: Update.
21729         * doc/posix-functions/iswgraph.texi: Update.
21730         * doc/posix-functions/iswlower.texi: Update.
21731         * doc/posix-functions/iswprint.texi: Update.
21732         * doc/posix-functions/iswpunct.texi: Update.
21733         * doc/posix-functions/iswspace.texi: Update.
21734         * doc/posix-functions/iswupper.texi: Update.
21735         * doc/posix-functions/iswxdigit.texi: Update.
21736         * doc/posix-functions/towlower.texi: Update.
21737         * doc/posix-functions/towupper.texi: Update.
21738         * NEWS: Mention the change.
21739         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21740         * modules/mbchar (Dependencies): Likewise.
21741         * modules/mbswidth (Dependencies): Likewise.
21742         * modules/quotearg (Dependencies): Likewise.
21743         * modules/regex (Dependencies): Likewise.
21744         * modules/wcscasecmp (Dependencies): Likewise.
21745         * modules/wcsncasecmp (Dependencies): Likewise.
21746         * modules/wcwidth (Dependencies): Likewise.
21747
21748 2011-02-06  Bruno Haible  <bruno@clisp.org>
21749
21750         New module 'wcswidth'.
21751         * modules/wcswidth: New file.
21752         * lib/wchar.in.h (wcswidth): New declaration.
21753         * lib/wcswidth.c: New file.
21754         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21755         * m4/wcswidth.m4: New file.
21756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21758         REPLACE_WCSWIDTH.
21759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21760         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21761         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21762         * doc/posix-functions/wcswidth.texi: Mention the new module.
21763
21764 2011-02-06  Bruno Haible  <bruno@clisp.org>
21765
21766         New module 'wcstok'.
21767         * modules/wcstok: New file.
21768         * lib/wchar.in.h (wcstok): New declaration.
21769         * lib/wcstok.c: New file.
21770         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21771         * m4/wcstok.m4: New file.
21772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21775         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21776         * doc/posix-functions/wcstok.texi: Mention the new module.
21777
21778 2011-02-06  Bruno Haible  <bruno@clisp.org>
21779
21780         New module 'wcsstr'.
21781         * modules/wcsstr: New file.
21782         * lib/wchar.in.h (wcsstr): New declaration.
21783         * lib/wcsstr.c: New file.
21784         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21785         * m4/wcsstr.m4: New file.
21786         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21787         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21788         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21789         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21790         * doc/posix-functions/wcsstr.texi: Mention the new module.
21791
21792 2011-02-06  Bruno Haible  <bruno@clisp.org>
21793
21794         New module 'wcspbrk'.
21795         * modules/wcspbrk: New file.
21796         * lib/wchar.in.h (wcspbrk): New declaration.
21797         * lib/wcspbrk.c: New file.
21798         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21799         * m4/wcspbrk.m4: New file.
21800         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21801         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21802         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21803         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21804         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21805
21806 2011-02-06  Bruno Haible  <bruno@clisp.org>
21807
21808         New module 'wcsspn'.
21809         * modules/wcsspn: New file.
21810         * lib/wchar.in.h (wcsspn): New declaration.
21811         * lib/wcsspn.c: New file.
21812         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21813         * m4/wcsspn.m4: New file.
21814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21817         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21818         * doc/posix-functions/wcsspn.texi: Mention the new module.
21819
21820 2011-02-06  Bruno Haible  <bruno@clisp.org>
21821
21822         New module 'wcscspn'.
21823         * modules/wcscspn: New file.
21824         * lib/wchar.in.h (wcscspn): New declaration.
21825         * lib/wcscspn.c: New file.
21826         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21827         * m4/wcscspn.m4: New file.
21828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21831         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21832         * doc/posix-functions/wcscspn.texi: Mention the new module.
21833
21834 2011-02-06  Bruno Haible  <bruno@clisp.org>
21835
21836         New module 'wcsrchr'.
21837         * modules/wcsrchr: New file.
21838         * lib/wchar.in.h (wcsrchr): New declaration.
21839         * lib/wcsrchr.c: New file.
21840         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21841         * m4/wcsrchr.m4: New file.
21842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21845         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21846         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21847
21848 2011-02-06  Bruno Haible  <bruno@clisp.org>
21849
21850         New module 'wcschr'.
21851         * modules/wcschr: New file.
21852         * lib/wchar.in.h (wcschr): New declaration.
21853         * lib/wcschr.c: New file.
21854         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21855         * m4/wcschr.m4: New file.
21856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21859         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21860         * doc/posix-functions/wcschr.texi: Mention the new module.
21861
21862 2011-02-06  Bruno Haible  <bruno@clisp.org>
21863
21864         New module 'wcsdup'.
21865         * modules/wcsdup: New file.
21866         * lib/wchar.in.h (wcsdup): New declaration.
21867         * lib/wcsdup.c: New file.
21868         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21869         * m4/wcsdup.m4: New file.
21870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21872         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21873         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21874         * doc/posix-functions/wcsdup.texi: Mention the new module.
21875
21876 2011-02-06  Bruno Haible  <bruno@clisp.org>
21877
21878         New module 'wcsxfrm'.
21879         * modules/wcsxfrm: New file.
21880         * lib/wchar.in.h (wcsxfrm): New declaration.
21881         * lib/wcsxfrm.c: New file.
21882         * lib/wcsxfrm-impl.h: New file.
21883         * m4/wcsxfrm.m4: New file.
21884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21887         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21888         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21889
21890 2011-02-06  Bruno Haible  <bruno@clisp.org>
21891
21892         New module 'wcscoll'.
21893         * modules/wcscoll: New file.
21894         * lib/wchar.in.h (wcscoll): New declaration.
21895         * lib/wcscoll.c: New file.
21896         * lib/wcscoll-impl.h: New file.
21897         * m4/wcscoll.m4: New file.
21898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21901         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21902         * doc/posix-functions/wcscoll.texi: Mention the new module.
21903
21904 2011-02-06  Bruno Haible  <bruno@clisp.org>
21905
21906         New module 'wcsncasecmp'.
21907         * modules/wcsncasecmp: New file.
21908         * lib/wchar.in.h (wcsncasecmp): New declaration.
21909         * lib/wcsncasecmp.c: New file.
21910         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21911         * m4/wcsncasecmp.m4: New file.
21912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21915         HAVE_WCSNCASECMP.
21916         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21917         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21918
21919 2011-02-06  Bruno Haible  <bruno@clisp.org>
21920
21921         New module 'wcscasecmp'.
21922         * modules/wcscasecmp: New file.
21923         * lib/wchar.in.h (wcscasecmp): New declaration.
21924         * lib/wcscasecmp.c: New file.
21925         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21926         * m4/wcscasecmp.m4: New file.
21927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21930         HAVE_WCSCASECMP.
21931         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21932         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21933
21934 2011-02-05  Bruno Haible  <bruno@clisp.org>
21935
21936         New module 'wcsncmp'.
21937         * modules/wcsncmp: New file.
21938         * lib/wchar.in.h (wcsncmp): New declaration.
21939         * lib/wcsncmp.c: New file.
21940         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21941         * m4/wcsncmp.m4: New file.
21942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21944         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21945         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21946         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21947
21948 2011-02-05  Bruno Haible  <bruno@clisp.org>
21949
21950         New module 'wcscmp'.
21951         * modules/wcscmp: New file.
21952         * lib/wchar.in.h (wcscmp): New declaration.
21953         * lib/wcscmp.c: New file.
21954         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21955         * m4/wcscmp.m4: New file.
21956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21958         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21959         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21960         * doc/posix-functions/wcscmp.texi: Mention the new module.
21961
21962 2011-02-05  Bruno Haible  <bruno@clisp.org>
21963
21964         New module 'wcsncat'.
21965         * modules/wcsncat: New file.
21966         * lib/wchar.in.h (wcsncat): New declaration.
21967         * lib/wcsncat.c: New file.
21968         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21969         * m4/wcsncat.m4: New file.
21970         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21971         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21972         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21973         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21974         * doc/posix-functions/wcsncat.texi: Mention the new module.
21975
21976 2011-02-05  Bruno Haible  <bruno@clisp.org>
21977
21978         New module 'wcscat'.
21979         * modules/wcscat: New file.
21980         * lib/wchar.in.h (wcscat): New declaration.
21981         * lib/wcscat.c: New file.
21982         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21983         * m4/wcscat.m4: New file.
21984         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21985         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21986         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21987         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21988         * doc/posix-functions/wcscat.texi: Mention the new module.
21989
21990 2011-02-05  Bruno Haible  <bruno@clisp.org>
21991
21992         New module 'wcpncpy'.
21993         * modules/wcpncpy: New file.
21994         * lib/wchar.in.h (wcpncpy): New declaration.
21995         * lib/wcpncpy.c: New file.
21996         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21997         * m4/wcpncpy.m4: New file.
21998         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21999         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22000         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22001         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22002         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22003
22004 2011-02-05  Bruno Haible  <bruno@clisp.org>
22005
22006         New module 'wcsncpy'.
22007         * modules/wcsncpy: New file.
22008         * lib/wchar.in.h (wcsncpy): New declaration.
22009         * lib/wcsncpy.c: New file.
22010         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22011         * m4/wcsncpy.m4: New file.
22012         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22013         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22014         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22015         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22016         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22017
22018 2011-02-05  Bruno Haible  <bruno@clisp.org>
22019
22020         New module 'wcpcpy'.
22021         * modules/wcpcpy: New file.
22022         * lib/wchar.in.h (wcpcpy): New declaration.
22023         * lib/wcpcpy.c: New file.
22024         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22025         * m4/wcpcpy.m4: New file.
22026         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22027         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22028         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22029         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22030         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22031
22032 2011-02-05  Bruno Haible  <bruno@clisp.org>
22033
22034         New module 'wcscpy'.
22035         * modules/wcscpy: New file.
22036         * lib/wchar.in.h (wcscpy): New declaration.
22037         * lib/wcscpy.c: New file.
22038         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22039         * m4/wcscpy.m4: New file.
22040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22043         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22044         * doc/posix-functions/wcscpy.texi: Mention the new module.
22045
22046 2011-02-05  Bruno Haible  <bruno@clisp.org>
22047
22048         New module 'wcsnlen'.
22049         * modules/wcsnlen: New file.
22050         * lib/wchar.in.h (wcsnlen): New declaration.
22051         * lib/wcsnlen.c: New file.
22052         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22053         * m4/wcsnlen.m4: New file.
22054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22057         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22058         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22059
22060 2011-02-05  Bruno Haible  <bruno@clisp.org>
22061
22062         New module 'wcslen'.
22063         * modules/wcslen: New file.
22064         * lib/wchar.in.h (wcslen): New declaration.
22065         * lib/wcslen.c: New file.
22066         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22067         * m4/wcslen.m4: New file.
22068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22071         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22072         * doc/posix-functions/wcslen.texi: Mention the new module.
22073
22074 2011-02-05  Bruno Haible  <bruno@clisp.org>
22075
22076         New module 'wmemset'.
22077         * modules/wmemset: New file.
22078         * lib/wchar.in.h (wmemset): New declaration.
22079         * lib/wmemset.c: New file.
22080         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22081         * m4/wmemset.m4: New file.
22082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22084         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22085         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22086         * doc/posix-functions/wmemset.texi: Mention the new module.
22087
22088 2011-02-05  Bruno Haible  <bruno@clisp.org>
22089
22090         New module 'wmemmove'.
22091         * modules/wmemmove: New file.
22092         * lib/wchar.in.h (wmemmove): New declaration.
22093         * lib/wmemmove.c: New file.
22094         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22095         * m4/wmemmove.m4: New file.
22096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22098         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22099         HAVE_WMEMMOVE.
22100         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22101         * doc/posix-functions/wmemmove.texi: Mention the new module.
22102
22103 2011-02-05  Bruno Haible  <bruno@clisp.org>
22104
22105         New module 'wmemcpy'.
22106         * modules/wmemcpy: New file.
22107         * lib/wchar.in.h (wmemcpy): New declaration.
22108         * lib/wmemcpy.c: New file.
22109         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22110         * m4/wmemcpy.m4: New file.
22111         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22112         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22113         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22114         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22115         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22116
22117 2011-02-05  Bruno Haible  <bruno@clisp.org>
22118
22119         New module 'wmemcmp'.
22120         * modules/wmemcmp: New file.
22121         * lib/wchar.in.h (wmemcmp): New declaration.
22122         * lib/wmemcmp.c: New file.
22123         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22124         * m4/wmemcmp.m4: New file.
22125         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22126         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22127         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22128         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22129         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22130
22131 2011-02-07  Jim Meyering  <meyering@redhat.com>
22132
22133         di-set, ino-map: new modules, from coreutils
22134         * lib/di-set.c: New file.
22135         * lib/di-set.h: Likewise.
22136         * lib/ino-map.c: Likewise.
22137         * lib/ino-map.h: Likewise.
22138         * modules/di-set: Likewise.
22139         * modules/di-set-tests: Likewise.
22140         * modules/ino-map: Likewise.
22141         * modules/ino-map-tests: Likewise.
22142         * tests/test-di-set.c: Likewise.
22143         * tests/test-ino-map.c: Likewise.
22144
22145 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22146
22147         getloadavg: merge minor changes from Emacs
22148
22149         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22150         (getloadavg): Use memset, not bzero.
22151
22152         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22153         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22154         clash (bug#86).
22155
22156 2010-11-14  Bruno Haible  <bruno@clisp.org>
22157
22158         Allow multiple gnulib generated replacements to coexist.
22159         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22160         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22161         * lib/langinfo.in.h (nl_item): Likewise.
22162         * lib/math.in.h (_NaN, NAN): Likewise.
22163         * lib/netdb.in.h (struct addrinfo): Likewise.
22164         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22165         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22166         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22167         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22168         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22169         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22170         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22171         pthread_mutexattr_init, pthread_mutexattr_settype,
22172         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22173         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22174         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22175         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22176         * lib/sched.in.h (struct sched_param): Likewise.
22177         * lib/se-selinux.in.h (security_class_t, security_context_t,
22178         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22179         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22180         lsetfilecon, fsetfilecon, security_check_context,
22181         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22182         Likewise.
22183         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22184         Likewise.
22185         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22186         _gl_function_taking_int_returning_void_t, union sigval,
22187         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22188         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22189         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22190         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22191         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22192         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22193         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22194         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22195         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22196         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22197         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22198         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22199         socklen_t, rpl_fd_isset): Likewise.
22200         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22201         * lib/sys_time.in.h (struct timeval): Likewise.
22202         * lib/sys_times.in.h (struct tms): Likewise.
22203         * lib/sys_utsname.in.h (struct utsname):
22204         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22205         * lib/unistd.in.h (getpagesize): Likewise.
22206         * lib/wchar.in.h (mbstate_t): Likewise.
22207         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22208         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22209         towlower, towupper): Likewise.
22210         Reported by Sam Steingold <sds@gnu.org>.
22211
22212 2011-02-05  Eric Blake  <eblake@redhat.com>
22213
22214         unsetenv: work around Haiku issues
22215         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22216         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22217
22218 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22219
22220         libposix: avoid calling error() within libposix
22221         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22222         is defined.
22223
22224 2011-02-05  Eric Blake  <eblake@redhat.com>
22225
22226         strerror_r-posix: port to cygwin
22227         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22228         implementation.
22229         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22230         * tests/test-strerror_r.c (main): Fix test.
22231         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22232         issue.
22233
22234 2011-02-05  Bruno Haible  <bruno@clisp.org>
22235
22236         New module 'wmemchr'.
22237         * modules/wmemchr: New file.
22238         * lib/wchar.in.h (wmemchr): New declaration.
22239         * lib/wmemchr.c: New file.
22240         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22241         * m4/wmemchr.m4: New file.
22242         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22243         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22244         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22245         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22246         * doc/posix-functions/wmemchr.texi: Mention the new module.
22247
22248 2011-02-04  Eric Blake  <eblake@redhat.com>
22249
22250         fdopendir: detect FreeBSD bug
22251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22252         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22253
22254 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22255
22256         stdbool: do not define HAVE_STDBOOL_H
22257         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22258         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22259         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22260         imported from the latest Autoconf git.  It was motivated by Emacs,
22261         which uses gnulib but does not need HAVE_STDBOOL_H.
22262
22263 2011-02-04  Bruno Haible  <bruno@clisp.org>
22264
22265         wcsnrtombs: Prepare for new module wwcsnrtombs.
22266         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22267         * lib/wcsnrtombs.c: Include it.
22268         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22269
22270         wcsrtombs: Prepare for new module wwcsrtombs.
22271         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22272         * lib/wcsrtombs.c: Include it.
22273         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22274
22275         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22276         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22277         * lib/mbsnrtowcs.c: Include it.
22278         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22279
22280         mbsrtowcs: Prepare for new module mbsrtowwcs.
22281         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22282         * lib/mbsrtowcs.c: Include it.
22283         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22284
22285 2011-02-04  Bruno Haible  <bruno@clisp.org>
22286
22287         vasnprintf: Reduce use of malloc for small format strings.
22288         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22289         (arguments): Add room for the first 7 arguments.
22290         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22291         (char_directives, u8_directives, u16_directives, u32_directives): Add
22292         room for the first 7 directives.
22293         * lib/printf-parse.c: Include <string.h>.
22294         (PRINTF_PARSE): Change memory handling code so that it uses the first
22295         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22296         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22297         Reported by Pádraig Brady <P@draigbrady.com>.
22298
22299 2011-01-31  Eric Blake  <eblake@redhat.com>
22300
22301         dup2: work around Haiku bug
22302         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22303         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22304         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22305         * tests/test-dup2.c (main): Enhance test.
22306
22307 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22308
22309         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22310         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22311         declared by eglibc 2.11.2.
22312         * lib/stdio.in.h: Likewise.
22313
22314 2011-01-31  Eric Blake  <eblake@redhat.com>
22315
22316         ignore-value: add missing test dependency
22317         * tests/test-ignore-value.c: Revert previous change; stdio.h
22318         provides off_t.
22319         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22320
22321 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22322
22323         mktime: clarify long_int width checking
22324         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22325         the top level, to make it clearer that the assumption about
22326         long_int width is being checked.  See
22327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22328
22329 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22330
22331         ignore-value: Fix self-test.
22332         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22333
22334 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22335
22336         TYPE_MAXIMUM: avoid theoretically undefined behavior
22337         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22338         negative number, which the C Standard says has undefined behavior.
22339         In practice this is not a problem, but might as well do it by the book.
22340         Reported by Rich Felker and Eric Blake; see
22341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22342         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22343         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22345         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22346         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22347         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22348
22349         mktime: #undef mktime before #defining it
22350         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22351
22352         mktime: systematically normalize tm_isdst comparisons
22353         * lib/mktime.c (isdst_differ): New function.
22354         (__mktime_internal): Use it systematically for all isdst comparisons.
22355         This completes the fix for libc BZ #6723, and removes the need for
22356         normalizing tm_isdst.  See
22357         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22358         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22359
22360         mktime: fix some integer overflow issues and sidestep the rest
22361
22362         This was prompted by a bug report by Benjamin Lindner for MinGW
22363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22364         His bug is due to signed integer overflow (0 - INT_MIN), and I
22365         I scanned through mktime.c looking for other integer overflow
22366         problems, fixing all the bugs I found.
22367
22368         Although the C Standard says the resulting code is still not safe
22369         in the presence of integer overflow, in practice it should be good
22370         enough for all real-world two's-complement implementations, except
22371         for debugging environments that deliberately trap on integer
22372         overflow (e.g., gcc -ftrapv).
22373
22374         * lib/mktime.c (WRAPV): New macro.
22375         (SHR): Also check that long_int and time_t shift right in the
22376         usual way, before using the fast-but-unportable method.
22377         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22378         used.  The code already assumed two's complement, so there's
22379         no need to test for alternatives.  All uses removed.
22380         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22381         the C standard.  Problem reported by Rich Felker in
22382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22383         (twos_complement_arithmetic): Also check long_int and time_t.
22384         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22385         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22386         (__mktime_internal): Avoid integer overflow with unary subtraction
22387         in two instances where -1 - X is an adequate replacement for -X,
22388         since the calculations are approximate.
22389
22390 2011-01-29  Eric Blake  <eblake@redhat.com>
22391
22392         mktime: avoid infinite loop
22393         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22394         type; behavior is still undefined but portable to all known targets.
22395         Reported by Rich Felker.
22396
22397 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22398
22399         rename, unlink, same-inode: Relicense.
22400         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22401         * modules/unlink (License): Likewise.
22402         * modules/same-inode (License): Likewise.
22403
22404 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22405
22406         mktime: avoid problems on NetBSD 5 / i386
22407         * lib/mktime.c (long_int): New type.  This works around a problem
22408         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22409         but time_t is 64 bits, and where I expect the existing code is
22410         wrong in some cases.
22411         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22412         (ydhms_diff): Bring back the compile-time check for wide-enough
22413         year and yday.
22414
22415         mktime: fix misspelling in comment
22416         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22417         This merges all recent glibc changes of importance.
22418
22419 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22420
22421         move-if-change: cope with concurrent mv of identical file.
22422         * build-aux/move-if-change (CMPPROG): Accept environment
22423         variable as an override for `cmp'.
22424         (usage): Document CMPPROG.
22425         Adjust comparison to drop stdout.  Cope with failure of mv if
22426         the target file exists and is identical to the source, for
22427         parallel builds.
22428         Report from H.J. Lu against binutils in PR binutils/12283.
22429
22430 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22431
22432         * users.txt: Mention sharutils.
22433
22434 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22435
22436         * users.txt: Mention OATH Toolkit.
22437
22438 2011-01-27  Bruno Haible  <bruno@clisp.org>
22439
22440         Prepare for supporting FreeBSD 10.
22441         * build-aux/config.libpath: Remove handling of freebsd1*.
22442
22443 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22444
22445         Prepare for supporting FreeBSD 10.
22446         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22447         match FreeBSD 10.0.
22448
22449 2011-01-27  Bruno Haible  <bruno@clisp.org>
22450
22451         vma-iter, get-rusage-as: Add OpenBSD support.
22452         * modules/vma-iter (configure.ac): Test for mquery.
22453         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22454         * lib/vma-iter.c: Include <sys/mman.h>.
22455         (vma_iterate): Add an implementation based on mquery().
22456         * lib/resource-ext.h (get_rusage_as): Update comments.
22457         * lib/get-rusage-as.c: Likewise.
22458         * lib/get-rusage-data.c: Likewise.
22459
22460 2011-01-26  Karl Berry  <karl@gnu.org>
22461
22462         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22463         variables to make it easier to override the makeinfo program used.
22464
22465 2011-01-26  Eric Blake  <eblake@redhat.com>
22466
22467         fcntl: work around Haiku F_DUPFD bugs
22468         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22469         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22470         cloexec bit on duplication.
22471         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22472
22473 2011-01-26  Bruno Haible  <bruno@clisp.org>
22474
22475         Enable memory leak tests on AIX.
22476         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22477         * tests/test-fprintf-posix3.c (main): Likewise.
22478
22479 2011-01-26  Bruno Haible  <bruno@clisp.org>
22480
22481         Tests for module 'get-rusage-data'.
22482         * modules/get-rusage-data-tests: New file.
22483         * tests/test-get-rusage-data.c: New file.
22484
22485         New module 'get-rusage-data'.
22486         * lib/resource-ext.h (get_rusage_data): New declaration.
22487         * lib/get-rusage-data.c: New file.
22488         * modules/get-rusage-data: New file.
22489
22490 2011-01-25  Bruno Haible  <bruno@clisp.org>
22491
22492         get-rusage-as: Allow for easier testing.
22493         * lib/resource-ext.h (get_rusage_as): Add comment.
22494         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22495         (main): New function for interactive testing.
22496
22497 2011-01-25  Bruno Haible  <bruno@clisp.org>
22498
22499         vma-iter: Treat Haiku like BeOS.
22500         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22501         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22502
22503 2011-01-25  Eric Blake  <eblake@redhat.com>
22504
22505         c-stack: fix regression on cygwin when libsigsegv is present
22506         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22507
22508 2011-01-24  Bruno Haible  <bruno@clisp.org>
22509
22510         vma-iter: Avoid empty intervals.
22511         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22512         on an empty interval.
22513
22514 2011-01-24  Jim Meyering  <meyering@redhat.com>
22515
22516         u64: remove unnecessary #include
22517         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22518
22519 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22520
22521         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22522         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22523
22524 2011-01-23  Bruno Haible  <bruno@clisp.org>
22525
22526         New module 'vma-iter'.
22527         * lib/vma-iter.h: New file.
22528         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22529         * modules/vma-iter: New file.
22530         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22531         for get_rusage_as_via_iterator.
22532         (vma_iterate_callback): New function.
22533         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22534         * modules/get-rusage-as (Depends-on): Add vma-iter.
22535
22536 2011-01-23  Bruno Haible  <bruno@clisp.org>
22537
22538         uninorm: Tweak includes.
22539         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22540         Reported by Jim Meyering.
22541
22542 2011-01-23  Bruno Haible  <bruno@clisp.org>
22543
22544         get-rusage-as: Improve on NetBSD.
22545         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22546         /proc, like on FreeBSD.
22547
22548 2011-01-23  Jim Meyering  <meyering@redhat.com>
22549
22550         xreadlink.h: remove unnecessary #include
22551         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22552
22553         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22554         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22555
22556 2011-01-23  Bruno Haible  <bruno@clisp.org>
22557
22558         get-rusage-as: Fix bug.
22559         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22560         original limit when aborting the first loop.
22561
22562 2011-01-23  Bruno Haible  <bruno@clisp.org>
22563
22564         wctype: Ensure valid C syntax.
22565         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22566         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22567
22568 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22569
22570         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22572         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22573         as they are needed only for configure's test case.
22574         This removes two unnecessary symbols from config.h.
22575
22576         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22577         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22579         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22580         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22581         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22582         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22583         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22584         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22585         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22586         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22588         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22589         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22590         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22591         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22592         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22593         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22594
22595 2011-01-21  Eric Blake  <eblake@redhat.com>
22596
22597         maintainer-makefile: work with older git for submodule check
22598         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22599         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22600         Reported by Matthias Bolte.
22601
22602         bootstrap: minor portability fixes
22603         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22604         (usage): Omit leading capital and trailing . on help phrases, per
22605         GNU Coding Standards.
22606         (check_versions, top level): Prefix messages with script name.
22607
22608 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22609
22610         bootstrap: support --no-git option
22611         * build-aux/bootstrap: Add --no-git option, to be used when
22612         --gnulib-srcdir points to the exact desired checkout.
22613
22614 2011-01-21  Eric Blake  <eblake@redhat.com>
22615
22616         strerror_r-posix: work with glibc 2.13
22617         * lib/strerror_r.c (strerror_r): Fix return type.
22618
22619 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22620             Bruno Haible  <bruno@clisp.org>
22621
22622         uN_strstr: New unit tests.
22623         * modules/unistr/u8-strstr-tests: New file.
22624         * modules/unistr/u16-strstr-tests: New file.
22625         * modules/unistr/u32-strstr-tests: New file.
22626         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22627         * tests/unistr/test-u8-strstr.c: New file.
22628         * tests/unistr/test-u16-strstr.c: New file.
22629         * tests/unistr/test-u32-strstr.c: New file.
22630
22631 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22632             Bruno Haible  <bruno@clisp.org>
22633
22634         Make uN_strstr functions O(n) worst-case.
22635         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22636         16-bit and 32-bit unit cases, use the unibyte algorithm from
22637         lib/mbsstr.c.
22638         * lib/unistr/u8-strstr.c: Include <string.h>.
22639         (UNIT_IS_UINT8_T): New macro.
22640         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22641         (U_STRLEN, U_STRNLEN): New macros.
22642         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22643         (U_STRLEN, U_STRNLEN): New macros.
22644         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22645         (configure.ac): Update required libunistring version.
22646         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22647         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22648         malloca.
22649         (configure.ac): Update required libunistring version.
22650         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22651         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22652         malloca.
22653         (configure.ac): Update required libunistring version.
22654
22655 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22656             Bruno Haible  <bruno@clisp.org>
22657
22658         Prepare for faster uN_strstr functions.
22659         * lib/str-kmp.h: Support definable UNITs.
22660         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22661         needle_len argument.
22662         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22663         * lib/mbscasestr.c (mbscasestr): Likewise.
22664
22665 2011-01-21  Pádraig Brady <P@draigBrady.com>
22666
22667         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22668         * tests/test-malloca.c (main): Unset the environment variable
22669         to greatly speed up the test.
22670         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22671         * modules/malloca-tests: Depend on unsetenv.
22672
22673 2011-01-21  Pádraig Brady <P@draigBrady.com>
22674
22675         ignore-value: remove stdint dependency
22676         * lib/ignore-value.h: Remove <stdint.h>
22677         * modules/ignore-value: Remove stdint dependency.
22678
22679 2011-01-21  Jim Meyering  <meyering@redhat.com>
22680
22681         maint.mk: adjust variable name to be consistent with other gl_ vars
22682         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22683         to be lower case.
22684
22685 2011-01-20  Jim Meyering  <meyering@redhat.com>
22686
22687         maint.mk: make "check" depend on public-submodule-commit by default
22688         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22689
22690 2011-01-20  Bruno Haible  <bruno@clisp.org>
22691
22692         mbfile, mbiter: Complete change from 2008-12-21.
22693         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22694         * m4/mbiter.m4 (gl_MBITER): Likewise.
22695
22696 2011-01-20  Jim Meyering  <meyering@redhat.com>
22697
22698         init.sh: insert space between each function name and "()"
22699         * tests/init.sh: Make it a little easier to see that a function's
22700         name is "warn_", and not "warn" when looking at the first part of
22701         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22702
22703 2011-01-20  Jim Meyering  <meyering@redhat.com>
22704
22705         mountlist: clean up code formatting
22706         * lib/mountlist.c (read_file_system_list): Split a long line,
22707         correct bracing style, use NULL in place of "(struct statfs *)0",
22708         don't parenthesize return value, add spaces around "=" and after
22709         ";-in-for-stmt".
22710
22711 2011-01-14  Markus Duft <mduft@gentoo.org>
22712
22713         mountlist: add support for Interix
22714         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22715         Apply statvfs to all entries of /dev/fs.
22716         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22717         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22718
22719 2011-01-20  Jim Meyering  <meyering@redhat.com>
22720
22721         maint.mk: improve the public-submodule-commit rule
22722         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22723         to suppress printing of its commands... unless V=1.
22724         Add git submodule's --quiet option to suppress printing of e.g.,
22725         "Entering gnulib" output.
22726         "cd" into $(srcdir) before running git submodule.
22727
22728 2011-01-20  Bruno Haible  <bruno@clisp.org>
22729
22730         include_next: Fix bug introduced on 2011-01-18.
22731         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22732         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22733         ac_cv_header_... variable if the second argument is not 'check'.
22734         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22735         gl_NEXT_HEADERS_INTERNAL.
22736
22737 2011-01-20  Bruno Haible  <bruno@clisp.org>
22738
22739         Allow the user to avoid the GNULIB_TEST_* macros.
22740         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22741         Suggested by Paul Eggert.
22742
22743 2011-01-14  Jim Meyering  <meyering@redhat.com>
22744
22745         bootstrap: avoid failure when there is no .gitmodules file
22746         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22747         has been assigned to, even when its value is the empty string.
22748         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22749         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22750         Reported by John W. Eaton <jwe@gnu.org>.
22751
22752 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22753
22754         assume <ctype.h>, ..., <time.h> exist
22755         For years gnulib has been assuming the existence of the headers
22756         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22757         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22758         them, since they don't appear to be needed.
22759         * README (Portability guidelines): Document this.
22760         * lib/flock.c: Assume <fcntl.h> exists.
22761         * lib/regex_internal.h: Assume <locale.h> exists.
22762         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22764         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22765         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22766         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22767         * m4/regex.m4 (gl_REGEX): Likewise.
22768         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22769         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22770         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22771         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22772         * tests/test-argp.c: Likewise.
22773         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22774
22775         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22776         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22777         AA_APPLE_UNIVERSAL_BUILD.  See
22778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22779         * NEWS: Document this.
22780
22781 2011-01-19  Eric Blake  <eblake@redhat.com>
22782
22783         c-stack: assume stack overflow if SA_SIGINFO unsupported
22784         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22785         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22786         sigaction will work.
22787         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22788         behavior match Linux.
22789         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22790
22791         stdbool-tests: accommodate Haiku
22792         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22793
22794         binary-io: fix O_TEXT on Haiku
22795         * modules/binary-io (Depends-on): Add fcntl-h.
22796         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22797         than blindly undefining O_TEXT.
22798         Reported by Scott McCreary.
22799
22800 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22801
22802         include_next: do not check for standard headers like stddef.h
22803
22804         I found this problem when modifying Emacs to use gnulib.
22805         I noticed that it added HAVE_STDDEF_H to config.h, even though
22806         gnulib always assumes <stddef.h> exists as per README and this
22807         symbol is unnecessary.
22808         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22809         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22810         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22811         faster for headers like stddef.h that are known to exist.
22812         (gl_CHECK_NEXT_HEADERS): Use it.
22813         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22814         rather than gl_CHECK_NEXT_HEADERS.
22815         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22816         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22817
22818 2011-01-18  Eric Blake  <eblake@redhat.com>
22819
22820         ansi-c++-opt: skip C++ dependency style if C++ is unused
22821         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22822         tests when we know C++ compilation is not desired.
22823         Reported by Scott McCreary.
22824
22825 2011-01-18  Bruno Haible  <bruno@clisp.org>
22826
22827         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22828         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22829         (main): Perform test also when getrlimit and setrlimit don't exist or
22830         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22831         limiting the address space size using setrlimit, compare the address
22832         space size before and after the the test.
22833         * tests/test-dprintf-posix2.c: Likewise.
22834         * tests/test-fprintf-posix3.sh: Update skip messages.
22835         * tests/test-dprintf-posix2.sh: Likewise.
22836         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22837         * modules/dprintf-posix-tests (Depends-on): Likewise.
22838         Reported by Bruce Korb <bkorb@gnu.org> and
22839         Gary V. Vaughan <gary@gnu.org>.
22840
22841 2011-01-18  Bruno Haible  <bruno@clisp.org>
22842
22843         get-rusage-as: Improvement for Cygwin.
22844         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22845         areas that are merely reserved.
22846
22847 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22848
22849         strftime: remove dependencies on multibyte modules
22850
22851         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22852         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22853         only if __osf__ is defined, and I suspect OSF doesn't need these
22854         other modules.  If my guess is wrong, we'll need to come up with a
22855         variant of strftime that doesn't need the multibyte modules.
22856
22857         I discovered this problem when attempting modify Emacs to use the
22858         strftime module.  With the previous gnulib, this caused Emacs to
22859         need 31 new files, ranging from lib/config.charset to
22860         m4/wint_t.m4.  This was overkill and I expect would be offputting
22861         to the Emacs maintainers.  After this change, only 6 new files are
22862         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22863         stdbool.m4, and tm_gmtoff.m4.
22864
22865         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22866         Suggested by Bruno Haible in
22867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22868         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22869         and do not check for wchar.h.
22870         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22871         (Depends-on): Remove mbrlen, mbsinit, wchar.
22872
22873 2011-01-18  Bruno Haible  <bruno@clisp.org>
22874
22875         Tests for module 'get-rusage-as'.
22876         * modules/get-rusage-as-tests: New file.
22877         * tests/test-get-rusage-as.c: New file.
22878
22879         New module 'get-rusage-as'.
22880         * modules/get-rusage-as: New file.
22881         * lib/resource-ext.h: New file.
22882         * lib/get-rusage-as.c: New file.
22883
22884 2011-01-17  Eric Blake  <eblake@redhat.com>
22885
22886         sigaction: relax license from LGPLv3+ to LGPLv2+
22887         * modules/sigaction (License): Relax to LGPLv2+.
22888
22889 2011-01-14  Bruno Haible  <bruno@clisp.org>
22890
22891         filemode: Make function declarations usable in C++ mode.
22892         * lib/filemode.h: Enclose function declarations in extern "C" block.
22893         Reported by John W. Eaton <jwe@gnu.org>.
22894
22895 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22896
22897         save-cwd: no longer include "xgetcwd.h"
22898         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22899         This avoids a compilation failure in projects that use save-cwd
22900         without also using the xgetcwd module.
22901
22902 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22903
22904         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22905         This is so that a program like Emacs, which needs only dtoastr,
22906         does not have to bother with distributing and compiling ftoastr
22907         and ldtoastr.
22908         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22909         * modules/dtoastr, modules/ldtoastr: New files.
22910         * modules/ftoastr: Now works just for 'float'.
22911         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22912         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22913         dtoastr.c, ldtoastr.c.
22914
22915 2011-01-11  Jim Meyering  <meyering@redhat.com>
22916
22917         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22918         There is no need to work around the lack of the fchdir function,
22919         since gnulib can now provide a replacement when required.
22920         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22921         * modules/save-cwd (Depends-on): Add fchdir.
22922
22923 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22924
22925         openat, save-cwd: avoid xmalloc
22926
22927         This removes a direct (but undocumented) dependency of openat on
22928         xalloc, along with an indirect dependency via save-cwd.  It also
22929         removes a dependency of save-cwd on xgetcwd, and thereby
22930         indirectly on xalloc.  This change causes the openat substitute
22931         to fall back on save_cwd when memory is tight, and for save_cwd to
22932         fail instead of dying when memory is tight, but that's good enough.
22933         Problem and initial idea for fix reported by Bastien Roucaries in
22934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22935
22936         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22937         xalloc.h (for xmalloc).
22938         (openat_proc_name): Use malloc, not xmalloc.
22939         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22940         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22941
22942         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22943         This avoids heap allocation for file names whose lengths are in
22944         the range 512..1023, with the upper bound increasing to at most
22945         4031 depending on the platform's PATH_MAX.  (We do not want
22946         pathmax.h here as it might supply a non-constant PATH_MAX.)
22947         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22948         Perhaps they should be moved to malloca.h?
22949         (OPENAT_BUFFER_SIZE): Use them.
22950
22951 2011-01-10  Bruno Haible  <bruno@clisp.org>
22952
22953         doc: Update users.txt.
22954         * users.txt: Add recutils.
22955
22956 2011-01-09  Karl Berry  <karl@gnu.org>
22957
22958         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22959
22960         * doc/configmake.texi: New file.
22961         * doc/gnulib.texi: Include it.
22962         * modules/configmake: Move documentation from here.
22963
22964 2011-01-09  Bruno Haible  <bruno@clisp.org>
22965
22966         Update to Unicode 6.0.0.
22967         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22968         (get_lbp): Update for Unicode 6.0.0.
22969         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22970         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22971         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22972         U+11001, U+11038..U+11046. Remove U+06DE.
22973         (uc_width): Fix bounds of planes.
22974         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22975         lib/uniwidth/width.c.
22976         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22977         trailing whitespace removed.
22978         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22979         without comments, but with the original copyright notice.
22980         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22981         * lib/unicase/ignorable.h: Likewise.
22982         * lib/unicase/tocasefold.h: Likewise.
22983         * lib/unicase/tolower.h: Likewise.
22984         * lib/unicase/totitle.h: Likewise.
22985         * lib/unicase/toupper.h: Likewise.
22986         * lib/unictype/bidi_of.h: Likewise.
22987         * lib/unictype/blocks.h: Likewise.
22988         * lib/unictype/categ_C.h: Likewise.
22989         * lib/unictype/categ_Cn.h: Likewise.
22990         * lib/unictype/categ_L.h: Likewise.
22991         * lib/unictype/categ_Ll.h: Likewise.
22992         * lib/unictype/categ_Lm.h: Likewise.
22993         * lib/unictype/categ_Lo.h: Likewise.
22994         * lib/unictype/categ_Lu.h: Likewise.
22995         * lib/unictype/categ_M.h: Likewise.
22996         * lib/unictype/categ_Mc.h: Likewise.
22997         * lib/unictype/categ_Me.h: Likewise.
22998         * lib/unictype/categ_Mn.h: Likewise.
22999         * lib/unictype/categ_N.h: Likewise.
23000         * lib/unictype/categ_Nd.h: Likewise.
23001         * lib/unictype/categ_No.h: Likewise.
23002         * lib/unictype/categ_P.h: Likewise.
23003         * lib/unictype/categ_Po.h: Likewise.
23004         * lib/unictype/categ_S.h: Likewise.
23005         * lib/unictype/categ_Sc.h: Likewise.
23006         * lib/unictype/categ_Sk.h: Likewise.
23007         * lib/unictype/categ_Sm.h: Likewise.
23008         * lib/unictype/categ_So.h: Likewise.
23009         * lib/unictype/categ_of.h: Likewise.
23010         * lib/unictype/combining.h: Likewise.
23011         * lib/unictype/ctype_alnum.h: Likewise.
23012         * lib/unictype/ctype_alpha.h: Likewise.
23013         * lib/unictype/ctype_graph.h: Likewise.
23014         * lib/unictype/ctype_lower.h: Likewise.
23015         * lib/unictype/ctype_print.h: Likewise.
23016         * lib/unictype/ctype_punct.h: Likewise.
23017         * lib/unictype/ctype_upper.h: Likewise.
23018         * lib/unictype/decdigit.h: Likewise.
23019         * lib/unictype/digit.h: Likewise.
23020         * lib/unictype/numeric.h: Likewise.
23021         * lib/unictype/pr_alphabetic.h: Likewise.
23022         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23023         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23024         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23025         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23026         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23027         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23028         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23029         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23030         * lib/unictype/pr_case_ignorable.h: Likewise.
23031         * lib/unictype/pr_cased.h: Likewise.
23032         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23033         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23034         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23035         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23036         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23037         * lib/unictype/pr_combining.h: Likewise.
23038         * lib/unictype/pr_composite.h: Likewise.
23039         * lib/unictype/pr_currency_symbol.h: Likewise.
23040         * lib/unictype/pr_decimal_digit.h: Likewise.
23041         * lib/unictype/pr_deprecated.h: Likewise.
23042         * lib/unictype/pr_format_control.h: Likewise.
23043         * lib/unictype/pr_grapheme_base.h: Likewise.
23044         * lib/unictype/pr_grapheme_extend.h: Likewise.
23045         * lib/unictype/pr_grapheme_link.h: Likewise.
23046         * lib/unictype/pr_id_continue.h: Likewise.
23047         * lib/unictype/pr_id_start.h: Likewise.
23048         * lib/unictype/pr_ideographic.h: Likewise.
23049         * lib/unictype/pr_lowercase.h: Likewise.
23050         * lib/unictype/pr_math.h: Likewise.
23051         * lib/unictype/pr_numeric.h: Likewise.
23052         * lib/unictype/pr_other_alphabetic.h: Likewise.
23053         * lib/unictype/pr_other_id_continue.h: Likewise.
23054         * lib/unictype/pr_other_math.h: Likewise.
23055         * lib/unictype/pr_punctuation.h: Likewise.
23056         * lib/unictype/pr_sentence_terminal.h: Likewise.
23057         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23058         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23059         * lib/unictype/pr_unified_ideograph.h: Likewise.
23060         * lib/unictype/pr_uppercase.h: Likewise.
23061         * lib/unictype/pr_xid_continue.h: Likewise.
23062         * lib/unictype/pr_xid_start.h: Likewise.
23063         * lib/unictype/scripts.h: Likewise.
23064         * lib/unictype/scripts_byname.gperf: Likewise.
23065         * lib/unictype/sy_java_ident.h: Likewise.
23066         * lib/unigbrk/gbrkprop.h: Likewise.
23067         * lib/unilbrk/lbrkprop1.h: Likewise.
23068         * lib/unilbrk/lbrkprop2.h: Likewise.
23069         * lib/uninorm/decomposition-table2.h: Likewise.
23070         * lib/uniwbrk/wbrkprop.h: Likewise.
23071         * tests/unicase/test-cased.c: Likewise.
23072         * tests/unicase/test-ignorable.c: Likewise.
23073         * tests/unicase/test-uc_tolower.c: Likewise.
23074         * tests/unicase/test-uc_totitle.c: Likewise.
23075         * tests/unicase/test-uc_toupper.c: Likewise.
23076         * tests/unictype/test-categ_C.c: Likewise.
23077         * tests/unictype/test-categ_Cn.c: Likewise.
23078         * tests/unictype/test-categ_L.c: Likewise.
23079         * tests/unictype/test-categ_Ll.c: Likewise.
23080         * tests/unictype/test-categ_Lm.c: Likewise.
23081         * tests/unictype/test-categ_Lo.c: Likewise.
23082         * tests/unictype/test-categ_Lu.c: Likewise.
23083         * tests/unictype/test-categ_M.c: Likewise.
23084         * tests/unictype/test-categ_Mc.c: Likewise.
23085         * tests/unictype/test-categ_Me.c: Likewise.
23086         * tests/unictype/test-categ_Mn.c: Likewise.
23087         * tests/unictype/test-categ_N.c: Likewise.
23088         * tests/unictype/test-categ_Nd.c: Likewise.
23089         * tests/unictype/test-categ_No.c: Likewise.
23090         * tests/unictype/test-categ_P.c: Likewise.
23091         * tests/unictype/test-categ_Po.c: Likewise.
23092         * tests/unictype/test-categ_S.c: Likewise.
23093         * tests/unictype/test-categ_Sc.c: Likewise.
23094         * tests/unictype/test-categ_Sk.c: Likewise.
23095         * tests/unictype/test-categ_Sm.c: Likewise.
23096         * tests/unictype/test-categ_So.c: Likewise.
23097         * tests/unictype/test-ctype_alnum.c: Likewise.
23098         * tests/unictype/test-ctype_alpha.c: Likewise.
23099         * tests/unictype/test-ctype_graph.c: Likewise.
23100         * tests/unictype/test-ctype_lower.c: Likewise.
23101         * tests/unictype/test-ctype_print.c: Likewise.
23102         * tests/unictype/test-ctype_punct.c: Likewise.
23103         * tests/unictype/test-ctype_upper.c: Likewise.
23104         * tests/unictype/test-decdigit.h: Likewise.
23105         * tests/unictype/test-digit.h: Likewise.
23106         * tests/unictype/test-numeric.h: Likewise.
23107         * tests/unictype/test-pr_alphabetic.c: Likewise.
23108         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23109         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23110         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23111         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23112         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23113         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23114         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23115         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23116         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23117         * tests/unictype/test-pr_cased.c: Likewise.
23118         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23119         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23120         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23121         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23122         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23123         * tests/unictype/test-pr_combining.c: Likewise.
23124         * tests/unictype/test-pr_composite.c: Likewise.
23125         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23126         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23127         * tests/unictype/test-pr_deprecated.c: Likewise.
23128         * tests/unictype/test-pr_format_control.c: Likewise.
23129         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23130         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23131         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23132         * tests/unictype/test-pr_id_continue.c: Likewise.
23133         * tests/unictype/test-pr_id_start.c: Likewise.
23134         * tests/unictype/test-pr_ideographic.c: Likewise.
23135         * tests/unictype/test-pr_lowercase.c: Likewise.
23136         * tests/unictype/test-pr_math.c: Likewise.
23137         * tests/unictype/test-pr_numeric.c: Likewise.
23138         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23139         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23140         * tests/unictype/test-pr_other_math.c: Likewise.
23141         * tests/unictype/test-pr_punctuation.c: Likewise.
23142         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23143         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23144         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23145         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23146         * tests/unictype/test-pr_uppercase.c: Likewise.
23147         * tests/unictype/test-pr_xid_continue.c: Likewise.
23148         * tests/unictype/test-pr_xid_start.c: Likewise.
23149         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23150         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23151         changes.
23152         * lib/unictype/categ_Cc.h: Likewise.
23153         * lib/unictype/categ_Cf.h: Likewise.
23154         * lib/unictype/categ_Co.h: Likewise.
23155         * lib/unictype/categ_Cs.h: Likewise.
23156         * lib/unictype/categ_Lt.h: Likewise.
23157         * lib/unictype/categ_Nl.h: Likewise.
23158         * lib/unictype/categ_Pc.h: Likewise.
23159         * lib/unictype/categ_Pd.h: Likewise.
23160         * lib/unictype/categ_Pe.h: Likewise.
23161         * lib/unictype/categ_Pf.h: Likewise.
23162         * lib/unictype/categ_Pi.h: Likewise.
23163         * lib/unictype/categ_Ps.h: Likewise.
23164         * lib/unictype/categ_Z.h: Likewise.
23165         * lib/unictype/categ_Zl.h: Likewise.
23166         * lib/unictype/categ_Zp.h: Likewise.
23167         * lib/unictype/categ_Zs.h: Likewise.
23168         * lib/unictype/ctype_blank.h: Likewise.
23169         * lib/unictype/ctype_cntrl.h: Likewise.
23170         * lib/unictype/ctype_digit.h: Likewise.
23171         * lib/unictype/ctype_space.h: Likewise.
23172         * lib/unictype/ctype_xdigit.h: Likewise.
23173         * lib/unictype/mirror.h: Likewise.
23174         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23175         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23176         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23177         * lib/unictype/pr_bidi_control.h: Likewise.
23178         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23179         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23180         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23181         * lib/unictype/pr_bidi_pdf.h: Likewise.
23182         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23183         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23184         * lib/unictype/pr_dash.h: Likewise.
23185         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23186         * lib/unictype/pr_diacritic.h: Likewise.
23187         * lib/unictype/pr_extender.h: Likewise.
23188         * lib/unictype/pr_hex_digit.h: Likewise.
23189         * lib/unictype/pr_hyphen.h: Likewise.
23190         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23191         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23192         * lib/unictype/pr_ignorable_control.h: Likewise.
23193         * lib/unictype/pr_iso_control.h: Likewise.
23194         * lib/unictype/pr_join_control.h: Likewise.
23195         * lib/unictype/pr_left_of_pair.h: Likewise.
23196         * lib/unictype/pr_line_separator.h: Likewise.
23197         * lib/unictype/pr_logical_order_exception.h: Likewise.
23198         * lib/unictype/pr_non_break.h: Likewise.
23199         * lib/unictype/pr_not_a_character.h: Likewise.
23200         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23201         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23202         * lib/unictype/pr_other_id_start.h: Likewise.
23203         * lib/unictype/pr_other_lowercase.h: Likewise.
23204         * lib/unictype/pr_other_uppercase.h: Likewise.
23205         * lib/unictype/pr_paired_punctuation.h: Likewise.
23206         * lib/unictype/pr_paragraph_separator.h: Likewise.
23207         * lib/unictype/pr_pattern_syntax.h: Likewise.
23208         * lib/unictype/pr_pattern_white_space.h: Likewise.
23209         * lib/unictype/pr_private_use.h: Likewise.
23210         * lib/unictype/pr_quotation_mark.h: Likewise.
23211         * lib/unictype/pr_radical.h: Likewise.
23212         * lib/unictype/pr_soft_dotted.h: Likewise.
23213         * lib/unictype/pr_space.h: Likewise.
23214         * lib/unictype/pr_titlecase.h: Likewise.
23215         * lib/unictype/pr_variation_selector.h: Likewise.
23216         * lib/unictype/pr_white_space.h: Likewise.
23217         * lib/unictype/pr_zero_width.h: Likewise.
23218         * lib/unictype/sy_c_ident.h: Likewise.
23219         * lib/unictype/sy_c_whitespace.h: Likewise.
23220         * lib/unictype/sy_java_whitespace.h: Likewise.
23221         * lib/uninorm/composition-table.gperf: Likewise.
23222         * lib/uninorm/decomposition-table1.h: Likewise.
23223         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23224         LB8.
23225         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23226         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23227         * modules/unictype/*: Bump version number of expected libunistring
23228         version.
23229
23230 2011-01-09  Bruno Haible  <bruno@clisp.org>
23231
23232         Update to Unicode 5.2.0.
23233         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23234         trailing whitespace removed.
23235
23236 2011-01-09  Bruno Haible  <bruno@clisp.org>
23237
23238         New Unicode character properties, from Unicode 5.2.0.
23239         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23240         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23241         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23242         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23243         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23244         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23245         uc_is_property_cased, uc_is_property_case_ignorable,
23246         uc_is_property_changes_when_lowercased,
23247         uc_is_property_changes_when_uppercased,
23248         uc_is_property_changes_when_titlecased,
23249         uc_is_property_changes_when_casefolded,
23250         uc_is_property_changes_when_casemapped): New declarations.
23251         * lib/unictype/pr_byname.gperf: Add the new properties.
23252         * modules/unictype/property-byname (Depends-on): Depend on the new
23253         properties modules.
23254         * modules/unictype/property-all (Depends-on): Likewise.
23255         * MODULES.html.sh (Unicode string functions): Add
23256         unictype/property-case-ignorable, unictype/property-cased,
23257         unictype/property-changes-when-casefolded,
23258         unictype/property-changes-when-casemapped,
23259         unictype/property-changes-when-lowercased,
23260         unictype/property-changes-when-titlecased,
23261         unictype/property-changes-when-uppercased.
23262
23263         New module 'unictype/property-changes-when-casemapped'.
23264         * modules/unictype/property-changes-when-casemapped: New file.
23265         * lib/unictype/pr_changes_when_casemapped.c: New file.
23266         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23267         generated by gen-uni-tables.
23268         * modules/unictype/property-changes-when-casemapped-tests: New file.
23269         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23270         automatically generated by gen-uni-tables.
23271
23272         New module 'unictype/property-changes-when-casefolded'.
23273         * modules/unictype/property-changes-when-casefolded: New file.
23274         * lib/unictype/pr_changes_when_casefolded.c: New file.
23275         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23276         generated by gen-uni-tables.
23277         * modules/unictype/property-changes-when-casefolded-tests: New file.
23278         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23279         automatically generated by gen-uni-tables.
23280
23281         New module 'unictype/property-changes-when-titlecased'.
23282         * modules/unictype/property-changes-when-titlecased: New file.
23283         * lib/unictype/pr_changes_when_titlecased.c: New file.
23284         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23285         generated by gen-uni-tables.
23286         * modules/unictype/property-changes-when-titlecased-tests: New file.
23287         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23288         automatically generated by gen-uni-tables.
23289
23290         New module 'unictype/property-changes-when-uppercased'.
23291         * modules/unictype/property-changes-when-uppercased: New file.
23292         * lib/unictype/pr_changes_when_uppercased.c: New file.
23293         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23294         generated by gen-uni-tables.
23295         * modules/unictype/property-changes-when-uppercased-tests: New file.
23296         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23297         automatically generated by gen-uni-tables.
23298
23299         New module 'unictype/property-changes-when-lowercased'.
23300         * modules/unictype/property-changes-when-lowercased: New file.
23301         * lib/unictype/pr_changes_when_lowercased.c: New file.
23302         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23303         generated by gen-uni-tables.
23304         * modules/unictype/property-changes-when-lowercased-tests: New file.
23305         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23306         automatically generated by gen-uni-tables.
23307
23308         New module 'unictype/property-case-ignorable'.
23309         * modules/unictype/property-case-ignorable: New file.
23310         * lib/unictype/pr_case_ignorable.c: New file.
23311         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23312         by gen-uni-tables.
23313         * modules/unictype/property-case-ignorable-tests: New file.
23314         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23315         generated by gen-uni-tables.
23316
23317         New module 'unictype/property-cased'.
23318         * modules/unictype/property-cased: New file.
23319         * lib/unictype/pr_cased.c: New file.
23320         * lib/unictype/pr_cased.h: New file, automatically generated by
23321         gen-uni-tables.
23322         * modules/unictype/property-cased-tests: New file.
23323         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23324         gen-uni-tables.
23325
23326 2011-01-09  Bruno Haible  <bruno@clisp.org>
23327
23328         Update to Unicode 5.2.0.
23329         * lib/gen-uni-tables.c (output_predicate, output_category,
23330         output_combclass, output_bidi_category, output_decimal_digit_test,
23331         output_decimal_digit, output_digit_test, output_digit,
23332         output_numeric_test, output_numeric, output_mirror, output_scripts,
23333         output_scripts_byname, output_blocks, output_ident_category): Fix
23334         comment header.
23335         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23336         get_wbp.
23337         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23338         items.
23339         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23340         Changes_When_Lowercased, Changes_When_Uppercased,
23341         Changes_When_Titlecased, Changes_When_Casefolded,
23342         Changes_When_Casemapped.
23343         (is_property_alphabetic, is_property_default_ignorable_code_point):
23344         Update for Unicode 5.2.0.
23345         (is_property_cased, is_property_case_ignorable,
23346         is_property_changes_when_lowercased,
23347         is_property_changes_when_uppercased,
23348         is_property_changes_when_titlecased,
23349         is_property_changes_when_casefolded,
23350         is_property_changes_when_casemapped): New functions.
23351         (output_properties): Output also the properties cased, case_ignorable,
23352         changes_when_lowercased, changes_when_uppercased,
23353         changes_when_titlecased, changes_when_casefolded,
23354         changes_when_casemapped.
23355         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23356         Unicode TR#11 revision 17 -> 19.
23357         (LBP_CP): New enumeration value.
23358         (LBP_*): Adjust values accordingly.
23359         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23360         TR#14 revision 22 -> 24.
23361         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23362         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23363         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23364         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23365         is_WBP_MIDLETTER.
23366         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23367         the code1 and code2 of each composition rule.
23368         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23369         * lib/unicase/ignorable.h: Likewise.
23370         * lib/unicase/tocasefold.h: Likewise.
23371         * lib/unicase/tolower.h: Likewise.
23372         * lib/unicase/totitle.h: Likewise.
23373         * lib/unicase/toupper.h: Likewise.
23374         * lib/unictype/bidi_of.h: Likewise.
23375         * lib/unictype/blocks.h: Likewise.
23376         * lib/unictype/categ_C.h: Likewise.
23377         * lib/unictype/categ_Cf.h: Likewise.
23378         * lib/unictype/categ_Cn.h: Likewise.
23379         * lib/unictype/categ_L.h: Likewise.
23380         * lib/unictype/categ_Ll.h: Likewise.
23381         * lib/unictype/categ_Lm.h: Likewise.
23382         * lib/unictype/categ_Lo.h: Likewise.
23383         * lib/unictype/categ_Lu.h: Likewise.
23384         * lib/unictype/categ_M.h: Likewise.
23385         * lib/unictype/categ_Mc.h: Likewise.
23386         * lib/unictype/categ_Mn.h: Likewise.
23387         * lib/unictype/categ_N.h: Likewise.
23388         * lib/unictype/categ_Nd.h: Likewise.
23389         * lib/unictype/categ_Nl.h: Likewise.
23390         * lib/unictype/categ_No.h: Likewise.
23391         * lib/unictype/categ_P.h: Likewise.
23392         * lib/unictype/categ_Pd.h: Likewise.
23393         * lib/unictype/categ_Po.h: Likewise.
23394         * lib/unictype/categ_S.h: Likewise.
23395         * lib/unictype/categ_Sc.h: Likewise.
23396         * lib/unictype/categ_So.h: Likewise.
23397         * lib/unictype/categ_of.h: Likewise.
23398         * lib/unictype/combining.h: Likewise.
23399         * lib/unictype/ctype_alnum.h: Likewise.
23400         * lib/unictype/ctype_alpha.h: Likewise.
23401         * lib/unictype/ctype_graph.h: Likewise.
23402         * lib/unictype/ctype_lower.h: Likewise.
23403         * lib/unictype/ctype_print.h: Likewise.
23404         * lib/unictype/ctype_punct.h: Likewise.
23405         * lib/unictype/ctype_upper.h: Likewise.
23406         * lib/unictype/decdigit.h: Likewise.
23407         * lib/unictype/digit.h: Likewise.
23408         * lib/unictype/numeric.h: Likewise.
23409         * lib/unictype/pr_alphabetic.h: Likewise.
23410         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23411         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23412         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23413         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23414         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23415         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23416         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23417         * lib/unictype/pr_combining.h: Likewise.
23418         * lib/unictype/pr_composite.h: Likewise.
23419         * lib/unictype/pr_currency_symbol.h: Likewise.
23420         * lib/unictype/pr_dash.h: Likewise.
23421         * lib/unictype/pr_decimal_digit.h: Likewise.
23422         * lib/unictype/pr_deprecated.h: Likewise.
23423         * lib/unictype/pr_diacritic.h: Likewise.
23424         * lib/unictype/pr_extender.h: Likewise.
23425         * lib/unictype/pr_grapheme_base.h: Likewise.
23426         * lib/unictype/pr_grapheme_extend.h: Likewise.
23427         * lib/unictype/pr_grapheme_link.h: Likewise.
23428         * lib/unictype/pr_id_continue.h: Likewise.
23429         * lib/unictype/pr_id_start.h: Likewise.
23430         * lib/unictype/pr_ideographic.h: Likewise.
23431         * lib/unictype/pr_ignorable_control.h: Likewise.
23432         * lib/unictype/pr_logical_order_exception.h: Likewise.
23433         * lib/unictype/pr_lowercase.h: Likewise.
23434         * lib/unictype/pr_numeric.h: Likewise.
23435         * lib/unictype/pr_other_alphabetic.h: Likewise.
23436         * lib/unictype/pr_punctuation.h: Likewise.
23437         * lib/unictype/pr_sentence_terminal.h: Likewise.
23438         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23439         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23440         * lib/unictype/pr_unified_ideograph.h: Likewise.
23441         * lib/unictype/pr_uppercase.h: Likewise.
23442         * lib/unictype/pr_xid_continue.h: Likewise.
23443         * lib/unictype/pr_xid_start.h: Likewise.
23444         * lib/unictype/pr_zero_width.h: Likewise.
23445         * lib/unictype/scripts.h: Likewise.
23446         * lib/unictype/scripts_byname.gperf: Likewise.
23447         * lib/unictype/sy_java_ident.h: Likewise.
23448         * lib/unigbrk/gbrkprop.h: Likewise.
23449         * lib/unilbrk/lbrkprop1.h: Likewise.
23450         * lib/unilbrk/lbrkprop2.h: Likewise.
23451         * lib/unilbrk/lbrktables.h: Likewise.
23452         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23453         LBP_CP. Implement rule LB30.
23454         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23455         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23456         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23457         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23458         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23459         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23460         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23461         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23462         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23463         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23464         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23465         bits instead of 16 bits in the code1 and code2 of each composition
23466         rule.
23467         (uc_composition): Update for Unicode 5.2.0.
23468         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23469         * lib/uninorm/decomposition-table2.h: Likewise.
23470         * lib/uniwbrk/wbrkprop.h: Likewise.
23471         * tests/unicase/test-cased.c: Likewise.
23472         * tests/unicase/test-ignorable.c: Likewise.
23473         * tests/unicase/test-uc_tolower.c: Likewise.
23474         * tests/unicase/test-uc_totitle.c: Likewise.
23475         * tests/unicase/test-uc_toupper.c: Likewise.
23476         * tests/unictype/test-categ_C.c: Likewise.
23477         * tests/unictype/test-categ_Cf.c: Likewise.
23478         * tests/unictype/test-categ_Cn.c: Likewise.
23479         * tests/unictype/test-categ_L.c: Likewise.
23480         * tests/unictype/test-categ_Ll.c: Likewise.
23481         * tests/unictype/test-categ_Lm.c: Likewise.
23482         * tests/unictype/test-categ_Lo.c: Likewise.
23483         * tests/unictype/test-categ_Lu.c: Likewise.
23484         * tests/unictype/test-categ_M.c: Likewise.
23485         * tests/unictype/test-categ_Mc.c: Likewise.
23486         * tests/unictype/test-categ_Mn.c: Likewise.
23487         * tests/unictype/test-categ_N.c: Likewise.
23488         * tests/unictype/test-categ_Nd.c: Likewise.
23489         * tests/unictype/test-categ_Nl.c: Likewise.
23490         * tests/unictype/test-categ_No.c: Likewise.
23491         * tests/unictype/test-categ_P.c: Likewise.
23492         * tests/unictype/test-categ_Pd.c: Likewise.
23493         * tests/unictype/test-categ_Po.c: Likewise.
23494         * tests/unictype/test-categ_S.c: Likewise.
23495         * tests/unictype/test-categ_Sc.c: Likewise.
23496         * tests/unictype/test-categ_So.c: Likewise.
23497         * tests/unictype/test-ctype_alnum.c: Likewise.
23498         * tests/unictype/test-ctype_alpha.c: Likewise.
23499         * tests/unictype/test-ctype_graph.c: Likewise.
23500         * tests/unictype/test-ctype_lower.c: Likewise.
23501         * tests/unictype/test-ctype_print.c: Likewise.
23502         * tests/unictype/test-ctype_punct.c: Likewise.
23503         * tests/unictype/test-ctype_upper.c: Likewise.
23504         * tests/unictype/test-decdigit.h: Likewise.
23505         * tests/unictype/test-digit.h: Likewise.
23506         * tests/unictype/test-numeric.h: Likewise.
23507         * tests/unictype/test-pr_alphabetic.c: Likewise.
23508         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23509         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23510         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23511         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23512         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23513         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23514         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23515         * tests/unictype/test-pr_combining.c: Likewise.
23516         * tests/unictype/test-pr_composite.c: Likewise.
23517         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23518         * tests/unictype/test-pr_dash.c: Likewise.
23519         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23520         * tests/unictype/test-pr_deprecated.c: Likewise.
23521         * tests/unictype/test-pr_diacritic.c: Likewise.
23522         * tests/unictype/test-pr_extender.c: Likewise.
23523         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23524         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23525         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23526         * tests/unictype/test-pr_id_continue.c: Likewise.
23527         * tests/unictype/test-pr_id_start.c: Likewise.
23528         * tests/unictype/test-pr_ideographic.c: Likewise.
23529         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23530         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23531         * tests/unictype/test-pr_lowercase.c: Likewise.
23532         * tests/unictype/test-pr_numeric.c: Likewise.
23533         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23534         * tests/unictype/test-pr_punctuation.c: Likewise.
23535         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23536         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23537         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23538         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23539         * tests/unictype/test-pr_uppercase.c: Likewise.
23540         * tests/unictype/test-pr_xid_continue.c: Likewise.
23541         * tests/unictype/test-pr_xid_start.c: Likewise.
23542         * tests/unictype/test-pr_zero_width.c: Likewise.
23543         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23544         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23545         changed behaviour: line breaking is now disallowed between a letter
23546         or '=' and '('.
23547         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23548         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23549         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23550         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23551         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23552         lib/uniwidth/width.c.
23553         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23554         without comments, but with the original copyright notice.
23555         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23556         changes.
23557         * lib/unictype/categ_Cc.h: Likewise.
23558         * lib/unictype/categ_Co.h: Likewise.
23559         * lib/unictype/categ_Cs.h: Likewise.
23560         * lib/unictype/categ_Lt.h: Likewise.
23561         * lib/unictype/categ_Me.h: Likewise.
23562         * lib/unictype/categ_Pc.h: Likewise.
23563         * lib/unictype/categ_Pe.h: Likewise.
23564         * lib/unictype/categ_Pf.h: Likewise.
23565         * lib/unictype/categ_Pi.h: Likewise.
23566         * lib/unictype/categ_Ps.h: Likewise.
23567         * lib/unictype/categ_Sk.h: Likewise.
23568         * lib/unictype/categ_Sm.h: Likewise.
23569         * lib/unictype/categ_Z.h: Likewise.
23570         * lib/unictype/categ_Zl.h: Likewise.
23571         * lib/unictype/categ_Zp.h: Likewise.
23572         * lib/unictype/categ_Zs.h: Likewise.
23573         * lib/unictype/ctype_blank.h: Likewise.
23574         * lib/unictype/ctype_cntrl.h: Likewise.
23575         * lib/unictype/ctype_digit.h: Likewise.
23576         * lib/unictype/ctype_space.h: Likewise.
23577         * lib/unictype/ctype_xdigit.h: Likewise.
23578         * lib/unictype/mirror.h: Likewise.
23579         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23580         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23581         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23582         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23583         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23584         * lib/unictype/pr_bidi_control.h: Likewise.
23585         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23586         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23587         * lib/unictype/pr_bidi_pdf.h: Likewise.
23588         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23589         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23590         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23591         * lib/unictype/pr_format_control.h: Likewise.
23592         * lib/unictype/pr_hex_digit.h: Likewise.
23593         * lib/unictype/pr_hyphen.h: Likewise.
23594         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23595         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23596         * lib/unictype/pr_iso_control.h: Likewise.
23597         * lib/unictype/pr_join_control.h: Likewise.
23598         * lib/unictype/pr_left_of_pair.h: Likewise.
23599         * lib/unictype/pr_line_separator.h: Likewise.
23600         * lib/unictype/pr_math.h: Likewise.
23601         * lib/unictype/pr_non_break.h: Likewise.
23602         * lib/unictype/pr_not_a_character.h: Likewise.
23603         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23604         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23605         * lib/unictype/pr_other_id_continue.h: Likewise.
23606         * lib/unictype/pr_other_id_start.h: Likewise.
23607         * lib/unictype/pr_other_lowercase.h: Likewise.
23608         * lib/unictype/pr_other_math.h: Likewise.
23609         * lib/unictype/pr_other_uppercase.h: Likewise.
23610         * lib/unictype/pr_paired_punctuation.h: Likewise.
23611         * lib/unictype/pr_paragraph_separator.h: Likewise.
23612         * lib/unictype/pr_pattern_syntax.h: Likewise.
23613         * lib/unictype/pr_pattern_white_space.h: Likewise.
23614         * lib/unictype/pr_private_use.h: Likewise.
23615         * lib/unictype/pr_quotation_mark.h: Likewise.
23616         * lib/unictype/pr_radical.h: Likewise.
23617         * lib/unictype/pr_soft_dotted.h: Likewise.
23618         * lib/unictype/pr_space.h: Likewise.
23619         * lib/unictype/pr_titlecase.h: Likewise.
23620         * lib/unictype/pr_variation_selector.h: Likewise.
23621         * lib/unictype/pr_white_space.h: Likewise.
23622         * lib/unictype/sy_c_ident.h: Likewise.
23623         * lib/unictype/sy_c_whitespace.h: Likewise.
23624         * lib/unictype/sy_java_whitespace.h: Likewise.
23625         * modules/uni*/*: Bump version number of expected libunistring version.
23626         Reported by Simon Josefsson.
23627
23628 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23629
23630         useless-if-before-free: fix typo in --help and make the internal,
23631         automatic version date update process work once again.
23632         --help output contained a NUL character instead of the
23633         backslash-zero that was intended.  Also, the "must lie within
23634         the first 8 lines" line is on line 9, and hence not getting
23635         automatically updated.
23636         * build-aux/useless-if-before-free: Fix the former by adding a
23637         backslash, and the latter by condensing the three lines of what-it-does
23638         to a single line, leaving one line of slack for the future.
23639
23640 2011-01-09  Bruno Haible  <bruno@clisp.org>
23641
23642         uniwidth/width: Fix width of U+1D173..U+1D17A.
23643         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23644         symbolic_width, output_width_property_test): New functions.
23645         (main): Invoke output_nonspacing_property, output_width_property_test.
23646         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23647         U+1D173..U+1D17A.
23648         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23649         1.
23650         * modules/uniwidth/*: Bump version number of expected libunistring
23651         version.
23652         * modules/unilbrk/*: Likewise.
23653
23654 2011-01-08  Bruno Haible  <bruno@clisp.org>
23655
23656         uninorm tests: Preserve copyright of Unicode data file.
23657         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23658         Mention modifications.
23659
23660 2011-01-08  Bruno Haible  <bruno@clisp.org>
23661
23662         gen-uni-tables: Prepare for Unicode 5.2.0.
23663         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23664         (debug_output_lbp, output_lbp): Update.
23665
23666 2011-01-08  Bruno Haible  <bruno@clisp.org>
23667
23668         unilbrk: Clarify gen-uni-tables.c code.
23669         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23670         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23671         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23672
23673 2011-01-07  Bruno Haible  <bruno@clisp.org>
23674
23675         strtod: Restore errno when successfully parsing Infinity or NaN.
23676         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23677         restore the original errno.
23678
23679 2011-01-07  Bruno Haible  <bruno@clisp.org>
23680
23681         remove test: Avoid failure on HP-UX 11.
23682         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23683
23684 2011-01-07  Bruno Haible  <bruno@clisp.org>
23685
23686         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23687         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23688         error code.
23689
23690 2011-01-07  Pádraig Brady <P@draigBrady.com>
23691
23692         ignore-value: fixup comments, and add Eric Blake
23693         as an author since he rewrote the macros.
23694         * lib/ignore-value.h (ignore_value):  State that
23695         we now support aggregates.  Also specify exactly
23696         when the GCC warn_unused_result feature was added.
23697
23698 2011-01-06  Eric Blake  <eblake@redhat.com>
23699
23700         ignore-value: support aggregate types
23701         * lib/ignore-value.h (ignore_value): Provide separate gcc
23702         definition.
23703         * modules/ignore-value-tests: New test module.
23704         * tests/test-ignore-value.c: New test.
23705
23706         maint.mk: improve sc_prohibit_strcmp regex
23707         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23708         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23709         definition of STRNEQ.
23710
23711         signal: work around Haiku issue with SIGBUS
23712         * lib/siglist.h: Add comment.
23713         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23714         strsignal's favoring of SIGSEGV.
23715         * tests/test-signal.c (main): Avoid test failure.
23716         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23717         Reported by Scott McCreary.
23718
23719         maint.mk: add pre-release check to ensure submodule commits are public
23720         * top/maint.mk (public-submodule-commit): New rule.
23721         (submodule-checks): New variable.
23722         (alpha beta stable): Depend on the variable.
23723
23724 2011-01-05  Pádraig Brady <P@draigBrady.com>
23725         and Jim Meyering  <meyering@redhat.com>
23726
23727         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23728         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23729         (ATTRIBUTE_DEPRECATED): Define.
23730         (_ignore_case): New function.
23731         (ignore_value): New macro, to replace the old function.
23732         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23733         * modules/ignore-value (Depends-on): Add stdint.
23734
23735 2011-01-04  Eric Blake  <eblake@redhat.com>
23736
23737         doc: regenerate INSTALL
23738         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23739         @firstparagraphindent support, now that autoconf dropped it.
23740         (INSTALL_PRELUDE): Reinstate old macro.
23741         * doc/install.texi: Resync from autoconf.
23742         * doc/INSTALL: Reflect recent autoconf update.
23743         * doc/INSTALL.ISO: Likewise.
23744         * doc/INSTALL.UTF-8: Likewise.
23745         Reported by Karl Berry.
23746
23747 2011-01-04  Bruce Korb  <address@hidden>
23748
23749         git-version-gen: avoid a sub-shell
23750         * build-aux/git-version-gen: Redirect stderr in `...` via
23751         "exec 2>...", rather than via an added sub-shell.
23752
23753 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23754
23755         git-version-gen: use (...) rather than sh -c '...'
23756         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23757         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23758
23759 2011-01-03  Jim Meyering  <meyering@redhat.com>
23760
23761         git-version-gen: convert leading TABs to spaces
23762         * build-aux/git-version-gen: Expand leading TABs.
23763
23764         git-version-gen: handle failed "git rev-list"
23765         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23766         from git and proceeding as if it had succeeded but printed no SHA1
23767         checksums, suppress the diagnostic and handle the failure.
23768         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23769
23770         git-version-gen: include command name in one more diagnostic
23771         * build-aux/git-version-gen: When the required .tarball-version file
23772         was missing or unreadable, you might see the diagnostic from "cat",
23773         but no trace of the name of the invoking script.  Now, you still see
23774         the diagnostic from cat, but also get one from "git-version-gen: ".
23775         Inspired by a patch from Bruce Korb.
23776
23777         update-copyright: adjust test to match changed code
23778         * tests/test-update-copyright.sh: Change test's expected output
23779         to match new actual output.
23780
23781 2011-01-02  Bruno Haible  <bruno@clisp.org>
23782
23783         getlogin_r: Avoid test failure on HP-UX 11.
23784         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23785         ERANGE when the second argument is zero.
23786         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23787         portability problem.
23788
23789 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23790
23791         * build-aux/update-copyright: doc Simon's changes
23792
23793 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23794
23795         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23796         environment variable.
23797
23798 2011-01-02  Bruno Haible  <bruno@clisp.org>
23799
23800         unigbrk: Avoid gcc warnings.
23801         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23802         unused variable.
23803         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23804         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23805         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23806         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23807         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23808         Change type of first argument to 'const char *'.
23809         (main): Remove unused variable.
23810         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23811         type of first argument to 'const char *'.
23812         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23813         Likewise.
23814         (main): Change type of variable 's'.
23815         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23816         to 'int'.
23817
23818 2011-01-02  Bruno Haible  <bruno@clisp.org>
23819
23820         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23821         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23822         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23823         bug.
23824         * lib/pwrite.c: Undo 2010-12-31 patch.
23825         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23826
23827 2011-01-02  Bruno Haible  <bruno@clisp.org>
23828
23829         pread: Fix test whether it works.
23830         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23831
23832 2011-01-02  Bruno Haible  <bruno@clisp.org>
23833
23834         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23835         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23836         ends in "6". Don't require a specific month name. Try also the locale
23837         names found on HP-UX 11 and Solaris 7.
23838
23839 2011-01-02  Bruno Haible  <bruno@clisp.org>
23840
23841         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23842         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23843         C linkage.
23844         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23845
23846 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23847
23848         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23849         for consistency, since the "cluster" term is not used elsewhere.
23850         * lib/unigbrk.in.h: Update name.
23851         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23852         * lib/unigbrk/u16-grapheme-next.c: Update name.
23853         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23854         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23855         * lib/unigbrk/u32-grapheme-next.c: Update name.
23856         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23857         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23858         * lib/unigbrk/u8-grapheme-next.c: Update name.
23859         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23860         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23861         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23862         Suggested by Bruno Haible.
23863
23864 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23865
23866         Remove module 'u8-grapheme-len' as too redundant with
23867         'u8-grapheme-next'.
23868         * modules/unigbrk/u8-grapheme-len: Delete file.
23869         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23870         * lib/unigbrk.in.h: Remove prototype for deleted function.
23871         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23872         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23873
23874         Remove module 'u16-grapheme-len' as too redundant with
23875         'u16-grapheme-next'.
23876         * modules/unigbrk/u16-grapheme-len: Delete file.
23877         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23878         * lib/unigbrk.in.h: Remove prototype for deleted function.
23879         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23880         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23881
23882         Remove module 'u32-grapheme-len' as too redundant with
23883         'u32-grapheme-next'.
23884         * modules/unigbrk/u32-grapheme-len: Delete file.
23885         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23886         * lib/unigbrk.in.h: Remove prototype for deleted function.
23887         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23888         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23889
23890         Suggested by Bruno Haible.
23891
23892 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23893
23894         * unigbrk.in.h: Fix typo: "ben" => "been".
23895         Reported by Bruno Haible.
23896
23897 2011-01-01  Jim Meyering  <meyering@redhat.com>
23898
23899         maint: update almost all copyright ranges to include 2011
23900         Run the new "make update-copyright" rule.
23901
23902 2011-01-01  Jim Meyering  <meyering@redhat.com>
23903
23904         maint: update-copyright: exempt doc/INSTALL*
23905         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23906         since they are generated.  Suggested by Bruno Haible.
23907
23908 2011-01-01  Jim Meyering  <meyering@redhat.com>
23909
23910         maint: refine the update-copyright rule
23911         * Makefile (update-copyright): Also exclude any file that includes
23912         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23913         code that merely generates the comment.
23914
23915 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23916
23917         New module 'u8-grapheme-len'.
23918         * modules/unigbrk/u8-grapheme-len: New file.
23919         * modules/unigbrk/u8-grapheme-len-tests: New file.
23920         * lib/unigbrk.in.h: Add prototype for new function.
23921         * lib/unigbrk/u8-grapheme-len.c: New file.
23922         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23923
23924         New module 'u16-grapheme-len'.
23925         * modules/unigbrk/u16-grapheme-len: New file.
23926         * modules/unigbrk/u16-grapheme-len-tests: New file.
23927         * lib/unigbrk.in.h: Add prototype for new function.
23928         * lib/unigbrk/u16-grapheme-len.c: New file.
23929         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23930
23931         New module 'u32-grapheme-len'.
23932         * modules/unigbrk/u32-grapheme-len: New file.
23933         * modules/unigbrk/u32-grapheme-len-tests: New file.
23934         * lib/unigbrk.in.h: Add prototype for new function.
23935         * lib/unigbrk/u32-grapheme-len.c: New file.
23936         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23937
23938         New module 'u8-grapheme-next'.
23939         * modules/unigbrk/u8-grapheme-next: New file.
23940         * modules/unigbrk/u8-grapheme-next-tests: New file.
23941         * lib/unigbrk.in.h: Add prototype for new function.
23942         * lib/unigbrk/u8-grapheme-next.c: New file.
23943         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23944
23945         New module 'u16-grapheme-next'.
23946         * modules/unigbrk/u16-grapheme-next: New file.
23947         * modules/unigbrk/u16-grapheme-next-tests: New file.
23948         * lib/unigbrk.in.h: Add prototype for new function.
23949         * lib/unigbrk/u16-grapheme-next.c: New file.
23950         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23951
23952         New module 'u32-grapheme-next'.
23953         * modules/unigbrk/u32-grapheme-next: New file.
23954         * modules/unigbrk/u32-grapheme-next-tests: New file.
23955         * lib/unigbrk.in.h: Add prototype for new function.
23956         * lib/unigbrk/u32-grapheme-next.c: New file.
23957         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23958
23959         New module 'u8-grapheme-prev'.
23960         * modules/unigbrk/u8-grapheme-prev: New file.
23961         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23962         * lib/unigbrk.in.h: Add prototype for new function.
23963         * lib/unigbrk/u8-grapheme-prev.c: New file.
23964         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23965
23966         New module 'u16-grapheme-prev'.
23967         * modules/unigbrk/u16-grapheme-prev: New file.
23968         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23969         * lib/unigbrk.in.h: Add prototype for new function.
23970         * lib/unigbrk/u16-grapheme-prev.c: New file.
23971         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23972
23973         New module 'u32-grapheme-prev'.
23974         * modules/unigbrk/u32-grapheme-prev: New file.
23975         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23976         * lib/unigbrk.in.h: Add prototype for new function.
23977         * lib/unigbrk/u32-grapheme-prev.c: New file.
23978         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23979
23980         New module 'u8-grapheme-breaks'.
23981         * modules/unigbrk/u8-grapheme-breaks: New file.
23982         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23983         * lib/unigbrk.in.h: Add prototype for new function.
23984         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23985         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23986
23987         New module 'u16-grapheme-breaks'.
23988         * modules/unigbrk/u16-grapheme-breaks: New file.
23989         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23990         * lib/unigbrk.in.h: Add prototype for new function.
23991         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23992         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23993
23994         New module 'u32-grapheme-breaks'.
23995         * modules/unigbrk/u32-grapheme-breaks: New file.
23996         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23997         * lib/unigbrk.in.h: Add prototype for new function.
23998         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23999         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24000
24001         New module 'ulc-grapheme-breaks'.
24002         * modules/unigbrk/ulc-grapheme-breaks: New file.
24003         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24004         * m4/locale-ar.m4: New file.
24005         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24006         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24007         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24008
24009 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24010
24011         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24012         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24013         modified how this file was generated before I initially submitted
24014         the module, but failed to regenerate it.  This meant that several
24015         of the level2 entries were wrong.
24016         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24017         Remove the division-by-2 that is folded into the table now that
24018         gbrkprop.h has been regenerated properly.  Now -1 entries are
24019         handled correctly.
24020
24021         New module 'unigbrk/uc-gbrk-prop-tests'.
24022         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24023         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24024         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24025         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24026
24027 2011-01-01  Bruno Haible  <bruno@clisp.org>
24028
24029         Avoid use of hexadecimal escapes.
24030         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24031         instead of hexadecimal escapes.
24032
24033 2011-01-01  Jim Meyering  <meyering@redhat.com>
24034
24035         maint: new rule to update copyright year ranges
24036         * Makefile (update-copyright): New rule.
24037
24038         maint: indent with TABs in Makefile
24039         * Makefile: Expand leading sequences of spaces to TABs
24040
24041         version-etc: update the copyright year it reports
24042         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24043
24044 2010-12-31  Bruno Haible  <bruno@clisp.org>
24045
24046         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24047         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24048         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24049         zero.
24050
24051 2010-12-31  Bruno Haible  <bruno@clisp.org>
24052
24053         pwrite: Work around HP-UX 11.11 bug.
24054         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24055         works and set REPLACE_PWRITE if not.
24056         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24057         function.
24058         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24059
24060 2010-12-31  Bruno Haible  <bruno@clisp.org>
24061
24062         pread: Work around HP-UX 11 bugs.
24063         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24064         and set REPLACE_PREAD if not.
24065         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24066
24067 2010-12-31  Eric Blake  <eblake@redhat.com>
24068
24069         nl_langinfo: fix YESEXPR on Irix 6.5
24070         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24071         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24072         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24073         it.
24074
24075 2010-12-31  Bruno Haible  <bruno@clisp.org>
24076
24077         iconv: Document HP-UX 11 bug.
24078         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24079
24080 2010-12-31  Bruno Haible  <bruno@clisp.org>
24081
24082         ldexpl: Fix link error on HP-UX 11.
24083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24084         LDEXPL_LIBM, using $ISNANL_LIBM.
24085
24086 2010-12-31  Eric Blake  <eblake@redhat.com>
24087
24088         ftello: avoid compilation failure with SunStudio c89
24089         * lib/ftello.c (ftello): Use lseek, not llseek.
24090
24091         tests: avoid failing coreutils tests on cygwin
24092         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24093         (create_exe_shims_): Return 0 when skipping.
24094
24095 2010-12-31  Bruno Haible  <bruno@clisp.org>
24096
24097         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24098         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24099
24100 2010-12-31  Bruno Haible  <bruno@clisp.org>
24101
24102         waitpid: Fix link error in C++ mode.
24103         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24104
24105 2010-12-31  Bruno Haible  <bruno@clisp.org>
24106
24107         isnan: Use GCC built-ins when possible.
24108         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24109         __builtin_isnan.
24110         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24111         (isnan): Define using GCC built-ins for GCC >= 4.0.
24112
24113 2010-12-31  Bruno Haible  <bruno@clisp.org>
24114
24115         isnand: Fix mistake.
24116         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24117         __builtin_isnand.
24118
24119 2010-12-31  Bruno Haible  <bruno@clisp.org>
24120
24121         open: Avoid C++ error on HP-UX 11.
24122         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24123
24124 2010-12-31  Bruno Haible  <bruno@clisp.org>
24125
24126         time_r: Add missing declarations on HP-UX 11.
24127         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24128         instead of HAVE_LOCALTIME_R.
24129         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24130         HAVE_LOCALTIME_R always.
24131         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24132         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24133         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24134         HAVE_LOCALTIME_R.
24135         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24136         * doc/posix-functions/localtime_r.texi: Likewise.
24137
24138 2010-12-29  Eric Blake  <eblake@redhat.com>
24139
24140         mountlist: tweak previous commit
24141         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24142         Reported by Paul Eggert.
24143
24144         mountlist: fix local drive detection on cygwin
24145         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24146         that works for cygwin.
24147
24148 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24149
24150         ftoastr, snprintf: ftoastr + snprintf module
24151         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24152         since the snprintf module now should be good enough here.
24153         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24154         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24155         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24156         GNULIB_SNPRINTF only for the test directory, and the latter
24157         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24158         seems to suffice by itself.
24159
24160 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24161
24162         alloca: one step towards thread-safety
24163         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24164         need for a static variable.  All callers changed.  This does not
24165         make the alloca replacement thread-safe, but it's one step.
24166
24167         tests: minor indenting change
24168         * tests/init.sh: Sync from coreutils housekeeping patch
24169         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24170         to keep lines within 80 columns.
24171
24172 2010-12-28  Jim Meyering  <meyering@redhat.com>
24173
24174         regex: don't infloop on persistent failing calloc
24175         * lib/regexec.c (build_trtable): Return failure indication upon
24176         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24177         In glibc, this was fixed for version 2.13:
24178         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24179
24180 2010-12-28  Bruno Haible  <bruno@clisp.org>
24181             Paul Eggert <eggert@cs.ucla.edu>
24182
24183         linkat: Make implementation robust against system behaviour variations.
24184         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24185         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24186         way, and to -2 if it needs a generic runtime test.
24187         * lib/linkat.c (solaris_optimized_link_immediate,
24188         solaris_optimized_link_follow): New functions.
24189         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24190         (check_same_link): Use it.
24191
24192 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24193
24194         New module 'unigbrk/base'.
24195         * modules/unigbrk/base: New file.
24196         * lib/unigbrk.in.h: New file.
24197
24198         New module 'unigbrk/uc-gbrk-prop'.
24199         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24200         * modules/unigbrk/uc-gbrk-prop: New file.
24201         * lib/unigbrk/gbrkprop.h: New file.
24202         * lib/unigbrk/uc-gbrk-prop.c: New file.
24203
24204         New module 'unigbrk/uc-is-grapheme-break'.
24205         * modules/unigbrk/uc-is-grapheme-break: New file.
24206         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24207         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24208         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24209         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24210         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24211
24212         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24213
24214 2010-12-27  Bruno Haible  <bruno@clisp.org>
24215
24216         linkat test: Avoid failure on Solaris 11 2010-11.
24217         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24218
24219 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24220
24221         utimens: work around glibc rounding bug on more platforms
24222         * lib/utimens.c (fdutimens): Work around rounding bug even if
24223         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24225
24226 2010-12-27  Bruno Haible  <bruno@clisp.org>
24227
24228         select tests: Improve comments.
24229         * tests/test-select.c (do_select): Add comments.
24230
24231 2010-12-27  Bruno Haible  <bruno@clisp.org>
24232
24233         select tests: Safer way of handling timeout.
24234         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24235         at every invocation.
24236
24237 2010-12-27  Bruno Haible  <bruno@clisp.org>
24238
24239         select tests: Use 'bool' where appropriate.
24240         * tests/test-select.c (connect_to_socket): Change argument type to
24241         'bool'.
24242
24243 2010-12-27  Bruno Haible  <bruno@clisp.org>
24244
24245         select tests: Use existing modules.
24246         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24247         (configure.ac): Don't test for unistd.h.
24248         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24249         declared in <unistd.h>.
24250
24251 2010-12-27  Bruno Haible  <bruno@clisp.org>
24252
24253         mbrtowc: Work around a Solaris 7 bug.
24254         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24255         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24256         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24257         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24258         MBRTOWC_NULL_ARG1_BUG.
24259         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24260         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24261         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24262         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24263
24264 2010-12-27  Jim Meyering  <meyering@redhat.com>
24265
24266         read-file.c: tweak syntax
24267         * lib/read-file.c (fread_file): Remove space after "*" in function
24268         definitions.
24269
24270 2010-12-27  Bruno Haible  <bruno@clisp.org>
24271
24272         times test: Avoid gcc warnings on OSF/1.
24273         * tests/test-times.c (main): Cast printf arguments from clock_t to
24274         'long int'.
24275
24276 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24277
24278         utimens: work around glibc rounding bug on older Linux kernels
24279         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24280         on Linux with a glibc whose utimes might not work, then work
24281         around a longstanding glibc bug involving rounding rather than
24282         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24283         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24284
24285 2010-12-26  Bruno Haible  <bruno@clisp.org>
24286
24287         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24288         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24289         _GL_CXXALIAS_SYS.
24290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24291
24292 2010-12-26  Bruno Haible  <bruno@clisp.org>
24293
24294         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24295         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24296         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24297         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24298         looking for the declaration.
24299         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24300         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24301         problem.
24302         * doc/posix-functions/inet_pton.texi: Likewise.
24303
24304 2010-12-26  Bruno Haible  <bruno@clisp.org>
24305
24306         arpa_inet: Use the common idioms with C++ support.
24307         * lib/arpa_inet.in.h: Include c++defs.h.
24308         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24309         support.
24310         * modules/arpa_inet (Depends-on): Add c++defs.
24311         (Makefile.am): Substitute the contents of c++defs.h.
24312         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24313         * modules/arpa_inet-c++-tests: New file.
24314         * tests/test-arpa_inet-c++.cc: New file.
24315
24316 2010-12-25  Bruno Haible  <bruno@clisp.org>
24317
24318         Fix more C++ link errors on Solaris 8.
24319         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24320         $(LIB_EACCESS).
24321         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24322         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24323         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24324         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24325         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24326
24327 2010-12-25  Bruno Haible  <bruno@clisp.org>
24328
24329         printf-posix: Fix link error when a non-GCC compiler is used.
24330         * lib/stdio.in.h (printf): When not using GCC, override printf
24331         correctly.
24332         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24333
24334 2010-12-25  Bruno Haible  <bruno@clisp.org>
24335
24336         strerror_r-posix: Update doc.
24337         * doc/posix-functions/strerror_r.texi: Update doc about the return
24338         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24339
24340 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24341
24342         utimens: simplify the logic of the previous change
24343         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24344         This should not affect whether the test succeeds or fails.
24345
24346         utimens: configure better on hosts with NFS clock skew
24347         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24348         uses the clock of the local host.  It might use the clock of the
24349         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24350         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24351
24352 2010-12-25  Bruno Haible  <bruno@clisp.org>
24353
24354         ptsname test: Avoid failure on Solaris.
24355         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24356         open a pseudo-terminal; don't use BSD-style ptys.
24357         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24358
24359 2010-12-25  Bruno Haible  <bruno@clisp.org>
24360
24361         ptsname: Avoid ERANGE failure on some systems.
24362         * lib/ptsname.c (buffer): Increase size.
24363
24364 2010-12-25  Bruno Haible  <bruno@clisp.org>
24365
24366         rename, renameat: Avoid test failures at NFS mounted locations.
24367         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24368         so that subsequent mkdir calls succeed.
24369
24370 2010-12-25  Bruno Haible  <bruno@clisp.org>
24371
24372         iswblank: Fix C++ link error on Solaris 8.
24373         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24374         _GL_FUNCDECL_SYS.
24375
24376 2010-12-25  Bruno Haible  <bruno@clisp.org>
24377
24378         unistd: Fix C++ link error on Solaris 8.
24379         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24380
24381 2010-12-25  Bruno Haible  <bruno@clisp.org>
24382
24383         readlink doc: Mention an old glibc bug.
24384         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24385
24386 2010-12-25  Bruno Haible  <bruno@clisp.org>
24387
24388         fcntl-h: Fix for use of C++ on glibc systems.
24389         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24390         also on glibc systems in C++ mode.
24391         Reported by Gary V. Vaughan <gary@gnu.org>.
24392
24393 2010-12-25  Bruno Haible  <bruno@clisp.org>
24394
24395         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24396         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24397
24398 2010-12-25  Bruno Haible  <bruno@clisp.org>
24399
24400         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24401         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24402         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24403         test whether truncl works according to ISO C 99 with IEC 60559.
24404         * m4/truncl-ieee.m4: New file.
24405         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24406         m4/signbit.m4.
24407         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24408
24409 2010-12-25  Bruno Haible  <bruno@clisp.org>
24410
24411         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24412         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24413         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24414         test whether ceill works according to ISO C 99 with IEC 60559.
24415         * m4/ceill-ieee.m4: New file.
24416         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24417         m4/signbit.m4.
24418         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24419
24420 2010-12-25  Bruno Haible  <bruno@clisp.org>
24421
24422         Ensure all prerequisites of <wchar.h> are included.
24423         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24424         before <wchar.h>.
24425         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24426         gl_MBRLEN_NUL_RETVAL): Likewise.
24427         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24428         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24429         AC_FUNC_MBRTOWC): Likewise.
24430         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24431         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24433         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24434         Likewise.
24435         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24436         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24437         (gl_WCHAR_H): Improve comments.
24438         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24439
24440 2010-12-25  Bruno Haible  <bruno@clisp.org>
24441
24442         strtok_r: Fix C syntax error in autoconf macro.
24443         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24444         characters in test program.
24445
24446 2010-12-24  Bruno Haible  <bruno@clisp.org>
24447
24448         ceil, trunc, round: Fix gcc warnings.
24449         * lib/ceil.c (MIN): Undefine before redefining.
24450         * lib/trunc.c (MIN): Likewise.
24451         * lib/round.c (MIN): Likewise.
24452         Include <math.h> first.
24453
24454 2010-12-24  Bruno Haible  <bruno@clisp.org>
24455
24456         select tests: Avoid failures on OSF/1 5.1.
24457         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24458         failure of closing the last socket; it may fail with ECONNRESET.
24459
24460 2010-12-24  Eric Blake  <eblake@redhat.com>
24461
24462         stdint: avoid HP-UX 10.20 preprocessor bug
24463         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24464         than #if.
24465         * tests/test-floor2.c (main): Likewise.
24466         Reported by Peter O'Gorman.
24467
24468         pipe: make obsoletion transition easier
24469         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24470         * modules/pipe (Files): Include revived file.
24471         (Include): Drop reference, to mirror getdate's behavior.
24472
24473 2010-12-24  Bruno Haible  <bruno@clisp.org>
24474
24475         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24476         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24477         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24478         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24479
24480 2010-12-24  Bruno Haible  <bruno@clisp.org>
24481
24482         gethostname: Ensure declaration on NonStop Kernel.
24483         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24484         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24485
24486 2010-12-24  Bruno Haible  <bruno@clisp.org>
24487
24488         sys_select: Ensure all necessary types on NonStop Kernel.
24489         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24490         include <sys/time.h>.
24491         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24492         NonStop Kernel.
24493         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24494
24495 2010-12-24  Bruno Haible  <bruno@clisp.org>
24496
24497         sys_select: Remove unneeded include.
24498         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24499         have <sys/select.h>.
24500
24501 2010-12-24  Bruno Haible  <bruno@clisp.org>
24502
24503         gethostname: Provide a fallback for HOST_NAME_MAX.
24504         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24505         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24506         instead.
24507         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24508
24509 2010-12-24  Bruno Haible  <bruno@clisp.org>
24510
24511         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24512         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24513         (SA_RESTART): Likewise.
24514         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24515
24516 2010-12-24  Bruno Haible  <bruno@clisp.org>
24517
24518         signal: Define NSIG.
24519         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24520         * tests/test-signal.c (nsig): New variable.
24521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24522
24523 2010-12-24  Bruno Haible  <bruno@clisp.org>
24524
24525         rename, renameat: Avoid test failures on OSF/1 5.1.
24526         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24527         alternative error codes.
24528         * tests/test-renameat.c (main): Likewise.
24529
24530 2010-12-24  Bruno Haible  <bruno@clisp.org>
24531
24532         *printf: Detect large precisions bug on Solaris 10/SPARC.
24533         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24534         by Paul Eggert.
24535         * tests/test-snprintf-posix.h (test_function): Add this test code here
24536         too.
24537         * tests/test-sprintf-posix.h (test_function): Likewise.
24538         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24539         * tests/test-vasprintf-posix.c (test_function): Likewise.
24540         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24541         around by gnulib.
24542         * doc/posix-functions/printf.texi: Likewise.
24543         * doc/posix-functions/snprintf.texi: Likewise.
24544         * doc/posix-functions/sprintf.texi: Likewise.
24545         * doc/posix-functions/vfprintf.texi: Likewise.
24546         * doc/posix-functions/vprintf.texi: Likewise.
24547         * doc/posix-functions/vsnprintf.texi: Likewise.
24548         * doc/posix-functions/vsprintf.texi: Likewise.
24549         * doc/posix-functions/dprintf.texi: Undo last commit.
24550         * doc/posix-functions/vdprintf.texi: Likewise.
24551
24552 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24553
24554         tests: port test-fdutimensat.c to Solaris 8
24555         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24556         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24557         On Solaris 8, it fails with errno == ENOSYS, because there is no
24558         futimens (so it can't use the fd), and there is no lutimens (so it
24559         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24560
24561         vsnprintf: make more consistent with snprintf; doc fixes
24562
24563         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24564         the byte count return problem was promoted from the snprintf-posix
24565         to the snprintf module.
24566         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24567         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24568         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24569         * tests/test-snprintf.c (main): Check the byte count returned.
24570         * tests/test-vsnprintf.c (main): Likewise.
24571
24572 2010-12-23  Eric Blake  <eblake@redhat.com>
24573
24574         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24575         * modules/sigpipe (License): Relax license.
24576
24577 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24578
24579         doc: document Solaris printf bug with large float precisions
24580         * doc/posix-functions/dprintf.texi (dprintf):
24581         * doc/posix-functions/fprintf.texi (fprintf):
24582         * doc/posix-functions/printf.texi (printf):
24583         * doc/posix-functions/snprintf.texi (snprintf):
24584         * doc/posix-functions/sprintf.texi (sprintf):
24585         * doc/posix-functions/vdprintf.texi (vdprintf):
24586         * doc/posix-functions/vfprintf.texi (vfprintf):
24587         * doc/posix-functions/vprintf.texi (vprintf):
24588         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24589         * doc/posix-functions/vsprintf.texi (vsprintf):
24590         Mention that these functions mishandle large floating point
24591         precisions on Solaris 10.  The same bug is also present in Solaris
24592         8, and I assume earlier.  This causes "cd gnulib-tests; make
24593         check" to fail on Solaris 8 (and I assume, later) when building
24594         the latest coreutils, in test-vasprintf-posix's call to
24595         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24596         the wide flavors (e.g., wprintf) so this patch just updates the
24597         documentation for the narrow ones.
24598
24599         test-posixtm.c: add two tests
24600         * tests/test-posixtm.c: Add two tests, to highlight the
24601         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24602         around this bug; this is merely to document it.
24603
24604 2010-12-22  Bruno Haible  <bruno@clisp.org>
24605
24606         getlogin_r: Work around portability problem on OSF/1.
24607         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24608         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24609         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24610         test for a truncated result.
24611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24612         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24613         * modules/getlogin_r (Depends-on): Add memchr.
24614         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24615
24616 2010-12-22  Bruno Haible  <bruno@clisp.org>
24617
24618         ptsname: Avoid test failure on OSF/1 5.1.
24619         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24620         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24621         (same_slave): New function.
24622         (main): Use it to compare ptsname's result with the expected file name.
24623
24624 2010-12-22  Bruno Haible  <bruno@clisp.org>
24625
24626         Port extended stdio modules to HP NonStop Kernel.
24627         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24628         macros.
24629         * lib/fbufmode.c: Update comments.
24630         * lib/fflush.c: Likewise.
24631         * lib/fpurge.c: Likewise.
24632         * lib/freadable.c: Likewise.
24633         * lib/freadahead.c: Likewise.
24634         * lib/freading.c: Likewise.
24635         * lib/freadptr.c: Likewise.
24636         * lib/freadseek.c: Likewise.
24637         * lib/fseeko.c: Likewise.
24638         * lib/fseterr.c: Likewise.
24639         * lib/fwritable.c: Likewise.
24640         * lib/fwriting.c: Likewise.
24641         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24642
24643 2010-12-22  Bruno Haible  <bruno@clisp.org>
24644
24645         ttyname_r: Work around bug on OSF/1 5.1.
24646         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24647         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24648         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24649         present.
24650         * lib/ttyname_r.c (ttyname_r): Update comments.
24651
24652 2010-12-22  Bruno Haible  <bruno@clisp.org>
24653
24654         round: Implement result sign according to IEEE 754.
24655         * lib/round.c (MIN, MINUS_ZERO): New macros.
24656         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24657         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24658         * tests/test-round-ieee.c (main): Likewise.
24659         * tests/test-roundl-ieee.c (main): Likewise.
24660
24661         trunc: Implement result sign according to IEEE 754.
24662         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24663         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24664         * tests/test-trunc2.c: Include minus-zero.h.
24665         (MINUS_ZERO): New macro.
24666         (trunc_reference): Keep in sync with lib/trunc.c.
24667         * tests/test-truncf2.c: Include minus-zero.h.
24668         (MINUS_ZERO): New macro.
24669         (truncf_reference): Keep in sync with lib/trunc.c.
24670         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24671         * tests/test-trunc-ieee.c (main): Likewise.
24672         * tests/test-truncl-ieee.c (main): Likewise.
24673
24674         ceil: Implement result sign according to IEEE 754.
24675         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24676         (FUNC): Return -0.0 for -1 < x < 0.
24677         * tests/test-ceil2.c: Include minus-zero.h.
24678         (MINUS_ZERO): New macro.
24679         (ceil_reference): Keep in sync with lib/ceil.c.
24680         * tests/test-ceilf2.c: Include minus-zero.h.
24681         (MINUS_ZERO): New macro.
24682         (ceilf_reference): Keep in sync with lib/ceil.c.
24683         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24684         * tests/test-ceil-ieee.c (main): Likewise.
24685         * tests/test-ceill-ieee.c (main): Likewise.
24686
24687         floor: Implement result sign according to IEEE 754.
24688         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24689         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24690         * tests/test-floorf2.c (floorf_reference): Likewise.
24691         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24692         * tests/test-floor-ieee.c (main): Likewise.
24693         * tests/test-floorl-ieee.c (main): Likewise.
24694
24695 2010-12-22  Bruno Haible  <bruno@clisp.org>
24696
24697         getaddrinfo: Update doc.
24698         * doc/posix-functions/gai_strerror.texi: Return type is also different
24699         on AIX and HP-UX.
24700
24701 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24702
24703         getaddrinfo, inet_ntop: Update doc for Solaris.
24704         * doc/posix-functions/gai_strerror.texi: Return type is also an
24705         issue on Solaris 9 and earlier.
24706         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24707         on Solaris 10 and earlier.
24708
24709 2010-12-21  Bruno Haible  <bruno@clisp.org>
24710
24711         New module 'roundl-ieee'.
24712         * modules/roundl-ieee: New file.
24713         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24714         test whether roundl works according to ISO C 99 with IEC 60559.
24715         * m4/roundl-ieee.m4: New file.
24716         * modules/roundl-ieee-tests: New file.
24717         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24718         * tests/test-roundl.c (main): Remove signbit tests.
24719         * modules/roundl-tests (Depends-on): Remove signbit.
24720         * doc/posix-functions/roundl.texi: Mention the new module.
24721
24722 2010-12-21  Bruno Haible  <bruno@clisp.org>
24723
24724         New module 'truncl-ieee'.
24725         * modules/truncl-ieee: New file.
24726         * modules/truncl-ieee-tests: New file.
24727         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24728         * tests/test-truncl.c (main): Remove signbit tests.
24729         * modules/truncl-tests (Depends-on): Remove signbit.
24730         * doc/posix-functions/truncl.texi: Mention the new module.
24731
24732 2010-12-21  Bruno Haible  <bruno@clisp.org>
24733
24734         New module 'ceill-ieee'.
24735         * modules/ceill-ieee: New file.
24736         * modules/ceill-ieee-tests: New file.
24737         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24738         * tests/test-ceill.c (main): Remove signbit tests.
24739         * modules/ceill-tests (Depends-on): Remove signbit.
24740         * doc/posix-functions/ceill.texi: Mention the new module.
24741
24742 2010-12-21  Bruno Haible  <bruno@clisp.org>
24743
24744         New module 'floorl-ieee'.
24745         * modules/floorl-ieee: New file.
24746         * modules/floorl-ieee-tests: New file.
24747         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24748         * tests/test-floorl.c (main): Remove signbit tests.
24749         * modules/floorl-tests (Depends-on): Remove signbit.
24750         * doc/posix-functions/floorl.texi: Mention the new module.
24751
24752 2010-12-21  Bruno Haible  <bruno@clisp.org>
24753
24754         New module 'round-ieee'.
24755         * modules/round-ieee: New file.
24756         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24757         whether round works according to ISO C 99 with IEC 60559.
24758         * m4/round-ieee.m4: New file.
24759         * modules/round-ieee-tests: New file.
24760         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24761         * tests/test-round1.c (main): Remove signbit tests.
24762         * modules/round-tests (Depends-on): Remove 'signbit'.
24763         * doc/posix-functions/round.texi: Mention the new module.
24764
24765 2010-12-21  Bruno Haible  <bruno@clisp.org>
24766
24767         New module 'trunc-ieee'.
24768         * modules/trunc-ieee: New file.
24769         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24770         whether trunc works according to ISO C 99 with IEC 60559.
24771         * m4/trunc-ieee.m4: New file.
24772         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24774         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24775         * modules/trunc-ieee-tests: New file.
24776         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24777         * tests/test-trunc1.c (main): Remove signbit tests.
24778         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24779         * doc/posix-functions/trunc.texi: Mention the new module.
24780
24781 2010-12-21  Bruno Haible  <bruno@clisp.org>
24782
24783         New module 'ceil-ieee'.
24784         * modules/ceil-ieee: New file.
24785         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24786         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24787         ISO C 99 with IEC 60559.
24788         * m4/ceil-ieee.m4: New file.
24789         * modules/ceil (Files): Add lib/ceil.c.
24790         (Depends-on): Add 'float'.
24791         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24792         * lib/math.in.h (ceil): New declaration.
24793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24794         REPLACE_CEIL.
24795         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24796         * modules/ceil-ieee-tests: New file.
24797         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24798         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24799         * doc/posix-functions/ceil.texi: Mention the new module.
24800
24801 2010-12-21  Bruno Haible  <bruno@clisp.org>
24802
24803         New module 'floor-ieee'.
24804         * modules/floor-ieee: New file.
24805         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24806         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24807         ISO C 99 with IEC 60559.
24808         * m4/floor-ieee.m4: New file.
24809         * modules/floor (Files): Add lib/floor.c.
24810         (Depends-on): Add 'float'.
24811         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24812         * lib/math.in.h (floor): New declaration.
24813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24814         REPLACE_FLOOR.
24815         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24816         * modules/floor-ieee-tests: New file.
24817         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24818         * tests/test-math-c++.cc: Check the signature of 'floor'.
24819         * doc/posix-functions/floor.texi: Mention the new module.
24820
24821 2010-12-21  Bruno Haible  <bruno@clisp.org>
24822
24823         New module 'roundf-ieee'.
24824         * modules/roundf-ieee: New file.
24825         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24826         test whether roundf works according to ISO C 99 with IEC 60559.
24827         * m4/roundf-ieee.m4: New file.
24828         * modules/roundf-ieee-tests: New file.
24829         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24830         * tests/test-roundf1.c (main): Remove signbit tests.
24831         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24832         * doc/posix-functions/roundf.texi: Mention the new module.
24833
24834 2010-12-21  Bruno Haible  <bruno@clisp.org>
24835
24836         New module 'truncf-ieee'.
24837         * modules/truncf-ieee: New file.
24838         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24839         test whether truncf works according to ISO C 99 with IEC 60559.
24840         * m4/truncf-ieee.m4: New file.
24841         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24843         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24844         * modules/truncf-ieee-tests: New file.
24845         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24846         * tests/test-truncf1.c (main): Remove signbit tests.
24847         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24848         * doc/posix-functions/truncf.texi: Mention the new module.
24849
24850 2010-12-21  Bruno Haible  <bruno@clisp.org>
24851
24852         New module 'ceilf-ieee'.
24853         * modules/ceilf-ieee: New file.
24854         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24855         test whether ceilf works according to ISO C 99 with IEC 60559.
24856         * m4/ceilf-ieee.m4: New file.
24857         * modules/ceilf-ieee-tests: New file.
24858         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24859         * tests/test-ceilf1.c (main): Remove signbit tests.
24860         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24861         * doc/posix-functions/ceilf.texi: Mention the new module.
24862
24863 2010-12-21  Bruno Haible  <bruno@clisp.org>
24864
24865         New module 'floorf-ieee'.
24866         * modules/floorf-ieee: New file.
24867         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24868         test whether floorf works according to ISO C 99 with IEC 60559.
24869         * m4/floorf-ieee.m4: New file.
24870         * modules/floorf-ieee-tests: New file.
24871         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24872         * tests/test-floorf1.c (main): Remove signbit tests.
24873         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24874         * doc/posix-functions/floorf.texi: Mention the new module.
24875
24876 2010-12-21  Bruno Haible  <bruno@clisp.org>
24877
24878         Support for minus zero in autoconf macros.
24879         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24880         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24881         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24882         * tests/minus-zero.h: Update comments.
24883
24884 2010-12-21  Bruno Haible  <bruno@clisp.org>
24885
24886         Tests for module 'ceil'.
24887         * modules/ceil-tests: New file.
24888         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24889         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24890
24891 2010-12-21  Bruno Haible  <bruno@clisp.org>
24892
24893         Tests for module 'floor'.
24894         * modules/floor-tests: New file.
24895         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24896         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24897
24898 2010-12-21  Bruno Haible  <bruno@clisp.org>
24899
24900         math: Fix indentation.
24901         * lib/math.in.h (floorf): Fix indentation.
24902
24903 2010-12-21  Bruno Haible  <bruno@clisp.org>
24904
24905         Fix cross-compilation guesses on Solaris.
24906         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24907         not match "solaris2.10".
24908         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24909         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24910         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24911
24912 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24913
24914         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24915         This fixes a problem observed with the latest coreutils snapshot
24916         that caused a test to fail on Solaris 8.  src/csplit.c's call
24917         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24918         earlier, instead of returning the number of bytes that would have
24919         been generated; this causes csplit to incorrectly report memory
24920         exhaustion.
24921         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24922         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24923         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24924         comments to match.
24925         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24926         Fix typo in matching older versions of Solaris: "solaris2.10"
24927         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24928         only for guessing while cross-compiling.
24929         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24930
24931 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24932
24933         ftoastr: fix comment again
24934         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24935         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24936         Also, simplify example a bit by using flags = 0.
24937
24938 2010-12-20  Bruno Haible  <bruno@clisp.org>
24939
24940         round*, trunc*: Update documentation regarding glibc.
24941         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24942         * doc/posix-functions/round.texi: Likewise.
24943         * doc/posix-functions/roundl.texi: Likewise.
24944         * doc/posix-functions/truncf.texi: Likewise.
24945         * doc/posix-functions/trunc.texi: Likewise.
24946         * doc/posix-functions/truncl.texi: Likewise.
24947
24948 2010-12-20  Bruno Haible  <bruno@clisp.org>
24949
24950         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24951         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24952         * doc/posix-functions/round.texi: Likewise.
24953         * doc/posix-functions/roundl.texi: Likewise.
24954
24955 2010-12-20  Bruno Haible  <bruno@clisp.org>
24956
24957         ttyname_r: Add missing declaration on HP-UX 11.
24958         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24959         HAVE_TTYNAME_R.
24960         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24961         declared. Set HAVE_TTYNAME_R always.
24962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24963         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24964         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24965         HAVE_TTYNAME_R.
24966         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24967
24968 2010-12-20  Bruno Haible  <bruno@clisp.org>
24969
24970         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24971         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24972         * doc/posix-functions/getlogin_r.texi: Likewise.
24973         * tests/test-getlogin.c: Include <errno.h>.
24974         (main): Avoid test failure on HP-UX 11.11.
24975         * tests/test-getlogin_r.c (main): Likewise.
24976
24977 2010-12-20  Bruno Haible  <bruno@clisp.org>
24978
24979         getlogin_r: Add missing declaration on HP-UX 11.
24980         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24981         declared also when it exists as a function.
24982         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24983
24984 2010-12-20  Bruno Haible  <bruno@clisp.org>
24985
24986         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24987         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24988         through wcrtomb.
24989
24990 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24991
24992         ftoastr: fix comment
24993         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24995
24996 2010-12-19  Bruno Haible  <bruno@clisp.org>
24997
24998         isnan: Ensure it is a macro.
24999         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25000         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25001         Solaris.
25002
25003 2010-12-19  Bruno Haible  <bruno@clisp.org>
25004
25005         ldexpl test: Fix link error on OSF/1 5.1.
25006         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25007
25008 2010-12-19  Bruno Haible  <bruno@clisp.org>
25009
25010         wctype: Make it work in C++ mode on OSF/1 5.1.
25011         * lib/wctype.in.h (iswblank): Declare but not define here.
25012         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25013         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25014         * modules/wctype (Files): Add lib/iswblank.c.
25015
25016 2010-12-19  Bruno Haible  <bruno@clisp.org>
25017
25018         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25019         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25020         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25021
25022 2010-12-19  Bruno Haible  <bruno@clisp.org>
25023
25024         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25025         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25026         _POSIX_PII_SOCKET.
25027         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25028         * doc/posix-functions/recvfrom.texi: Likewise.
25029         * doc/posix-functions/send.texi: Likewise.
25030         * doc/posix-functions/sendto.texi: Likewise.
25031
25032 2010-12-19  Bruno Haible  <bruno@clisp.org>
25033
25034         tcgetsid: Add missing declaration on OSF/1 5.1.
25035         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25036         HAVE_TCGETSID.
25037         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25038         Don't set HAVE_TCGETSID.
25039         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25040         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25041         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25042         HAVE_TCGETSID.
25043         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25044
25045 2010-12-19  Bruno Haible  <bruno@clisp.org>
25046
25047         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25048         * lib/stdio.in.h: During the include_next statement, let recursive
25049         includes of this file include only the system header file.
25050
25051 2010-12-19  Bruno Haible  <bruno@clisp.org>
25052
25053         iconv_open: Fix regression from 2010-12-04.
25054         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25055         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25056
25057 2010-12-19  Bruno Haible  <bruno@clisp.org>
25058
25059         stdbool test: Avoid a gcc warning.
25060         * tests/test-stdbool.c (main): Fail if e1 is false.
25061         Reported by Jim Meyering.
25062
25063 2010-12-19  Jim Meyering  <meyering@redhat.com>
25064
25065         setenv: restore to working order
25066         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25067         mistakenly removed.
25068         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25069         HAVE_SETENV.
25070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25071         HAVE_SETENV.
25072
25073 2010-12-19  Bruno Haible  <bruno@clisp.org>
25074
25075         Document some different function declarations on OSF/1 5.1.
25076         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25077         * doc/posix-functions/inet_ntop.texi: Likewise.
25078         * doc/posix-functions/gethostname.texi: Likewise.
25079         * lib/unistd.in.h (gethostname): Update comment.
25080
25081 2010-12-19  Bruno Haible  <bruno@clisp.org>
25082
25083         doc: Mention vasprintf-posix module.
25084         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25085         the 'vasprintf-posix' module.
25086         * doc/glibc-functions/vasprintf.texi: Likewise.
25087
25088 2010-12-19  Bruno Haible  <bruno@clisp.org>
25089
25090         unsetenv: Add missing declaration on OSF/1 5.1.
25091         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25093         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25095         not HAVE_UNSETENV.
25096         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25097         HAVE_UNSETENV.
25098         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25099
25100 2010-12-19  Bruno Haible  <bruno@clisp.org>
25101
25102         setenv: Add missing declaration on OSF/1 5.1.
25103         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25104         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25105         declared. Don't set HAVE_SETENV.
25106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25107         not HAVE_SETENV.
25108         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25109         HAVE_SETENV.
25110         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25111
25112 2010-12-19  Bruno Haible  <bruno@clisp.org>
25113
25114         nl_langinfo tests: Avoid gcc warning.
25115         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25116
25117 2010-12-19  Bruno Haible  <bruno@clisp.org>
25118
25119         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25120         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25121         _GL_CXXALIAS_SYS.
25122
25123 2010-12-19  Bruno Haible  <bruno@clisp.org>
25124
25125         stdbool: Relax test.
25126         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25127         address to 'bool' work in static initializer, for compilers other than
25128         GCC.
25129
25130 2010-12-19  Bruno Haible  <bruno@clisp.org>
25131
25132         ftello: Add missing declaration on OSF/1 5.1.
25133         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25134         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25136         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25137         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25138
25139 2010-12-19  Bruno Haible  <bruno@clisp.org>
25140
25141         fseeko: Add missing declaration on OSF/1 5.1.
25142         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25145         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25146         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25147
25148 2010-12-19  Bruno Haible  <bruno@clisp.org>
25149
25150         fchdir: Add missing declaration on OSF/1 5.1.
25151         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25152         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25154         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25155         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25156
25157 2010-12-19  Bruno Haible  <bruno@clisp.org>
25158
25159         relocatable-prog-wrapper: Separate from relocatable-prog.
25160         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25161         uninstall-relocwrapper rule here.
25162         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25163         Reported by Ian Beckwith <ianb@erislabs.net>.
25164
25165 2010-12-19  Bruno Haible  <bruno@clisp.org>
25166
25167         unistr/u8-mbsnlen: Add missing dependency.
25168         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25169         Reported by Ian Beckwith <ianb@erislabs.net>.
25170
25171 2010-12-19  Bruno Haible  <bruno@clisp.org>
25172
25173         iconv: Make it possible again to use this module without 'iconv-h'.
25174         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25175         if it is not defined.
25176         Reported by Ian Beckwith <ianb@erislabs.net>.
25177
25178 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25179
25180         acl: port to Solaris 8 when copying from tmpfs to ufs
25181         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25182         error number.  Problem observed on Solaris 8 with latest
25183         coreutils, with "mv A B", where A is on a tmpfs file system and B
25184         is on a ufs file system.  This caused coreutils' mv/part-symlink
25185         test to fail.
25186
25187         tests: set fail=0 at start
25188         * tests/init.sh (setup_): Move fail=0 initialization here ...
25189         (mktempd_): ... from here, so that tests can rely on fail being
25190         set to 0 initially.  This fixes a problem in coreutils; see:
25191         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25192
25193 2010-12-18  Bruno Haible  <bruno@clisp.org>
25194
25195         memmem-simple: Stylistic changes.
25196         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25197         Fix preprocessor directive indentation.
25198
25199 2010-12-15  Pádraig Brady <P@draigBrady.com>
25200
25201         memmem, memmem-simple: reorganize and expand empty needle check
25202         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25203         functional checks to memmem-simple so that one has a fully functional
25204         memmem by using just this module.
25205         Restrict the performance only check to the memmem module.
25206         Also expand the empty needle check to ensure the correct
25207         pointer is returned, not just a non NULL pointer.
25208         * doc/glibc-functions/memmem.texi: Rearrange the portability
25209         documentation to correlate with the rearranged checks.
25210         Clarify exactly how the memmem and memmem-simple modules
25211         relate to each other.
25212
25213 2010-12-15  Pádraig Brady <P@draigBrady.com>
25214             Bruno Haible  <bruno@clisp.org>
25215
25216         Improve cross-compilation guesses for uClibc.
25217         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25218         that uClibc does not have the glibc bug.
25219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25220         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25221
25222 2010-12-14  Eric Blake  <eblake@redhat.com>
25223
25224         configmake: provide fallbacks for oldest supported autotools
25225         * m4/configmake.m4: New file.
25226         * modules/configmake (Files): Ship it.
25227         (configure.ac): Use it to guarantee fallbacks.
25228
25229 2010-12-13  Pádraig Brady <P@draigBrady.com>
25230
25231         read-file: Improve handling of large files
25232         * lib/read-file.c (fread_file): Minimize realloc()s
25233         for regular files, and better manage sizes around SIZE_MAX.
25234
25235 2010-12-13  Eric Blake  <eblake@redhat.com>
25236
25237         cloexec, fcntl: relax license
25238         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25239         consent from all contributors.
25240         * modules/fcntl (License): Likewise.
25241
25242 2010-12-10  Bruno Haible  <bruno@clisp.org>
25243
25244         Tests for module 'pipe-posix'.
25245         * modules/pipe-posix-tests: New file.
25246         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25247
25248 2010-12-10  Bruno Haible  <bruno@clisp.org>
25249
25250         pipe-posix: Make it work in C++ mode.
25251         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25252         (pipe): Use common idiom, not a macro definition.
25253         * lib/pipe.c: New file.
25254         * m4/pipe.m4: New file.
25255         * modules/pipe-posix (Description): Enhance.
25256         (Files): Add lib/pipe.c, m4/pipe.m4.
25257         (configure.ac): Invoke gl_FUNC_PIPE.
25258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25259         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25260         * tests/test-unistd-c++.cc: Check the signature of pipe.
25261
25262 2010-12-10  Bruno Haible  <bruno@clisp.org>
25263
25264         Rename module 'pipe' to 'spawn-pipe'.
25265         * modules/spawn-pipe: New file, renamed from modules/pipe.
25266         (Files, configure.ac, Makefile.am): Update.
25267         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25268         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25269         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25270         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25271         "spawn-pipe.h" instead of "pipe.h".
25272         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25273         to gl_SPAWN_PIPE.
25274         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25275         (Files, Makefile.am): Update.
25276         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25277         Update.
25278         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25279         Include "spawn-pipe.h" instead of "pipe.h".
25280         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25281         * lib/javacomp.c: Likewise.
25282         * lib/javaversion.c: Likewise.
25283         * lib/pipe-filter-gi.c: Likewise.
25284         * lib/pipe-filter-ii.c: Likewise.
25285         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25286         * modules/javacomp (Depends-on): Likewise.
25287         * modules/javaversion (Depends-on): Likewise.
25288         * modules/pipe-filter-gi (Depends-on): Likewise.
25289         * modules/pipe-filter-ii (Depends-on): Likewise.
25290         * MODULES.html.sh (Executing programs): Update.
25291         * NEWS: Mention the change.
25292
25293 2010-12-10  Eric Blake  <eblake@redhat.com>
25294
25295         pipe-posix: new module
25296         * modules/pipe-posix: New file.
25297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25298         (gl_UNISTD_H): Check for declaration.
25299         * modules/unistd (Makefile.am): Substitute it.
25300         * lib/unistd.in.h (pipe): Provide it for mingw.
25301         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25302         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25303
25304 2010-12-07  Bruno Haible  <bruno@clisp.org>
25305
25306         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25307         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25308         u8_strcmp_gnu.
25309         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25310
25311 2010-12-06  Bruno Haible  <bruno@clisp.org>
25312
25313         Update internal documentation.
25314         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25315
25316 2010-12-04  Bruno Haible  <bruno@clisp.org>
25317
25318         Put more information about failed tests into the test return codes.
25319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25320         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25321         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25322         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25323         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25324         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25325         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25326         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25327         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25329         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25330         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25331         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25332         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25333         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25334         returns a bit mask.
25335         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25336         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25337         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25338         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25339         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25340         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25341         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25343         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25344         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25345         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25346         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25347         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25348         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25349         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25350         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25351         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25352         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25353         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25354         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25356         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25357         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25358         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25359         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25360         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25361         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25362         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25363         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25364         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25365         gl_PRINTF_PRECISION): Likewise.
25366         * m4/regex.m4 (gl_REGEX): Likewise.
25367         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25369         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25370         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25374         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25376         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25377         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25378         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25379         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25380         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25381         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25382         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25383         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25384         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25386         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25387         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25388         enumerated value.
25389         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25390
25391 2010-12-04  Bruno Haible  <bruno@clisp.org>
25392
25393         Update for Solaris 11 2010-11.
25394         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25395         Express, released in November 2010.
25396
25397 2010-12-04  Bruno Haible  <bruno@clisp.org>
25398
25399         nproc: Relax license.
25400         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25401         and Paul Eggert.
25402         Requested by Ludovic Courtès <ludo@gnu.org>.
25403
25404 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25405
25406         utimecmp: fine-grained src to nearby coarse-grained dest
25407
25408         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25409         and the source is on a file system with higher-resolution time
25410         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25411         not work, and the time stamps are close together, the algorithm to
25412         determine the exact resolution from the read-back mtime was buggy:
25413         it had a "!=" where it should have had an "==".  This bug has been
25414         in the code ever since it was introduced to gnulib.
25415         Problem reported by Dan Jacobson in
25416         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25417
25418 2010-11-30  Bruno Haible  <bruno@clisp.org>
25419
25420         strerror_r-posix: Fix autoconf test.
25421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25422
25423 2010-11-28  Bruno Haible  <bruno@clisp.org>
25424             Paul Eggert  <eggert@cs.ucla.edu>
25425
25426         Tests for module 'getdomainname'.
25427         * modules/getdomainname-tests: New file.
25428         * tests/test-getdomainname.c: New file, based on
25429         tests/test-gethostname.c.
25430
25431 2010-11-28  Bruno Haible  <bruno@clisp.org>
25432             Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         getdomainname: Use the system function when possible.
25435         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25436         (getdomainname): Replace if needed. Provide the declaration if it is
25437         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25438         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25439         (getdomainname): When the system has getdomainname, call the system
25440         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25441         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25442         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25443         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25444         the function if its second argument is of type 'int' or if it is found
25445         in libnsl.
25446         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25447         <sys/systeminfo.h> and sysinfo().
25448         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25450         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25451         HAVE_GETDOMAINNAME.
25452         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25453         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25454         * doc/glibc-functions/getdomainname.texi: Document the problems with
25455         the getdomainname declaration.
25456
25457 2010-11-28  Bruno Haible  <bruno@clisp.org>
25458
25459         sys_socket: Ensure ss_family field on AIX.
25460         * lib/sys_socket.in.h (ss_family): New macro definition.
25461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25462         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25463         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25464         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25465         * modules/sys_socket (Makefile.am): Substitute
25466         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25467         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25468
25469 2010-11-27  Bruno Haible  <bruno@clisp.org>
25470
25471         readline: Improve configure output.
25472         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25473         "checking for readline..." result understandable.
25474
25475 2010-11-27  Bruno Haible  <bruno@clisp.org>
25476
25477         *printf-posix: Detect a bug on Solaris 10/x86.
25478         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25479         for floating-point output.
25480         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25481         directive.
25482         * tests/test-snprintf-posix.h (test_function): Likewise.
25483         * tests/test-sprintf-posix.h (test_function): Likewise.
25484         * tests/test-vasprintf-posix.c (test_function): Likewise.
25485         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25486         * doc/posix-functions/printf.texi: Likewise.
25487         * doc/posix-functions/snprintf.texi: Likewise.
25488         * doc/posix-functions/sprintf.texi: Likewise.
25489         * doc/posix-functions/vfprintf.texi: Likewise.
25490         * doc/posix-functions/vprintf.texi: Likewise.
25491         * doc/posix-functions/vsnprintf.texi: Likewise.
25492         * doc/posix-functions/vsprintf.texi: Likewise.
25493         * doc/glibc-functions/obstack_printf.texi: Likewise.
25494         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25495
25496 2010-11-27  Bruno Haible  <bruno@clisp.org>
25497
25498         Fix link error when module libunistring-optional is in use.
25499         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25500         * modules/striconveha-tests (Makefile.am): Likewise.
25501
25502 2010-11-27  Bruno Haible  <bruno@clisp.org>
25503
25504         regex: Mention link dependencies.
25505         * modules/regex (Link): New section.
25506         * modules/rpmatch (Link): Likewise.
25507         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25508
25509 2010-11-27  Bruno Haible  <bruno@clisp.org>
25510
25511         ftoastr: Fix compilation error on Solaris.
25512         * lib/ftoastr.c: Include <config.h>.
25513
25514 2010-11-27  Bruno Haible  <bruno@clisp.org>
25515
25516         getloadavg: Update documentation.
25517         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25518
25519 2010-11-27  Bruno Haible  <bruno@clisp.org>
25520
25521         sys_socket: Fix test whether the functions are declared.
25522         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25523         not <sys/select.h>.
25524
25525 2010-11-27  Bruno Haible  <bruno@clisp.org>
25526
25527         getpass: Make sure to get system declaration on some platforms.
25528         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25529         gl_USE_SYSTEM_EXTENSIONS.
25530         * modules/getpass (Depends-on): Add extensions.
25531
25532 2010-11-26  Bruno Haible  <bruno@clisp.org>
25533
25534         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25535         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25536         'iconv' module is present.
25537         (ICONV_CONST): New macro.
25538         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25539         ICONV_CONST.
25540         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25541         set ICONV_CONST.
25542         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25543         here.
25544         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25545         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25546         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25547         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25548         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25549         present.
25550
25551 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25552
25553         ftoastr: comment fix
25554         * lib/ftoastr.c: "little" -> "little or no" in comment
25555
25556 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25557
25558         stdint: port to GCC 4.3 + OSX + Octave
25559         On this platform, stdint.h is buggy and defines int64_t to long
25560         long int.  The replacement defined it to long int, causing
25561         problems with C++ style name mangling.  Instead, trust the system
25562         definition if INT64_MAX is defined, and likewise for the unsigned
25563         variant.   Problem reported by Jarno Rajahalme in
25564         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25565         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25566         and don't mess with int64_t and INT64_MAX in this case.
25567         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25568
25569 2010-11-24  Bruno Haible  <bruno@clisp.org>
25570
25571         doc: Corrections regarding MacOS X 10.4 and 10.5.
25572         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25573         MacOS X.
25574         Reported by Simon Josefsson.
25575
25576 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25577
25578         Uninstall ".bin" files installed by relocwrapper.
25579         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25580         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25581         unless it is already there.
25582
25583 2010-11-21  Bruno Haible  <bruno@clisp.org>
25584
25585         Update for NetBSD 5.0.
25586         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25587         NetBSD; the test fails on NetBSD 5.0.
25588         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25589         about NetBSD.
25590
25591 2010-11-21  Bruno Haible  <bruno@clisp.org>
25592
25593         Update for HP-UX 11.23 and HP-UX 11.31.
25594         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25595         HP-UX.
25596
25597 2010-11-21  Bruno Haible  <bruno@clisp.org>
25598
25599         Update for MacOS X 10.5.
25600         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25601         MacOS X; the test fails on MacOS X 10.5.8.
25602         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25603         about MacOS X.
25604
25605 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25606
25607         bootstrap: add bootstrap_sync option.
25608         See discussion at
25609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25611         * build-aux/bootstrap: Accept --bootstrap-sync to update
25612         bootstrap if it is not identical to the local gnulib's
25613         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25614         enable this by default.  Accept --no-bootstrap-sync to disable
25615         it.
25616
25617 2010-11-20  Bruno Haible  <bruno@clisp.org>
25618
25619         Ensure that <features.h> is included before __GLIBC__ is tested.
25620         * lib/printf-parse.h: Include <features.h>.
25621         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25622         Reported by Mike Frysinger <vapier@gentoo.org>.
25623
25624         Ensure that <features.h> is included before __GLIBC__ is tested.
25625         * lib/wchar.in.h: Include <features.h>.
25626         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25627         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25628         Reported by Mike Frysinger <vapier@gentoo.org>.
25629
25630         Ensure that <features.h> is included before __GLIBC__ is tested.
25631         * lib/arpa_inet.in.h: Include <features.h>.
25632         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25633         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25634         Reported by Mike Frysinger <vapier@gentoo.org>.
25635
25636         Ensure that <features.h> is included before __GLIBC__ is tested.
25637         * build-aux/link-warning.h: Include <features.h>.
25638         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25639         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25640         Reported by Mike Frysinger <vapier@gentoo.org>.
25641
25642         Ensure that <features.h> is included before __GLIBC__ is tested.
25643         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25644         Reported by Mike Frysinger <vapier@gentoo.org>.
25645
25646 2010-11-20  Bruno Haible  <bruno@clisp.org>
25647
25648         memmem: Fix autoconf test.
25649         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25650
25651 2010-11-20  Bruno Haible  <bruno@clisp.org>
25652
25653         Port to uClibc.
25654         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25655         * lib/fcntl.in.h: Likewise.
25656         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25657         * lib/mbrtowc.c (mbrtowc): Likewise.
25658         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25659         * lib/strerror_r.c: Likewise.
25660         * lib/unistr/u8-strnlen.c: Likewise.
25661         * lib/vasnprintf.c (decimal_point_char): Likewise.
25662         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25663         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25665         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25666         * tests/test-sigaction.c (handler, main): Likewise.
25667         * lib/freading.h: Treat uClibc like a non-glibc platform.
25668         * lib/freading.c: Likewise.
25669         * lib/gettext.h: Likewise.
25670         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25671         Likewise.
25672         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25673         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25674         * lib/propername.c (proper_name_utf8): Likewise.
25675         * lib/spawn.in.h: Likewise.
25676         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25677         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25678         mem_cd_iconveh_internal): Likewise.
25679         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25680         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25681         strstr, strcasestr): Likewise.
25682         * lib/unicodeio.c (unicode_to_mb): Likewise.
25683         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25684         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25685         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25686         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25687         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25688         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25689         * lib/unistr/u8-stpncpy.c: Likewise.
25690         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25691         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25692         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25693         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25694         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25695         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25696         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25697         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25699         Likewise.
25700         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25701         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25705         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25706         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25707         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25708         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25709         * tests/test-striconveha.c (main): Likewise.
25710         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25711         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25712         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25713         * doc/posix-functions/getline.texi: Likewise.
25714         Reported by Mike Frysinger <vapier@gentoo.org>.
25715
25716 2010-11-20  Bruno Haible  <bruno@clisp.org>
25717
25718         nproc: Fix condition.
25719         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25720         HAVE_PTHREAD_AFFINITY_NP.
25721
25722 2010-11-20  Bruno Haible  <bruno@clisp.org>
25723
25724         Fix a comment.
25725         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25726
25727 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25728
25729         ftoastr: don't assume snprintf
25730         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25731         Implement a subset of snprintf here, by using sprintf safely.
25732         * modules/ftoastr (Depends-on): Remove snprintf.
25733
25734 2010-11-19  Jim Meyering  <meyering@redhat.com>
25735
25736         test-rename.h: fix compilation failure
25737         * tests/test-rename.h (test_rename): Add omitted "}".
25738
25739 2010-11-17  Jim Meyering  <meyering@redhat.com>
25740
25741         maint.mk: add a URL discussing the no-@acronym policy
25742         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25743
25744 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25745
25746         ftoastr: depend on snprintf, improve comments
25747         * lib/ftoastr.c: Also mention Loitsch's draft.
25748         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25749         needed in the current implementation, but it might simplify
25750         speeding up the code later.
25751         * modules/ftoastr: Depend on snprintf; this improves portability.
25752         Suggested by Bruno Haible in the same email.
25753
25754         ftoastr: port to hosts lacking strtof and strtold
25755         Problem reported by Bruno Haible in
25756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25757         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25758         environment and strtold (and presumably strtof) are not available.
25759         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25760         (configure.ac): Require gl_C99_STRTOLD.
25761
25762 2010-11-18  Bruno Haible  <bruno@clisp.org>
25763
25764         c-strtold: Avoid link error on AIX 7.
25765         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25766         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25767         (gl_C_STRTOLD): Test whether strtold_l exists.
25768         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25769
25770 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25771
25772         intprops: new macro INT_BITS_STRLEN_BOUND
25773         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25774         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25775         not exposed.  Also, it uses a slightly tighter bound than before;
25776         though this makes no practical difference, we might as well be as
25777         tight as we easily can.
25778
25779         ftoastr: new module, for lossless conversion of floats to short strings
25780         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25781         * modules/ftoastr: New files.
25782
25783 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         bootstrap: port to Solaris sed
25786         * build-aux/bootstrap (get_version): Port to Solaris sed.
25787         See Ralf Wildenhues's note in
25788         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25789
25790 2010-11-14  Jim Meyering  <meyering@redhat.com>
25791
25792         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25793         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25794         and move definition closer to sole use.
25795
25796 2010-11-13  Jim Meyering  <meyering@redhat.com>
25797
25798         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25799         Now we require at least autoconf-2.59, which means the work-around
25800         is no longer needed.
25801         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25802         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25803         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25804         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25805         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25806
25807 2010-11-13  Bruno Haible  <bruno@clisp.org>
25808
25809         rename, renameat: Avoid test failures at NFS mounted locations.
25810         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25811         functions.
25812         (test_rename): Use assert_nonexistent.
25813         * tests/test-rename.c: Include <dirent.h>.
25814         * tests/test-renameat.c: Likewise.
25815         Reported by Gary V. Vaughan <gary@gnu.org>.
25816
25817         rename, renameat: Document Linux bug with NFS
25818         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25819         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25820         * doc/posix-functions/renameat.texi: Likewise.
25821         Suggested by Eric Blake.
25822
25823 2010-11-13  Bruno Haible  <bruno@clisp.org>
25824
25825         rename test: Add comments.
25826         * tests/test-rename.h (test_rename): Add structure and comments.
25827
25828 2010-11-13  Eric Blake  <eblake@redhat.com>
25829
25830         maintainer-makefile: cover a few more files
25831         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25832         scripts generated within C files, for libvirt.
25833
25834 2010-11-13  Bruno Haible  <bruno@clisp.org>
25835
25836         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25837         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25838         character, return the number of bytes that belong together, not always
25839         1.
25840         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25841         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25842         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25843         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25844         number of bytes of an invalid character.
25845         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25846         (main): Invoke it.
25847         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25848         results.
25849         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25850         malformed byte sequences.
25851         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25852         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25853         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25854         Reported by Ben Pfaff and Paolo Bonzini.
25855
25856 2010-11-13  Bruno Haible  <bruno@clisp.org>
25857
25858         openat: Work around glibc bug with fchownat() and empty file names.
25859         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25860         (gl_FUNC_FCHOWNAT): Invoke it.
25861         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25862         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25863         Reported by Gary V. Vaughan <gary@gnu.org>.
25864
25865 2010-11-13  Bruno Haible  <bruno@clisp.org>
25866
25867         openat: Ensure autoconf macro ordering.
25868         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25869         gl_USE_SYSTEM_EXTENSIONS.
25870         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25871
25872 2010-11-13  Bruno Haible  <bruno@clisp.org>
25873
25874         Update comments.
25875         * lib/unistr/u8-check.c: Update file name in comments.
25876         * lib/unistr/u8-mblen.c: Likewise.
25877         * lib/unistr/u8-prev.c: Likewise.
25878         * lib/unistr/u8-strmblen.c: Likewise.
25879         * lib/unistr/u8-strmbtouc.c: Likewise.
25880
25881 2010-11-13  Jim Meyering  <meyering@redhat.com>
25882
25883         tests: avoid test failure on Solaris 10 due to lack of PATH export
25884         * tests/test-update-copyright.sh: Don't forget to export PATH.
25885
25886         init.sh: ensure that IFS is defined, just in case...
25887         * tests/init.sh (setup_): Ensure that IFS is defined,
25888         so that saving and restoring it works as expected.  This
25889         appears to be useful at least for an old version of dash
25890         from a long time ago (RH 6).  See here for details:
25891         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25892
25893         maint.mk: tighten "test a == b" check
25894         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25895         test to files that contain something like #!/bin/sh.
25896         Without this, coreutils would get two false positives in
25897         the comments of C source files.
25898
25899 2010-11-12  Eric Blake  <eblake@redhat.com>
25900
25901         bootstrap: fix typo in previous attempt
25902         * build-aux/bootstrap (buildreq): Correct the grouping.
25903         Reported by Paul Eggert.
25904
25905         maintainer-makefile: prohibit test x == x
25906         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25907         Based on a report by Matthias Bolte.
25908
25909         bootstrap: allow FreeBSD gzip
25910         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25911         which has no '.' and goes to stderr.
25912         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25913         Reported by Matthias Bolte.
25914
25915         maintainer-makefile: check for i18n setup
25916         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25917         will likely work.
25918
25919 2010-11-12  Bruno Haible  <bruno@clisp.org>
25920
25921         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25922         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25923         * lib/nanosleep.c (nanosleep): Likewise.
25924
25925 2010-11-11  Bruno Haible  <bruno@clisp.org>
25926
25927         fcntl-h: Fix for use of C++ on glibc systems.
25928         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25929         also on glibc systems in C++ mode.
25930         Reported by Gary V. Vaughan <gary@gnu.org>.
25931
25932 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25933
25934         mknod: avoid false failure with dash
25935         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25936
25937 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25938
25939         unlink: Fix "is it should" typo in diagnostic.
25940         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25941         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25942
25943 2010-11-11  Bruno Haible  <bruno@clisp.org>
25944
25945         Tests for module 'strerror_r-posix'.
25946         * modules/strerror_r-posix-tests: New file.
25947         * tests/test-strerror_r.c: New file.
25948         * tests/test-string-c++.cc: Check the signature of strerror_r.
25949
25950         New module 'strerror_r-posix'.
25951         * lib/string.in.h (strerror_r): New declaration.
25952         * lib/strerror_r.c: New file.
25953         * m4/strerror_r.m4: New file.
25954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25955         of strerror_r.
25956         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25957         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25958         * modules/strerror_r-posix: New file.
25959         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25960         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25961         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25962         portability problems.
25963
25964 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25965
25966         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25967         line is also considered for output. Quoted function name in shell
25968         command, so temporary files for functions like MyClass::operator()
25969         are removed correctly without errors.
25970
25971 2010-11-09  Bruno Haible  <bruno@clisp.org>
25972
25973         * doc/posix-functions/strerror.texi: List more failing platforms.
25974
25975         * doc/posix-functions/strerror.texi: Add a comment.
25976
25977 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25978
25979         fdopendir: fix bug on MacOS X when low on file descriptors
25980
25981         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25982         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25983         All callers changed.
25984         (fdopendir): Invoke save_cwd at the top level, not after using
25985         multiple dup() calls to use up file descriptors.  Then retry
25986         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25987         less than the maximum number of open file descriptors, because
25988         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25989         on Mac OS X 10.6.4 for tar 1.24
25990         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25991         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25992         and for tar 1.25
25993         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25994
25995 2010-11-07  Bruno Haible  <bruno@clisp.org>
25996
25997         vasnprintf: Support I flag on glibc systems.
25998         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25999         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26000         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26001         snprintf function.
26002         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26003         glibc systems.
26004         * tests/test-vasnprintf-posix3.c: New file.
26005         * modules/vasnprintf-posix-tests (Files): Add it.
26006         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26007
26008 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26009
26010         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26011         * MODULES.html.sh: For compiler warnings, use name
26012         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26013
26014 2010-11-05  Eric Blake  <eblake@redhat.com>
26015
26016         ceil, floor: avoid spurious failure with icc
26017         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26018         [denormals-as-zero] when optimizing without -mieee-fp option.
26019         * tests/test-floorf2.c (floorf_reference): Likewise.
26020         * tests/test-ceilf1.c (dummy): New function.
26021         (main): Use it to outsmart icc's optimization.
26022         * tests/test-floorf1.c (dummy, main): Likewise.
26023
26024         tests: require working signbit
26025         * modules/ceilf-tests (Depends-on): Add signbit.
26026         * modules/ceill-tests (Depends-on): Likewise.
26027         * modules/floorf-tests (Depends-on): Likewise.
26028         * modules/floorl-tests (Depends-on): Likewise.
26029         * modules/round-tests (Depends-on): Likewise.
26030         * modules/roundf-tests (Depends-on): Likewise.
26031         * modules/roundl-tests (Depends-on): Likewise.
26032         * modules/trunc-tests (Depends-on): Likewise.
26033         * modules/truncf-tests (Depends-on): Likewise.
26034         * modules/truncl-tests (Depends-on): Likewise.
26035
26036         strtod: work around icc bug
26037         * lib/strtod.c (minus_zero): Define to working value.
26038         (strtod): Use it to avoid icc bug.
26039
26040         copysign: enhance tests
26041         * modules/copysign-tests (Files): Add minus-zero.h.
26042         * tests/test-copysign.c (main): Also test zeros.
26043
26044 2010-11-04  Eric Blake  <eblake@redhat.com>
26045
26046         ceil, floor, round, trunc: enhance tests of -0
26047         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26048         * tests/test-ceill.c (main): Likewise.
26049         * tests/test-floorf1.c (main): Likewise.
26050         * tests/test-floorl.c (main): Likewise.
26051         * tests/test-round1.c (main): Likewise.
26052         * tests/test-roundf1.c (main): Likewise.
26053         * tests/test-roundl.c (main): Likewise.
26054         * tests/test-trunc1.c (main): Likewise.
26055         * tests/test-truncf1.c (main): Likewise.
26056         * tests/test-truncl.c (main): Likewise.
26057
26058 2010-11-04  Eric Blake  <eblake@redhat.com>
26059
26060         frexp, tests: work around ICC bug with -zero
26061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26062         works with more compilers.
26063         * tests/minus-zero.h: New file.
26064         * modules/ceilf-tests (Files): Include it.
26065         * modules/ceill-tests (Files): Likewise.
26066         * modules/floorf-tests (Files): Likewise.
26067         * modules/floorl-tests (Files): Likewise.
26068         * modules/frexp-nolibm-tests (Files): Likewise.
26069         * modules/frexp-tests (Files): Likewise.
26070         * modules/frexpl-nolibm-tests (Files): Likewise.
26071         * modules/frexpl-tests (Files): Likewise.
26072         * modules/isnan-tests (Files): Likewise.
26073         * modules/isnand-nolibm-tests (Files): Likewise.
26074         * modules/isnand-tests (Files): Likewise.
26075         * modules/isnanf-nolibm-tests (Files): Likewise.
26076         * modules/isnanf-tests (Files): Likewise.
26077         * modules/isnanl-nolibm-tests (Files): Likewise.
26078         * modules/isnanl-tests (Files): Likewise.
26079         * modules/round-tests (Files): Likewise.
26080         * modules/roundf-tests (Files): Likewise.
26081         * modules/roundl-tests (Files): Likewise.
26082         * modules/ldexpl-tests (Files): Likewise.
26083         * modules/signbit-tests (Files): Likewise.
26084         * modules/snprintf-posix-tests (Files): Likewise.
26085         * modules/sprintf-posix-tests (Files): Likewise.
26086         * modules/strtod-tests (Files): Likewise.
26087         * modules/trunc-tests (Files): Likewise.
26088         * modules/truncf-tests (Files): Likewise.
26089         * modules/truncl-tests (Files): Likewise.
26090         * modules/vsnprintf-posix-tests (Files): Likewise.
26091         * modules/vsprintf-posix-tests (Files): Likewise.
26092         * modules/vasnprintf-posix-tests (Files): Likewise.
26093         * modules/vasprintf-posix-tests (Files): Likewise.
26094         * tests/test-ceilf1.c (main): Use it.
26095         * tests/test-ceill.c (main): Likewise.
26096         * tests/test-floorf1.c (main): Likewise.
26097         * tests/test-floorl.c (main): Likewise.
26098         * tests/test-frexp.c (main): Likewise.
26099         * tests/test-frexpl.c (main): Likewise.
26100         * tests/test-isnan.c (main): Likewise.
26101         * tests/test-isnand.h (main): Likewise.
26102         * tests/test-isnanf.h (main): Likewise.
26103         * tests/test-isnanl.h (main): Likewise.
26104         * tests/test-ldexpl.c (main): Likewise.
26105         * tests/test-round.c (main): Likewise.
26106         * tests/test-roundf.c (main): Likewise.
26107         * tests/test-roundl.c (main): Likewise.
26108         * tests/test-signbit.c (test_signbitf, test_signbitd)
26109         (test_signbitl): Likewise.
26110         * tests/test-snprintf-posix.h (test_function): Likewise.
26111         * tests/test-sprintf-posix.h (test_function): Likewise.
26112         * tests/test-strtod.c (main): Likewise.
26113         * tests/test-trunc1.c (main): Likewise.
26114         * tests/test-truncf1.c (main): Likewise.
26115         * tests/test-truncl.c (main): Likewise.
26116
26117         isnanl: work around icc bug
26118         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26119
26120 2010-11-03  Eric Blake  <eblake@redhat.com>
26121
26122         tests: fix compiler warnings
26123         * tests/test-getopt.h (test_getopt): Fix condition.
26124         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26125         * tests/test-pipe2.c (main): Likewise.
26126         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26127
26128         utimens: fix broken m4 test
26129         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26130
26131 2010-10-28  Bruno Haible  <bruno@clisp.org>
26132
26133         posix_spawn*, getdtablesize: Relax license.
26134         * modules/posix_spawn (License): Change to LGPLv2+.
26135         * modules/posix_spawnp (License): Likewise.
26136         * modules/posix_spawn-internal (License): Likewise.
26137         * modules/posix_spawnattr_init (License): Likewise.
26138         * modules/posix_spawnattr_getflags (License): Likewise.
26139         * modules/posix_spawnattr_setflags (License): Likewise.
26140         * modules/posix_spawnattr_getpgroup (License): Likewise.
26141         * modules/posix_spawnattr_setpgroup (License): Likewise.
26142         * modules/posix_spawnattr_getschedparam (License): Likewise.
26143         * modules/posix_spawnattr_setschedparam (License): Likewise.
26144         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26145         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26146         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26147         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26148         * modules/posix_spawnattr_getsigmask (License): Likewise.
26149         * modules/posix_spawnattr_setsigmask (License): Likewise.
26150         * modules/posix_spawnattr_destroy (License): Likewise.
26151         * modules/posix_spawn_file_actions_init (License): Likewise.
26152         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26153         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26154         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26155         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26156         * modules/getdtablesize (License): Likewise.
26157         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26158
26159 2010-10-26  Bruno Haible  <bruno@clisp.org>
26160
26161         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26162         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26163         Cygwin and mingw.
26164         Suggested by Eric Blake.
26165
26166 2010-10-26  Bruno Haible  <bruno@clisp.org>
26167
26168         stdio: Work around compilation error due to renameat() on Solaris 10.
26169         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26170         * lib/renameat.c: Don't include <unistd.h> here.
26171         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26172         Reported by Paul Eggert and Eric Blake.
26173
26174 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26175
26176         renameat: port to Solaris 10, which declares renameat in unistd.h
26177
26178         * lib/renameat.c: Include unistd.h before stdio.h, because
26179         Solaris 10 declares renameat in unistd.h.  Problem encountered
26180         when building GNU tar 1.24 on Solaris 10.
26181
26182 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26183
26184         fdopendir: fix C89 compilation
26185         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26186         compilers.
26187
26188 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26189
26190         inttostr: simplify by removing unnecessary redundancy
26191         * lib/anytostr.c: Don't include verify.h.
26192         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26193         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26194         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26195         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26196         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26197         Likewise.
26198         * modules/inttostr (Depends-on): Remove 'verify'.
26199
26200 2010-10-23  Bruno Haible  <bruno@clisp.org>
26201
26202         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26203         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26204         Reported by Eric Blake.
26205
26206 2010-10-23  Bruno Haible  <bruno@clisp.org>
26207
26208         Tests: Fix LOCALE_JA on MirBSD 10.
26209         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26210         to an UTF-8 locale.
26211         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26212         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26213         Reported by Eric Blake.
26214
26215 2010-10-21  Bruno Haible  <bruno@clisp.org>
26216
26217         nl_langinfo test: Avoid test failure on NetBSD 5.
26218         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26219         Reported by Eric Blake.
26220
26221 2010-10-21  Eric Blake  <eblake@redhat.com>
26222
26223         c-stack: work around libsigsegv 2.8 bug
26224         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26225         overflow on at least PowerPC64.
26226
26227 2010-10-17  Bruno Haible  <bruno@clisp.org>
26228
26229         userspec: Drop redundant file.
26230         * modules/userspec (Files): Remove lib/inttostr.h.
26231
26232 2010-10-17  Bruno Haible  <bruno@clisp.org>
26233
26234         nl_langinfo tests: Silence some warnings.
26235         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26236         Reported by Jim Meyering.
26237
26238 2010-10-17  Bruno Haible  <bruno@clisp.org>
26239
26240         Make use of GCC's attribute __alloc_size__.
26241         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26242         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26243         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26244         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26245         __alloc_size__.
26246         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26247         Suggested by Jim Meyering.
26248
26249 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26250
26251         bootstrap: anchor .gitignore entries.
26252         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26253         with...
26254         (insert_vc_ignore): ... this new function, which prepends `/' to
26255         all .gitignore entries before passing them to
26256         insert_sorted_if_absent.
26257
26258 2010-10-16  Bruno Haible  <bruno@clisp.org>
26259
26260         nextafter: Fix configure check.
26261         * modules/nextafter (configure.ac): Correct expected prototype.
26262
26263 2010-10-16  Bruno Haible  <bruno@clisp.org>
26264
26265         termios: Update documentation.
26266         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26267
26268 2010-10-16  Bruno Haible  <bruno@clisp.org>
26269
26270         tests: Make them compile with TinyCC.
26271         * tests/test-strstr.c (main): Remove parentheses around array
26272         initializer.
26273
26274 2010-10-15  Eric Blake  <eblake@redhat.com>
26275
26276         ignore-value: make header idempotent
26277         * lib/ignore-value.h: Add double-inclusion guards.
26278         Reported by Stefan Berger.
26279
26280 2010-10-15  Jim Meyering  <meyering@redhat.com>
26281
26282         GNUmakefile: handle "stable" target, not "major"
26283         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26284         lists in maint.mk and announce-gen.  Without this, "make stable"
26285         would fail to ensure that $(VERSION) is up to date.
26286
26287 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26288
26289         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26290         & co.
26291
26292 2010-10-14  Bruno Haible  <bruno@clisp.org>
26293
26294         vasnprintf: Don't set errno to 0.
26295         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26296         block that sets it to 0.
26297         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26298
26299 2010-10-14  Bruno Haible  <bruno@clisp.org>
26300
26301         socketlib: Fix.
26302         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26303         gl_PREREQ_SYS_H_WINSOCK2.
26304         Reported by Ian Beckwith <ianb@erislabs.net>.
26305
26306 2010-10-13  Jim Meyering  <meyering@redhat.com>
26307
26308         test-select-stdin.c: avoid warn_unused_result warnings
26309         * tests/test-select-stdin.c: Include "macros.h".
26310         ASSERT that read and fflush succeed.
26311
26312 2010-10-13  Jim Meyering  <meyering@redhat.com>
26313
26314         git-version-gen: do require git-VC'd files in cwd
26315         * build-aux/git-version-gen: Reject a git version string
26316         if there are no commits associated with the current directory.
26317         This avoids an unlikely false-positive (unrelated dir whose parent
26318         repository also contains a tag matching v*), as pointed out
26319         by Giuseppe Scrivano in
26320         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26321
26322 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26323
26324         argv-iter: omit nonconforming declaration
26325         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26326         enum arg_iter_err declaration, which doesn't conform to C99.
26327         Solaris 10 cc warns about this.
26328
26329 2010-10-13  Eric Blake  <eblake@redhat.com>
26330
26331         termios: fix compilation on mingw
26332         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26333         (gl_TERMIOS_H): Adjust it on mingw.
26334         * modules/termios (Makefile.am): Substitute new key.
26335         * lib/termios.in.h (includes): Make include_next conditional.
26336         * doc/posix-headers/termios.texi (termios.h): Update
26337         documentation.
26338         Reported by Daniel P. Berrange.
26339
26340 2010-10-13  Jim Meyering  <meyering@redhat.com>
26341
26342         git-version-gen: don't require that .git/ be in the current dir
26343         * build-aux/git-version-gen: Adjust this script so that it works
26344         when run from any working directory beneath the top-level .git/-
26345         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26346         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26347
26348         test-select: avoid warn_unused_result warnings
26349         * tests/test-select.c: Include "macros.h".
26350         ASSERT that each call to read, write, and pipe succeeds.
26351         While not technically required, also check each "close".
26352         * modules/select-tests (Files): Add tests/macros.h.
26353
26354         test-symlinkat: remove declaration of unused local
26355         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26356
26357         test-inttostr: avoid shadowing warnings
26358         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26359         and use malloc rather than the stack for the same reason as
26360         mentioned in the comment justifying the other allocation.
26361
26362 2010-10-11  Bruno Haible  <bruno@clisp.org>
26363
26364         stdlib: Allow multiple gnulib generated replacements to coexist.
26365         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26366         Reported by Sam Steingold <sds@gnu.org>.
26367
26368 2010-10-11  Jim Meyering  <meyering@redhat.com>
26369
26370         fix a documentation typo
26371         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26372
26373 2010-10-11  Eric Blake  <eblake@redhat.com>
26374
26375         futimens: work around Solaris 11 bug
26376         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26377         * tests/test-futimens.h (test_futimens): Enhance, rather than
26378         weaken test.
26379         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26380
26381 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26382
26383         Indentation.
26384         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26385         higher-level operators more to the left.
26386
26387 2010-10-11  Jim Meyering  <meyering@redhat.com>
26388
26389         test-futimens: avoid unwarranted test failure on Solaris 5.11
26390         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26391         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26392         because it tries to dereference the NULL name argument.
26393
26394 2010-10-11  Bruno Haible  <bruno@clisp.org>
26395
26396         Indentation.
26397         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26398         indentation.
26399
26400 2010-10-11  Jim Meyering  <meyering@redhat.com>
26401
26402         spawn.in.h: make indentation consistent with parentheses
26403         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26404         Make indentation consistent with parentheses.
26405
26406 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26407
26408         Fix mismatched parens in previous commit
26409         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26410         parens.
26411
26412 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26413
26414         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26415
26416         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26417         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26418         * lib/malloca.c: Include "verify.h".
26419         (verify1): Remove, replacing with a verify call.
26420         * lib/relocwrapper.c (verify1): Likewise.
26421         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26422         Likewise.
26423         * modules/malloca (Depends-on): Add 'verify'.
26424         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26425         * modules/vasnprintf (Depends-on): Add 'verify'.
26426         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26427         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26428         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26429         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26430         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26431         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26432         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26433
26434         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26435
26436         Formerly the style was sometimes 2*X - 1, because the C standard
26437         was wrongly thought to disallow ?: in integral constant expressions.
26438         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26439         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26440         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26441         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26442         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26443         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26444         verify that time_t cannot be floating.
26445
26446 2010-10-08  Eric Blake  <eblake@redhat.com>
26447
26448         time: enforce recent POSIX ruling that time_t is integral
26449         * lib/time.in.h (__time_t_must_be_integral): Detect any
26450         problematic systems, allowing the rest of gnulib to assume POSIX.
26451
26452 2010-10-08  Jim Meyering  <meyering@redhat.com>
26453
26454         fdopendir: fix a bug on systems lacking openat and /proc support
26455         OpenBSD 4.7 is one such system.  The most noticeable effect was
26456         failure of any application making nontrivial use of fts: rm, du,
26457         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26458           ./rm: traversal failed: `a': Bad file descriptor
26459         Debugging that, you see that even though FD 6 was closed just
26460         prior to the opendir call in fd_clone_opendir, its resulting
26461         dir->dd_fd was 8, rather than the expected value of 6:
26462
26463         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26464         93                close (fd);
26465         (gdb) n
26466         94                dir = fd_clone_opendir (dupfd);
26467         (gdb) n
26468         95                saved_errno = errno;
26469         (gdb) p dir->dd_fd
26470         $11 = 8
26471
26472         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26473         The problem is that on OpenBSD, fd_clone_opendir has to resort
26474         to using the old-style save/restore CWD mechanism, due to its
26475         lack of openat/proc support, and *that* would steal the FD (6)
26476         that opendir was supposed to use.
26477
26478         The fix is to squirrel away the desired FD so that save_cwd uses a
26479         different one, and then free the dest FD right before calling opendir.
26480         That guarantees opendir will use the required file descriptor.
26481
26482         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26483
26484 2010-10-08  Bruno Haible  <bruno@clisp.org>
26485
26486         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26487         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26488
26489 2010-10-08  Bruno Haible  <bruno@clisp.org>
26490
26491         nanosleep: Make replacement POSIX compliant.
26492         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26493         is out of range.
26494         Reported by Jim Meyering.
26495
26496 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26497
26498         bootstrap: add hook for altering gnulib.mk, for Bison
26499         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26500         the Bison bootstrapping process can rewrite file names and variables
26501         in this file before later parts of 'bootstrap' use the file.
26502         Bison wants to include lib/gnulib.mk from the top-level makefile,
26503         so it needs the file names in this file to be relative to the top
26504         level, not relative to lib; plus it needs variable names to be
26505         rewritten.
26506         (slurp): Use the new function.
26507
26508         bootstrap: reformat for readability
26509         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26510
26511 2010-10-08  Eric Blake  <eblake@redhat.com>
26512
26513         docs: update cygwin progress
26514         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26515         1.7.7.
26516         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26517         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26518         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26519         * doc/posix-functions/carg.texi (carg): Likewise.
26520         * doc/posix-functions/cargf.texi (cargf): Likewise.
26521         * doc/posix-functions/casin.texi (casin): Likewise.
26522         * doc/posix-functions/casinf.texi (casinf): Likewise.
26523         * doc/posix-functions/casinh.texi (casinh): Likewise.
26524         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26525         * doc/posix-functions/catan.texi (catan): Likewise.
26526         * doc/posix-functions/catanf.texi (catanf): Likewise.
26527         * doc/posix-functions/catanh.texi (catanh): Likewise.
26528         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26529         * doc/posix-functions/ccos.texi (ccos): Likewise.
26530         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26531         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26532         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26533         * doc/posix-functions/cexp.texi (cexp): Likewise.
26534         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26535         * doc/posix-functions/cimag.texi (cimag): Likewise.
26536         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26537         * doc/posix-functions/clog.texi (clog): Likewise.
26538         * doc/posix-functions/clogf.texi (clogf): Likewise.
26539         * doc/posix-functions/conj.texi (conj): Likewise.
26540         * doc/posix-functions/conjf.texi (conjf): Likewise.
26541         * doc/posix-functions/cpow.texi (cpow): Likewise.
26542         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26543         * doc/posix-functions/cproj.texi (cproj): Likewise.
26544         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26545         * doc/posix-functions/creal.texi (creal): Likewise.
26546         * doc/posix-functions/crealf.texi (crealf): Likewise.
26547         * doc/posix-functions/csin.texi (csin): Likewise.
26548         * doc/posix-functions/csinf.texi (csinf): Likewise.
26549         * doc/posix-functions/csinh.texi (csinh): Likewise.
26550         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26551         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26552         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26553         * doc/posix-functions/ctan.texi (ctan): Likewise.
26554         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26555         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26556         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26557         * doc/posix-headers/complex.texi (complex.h): Likewise.
26558
26559 2010-10-07  Jim Meyering  <meyering@redhat.com>
26560
26561         parse-datetime: avoid compilation failure on OpenBSD 4.7
26562         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26563         This works around a compilation failure on OpenBSD 4.7:
26564         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26565
26566 2010-10-07  Eric Blake  <eblake@redhat.com>
26567
26568         docs: update cygwin progress
26569         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26570         1.7.6.
26571         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26572         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26573         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26574         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26575         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26576         Likewise.
26577         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26578         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26579         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26580         Likewise.
26581         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26582         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26583         Likewise.
26584         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26585         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26586         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26587         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26588         Likewise.
26589         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26590         Likewise.
26591         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26592
26593         docs: update parse-datetime history
26594         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26595         documentation of this function's history and alternatives.
26596
26597         cygwin: use more robust version check
26598         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26599         exclude an eventual cygwin 1.9.1.
26600         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26601         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26602         (gl_FUNC_STRCASESTR): Likewise.
26603         Reported by Bruno Haible.
26604
26605 2010-10-06  Bruno Haible  <bruno@clisp.org>
26606
26607         string, sys_select: Avoid #including large headers unless necessary.
26608         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26609         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26610         OSF/1, BeOS, Haiku.
26611         Reported by Jim Meyering.
26612
26613 2010-10-05  Eric Blake  <eblake@redhat.com>
26614
26615         memmem, strstr, strcasestr: fix bug with long periodic needle
26616         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26617         periodic needle having false positive.
26618         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26619         and cygwin 1.7.7.
26620         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26622         (gl_FUNC_STRCASESTR): Likewise.
26623         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26624         * tests/test-memmem.c (main): Expose the bug.
26625         * tests/test-strcasestr.c (main): Likewise.
26626         * tests/test-strstr.c (main): Likewise.
26627         * tests/test-c-strcasestr.c (main): Likewise.
26628         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26629         * doc/posix-functions/strstr.texi (strstr): Likewise.
26630         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26631         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26632
26633 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26634
26635         parse-datetime: do some more renaming
26636         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26637         parse_datetime, not get_date.  Mention the renaming.
26638         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26639         in comments.
26640         * m4/bison.m4: Likewise.
26641
26642 2010-10-05  Eric Blake  <eblake@redhat.com>
26643
26644         parse-datetime: better name than get_date
26645         * NEWS: Reword the deprecation notice.
26646         * modules/get_date: Rename to modules/parse-datetime.
26647         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26648         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26649         * lib/get_date.y: Rename to lib/parse-datetime.y.
26650         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26651         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26652         * doc/getdate.texi: Provide fallback wrapper.
26653         * lib/getdate.h: Move guts, and wrap...
26654         * lib/parse-datetime.h: ...new file.
26655         * lib/parse-datetime.y (get_date): Rename...
26656         (parse_datetime): ...to this.
26657         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26658         (gl_PARSE_DATETIME): ...to this.
26659         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26660         documentation.
26661         * modules/getdate (Files): Provide fallback docs and header.
26662         (Notice, Depends-on): Update references.
26663         * tests/test-parse-datetime.c: Likewise.
26664         * DEPENDENCIES: Likewise.
26665         * MODULES.html.sh (Date and time <time.h>): Likewise.
26666         * doc/parse-datetime.texi (Date input formats)
26667         (Authors of parse_datetime): Likewise.
26668         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26669         (Include): Likewise.
26670         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26671         * gnulib-tool: Likewise.
26672         * m4/bison.m4 (gl_BISON): Likewise.
26673         Suggested by Bruno Haible.
26674
26675 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26676
26677         more ports to Solaris tr, which needs [] around ranges
26678         * gnulib-tool: Solaris tr needs [] around ranges.
26679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26680         * tests/test-pipe-filter-gi1.c (main): Likewise.
26681         * tests/test-pipe-filter-ii1.c (main): Likewise.
26682
26683 2010-10-05  Eric Blake  <eblake@redhat.com>
26684
26685         bootstrap: fix Solaris regression
26686         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26687         around ranges.
26688         Reported by Pádraig Brady.
26689
26690         bootstrap: work with pkg-config
26691         * build-aux/bootstrap (check_versions): Also transliterate - in
26692         prerequisite name.
26693         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26694         prerequisites that were already found, to avoid confusion.
26695         Reported by Justin Clift.
26696
26697         faccessat: remove unused wrappers
26698         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26699         presence of these wrappers dragged in -lgen on Solaris.
26700         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26701
26702 2010-10-05  Jim Meyering  <meyering@redhat.com>
26703
26704         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26705         * Makefile (sc_pragma_columns): New syntax-check rule.
26706
26707 2010-10-04  Bruno Haible  <bruno@clisp.org>
26708
26709         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26710         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26711         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26712         Reported by Bruce Korb and Eric Blake.
26713
26714 2010-10-04  Bruno Haible  <bruno@clisp.org>
26715
26716         threadlib: Make option --with-libpth-prefix work.
26717         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26718         use $LIBPTH, not just -lpth.
26719
26720 2010-10-04  Bruno Haible  <bruno@clisp.org>
26721
26722         Avoid line length limitation from HP NonStop system header files.
26723         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26724         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26725         * lib/ctype.in.h: Likewise.
26726         * lib/dirent.in.h: Likewise.
26727         * lib/errno.in.h: Likewise.
26728         * lib/fcntl.in.h: Likewise.
26729         * lib/float.in.h: Likewise.
26730         * lib/getopt.in.h: Likewise.
26731         * lib/iconv.in.h: Likewise.
26732         * lib/inttypes.in.h: Likewise.
26733         * lib/langinfo.in.h: Likewise.
26734         * lib/locale.in.h: Likewise.
26735         * lib/math.in.h: Likewise.
26736         * lib/netdb.in.h: Likewise.
26737         * lib/netinet_in.in.h: Likewise.
26738         * lib/poll.in.h: Likewise.
26739         * lib/pthread.in.h: Likewise.
26740         * lib/pty.in.h: Likewise.
26741         * lib/sched.in.h: Likewise.
26742         * lib/se-selinux.in.h: Likewise.
26743         * lib/search.in.h: Likewise.
26744         * lib/signal.in.h: Likewise.
26745         * lib/spawn.in.h: Likewise.
26746         * lib/stdarg.in.h: Likewise.
26747         * lib/stddef.in.h: Likewise.
26748         * lib/stdint.in.h: Likewise.
26749         * lib/stdio.in.h: Likewise.
26750         * lib/stdlib.in.h: Likewise.
26751         * lib/string.in.h: Likewise.
26752         * lib/strings.in.h: Likewise.
26753         * lib/sys_file.in.h: Likewise.
26754         * lib/sys_ioctl.in.h: Likewise.
26755         * lib/sys_select.in.h: Likewise.
26756         * lib/sys_socket.in.h: Likewise.
26757         * lib/sys_stat.in.h: Likewise.
26758         * lib/sys_time.in.h: Likewise.
26759         * lib/sys_times.in.h: Likewise.
26760         * lib/sys_utsname.in.h: Likewise.
26761         * lib/sys_wait.in.h: Likewise.
26762         * lib/sysexits.in.h: Likewise.
26763         * lib/termios.in.h: Likewise.
26764         * lib/time.in.h: Likewise.
26765         * lib/unistd.in.h: Likewise.
26766         * lib/wchar.in.h: Likewise.
26767         * lib/wctype.in.h: Likewise.
26768         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26769         * modules/ctype (Makefile.am): Likewise.
26770         * modules/dirent (Makefile.am): Likewise.
26771         * modules/errno (Makefile.am): Likewise.
26772         * modules/fcntl-h (Makefile.am): Likewise.
26773         * modules/float (Makefile.am): Likewise.
26774         * modules/getopt-posix (Makefile.am): Likewise.
26775         * modules/iconv-h (Makefile.am): Likewise.
26776         * modules/inttypes (Makefile.am): Likewise.
26777         * modules/langinfo (Makefile.am): Likewise.
26778         * modules/locale (Makefile.am): Likewise.
26779         * modules/math (Makefile.am): Likewise.
26780         * modules/netdb (Makefile.am): Likewise.
26781         * modules/netinet_in (Makefile.am): Likewise.
26782         * modules/poll-h (Makefile.am): Likewise.
26783         * modules/pthread (Makefile.am): Likewise.
26784         * modules/pty (Makefile.am): Likewise.
26785         * modules/sched (Makefile.am): Likewise.
26786         * modules/search (Makefile.am): Likewise.
26787         * modules/selinux-h (Makefile.am): Likewise.
26788         * modules/signal (Makefile.am): Likewise.
26789         * modules/spawn (Makefile.am): Likewise.
26790         * modules/stdarg (Makefile.am): Likewise.
26791         * modules/stddef (Makefile.am): Likewise.
26792         * modules/stdint (Makefile.am): Likewise.
26793         * modules/stdio (Makefile.am): Likewise.
26794         * modules/stdlib (Makefile.am): Likewise.
26795         * modules/string (Makefile.am): Likewise.
26796         * modules/strings (Makefile.am): Likewise.
26797         * modules/sys_file (Makefile.am): Likewise.
26798         * modules/sys_ioctl (Makefile.am): Likewise.
26799         * modules/sys_select (Makefile.am): Likewise.
26800         * modules/sys_socket (Makefile.am): Likewise.
26801         * modules/sys_stat (Makefile.am): Likewise.
26802         * modules/sys_time (Makefile.am): Likewise.
26803         * modules/sys_times (Makefile.am): Likewise.
26804         * modules/sys_utsname (Makefile.am): Likewise.
26805         * modules/sys_wait (Makefile.am): Likewise.
26806         * modules/sysexits (Makefile.am): Likewise.
26807         * modules/termios (Makefile.am): Likewise.
26808         * modules/time (Makefile.am): Likewise.
26809         * modules/unistd (Makefile.am): Likewise.
26810         * modules/wchar (Makefile.am): Likewise.
26811         * modules/wctype (Makefile.am): Likewise.
26812
26813 2010-10-04  Bruno Haible  <bruno@clisp.org>
26814
26815         read-file tests: Avoid a test failure on NonStop Kernel.
26816         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26817         a regular file.
26818         Reported by Joachim Schmitz <schmitz@hp.com>.
26819
26820 2010-10-03  Bruno Haible  <bruno@clisp.org>
26821
26822         gnulib-tool: Fixes for --create-testdir with --libtool.
26823         * gnulib-tool (func_get_automake_snippet): Don't augment
26824         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26825         an executable.
26826         (func_create_testdir): Handle module 'alloca' like func_import.
26827         Reported by Bruce Korb <bruce.korb@gmail.com>.
26828
26829 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26830
26831         Avoid some lines longer than 80 characters.
26832         * lib/stdint.in.h: Break long comment lines.
26833         * lib/math.in.h: Likewise.
26834         (_GL_NUM_UINT_WORDS): New macro, for readability.
26835         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26836         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26837         * lib/stdlib.in.h: Likewise.
26838         * lib/spawn.in.h: Likewise.
26839         * lib/sys_socket.in.h: Update an URL.
26840         * lib/sys_stat.in.h: Break long line.
26841
26842 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26843
26844         Improve pmccabe2html.
26845         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26846         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26847         when the sources change. Remove the line in the HTML about "Used
26848         ranges" (which implied that there might be other unused ranges),
26849         rename "Resume" to "Summary" (easier to understand for more users).
26850         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26851         styles, and some unnecessary blank lines.
26852
26853 2010-10-03  Bruno Haible  <bruno@clisp.org>
26854             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26855
26856         acl: Add support for ACLs on NonStop Kernel.
26857         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26858         Check whether the function aclsort() exists.
26859         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26860         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26861         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26862         (acl_nontrivial [HAVE_ACLSORT]: New function.
26863         (file_has_acl): Implement for NonStop Kernel.
26864         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26865         (qset_acl): Implement for NonStop Kernel.
26866         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26867         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26868         (main): Implement for NonStop Kernel.
26869         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26870         Kernel. Handle this flavor.
26871         * tests/test-set-mode-acl.sh: Likewise.
26872         * tests/test-copy-acl.sh: Likewise.
26873         * tests/test-copy-file.sh: Likewise.
26874
26875 2010-10-03  Bruno Haible  <bruno@clisp.org>
26876
26877         Info about ACLs on NonStop Kernel.
26878         * doc/acl-resources.txt: Add info about NonStop Kernel.
26879         References by Joachim Schmitz <schmitz@hp.com>.
26880
26881 2010-10-02  Bruno Haible  <bruno@clisp.org>
26882
26883         Define missing EDQUOT on NonStop Kernel.
26884         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26885         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26886         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26887         missing.
26888         * doc/posix-headers/errno.texi: Mention the NSK bug.
26889         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26890         Reported by Joachim Schmitz <schmitz@hp.com>.
26891
26892 2010-10-02  Bruno Haible  <bruno@clisp.org>
26893
26894         Update doc for POSIX:2008.
26895         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26896         Update URL of POSIX specification.
26897
26898 2010-10-02  Bruno Haible  <bruno@clisp.org>
26899
26900         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26901         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26902         from gnulib, not from Automake.
26903
26904 2010-10-02  Bruno Haible  <bruno@clisp.org>
26905
26906         New module 'system-posix'.
26907         * modules/system-posix: New file.
26908         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26909         module is present.
26910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26911         GNULIB_SYSTEM_POSIX.
26912         * modules/stdlib (Depends-on): Remove sys_wait.
26913         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26914         * doc/posix-functions/system.texi: Mention the new module.
26915         * doc/posix-headers/stdlib.texi: Likewise.
26916         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26917         define test_sys_wait_macros to a no-op.
26918         Reported by Sam Steingold <sds@gnu.org>.
26919
26920 2010-09-30  Bruno Haible  <bruno@clisp.org>
26921
26922         More renaming from 'getdate' to 'get_date'.
26923         * doc/get_date.texi: Renamed from doc/getdate.texi.
26924         * modules/get_date (Files): Update.
26925         * MODULES.html.sh (Date and time <time.h>): Update.
26926         * DEPENDENCIES: Update.
26927         * gnulib-tool: Update comment.
26928         * m4/bison.m4 (gl_BISON): Likewise.
26929         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26930
26931 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26932
26933         bootstrap: support ACLOCAL_FLAGS during aclocal
26934         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26935         can add additional -I dir for third-party .m4 files.
26936
26937 2010-09-30  Eric Blake  <eblake@redhat.com>
26938
26939         bootstrap: use glibtoolize on MacOS
26940         * build-aux/bootstrap (check_versions): Convert libtool into
26941         libtoolize.
26942         (tool search): Move libtool check earlier, and look for
26943         glibtoolize for MacOS.
26944         (gnulib_tool_options): Auto-add --libtool when appropriate.
26945         Reported by Justin Clift.
26946
26947         poll: fix typo that broke test on MacOS
26948         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26949         Reported by Justin Clift.
26950
26951         getdate: rename to get_date
26952         Note: getdate.h is not renamed, to minimize client impact.
26953         * modules/getdate: Mark obsolete.  Move old contents...
26954         * modules/get_date: ...to new module name.
26955         * modules/getdate-tests: Move...
26956         * modules/get_date-tests: ...here.
26957         * m4/getdate.m4: Move...
26958         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26959         * lib/getdate.y: Move...
26960         * lib/get_date.y: ...here.
26961         * tests/test-getdate.c: Move...
26962         * tests/test-get_date.c: ...here.
26963         * doc/posix-functions/getdate.texi (getdate): Update name.
26964         * NEWS: Mention the change.
26965
26966 2010-09-29  Bruno Haible  <bruno@clisp.org>
26967
26968         Separate the module 'waitpid' from the module 'sys_wait'.
26969         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26970         present.
26971         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26972         gl_MODULE_INDICATOR_FOR_TESTS.
26973         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26974         * modules/sys_wait (Depends-on): Remove waitpid.
26975         (Makefile.am): Substitute GNULIB_WAITPID.
26976         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26977         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26978         signature only if the 'waitpid' module is present.
26979         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26980         * NEWS: Mention the change.
26981         * modules/grantpt (Depends-on): Add waitpid.
26982         * modules/wait-process (Depends-on): Likewise.
26983
26984 2010-09-29  Bruno Haible  <bruno@clisp.org>
26985
26986         More tests for module 'sys_wait'.
26987         * modules/sys_wait-c++-tests: New file.
26988         * tests/test-sys_wait-c++.cc: New file.
26989         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26990         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26991
26992 2010-09-29  Bruno Haible  <bruno@clisp.org>
26993
26994         New module 'waitpid'.
26995         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26996         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26997         Don't include <process.h>.
26998         (waitpid): Declare only, using modern idiom.
26999         * m4/waitpid.m4: New file.
27000         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27001         * modules/waitpid: New file.
27002         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27003         (Makefile.am): Update.
27004         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27005
27006 2010-09-28  Bruno Haible  <bruno@clisp.org>
27007
27008         poll: Assume ANSI C.
27009         * lib/poll.c (poll): Use an ANSI C declaration.
27010
27011 2010-09-28  Bruno Haible  <bruno@clisp.org>
27012
27013         poll-h: Create poll.h on all platforms.
27014         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27015         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27016         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27017         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27018         (gl_REPLACE_POLL_H): Don't set POLL_H.
27019         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27020         * modules/poll-h (Depends-on): Add include_next.
27021         (Makefile.am): Create poll.h unconditionally. Substitute also
27022         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27023
27024 2010-09-28  Bruno Haible  <bruno@clisp.org>
27025
27026         Tests for module 'poll-h'.
27027         * modules/poll-h-c++-tests: New file.
27028         * tests/test-poll-h-c++.cc: New file.
27029
27030         Tests for module 'poll-h'.
27031         * modules/poll-h-tests: New file.
27032         * tests/test-poll-h.c: New file.
27033
27034 2010-09-28  Bruno Haible  <bruno@clisp.org>
27035
27036         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27037         * modules/poll-h (Depends-on): Add 'extensions'.
27038
27039 2010-09-28  Bruno Haible  <bruno@clisp.org>
27040
27041         New module 'poll-h'.
27042         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27043         (poll): Use modern idiom.
27044         * modules/poll-h: New file.
27045         * modules/poll (Files): Remove lib/poll.in.h.
27046         (Depends-on): Add poll-h.
27047         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27048         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27049         * m4/poll_h.m4: New file.
27050         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27051         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27052         and invoke gl_REPLACE_POLL_H.
27053         * lib/poll.c: Use common idiom.
27054         * tests/test-poll.c: Likewise.
27055         * doc/posix-headers/poll.texi: Mention the poll-h module.
27056         Suggested by Eric Blake.
27057
27058 2010-09-26  Bruno Haible  <bruno@clisp.org>
27059
27060         sys_wait: Implement WSTOPSIG.
27061         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27062         Reported by Simon Josefsson.
27063
27064 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27065
27066         stdlib, sys_wait: Avoid compilation error on mingw.
27067         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27068
27069 2010-09-26  Bruno Haible  <bruno@clisp.org>
27070
27071         stdlib tests: Avoid code duplication.
27072         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27073         * modules/sys_wait-tests (Files): Likewise.
27074         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27075         * tests/test-stdlib.c: Include test-sys_wait.h.
27076         (main): Invoke test_sys_wait_macros.
27077         * tests/test-sys_wait.c: Include test-sys_wait.h.
27078         (main): Invoke test_sys_wait_macros.
27079
27080 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27081
27082         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27083         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27084         sure Windows sockets are working before calling getaddrinfo.
27085         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27086         * doc/gnulib.texi (Windows sockets): Fix typo.
27087
27088 2010-09-25  Bruno Haible  <bruno@clisp.org>
27089
27090         Tests for module 'regex-quote'.
27091         * modules/regex-quote-tests: New file.
27092         * tests/test-regex-quote.c: New file.
27093
27094         New module 'regex-quote'.
27095         * lib/regex-quote.h: New file.
27096         * lib/regex-quote.c: New file.
27097         * modules/regex-quote: New file.
27098         Suggested by Reuben Thomas <rrt@sc3d.org>.
27099
27100 2010-09-24  Bruno Haible  <bruno@clisp.org>
27101
27102         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27103         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27104
27105 2010-09-23  Bruno Haible  <bruno@clisp.org>
27106
27107         setenv: Relax license.
27108         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27109         Blake.
27110         Requested by Eric Blake.
27111
27112 2010-09-22  Bruno Haible  <bruno@clisp.org>
27113
27114         termios: Relax license.
27115         * modules/termios (License): Change to LGPLv2+.
27116         Requested by Eric Blake.
27117
27118 2010-09-22  Bruno Haible  <bruno@clisp.org>
27119
27120         threadlib: Allow the package to change the default to 'no'.
27121         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27122         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27123         Reported by Paul Eggert.
27124
27125 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27126             Bruno Haible  <bruno@clisp.org>
27127
27128         Fix endless loop in mbmemcasecoll.
27129         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27130         byte.
27131         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27132
27133 2010-09-22  Bruno Haible  <bruno@clisp.org>
27134
27135         Tests for module 'memcoll'.
27136         * modules/memcoll-tests: New file.
27137         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27138
27139         memcoll, xmemcoll: Clarify size vs. length.
27140         * modules/memcoll.c (memcoll0): Clarify specification.
27141         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27142         passed to collate_error.
27143
27144 2010-09-22  Bruno Haible  <bruno@clisp.org>
27145
27146         Tests for module 'memcasecmp'.
27147         * modules/memcasecmp-tests: New file.
27148         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27149
27150 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27151
27152         * lib/pthread.in.h: Add split double-inclusion guard, and include
27153         system <pthread.h> if there is one.  Use @@-style as in other
27154         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27155         pthread.h doesn't.
27156         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27157         (pthread_mutexattr_settype, pthread_mutex_trylock):
27158         New static inline functions, if there's no system <pthread.h>.
27159         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27160         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27161         Approximate with mutexes if the system lacks spinlocks, as in
27162         MacOS.
27163         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27164         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27165         @@-style.  Check for spinlocks separately.
27166         (gl_PTHREAD_DEFAULTS): New macro.
27167         * modules/pthread: Redo to use a more typical style for in.h files.
27168
27169 2010-09-21  Eric Blake  <eblake@redhat.com>
27170
27171         net_if: enhance tests
27172         * tests/test-net_if.c (main): Move signature checks earlier.
27173         Print failures to stderr.
27174         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27175         Document the bug that we do not yet fix.
27176
27177 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27178
27179         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27180         about gnulib, not GSS.
27181
27182 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27183
27184         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27185         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27186         for Emacs.
27187         * build-aux/pmccabe2html: Make Makefile.am example code more
27188         cut-and-paste friendly.
27189
27190 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27191
27192         * tests/test-net_if.c: New file.
27193         * modules/net_if-tests: New file.
27194
27195 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27196
27197         pthread: add pthread_spin_destroy
27198         * lib/pthread.in.h (pthread_spin_destroy): New function.
27199
27200 2010-09-19  Bruno Haible  <bruno@clisp.org>
27201
27202         gnulib-tool: Fix --help output.
27203         * gnulib-tool (func_usage): Fix help message.
27204         Reported by Reuben Thomas <rrt@sc3d.org>.
27205
27206 2010-09-18  Jim Meyering  <meyering@redhat.com>
27207
27208         maint.mk: avoid unexpanded \n in two diagnostics
27209         * top/maint.mk (sc_prohibit_always_true_header_tests):
27210         Don't use a literal \n in a halt=... assignment.  It would not be
27211         expanded, and the two \n bytes would appear in the diagnostic output
27212         rather than the desired newline.  Use halt=$$(printf ... instead.
27213         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27214
27215 2010-09-18  Bruno Haible  <bruno@clisp.org>
27216
27217         netinet_in: Doc tweak.
27218         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27219         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27220
27221 2010-09-18  Jim Meyering  <meyering@redhat.com>
27222
27223         init.sh: correct an outdated comment
27224         * tests/init.sh (create_exe_shims_):  s/function/alias/
27225
27226         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27227         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27228         a file named "*.exe" is removed between the glob expansion and the
27229         processing of that oddly named file.
27230
27231 2010-09-17  Eric Blake  <eblake@redhat.com>
27232
27233         mirbsd: add some more support
27234         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27235         in BSD family.
27236         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27237         devices as OpenBSD.
27238         * m4/host-os.m4 (mirbsd): Add MirBSD.
27239
27240         tests: fix unportable assumption on sys/wait.h
27241         * tests/test-sys_wait.c (main): Relax test.
27242         * tests/test-stdlib.c (main): Likewise.
27243
27244         init.sh: accommodate directory with no .exes
27245         * tests/init.sh: Accomodate directory containing only scripts.
27246
27247         tests: avoid compiler warning
27248         * tests/test-stdlib.c (main): Use the variable.
27249
27250         fdutimens, fdutimensat: update signature, again
27251         * lib/utimens.h (gl_futimens): Delete, and move signature...
27252         (fdutimens): ...here.
27253         (fdutimensat): Rearrange signature.
27254         (lutimensat): Rename variable for clarity.
27255         * lib/fdutimensat.c (fdutimensat): Update signature.
27256         * lib/utimens.c (fdutimens): Likewise.
27257         (gl_futimens): Delete.
27258         (utimens, lutimens): Update callers.
27259         * lib/futimens.c (futimens): Likewise.
27260         * tests/test-fdutimensat.c: Likewise.
27261         * tests/test-utimens.c: Likewise.
27262         * tests/test-futimens.h: Update comment.
27263         * NEWS: Mention this.
27264         Suggested by Paul Eggert.
27265
27266 2010-09-17  Bruno Haible  <bruno@clisp.org>
27267
27268         Take over the maintenance of some older macros from Autoconf.
27269         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27270         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27271         GNU Autoconf.
27272         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27273         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27274
27275 2010-09-17  Eric Blake  <eblake@redhat.com>
27276
27277         fdutimensat: drop atflag validation
27278         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27279         with valid fd, to close a race scenario where futimens is
27280         unsupported and FILE was replaced by a symlink.
27281         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27282         accordingly.
27283         Suggested by Paul Eggert.
27284
27285 2010-09-16  Bruno Haible  <bruno@clisp.org>
27286
27287         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27288         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27289
27290 2010-09-16  Bruno Haible  <bruno@clisp.org>
27291
27292         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27293         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27294         login_tty exists.
27295         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27296
27297 2010-09-16  Bruno Haible  <bruno@clisp.org>
27298
27299         login_tty: Make the replacement code work on BSD systems.
27300         * lib/login_tty.c: Include <sys/ioctl.h>.
27301         (login_tty): Use ioctl TIOCSCTTY when available.
27302         * modules/login_tty (Depends-on): Add sys_ioctl.
27303         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27304
27305 2010-09-16  Bruno Haible  <bruno@clisp.org>
27306
27307         login_tty: Stricter unit test.
27308         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27309         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27310         and tcgetsid() after login_tty.
27311         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27312
27313 2010-09-16  Bruno Haible  <bruno@clisp.org>
27314
27315         New module 'tcgetsid'.
27316         * lib/tcgetsid.c: New file.
27317         * m4/tcgetsid.m4: New file.
27318         * modules/tcgetsid: New file.
27319         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27320         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27321         GNULIB_TCGETSID, HAVE_TCGETSID.
27322         * lib/termios.in.h: Include <sys/types.h>.
27323         (tcgetsid): New declaration.
27324         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27325         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27326         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27327         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27328
27329 2010-09-16  Bruno Haible  <bruno@clisp.org>
27330
27331         Tests for module 'termios'.
27332         * modules/termios-c++-tests: New file.
27333         * modules/termios-tests: New file.
27334         * tests/test-termios-c++.cc: New file.
27335         * tests/test-termios.c: New file.
27336
27337         New module 'termios'.
27338         * modules/termios: New file.
27339         * lib/termios.in.h: New file.
27340         * m4/termios_h.m4: New file.
27341         * doc/posix-headers/termios.texi: Mention the new module.
27342
27343 2010-09-16  Eric Blake  <eblake@redhat.com>
27344
27345         fdutimensat: add an atflag parameter
27346         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27347         * lib/utimens.h (fdutimensat): Update prototype.
27348         * tests/test-fdutimensat.c: Adjust test to match.
27349         * NEWS: Document the change.
27350         Suggested by Paul Eggert.
27351
27352 2010-09-16  Bruno Haible  <bruno@clisp.org>
27353
27354         Fix typos in comments.
27355         * lib/striconveh.h: Fix typo in comment.
27356         * lib/login_tty.c (login_tty): Likewise.
27357
27358 2010-09-15  Bruno Haible  <bruno@clisp.org>
27359
27360         stdlib: clarify MirBSD WEXITSTATUS bug
27361         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27362         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27363
27364 2010-09-15  Eric Blake  <eblake@redhat.com>
27365
27366         stdlib: work around MirBSD WEXITSTATUS bug
27367         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27368         * modules/stdlib (Depends-on): Add sys_wait.
27369         * tests/test-sys_wait.c (main): Enhance test.
27370         * tests/test-stdlib.c (main): Likewise.
27371         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27372
27373         docs: mention MacOS issue with WEXITSTATUS(constant)
27374         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27375         issue.
27376         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27377
27378         strnlen: add tests
27379         * modules/strnlen-tests: New file.
27380         * tests/test-strnlen.c: Likewise.
27381
27382 2010-09-14  Bruno Haible  <bruno@clisp.org>
27383
27384         unistr/base: Avoid link errors when module 'libunistring' is also used.
27385         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27386         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27387         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27388         Declare also when HAVE_LIBUNISTRING is set.
27389         Reported by Pádraig Brady <P@draigbrady.com>.
27390
27391 2010-09-14  Eric Blake  <eblake@redhat.com>
27392
27393         test-rawmemchr: make more robust
27394         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27395         (Depends-on, configure.ac): Add needed prerequisites to use it.
27396         * modules/memchr-tests (Files, Depends-on, configure.ac):
27397         Likewise, to avoid implicit reliance on memchr module prereqs.
27398         * tests/test-memchr.c (main): Ensure proper masking.
27399         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27400         reads.
27401
27402         memchr: detect glibc Alpha bug
27403         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27404         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27405         Alpha.
27406         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27407         * tests/test-memchr.c (main): Enhance test.
27408         Reported by Nelson H. F. Beebe.
27409
27410 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27411
27412         fts, getcwd, glob: audit for dirfd returning -1
27413         * lib/fts.c (opendir): Remove #define; no longer used.
27414         (opendirat): New arg PDIR_FD.  All callers changed.
27415         (fts_build, _opendir2): Use new opendirat to avoid the need for
27416         dirfd, or for checking whether dirfd returns a negative value.
27417         Don't use opendir; always use openat followed by fdopendir.
27418         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27419         it.
27420         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27421         returns -1 here.
27422         * modules/fts (Depends-on): Remove dirfd.
27423         * modules/getcwd (Depends-on): Likewise.
27424
27425 2010-09-13  Eric Blake  <eblake@redhat.com>
27426
27427         float: fix broken MirBSD header
27428         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27429         * doc/posix-headers/float.texi (float.h): Document it.
27430
27431 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27432
27433         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27434         * lib/fts.c (opendirat): New arg extra_flags.
27435         (__opendir2): Use it to avoid following symlinks when opening
27436         a directory, if symlinks are not supposed to be followed.  See
27437         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27438
27439         fdopendir: preserve argument fd before returning
27440         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27441         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27442         (fdopendir): Use them, arranging for FD to be open to the same
27443         directory that it was when it started.  (It might be temporarily
27444         closed while fdopendir is running, so this not thread- or
27445         signal-safe.)  Be careful to do the right thing even when file
27446         descriptors are scarce and dup fails with errno == EMFILE.  See
27447         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27448
27449 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27450
27451         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27452         * NEWS: Document change.
27453         * m4/regex.m4: Disable test for regoff_t size.
27454
27455 2010-09-13  Jim Meyering  <meyering@redhat.com>
27456
27457         fts: don't operate on an invalid file descriptor after failed dup
27458         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27459         negative file descriptor.
27460
27461 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27462
27463         savedir: add streamsavedir, deprecate fdsavedir
27464         * NEWS: Mention deprecation of fdsavedir.
27465         * lib/savedir.c (streamsavedir): New extern function, whose name
27466         ends in "savedir" to be consistent with the others.  This differs
27467         from savedirstream in that it doesn't close its argument.  The
27468         next version of GNU tar will use this instead of fdsavedir, to
27469         avoid some race conditions and conserve file descriptors.
27470         (savedirstream): Reimplement as a wrapper around streamsavedir.
27471         (fdsavedir): Add a comment deprecating this function.  As far as
27472         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27473         * lib/savedir.h (streamsavedir): New decl.
27474         (fdsavedir): Add a comment deprecating this.
27475
27476 2010-09-10  Bruno Haible  <bruno@clisp.org>
27477
27478         langinfo: Fix last commit.
27479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27480         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27482
27483 2010-09-10  Bruno Haible  <bruno@clisp.org>
27484
27485         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27486         * lib/progreloc.c (O_EXEC): Define fallback.
27487
27488 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27489
27490         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27491         * NEWS: Document recent changes to fcntl-h.
27492         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27493         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27494         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27495         Similarly for O_SEARCH; this last was already true, but not documented.
27496         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27497         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27498         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27499         Likewise.
27500         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27501         is zero, not whether it is defined.
27502         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27503         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27504         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27505
27506 2010-09-10  Bruno Haible  <bruno@clisp.org>
27507
27508         langinfo, nl_langinfo: Fix for IRIX 5.3.
27509         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27510         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27511         HAVE_LANGINFO_YESEXPR.
27512         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27513         HAVE_LANGINFO_YESEXPR.
27514         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27515         HAVE_LANGINFO_T_FMT_AMPM is 0.
27516         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27517         HAVE_LANGINFO_YESEXPR is 0.
27518         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27519         NOEXPR.
27520         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27521         * doc/posix-functions/nl_langinfo.texi: Likewise.
27522         Reported by Eric Blake.
27523
27524 2010-09-10  Bruno Haible  <bruno@clisp.org>
27525
27526         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27527         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27528         on FreeBSD 8.0 and OpenBSD 4.6.
27529         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27530         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27531         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27532         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27533         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27534         ac_includes_default.
27535         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27536
27537 2010-09-09  Eric Blake  <eblake@redhat.com>
27538
27539         strsignal: work around NetBSD bug
27540         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27541         * lib/string.in.h (includes): Likewise.
27542         * doc/posix-functions/strsignal.texi (strsignal): Document the
27543         bug.
27544         Reported by Nelson H. F. Beebe.
27545
27546         gnulib-tool: work with NetBSD /bin/sh
27547         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27548         (func_get_description, func_get_comment, func_get_status)
27549         (func_get_notice, func_get_applicability, func_get_filelist)
27550         (func_get_dependencies, func_get_autoconf_early_snippet)
27551         (func_get_autoconf_snippet, func_get_automake_snippet)
27552         (func_get_include_directive, func_get_link_directive)
27553         (func_get_license, func_get_maintainer, func_import): Avoid
27554         shell syntax errors from parsing syntax extensions.
27555
27556 2010-09-09  Bruno Haible  <bruno@clisp.org>
27557
27558         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27559         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27560         a reliable way to determine whether the 'alias' command works.
27561
27562 2010-09-08  Jim Meyering  <meyering@redhat.com>
27563
27564         init.sh: penalize a set-x-impaired shell; don't disqualify it
27565         * tests/init.sh: Too many shells corrupt application stderr when
27566         you set -x, so we can't afford to disqualify them, since at least
27567         on Irix-6.5, that would disqualify all bourne shells.
27568         Instead, use a two-pass approach.
27569         On the first pass, try to find a shell that meets the stricter
27570         condition that set -x does not corrupt stderr.
27571         If no shell meets the stricter condition, retest each candidate
27572         shell, but without that extra condition.  Finally, when
27573         VERBOSE=yes is requested and set -x might cause trouble, simply
27574         issue a warning and refrain from enabling debug output.
27575
27576 2010-09-08  Eric Blake  <eblake@redhat.com>
27577
27578         unsetenv: fix OpenBSD bug
27579         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27580         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27581         documentation.
27582         Reported by Jim Meyering.
27583
27584         strtod: work around IRIX 6.5 bug
27585         * lib/strtod.c (strtod): Reparse number on shorter string if
27586         exponent parse was invalid.
27587         * tests/test-strtod.c (main): Add check for "0x1p 2".
27588         Reported by Tom G. Christensen.
27589
27590         getopt: optimize previous patch
27591         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27592         empty variable.  Speed up awk script.
27593         Reported by Paolo Bonzini.
27594
27595 2010-09-08  Jim Meyering  <meyering@redhat.com>
27596
27597         test.sh: disqualify shells for which set -x corrupts stderr
27598         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27599         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27600         appear in stderr output.  For example, this command:
27601             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27602         prints "P=1" on those two systems:
27603
27604 2010-09-08  Bruno Haible  <bruno@clisp.org>
27605
27606         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27607         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27608         commands, because some shells ignore redirections when there is an
27609         error in the command lookup.
27610         Reported by Eric Blake.
27611
27612 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27613
27614         * lib/regex.h: Fix a mention of `regex_compile' (should be
27615         `re_compile_pattern').
27616         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27617         (re_set_registers): Correct name of parameter in comment.
27618
27619         * doc/regex.texi: Add documentation for missing syntax flags.
27620         Remove commented-out documentation of defunct syntax option
27621         RE_NO_EMPTY_ALTS.
27622         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27623         Add documentation of re_set_registers.
27624         Document trick to re-use a pattern buffer by setting fastmap manually.
27625         Update documentation of struct re_pattern_buffer per public members.
27626         Uncomment documentation of equivalence class operators and
27627         collating symbol operators, since they are now implemented,
27628         Explain leftmost-longest matching in relation to alternatives.
27629         Tidy documentation of substring matching.
27630         Remove POSIX documentation, which is done better in
27631         glibc, and refer the reader there. Keep BSD API documentation, as
27632         that is not readily available elsewhere.
27633
27634 2010-09-07  Eric Blake  <eblake@redhat.com>
27635
27636         getopt: handle POSIXLY_CORRECT set but not exported
27637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27638         export state of POSIXLY_CORRECT, due to bash set -o posix.
27639         Reported by Dustin J. Mitchell.
27640
27641 2010-09-05  Bruno Haible  <bruno@clisp.org>
27642
27643         gnulib-tool: Highlight the changed options.
27644         * gnulib-tool (func_usage): Display the --import, --add-import,
27645         --remove-import explanations in bold font.
27646
27647 2010-09-06  Karl Berry  <karl@gnu.org>
27648
27649         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27650
27651 2010-09-05  Bruno Haible  <bruno@clisp.org>
27652
27653         uniwidth/width: Update comment.
27654         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27655         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27656
27657 2010-09-05  Bruno Haible  <bruno@clisp.org>
27658
27659         isinf, isnan: Relax license.
27660         * modules/isinf (License): Change from GPL to LGPL, with consent from
27661         Ben Pfaff.
27662         * modules/isnan (License): Likewise.
27663         Requested by Ludovic Courtès.
27664
27665 2010-09-04  Bruno Haible  <bruno@clisp.org>
27666
27667         gnulib-tool: Help migration from --import to --add-import or --update.
27668         * gnulib-tool: Emit a verbose error message when --import is used
27669         without any module name.
27670
27671 2010-09-04  Bruno Haible  <bruno@clisp.org>
27672
27673         Update doc about gnulib-tool.
27674         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27675         'gnulib-tool --update' in more detail.
27676         Reported by Eric Blake.
27677
27678 2010-09-04  Bruno Haible  <bruno@clisp.org>
27679
27680         gnulib-tool: Change --import. New options --add/remove-import.
27681         * gnulib-tool: New options --add-import, --remove-import.
27682         (func_usage): Document them.
27683         (have_associative): Define always.
27684         (func_import): In import mode, don't merge the specified settings with
27685         the cached settings. Implement remove-import mode.
27686         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27687         Explain when to use them versus --import.
27688         (Simple update): Use --add-import instead of --import.
27689         * NEWS: Mention the change.
27690
27691 2010-09-04  Bruno Haible  <bruno@clisp.org>
27692
27693         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27694         separate gnulib.mk.
27695
27696 2010-09-04  Bruno Haible  <bruno@clisp.org>
27697
27698         gnulib-tool: Don't talk about CVS any more.
27699         * gnulib-tool (func_usage, func_import): Write "version control"
27700         instead of CVS.
27701
27702 2010-09-04  Jim Meyering  <meyering@redhat.com>
27703
27704         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27705         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27706         false positives (whose names may be ill-chosen) when searching
27707         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27708         would cause a false-positive.
27709
27710         avoid coreutils "make distcheck" failure
27711         Coreutils tests with an absolute build directory name that contains
27712         a space.  Not quoting this directory name caused a failure.
27713         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27714         * tests/test-vc-list-files-cvs.sh: Likewise.
27715
27716 2010-09-04  Bruno Haible  <bruno@clisp.org>
27717
27718         gnulib-tool: Avoid error when run in a package without Makefile.am.
27719         * gnulib-tool: When collecting the m4dirs in a package that does not
27720         have a Makefile.am, eliminate those directories that contain no
27721         gnulib-cache.m4. Fix expression that counts these directories.
27722
27723 2010-09-04  Bruno Haible  <bruno@clisp.org>
27724
27725         update-copyright test: Improve output when perl is missing or too old.
27726         * tests/test-update-copyright.sh: Move test of Perl version down after
27727         the test whether Perl exists. Provide an explanation relating Perl's
27728         error message to Automake's SKIP: message.
27729
27730 2010-09-04  Bruno Haible  <bruno@clisp.org>
27731
27732         Don't augment PATH in TESTS_ENVIRONMENT.
27733         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27734         set abs_aux_dir instead of augmenting PATH.
27735         * modules/vc-list-files-tests (Makefile.am): Likewise.
27736         * tests/test-update-copyright.sh: Augment PATH here.
27737         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27738         path_prepend_.
27739         * tests/test-vc-list-files-git.sh: Likewise.
27740
27741 2010-09-04  Jim Meyering  <meyering@redhat.com>
27742
27743         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27744         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27745
27746 2010-09-04  Bruno Haible  <bruno@clisp.org>
27747
27748         strdup: Fix compilation error in C++ mode.
27749         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27750         the macro.
27751
27752 2010-09-04  Bruno Haible  <bruno@clisp.org>
27753
27754         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27755         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27756         macro into a function.
27757         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27758
27759 2010-09-04  Bruno Haible  <bruno@clisp.org>
27760
27761         Set PATH_SEPARATOR the same way autoconf does.
27762         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27763         the value of PATH_SEPARATOR the same way autoconf-generated configure
27764         scripts do.
27765         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27766         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27767
27768 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27769
27770         Set PATH_SEPARATOR the same way autoconf does.
27771         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27772         the same way autoconf-generated configure scripts do.
27773         * posix-modules: Likewise.
27774
27775 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27776
27777         hash: fix safe_hasher const typo
27778         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27779         const; otherwise, there is a type error later.
27780
27781 2010-09-02  Jim Meyering  <meyering@redhat.com>
27782
27783         test-update-copyright.sh: require perl 5.8.0
27784         * tests/test-update-copyright.sh: Require 5.8.0,
27785         which Tom G. Christensen has confirmed is adequate,
27786         while 5.6.1 is not.
27787
27788 2010-09-02  Eric Blake  <eblake@redhat.com>
27789
27790         tests: init.sh improvements for re-exec'ing with zsh
27791         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27792         -vx through shell re-exec.
27793         Reported by Tom G. Christensen.
27794
27795         wctype: fix typo in previous commit
27796         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27797         Reported by Ludovic Courtès.
27798
27799 2010-09-02  Jim Meyering  <meyering@redhat.com>
27800
27801         test-update-copyright.sh: skip test if Perl is too old
27802         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27803         Reported by Tom G. Christensen.
27804
27805 2010-09-02  Bruno Haible  <bruno@clisp.org>
27806
27807         wctype: Avoid compilation error on IRIX 6.5.30.
27808         * lib/wctype.in.h (iswblank): Declare with a replacement if
27809         REPLACE_ISWBLANK is set.
27810         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27811         declared. Set REPLACE_ISWBLANK.
27812         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27813         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27814         * doc/posix-headers/wctype.texi: Likewise.
27815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27816
27817 2010-09-01  Bruno Haible  <bruno@clisp.org>
27818
27819         New module 'socketlib'.
27820         * modules/socketlib: New file.
27821         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27822         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27823         * modules/sockets (Depends-on): Add socketlib.
27824         Suggested by Sam Steingold <sds@gnu.org>.
27825
27826 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27827
27828         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27829
27830         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27831         when one needs search access to a directory but not read access.
27832         On systems where it is available, it works in some cases where
27833         O_RDONLY does not, namely on directories that are searchable but
27834         not readable, and which need only to be searchable.  If O_SEARCH
27835         is not available, fall back to the traditional method of using
27836         O_RDONLY.
27837
27838         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27839         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27840         when opening a directory that needs only to be searchable.
27841         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27842         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27843         * lib/openat-proc.c (openat_proc_name): Likewise.
27844         * lib/openat.c (openat_needs_fchdir): Likewise.
27845         * lib/save-cwd.c (save_cwd): Likewise.
27846         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27847
27848 2010-08-28  Bruno Haible  <bruno@clisp.org>
27849
27850         New module 'host-cpu-c-abi'.
27851         * modules/host-cpu-c-abi: New file.
27852         * m4/host-cpu-c-abi.m4: New file, based on part of
27853         clisp/src/m4/general.m4.
27854         Requested by Sam Steingold <sds@gnu.org>.
27855
27856 2010-08-31  Eric Blake  <eblake@redhat.com>
27857         and Jim Meyering  <meyering@redhat.com>
27858
27859         hash: factor, and guard against misbehaving hasher function
27860         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27861         of table->hasher's return value.  Also protect against a hash value
27862         so large that adding it to table->bucket results in a NULL pointer.
27863         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27864         Use it in place of open-coded check-and-abort.
27865
27866 2010-08-30  Bruno Haible  <bruno@clisp.org>
27867
27868         hash: silence spurious clang warning
27869         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27870         Reported by Eric Blake.
27871
27872 2010-08-30  Eric Blake  <eblake@redhat.com>
27873
27874         strstr, memmem, strcasestr: avoid leaked shell message
27875         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27876         FreeBSD.
27877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27879
27880         tests: silence clang warning
27881         * tests/test-malloca.c (do_allocation): Avoid dead store.
27882
27883 2010-08-29  Bruno Haible  <bruno@clisp.org>
27884
27885         gettext: Fix recent mistake.
27886         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27887
27888 2010-08-29  Bruno Haible  <bruno@clisp.org>
27889
27890         selinux-h: Offer a --without-selinux option.
27891         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27892         --without-selinux was specified, skip all tests and define
27893         HAVE_SELINUX_SELINUX_H to 0.
27894         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27895         set LIB_SELINUX to empty.
27896         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27897         gl_LIBSELINUX. If --without-selinux was specified, replace
27898         selinux/context.h.
27899         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27900
27901 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27902             Bruno Haible  <bruno@clisp.org>
27903
27904         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27905         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27906         of HAVE_REALLOC.
27907         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27908         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27909         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27910         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27911
27912 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27913             Bruno Haible  <bruno@clisp.org>
27914
27915         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27916         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27917         HAVE_CALLOC.
27918         * lib/xmalloc.c: Update accordingly.
27919         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27920         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27921         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27922
27923 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27924             Bruno Haible  <bruno@clisp.org>
27925
27926         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27927         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27928         HAVE_MALLOC.
27929         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27930         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27931         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27932
27933 2010-08-29  Bruno Haible  <bruno@clisp.org>
27934
27935         Update modules list.
27936         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27937         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27938         (String handling <string.h>): Add astrxfrm.
27939         (File system functions): Add readlinkat.
27940
27941 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27942
27943         Tests for module 'realloc-gnu'.
27944         * modules/realloc-gnu-tests: New file.
27945         * tests/test-realloc-gnu.c: New file.
27946
27947         Tests for module 'calloc-gnu'.
27948         * modules/calloc-gnu-tests: New file.
27949         * tests/test-calloc-gnu.c: New file.
27950
27951         Tests for module 'malloc-gnu'.
27952         * modules/malloc-gnu-tests: New file.
27953         * tests/test-malloc-gnu.c: New file.
27954
27955 2010-08-28  Bruno Haible  <bruno@clisp.org>
27956
27957         Rename module 'realloc' -> 'realloc-gnu'.
27958         * modules/realloc-gnu: New file, copied from modules/realloc.
27959         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27960         obsolete.
27961         * modules/mgetgroups (Depends-on): Update.
27962         * doc/posix-functions/realloc.texi: Update.
27963         * NEWS: Mention the change.
27964
27965         Rename module 'calloc' -> 'calloc-gnu'.
27966         * modules/calloc-gnu: New file, copied from modules/calloc.
27967         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27968         obsolete.
27969         * doc/posix-functions/calloc.texi: Update.
27970         * NEWS: Mention the change.
27971
27972         Rename module 'malloc' -> 'malloc-gnu'.
27973         * modules/malloc-gnu: New file, copied from modules/malloc.
27974         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27975         obsolete.
27976         * modules/argp (Depends-on): Update.
27977         * modules/regex (Depends-on): Update.
27978         * doc/posix-functions/malloc.texi: Update.
27979         * NEWS: Mention the change.
27980
27981 2010-08-28  Eric Blake  <eblake@redhat.com>
27982
27983         pread, pwrite: add missing dependency
27984         * modules/pread (Depends-on): Add extensions.
27985         * modules/pwrite (Depends-on): Likewise.
27986
27987 2010-08-28  Bruno Haible  <bruno@clisp.org>
27988
27989         unistr/u*-strchr: Fix tests dependencies.
27990         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27991         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27992         Reported by Ian Beckwith <ianb@erislabs.net>.
27993
27994 2010-08-28  Bruno Haible  <bruno@clisp.org>
27995
27996         read-file: Don't occupy too much unused memory.
27997         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27998
27999 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28000             Eric Blake  <eblake@redhat.com>
28001             Bruno Haible  <bruno@clisp.org>
28002
28003         read-file: Avoid memory reallocations with regular files.
28004         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28005         (fread_file): With regular files, use the remaining length as the
28006         initial buffer size.  Check against overflow.
28007         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28008         sys_stat.
28009
28010 2010-08-28  Bruno Haible  <bruno@clisp.org>
28011
28012         ftello: Relax license.
28013         * modules/ftello (License): Relax to LGPLv2+.
28014         Reported by Eric Blake.
28015
28016 2010-08-28  Bruno Haible  <bruno@clisp.org>
28017
28018         Avoid relocwrapper link errors due to gnulib replacement functions.
28019         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28020         function.
28021         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28022
28023 2010-08-28  Bruno Haible  <bruno@clisp.org>
28024
28025         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28026         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28027         defined.
28028         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28029         Suggested by Eric Blake.
28030
28031 2010-08-28  Bruno Haible  <bruno@clisp.org>
28032
28033         sys_socket, netdb: Ensure socklen_t gets defined.
28034         * modules/sys_socket (Depends-on): Add socklen.
28035         * modules/netdb (Depends-on): Likewise.
28036         * modules/getaddrinfo (Depends-on): Remove socklen.
28037         * modules/getsockopt (Depends-on): Likewise.
28038         * modules/setsockopt (Depends-on): Likewise.
28039         * tests/test-sys_socket.c: Check that socklen_t is defined.
28040         * tests/test-netdb.c: Likewise.
28041         * m4/socklen.m4: Update comments.
28042         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28043
28044 2010-08-27  Eric Blake  <eblake@redhat.com>
28045
28046         login_tty: add missing dependency
28047         * modules/login_tty (Depends-on): Add pty.
28048
28049 2010-08-26  Eric Blake  <eblake@redhat.com>
28050
28051         lib-symbol-versions: fix m4 quoting
28052         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28053         format for AC_LINK_IFELSE.
28054
28055         glob: fix compile test
28056         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28057
28058         btowc: fix missing file
28059         * modules/btowc (Files): Also ship locale-fr.m4.
28060
28061         lseek: fix link test
28062         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28063         AC_LINK_IFELSE.
28064
28065         include_next: silence autoconf 2.68 warning
28066         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28067         AC_COMPILE_IFELSE as special.
28068         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28069         autoconf < 2.68.
28070
28071         acl: fix compilation test
28072         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28073         AC_COMPILE_IFELSE.
28074
28075 2010-08-26  Bruno Haible  <bruno@clisp.org>
28076
28077         Modernize AC_TRY_RUN invocations.
28078         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28079         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28080         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28081         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28082         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28083         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28084         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28085         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28086         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28087         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28088         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28089         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28090         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28091         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28093         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28094         gl_MBRLEN_NUL_RETVAL): Likewise.
28095         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28096         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28097         Likewise.
28098         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28099         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28100         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28101         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28102         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28103         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28104         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28105         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28106         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28107         Likewise.
28108         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28109         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28111         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28112         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28113         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28114         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28115         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28116         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28118
28119 2010-08-26  Bruno Haible  <bruno@clisp.org>
28120
28121         Modernize AC_TRY_LINK invocations.
28122         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28123         AC_TRY_LINK.
28124         * m4/argp.m4 (gl_ARGP): Likewise.
28125         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28126         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28127         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28128         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28129         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28130         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28131         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28132         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28133         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28134         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28135         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28136         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28137         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28138         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28139         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28140         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28141         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28142         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28143         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28144         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28145         Likewise.
28146         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28147         Likewise.
28148         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28149         Likewise.
28150         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28151         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28152         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28153         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28154         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28155         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28156         * m4/servent.m4 (gl_SERVENT): Likewise.
28157         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28158         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28159         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28160         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28161         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28162         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28163         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28164         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28165         * modules/tsearch-tests (configure.ac): Likewise.
28166
28167 2010-08-26  Bruno Haible  <bruno@clisp.org>
28168
28169         Modernize AC_TRY_COMPILE invocations.
28170         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28171         AC_TRY_COMPILE.
28172         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28173         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28174         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28175         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28176         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28177         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28178         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28179         * m4/lock.m4 (gl_LOCK): Likewise.
28180         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28181         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28182         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28184         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28185         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28186         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28188         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28189         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28190         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28191         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28192         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28193         extraneous semicolon.
28194
28195 2010-08-26  Jim Meyering  <meyering@redhat.com>
28196
28197         stat-time: relax license LGPL
28198         * modules/stat-time (License): Change from GPL to LGPL,
28199         with consent from all contributors, for use in libguile.
28200         Requested by Ludovic Courtès.
28201
28202 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28203
28204         poll: return immediately on POLLHUP.
28205         * lib/poll.c (poll): Always set timeout before wait_timeout is
28206         computed.
28207
28208 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28209
28210         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28211         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28212         rmdir ("dir/.//"), unlinkat.
28213
28214 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28215
28216         stdbool: avoid spurious failure with modern xlc
28217         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28218
28219 2010-08-24  Bruno Haible  <bruno@clisp.org>
28220
28221         getloadavg: simplify code
28222         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28223         gl_have_func. Update comments.
28224
28225 2010-08-24  Eric Blake  <eblake@redhat.com>
28226
28227         getloadavg: don't define SVR4 on cygwin
28228         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28229         only define SVR4 when -lkvm is required.
28230         Reported by Yaakov Selkowitz.
28231
28232 2010-08-24  Bruno Haible  <bruno@clisp.org>
28233
28234         priv-set: fix comment
28235         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28236
28237 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28238
28239         priv-set: fix comments
28240         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28241         to match code, as suggested by David Bartley in:
28242         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28243
28244 2010-08-23  Eric Blake  <eblake@redhat.com>
28245
28246         stdbool: avoid rejecting clang
28247         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28248         * tests/test-stdbool.c: Enable more tests if using the system
28249         <stdbool.h> instead of the gnulib replacement.
28250         (main): Move xlc bug test to a runtime test for all compilers.
28251         Reported by Anders Kaseorg.
28252
28253         argz: fix shell quoting issue
28254         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28255         Reported by Charles Wilson.
28256
28257 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28258             Erik Faye-Lund <kusmabite@gmail.com>
28259
28260         poll, select: handle ERROR_BROKEN_PIPE.
28261         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28262         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28263         * lib/select.c (win32_compute_revents): Do not mark a pipe
28264         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28265
28266 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28267
28268         fts: allow compilation with C++
28269         * lib/fts_.h: Specify extern "C" linkage with C++.
28270
28271 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28272
28273         Fix gnulib-tool sed script de-commentation for AIX sed.
28274         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28275         sed.
28276
28277 2010-08-17  Eric Blake  <eblake@redhat.com>
28278
28279         test-stddef: test for (some) offsetof bugs
28280         * tests/test-stddef.c: Enhance test to ensure correct type of
28281         offsetof.
28282         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28283         that we are not fixing at this time.
28284
28285 2010-08-15  Bruno Haible  <bruno@clisp.org>
28286
28287         stpncpy: Allow stpncpy to be defined as a macro.
28288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28289         if it's already correctly declared.
28290         * lib/string.in.h (stpncpy): Undefine before redefining.
28291         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28292
28293 2010-08-14  Bruno Haible  <bruno@clisp.org>
28294
28295         Rename module 'memxfrm' to 'amemxfrm'.
28296         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28297         (amemxfrm): Renamed from memxfrm.
28298         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28299         (amemxfrm): Renamed from memxfrm.
28300         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28301         * NEWS: Mention the change.
28302         * MODULES.html.sh (String handling <string.h>): Update.
28303         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28304         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28305         * lib/unicase/u16-casexfrm.c: Likewise.
28306         * lib/unicase/u32-casexfrm.c: Likewise.
28307         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28308         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28309         * lib/uninorm/u16-normxfrm.c: Likewise.
28310         * lib/uninorm/u32-normxfrm.c: Likewise.
28311         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28312         memxfrm.
28313         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28314         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28315         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28316         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28317         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28318         Suggested by Paul Eggert.
28319
28320 2010-08-14  Bruno Haible  <bruno@clisp.org>
28321
28322         Tests for module 'astrxfrm'.
28323         * modules/astrxfrm-tests: New file.
28324         * tests/test-astrxfrm.c: New file.
28325
28326         New module 'astrxfrm'.
28327         * lib/astrxfrm.h: New file.
28328         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28329         * modules/astrxfrm: New file.
28330
28331 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28332
28333         regex: Tweak doc.
28334         * doc/regex.texi (Overview): Don't mention regex.c.
28335         (GNU Regular Expression Compiling): Likewise.
28336         (Match-end-of-line Operator): Mention 'not_eol'.
28337
28338 2010-08-14  Brian Gough  <bjg@gnu.org>
28339             Bruno Haible  <bruno@clisp.org>
28340
28341         git-merge-changelog: add doc relating to use with bzr and hg.
28342         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28343
28344 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28345
28346         pthread: fix pthread.h creation for srcdir != builddir
28347         * modules/pthread (Makefile.am): Fix the rule to work also in a
28348         non-srcdir build.
28349
28350 2010-08-13  Karl Berry  <karl@gnu.org>
28351
28352         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28353         * doc/posix-*/*: force line break before @url of POSIX
28354         specifications.
28355         Suggested by Werner Lemberg.
28356
28357 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28358
28359         strtod: fix const diagnostic
28360         * lib/strtod.c (strtod): Don't assign const char * to char *,
28361         as this elicits a warning from GCC when warnings are enabled.
28362
28363 2010-08-10  Pádraig Brady <P@draigbrady.com>
28364         and Eric Blake  <eblake@redhat.com>
28365
28366         copy-acl: ignore ENOTSUP on HP-UX
28367         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28368         so that it is available for HP-UX.
28369         * lib/copy-acl.c (qcopy_acl): Use it.
28370         Reported by Patrick M. Callahan.
28371
28372 2010-08-10  Eric Blake  <eblake@redhat.com>
28373
28374         open, chown: relax license
28375         * modules/open (License): Change to LGPLv2+, with consent by all
28376         authors, for use in augeas.
28377         * modules/chown (License): Likewise.
28378         * modules/lchown (Likewise): Likewise.
28379         Requested by Adam Stokes.
28380
28381 2010-08-09  Karl Berry  <karl@gnu.org>
28382
28383         * build-aux/ar-lib: new file, import from Automake.
28384         * config/srclist.txt: autocheck for updates.
28385
28386 2010-08-09  Eric Blake  <eblake@redhat.com>
28387
28388         readlinkat: adjust client modules
28389         * modules/areadlinkat (Depends-on): Use readlinkat, not
28390         symlinkat.
28391         * modules/areadlinkat-with-size (Depends-on): Likewise.
28392
28393         mknod: be more vocal about danger of running tests as root
28394         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28395         root, since that is just asking for problems.
28396         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28397
28398         readlinkat: split into its own module
28399         * modules/symlinkat: Split readlinkat...
28400         * modules/readlinkat: ...into separate module.
28401         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28402         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28403         * lib/symlinkat.c (readlinkat): Move...
28404         * lib/readlinkat.c: ...into new file.
28405         * modules/symlinkat-tests: Split readlinkat test...
28406         * modules/readlinkat-tests: ...into separate module.
28407         * tests/test-symlinkat.c: Split...
28408         * tests/test-readlinkat.c: ...into new file.
28409         * NEWS: Document the split.
28410         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28411         * lib/unistd.in.h (readlinkat): Likewise.
28412         Suggested by Bruno Haible.
28413
28414 2010-08-08  Bruno Haible  <bruno@clisp.org>
28415
28416         memxfrm: Speed up.
28417         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28418         that usually only one call to strxfrm is necessary for each string
28419         part.
28420         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28421
28422 2010-08-07  Karl Berry  <karl@gnu.org>
28423
28424         * doc/posix-headers/limits.texi,
28425         * doc/posix-functions/malloc.texi,
28426         * doc/posix-functions/strsignal.texi: missing @item.
28427         * doc/ld-version-script.texi: spurious leading i.
28428         * doc/regex.texi (Interval Operators): no commas inside @var.
28429
28430 2010-08-01  Bruno Haible  <bruno@clisp.org>
28431
28432         Integrate the regex documentation.
28433         * doc/gnulib.texi: Define 'cn' index.
28434         (Regular expressions): New a chapter that includes regex.texi and
28435         regexprops-generic.texi.
28436         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28437         syntax.
28438
28439         Whitespace cleanup.
28440         * doc/regex.texi: Remove trailing spaces.
28441
28442         Add regex documentation.
28443         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28444         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28445         Written by Kathy A. Hargreaves and Karl Berry.
28446
28447 2010-08-01  Bruno Haible  <bruno@clisp.org>
28448
28449         link: Update documentation.
28450         * doc/posix-functions/link.texi: Update regarding Solaris.
28451
28452 2010-07-31  Bruno Haible  <bruno@clisp.org>
28453
28454         Update modules list.
28455         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28456         (String handling <string.h>): Add memcmp2, memxfrm.
28457         (Container data structures): Add xlist, xsublist, xoset.
28458         (Core language properties): Add alignof, unused-parameter.
28459         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28460         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28461         (Unibyte characters <ctype.h>): New section.
28462         (String handling <string.h>): New section.
28463         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28464         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28465         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28466         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28467         tan, tanh, tanl, y0, y1, yn.
28468         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28469         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28470         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28471         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28472         unlockpt, vdprintf, vdprintf-posix.
28473         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28474         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28475         xconcat-filename.
28476         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28477         getdtablesize, pipe2, pipe2-safer.
28478         (Security): New section.
28479         (Networking functions): Add accept4.
28480         (Signal handling): Add sigpipe.
28481         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28482         mbmemcasecoll.
28483         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28484         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28485         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28486         pipe-filter-ii.
28487         (Misc): Add argp-version-etc, login_tty, parse-duration.
28488
28489 2010-07-31  Bruno Haible  <bruno@clisp.org>
28490
28491         Improve doc in MODULES.html.
28492         * modules/linkat (Description): Add the word "function".
28493         * modules/mkfifo (Description): Likewise.
28494         * modules/mknod (Description): Likewise.
28495         * modules/remove (Description): Likewise.
28496         * modules/renameat (Description): Likewise.
28497         * modules/stat (Description): Likewise.
28498         * modules/symlink (Description): Likewise.
28499         * modules/unlink (Description): Likewise.
28500
28501 2010-07-31  Bruno Haible  <bruno@clisp.org>
28502
28503         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28504         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28505         option --enable/disable-c++ instead of --enable/disable-cxx.
28506         * NEWS: Mention the change.
28507
28508 2010-07-31  Bruno Haible  <bruno@clisp.org>
28509
28510         readlink, areadlink: Relax test a bit.
28511         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28512         alternative to ENOTDIR.
28513         * tests/test-areadlink.h (test_areadlink): Likewise.
28514         Reported by Rainer Tammer.
28515
28516 2010-07-31  Bruno Haible  <bruno@clisp.org>
28517
28518         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28519         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28520         character, perform the search using U_STRCHR.
28521         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28522         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28523         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28524         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28525         Suggested by Paolo Bonzini.
28526
28527 2010-07-31  Bruno Haible  <bruno@clisp.org>
28528
28529         unistr/u*-strstr: Fix dependencies.
28530         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28531         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28532         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28533
28534 2010-07-31  Bruno Haible  <bruno@clisp.org>
28535
28536         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28537         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28538         the beginning of the loop.
28539         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28540         cases in 'switch' statement.
28541
28542         unistr/u8-strchr: Fix several bugs.
28543         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28544         the string. When not found, return NULL, not a pointer near the end.
28545
28546         More tests for unistr/u8-strchr.
28547         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28548         that the function does not read past the first occurrence of the byte
28549         being searched.
28550         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28551         * tests/unistr/test-u16-strchr.c (main): New function.
28552         * tests/unistr/test-u32-strchr.c (main): New function.
28553
28554 2010-07-31  Bruno Haible  <bruno@clisp.org>
28555
28556         posix-modules: Ignore backup files of documentation files.
28557         * posix-modules: grep only through files named *.texi.
28558
28559 2010-07-31  Bruno Haible  <bruno@clisp.org>
28560
28561         symlinkat: Fix documentation.
28562         * doc/posix-functions/readlinkat.texi: Fix module name.
28563
28564 2010-07-31  Bruno Haible  <bruno@clisp.org>
28565
28566         fchownat: Replace also when chown has the trailing slash bug.
28567         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28568         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28569         introduced on 2010-04-10.
28570         Reported by Rainer Tammer.
28571
28572 2010-07-31  Bruno Haible  <bruno@clisp.org>
28573
28574         linkat: Work around AIX 7.1 bug.
28575         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28576         whether linkat handles trailing slash correctly. If not, replace linkat
28577         and define LINKAT_TRAILING_SLASH_BUG.
28578         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28579         check whether (fd1,file1) points to a directory if file1 or file2 ends
28580         in a slash. Code taken from lib/link.c.
28581         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28582         Reported by Rainer Tammer.
28583
28584 2010-07-31  Bruno Haible  <bruno@clisp.org>
28585
28586         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28587         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28588         This disables an xlc optimization that was causing wrong test results.
28589         Reported by Rainer Tammer.
28590
28591 2010-07-31  Bruno Haible  <bruno@clisp.org>
28592
28593         iconv: Work around AIX 6.1..7.1 bug.
28594         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28595         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28596         cross-compiling, guess no on all versions of AIX.
28597         Reported by Rainer Tammer.
28598
28599 2010-07-31  Bruno Haible  <bruno@clisp.org>
28600
28601         readlink: Relax test a bit.
28602         * tests/test-readlink.h (test_readlink): Allow different errno value
28603         when readlink is called with a file name that ends in / and refers to
28604         a file.
28605         Suggested by Eric Blake.
28606         Reported by Rainer Tammer.
28607
28608 2010-07-31  Bruno Haible  <bruno@clisp.org>
28609
28610         copysign: Does not require -lm on glibc systems.
28611         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28612         gl_COMMON_DOUBLE_MATHFUNC.
28613         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28614
28615 2010-07-31  Bruno Haible  <bruno@clisp.org>
28616
28617         duplocale: Work around AIX 7.1 bug.
28618         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28619         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28620         * lib/duplocale.c (rpl_duplocale): Update comment.
28621         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28622         Reported by Rainer Tammer.
28623
28624 2010-07-30  Bruno Haible  <bruno@clisp.org>
28625
28626         dirfd: Avoid link error on AIX 7.1.
28627         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28628         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28629         exist, set REPLACE_DIRFD.
28630         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28631         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28632         * doc/posix-functions/dirfd.texi: Update.
28633         Reported by Rainer Tammer.
28634
28635 2010-07-30  Eric Blake  <eblake@redhat.com>
28636
28637         strtod: next round of AIX fixes
28638         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28639         exponent.
28640         * tests/test-strtod.c (main): Enhance tests.
28641         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28642         Reported by Rainer Tammer.
28643
28644         futimens: fix configure check
28645         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28646         Reported by Bruno Haible.
28647
28648 2010-07-30  Bruno Haible  <bruno@clisp.org>
28649
28650         getline: Update regarding AIX.
28651         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28652         Reported by Rainer Tammer.
28653
28654 2010-07-30  Bruno Haible  <bruno@clisp.org>
28655
28656         wcwidth: Drop replacement on AIX 7.
28657         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28658         AIX 7.
28659         Reported by Rainer Tammer.
28660
28661 2010-07-30  Bruno Haible  <bruno@clisp.org>
28662
28663         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28664         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28665         a 'char *'.
28666         Reported by Rainer Tammer.
28667
28668 2010-07-30  Bruno Haible  <bruno@clisp.org>
28669
28670         unlink: Update regarding AIX.
28671         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28672         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28673         Reported by Rainer Tammer.
28674
28675 2010-07-30  Bruno Haible  <bruno@clisp.org>
28676
28677         symlink: Update regarding AIX.
28678         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28680         Reported by Rainer Tammer.
28681
28682 2010-07-30  Bruno Haible  <bruno@clisp.org>
28683
28684         strndup: Update regarding AIX.
28685         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28686         AIX 7.
28687         Reported by Rainer Tammer.
28688
28689 2010-07-30  Bruno Haible  <bruno@clisp.org>
28690
28691         stat: Update regarding AIX.
28692         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28693         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28694         Reported by Rainer Tammer.
28695
28696 2010-07-30  Bruno Haible  <bruno@clisp.org>
28697
28698         truncl: Fix autoconf test.
28699         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28700         whether truncl works.
28701         Reported by Rainer Tammer.
28702
28703 2010-07-30  Bruno Haible  <bruno@clisp.org>
28704
28705         round: Update regarding AIX.
28706         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28707         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28708         Reported by Rainer Tammer.
28709
28710 2010-07-30  Bruno Haible  <bruno@clisp.org>
28711
28712         rename: Update regarding AIX.
28713         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28714         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28715         Reported by Rainer Tammer.
28716
28717 2010-07-30  Bruno Haible  <bruno@clisp.org>
28718
28719         printf.m4: Update regarding AIX.
28720         * m4/printf.m4: Update comments regarding AIX.
28721         Reported by Rainer Tammer.
28722
28723 2010-07-30  Bruno Haible  <bruno@clisp.org>
28724
28725         iconv: Update regarding AIX.
28726         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28727         AIX 7.
28728         Reported by Rainer Tammer.
28729
28730 2010-07-30  Bruno Haible  <bruno@clisp.org>
28731
28732         getopt: Update regarding AIX.
28733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28734         no on AIX.
28735         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28736         Reported by Rainer Tammer.
28737
28738 2010-07-30  Bruno Haible  <bruno@clisp.org>
28739
28740         ldexpl; Update regarding AIX.
28741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28742         on AIX 7.
28743         Reported by Rainer Tammer.
28744
28745 2010-07-30  Bruno Haible  <bruno@clisp.org>
28746
28747         frexpl: Update regarding AIX.
28748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28749         on AIX 7.
28750         Reported by Rainer Tammer.
28751
28752 2010-07-30  Bruno Haible  <bruno@clisp.org>
28753
28754         open, fopen: Update regarding AIX.
28755         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28756         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28757         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28758         * doc/posix-functions/fopen.texi: Likewise.
28759         Reported by Rainer Tammer.
28760
28761 2010-07-30  Bruno Haible  <bruno@clisp.org>
28762
28763         chown: Update doc regarding AIX.
28764         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28765         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28766         Reported by Rainer Tammer.
28767
28768 2010-07-30  Eric Blake  <eblake@redhat.com>
28769
28770         strtod: fix bug in replacement function on AIX
28771         * lib/strtod.c (strtod): Special case broken "0x" parse in
28772         underlying strtod.
28773         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28774         * doc/posix-functions/strtod.texi (strtod): Likewise.
28775         Reported by Rainer Tammer.
28776
28777 2010-07-30  Bruno Haible  <bruno@clisp.org>
28778
28779         mbrlen: Fix cross-compilation guess for AIX.
28780         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28781         guess. Leftover from 2008-12-22.
28782
28783 2010-07-30  Bruno Haible  <bruno@clisp.org>
28784
28785         mbrtowc: Fix cross-compilation guess for AIX.
28786         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28787         guess. Leftover from 2008-12-21.
28788
28789 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28790
28791         init.sh: work around trap limitation of some shells
28792         * tests/init.sh (setup_): Move exit trap outside of shell function.
28793
28794 2010-07-29  Eric Blake  <eblake@redhat.com>
28795
28796         strtod: aid debugging
28797         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28798         understanding why strtod is rejected.
28799
28800 2010-07-28  Bruno Haible  <bruno@clisp.org>
28801
28802         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28803         * lib/unistr/u8-chr.c: Include <string.h>.
28804         * tests/unistr/test-u8-chr.c: Likewise.
28805         * tests/unistr/test-u16-chr.c: Likewise.
28806         * tests/unistr/test-u32-chr.c: Likewise.
28807         * tests/unistr/test-u8-strchr.c: Likewise.
28808         * tests/unistr/test-u16-strchr.c: Likewise.
28809         * tests/unistr/test-u32-strchr.c: Likewise.
28810         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28811         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28812         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28813         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28814
28815 2010-07-28  Bruno Haible  <bruno@clisp.org>
28816
28817         Use spaces for indentation, not tabs.
28818         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28819
28820 2010-07-27  Bruno Haible  <bruno@clisp.org>
28821
28822         mbspcasecmp: Fix function specification.
28823         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28824         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28825         Reported by Eric Blake <eblake@redhat.com>.
28826
28827 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28828
28829         timespec: use cast and not conditional, as truncation isn't possible
28830         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28831         instead of a conditional.  Comment about the situation in more detail.
28832         This undoes most of the 2009-10-29 patch.
28833
28834 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28835
28836         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28837         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28838         * lib/unistr/u8-strchr.c: Likewise.
28839         * modules/unistr/u8-chr: Depend on memchr.
28840
28841         unistr/u*-strchr: add tests
28842         * modules/unistr/u8-strchr-tests: New file.
28843         * modules/unistr/u16-strchr-tests: New file.
28844         * modules/unistr/u32-strchr-tests: New file.
28845         * tests/unistr/test-strchr.h: New file.
28846         * tests/unistr/test-u8-strchr.c: New file.
28847         * tests/unistr/test-u16-strchr.c: New file.
28848         * tests/unistr/test-u32-strchr.c: New file.
28849
28850         unistr/u*-chr: test multibyte sequences more
28851         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28852         test vector.
28853         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28854         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28855         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28856
28857         unistr/u*-chr: test multibyte sequences
28858         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28859
28860         unistr/u*-chr: prepare for multibyte tests
28861         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28862         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28863         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28864         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28865         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28866         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28867
28868 2010-07-18  Bruno Haible  <bruno@clisp.org>
28869
28870         unistr/u8-strchr: Optimize non-ASCII argument case.
28871         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28872         because the first byte often matches anyway.
28873         Reported by Pádraig Brady <P@draigbrady.com>.
28874
28875 2010-07-15  Karl Berry  <karl@gnu.org>
28876
28877         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28878
28879 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28880
28881         getcwd: on Solaris, work better if ancestors are inaccessible
28882         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28883         buffer and size, try again with a large buffer.  This works better
28884         on Solaris, since its getcwd succeeds even if the path to the root
28885         is inaccessible, and this is helpful in common cases such as .zfs
28886         hidden directories.  Problem reported by J Chapman Flack in
28887         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28888         Use system getcwd if it's declared, not merely if it's partly
28889         working; use the partly-working test only to avoid needless effort
28890         if the system getcwd fails.
28891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28892         comment that was already obsolete and is now even more obsolete.
28893         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28894         now might call strdup.
28895
28896 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28897
28898         pthread: Add enough so that coreutils/src/sort.c compiles.
28899         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28900         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28901         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28902         Include <sys/types.h>, in case it defines pthread_t.
28903         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28904         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28905         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28906         (pthread_rwlockattr_t, pthread_spinlock_t):
28907         New typedefs, if HAVE_PTHREAD_T is not defined.
28908         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28909         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28910         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28911         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28912         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28913         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28914         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28915         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28916         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28917         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28918         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28919         New macros.
28920         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28921         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28922         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28923         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28924         (pthread_spin_unlock): New dummy functions.
28925         (pthread_create): Return EAGAIN; don't set errno.
28926         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28927         require AC_C_INLINE.
28928         * modules/pthread (Depends-on): Add sched, time.
28929         (pthread.h): Use AM_V_GEN.
28930
28931 2010-07-13  Bruno Haible  <bruno@clisp.org>
28932
28933         striconveh: Don't malloc memory if the result buffer is sufficient.
28934         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28935         buffer if its size is sufficient.
28936         Reported by Ludovic Courtès <ludo@gnu.org>.
28937
28938 2010-07-13  Bruno Haible  <bruno@clisp.org>
28939
28940         strtod: Add safety check.
28941         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28942
28943 2010-07-12  Bruno Haible  <bruno@clisp.org>
28944
28945         Unify tests that set gl_cv_func_ldexpl_no_libm.
28946         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28947         gl_FUNC_LDEXPL.
28948         (gl_FUNC_LDEXPL): Invoke it.
28949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28950
28951 2010-07-12  Bruno Haible  <bruno@clisp.org>
28952
28953         Unify tests that set gl_cv_func_ldexp_no_libm.
28954         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28955         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28956         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28957         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28958         * modules/strtod (Files): Add m4/ldexp.m4.
28959
28960 2010-07-12  Bruno Haible  <bruno@clisp.org>
28961
28962         Unify tests that set gl_cv_func_frexpl_no_libm.
28963         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28964         gl_FUNC_FREXPL_NO_LIBM.
28965         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28966         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28967
28968 2010-07-12  Bruno Haible  <bruno@clisp.org>
28969
28970         Unify tests that set gl_cv_func_frexp_no_libm.
28971         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28972         gl_FUNC_FREXP_NO_LIBM.
28973         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28974         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28975
28976 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28977
28978         memcoll: clarify sizes versus lengths, document better, and tweak perf
28979         * lib/memcoll.c (strcoll_loop, memcoll0):
28980         Improve quality of descriptive comments.  Name variables
28981         consistently as to whether they are lengths (which do not include
28982         terminating null) versus sizes (which do).
28983         * lib/xmemcoll.c (xmemcoll0): Likewise.
28984         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28985         returned when s1size == 0; this is easier to compile and saves
28986         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28987
28988 2010-07-12  Bruno Haible  <bruno@clisp.org>
28989
28990         Tests for module '_Exit'.
28991         * modules/_Exit-tests: New file.
28992         * tests/test-_Exit.sh: New file.
28993         * tests/test-_Exit.c: New file.
28994
28995         New module '_Exit'.
28996         * lib/stdlib.in.h (__attribute__): New macro.
28997         (_Exit): New declaration.
28998         * lib/_Exit.c: New file.
28999         * m4/_Exit.m4: New file.
29000         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29001         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29002         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29003         * modules/_Exit: New file.
29004         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29005         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29006
29007 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29008
29009         strtod: make it more-accurate typically, and don't require libm
29010         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29011         Include limits.h.  Don't include string.h.
29012         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29013         (locale_isspace): New function, so that no casts are needed to
29014         check whether *s is a space.
29015         (ldexp): Provide an unused dummy if not available.
29016         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29017         (strtod): Use them.  This implementation prefers to use the
29018         underlying strtod if available, falling back on our own code
29019         only to fix known bugs.  This is more likely to produce an
29020         accurate result.  Also, it avoids the use of libm functions.
29021         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29022         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29023         was absent, but it caused a test failure with coreutils.
29024         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29025         with libm.
29026         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29027         * modules/strtod-tests (Makefile.am): Likewise.
29028
29029 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29030             Bruno Haible  <bruno@clisp.org>
29031
29032         unistr/u8-strchr: Optimize ASCII argument case.
29033         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29034
29035 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29036
29037         (x)memcoll: minor tweaks
29038         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29039         is after the type that it qualifies.
29040         (memcoll0): Likewise.
29041         * lib/memcoll.h (memcoll0): Likewise.
29042         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29043         * lib/xmemcoll.h (xmemcoll0): Likewise.
29044         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29045         differs from memcoll in that the NUL byte is part of the argument.
29046         Omit the abort-checks, as performance is a real issue here.  Plus,
29047         the checks were wrong anyway (an off-by-one error).  Omit local
29048         variable 'diff', as it's a bit clearer that way.
29049         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29050         no longer needed.
29051
29052 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29053
29054         (x)memcoll: speedup when input is known to be NUL delimited
29055         * lib/memcoll.c: Include stdlib.
29056         (memcoll0): New function.
29057         (strcoll_loop): New function, refactored for use in both memcoll
29058         and memcoll0.
29059         * lib/memcoll.h (memcoll0): Add prototype.
29060         * lib/xmemcoll.c (xmemcoll0): New function.
29061         (collate_error): New function, refactored for use in both xmemcoll
29062         and xmemcoll0.
29063         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29064         * m4/memcoll.m4: add inline invocation.
29065
29066 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29067
29068         * build-aux/bootstrap: Remove any local translations
29069         from the translation project synchronization directory,
29070         so that local only translations are not distributed.
29071
29072 2010-07-04  Bruno Haible  <bruno@clisp.org>
29073
29074         fsusage: Clarify which code applies to which platforms.
29075         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29076         platform.
29077         * lib/fsusage.c (get_fs_usage): Likewise.
29078
29079 2010-07-04  Bruno Haible  <bruno@clisp.org>
29080
29081         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29082         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29083         Reported by Martin Lambers <marlam@marlam.de>.
29084
29085 2010-07-04  Jim Meyering  <meyering@redhat.com>
29086
29087         hash: once again explicitly disallow insertion of NULL
29088         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29089         inserting a NULL pointer cannot work with these functions.
29090         Add a comment with details.
29091         This reverts part of the 2010-07-01 commit, 5bef1a35
29092         "hash: extend module to deal with non-pointer keys".
29093
29094 2010-07-01  Bruno Haible  <bruno@clisp.org>
29095
29096         stdbool: Update doc.
29097         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29098         Info from Christian Weisgerber <naddy@mips.inka.de>.
29099
29100 2010-07-01  Jim Meyering  <meyering@redhat.com>
29101
29102         hash: extend module to deal with non-pointer keys
29103         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29104         but that allows insertion of non-pointer entries.
29105         Do not disallow an ENTRY value of NULL.
29106         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29107         * lib/hash.h (hash_insert0): Declare.
29108
29109 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29110
29111         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29112         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29113         not present (i.e. with autoconf 2.59 and when using gettextize, not
29114         gnulib), require AC_GNU_SOURCE instead.
29115
29116 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29117
29118         idpriv-drop: Fix tests.
29119         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29120         not to the test-idpriv-droptemp program.
29121
29122 2010-06-29  Bruno Haible  <bruno@clisp.org>
29123
29124         string: Fix syntax error with g++ 2.96.
29125         * lib/string.in.h (__pure__): Remove definition.
29126         (_GL_ATTRIBUTE_PURE): New macro.
29127         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29128         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29129         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29130
29131 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29132
29133         unitypes: Fix bug introduced on 2010-05-18.
29134         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29135
29136 2010-06-22  Eric Blake  <eblake@redhat.com>
29137
29138         memmem: slight optimization
29139         * lib/str-two-way.h (critical_factorization): Update comments.
29140         Reduce work during factorization phase.
29141         Reported by Carlos Bueno <carlos@bueno.org>.
29142
29143 2010-06-21  Bruno Haible  <bruno@clisp.org>
29144
29145         Fix HAVE_CALLOC_POSIX misnomer.
29146         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29147         !HAVE_CALLOC_POSIX.
29148         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29149         HAVE_CALLOC_POSIX.
29150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29151         instead of HAVE_CALLOC_POSIX.
29152         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29153         HAVE_CALLOC_POSIX.
29154
29155         Use modern idiom for calloc() replacement.
29156         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29157         AC_FUNC_CALLOC.
29158         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29159         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29160         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29161         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29162         (gl_REPLACE_CALLOC): New macro.
29163
29164 2010-06-21  Bruno Haible  <bruno@clisp.org>
29165
29166         Fix HAVE_REALLOC_POSIX misnomer.
29167         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29168         !HAVE_REALLOC_POSIX.
29169         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29170         HAVE_REALLOC_POSIX.
29171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29172         instead of HAVE_REALLOC_POSIX.
29173         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29174         HAVE_REALLOC_POSIX.
29175
29176         Use modern idiom for realloc() replacement.
29177         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29178         AC_FUNC_REALLOC.
29179         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29180         Autoconf's AC_FUNC_REALLOC.
29181         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29182         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29183         (gl_REPLACE_REALLOC): New macro.
29184         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29185
29186 2010-06-21  Bruno Haible  <bruno@clisp.org>
29187
29188         Fix HAVE_MALLOC_POSIX misnomer.
29189         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29190         !HAVE_MALLOC_POSIX.
29191         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29192         HAVE_MALLOC_POSIX.
29193         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29194         instead of HAVE_MALLOC_POSIX.
29195         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29196         HAVE_MALLOC_POSIX.
29197
29198         Use modern idiom for malloc() replacement.
29199         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29200         AC_FUNC_MALLOC.
29201         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29202         Autoconf's AC_FUNC_MALLOC.
29203         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29204         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29205         (gl_REPLACE_MALLOC): New macro.
29206         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29207
29208 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29209
29210         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29211         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29212         This macro takes 3 arguments, not 4.
29213
29214 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29215
29216         ipv6: fix detection under mingw
29217         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29218         in6_addr.
29219
29220 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29221
29222         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29223         that strtod() works when cross-compiling to a glibc version known
29224         to work.
29225
29226 2010-06-15  Bruno Haible  <bruno@clisp.org>
29227
29228         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29229
29230 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29231
29232         select: Correct timeout.
29233         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29234
29235 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29236
29237         git-version-gen: init shell var to avoid env var influence
29238         * build-aux/git-version-gen (v): Init shell var to empty.
29239
29240 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29241
29242         priv-set: Don't assume that priv.h exists merely because getppriv does.
29243         See Jan Andersen's bug report about AIX 5L in
29244         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29245         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29246         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29247         * lib/priv-set.h: Likewise.
29248         * tests/test-priv-set.c: Likewise.
29249
29250 2010-06-13  Bruno Haible  <bruno@clisp.org>
29251
29252         relocatable: Make it easier to test whether to install wrappers.
29253         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29254         RELOCATABLE_VIA_WRAPPER.
29255
29256 2010-06-13  Bruno Haible  <bruno@clisp.org>
29257
29258         gnulib-tool: Display specified modules and dependencies differently.
29259         * gnulib-tool (func_show_module_list): New function.
29260         (func_import, func_create_testdir): Invoke it.
29261         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29262
29263 2010-06-13  Bruno Haible  <bruno@clisp.org>
29264
29265         gnulib-tool: Align code of func_import and func_create_testdir.
29266         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29267         specified_modules.
29268
29269 2010-06-12  Jim Meyering  <meyering@redhat.com>
29270
29271         test-inttostr: avoid spurious failure on Solaris 9
29272         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29273         to accept "%ju".  Reported by Bruno Haible.
29274
29275 2010-06-11  Jim Meyering  <meyering@redhat.com>
29276
29277         test-sys_socket: mark variables as used more readably
29278         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29279         as "used" explicitly via (void) statement casts.  This is more
29280         readable than using them in an artificial return expression.
29281         Suggestion from Bruno Haible.
29282
29283 2010-06-11  Bruno Haible  <bruno@clisp.org>
29284
29285         Avoid some more warnings from "gcc -Wwrite-strings".
29286         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29287         to 'const char *'.
29288         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29289         * tests/test-c-strcasestr.c (main): Likewise.
29290         * tests/test-mbscasestr1.c (main): Likewise.
29291         * tests/test-mbscasestr2.c (main): Likewise.
29292         * tests/test-memmem.c (main): Likewise.
29293         * tests/test-strstr.c (main): Likewise.
29294         * tests/test-strcasestr.c (main): Likewise.
29295
29296 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29297
29298         init.sh: change framework_failure_ to fail with status 99, not 1
29299         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29300         automake's parallel-tests rule that this is an unexpected failure,
29301         even if the test is listed in XFAIL_TESTS.
29302
29303 2010-06-11  Jim Meyering  <meyering@redhat.com>
29304
29305         test-inttostr: avoid warnings about 4-6KB literal strings
29306         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29307         Include "macros.h", for its definition of ASSERT.
29308         (CK): s/assert/ASSERT/
29309         * modules/inttostr-tests (Files): Add macros.h.
29310
29311         init.sh: don't use $ME_ or skip_ before they are defined
29312         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29313         their first uses.  Also hoist their companions: warn_, fail_,
29314         framework_failure_, $stderr_fileno.  Prompted by a patch from
29315         Stefano Lattarini.
29316
29317         test-sys_socket: avoid set-but-not-used warnings from gcc
29318         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29319         avoid warning about set-but-not-used variables.
29320
29321         test-xvasprintf: avoid 'const' discard warnings
29322         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29323         "const" when assigning from literal strings.
29324         (test_xasprintf): Add "void" in function argument list to placate
29325         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29326
29327         tests: avoid compilation warnings in argmatch and exclude tests...
29328         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29329         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29330         Since it always exits, declare with the "noreturn" attribute.
29331         * tests/test-argmatch.c: Likewise.
29332
29333         tests: avoid 'const' discard warnings in mbsstr tests
29334         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29335         * tests/test-mbsstr2.c (main): Likewise.
29336
29337         test-verify: avoid warning from gcc's -Wmissing-declarations
29338         * tests/test-verify.c (function): Declare to be static.
29339
29340         test-inttostr.c: include <string.h> for use of strcmp
29341         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29342
29343         test-linkat: avoid failed assertion on "other" architectures
29344         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29345         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29346         sparc: https://bugs.launchpad.net/bugs/591968
29347
29348 2010-06-11  Jim Meyering  <meyering@redhat.com>
29349
29350         printf.m4: avoid autoconf's "Expanded Before Required" warning
29351         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29352         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29353         autoconf warning.
29354
29355 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29356
29357         Replacement header templates are now named with ".in", not "_".
29358         * doc/gnulib-intro.texi: Correct.
29359
29360 2010-06-10  Jim Meyering  <meyering@redhat.com>
29361
29362         inttostr-tests: depend on snprintf, not snprintf-posix
29363         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29364         snprintf-posix, to avoid this aclocal failure:
29365           missing file gnulib-tests/vasnprintf.c
29366           configure.ac:45: error: expected source file, required through \
29367           AC_LIBSOURCES, not found
29368
29369 2010-06-10  Jim Meyering  <meyering@redhat.com>
29370
29371         inttostr: add a new function, inttostr, and tests
29372         The namesake function was not available.  The existence of the
29373         template file, inttostr.c makes its addition nontrivial.
29374         * lib/anytostr.c: Rename from inttostr.c.
29375         (anytostr): Rename from inttostr.
29376         * lib/inttostr.c: New file.
29377         * modules/inttostr (Files): Add anytostr.c.
29378         (Makefile.am): Set lib_SOURCES instead of ...
29379         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29380         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29381         * lib/offtostr.c: Likewise.
29382         * lib/uinttostr.c: Likewise.
29383         * lib/umaxtostr.c: Likewise.
29384         * modules/inttostr-tests: New file.
29385         * tests/test-inttostr.c: New file.  Test these functions.
29386
29387 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29388             Bruno Haible  <bruno@clisp.org>
29389
29390         Add "Extending Gnulib" chapter to manual.
29391         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29392         chapter.
29393         (Extending Gnulib): New chapter.
29394         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29395         chapter.
29396
29397 2010-06-09  Bruno Haible  <bruno@clisp.org>
29398
29399         Avoid relocwrapper link errors due to gnulib replacement functions.
29400         * lib/areadlink.c: Use the system's malloc, realloc functions.
29401         (areadlink): Set errno to ENOMEM explicitly.
29402         * modules/areadlink (Depends-on): Remove malloc-posix.
29403         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29404
29405 2010-06-09  Bruno Haible  <bruno@clisp.org>
29406
29407         Avoid relocwrapper link errors due to gnulib replacement functions.
29408         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29409         * lib/malloca.c: Likewise.
29410         * lib/relocatable.c: Likewise.
29411         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29412         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29413         * lib/setenv.c: Use the system's malloc, realloc functions.
29414         * lib/strerror.c: Use the system's sprintf function.
29415         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29416
29417 2010-06-04  Bruno Haible  <bruno@clisp.org>
29418
29419         Prefer documented low-level autoconf macro names.
29420         * m4/lib-link.m4: Use m4_translit instead of translit.
29421         * m4/environ.m4: Likewise.
29422         * m4/mathfunc.m4: Likewise.
29423         * m4/onceonly.m4: Likewise.
29424         * m4/stdint.m4: Likewise.
29425         Suggested by Eric Blake.
29426
29427 2010-06-04  Martin Lambers  <marlam@marlam.de>
29428             Bruno Haible  <bruno@clisp.org>
29429
29430         havelib: Allow library names with '+' characters.
29431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29432         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29433
29434 2010-06-09  Bruno Haible  <bruno@clisp.org>
29435
29436         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29437         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29438         realloc failed.
29439
29440 2010-06-08  Peter Simons  <simons@cryp.to>
29441
29442         maint.mk: make the news-check rule more configurable
29443         * top/maint.mk (news-check-lines-spec): New variable.
29444         (news-check): Use "sed -n 1,10p" in place of "head".
29445
29446 2010-06-07  Jim Meyering  <meyering@redhat.com>
29447
29448         do-release-commit-and-tag: fix typo in --help
29449         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29450
29451         regex: avoid new dead-code warning with gcc-4.6.0
29452         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29453         if-block containing a while-loop.  It's been unused for at least
29454         5 years.
29455
29456 2010-06-05  Bruno Haible  <bruno@clisp.org>
29457
29458         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29459         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29460
29461 2010-06-04  Bruno Haible  <bruno@clisp.org>
29462
29463         Update to GNU gettext 0.18.1.
29464         * modules/gettext (configure.ac): Require gettext infrastructure from
29465         version 0.18.1.
29466
29467 2010-06-03  Bruno Haible  <bruno@clisp.org>
29468
29469         Don't use AC_LIBOBJ with file names in subdirectories.
29470         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29471         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29472         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29473         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29474         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29475         gl_LIBUNISTRING_LIBSOURCE.
29476         (Makefile.am): Augment lib_SOURCES here, conditionally.
29477         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29478
29479 2010-06-03  Bruno Haible  <bruno@clisp.org>
29480
29481         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29482         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29483         expansion does not end with a newline.
29484         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29485         unnecessary newline.
29486
29487 2010-06-03  Bruno Haible  <bruno@clisp.org>
29488
29489         Reduce dependencies.
29490         * tests/test-quotearg.h: New file, extracted from
29491         tests/test-quotearg.c.
29492         * tests/test-quotearg-simple.c: New file, extracted from
29493         tests/test-quotearg.c.
29494         * tests/test-quotearg.c: Don't include <ctype.h>.
29495         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29496         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29497         use_quote_double_quotes, use_quotearg_colon): Moved to
29498         tests/test-quotearg.h.
29499         (results_g, flag_results, custom_quotes, custom_results): Moved
29500         to tests/test-quotearg-simple.c.
29501         (main): Moved the part that does not depend on gettext to
29502         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29503         performed.
29504         * modules/quotearg-simple: New file.
29505         * modules/quotearg-simple-tests: New file.
29506         * modules/quotearg (Depends-on): Add quotearg-simple.
29507         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29508         (Files): Add tests/test-quotearg.h.
29509         Reported by Paolo Bonzini.
29510
29511 2010-06-03  Bruno Haible  <bruno@clisp.org>
29512
29513         Reduce dependencies.
29514         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29515
29516 2010-06-03  Bruno Haible  <bruno@clisp.org>
29517
29518         time: Undefine more broken macros.
29519         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29520         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29521         Reported by Eric Blake.
29522
29523 2010-06-03  Bruno Haible  <bruno@clisp.org>
29524
29525         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29526         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29527         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29528         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29529         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29530         Reported by Ludovic Courtès <ludo@gnu.org>.
29531
29532 2010-06-02  Eric Blake  <eblake@redhat.com>
29533
29534         time: work with mingw + pthreads-win32 library
29535         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29536         if timespec is defined only in pthread.h.
29537         * modules/time (Makefile.am): Substitute it.
29538         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29539         <pthread.h>, when needed.
29540         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29541         from the library.
29542
29543 2010-05-31  Bruno Haible  <bruno@clisp.org>
29544
29545         Avoid expanding two macros in the wrong order.
29546         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29547         gl_LIBUNISTRING if it is defined.
29548         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29549         autoconf >= 2.64.
29550         Reported by Ludovic Courtès <ludo@gnu.org>.
29551
29552 2010-05-27  Jim Meyering  <meyering@redhat.com>
29553
29554         maint.mk: also prohibit "#undef" of always-defined symbols
29555         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29556         Allow more than one space before the symbol name.
29557         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29558         the regexp uses alternation.
29559
29560 2010-05-26  Eric Blake  <eblake@redhat.com>
29561
29562         maint.mk: avoid echo -e
29563         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29564         Convert all uses of echo -* to printf.
29565         Reported by Matthias Bolte.
29566
29567 2010-05-25  Bruno Haible  <bruno@clisp.org>
29568
29569         Update to GNU gettext 0.18, part 2.
29570         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29571         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29572
29573 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29574
29575         Add missing include in test-pwrite.c.
29576         * tests/test-pwrite.c: Include string.h, for strcmp.
29577
29578 2010-05-24  Bruno Haible  <bruno@clisp.org>
29579
29580         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29581
29582 2010-05-24  Bruno Haible  <bruno@clisp.org>
29583
29584         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29585         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29586         iconveh_error argument.
29587         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29588         U_STRCONV_TO_LOCALE.
29589         * lib/unistr/u16-strcoll.c: Likewise.
29590         * lib/unistr/u32-strcoll.c: Likewise.
29591         * modules/unistr/u8-strcoll (Depends-on): Add
29592         uniconv/u8-strconv-to-enc, localcharset. Remove
29593         uniconv/u8-strconv-to-locale.
29594         (configure.ac): Bump version number.
29595         * modules/unistr/u16-strcoll (Depends-on): Add
29596         uniconv/u16-strconv-to-enc, localcharset. Remove
29597         uniconv/u16-strconv-to-locale.
29598         (configure.ac): Bump version number.
29599         * modules/unistr/u32-strcoll (Depends-on): Add
29600         uniconv/u32-strconv-to-enc, localcharset. Remove
29601         uniconv/u32-strconv-to-locale.
29602         (configure.ac): Bump version number.
29603
29604 2010-05-24  Bruno Haible  <bruno@clisp.org>
29605
29606         Avoid a test failure on NetBSD 5.0.
29607         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29608         an iconv() bug.
29609
29610 2010-05-24  Bruno Haible  <bruno@clisp.org>
29611
29612         Adjust #include directive style.
29613         * modules/regex (Includes): Recommend to write <regex.h>.
29614
29615 2010-05-24  Bruno Haible  <bruno@clisp.org>
29616
29617         regex: Don't require alloca.
29618         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29619         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29620         only inside if (0).
29621
29622 2010-05-23  Jim Meyering  <meyering@redhat.com>
29623
29624         test-renameat.c: include <sys/stat.h>
29625         * tests/test-renameat.c: Include <sys/stat.h>; required for
29626         definition of S_IS* macros.
29627
29628 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29629
29630         Update maintainer documentation for 'relocatable-prog' module.
29631         * doc/relocatable-maint.texi: Update.
29632         Comments by Bruno Haible.
29633
29634 2010-05-23  Bruno Haible  <bruno@clisp.org>
29635
29636         git-merge-changelog: Enable --split-merged-entry by default.
29637         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29638         (usage): Don't mention this option any more.
29639         Reported by Ralf Wildenhues.
29640
29641 2010-05-23  Jim Meyering  <meyering@redhat.com>
29642
29643         test-pwrite: do not leave behind a test file named "out"
29644         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29645         The trivial-looking use of init.sh is really necessary.
29646         It ensures that the temporary file, "out", is created in
29647         a temporary directory, and removed upon termination.
29648         * tests/test-pwrite.sh: Re-add file.
29649         * modules/pwrite-tests: Reference it.
29650
29651 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29652
29653         Fix output redirection buglet in init.sh.
29654         * tests/init.sh: Fix redirection of stderr.
29655
29656 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29657
29658         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29659
29660 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29661
29662         * modules/valgrind-tests: New file.
29663         * m4/valgrind-tests.m4: New file.
29664         * doc/valgrind-tests.texi: New file.
29665         * doc/gnulib.texi (Running self-tests under valgrind): New
29666         section.
29667
29668 2010-05-19  Bruno Haible  <bruno@clisp.org>
29669
29670         Clean up dead code in recent commit.
29671         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29672         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29673         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29674         Suggested by Paolo Bonzini.
29675
29676 2010-05-19  Bruno Haible  <bruno@clisp.org>
29677
29678         Avoid valgrind error reports from libunistring.
29679         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29680         * modules/libunistring (Files): Add it.
29681         * modules/libunistring-optional (Files): Likewise.
29682
29683 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29684             Bruno Haible  <bruno@clisp.org>
29685
29686         New module 'libunistring-optional'.
29687         * modules/libunistring-optional: New file.
29688         * m4/libunistring-base.m4: New file.
29689         * m4/libunistring-optional.m4: New file.
29690         * lib/unicase.in.h: Renamed from lib/unicase.h.
29691         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29692         * lib/unictype.in.h: Renamed from lib/unictype.h.
29693         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29694         * lib/uniname.in.h: Renamed from lib/uniname.h.
29695         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29696         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29697         * lib/unistr.in.h: Renamed from lib/unistr.h.
29698         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29699         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29700         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29701         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29702         gl_LIBUNISTRING. If the library was found, determine the installed
29703         version and set LIBUNISTRING_VERSION.
29704         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29705         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29706         handle a configuration option --with-included-libunistring.
29707         * modules/libunistring (Files): Add m4/absolute-header.m4.
29708         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29709         Add m4/libunistring-base.m4.
29710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29711         (Makefile.am): Build unicase.h from unicase.in.h.
29712         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29713         Add m4/libunistring-base.m4.
29714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29715         (Makefile.am): Build uniconv.h from uniconv.in.h.
29716         * modules/unictype/base (Files): Use unictype.in.h instead of
29717         unictype.h. Add m4/libunistring-base.m4.
29718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29719         (Makefile.am): Build unictype.h from unictype.in.h.
29720         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29721         Add m4/libunistring-base.m4.
29722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29723         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29724         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29725         Add m4/libunistring-base.m4.
29726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29727         (Makefile.am): Build uniname.h from uniname.in.h.
29728         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29729         Add m4/libunistring-base.m4.
29730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29731         (Makefile.am): Build uninorm.h from uninorm.in.h.
29732         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29733         unistdio.h. Add m4/libunistring-base.m4.
29734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29735         (Makefile.am): Build unistdio.h from unistdio.in.h.
29736         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29737         Add m4/libunistring-base.m4.
29738         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29739         (Makefile.am): Build unistr.h from unistr.in.h.
29740         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29741         Add m4/libunistring-base.m4.
29742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29743         (Makefile.am): Build unitypes.h from unitypes.in.h.
29744         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29745         Add m4/libunistring-base.m4.
29746         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29747         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29748         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29749         uniwidth.h. Add m4/libunistring-base.m4.
29750         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29751         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29752         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29753         instead of augmenting lib_SOURCES.
29754         * modules/unicase/empty-suffix-context: Likewise.
29755         * modules/unicase/locale-language: Likewise.
29756         * modules/unicase/tolower: Likewise.
29757         * modules/unicase/totitle: Likewise.
29758         * modules/unicase/toupper: Likewise.
29759         * modules/unicase/u8-casecmp: Likewise.
29760         * modules/unicase/u8-casecoll: Likewise.
29761         * modules/unicase/u8-casefold: Likewise.
29762         * modules/unicase/u8-casexfrm: Likewise.
29763         * modules/unicase/u8-ct-casefold: Likewise.
29764         * modules/unicase/u8-ct-tolower: Likewise.
29765         * modules/unicase/u8-ct-totitle: Likewise.
29766         * modules/unicase/u8-ct-toupper: Likewise.
29767         * modules/unicase/u8-is-cased: Likewise.
29768         * modules/unicase/u8-is-casefolded: Likewise.
29769         * modules/unicase/u8-is-lowercase: Likewise.
29770         * modules/unicase/u8-is-titlecase: Likewise.
29771         * modules/unicase/u8-is-uppercase: Likewise.
29772         * modules/unicase/u8-prefix-context: Likewise.
29773         * modules/unicase/u8-suffix-context: Likewise.
29774         * modules/unicase/u8-tolower: Likewise.
29775         * modules/unicase/u8-totitle: Likewise.
29776         * modules/unicase/u8-toupper: Likewise.
29777         * modules/unicase/u16-casecmp: Likewise.
29778         * modules/unicase/u16-casecoll: Likewise.
29779         * modules/unicase/u16-casefold: Likewise.
29780         * modules/unicase/u16-casexfrm: Likewise.
29781         * modules/unicase/u16-ct-casefold: Likewise.
29782         * modules/unicase/u16-ct-tolower: Likewise.
29783         * modules/unicase/u16-ct-totitle: Likewise.
29784         * modules/unicase/u16-ct-toupper: Likewise.
29785         * modules/unicase/u16-is-cased: Likewise.
29786         * modules/unicase/u16-is-casefolded: Likewise.
29787         * modules/unicase/u16-is-lowercase: Likewise.
29788         * modules/unicase/u16-is-titlecase: Likewise.
29789         * modules/unicase/u16-is-uppercase: Likewise.
29790         * modules/unicase/u16-prefix-context: Likewise.
29791         * modules/unicase/u16-suffix-context: Likewise.
29792         * modules/unicase/u16-tolower: Likewise.
29793         * modules/unicase/u16-totitle: Likewise.
29794         * modules/unicase/u16-toupper: Likewise.
29795         * modules/unicase/u32-casecmp: Likewise.
29796         * modules/unicase/u32-casecoll: Likewise.
29797         * modules/unicase/u32-casefold: Likewise.
29798         * modules/unicase/u32-casexfrm: Likewise.
29799         * modules/unicase/u32-ct-casefold: Likewise.
29800         * modules/unicase/u32-ct-tolower: Likewise.
29801         * modules/unicase/u32-ct-totitle: Likewise.
29802         * modules/unicase/u32-ct-toupper: Likewise.
29803         * modules/unicase/u32-is-cased: Likewise.
29804         * modules/unicase/u32-is-casefolded: Likewise.
29805         * modules/unicase/u32-is-lowercase: Likewise.
29806         * modules/unicase/u32-is-titlecase: Likewise.
29807         * modules/unicase/u32-is-uppercase: Likewise.
29808         * modules/unicase/u32-prefix-context: Likewise.
29809         * modules/unicase/u32-suffix-context: Likewise.
29810         * modules/unicase/u32-tolower: Likewise.
29811         * modules/unicase/u32-totitle: Likewise.
29812         * modules/unicase/u32-toupper: Likewise.
29813         * modules/unicase/ulc-casecmp: Likewise.
29814         * modules/unicase/ulc-casecoll: Likewise.
29815         * modules/unicase/ulc-casexfrm: Likewise.
29816         * modules/uniconv/u8-conv-from-enc: Likewise.
29817         * modules/uniconv/u8-conv-to-enc: Likewise.
29818         * modules/uniconv/u8-strconv-from-enc: Likewise.
29819         * modules/uniconv/u8-strconv-from-locale: Likewise.
29820         * modules/uniconv/u8-strconv-to-enc: Likewise.
29821         * modules/uniconv/u8-strconv-to-locale: Likewise.
29822         * modules/uniconv/u16-conv-from-enc: Likewise.
29823         * modules/uniconv/u16-conv-to-enc: Likewise.
29824         * modules/uniconv/u16-strconv-from-enc: Likewise.
29825         * modules/uniconv/u16-strconv-from-locale: Likewise.
29826         * modules/uniconv/u16-strconv-to-enc: Likewise.
29827         * modules/uniconv/u16-strconv-to-locale: Likewise.
29828         * modules/uniconv/u32-conv-from-enc: Likewise.
29829         * modules/uniconv/u32-conv-to-enc: Likewise.
29830         * modules/uniconv/u32-strconv-from-enc: Likewise.
29831         * modules/uniconv/u32-strconv-from-locale: Likewise.
29832         * modules/uniconv/u32-strconv-to-enc: Likewise.
29833         * modules/uniconv/u32-strconv-to-locale: Likewise.
29834         * modules/unictype/bidicategory-byname: Likewise.
29835         * modules/unictype/bidicategory-name: Likewise.
29836         * modules/unictype/bidicategory-of: Likewise.
29837         * modules/unictype/bidicategory-test: Likewise.
29838         * modules/unictype/block-list: Likewise.
29839         * modules/unictype/block-test: Likewise.
29840         * modules/unictype/category-C: Likewise.
29841         * modules/unictype/category-Cc: Likewise.
29842         * modules/unictype/category-Cf: Likewise.
29843         * modules/unictype/category-Cn: Likewise.
29844         * modules/unictype/category-Co: Likewise.
29845         * modules/unictype/category-Cs: Likewise.
29846         * modules/unictype/category-L: Likewise.
29847         * modules/unictype/category-Ll: Likewise.
29848         * modules/unictype/category-Lm: Likewise.
29849         * modules/unictype/category-Lo: Likewise.
29850         * modules/unictype/category-Lt: Likewise.
29851         * modules/unictype/category-Lu: Likewise.
29852         * modules/unictype/category-M: Likewise.
29853         * modules/unictype/category-Mc: Likewise.
29854         * modules/unictype/category-Me: Likewise.
29855         * modules/unictype/category-Mn: Likewise.
29856         * modules/unictype/category-N: Likewise.
29857         * modules/unictype/category-Nd: Likewise.
29858         * modules/unictype/category-Nl: Likewise.
29859         * modules/unictype/category-No: Likewise.
29860         * modules/unictype/category-P: Likewise.
29861         * modules/unictype/category-Pc: Likewise.
29862         * modules/unictype/category-Pd: Likewise.
29863         * modules/unictype/category-Pe: Likewise.
29864         * modules/unictype/category-Pf: Likewise.
29865         * modules/unictype/category-Pi: Likewise.
29866         * modules/unictype/category-Po: Likewise.
29867         * modules/unictype/category-Ps: Likewise.
29868         * modules/unictype/category-S: Likewise.
29869         * modules/unictype/category-Sc: Likewise.
29870         * modules/unictype/category-Sk: Likewise.
29871         * modules/unictype/category-Sm: Likewise.
29872         * modules/unictype/category-So: Likewise.
29873         * modules/unictype/category-Z: Likewise.
29874         * modules/unictype/category-Zl: Likewise.
29875         * modules/unictype/category-Zp: Likewise.
29876         * modules/unictype/category-Zs: Likewise.
29877         * modules/unictype/category-and: Likewise.
29878         * modules/unictype/category-and-not: Likewise.
29879         * modules/unictype/category-byname: Likewise.
29880         * modules/unictype/category-name: Likewise.
29881         * modules/unictype/category-none: Likewise.
29882         * modules/unictype/category-of: Likewise.
29883         * modules/unictype/category-or: Likewise.
29884         * modules/unictype/category-test: Likewise.
29885         * modules/unictype/combining-class: Likewise.
29886         * modules/unictype/ctype-alnum: Likewise.
29887         * modules/unictype/ctype-alpha: Likewise.
29888         * modules/unictype/ctype-blank: Likewise.
29889         * modules/unictype/ctype-cntrl: Likewise.
29890         * modules/unictype/ctype-digit: Likewise.
29891         * modules/unictype/ctype-graph: Likewise.
29892         * modules/unictype/ctype-lower: Likewise.
29893         * modules/unictype/ctype-print: Likewise.
29894         * modules/unictype/ctype-punct: Likewise.
29895         * modules/unictype/ctype-space: Likewise.
29896         * modules/unictype/ctype-upper: Likewise.
29897         * modules/unictype/ctype-xdigit: Likewise.
29898         * modules/unictype/decimal-digit: Likewise.
29899         * modules/unictype/digit: Likewise.
29900         * modules/unictype/mirror: Likewise.
29901         * modules/unictype/numeric: Likewise.
29902         * modules/unictype/property-alphabetic: Likewise.
29903         * modules/unictype/property-ascii-hex-digit: Likewise.
29904         * modules/unictype/property-bidi-arabic-digit: Likewise.
29905         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29906         * modules/unictype/property-bidi-block-separator: Likewise.
29907         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29908         * modules/unictype/property-bidi-common-separator: Likewise.
29909         * modules/unictype/property-bidi-control: Likewise.
29910         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29911         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29912         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29913         * modules/unictype/property-bidi-european-digit: Likewise.
29914         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29915         * modules/unictype/property-bidi-left-to-right: Likewise.
29916         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29917         * modules/unictype/property-bidi-other-neutral: Likewise.
29918         * modules/unictype/property-bidi-pdf: Likewise.
29919         * modules/unictype/property-bidi-segment-separator: Likewise.
29920         * modules/unictype/property-bidi-whitespace: Likewise.
29921         * modules/unictype/property-byname: Likewise.
29922         * modules/unictype/property-combining: Likewise.
29923         * modules/unictype/property-composite: Likewise.
29924         * modules/unictype/property-currency-symbol: Likewise.
29925         * modules/unictype/property-dash: Likewise.
29926         * modules/unictype/property-decimal-digit: Likewise.
29927         * modules/unictype/property-default-ignorable-code-point: Likewise.
29928         * modules/unictype/property-deprecated: Likewise.
29929         * modules/unictype/property-diacritic: Likewise.
29930         * modules/unictype/property-extender: Likewise.
29931         * modules/unictype/property-format-control: Likewise.
29932         * modules/unictype/property-grapheme-base: Likewise.
29933         * modules/unictype/property-grapheme-extend: Likewise.
29934         * modules/unictype/property-grapheme-link: Likewise.
29935         * modules/unictype/property-hex-digit: Likewise.
29936         * modules/unictype/property-hyphen: Likewise.
29937         * modules/unictype/property-id-continue: Likewise.
29938         * modules/unictype/property-id-start: Likewise.
29939         * modules/unictype/property-ideographic: Likewise.
29940         * modules/unictype/property-ids-binary-operator: Likewise.
29941         * modules/unictype/property-ids-trinary-operator: Likewise.
29942         * modules/unictype/property-ignorable-control: Likewise.
29943         * modules/unictype/property-iso-control: Likewise.
29944         * modules/unictype/property-join-control: Likewise.
29945         * modules/unictype/property-left-of-pair: Likewise.
29946         * modules/unictype/property-line-separator: Likewise.
29947         * modules/unictype/property-logical-order-exception: Likewise.
29948         * modules/unictype/property-lowercase: Likewise.
29949         * modules/unictype/property-math: Likewise.
29950         * modules/unictype/property-non-break: Likewise.
29951         * modules/unictype/property-not-a-character: Likewise.
29952         * modules/unictype/property-numeric: Likewise.
29953         * modules/unictype/property-other-alphabetic: Likewise.
29954         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29955         * modules/unictype/property-other-grapheme-extend: Likewise.
29956         * modules/unictype/property-other-id-continue: Likewise.
29957         * modules/unictype/property-other-id-start: Likewise.
29958         * modules/unictype/property-other-lowercase: Likewise.
29959         * modules/unictype/property-other-math: Likewise.
29960         * modules/unictype/property-other-uppercase: Likewise.
29961         * modules/unictype/property-paired-punctuation: Likewise.
29962         * modules/unictype/property-paragraph-separator: Likewise.
29963         * modules/unictype/property-pattern-syntax: Likewise.
29964         * modules/unictype/property-pattern-white-space: Likewise.
29965         * modules/unictype/property-private-use: Likewise.
29966         * modules/unictype/property-punctuation: Likewise.
29967         * modules/unictype/property-quotation-mark: Likewise.
29968         * modules/unictype/property-radical: Likewise.
29969         * modules/unictype/property-sentence-terminal: Likewise.
29970         * modules/unictype/property-soft-dotted: Likewise.
29971         * modules/unictype/property-space: Likewise.
29972         * modules/unictype/property-terminal-punctuation: Likewise.
29973         * modules/unictype/property-test: Likewise.
29974         * modules/unictype/property-titlecase: Likewise.
29975         * modules/unictype/property-unassigned-code-value: Likewise.
29976         * modules/unictype/property-unified-ideograph: Likewise.
29977         * modules/unictype/property-uppercase: Likewise.
29978         * modules/unictype/property-variation-selector: Likewise.
29979         * modules/unictype/property-white-space: Likewise.
29980         * modules/unictype/property-xid-continue: Likewise.
29981         * modules/unictype/property-xid-start: Likewise.
29982         * modules/unictype/property-zero-width: Likewise.
29983         * modules/unictype/scripts: Likewise.
29984         * modules/unictype/syntax-c-ident: Likewise.
29985         * modules/unictype/syntax-c-whitespace: Likewise.
29986         * modules/unictype/syntax-java-ident: Likewise.
29987         * modules/unictype/syntax-java-whitespace: Likewise.
29988         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29989         * modules/unilbrk/u8-width-linebreaks: Likewise.
29990         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29991         * modules/unilbrk/u16-width-linebreaks: Likewise.
29992         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29993         * modules/unilbrk/u32-width-linebreaks: Likewise.
29994         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29995         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29996         * modules/uniname/uniname: Likewise.
29997         * modules/uninorm/canonical-decomposition: Likewise.
29998         * modules/uninorm/composition: Likewise.
29999         * modules/uninorm/decomposing-form: Likewise.
30000         * modules/uninorm/decomposition: Likewise.
30001         * modules/uninorm/filter: Likewise.
30002         * modules/uninorm/nfc: Likewise.
30003         * modules/uninorm/nfd: Likewise.
30004         * modules/uninorm/nfkc: Likewise.
30005         * modules/uninorm/nfkd: Likewise.
30006         * modules/uninorm/u8-normalize: Likewise.
30007         * modules/uninorm/u8-normcmp: Likewise.
30008         * modules/uninorm/u8-normcoll: Likewise.
30009         * modules/uninorm/u8-normxfrm: Likewise.
30010         * modules/uninorm/u16-normalize: Likewise.
30011         * modules/uninorm/u16-normcmp: Likewise.
30012         * modules/uninorm/u16-normcoll: Likewise.
30013         * modules/uninorm/u16-normxfrm: Likewise.
30014         * modules/uninorm/u32-normalize: Likewise.
30015         * modules/uninorm/u32-normcmp: Likewise.
30016         * modules/uninorm/u32-normcoll: Likewise.
30017         * modules/uninorm/u32-normxfrm: Likewise.
30018         * modules/unistdio/u8-asnprintf: Likewise.
30019         * modules/unistdio/u8-asprintf: Likewise.
30020         * modules/unistdio/u8-snprintf: Likewise.
30021         * modules/unistdio/u8-sprintf: Likewise.
30022         * modules/unistdio/u8-u8-asnprintf: Likewise.
30023         * modules/unistdio/u8-u8-asprintf: Likewise.
30024         * modules/unistdio/u8-u8-snprintf: Likewise.
30025         * modules/unistdio/u8-u8-sprintf: Likewise.
30026         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30027         * modules/unistdio/u8-u8-vasprintf: Likewise.
30028         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30029         * modules/unistdio/u8-u8-vsprintf: Likewise.
30030         * modules/unistdio/u8-vasnprintf: Likewise.
30031         * modules/unistdio/u8-vasprintf: Likewise.
30032         * modules/unistdio/u8-vsnprintf: Likewise.
30033         * modules/unistdio/u8-vsprintf: Likewise.
30034         * modules/unistdio/u16-asnprintf: Likewise.
30035         * modules/unistdio/u16-asprintf: Likewise.
30036         * modules/unistdio/u16-snprintf: Likewise.
30037         * modules/unistdio/u16-sprintf: Likewise.
30038         * modules/unistdio/u16-u16-asnprintf: Likewise.
30039         * modules/unistdio/u16-u16-asprintf: Likewise.
30040         * modules/unistdio/u16-u16-snprintf: Likewise.
30041         * modules/unistdio/u16-u16-sprintf: Likewise.
30042         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30043         * modules/unistdio/u16-u16-vasprintf: Likewise.
30044         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30045         * modules/unistdio/u16-u16-vsprintf: Likewise.
30046         * modules/unistdio/u16-vasnprintf: Likewise.
30047         * modules/unistdio/u16-vasprintf: Likewise.
30048         * modules/unistdio/u16-vsnprintf: Likewise.
30049         * modules/unistdio/u16-vsprintf: Likewise.
30050         * modules/unistdio/u32-asnprintf: Likewise.
30051         * modules/unistdio/u32-asprintf: Likewise.
30052         * modules/unistdio/u32-snprintf: Likewise.
30053         * modules/unistdio/u32-sprintf: Likewise.
30054         * modules/unistdio/u32-u32-asnprintf: Likewise.
30055         * modules/unistdio/u32-u32-asprintf: Likewise.
30056         * modules/unistdio/u32-u32-snprintf: Likewise.
30057         * modules/unistdio/u32-u32-sprintf: Likewise.
30058         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30059         * modules/unistdio/u32-u32-vasprintf: Likewise.
30060         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30061         * modules/unistdio/u32-u32-vsprintf: Likewise.
30062         * modules/unistdio/u32-vasnprintf: Likewise.
30063         * modules/unistdio/u32-vasprintf: Likewise.
30064         * modules/unistdio/u32-vsnprintf: Likewise.
30065         * modules/unistdio/u32-vsprintf: Likewise.
30066         * modules/unistdio/ulc-asnprintf: Likewise.
30067         * modules/unistdio/ulc-asprintf: Likewise.
30068         * modules/unistdio/ulc-fprintf: Likewise.
30069         * modules/unistdio/ulc-snprintf: Likewise.
30070         * modules/unistdio/ulc-sprintf: Likewise.
30071         * modules/unistdio/ulc-vasnprintf: Likewise.
30072         * modules/unistdio/ulc-vasprintf: Likewise.
30073         * modules/unistdio/ulc-vfprintf: Likewise.
30074         * modules/unistdio/ulc-vsnprintf: Likewise.
30075         * modules/unistdio/ulc-vsprintf: Likewise.
30076         * modules/unistr/u8-check: Likewise.
30077         * modules/unistr/u8-chr: Likewise.
30078         * modules/unistr/u8-cmp: Likewise.
30079         * modules/unistr/u8-cmp2: Likewise.
30080         * modules/unistr/u8-cpy: Likewise.
30081         * modules/unistr/u8-cpy-alloc: Likewise.
30082         * modules/unistr/u8-endswith: Likewise.
30083         * modules/unistr/u8-mblen: Likewise.
30084         * modules/unistr/u8-mbsnlen: Likewise.
30085         * modules/unistr/u8-mbtouc: Likewise.
30086         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30087         * modules/unistr/u8-mbtoucr: Likewise.
30088         * modules/unistr/u8-move: Likewise.
30089         * modules/unistr/u8-next: Likewise.
30090         * modules/unistr/u8-prev: Likewise.
30091         * modules/unistr/u8-set: Likewise.
30092         * modules/unistr/u8-startswith: Likewise.
30093         * modules/unistr/u8-stpcpy: Likewise.
30094         * modules/unistr/u8-stpncpy: Likewise.
30095         * modules/unistr/u8-strcat: Likewise.
30096         * modules/unistr/u8-strchr: Likewise.
30097         * modules/unistr/u8-strcmp: Likewise.
30098         * modules/unistr/u8-strcoll: Likewise.
30099         * modules/unistr/u8-strcpy: Likewise.
30100         * modules/unistr/u8-strcspn: Likewise.
30101         * modules/unistr/u8-strdup: Likewise.
30102         * modules/unistr/u8-strlen: Likewise.
30103         * modules/unistr/u8-strmblen: Likewise.
30104         * modules/unistr/u8-strmbtouc: Likewise.
30105         * modules/unistr/u8-strncat: Likewise.
30106         * modules/unistr/u8-strncmp: Likewise.
30107         * modules/unistr/u8-strncpy: Likewise.
30108         * modules/unistr/u8-strnlen: Likewise.
30109         * modules/unistr/u8-strpbrk: Likewise.
30110         * modules/unistr/u8-strrchr: Likewise.
30111         * modules/unistr/u8-strspn: Likewise.
30112         * modules/unistr/u8-strstr: Likewise.
30113         * modules/unistr/u8-strtok: Likewise.
30114         * modules/unistr/u8-to-u16: Likewise.
30115         * modules/unistr/u8-to-u32: Likewise.
30116         * modules/unistr/u8-uctomb: Likewise.
30117         * modules/unistr/u16-check: Likewise.
30118         * modules/unistr/u16-chr: Likewise.
30119         * modules/unistr/u16-cmp: Likewise.
30120         * modules/unistr/u16-cmp2: Likewise.
30121         * modules/unistr/u16-cpy: Likewise.
30122         * modules/unistr/u16-cpy-alloc: Likewise.
30123         * modules/unistr/u16-endswith: Likewise.
30124         * modules/unistr/u16-mblen: Likewise.
30125         * modules/unistr/u16-mbsnlen: Likewise.
30126         * modules/unistr/u16-mbtouc: Likewise.
30127         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30128         * modules/unistr/u16-mbtoucr: Likewise.
30129         * modules/unistr/u16-move: Likewise.
30130         * modules/unistr/u16-next: Likewise.
30131         * modules/unistr/u16-prev: Likewise.
30132         * modules/unistr/u16-set: Likewise.
30133         * modules/unistr/u16-startswith: Likewise.
30134         * modules/unistr/u16-stpcpy: Likewise.
30135         * modules/unistr/u16-stpncpy: Likewise.
30136         * modules/unistr/u16-strcat: Likewise.
30137         * modules/unistr/u16-strchr: Likewise.
30138         * modules/unistr/u16-strcmp: Likewise.
30139         * modules/unistr/u16-strcoll: Likewise.
30140         * modules/unistr/u16-strcpy: Likewise.
30141         * modules/unistr/u16-strcspn: Likewise.
30142         * modules/unistr/u16-strdup: Likewise.
30143         * modules/unistr/u16-strlen: Likewise.
30144         * modules/unistr/u16-strmblen: Likewise.
30145         * modules/unistr/u16-strmbtouc: Likewise.
30146         * modules/unistr/u16-strncat: Likewise.
30147         * modules/unistr/u16-strncmp: Likewise.
30148         * modules/unistr/u16-strncpy: Likewise.
30149         * modules/unistr/u16-strnlen: Likewise.
30150         * modules/unistr/u16-strpbrk: Likewise.
30151         * modules/unistr/u16-strrchr: Likewise.
30152         * modules/unistr/u16-strspn: Likewise.
30153         * modules/unistr/u16-strstr: Likewise.
30154         * modules/unistr/u16-strtok: Likewise.
30155         * modules/unistr/u16-to-u32: Likewise.
30156         * modules/unistr/u16-to-u8: Likewise.
30157         * modules/unistr/u16-uctomb: Likewise.
30158         * modules/unistr/u32-check: Likewise.
30159         * modules/unistr/u32-chr: Likewise.
30160         * modules/unistr/u32-cmp: Likewise.
30161         * modules/unistr/u32-cmp2: Likewise.
30162         * modules/unistr/u32-cpy: Likewise.
30163         * modules/unistr/u32-cpy-alloc: Likewise.
30164         * modules/unistr/u32-endswith: Likewise.
30165         * modules/unistr/u32-mblen: Likewise.
30166         * modules/unistr/u32-mbsnlen: Likewise.
30167         * modules/unistr/u32-mbtouc: Likewise.
30168         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30169         * modules/unistr/u32-mbtoucr: Likewise.
30170         * modules/unistr/u32-move: Likewise.
30171         * modules/unistr/u32-next: Likewise.
30172         * modules/unistr/u32-prev: Likewise.
30173         * modules/unistr/u32-set: Likewise.
30174         * modules/unistr/u32-startswith: Likewise.
30175         * modules/unistr/u32-stpcpy: Likewise.
30176         * modules/unistr/u32-stpncpy: Likewise.
30177         * modules/unistr/u32-strcat: Likewise.
30178         * modules/unistr/u32-strchr: Likewise.
30179         * modules/unistr/u32-strcmp: Likewise.
30180         * modules/unistr/u32-strcoll: Likewise.
30181         * modules/unistr/u32-strcpy: Likewise.
30182         * modules/unistr/u32-strcspn: Likewise.
30183         * modules/unistr/u32-strdup: Likewise.
30184         * modules/unistr/u32-strlen: Likewise.
30185         * modules/unistr/u32-strmblen: Likewise.
30186         * modules/unistr/u32-strmbtouc: Likewise.
30187         * modules/unistr/u32-strncat: Likewise.
30188         * modules/unistr/u32-strncmp: Likewise.
30189         * modules/unistr/u32-strncpy: Likewise.
30190         * modules/unistr/u32-strnlen: Likewise.
30191         * modules/unistr/u32-strpbrk: Likewise.
30192         * modules/unistr/u32-strrchr: Likewise.
30193         * modules/unistr/u32-strspn: Likewise.
30194         * modules/unistr/u32-strstr: Likewise.
30195         * modules/unistr/u32-strtok: Likewise.
30196         * modules/unistr/u32-to-u16: Likewise.
30197         * modules/unistr/u32-to-u8: Likewise.
30198         * modules/unistr/u32-uctomb: Likewise.
30199         * modules/uniwbrk/u8-wordbreaks: Likewise.
30200         * modules/uniwbrk/u16-wordbreaks: Likewise.
30201         * modules/uniwbrk/u32-wordbreaks: Likewise.
30202         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30203         * modules/uniwbrk/wordbreak-property: Likewise.
30204         * modules/uniwidth/u8-strwidth: Likewise.
30205         * modules/uniwidth/u8-width: Likewise.
30206         * modules/uniwidth/u16-strwidth: Likewise.
30207         * modules/uniwidth/u16-width: Likewise.
30208         * modules/uniwidth/u32-strwidth: Likewise.
30209         * modules/uniwidth/u32-width: Likewise.
30210         * modules/uniwidth/width: Likewise.
30211         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30212         with $(LIBUNISTRING).
30213         * modules/unicase/ignorable-tests: Likewise.
30214         * modules/unicase/locale-language-tests: Likewise.
30215         * modules/unicase/tolower-tests: Likewise.
30216         * modules/unicase/totitle-tests: Likewise.
30217         * modules/unicase/toupper-tests: Likewise.
30218         * modules/unicase/u8-casecmp-tests: Likewise.
30219         * modules/unicase/u8-casecoll-tests: Likewise.
30220         * modules/unicase/u8-casefold-tests: Likewise.
30221         * modules/unicase/u8-is-cased-tests: Likewise.
30222         * modules/unicase/u8-is-casefolded-tests: Likewise.
30223         * modules/unicase/u8-is-lowercase-tests: Likewise.
30224         * modules/unicase/u8-is-titlecase-tests: Likewise.
30225         * modules/unicase/u8-is-uppercase-tests: Likewise.
30226         * modules/unicase/u8-tolower-tests: Likewise.
30227         * modules/unicase/u8-totitle-tests: Likewise.
30228         * modules/unicase/u8-toupper-tests: Likewise.
30229         * modules/unicase/u16-casecmp-tests: Likewise.
30230         * modules/unicase/u16-casecoll-tests: Likewise.
30231         * modules/unicase/u16-casefold-tests: Likewise.
30232         * modules/unicase/u16-is-cased-tests: Likewise.
30233         * modules/unicase/u16-is-casefolded-tests: Likewise.
30234         * modules/unicase/u16-is-lowercase-tests: Likewise.
30235         * modules/unicase/u16-is-titlecase-tests: Likewise.
30236         * modules/unicase/u16-is-uppercase-tests: Likewise.
30237         * modules/unicase/u16-tolower-tests: Likewise.
30238         * modules/unicase/u16-totitle-tests: Likewise.
30239         * modules/unicase/u16-toupper-tests: Likewise.
30240         * modules/unicase/u32-casecmp-tests: Likewise.
30241         * modules/unicase/u32-casecoll-tests: Likewise.
30242         * modules/unicase/u32-casefold-tests: Likewise.
30243         * modules/unicase/u32-is-cased-tests: Likewise.
30244         * modules/unicase/u32-is-casefolded-tests: Likewise.
30245         * modules/unicase/u32-is-lowercase-tests: Likewise.
30246         * modules/unicase/u32-is-titlecase-tests: Likewise.
30247         * modules/unicase/u32-is-uppercase-tests: Likewise.
30248         * modules/unicase/u32-tolower-tests: Likewise.
30249         * modules/unicase/u32-totitle-tests: Likewise.
30250         * modules/unicase/u32-toupper-tests: Likewise.
30251         * modules/unicase/ulc-casecmp-tests: Likewise.
30252         * modules/unicase/ulc-casecoll-tests: Likewise.
30253         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30254         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30255         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30256         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30257         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30258         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30259         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30260         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30261         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30262         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30263         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30264         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30265         * modules/unictype/bidicategory-byname-tests: Likewise.
30266         * modules/unictype/bidicategory-name-tests: Likewise.
30267         * modules/unictype/bidicategory-of-tests: Likewise.
30268         * modules/unictype/bidicategory-test-tests: Likewise.
30269         * modules/unictype/block-list-tests: Likewise.
30270         * modules/unictype/block-of-tests: Likewise.
30271         * modules/unictype/block-test-tests: Likewise.
30272         * modules/unictype/category-C-tests: Likewise.
30273         * modules/unictype/category-Cc-tests: Likewise.
30274         * modules/unictype/category-Cf-tests: Likewise.
30275         * modules/unictype/category-Cn-tests: Likewise.
30276         * modules/unictype/category-Co-tests: Likewise.
30277         * modules/unictype/category-Cs-tests: Likewise.
30278         * modules/unictype/category-L-tests: Likewise.
30279         * modules/unictype/category-Ll-tests: Likewise.
30280         * modules/unictype/category-Lm-tests: Likewise.
30281         * modules/unictype/category-Lo-tests: Likewise.
30282         * modules/unictype/category-Lt-tests: Likewise.
30283         * modules/unictype/category-Lu-tests: Likewise.
30284         * modules/unictype/category-M-tests: Likewise.
30285         * modules/unictype/category-Mc-tests: Likewise.
30286         * modules/unictype/category-Me-tests: Likewise.
30287         * modules/unictype/category-Mn-tests: Likewise.
30288         * modules/unictype/category-N-tests: Likewise.
30289         * modules/unictype/category-Nd-tests: Likewise.
30290         * modules/unictype/category-Nl-tests: Likewise.
30291         * modules/unictype/category-No-tests: Likewise.
30292         * modules/unictype/category-P-tests: Likewise.
30293         * modules/unictype/category-Pc-tests: Likewise.
30294         * modules/unictype/category-Pd-tests: Likewise.
30295         * modules/unictype/category-Pe-tests: Likewise.
30296         * modules/unictype/category-Pf-tests: Likewise.
30297         * modules/unictype/category-Pi-tests: Likewise.
30298         * modules/unictype/category-Po-tests: Likewise.
30299         * modules/unictype/category-Ps-tests: Likewise.
30300         * modules/unictype/category-S-tests: Likewise.
30301         * modules/unictype/category-Sc-tests: Likewise.
30302         * modules/unictype/category-Sk-tests: Likewise.
30303         * modules/unictype/category-Sm-tests: Likewise.
30304         * modules/unictype/category-So-tests: Likewise.
30305         * modules/unictype/category-Z-tests: Likewise.
30306         * modules/unictype/category-Zl-tests: Likewise.
30307         * modules/unictype/category-Zp-tests: Likewise.
30308         * modules/unictype/category-Zs-tests: Likewise.
30309         * modules/unictype/category-and-not-tests: Likewise.
30310         * modules/unictype/category-and-tests: Likewise.
30311         * modules/unictype/category-byname-tests: Likewise.
30312         * modules/unictype/category-name-tests: Likewise.
30313         * modules/unictype/category-none-tests: Likewise.
30314         * modules/unictype/category-of-tests: Likewise.
30315         * modules/unictype/category-or-tests: Likewise.
30316         * modules/unictype/category-test-withtable-tests: Likewise.
30317         * modules/unictype/combining-class-tests: Likewise.
30318         * modules/unictype/ctype-alnum-tests: Likewise.
30319         * modules/unictype/ctype-alpha-tests: Likewise.
30320         * modules/unictype/ctype-blank-tests: Likewise.
30321         * modules/unictype/ctype-cntrl-tests: Likewise.
30322         * modules/unictype/ctype-digit-tests: Likewise.
30323         * modules/unictype/ctype-graph-tests: Likewise.
30324         * modules/unictype/ctype-lower-tests: Likewise.
30325         * modules/unictype/ctype-print-tests: Likewise.
30326         * modules/unictype/ctype-punct-tests: Likewise.
30327         * modules/unictype/ctype-space-tests: Likewise.
30328         * modules/unictype/ctype-upper-tests: Likewise.
30329         * modules/unictype/ctype-xdigit-tests: Likewise.
30330         * modules/unictype/decimal-digit-tests: Likewise.
30331         * modules/unictype/digit-tests: Likewise.
30332         * modules/unictype/mirror-tests: Likewise.
30333         * modules/unictype/numeric-tests: Likewise.
30334         * modules/unictype/property-alphabetic-tests: Likewise.
30335         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30336         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30337         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30338         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30339         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30340         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30341         * modules/unictype/property-bidi-control-tests: Likewise.
30342         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30343         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30344         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30345         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30346         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30347         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30348         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30349         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30350         * modules/unictype/property-bidi-pdf-tests: Likewise.
30351         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30352         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30353         * modules/unictype/property-byname-tests: Likewise.
30354         * modules/unictype/property-combining-tests: Likewise.
30355         * modules/unictype/property-composite-tests: Likewise.
30356         * modules/unictype/property-currency-symbol-tests: Likewise.
30357         * modules/unictype/property-dash-tests: Likewise.
30358         * modules/unictype/property-decimal-digit-tests: Likewise.
30359         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30360         * modules/unictype/property-deprecated-tests: Likewise.
30361         * modules/unictype/property-diacritic-tests: Likewise.
30362         * modules/unictype/property-extender-tests: Likewise.
30363         * modules/unictype/property-format-control-tests: Likewise.
30364         * modules/unictype/property-grapheme-base-tests: Likewise.
30365         * modules/unictype/property-grapheme-extend-tests: Likewise.
30366         * modules/unictype/property-grapheme-link-tests: Likewise.
30367         * modules/unictype/property-hex-digit-tests: Likewise.
30368         * modules/unictype/property-hyphen-tests: Likewise.
30369         * modules/unictype/property-id-continue-tests: Likewise.
30370         * modules/unictype/property-id-start-tests: Likewise.
30371         * modules/unictype/property-ideographic-tests: Likewise.
30372         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30373         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30374         * modules/unictype/property-ignorable-control-tests: Likewise.
30375         * modules/unictype/property-iso-control-tests: Likewise.
30376         * modules/unictype/property-join-control-tests: Likewise.
30377         * modules/unictype/property-left-of-pair-tests: Likewise.
30378         * modules/unictype/property-line-separator-tests: Likewise.
30379         * modules/unictype/property-logical-order-exception-tests: Likewise.
30380         * modules/unictype/property-lowercase-tests: Likewise.
30381         * modules/unictype/property-math-tests: Likewise.
30382         * modules/unictype/property-non-break-tests: Likewise.
30383         * modules/unictype/property-not-a-character-tests: Likewise.
30384         * modules/unictype/property-numeric-tests: Likewise.
30385         * modules/unictype/property-other-alphabetic-tests: Likewise.
30386         * modules/unictype/property-other-default-ignorable-code-point-tests:
30387         Likewise.
30388         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30389         * modules/unictype/property-other-id-continue-tests: Likewise.
30390         * modules/unictype/property-other-id-start-tests: Likewise.
30391         * modules/unictype/property-other-lowercase-tests: Likewise.
30392         * modules/unictype/property-other-math-tests: Likewise.
30393         * modules/unictype/property-other-uppercase-tests: Likewise.
30394         * modules/unictype/property-paired-punctuation-tests: Likewise.
30395         * modules/unictype/property-paragraph-separator-tests: Likewise.
30396         * modules/unictype/property-pattern-syntax-tests: Likewise.
30397         * modules/unictype/property-pattern-white-space-tests: Likewise.
30398         * modules/unictype/property-private-use-tests: Likewise.
30399         * modules/unictype/property-punctuation-tests: Likewise.
30400         * modules/unictype/property-quotation-mark-tests: Likewise.
30401         * modules/unictype/property-radical-tests: Likewise.
30402         * modules/unictype/property-sentence-terminal-tests: Likewise.
30403         * modules/unictype/property-soft-dotted-tests: Likewise.
30404         * modules/unictype/property-space-tests: Likewise.
30405         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30406         * modules/unictype/property-test-tests: Likewise.
30407         * modules/unictype/property-titlecase-tests: Likewise.
30408         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30409         * modules/unictype/property-unified-ideograph-tests: Likewise.
30410         * modules/unictype/property-uppercase-tests: Likewise.
30411         * modules/unictype/property-variation-selector-tests: Likewise.
30412         * modules/unictype/property-white-space-tests: Likewise.
30413         * modules/unictype/property-xid-continue-tests: Likewise.
30414         * modules/unictype/property-xid-start-tests: Likewise.
30415         * modules/unictype/property-zero-width-tests: Likewise.
30416         * modules/unictype/scripts-tests: Likewise.
30417         * modules/unictype/syntax-c-ident-tests: Likewise.
30418         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30419         * modules/unictype/syntax-java-ident-tests: Likewise.
30420         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30421         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30422         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30423         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30424         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30425         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30426         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30427         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30428         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30429         * modules/uniname/uniname-tests: Likewise.
30430         * modules/uninorm/canonical-decomposition-tests: Likewise.
30431         * modules/uninorm/compat-decomposition-tests: Likewise.
30432         * modules/uninorm/composition-tests: Likewise.
30433         * modules/uninorm/decomposing-form-tests: Likewise.
30434         * modules/uninorm/decomposition-tests: Likewise.
30435         * modules/uninorm/filter-tests: Likewise.
30436         * modules/uninorm/nfc-tests: Likewise.
30437         * modules/uninorm/nfd-tests: Likewise.
30438         * modules/uninorm/nfkc-tests: Likewise.
30439         * modules/uninorm/nfkd-tests: Likewise.
30440         * modules/uninorm/u8-normcmp-tests: Likewise.
30441         * modules/uninorm/u8-normcoll-tests: Likewise.
30442         * modules/uninorm/u16-normcmp-tests: Likewise.
30443         * modules/uninorm/u16-normcoll-tests: Likewise.
30444         * modules/uninorm/u32-normcmp-tests: Likewise.
30445         * modules/uninorm/u32-normcoll-tests: Likewise.
30446         * modules/unistdio/u8-asnprintf-tests: Likewise.
30447         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30448         * modules/unistdio/u8-vasprintf-tests: Likewise.
30449         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30450         * modules/unistdio/u8-vsprintf-tests: Likewise.
30451         * modules/unistdio/u16-asnprintf-tests: Likewise.
30452         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30453         * modules/unistdio/u16-vasprintf-tests: Likewise.
30454         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30455         * modules/unistdio/u16-vsprintf-tests: Likewise.
30456         * modules/unistdio/u32-asnprintf-tests: Likewise.
30457         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30458         * modules/unistdio/u32-vasprintf-tests: Likewise.
30459         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30460         * modules/unistdio/u32-vsprintf-tests: Likewise.
30461         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30462         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30463         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30464         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30465         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30466         * modules/unistr/u8-check-tests: Likewise.
30467         * modules/unistr/u8-chr-tests: Likewise.
30468         * modules/unistr/u8-cmp-tests: Likewise.
30469         * modules/unistr/u8-cmp2-tests: Likewise.
30470         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30471         * modules/unistr/u8-cpy-tests: Likewise.
30472         * modules/unistr/u8-mblen-tests: Likewise.
30473         * modules/unistr/u8-mbsnlen-tests: Likewise.
30474         * modules/unistr/u8-mbtouc-tests: Likewise.
30475         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30476         * modules/unistr/u8-mbtoucr-tests: Likewise.
30477         * modules/unistr/u8-move-tests: Likewise.
30478         * modules/unistr/u8-next-tests: Likewise.
30479         * modules/unistr/u8-prev-tests: Likewise.
30480         * modules/unistr/u8-set-tests: Likewise.
30481         * modules/unistr/u8-stpcpy-tests: Likewise.
30482         * modules/unistr/u8-stpncpy-tests: Likewise.
30483         * modules/unistr/u8-strcat-tests: Likewise.
30484         * modules/unistr/u8-strcmp-tests: Likewise.
30485         * modules/unistr/u8-strcoll-tests: Likewise.
30486         * modules/unistr/u8-strcpy-tests: Likewise.
30487         * modules/unistr/u8-strdup-tests: Likewise.
30488         * modules/unistr/u8-strlen-tests: Likewise.
30489         * modules/unistr/u8-strmblen-tests: Likewise.
30490         * modules/unistr/u8-strmbtouc-tests: Likewise.
30491         * modules/unistr/u8-strncat-tests: Likewise.
30492         * modules/unistr/u8-strncmp-tests: Likewise.
30493         * modules/unistr/u8-strncpy-tests: Likewise.
30494         * modules/unistr/u8-strnlen-tests: Likewise.
30495         * modules/unistr/u8-to-u16-tests: Likewise.
30496         * modules/unistr/u8-to-u32-tests: Likewise.
30497         * modules/unistr/u8-uctomb-tests: Likewise.
30498         * modules/unistr/u16-check-tests: Likewise.
30499         * modules/unistr/u16-chr-tests: Likewise.
30500         * modules/unistr/u16-cmp-tests: Likewise.
30501         * modules/unistr/u16-cmp2-tests: Likewise.
30502         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30503         * modules/unistr/u16-cpy-tests: Likewise.
30504         * modules/unistr/u16-mblen-tests: Likewise.
30505         * modules/unistr/u16-mbsnlen-tests: Likewise.
30506         * modules/unistr/u16-mbtouc-tests: Likewise.
30507         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30508         * modules/unistr/u16-mbtoucr-tests: Likewise.
30509         * modules/unistr/u16-move-tests: Likewise.
30510         * modules/unistr/u16-next-tests: Likewise.
30511         * modules/unistr/u16-prev-tests: Likewise.
30512         * modules/unistr/u16-set-tests: Likewise.
30513         * modules/unistr/u16-stpcpy-tests: Likewise.
30514         * modules/unistr/u16-stpncpy-tests: Likewise.
30515         * modules/unistr/u16-strcat-tests: Likewise.
30516         * modules/unistr/u16-strcmp-tests: Likewise.
30517         * modules/unistr/u16-strcoll-tests: Likewise.
30518         * modules/unistr/u16-strcpy-tests: Likewise.
30519         * modules/unistr/u16-strdup-tests: Likewise.
30520         * modules/unistr/u16-strlen-tests: Likewise.
30521         * modules/unistr/u16-strmblen-tests: Likewise.
30522         * modules/unistr/u16-strmbtouc-tests: Likewise.
30523         * modules/unistr/u16-strncat-tests: Likewise.
30524         * modules/unistr/u16-strncmp-tests: Likewise.
30525         * modules/unistr/u16-strncpy-tests: Likewise.
30526         * modules/unistr/u16-strnlen-tests: Likewise.
30527         * modules/unistr/u16-to-u32-tests: Likewise.
30528         * modules/unistr/u16-to-u8-tests: Likewise.
30529         * modules/unistr/u16-uctomb-tests: Likewise.
30530         * modules/unistr/u32-check-tests: Likewise.
30531         * modules/unistr/u32-chr-tests: Likewise.
30532         * modules/unistr/u32-cmp-tests: Likewise.
30533         * modules/unistr/u32-cmp2-tests: Likewise.
30534         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30535         * modules/unistr/u32-cpy-tests: Likewise.
30536         * modules/unistr/u32-mblen-tests: Likewise.
30537         * modules/unistr/u32-mbsnlen-tests: Likewise.
30538         * modules/unistr/u32-mbtouc-tests: Likewise.
30539         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30540         * modules/unistr/u32-mbtoucr-tests: Likewise.
30541         * modules/unistr/u32-move-tests: Likewise.
30542         * modules/unistr/u32-next-tests: Likewise.
30543         * modules/unistr/u32-prev-tests: Likewise.
30544         * modules/unistr/u32-set-tests: Likewise.
30545         * modules/unistr/u32-stpcpy-tests: Likewise.
30546         * modules/unistr/u32-stpncpy-tests: Likewise.
30547         * modules/unistr/u32-strcat-tests: Likewise.
30548         * modules/unistr/u32-strcmp-tests: Likewise.
30549         * modules/unistr/u32-strcoll-tests: Likewise.
30550         * modules/unistr/u32-strcpy-tests: Likewise.
30551         * modules/unistr/u32-strdup-tests: Likewise.
30552         * modules/unistr/u32-strlen-tests: Likewise.
30553         * modules/unistr/u32-strmblen-tests: Likewise.
30554         * modules/unistr/u32-strmbtouc-tests: Likewise.
30555         * modules/unistr/u32-strncat-tests: Likewise.
30556         * modules/unistr/u32-strncmp-tests: Likewise.
30557         * modules/unistr/u32-strncpy-tests: Likewise.
30558         * modules/unistr/u32-strnlen-tests: Likewise.
30559         * modules/unistr/u32-to-u16-tests: Likewise.
30560         * modules/unistr/u32-to-u8-tests: Likewise.
30561         * modules/unistr/u32-uctomb-tests: Likewise.
30562         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30563         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30564         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30565         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30566         * modules/uniwidth/u8-strwidth-tests: Likewise.
30567         * modules/uniwidth/u8-width-tests: Likewise.
30568         * modules/uniwidth/u16-strwidth-tests: Likewise.
30569         * modules/uniwidth/u16-width-tests: Likewise.
30570         * modules/uniwidth/u32-strwidth-tests: Likewise.
30571         * modules/uniwidth/u32-width-tests: Likewise.
30572         * modules/uniwidth/width-tests: Likewise.
30573
30574 2010-05-18  Richard Jones  <rjones@redhat.com>
30575
30576         doc: users.txt: list hivex
30577         * users.txt: Add hivex.
30578
30579 2010-05-18  Richard Jones  <rjones@redhat.com>
30580
30581         doc: users.txt: list febootstrap
30582         * users.txt: Add febootstrap.
30583
30584 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30585
30586         bootstrap: fix an error when gnulib is not used as a git submodule
30587         * build-aux/bootstrap (gnulib_path): If its length is zero then
30588         assign "gnulib" to it.
30589         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30590
30591 2010-05-16  Bruno Haible  <bruno@clisp.org>
30592
30593         Avoid autoconf warnings about AM_ICONV.
30594         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30595         2.64.
30596
30597 2010-05-16  Bruno Haible  <bruno@clisp.org>
30598
30599         absolute-header: Make the macro usable in more situations.
30600         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30601         from gl_ABSOLUTE_HEADER.
30602         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30603
30604 2010-05-16  James Youngman  <jay@gnu.org>
30605
30606         doc: update users.txt
30607         * users.txt: Add CSSC.
30608
30609 2010-05-16  Jim Meyering  <meyering@redhat.com>
30610
30611         init.sh: fix an error in the previous change; add more comments
30612         * tests/init.sh: Compare exit code in loop against 9, not 2.
30613         Patch by Bruno Haible.
30614         Make the two tests more similar by adding an empty "then" clause.
30615         Add comments.
30616
30617         init.sh: avoid unnecessary shell re-exec
30618         * tests/init.sh: Improve the re-exec-required check to first test the
30619         current shell.  If it passes the test, do not search for a shell that
30620         does pass, and do not re-exec.  This test is particularly contorted to
30621         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30622         of $(...) evokes a syntax error and causes immediate shell exit with
30623         status 2.  Bruno Haible reported that the re-exec made it impossible
30624         to single-step through any init.sh-using script.
30625
30626 2010-05-16  Bruno Haible  <bruno@clisp.org>
30627
30628         Fix collision between gnulib's and libintl's printf replacements.
30629         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30630         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30631         (printf): When using GNU C, map the __printf__ function to rpl_printf
30632         via __asm__. When not using GNU C, define rpl_printf instead of
30633         __printf__.
30634         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30635         commit.
30636         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30637         commit.
30638         * m4/asm-underscore.m4: New file.
30639         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30640         * modules/stdio (Files): Add m4/asm-underscore.m4.
30641         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30642         Reported by Ben Pfaff.
30643
30644 2010-05-16  Bruno Haible  <bruno@clisp.org>
30645
30646         verify: Avoid skipping the test on openSUSE 11.0.
30647         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30648
30649 2010-05-13  Bruno Haible  <bruno@clisp.org>
30650
30651         Avoid useless warnings from G++.
30652         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30653         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30654         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30655
30656 2010-05-11  Jim Meyering  <meyering@redhat.com>
30657
30658         maint.mk: tweak preceding change
30659         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30660         regexps tighter by anchoring at EOL, and make the new group "shy"
30661         for slightly decreased overhead.
30662
30663 2010-05-11  Eric Blake  <eblake@redhat.com>
30664
30665         maint.mk: gnulib doesn't guarantee NSIG
30666         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30667
30668 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30669
30670         test-pwrite.c: Remove unused variable declaration.
30671         * tests/test-pwrite.c (main): Remove read_buf declaration.
30672
30673         Remove useless test-pwrite.sh file.
30674         * tests/test-pwrite.sh: Delete file.
30675         * modules/pwrite-tests: Remove references.
30676         Reported by Bruno Haible.
30677
30678 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30679
30680         init.sh: fix a typo
30681         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30682
30683 2010-05-10  Jim Meyering  <meyering@redhat.com>
30684
30685         maint.mk: avoid using a temporary file in the always-defined-macros check
30686         * top/maint.mk (.re-defmac): Remove rule.
30687         (gl_trap_): Remove definition.
30688         (sc_prohibit_always-defined_macros): Rewrite not to create and
30689         depend on a temporary file.  Instead, depend on GNU grep's ability
30690         to read a list of regular expressions from stdin when given "-f -".
30691
30692 2010-05-09  Bruno Haible  <bruno@clisp.org>
30693
30694         Update to GNU gettext 0.18, part 1.
30695         * m4/gettext.m4: Update to GNU gettext 0.18.
30696         * m4/intl.m4: Likewise.
30697         * m4/po.m4: Likewise.
30698         * modules/gettext (Files): Add m4/fcntl-o.m4.
30699         (configure.ac): Require gettext infrastructure from version 0.18.
30700
30701 2010-05-09  Jim Meyering  <meyering@redhat.com>
30702
30703         init.sh: enable MALLOC_PERTURB_
30704         * tests/init.sh: Enable glibc's malloc-perturbing option.
30705
30706         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30707         With my recent change in init.sh from the two-line form:
30708             -#   : ${srcdir=.}
30709             -#   . "$srcdir/init.sh"; path_prepend_ .
30710             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30711         I noticed that using the one-line form would cause this test
30712         to fail with a false-positive, or to stop working altogether,
30713         depending on whether help-version changed or all the tests did.
30714         * top/maint.mk (_hv_regex): Remove this definition.
30715         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30716         (_hv_regex_strong): Use a stronger regex to check for conformance.
30717         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30718         Give a separate diagnostic for lack of conforming use.
30719
30720         maint.mk: prohibit definition of symbols defined by gnulib
30721         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30722         definition of symbols defined by gnulib.
30723
30724 2010-05-09  Bruno Haible  <bruno@clisp.org>
30725
30726         acl: Avoid test failure on Cygwin-hosted mingw.
30727         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30728
30729 2010-05-09  Bruno Haible  <bruno@clisp.org>
30730
30731         error: Use system's fcntl function.
30732         * lib/error.c (fcntl): Undefine.
30733
30734 2010-05-09  Jim Meyering  <meyering@redhat.com>
30735
30736         verify: adjust formatting to be more consistent
30737         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30738         argument-list '('s, and after one comma.
30739
30740 2010-05-09  Bruno Haible  <bruno@clisp.org>
30741
30742         error: More reliable output on mingw.
30743         * lib/error.c: Include <windows.h>.
30744         (is_open): New function.
30745         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30746         defined.
30747
30748 2010-05-09  Bruno Haible  <bruno@clisp.org>
30749
30750         vasnprintf: Fix syntax errors in libintl build on mingw.
30751         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30752         pad_ourselves and prec_ourselves after use.
30753
30754 2010-05-08  Bruno Haible  <bruno@clisp.org>
30755
30756         * lib/config.charset: Update comments for Cygwin 1.7.
30757         * lib/localcharset.c: Likewise.
30758
30759 2010-05-07  Jim Meyering  <meyering@redhat.com>
30760
30761         init.sh: improve comments
30762         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30763         . "${srcdir=.}/init.sh"; path_prepend_ .
30764         Add a note about path_prepend_ and the alternative of using
30765         TESTS_ENVIRONMENT.
30766
30767 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30768
30769         exclude: Unescape hashed patterns in wildcard mode.
30770         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30771         to the hash list.
30772         * tests/test-exclude8.sh: New test case.
30773         * modules/exclude-tests: Add new test.
30774
30775 2010-05-05  Eric Blake  <eblake@redhat.com>
30776
30777         verify: automate tests
30778         * modules/verify-tests: New module.
30779         * tests/test-verify.sh: New file.
30780         * tests/test-verify.c: Guard each negative test with a unique id.
30781         Also avoid warning about unused left hand of comma expressions.
30782
30783 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30784
30785         Further improvements to verify.h, suggested by Eric Blake.
30786         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30787         the GL_* versions, to avoid collision with OpenGL.
30788         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30789         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30790         than testing merely whether it's defined.
30791
30792         Modify verify.h to pacify gcc -Wredundant_decls.
30793         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30794         These use the prefix "GL_" since they're likely to be useful elsewhere.
30795         We may need to break them out into a different .h file.
30796         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30797         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30798         of verify_function__.
30799
30800 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30801
30802         Tests for module pwrite.
30803         * modules/pwrite-tests: New file.
30804         * tests/test-pwrite.sh: New file.
30805         * tests/test-pwrite.c: New file.
30806
30807         New module pwrite.
30808         * lib/unistd.in.h (pwrite): New declaration.
30809         * lib/pwrite.c: New file, from glibc with modifications.
30810         * m4/pwrite.m4: New file.
30811         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30812         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30813         REPLACE_PWRITE.
30814         * modules/pwrite: New file.
30815         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30816         REPLACE_PWRITE.
30817         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30818         * doc/posix-functions/pwrite.texi: Mention the new module.
30819
30820 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30821
30822         pread: Update documentation.
30823         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30824
30825 2010-05-04  Eric Blake  <eblake@redhat.com>
30826
30827         docs: update cygwin progress
30828         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30829         this bug.
30830         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30831         Added in cygwin 1.7.2.
30832         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30833         Likewise.
30834         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30835         Likewise.
30836         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30837         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30838         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30839         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30840         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30841         Mention nproc module.
30842         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30843         bug in cygwin 1.7.5 addition.
30844         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30845         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30846         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30847         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30848         1.7.5.
30849         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30850         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30851         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30852         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30853         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30854         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30855         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30856         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30857         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30858         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30859         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30860         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30861         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30862         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30863         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30864         Likewise.
30865         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30866         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30867         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30868         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30869         Likewise.
30870         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30871         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30872         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30873         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30874         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30875         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30876         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30877         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30878         Likewise.
30879         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30880         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30881         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30882         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30883         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30884         Likewise.
30885         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30886         Likewise.
30887         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30888         Likewise.
30889         * doc/glibc-functions/xdrrec_endofrecord.texi
30890         (xdrrec_endofrecord): Likewise.
30891         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30892         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30893         Likewise.
30894         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30895         Likewise.
30896
30897 2010-05-04  Jim Meyering  <meyering@redhat.com>
30898
30899         gendocs.sh: make its "-s FILE" option more useful
30900         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30901         $PACKAGE to reflect the probably-different basename of "FILE".
30902
30903 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30904
30905         bootstrap: don't ignore download_po_files failure
30906         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30907         failure.
30908
30909 2010-05-03  Jim Meyering  <meyering@redhat.com>
30910
30911         maint.mk: allow to pass options to gendocs.sh
30912         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30913         (gendocs_options_): New overridable variable.
30914
30915         gnu-web-doc-update: don't ignore configure or build failure
30916         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30917
30918         announce-gen: backslash-escape '@'s in --help output
30919         * build-aux/announce-gen: Fix syntax errors.
30920
30921         maint.mk, announce-gen: allow project-specific announcement mail headers
30922         * top/maint.mk (translation_project_): Define default.
30923         (announcement_Cc_, announcement_mail_headers_): Likewise.
30924         (announcement): Invoke announce-gen with new --mail-headers option.
30925         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30926
30927         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30928         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30929         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30930         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30931         line in the "err2" output file when running "make check" in verbose
30932         mode (i.e., with set -x enabled).
30933
30934 2010-05-03  Bruno Haible  <bruno@clisp.org>
30935
30936         wctob: Fix for weird platforms.
30937         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30938         argument value.
30939
30940 2010-05-03  Jim Meyering  <meyering@redhat.com>
30941
30942         maint.mk: prohibit unwarranted use of <strings.h>
30943         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30944         strings.h in a file that does not also use strcasecmp, strncasecmp,
30945         ffs or ffsll.
30946
30947         maint.mk: remove obsolete comments
30948         * top/maint.mk: Remove stale, commented-out rules.
30949
30950 2010-05-02  Bruno Haible  <bruno@clisp.org>
30951
30952         wcwidth: Declare also when it's aliased.
30953         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30954         macro.
30955
30956 2010-05-02  Bruno Haible  <bruno@clisp.org>
30957
30958         Fix regression from 2010-04-25.
30959         * gnulib-tool (func_modules_transitive_closure): Check the status of
30960         all modules, not only of the tests that are of the form foo-tests where
30961         foo is a module.
30962
30963 2010-05-02  Bruno Haible  <bruno@clisp.org>
30964
30965         wctob: Work around nasty Cygwin 1.7.2 bug.
30966         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30967         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30968
30969 2010-05-01  Bruno Haible  <bruno@clisp.org>
30970
30971         fpurge: Sharper test.
30972         * tests/test-fpurge.c (main): Add one more ftell check.
30973         * modules/fpurge-tests (Depends-on): Add ftell.
30974         Suggested by Eric Blake.
30975
30976 2010-05-01  Bruno Haible  <bruno@clisp.org>
30977
30978         ftello: Another test.
30979         * tests/test-ftello3.c: New file.
30980         * modules/ftello-tests (Files): Add it.
30981         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30982         MOSTLYCLEANFILES.
30983
30984         ftell: Another test.
30985         * tests/test-ftell3.c: New file.
30986         * modules/ftell-tests (Files): Add it.
30987         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30988         MOSTLYCLEANFILES.
30989
30990 2010-05-01  Bruno Haible  <bruno@clisp.org>
30991
30992         ftell, ftello: Work around Solaris bug.
30993         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30994         * lib/ftello.c: Include stdio-impl.h.
30995         (ftello): On Solaris, when _IOWRT is set, compute the result without
30996         looking at _IOREAD.
30997         * modules/ftello (Files): Add lib/stdio-impl.h.
30998         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30999         * doc/posix-functions/ftello.texi: Likewise.
31000         Reported by Eric Blake.
31001
31002 2010-05-01  Bruno Haible  <bruno@clisp.org>
31003
31004         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31005         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31006         the _IOWRT flag is also set.
31007
31008 2010-05-01  Bruno Haible  <bruno@clisp.org>
31009
31010         Fix doc about a HP-UX stdio bug.
31011         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31012         * doc/posix-functions/ftello.texi: Likewise.
31013
31014 2010-05-01  Bruno Haible  <bruno@clisp.org>
31015
31016         lseek test: Fix failure on Solaris.
31017         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31018         output.
31019
31020 2010-04-30  Jim Meyering  <meyering@redhat.com>
31021
31022         bootstrap: don't ignore failure to generate po*/Makevars
31023         * build-aux/bootstrap (with_gettext): Don't ignore failure
31024         to create po/Makevars or runtime-po/Makevars.
31025
31026 2010-04-29  Eric Blake  <eblake@redhat.com>
31027
31028         headers: relax license to LGPLv2+
31029         * modules/fcntl-h (License): Relax license.
31030         * modules/getopt-posix (License): Likewise.
31031         * modules/locale (License): Likewise.
31032         * modules/math (License): Likewise.
31033         * modules/pty (License): Likewise.
31034         * modules/sched (License): Likewise.
31035         * modules/search (License): Likewise.
31036         * modules/spawn (License): Likewise.
31037         * modules/stdarg (License): Likewise.
31038         * modules/sysexits (License): Likewise.
31039
31040 2010-04-29  Jim Meyering  <meyering@redhat.com>
31041
31042         inttypes: relax license to LGPLv2+
31043         * modules/inttypes (License): Relax license.
31044
31045 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31046
31047         * top/maint.mk (indent): Run twice to produce idempotent results.
31048
31049 2010-04-28  Bruno Haible  <bruno@clisp.org>
31050
31051         getdate: Generate getdate.c in the source directory.
31052         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31053         MOSTLYCLEANFILES.
31054         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31055
31056 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31057
31058         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31059         is not declared as a const *; avoid warnings in that case.
31060
31061 2010-04-28  Eric Blake  <eblake@redhat.com>
31062
31063         canonicalize-lgpl: avoid compiler warning
31064         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31065         declaration' / 'extraneous semicolon' warning with some compilers.
31066         Reported by Andreas Gruenbacher.
31067
31068 2010-04-28  Jim Meyering  <meyering@redhat.com>
31069
31070         init.sh: ensure a more reliable exit status when exiting via trap
31071         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31072         Inspired by patches from Dmitry V. Levin.
31073         Also trap on signal 3 (SIGQUIT).
31074
31075 2010-04-27  Bruno Haible  <bruno@clisp.org>
31076
31077         Update doc about utimes().
31078         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31079         'utimens' module.
31080         Reported by Andreas Gruenbacher <agruen@suse.de>.
31081
31082 2010-04-27  Eric Blake  <eblake@redhat.com>
31083
31084         full-read, full-write: relax license
31085         * modules/full-read (License): Drop to LGPLv2+.
31086         * modules/full-write (License): Likewise.
31087         * modules/safe-read (License): Likewise.
31088         * modules/safe-write (License): Likewise.
31089
31090         pthread: mention library for linking
31091         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31092
31093 2010-04-27  Jim Meyering  <meyering@redhat.com>
31094
31095         maint.mk: fix a bug introduced in last change
31096         * top/maint.mk (gl_assured_headers_): Now that all names are on
31097         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31098         is not anchored to end of word, it should be adequate.
31099
31100         maint.mk: avoid side-effect in latest syntax-check
31101         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31102         to run commands via $(shell...), and hence to incur cost only when
31103         the new rule is actually run.
31104
31105         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31106         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31107         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31108         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31109         (gl_assured_headers_, az_, AZ_): Define.
31110         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31111
31112 2010-04-26  Jim Meyering  <jim@meyering.net>
31113             Bruno Haible  <bruno@clisp.org>
31114
31115         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31116         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31117         Prompted by an exchange with Gilles Espinasse.
31118
31119 2010-04-26  Jim Meyering  <meyering@redhat.com>
31120
31121         git-version-gen: aesthetic tweak
31122         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31123         so that the command remains on a single line.
31124
31125 2010-04-26  Eric Blake  <eblake@redhat.com>
31126
31127         git-version-gen: allow use on EBCDIC hosts
31128         * build-aux/git-version-gen (dirty): Use literal rather than tying
31129         ourselves to ascii.
31130         Reported by Steve Goetze.
31131
31132 2010-04-25  Bruno Haible  <bruno@clisp.org>
31133
31134         netdb: Add support for GNULIB_POSIXCHECK.
31135         * lib/netdb.in.h: Include warn-on-use.h.
31136         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31137         functions are used when GNULIB_POSIXCHECK is defined and the
31138         getaddrinfo module is not in use.
31139         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31140         freeaddrinfo, gai_strerror, getnameinfo are declared.
31141         * modules/netdb (Depends-on): Add warn-on-use.
31142         (Makefile.am): Include warn-on-use.h in netdb.h.
31143
31144 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31145
31146         build: avoid "make check" failure without .git/ directory
31147         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31148         there is no .git/ directory.
31149
31150 2010-04-25  Bruno Haible  <bruno@clisp.org>
31151
31152         ptsname: Fix misuse of ttyname_r.
31153         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31154         of errno.
31155
31156 2010-04-25  Bruno Haible  <bruno@clisp.org>
31157
31158         ttyname_r: Make it work on Solaris 10.
31159         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31160         if the system function has the POSIX declaration. Test whether the
31161         function fails if the buffer is less than 128 bytes large.
31162         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31163         system's ttyname_r function. Provide a reasonably large buffer.
31164         * modules/ttyname_r (Depends-on): Add extensions.
31165         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31166
31167 2010-04-25  Bruno Haible  <bruno@clisp.org>
31168
31169         Use the 'extensions' module for some more functions on Solaris.
31170         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31171         module.
31172         * doc/posix-functions/ctime_r.texi: Likewise.
31173         * doc/posix-functions/getgrgid_r.texi: Likewise.
31174         * doc/posix-functions/getgrnam_r.texi: Likewise.
31175         * doc/posix-functions/getpwnam_r.texi: Likewise.
31176         * doc/posix-functions/getpwuid_r.texi: Likewise.
31177         * doc/posix-functions/readdir_r.texi: Likewise.
31178         * doc/posix-functions/sigwait.texi: Likewise.
31179         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31180         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31181
31182 2010-04-25  Bruno Haible  <bruno@clisp.org>
31183
31184         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31185         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31186         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31187         * lib/ttyname_r.c: Include <limits.h>.
31188         (ttyname_r): Define using the system's ttyname_r function, if it exists
31189         and not on Solaris.
31190         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31191         set.
31192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31193         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31194         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31195         Reported by Simon Josefsson.
31196
31197 2010-04-25  Bruno Haible  <bruno@clisp.org>
31198
31199         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31200         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31201         * doc/posix-functions/ctime_r.texi: Likewise.
31202         * doc/posix-functions/getgrgid_r.texi: Likewise.
31203         * doc/posix-functions/getgrnam_r.texi: Likewise.
31204         * doc/posix-functions/getlogin_r.texi: Likewise.
31205         * doc/posix-functions/getpwnam_r.texi: Likewise.
31206         * doc/posix-functions/getpwuid_r.texi: Likewise.
31207         * doc/posix-functions/readdir_r.texi: Likewise.
31208         * doc/posix-functions/sigwait.texi: Likewise.
31209         * doc/posix-functions/ttyname_r.texi: Likewise.
31210         Reported by Simon Josefsson.
31211
31212 2010-04-25  Bruno Haible  <bruno@clisp.org>
31213
31214         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31215         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31216         also to --create-testdir.
31217         (func_acceptable): Don't consider the status of *-tests modules here.
31218         (func_modules_transitive_closure): Consider it here, before including a
31219         test module.
31220         (func_import, func_create_testdir): Set inc_all_direct_tests,
31221         inc_all_indirect_tests.
31222         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31223         --create-testdir and --create-megatestdir.
31224
31225 2010-04-25  Bruno Haible  <bruno@clisp.org>
31226
31227         gnulib-tool: Add --without-*-tests options.
31228         * gnulib-tool (func_usage): Document the --without-*-tests options.
31229         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31230         excl_unportable_tests): New variables.
31231         Fail if they are specified with --import or --update.
31232         (func_acceptable): Respect the excl_*_tests variables.
31233         (func_import): Set the excl_*_tests variables to empty.
31234
31235 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31236             Bruno Haible  <bruno@clisp.org>
31237
31238         Work around a MacOS X 10.4 bug with openpty.
31239         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31240         * tests/test-openpty.c (main): Close the master side explicitly.
31241
31242 2010-04-25  Bruno Haible  <bruno@clisp.org>
31243
31244         strnlen: Fix a C++ test error on MacOS X and Solaris.
31245         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31246         the function is not declared.
31247         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31248         Simon Josefsson.
31249
31250 2010-04-24  Bruno Haible  <bruno@clisp.org>
31251
31252         Avoid a gcc warning.
31253         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31254         of correct type for %08lx directive.
31255         Reported by Eric Blake.
31256
31257 2010-04-24  Bruno Haible  <bruno@clisp.org>
31258
31259         vasnprintf: Correct errno value in case of out-of-memory.
31260         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31261         or sprintf. Use the errno value from SNPRINTF or sprintf.
31262         Reported by Ian Beckwith <ianb@erislabs.net>.
31263
31264 2010-04-24  Bruno Haible  <bruno@clisp.org>
31265
31266         ansi-c++-opt: Find correct compiler when cross-compiling.
31267         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31268         AC_CHECK_PROGS.
31269         Reported by Simon Josefsson.
31270
31271 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31272
31273         vc-list-files: Add support for subversion
31274         * build-aux/vc-list-files: Use "svn list" to generate the list of
31275         files controlled by subversion.
31276
31277 2010-04-23  Jim Meyering  <meyering@redhat.com>
31278
31279         vc-list-files tests: convert to use init.sh
31280         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31281         path_prepend_.
31282         Use Exit, not exit.
31283         Use skip_ rather than open coding it.
31284         Remove trap set-up and compare definitions.
31285         * tests/test-vc-list-files-git.sh: Likewise.
31286         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31287
31288 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31289
31290         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31291         backup files.
31292
31293 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31294
31295         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31296
31297 2010-04-20  Eric Blake  <eblake@redhat.com>
31298
31299         tests: be robust to ignored SIGPIPE
31300         * tests/test-select-in.sh: Consume all output.
31301         * tests/test-lseek.sh: Check correct exit status, while avoiding
31302         EPIPE.
31303
31304 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31305             Bruno Haible  <bruno@clisp.org>
31306
31307         visibility: Don't use -fvisibility if it leads to a warning.
31308         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31309         yes, don't pretend that visibility works if it leads to a warning.
31310         Reported by Mike Gran <spk121@yahoo.com>.
31311
31312 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31313
31314         * build-aux/bootstrap: Use "git -h" for testing for supported options
31315         instead of "git --help".  The short-form option only shows a summary,
31316         and doesn't layout the full man page.  Grep for the full option name
31317         in the summary, too.
31318
31319 2010-04-19  Bruno Haible  <bruno@clisp.org>
31320
31321         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31322         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31323         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31324         mention of RELOCATABLE_STRIP.
31325         Reported by Sylvain Beucler <beuc@beuc.net>.
31326
31327 2010-04-19  Bruno Haible  <bruno@clisp.org>
31328
31329         * lib/diffseq.h: Fix typo in comment.
31330         Reported by Eric Blake.
31331
31332 2010-04-19  Bruno Haible  <bruno@clisp.org>
31333
31334         ioctl: Move autoconf macro to a .m4 file.
31335         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31336         * modules/ioctl (Files): Add it.
31337         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31338         Reported by Ian Beckwith <ianb@erislabs.net>.
31339
31340 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31341             Bruno Haible  <bruno@clisp.org>
31342
31343         diffseq: Accommodate use-case with abstract arrays.
31344         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31345         is not defined.
31346         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31347         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31348
31349 2010-04-18  Bruno Haible  <bruno@clisp.org>
31350
31351         * doc/posix-headers/stdbool.texi: More precise wording.
31352
31353 2010-04-17  Jim Meyering  <meyering@redhat.com>
31354
31355         maint.mk: use gnu-style indentation in an embedded perl script
31356         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31357         Rename variable: s/two/last_two_bytes/
31358
31359 2010-04-16  Eric Blake  <eblake@redhat.com>
31360
31361         test-stdbool: skip test that fails with Solaris CC
31362         * tests/test-stdbool.c (f): Skip test that causes compilation
31363         error under buggy C++ compiler.
31364         * lib/stdbool.in.h: Document the limitation.
31365         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31366
31367         setenv: allow compilation with C++
31368         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31369         register keyword.
31370
31371         stdint: allow test to pass with C++
31372         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31373
31374         getopt: allow compilation with C++
31375         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31376         struct.
31377         * lib/getopt.c (_getopt_internal_r): Use correct type.
31378         Reported by Dagobert Michelson, via Joel E. Denny.
31379
31380 2010-04-16  Bruno Haible  <bruno@clisp.org>
31381
31382         Override netdb.h always.
31383         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31384         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31385         Reported by Ludovic Courtès <ludo@gnu.org>.
31386
31387 2010-04-15  Bruno Haible  <bruno@clisp.org>
31388
31389         openpty: Fix mistake from 2010-03-21.
31390         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31391         Reported by Simon Josefsson.
31392
31393 2010-04-15  Eric Blake  <eblake@redhat.com>
31394
31395         test-forkpty: fix expected signature
31396         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31397         Reported by Simon Josefsson.
31398
31399 2010-04-15  Jim Meyering  <meyering@redhat.com>
31400
31401         maint.mk: texinfo_suffix_re_: correct the default regexp
31402         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31403
31404         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31405         make it configurable via texinfo_suffix_re_.
31406
31407 2010-04-14  Eric Blake  <eblake@redhat.com>
31408
31409         strtok_r: relax license to LGPLv2+
31410         * modules/strtok_r (License): Relax license.
31411         Reported by Matthias Bolte.
31412
31413 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31414
31415         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31416         version 1.4.4 by default instead of requiring the libgcrypt
31417         version used during build.  This makes it possible to use the
31418         application with older but still binary compatible libgcrypt
31419         versions.
31420
31421 2010-04-13  Eric Blake  <eblake@redhat.com>
31422
31423         getopt-gnu: match recent glibc fixes and posix ruling
31424         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31425         '+' handling, when requesting extensions.
31426         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31427         'W;' handling.
31428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31429         * doc/posix-functions/getopt.texi (getopt): Document this.
31430         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31431         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31432         Likewise.
31433
31434         getopt: merge bug fixes from glibc
31435         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31436         diagnostics.  Honor '+:' correctly.  Reject ';'.
31437
31438         getopt-posix: detect MacOS bug
31439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31440         optind when missing a required argument.
31441         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31442         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31443         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31444         Likewise.
31445
31446         getopt-posix: avoid spurious failure on Solaris
31447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31448         an indicator that setting optind=1 is sufficient for reset.
31449
31450         getopt-posix: avoid spurious failure on FreeBSD
31451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31452         in POSIX mode, since the m4 test uses it.
31453
31454         gnulib-tool: silence warning on BSD sh
31455         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31456
31457 2010-04-13  Jim Meyering  <meyering@redhat.com>
31458
31459         doc: users.txt: GNU patch now uses gnulib
31460         * users.txt: Add patch.
31461
31462 2010-04-12  Jim Meyering  <meyering@redhat.com>
31463
31464         maint.mk: generate more concise timing data for syntax-check rules
31465         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31466         " done" from each line that reports a syntax-check test duration.
31467
31468 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31469
31470         git-version-gen: use "git update-index..." rather than "git status"
31471         * build-aux/git-version-gen: Use git update-index --refresh, not
31472         "git status".  With some versions of git, "git status" would fail
31473         to update the index and result in an unwarranted "-dirty" suffix.
31474
31475 2010-04-11  Jim Meyering  <meyering@redhat.com>
31476
31477         openat: correct formatting (no semantic change)
31478         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31479         Suggested by Bruno Haible.
31480
31481 2010-04-11  Bruno Haible  <bruno@clisp.org>
31482
31483         Stricter declaration checking in testdirs.
31484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31485         If for_tests is true, augment AM_CPPFLAGS to define
31486         GNULIB_STRICT_CHECKING.
31487         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31488         GNULIB_STRICT_CHECKING is defined, verify that the function is
31489         declared.
31490
31491 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31492             Bruno Haible  <bruno@clisp.org>
31493
31494         libunistring: Improve configure output.
31495         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31496         Don't say "consider installing GNU libunistring" when checking again
31497         with libiconv.
31498
31499 2010-04-11  Bruno Haible  <bruno@clisp.org>
31500
31501         libunistring: Correct value of $LTLIBUNISTRING.
31502         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31503         correct the value of $LTLIBUNISTRING.
31504
31505 2010-04-11  Bruno Haible  <bruno@clisp.org>
31506
31507         havelib: Add static libraries to LIBS in the right order.
31508         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31509         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31510
31511 2010-04-11  Bruno Haible  <bruno@clisp.org>
31512
31513         libunistring: Detect libunistring also when it depends on libiconv.
31514         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31515         the second AC_LIB_HAVE_LINKFLAGS invocation.
31516
31517 2010-04-11  James Youngman  <jay@gnu.org>
31518
31519         close-stream: declare local scalars to be "const"
31520         * lib/close-stream.c (close_stream): Make boolean variables const
31521         to document the fact that we set but do not change them.
31522
31523 2010-04-11  Bruno Haible  <bruno@clisp.org>
31524
31525         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31526
31527 2010-04-11  Jim Meyering  <meyering@redhat.com>
31528
31529         maint.mk: don't include dist-check.mk
31530         * top/maint.mk: Remove bogus include directive.
31531
31532         maint.mk: improve empty-line-at-EOF check
31533         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31534         solution, rather than tail+Perl-based one.  The latter would read
31535         a few kilobytes from the end of each file, and did not handle empty
31536         files properly.
31537
31538         maint.mk: print the elapsed time for each syntax-check rule
31539         * top/maint.mk (sc_m_rules_): Save start time in a file.
31540         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31541         (local-check): Interpose the .z rules
31542
31543 2010-04-11  Jim Meyering  <meyering@redhat.com>
31544
31545         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31546         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31547         empty file with one that ends in an empty line.
31548
31549 2010-04-10  Bruno Haible  <bruno@clisp.org>
31550
31551         mkdir: Make it work on mingw64.
31552         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31553         * lib/mkdir.c: Update comment.
31554         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
31555
31556 2010-04-10  Bruno Haible  <bruno@clisp.org>
31557
31558         Don't override improved macro from newer autoconf.
31559         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31560         autoconf >= 2.62.
31561         Reported by Joel E. Denny <jdenny@clemson.edu>.
31562
31563 2010-04-10  Jim Meyering  <meyering@redhat.com>
31564
31565         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31566         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31567
31568         maint.mk: correct a diagnostic
31569         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31570         in diagnostic; now use $prohibit.
31571
31572 2010-04-10  Bruno Haible  <address@hidden>
31573
31574         fchownat: Fix a C++ test error on Solaris 8.
31575         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31576         the function does not exist.
31577
31578 2010-04-10  Bruno Haible  <bruno@clisp.org>
31579
31580         vasnprintf: Add more tests.
31581         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31582         (test_function): Test converting an invalid wide string.
31583
31584         vasnprintf: Correct handling of unconvertible wide string arguments.
31585         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31586         VASNPRINTF.
31587         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31588         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31589         smaller than the expected maximum need for the directive. Set errno to
31590         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31591         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31593         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31594         * modules/vasnprintf (Files): Add m4/printf.m4.
31595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31596
31597 2010-04-10  Bruno Haible  <bruno@clisp.org>
31598
31599         vasnprintf: Fix crash in %ls directive.
31600         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31601         string is passed as argument to %ls, with no precision and no width.
31602         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31603
31604 2010-04-10  Bruno Haible  <bruno@clisp.org>
31605
31606         vasnprintf: Fix multiple test failures on mingw.
31607         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31608         _snprintf, or snwprintf, not _snwprintf.
31609
31610 2010-04-10  Bruno Haible  <bruno@clisp.org>
31611
31612         write: Fix a C++ test error on mingw.
31613         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31614
31615 2010-04-10  Bruno Haible  <bruno@clisp.org>
31616
31617         vasnprintf test: Reduce code duplication.
31618         * tests/test-vasnprintf.c (test_function): New function, extracted from
31619         test_vasnprintf.
31620         (test_vasnprintf, test_asnprintf): Invoke it.
31621
31622 2010-04-10  Bruno Haible  <bruno@clisp.org>
31623
31624         strnlen: Fix warning in C++ mode on MacOS X.
31625         * lib/string.in.h (strnlen): Use the modern idiom.
31626         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31627         defining strnlen as a macro already in <config.h>.
31628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31629         REPLACE_STRNLEN.
31630         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31631         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31632
31633 2010-04-08  James Youngman  <jay@gnu.org>
31634
31635         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31636         the example.
31637
31638 2010-04-09  Jim Meyering  <meyering@redhat.com>
31639
31640         maint.mk: print better diagnostic when there is no $(_hv_file)
31641         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31642         announce that when $(_hv_file) (aka help-version) does not exist.
31643
31644         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31645         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31646         not try to interpret its random input bytes.  Jarno Rajahalme reported
31647         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31648         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31649         (mktempd_): Likewise, just in case.
31650
31651         ftruncate: add two years to projected module removal date: 2012
31652         * m4/ftruncate.m4: Adjust comments.
31653
31654         ftruncate: mark module as obsolete; even MinGW provides it, now
31655         * modules/ftruncate (Status): Obsolete.
31656         (Notice): Say that.
31657         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31659
31660 2010-04-08  Bruno Haible  <bruno@clisp.org>
31661
31662         Fix side effects from tests-related modules.
31663         * modules/dprintf-posix (Comment): New section.
31664         * modules/fprintf-posix (Comment): Likewise.
31665         * modules/obstack-printf-posix (Comment): Likewise.
31666         * modules/printf-posix (Comment): Likewise.
31667         * modules/snprintf-posix (Comment): Likewise.
31668         * modules/sprintf-posix (Comment): Likewise.
31669         * modules/vasnprintf-posix (Comment): Likewise.
31670         * modules/vasprintf-posix (Comment): Likewise.
31671         * modules/vdprintf-posix (Comment): Likewise.
31672         * modules/vfprintf-posix (Comment): Likewise.
31673         * modules/vprintf-posix (Comment): Likewise.
31674         * modules/vsnprintf-posix (Comment): Likewise.
31675         * modules/vsprintf-posix (Comment): Likewise.
31676         * modules/xprintf-posix (Comment): Likewise.
31677         * modules/xvasprintf-posix (Comment): Likewise.
31678         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31679         * modules/floorf-tests (Depends-on): Likewise.
31680         * modules/round-tests (Depends-on): Likewise.
31681         * modules/roundf-tests (Depends-on): Likewise.
31682         * modules/trunc-tests (Depends-on): Likewise.
31683         * modules/truncf-tests (Depends-on): Likewise.
31684         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31685         'fprintf-posix' module is not present.
31686         * tests/test-floorf2.c (check): Likewise.
31687         * tests/test-trunc2.c (check): Likewise.
31688         * tests/test-truncf2.c (check): Likewise.
31689         * tests/test-round2.c (equal): Likewise.
31690         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31691
31692 2010-04-07  Karl Berry  <karl@gnu.org>
31693
31694         * config/srclist.txt,
31695         * config/srclistvars.sh,
31696         * config/srclist-update: doc fixes.
31697
31698 2010-04-07  Jim Meyering  <meyering@redhat.com>
31699
31700         maint.mk: add a PATH crosschecking syntax-check rule
31701         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31702         Useful if you use a test like the one in help-version (coreutils,
31703         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31704         printed by prog --version.
31705
31706 2010-04-06  Bruno Haible  <bruno@clisp.org>
31707
31708         Fix link error on mingw.
31709         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31710         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31711
31712 2010-04-06  Bruno Haible  <bruno@clisp.org>
31713
31714         Assume rmdir exists.
31715         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31716
31717 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31718
31719         doc: update users.txt
31720         * users.txt: Add gcal.
31721
31722 2010-04-06  Jim Meyering  <meyering@redhat.com>
31723
31724         init.sh: simply unset TMPDIR rather than risking env -i
31725         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31726         although it probably works fine on all Unix-based systems, some
31727         systems (Cygwin?) cannot tolerate a totally cleared environment.
31728         Suggestion from Eric Blake.
31729
31730 2010-04-06  Jim Meyering  <meyering@redhat.com>
31731
31732         init.sh: portability fix: use env's POSIX-specified -i option not -u
31733         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31734         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31735
31736 2010-04-05  Bruno Haible  <bruno@clisp.org>
31737
31738         btowc: Work around Cygwin 1.7.2 bug.
31739         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31740         does not map NUL to 0.
31741         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31742
31743 2010-04-05  Bruno Haible  <bruno@clisp.org>
31744
31745         Make the multithread modules work on Cygwin 1.7.2.
31746         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31747         imported symbols can be declared weak, so that it returns "no" on
31748         Cygwin 1.7.2.
31749
31750 2010-04-05  Bruno Haible  <bruno@clisp.org>
31751
31752         Use the module 'strncat'.
31753         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31754
31755         Tests for module 'strncat'.
31756         * modules/strncat-tests: New file.
31757         * tests/test-strncat.c: New file.
31758
31759         New module 'strncat'.
31760         * lib/string.in.h (strncat): New declaration.
31761         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31762         * m4/strncat.m4: New file, based on m4/memchr.m4.
31763         * modules/strncat: New file.
31764         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31765         is declared.
31766         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31767         REPLACE_STRNCAT.
31768         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31769         REPLACE_STRNCAT.
31770         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31771         module.
31772         * tests/test-string-c++.cc: Check signature of strncat.
31773
31774 2010-04-05  Jim Meyering  <meyering@redhat.com>
31775
31776         xstrtoumax-tests: convert to use init.sh
31777         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31778         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31779         Use Exit, not exit.
31780         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31781
31782         xstrtoimax-tests: convert to use init.sh
31783         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31784         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31785         Use Exit, not exit.
31786         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31787
31788 2010-04-05  Bruno Haible  <bruno@clisp.org>
31789
31790         sys_socket: Avoid #define replacements in C++ mode.
31791         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31792         warning to the function if possible, rather than #defining the symbol
31793         to a dysfunctional alias.
31794
31795 2010-04-05  Bruno Haible  <bruno@clisp.org>
31796
31797         fseeko: Fix C++ test error on mingw.
31798         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31799         gl_FUNC_FSEEKO.
31800         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31801         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31802         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31803         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31804
31805 2010-04-05  Bruno Haible  <bruno@clisp.org>
31806
31807         duplocale: Improve test output.
31808         * tests/test-duplocale.c (main): Print reason for skipped test.
31809
31810 2010-04-05  Bruno Haible  <bruno@clisp.org>
31811
31812         Assume rmdir exists.
31813         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31814         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31815
31816 2010-04-05  Bruno Haible  <bruno@clisp.org>
31817
31818         Fix link error on Solaris 8 with cc.
31819         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31820
31821 2010-04-05  Bruno Haible  <bruno@clisp.org>
31822
31823         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31824         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31825
31826 2010-04-05  Bruno Haible  <bruno@clisp.org>
31827
31828         vasprintf: Update documentation.
31829         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31830
31831 2010-04-05  Bruno Haible  <bruno@clisp.org>
31832
31833         ptsname: Improve test.
31834         * tests/test-ptsname.c (main): Also try the various master names of BSD
31835         systems.
31836
31837 2010-04-05  Bruno Haible  <bruno@clisp.org>
31838
31839         memchr: Avoid a possible C++ test error.
31840         * lib/string.in.h (memchr): Provide declaration if function is missing.
31841         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31842         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31844         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31845
31846 2010-04-05  Bruno Haible  <bruno@clisp.org>
31847
31848         strtok_r: Improve idiom.
31849         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31850         AC_LIBOBJ is used.
31851
31852 2010-04-05  Bruno Haible  <bruno@clisp.org>
31853
31854         strdup: Improve idiom.
31855         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31856         AC_LIBOBJ is used.
31857         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31858         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31859         when AC_LIBOBJ is used.
31860
31861 2010-04-05  Bruno Haible  <bruno@clisp.org>
31862
31863         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31864         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31865         don't set REPLACE_MBSINIT to 1.
31866         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31867         don't set REPLACE_MBRTOWC to 1.
31868         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31869         exist, don't set REPLACE_MBSRTOWCS to 1.
31870         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31871         exist, don't set REPLACE_MBSNRTOWCS to 1.
31872         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31873         don't set REPLACE_WCRTOMB to 1.
31874         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31875         exist, don't set REPLACE_WCSRTOMBS to 1.
31876         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31877         exist, don't set REPLACE_WCSNRTOMBS to 1.
31878
31879 2010-04-05  Bruno Haible  <bruno@clisp.org>
31880
31881         ldexpl: Improve idiom.
31882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31883         make sure to set HAVE_DECL_LDEXPL to 0.
31884
31885 2010-04-05  Jim Meyering  <meyering@redhat.com>
31886
31887         xstrtol-tests: convert to use init.sh
31888         * modules/xstrtol-tests (Files): Add tests/init.sh.
31889         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31890         Use Exit, not exit.
31891         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31892
31893         atexit-tests: convert to use init.sh
31894         * modules/atexit-tests (Files): Add tests/init.sh.
31895         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31896         Use Exit, not exit.
31897         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31898
31899         init.sh: fix typo
31900         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31901
31902         init.sh: make it easier for a test script to write to the tty, ...
31903         when using automake's parallel-tests mode.
31904         * tests/init.sh (stderr_fileno_): Define overridable variable.
31905         (warn_): New function, to use it.
31906         (fail_, skip_, framework_failure_): Use warn_.
31907
31908 2010-04-04  Bruno Haible  <bruno@clisp.org>
31909
31910         btowc: Avoid warning.
31911         * lib/btowc.c: Include <stdlib.h>.
31912         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31913
31914 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31915             Bruno Haible  <bruno@clisp.org>
31916
31917         wchar: Port to NetBSD 1.5.
31918         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31919         * lib/wctype.in.h (WEOF): Likewise.
31920
31921 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31922             Bruno Haible  <bruno@clisp.org>
31923
31924         Port extended stdio to NetBSD 1.5.
31925         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31926         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31927         older.
31928
31929 2010-04-04  Bruno Haible  <bruno@clisp.org>
31930
31931         string: Remove unused substitution.
31932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31933         HAVE_DECL_STRERROR.
31934         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31935
31936 2010-04-04  Bruno Haible  <bruno@clisp.org>
31937
31938         strtod: Avoid a possible C++ test error.
31939         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31940         set REPLACE_STRTOD.
31941
31942 2010-04-04  Bruno Haible  <bruno@clisp.org>
31943
31944         strerror: Update documentation.
31945         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31946
31947 2010-04-04  Bruno Haible  <bruno@clisp.org>
31948
31949         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31950         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31951         _GL_CXXALIAS_SYS_CAST.
31952
31953 2010-04-04  Bruno Haible  <bruno@clisp.org>
31954
31955         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31956         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31957         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31958         REPLACE_FREXPL to 1.
31959         * doc/posix-functions/frexpl.texi: Update documentation.
31960
31961 2010-04-04  Bruno Haible  <bruno@clisp.org>
31962
31963         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31964         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31965
31966 2010-04-04  Bruno Haible  <bruno@clisp.org>
31967
31968         Implement nanosleep for native Windows.
31969         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31970
31971 2010-04-04  Bruno Haible  <bruno@clisp.org>
31972
31973         math: Fix some C++ test errors on Solaris 8.
31974         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31975
31976 2010-04-04  Bruno Haible  <bruno@clisp.org>
31977
31978         math: Fix some C++ test errors on Cygwin.
31979         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31980         truncl): Provide declaration if the system does not have it.
31981         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31982         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31983         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31984         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31985         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31986         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31987         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31988         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31989         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31990         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31991         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31992         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31993         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31994         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31995         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31996         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31998         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31999         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32000         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32001         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32002         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32003
32004 2010-04-04  Bruno Haible  <bruno@clisp.org>
32005
32006         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32007         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32008         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32009         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32010         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32011         * m4/isinf.m4 (gl_ISINF): Likewise.
32012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32013
32014 2010-04-04  Bruno Haible  <bruno@clisp.org>
32015
32016         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32017         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32018
32019 2010-04-04  Bruno Haible  <bruno@clisp.org>
32020
32021         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32022         * modules/tmpfile (configure.ac): Update.
32023
32024         tmpfile: Fix C++ test error on mingw.
32025         * lib/stdio.in.h (tmpfile): New declaration.
32026         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32027         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32028         * modules/tmpfile (Depends-on): Add stdio.
32029         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32030         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32031         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32032         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32033         REPLACE_TMPFILE.
32034         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32035
32036 2010-04-04  Bruno Haible  <bruno@clisp.org>
32037
32038         ioctl: Fix C++ test error on mingw.
32039         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32040         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32041         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32042
32043 2010-04-03  Bruno Haible  <bruno@clisp.org>
32044
32045         wcwidth: Fix C++ test error on mingw.
32046         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32048         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32049
32050 2010-04-03  Bruno Haible  <bruno@clisp.org>
32051
32052         nanosleep: Fix C++ test error on mingw.
32053         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32054         * lib/time.in.h (nanosleep): Use modern idiom.
32055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32056         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32057         REPLACE_NANOSLEEP to 1.
32058         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32059         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32060
32061 2010-04-03  Bruno Haible  <bruno@clisp.org>
32062
32063         strptime: Fix C++ test error on mingw.
32064         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32065         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32066         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32067         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32068         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32069         not REPLACE_STRPTIME.
32070         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32071         REPLACE_STRPTIME.
32072
32073 2010-04-03  Bruno Haible  <bruno@clisp.org>
32074
32075         timegm: Fix C++ test error on mingw.
32076         * lib/time.in.h (timegm): Use modern idiom.
32077         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32078         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32079         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32080         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32081
32082 2010-04-03  Bruno Haible  <bruno@clisp.org>
32083
32084         timegm: Assume declaration if function exists.
32085         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32086         if it exists. Don't clobber ac_cv_func_timegm.
32087
32088 2010-04-03  Bruno Haible  <bruno@clisp.org>
32089
32090         time_r: Fix C++ test error on mingw.
32091         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32092         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32093         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32094         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32095         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32096
32097 2010-04-03  Bruno Haible  <bruno@clisp.org>
32098
32099         time_r: Minor updates.
32100         * modules/time_r (Description): Mention the provided functions.
32101         * lib/time_r.c: Don't include <string.h>.
32102         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32103         * doc/posix-functions/localtime_r.texi: Likewise.
32104
32105 2010-04-03  Bruno Haible  <bruno@clisp.org>
32106
32107         time: Fix regression introduced on 2010-03-08.
32108         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32109         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32110
32111 2010-04-03  Jim Meyering  <meyering@redhat.com>
32112
32113         maint.mk: don't silently disable project-specific syntax-check rules
32114         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32115         that they need to convert their project-specific syntax-check rules
32116         to use the new _sc_search_regexp.
32117
32118 2010-04-03  Bruno Haible  <bruno@clisp.org>
32119
32120         fchdir: Fix regression introduced on 2010-03-08.
32121         * lib/unistd.in.h (fchdir): Fix declaration.
32122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32124         REPLACE_FCHDIR.
32125         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32126         REPLACE_FCHDIR.
32127
32128 2010-04-03  Bruno Haible  <bruno@clisp.org>
32129
32130         getpagesize: Fix C++ test error on mingw.
32131         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32132         system does not declare the function.
32133         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32134         declared.
32135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32136         HAVE_DECL_GETPAGESIZE.
32137         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32138
32139 2010-04-03  Bruno Haible  <bruno@clisp.org>
32140
32141         stdio: Make C++ tests work on mingw.
32142         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32143         does not declare the function.
32144
32145 2010-04-03  Bruno Haible  <bruno@clisp.org>
32146
32147         ftello: Fix C++ test error on mingw.
32148         * lib/stdio.in.h (ftello): Use modern idiom.
32149         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32150         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32151         is missing and that it needs to be replaced.
32152         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32154         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32155
32156 2010-04-03  Bruno Haible  <bruno@clisp.org>
32157
32158         fseeko: Fix C++ test error on mingw.
32159         * lib/stdio.in.h (fseeko): Use modern idiom.
32160         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32161         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32162         is missing and that it needs to be replaced.
32163         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32165         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32166
32167 2010-04-03  Bruno Haible  <bruno@clisp.org>
32168
32169         mkstemp: Fix C++ test error on mingw.
32170         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32172         function is missing and that it needs to be replaced.
32173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32174         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32175
32176 2010-04-03  Bruno Haible  <bruno@clisp.org>
32177
32178         stpncpy: Fix C++ test error on mingw.
32179         * lib/string.in.h (stpncpy): Use modern idiom.
32180         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32181         function is missing and that it needs to be replaced.
32182         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32183         REPLACE_STPNCPY.
32184         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32185
32186 2010-04-03  Bruno Haible  <bruno@clisp.org>
32187
32188         sys_stat: Fix C++ test error on mingw.
32189         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32190         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32191
32192 2010-04-03  Bruno Haible  <bruno@clisp.org>
32193
32194         pty: Update doc.
32195         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32196
32197 2010-04-03  Bruno Haible  <bruno@clisp.org>
32198
32199         unistd: Fix C++ test error on mingw.
32200         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32201
32202 2010-04-03  Bruno Haible  <bruno@clisp.org>
32203
32204         Update doc regarding mingw.
32205         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32206         * doc/glibc-functions/login_tty.texi: Likewise.
32207         * doc/glibc-functions/forkpty.texi: Likewise.
32208
32209 2010-04-03  Bruno Haible  <bruno@clisp.org>
32210
32211         stdlib: Avoid compilation failure of c-strtold on mingw.
32212         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32213
32214 2010-04-03  Bruno Haible  <bruno@clisp.org>
32215
32216         locale: Make C++ tests work on Cygwin and mingw.
32217         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32218         cannot provide the function.
32219         Reported by Simon Josefsson.
32220
32221 2010-04-03  Bruno Haible  <bruno@clisp.org>
32222
32223         localename: Port to MacOS X 10.6.
32224         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32225         memory layout of the locales in MacOS X 10.6 as well.
32226         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32227
32228 2010-04-02  Bruno Haible  <bruno@clisp.org>
32229
32230         gnulib-tool: Ensure that long-running tests are executed last.
32231         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32232         running tests after the one for the other tests.
32233
32234 2010-04-02  Bruno Haible  <bruno@clisp.org>
32235
32236         gnulib-tool: Ensure the tests in the main directory are executed first.
32237         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32238         start with the current directory.
32239
32240 2010-04-02  Bruno Haible  <bruno@clisp.org>
32241
32242         Tests for module 'havelib', moved here from GNU gettext.
32243         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32244         modifications.
32245         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32246         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32247         with modifications.
32248         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32249         modifications.
32250         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32251         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32252         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32253         with modifications.
32254         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32255         with modifications.
32256         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32257         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32258         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32259         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32260         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32261         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32262         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32263         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32264         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32265         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32266         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32267         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32268         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32269         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32270         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32271         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32272         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32273         with modifications.
32274         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32275         with modifications.
32276         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32277         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32278         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32279         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32280         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32281         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32282         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32283         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32284         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32285         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32286         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32287         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32288         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32289         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32290         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32291         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32292         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32293         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32294         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32295         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32296         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32297         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32298         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32299         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32300         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32301         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32302         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32303         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32304         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32305         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32306         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32307         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32308         * tests/havelib/rpathx/rpathx.c: New file, from
32309         gettext/autoconf-lib-link.
32310         * tests/havelib/rpathx/Makefile.am: New file, from
32311         gettext/autoconf-lib-link.
32312         * tests/havelib/rpathx/configure.ac: New file, from
32313         gettext/autoconf-lib-link with modifications.
32314         * tests/havelib/rpathy/rpathy.c: New file, from
32315         gettext/autoconf-lib-link.
32316         * tests/havelib/rpathy/Makefile.am: New file, from
32317         gettext/autoconf-lib-link.
32318         * tests/havelib/rpathy/configure.ac: New file, from
32319         gettext/autoconf-lib-link with modifications.
32320         * tests/havelib/rpathz/rpathz.c: New file, from
32321         gettext/autoconf-lib-link.
32322         * tests/havelib/rpathz/Makefile.am: New file, from
32323         gettext/autoconf-lib-link.
32324         * tests/havelib/rpathz/configure.ac: New file, from
32325         gettext/autoconf-lib-link with modifications.
32326         * tests/havelib/rpathlx/usex.c: New file, from
32327         gettext/autoconf-lib-link.
32328         * tests/havelib/rpathlx/Makefile.am: New file, from
32329         gettext/autoconf-lib-link.
32330         * tests/havelib/rpathlx/configure.ac: New file, from
32331         gettext/autoconf-lib-link with modifications.
32332         * tests/havelib/rpathly/usey.c: New file, from
32333         gettext/autoconf-lib-link.
32334         * tests/havelib/rpathly/Makefile.am: New file, from
32335         gettext/autoconf-lib-link.
32336         * tests/havelib/rpathly/configure.ac: New file, from
32337         gettext/autoconf-lib-link with modifications.
32338         * tests/havelib/rpathlz/usez.c: New file, from
32339         gettext/autoconf-lib-link.
32340         * tests/havelib/rpathlz/Makefile.am: New file, from
32341         gettext/autoconf-lib-link.
32342         * tests/havelib/rpathlz/configure.ac: New file, from
32343         gettext/autoconf-lib-link with modifications.
32344         * tests/havelib/rpathlyx/usey.c: New file, from
32345         gettext/autoconf-lib-link.
32346         * tests/havelib/rpathlyx/Makefile.am: New file, from
32347         gettext/autoconf-lib-link.
32348         * tests/havelib/rpathlyx/configure.ac: New file, from
32349         gettext/autoconf-lib-link with modifications.
32350         * tests/havelib/rpathlzyx/usez.c: New file, from
32351         gettext/autoconf-lib-link.
32352         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32353         gettext/autoconf-lib-link.
32354         * tests/havelib/rpathlzyx/configure.ac: New file, from
32355         gettext/autoconf-lib-link with modifications.
32356         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32357         with modifications.
32358
32359 2010-04-02  Bruno Haible  <bruno@clisp.org>
32360
32361         gnulib-tool: Create distributed built sources also for the tests.
32362         * gnulib-tool (func_create_testdir): Also generate distributed built
32363         sources in the tests directory.
32364
32365 2010-04-02  Bruno Haible  <bruno@clisp.org>
32366
32367         gnulib-tool: Obey user's environment variables.
32368         * gnulib-tool (func_create_testdir): When creating built sources,
32369         respect the environment variables for autoconf, automake, etc. given by
32370         the user.
32371
32372 2010-04-02  Bruno Haible  <bruno@clisp.org>
32373
32374         gnulib-tool: Provide the value of --m4-base to modules.
32375         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32376         of gl_m4_base.
32377
32378 2010-04-02  Eric Blake  <eblake@redhat.com>
32379
32380         maint.mk: fix some fallout
32381         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32382         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32383
32384 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32385
32386         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32387         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32388         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32389         (sc_cast_of_x_alloc_return_value): Likewise.
32390         (sc_cast_of_alloca_return_value): Likewise.
32391         (sc_space_tab): Likewise.
32392         (sc_prohibit_atoi_atof): Likewise.
32393         (sc_prohibit_magic_number_exit): Likewise.
32394         (sc_error_exit_success): Likewise.
32395         (sc_file_system): Likewise.
32396         (sc_prohibit_have_config_h): Likewise.
32397         (sc_require_config_h): Likewise.
32398         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32399         (sc_obsolete_symbols): Likewise.
32400         (sc_changelog): Likewise.
32401         (sc_program_name): Likewise.
32402         (sc_the_the): Likewise.
32403         (sc_trailing_blank): Likewise.
32404         (sc_two_space_separator_in_usage): Likewise.
32405         (sc_useless_cpp_parens): Likewise.
32406         (sc_GPL_version): Likewise.
32407         (sc_GFDL_version): Likewise.
32408         (sc_texinfo_acronym): Likewise.
32409         (sc_prohibit_cvs_keyword): Likewise.
32410         (sc_prohibit_stat_st_blocks): Likewise.
32411         (sc_prohibit_S_IS_definition): Likewise.
32412         (sc_redundant_const): Likewise.
32413         (sc_makefile_TAB_only_indentation): Likewise.
32414         (sc_m4_quote_check): Likewise.
32415         (sc_makefile_path_separator_check): Likewise.
32416         (sc_copyright_check): Likewise.
32417         (sc_Wundef_boolean): Likewise.
32418         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32419
32420         maint.mk: match 0 or more whitespace-before-function-call '('
32421         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32422         that have zero or two-and-more spaces between the function name
32423         and the open parenthesis.
32424         (sc_error_message_warn_fatal): Likewise.
32425         (sc_error_message_uppercase): Likewise.
32426         (sc_error_message_period): Likewise.
32427
32428 2010-03-31  Eric Blake  <eblake@redhat.com>
32429
32430         maint.mk: check for [ as well as test
32431         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32432         Based on a libvirt report by Matthias Bolte.
32433
32434         gnumakefile: don't squelch _version output
32435         * top/GNUmakefile (_version): Create one-shot dependency rather
32436         than using $(shell) when version must be regenerated.
32437         (_autoreconf): Run verbosely, by default.
32438
32439         sys_time: avoid compiler warnings
32440         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32441         unconditional, fixing regression from 2010-03-29.
32442         Reported by Simon Josefsson.
32443
32444 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32445
32446         maint.mk: s/_header_without_use/_sc_header_without_use/
32447         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32448         (sc_prohibit_assert_without_use): Use the new name.
32449         (sc_prohibit_close_stream_without_use): Likewise.
32450         (sc_prohibit_getopt_without_use): Likewise.
32451         (sc_prohibit_quotearg_without_use): Likewise.
32452         (sc_prohibit_quote_without_use): Likewise.
32453         (sc_prohibit_long_options_without_use): Likewise.
32454         (sc_prohibit_inttostr_without_use): Likewise.
32455         (sc_prohibit_ignore_value_without_use): Likewise.
32456         (sc_prohibit_error_without_use): Likewise.
32457         (sc_prohibit_xalloc_without_use): Likewise.
32458         (sc_prohibit_hash_without_use): Likewise.
32459         (sc_prohibit_hash_pjw_without_use): Likewise.
32460         (sc_prohibit_safe_read_without_use): Likewise.
32461         (sc_prohibit_argmatch_without_use): Likewise.
32462         (sc_prohibit_canonicalize_without_use): Likewise.
32463         (sc_prohibit_root_dev_ino_without_use): Likewise.
32464         (sc_prohibit_openat_without_use): Likewise.
32465         (sc_prohibit_c_ctype_without_use): Likewise.
32466         (sc_prohibit_signal_without_use): Likewise.
32467         (sc_prohibit_intprops_without_use): Likewise.
32468
32469 2010-03-30  Eric Blake  <eblake@redhat.com>
32470
32471         maint: improve module indicators
32472         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32473         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32474         columns, and avoid extra macro expansion.
32475
32476         fdopendir: work around FreeBSD bug
32477         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32478         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32479         * modules/dirent (Makefile.am): Substitute it.
32480         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32481         declaration.
32482         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32483         fix.
32484         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32485
32486 2010-03-29  Bruno Haible  <bruno@clisp.org>
32487
32488         Emit #pragma system_header after the inclusion guard, not before.
32489         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32490         guard that spans the entire file, not before. This enables an
32491         optimization in GCC's preprocessor.
32492         * lib/ctype.in.h: Likewise.
32493         * lib/dirent.in.h: Likewise.
32494         * lib/errno.in.h: Likewise.
32495         * lib/float.in.h: Likewise.
32496         * lib/getopt.in.h: Likewise.
32497         * lib/iconv.in.h: Likewise.
32498         * lib/langinfo.in.h: Likewise.
32499         * lib/locale.in.h: Likewise.
32500         * lib/math.in.h: Likewise.
32501         * lib/netdb.in.h: Likewise.
32502         * lib/netinet_in.in.h: Likewise.
32503         * lib/pty.in.h: Likewise.
32504         * lib/sched.in.h: Likewise.
32505         * lib/se-selinux.in.h: Likewise.
32506         * lib/search.in.h: Likewise.
32507         * lib/spawn.in.h: Likewise.
32508         * lib/stdarg.in.h: Likewise.
32509         * lib/stdint.in.h: Likewise.
32510         * lib/string.in.h: Likewise.
32511         * lib/strings.in.h: Likewise.
32512         * lib/sys_file.in.h: Likewise.
32513         * lib/sys_ioctl.in.h: Likewise.
32514         * lib/sys_time.in.h: Likewise.
32515         * lib/sys_times.in.h: Likewise.
32516         * lib/sys_utsname.in.h: Likewise.
32517         * lib/sys_wait.in.h: Likewise.
32518         * lib/sysexits.in.h: Likewise.
32519         * lib/wctype.in.h: Likewise.
32520
32521 2010-03-28  James Youngman  <jay@gnu.org>
32522
32523         save-cwd: don't leak a file descriptor when the caller execs.
32524         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32525         saved file descriptor.
32526         * modules/save-cwd (Depends-on): Depend on cloexec.
32527
32528 2010-03-29  Bruno Haible  <bruno@clisp.org>
32529
32530         Remove vestiges of fts-lgpl module.
32531         * lib/fts_.h: Assume GNULIB_FTS is 1.
32532         * lib/fts.c: Likewise.
32533         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32534
32535 2010-03-28  Bruno Haible  <bruno@clisp.org>
32536
32537         Fix definition of tests witness macro.
32538         * gnulib-tool (func_import): Fix definition of witness macro.
32539
32540 2010-03-28  Bruno Haible  <bruno@clisp.org>
32541
32542         Fix ioctl's protoype on glibc systems.
32543         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32544         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32545         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32546         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32547         signature. If not, arrange to replace the ioctl function.
32548         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32549         REPLACE_IOCTL.
32550         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32551         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32552         Reported by Ludovic Courtès <ludo@gnu.org>.
32553
32554 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32555
32556         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32557         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32558         made it so grep -r --include=GLOB* ... did not work.
32559
32560 2010-03-26  Jim Meyering  <meyering@redhat.com>
32561             Eric Blake  <eblake@redhat.com>
32562
32563         maint.mk: prohibit use of test's -o and -a operators
32564         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32565
32566 2010-03-28  Bruno Haible  <bruno@clisp.org>
32567
32568         Remove unused GNULIB_XYZ macro definitions.
32569         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32570         invocation.
32571
32572 2010-03-28  Bruno Haible  <bruno@clisp.org>
32573
32574         Mark privileged tests modules.
32575         * modules/idpriv-drop-tests (Status): New section.
32576         * modules/idpriv-droptemp-tests (Status): New section.
32577
32578 2010-03-28  Bruno Haible  <bruno@clisp.org>
32579
32580         Split C++ tests into separate tests modules.
32581         * modules/dirent-c++-tests: New file, extracted from
32582         modules/dirent-tests.
32583         * modules/dirent-tests: Depend on it.
32584         * modules/fcntl-h-c++-tests: New file, extracted from
32585         modules/fcntl-h-tests.
32586         * modules/fcntl-h-tests: Depend on it.
32587         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32588         * modules/glob-tests: Depend on it.
32589         * modules/iconv-h-c++-tests: New file, extracted from
32590         modules/iconv-h-tests.
32591         * modules/iconv-h-tests: Depend on it.
32592         * modules/langinfo-c++-tests: New file, extracted from
32593         modules/langinfo-tests.
32594         * modules/langinfo-tests: Depend on it.
32595         * modules/locale-c++-tests: New file, extracted from
32596         modules/locale-tests.
32597         * modules/locale-tests: Depend on it.
32598         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32599         * modules/math-tests: Depend on it.
32600         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32601         * modules/pty-tests: Depend on it.
32602         * modules/search-c++-tests: New file, extracted from
32603         modules/search-tests.
32604         * modules/search-tests: Depend on it.
32605         * modules/signal-c++-tests: New file, extracted from
32606         modules/signal-tests.
32607         * modules/signal-tests: Depend on it.
32608         * modules/spawn-c++-tests: New file, extracted from
32609         modules/spawn-tests.
32610         * modules/spawn-tests: Depend on it.
32611         * modules/stdio-c++-tests: New file, extracted from
32612         modules/stdio-tests.
32613         * modules/stdio-tests: Depend on it.
32614         * modules/stdlib-c++-tests: New file, extracted from
32615         modules/stdlib-tests.
32616         * modules/stdlib-tests: Depend on it.
32617         * modules/string-c++-tests: New file, extracted from
32618         modules/string-tests.
32619         * modules/string-tests: Depend on it.
32620         * modules/sys_ioctl-c++-tests: New file, extracted from
32621         modules/sys_ioctl-tests.
32622         * modules/sys_ioctl-tests: Depend on it.
32623         * modules/sys_select-c++-tests: New file, extracted from
32624         modules/sys_select-tests.
32625         * modules/sys_select-tests: Depend on it.
32626         * modules/sys_socket-c++-tests: New file, extracted from
32627         modules/sys_socket-tests.
32628         * modules/sys_socket-tests: Depend on it.
32629         * modules/sys_stat-c++-tests: New file, extracted from
32630         modules/sys_stat-tests.
32631         * modules/sys_stat-tests: Depend on it.
32632         * modules/sys_time-c++-tests: New file, extracted from
32633         modules/sys_time-tests.
32634         * modules/sys_time-tests: Depend on it.
32635         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32636         * modules/time-tests: Depend on it.
32637         * modules/unistd-c++-tests: New file, extracted from
32638         modules/unistd-tests.
32639         * modules/unistd-tests: Depend on it.
32640         * modules/wchar-c++-tests: New file, extracted from
32641         modules/wchar-tests.
32642         * modules/wchar-tests: Depend on it.
32643         * modules/wctype-c++-tests: New file, extracted from
32644         modules/wctype-tests.
32645         * modules/wctype-tests: Depend on it.
32646         Reported by Simon Josefsson.
32647
32648 2010-03-28  Bruno Haible  <bruno@clisp.org>
32649
32650         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32651         * gnulib-tool (func_exists_module): New function, extracted from
32652         func_verify_module.
32653         (func_verify_module): Use it.
32654         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32655         'foo' only if 'foo' exists.
32656         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32657         module.
32658
32659 2010-03-28  Bruno Haible  <bruno@clisp.org>
32660
32661         gnulib-tool: Add support for special categories of tests.
32662         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32663         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32664         (func_usage): Document them.
32665         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32666         inc_unportable_tests, inc_all_tests): New variables.
32667         (func_acceptable): Consider these variables.
32668         (func_modules_transitive_closure): Make it work when the 'Status' field
32669         consists of multiple words.
32670         (func_import): Store and restore the values of inc_cxx_tests,
32671         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32672         inc_all_tests in gnulib-comp.m4.
32673         (func_create_testdir): Set inc_all_tests to true.
32674         * doc/gnulib.texi (Extra tests modules): New section.
32675         Suggested by Jim Meyering.
32676
32677 2010-03-28  Bruno Haible  <bruno@clisp.org>
32678
32679         ansi-c++-opt: Allow turning off the C++ build by default.
32680         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32681         gl_CXX_CHOICE_DEFAULT_NO is defined.
32682         Requested by Eric Blake.
32683
32684 2010-03-28  Bruno Haible  <bruno@clisp.org>
32685
32686         unistd: Avoid #define replacements in C++ mode.
32687         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32688         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32689         setsockopt, shutdown, select): In C++, attach a warning to the function
32690         if possible, rather than #defining the symbol to a dysfunctional alias.
32691         Reported by John W. Eaton <jwe@gnu.org>.
32692
32693 2010-03-28  Bruno Haible  <bruno@clisp.org>
32694
32695         Fix link errors on mingw.
32696         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32697         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32698         $(LIBSOCKET).
32699         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32700         $(LIBSOCKET).
32701
32702 2010-03-28  Bruno Haible  <bruno@clisp.org>
32703             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32704
32705         lib-ignore: Determine different options for different compilers.
32706         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32707         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32708         Add comments.
32709         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32710         * NEWS: Mention the change.
32711
32712 2010-03-27  Bruno Haible  <bruno@clisp.org>
32713
32714         Remove unused GNULIB_XYZ macro definitions.
32715         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32716         * modules/fseek (configure.ac): Likewise.
32717         * modules/ioctl (configure.ac): Likewise.
32718         * modules/open (configure.ac): Likewise.
32719         * modules/stdlib-safer (configure.ac): Likewise.
32720
32721 2010-03-27  Bruno Haible  <bruno@clisp.org>
32722
32723         Add a remark about certain modules.
32724         * modules/malloc (Comment): New section.
32725         * modules/realloc (Comment): Likewise.
32726         * modules/sigpipe (Comment): Likewise.
32727
32728 2010-03-27  Bruno Haible  <bruno@clisp.org>
32729
32730         Resolve conflict between the two kinds of module indicators.
32731         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32732         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32733         * modules/canonicalize (configure.ac): Invoke
32734         gl_MODULE_INDICATOR_FOR_TESTS.
32735         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32736         GNULIB_XYZ.
32737         * tests/test-dirent-c++.cc: Likewise.
32738         * tests/test-dirent-safer.c: Likewise.
32739         * tests/test-dup2.c: Likewise.
32740         * tests/test-fchdir.c: Likewise.
32741         * tests/test-fcntl-h-c++.cc: Likewise.
32742         * tests/test-getopt.c: Likewise.
32743         * tests/test-getopt.h: Likewise.
32744         * tests/test-langinfo-c++.cc: Likewise.
32745         * tests/test-locale-c++.cc: Likewise.
32746         * tests/test-math-c++.cc: Likewise.
32747         * tests/test-pty-c++.cc: Likewise.
32748         * tests/test-search-c++.cc: Likewise.
32749         * tests/test-signal-c++.cc: Likewise.
32750         * tests/test-spawn-c++.cc: Likewise.
32751         * tests/test-stdio-c++.cc: Likewise.
32752         * tests/test-stdlib-c++.cc: Likewise.
32753         * tests/test-string-c++.cc: Likewise.
32754         * tests/test-sys_ioctl-c++.cc: Likewise.
32755         * tests/test-sys_select-c++.cc: Likewise.
32756         * tests/test-sys_socket-c++.cc: Likewise.
32757         * tests/test-sys_stat-c++.cc: Likewise.
32758         * tests/test-sys_time-c++.cc: Likewise.
32759         * tests/test-time-c++.cc: Likewise.
32760         * tests/test-unistd-c++.cc: Likewise.
32761         * tests/test-wchar-c++.cc: Likewise.
32762         * tests/uninorm/test-u8-nfc.c: Likewise.
32763         * tests/uninorm/test-u8-nfd.c: Likewise.
32764         * tests/uninorm/test-u8-nfkc.c: Likewise.
32765         * tests/uninorm/test-u8-nfkd.c: Likewise.
32766         * tests/uninorm/test-u16-nfc.c: Likewise.
32767         * tests/uninorm/test-u16-nfd.c: Likewise.
32768         * tests/uninorm/test-u16-nfkc.c: Likewise.
32769         * tests/uninorm/test-u16-nfkd.c: Likewise.
32770         * tests/uninorm/test-u32-nfc.c: Likewise.
32771         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32772         * tests/uninorm/test-u32-nfd.c: Likewise.
32773         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32774         * tests/uninorm/test-u32-nfkc.c: Likewise.
32775         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32776         * tests/uninorm/test-u32-nfkd.c: Likewise.
32777         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32778         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32779
32780 2010-03-27  Bruno Haible  <bruno@clisp.org>
32781
32782         Distinguish two kinds of module indicators.
32783         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32784         gl_MODULE_INDICATOR.
32785         (gl_MODULE_INDICATOR): New macro.
32786         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32787         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32788         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32789         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32790         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32791         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32792         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32793         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32794         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32795         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32796         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32797         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32800         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32802         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32803         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32804         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32805         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32806         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32807         * modules/cloexec (configure.ac): Likewise.
32808         * modules/getopt-gnu (configure.ac): Likewise.
32809         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32810         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32811         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32812         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32813
32814 2010-03-27  Bruno Haible  <bruno@clisp.org>
32815
32816         New module description field 'Comment'.
32817         * gnulib-tool: New option --extract-comment.
32818         (func_usage): Document it.
32819         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32820         (func_get_comment): New function.
32821         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32822
32823 2010-03-27  Bruno Haible  <bruno@clisp.org>
32824
32825         Addendum to 2010-02-07 commit.
32826         * gnulib-tool (func_usage): Document --extract-applicability option.
32827
32828 2010-03-27  Bruno Haible  <bruno@clisp.org>
32829
32830         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32831         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32832         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32833         rather than link errors.
32834
32835 2010-03-27  Bruno Haible  <bruno@clisp.org>
32836
32837         Avoid side effects from tests-related modules on the compilation of lib.
32838         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32839         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32840         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32841         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32842         macro.
32843         (func_import): Define a witness macro. Assign it a value that depends
32844         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32845         tests-related modules.
32846         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32847         Reported by Jim Meyering.
32848
32849 2010-03-27  Bruno Haible  <bruno@clisp.org>
32850
32851         Factorize common .m4 code.
32852         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32853         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32854         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32855         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32856         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32857         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32858         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32859         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32860         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32861         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32862         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32863         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32864         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32865         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32866         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32867         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32868         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32869         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32870         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32871         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32872         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32873         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32874         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32876         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32877         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32878         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32879         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32880         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32881         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32882         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32883         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32884
32885 2010-03-27  Bruno Haible  <bruno@clisp.org>
32886
32887         Fix a compilation error on Cygwin with g++ >= 4.3.
32888         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32889         if it is undefined or if we alias it to chmod.
32890         (lstat): Don't warn about the use of this function if it is undefined
32891         or if we alias it to stat.
32892         Reported by Simon Josefsson.
32893
32894 2010-03-27  Bruno Haible  <bruno@clisp.org>
32895
32896         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32897         * modules/getlogin (configure.ac): Update.
32898
32899         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32900         * modules/getlogin_r (configure.ac): Update.
32901
32902         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32904         * modules/inet_ntop (configure.ac): Update.
32905
32906         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32907         * modules/inet_pton (configure.ac): Update.
32908
32909         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32910         * modules/mbslen (configure.ac): Update.
32911
32912         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32913         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32914         * modules/forkpty (configure.ac): Update.
32915         * modules/openpty (configure.ac): Update.
32916
32917 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32918
32919         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32920         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32921
32922 2010-03-25  Eric Blake  <eblake@redhat.com>
32923
32924         maint: use pragma consistently across replacement headers
32925         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32926         * lib/dirent.in.h (system_header): Likewise.
32927         * lib/errno.in.h (system_header): Likewise.
32928         * lib/float.in.h (system_header): Likewise.
32929         * lib/getopt.in.h (system_header): Likewise.
32930         * lib/iconv.in.h (system_header): Likewise.
32931         * lib/inttypes.in.h (system_header): Likewise.
32932         * lib/langinfo.in.h (system_header): Likewise.
32933         * lib/locale.in.h (system_header): Likewise.
32934         * lib/math.in.h (system_header): Likewise.
32935         * lib/netdb.in.h (system_header): Likewise.
32936         * lib/netinet_in.in.h (system_header): Likewise.
32937         * lib/pty.in.h (system_header): Likewise.
32938         * lib/sched.in.h (system_header): Likewise.
32939         * lib/se-selinux.in.h (system_header): Likewise.
32940         * lib/search.in.h (system_header): Likewise.
32941         * lib/spawn.in.h (system_header): Likewise.
32942         * lib/stdarg.in.h (system_header): Likewise.
32943         * lib/stdint.in.h (system_header): Likewise.
32944         * lib/string.in.h (system_header): Likewise.
32945         * lib/strings.in.h (system_header): Likewise.
32946         * lib/sys_file.in.h (system_header): Likewise.
32947         * lib/sys_ioctl.in.h (system_header): Likewise.
32948         * lib/sys_socket.in.h (system_header): Likewise.
32949         * lib/sys_times.in.h (system_header): Likewise.
32950         * lib/sys_utsname.in.h (system_header): Likewise.
32951         * lib/sys_wait.in.h (system_header): Likewise.
32952         * lib/sysexits.in.h (system_header): Likewise.
32953         * lib/unistd.in.h (system_header): Likewise.
32954         * lib/wctype.in.h (system_header): Likewise.
32955
32956         arpa/inet: fix mingw compilation warning
32957         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32958         Reported by Matthew Bolte.
32959
32960 2010-03-25  Bruno Haible  <bruno@clisp.org>
32961
32962         Avoid collision between gnulib wrapper and libintl wrapper.
32963         * lib/printf.c (printf): Don't define if a printf wrapper is already
32964         defined in intl/printf.c.
32965         Reported by Michel Boaventura <michel@michelboaventura.com>.
32966
32967 2010-03-25  Bruno Haible  <bruno@clisp.org>
32968
32969         Use ANSI C.
32970         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32971
32972 2010-03-25  Bruno Haible  <bruno@clisp.org>
32973
32974         Minor formatting changes.
32975         * lib/acosl.c: Insert space before function argument list.
32976         * lib/argz.c: Likewise.
32977         * lib/asinl.c: Likewise.
32978         * lib/expl.c: Likewise.
32979         * lib/gen-uni-tables.c: Likewise.
32980         * lib/gettext.h: Likewise.
32981         * lib/glthread/lock.h: Likewise.
32982         * lib/tanl.c: Likewise.
32983         * lib/uniname/uniname.c: Likewise.
32984         * tests/test-idpriv-drop.c: Likewise.
32985         * tests/test-idpriv-droptemp.c: Likewise.
32986         * tests/test-lock.c: Likewise.
32987         * tests/test-tls.c: Likewise.
32988         * lib/argp-help.c: Insert space before function-like macro argument
32989         list.
32990         * lib/memcmp.c: Likewise.
32991         * tests/test-base64.c: Likewise.
32992         * lib/localename.c: Insert space before sizeof's argument list.
32993         * lib/safe-alloc.h: Likewise.
32994         * lib/file-set.h: Insert space before macro argument list.
32995         * tests/test-argp.c: Likewise.
32996         * lib/argp-namefrob.h: Insert space before function parameter list.
32997         * lib/getaddrinfo.c: Likewise.
32998         * lib/netdb.in.h: Likewise.
32999         * lib/parse-duration.h: Likewise.
33000         * lib/parse-duration.c: Likewise.
33001         * lib/poll.c: Likewise.
33002         * lib/select.c: Likewise.
33003         * lib/trim.h: Likewise.
33004         * tests/test-usleep.c: Likewise.
33005         * lib/ldexpl.c: Insert space before function parameter list and before
33006         function argument list.
33007         * lib/logl.c: Likewise.
33008         * lib/sqrtl.c: Likewise.
33009         * lib/trim.c: Likewise.
33010         * lib/cosl.c: Use GNU style indentation. Insert space before function
33011         argument list.
33012         * lib/sinl.c: Likewise.
33013         * lib/tsearch.c: Insert space after 'for'.
33014         Reported by Jim Meyering.
33015
33016 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33017
33018         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33019         config header before grepping, as it's not present before
33020         autoreconf/configure are run.  Reported by Simon Josefsson.
33021
33022 2010-03-23  Bruno Haible  <bruno@clisp.org>
33023
33024         pt_chown: Make it work with automake < 1.11.
33025         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33026         Reported by Simon Josefsson.
33027
33028 2010-03-23  Bruno Haible  <bruno@clisp.org>
33029
33030         pt_chown: Don't depend on GPLed modules.
33031         * lib/pt_chown.c: Don't include idpriv.h.
33032         (main): Don't drop privileges.
33033         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33034         Reported by Simon Josefsson.
33035
33036 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33037
33038         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33039         suggestions from karl@freefriends.org (Karl Berry).
33040
33041 2010-03-22  Eric Blake  <eblake@redhat.com>
33042
33043         gethostname: further tweaks
33044         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33045         are overriding gethostname.
33046         Suggested by Bruno Haible.
33047
33048 2010-03-21  Bruno Haible  <bruno@clisp.org>
33049
33050         Fix comments.
33051         * lib/forkpty.c (rpl_forkpty): Fix comment.
33052         * lib/openpty.c (rpl_openpty): Likewise.
33053         Reported by Eric Blake.
33054
33055 2010-03-22  Eric Blake  <eblake@redhat.com>
33056
33057         gethostname: fix build on mingw
33058         * lib/unistd.in.h (includes): Work around fact that mingw
33059         <winsock2.h> re-includes <unistd.h>, by avoiding any
33060         redeclarations if we are being included by <winsock2.h>.
33061         Reported by Matthias Bolte.
33062
33063 2010-03-21  Bruno Haible  <bruno@clisp.org>
33064
33065         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33066         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33067         modifications.
33068         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33069         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33070         provide the replacement.
33071         * modules/forkpty (Depends-on): Add openpty, login_tty.
33072         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33073         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33074         * doc/glibc-functions/forkpty.texi: More supported platforms.
33075         * config/srclist.txt: Add forkpty.c (commented).
33076
33077 2010-03-21  Bruno Haible  <bruno@clisp.org>
33078
33079         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33080         (Makefile.am): Verify that PTY_LIB is defined.
33081
33082         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33083
33084 2010-03-21  Bruno Haible  <bruno@clisp.org>
33085
33086         Tests for module 'login_tty'.
33087         * modules/login_tty-tests: New file.
33088         * tests/test-login_tty.c: New file.
33089
33090         New module 'login_tty'.
33091         * lib/login_tty.c: New file.
33092         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33093         * modules/login_tty: New file.
33094         * doc/glibc-functions/login_tty.texi: Mention the new module.
33095
33096 2010-03-21  Bruno Haible  <bruno@clisp.org>
33097
33098         login_tty: Documentation.
33099         * doc/glibc-functions/login_tty.texi: New file.
33100         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33101
33102 2010-03-21  Bruno Haible  <bruno@clisp.org>
33103
33104         pty: Consistent macro naming.
33105         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33106         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33107         * modules/pty (configure.ac): Update.
33108
33109 2010-03-21  Bruno Haible  <bruno@clisp.org>
33110
33111         Tests for openpty: Make stricter.
33112         * tests/test-openpty.c (main): Add test of canonical processing and
33113         erase.
33114         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33115
33116         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33117         * lib/openpty.c (openpty): New replacement function.
33118         * lib/pty.in.h: Include <termios.h>.
33119         (openpty): Update declaration. Add comments.
33120         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33121         is not declared, arrange to provide the replacement. Check for _getpty
33122         and posix_openpt.
33123         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33124         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33125         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33126         * modules/pty-tests (test_pty_c___LDADD): New variable.
33127         * doc/glibc-functions/openpty.texi: More supported platforms.
33128
33129 2010-03-21  Bruno Haible  <bruno@clisp.org>
33130
33131         setenv: Tweaks.
33132         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33133         the test program.
33134         * doc/posix-functions/setenv.texi: Update platforms list.
33135
33136 2010-03-21  Bruno Haible  <bruno@clisp.org>
33137
33138         New module 'unlockpt'.
33139         * lib/unlockpt.c: New file, from glibc with modifications.
33140         * m4/unlockpt.m4: New file.
33141         * modules/unlockpt: New file.
33142         * lib/stdlib.in.h (unlockpt): New declaration.
33143         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33144         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33145         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33146         HAVE_UNLOCKPT.
33147         * doc/posix-functions/unlockpt.texi: Mention the new module.
33148         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33149         * config/srclist.txt: Add unlockpt.c (commented).
33150
33151 2010-03-21  Jim Meyering  <meyering@redhat.com>
33152
33153         maint.mk: prohibit inclusion of "intprops.h" without use
33154         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33155
33156 2010-03-21  Bruno Haible  <bruno@clisp.org>
33157
33158         New module 'grantpt'.
33159         * lib/grantpt.c: New file, from glibc with modifications.
33160         * m4/grantpt.m4: New file.
33161         * modules/grantpt: New file.
33162         * lib/stdlib.in.h (grantpt): New declaration.
33163         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33164         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33165         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33166         HAVE_GRANTPT.
33167         * doc/posix-functions/grantpt.texi: Mention the new module.
33168         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33169         * config/srclist.txt: Add grantpt.c (commented).
33170
33171 2010-03-21  Bruno Haible  <bruno@clisp.org>
33172
33173         New module 'pt_chown'.
33174         * lib/pt_chown.c: New file, from glibc with modifications.
33175         * lib/pty-private.h: New file, from glibc with modifications.
33176         * modules/pt_chown: New file.
33177         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33178
33179 2010-03-21  Bruno Haible  <bruno@clisp.org>
33180
33181         Tests for module 'ptsname'.
33182         * modules/ptsname-tests: New file.
33183         * tests/test-ptsname.c: New file.
33184
33185         New module 'ptsname'.
33186         * lib/ptsname.c: New file, from glibc with modifications.
33187         * m4/ptsname.m4: New file.
33188         * modules/ptsname: New file.
33189         * lib/stdlib.in.h (ptsname): New declaration.
33190         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33191         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33192         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33193         HAVE_PTSNAME.
33194         * doc/posix-functions/ptsname.texi: Mention the new module.
33195         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33196         * config/srclist.txt: Add ptsname.c (commented).
33197
33198 2010-03-21  Bruno Haible  <bruno@clisp.org>
33199
33200         Tests for module 'ttyname_r'.
33201         * modules/ttyname_r-tests: New file.
33202         * tests/test-ttyname_r.c: New file.
33203
33204         New module 'ttyname_r'.
33205         * lib/ttyname_r.c: New file.
33206         * m4/ttyname_r.m4: New file.
33207         * modules/ttyname_r: New file.
33208         * lib/unistd.in.h (ttyname_r): New declaration.
33209         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33210         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33211         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33212         HAVE_TTYNAME_R.
33213         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33214         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33215
33216 2010-03-20  Bruno Haible  <bruno@clisp.org>
33217
33218         signal: Undefine macro definitions in C++ mode.
33219         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33220         sigfillset): Undefine macro definitions from the system header in C++
33221         mode.
33222         Reported by John W. Eaton <jwe@gnu.org>.
33223
33224 2010-03-20  Bruno Haible  <bruno@clisp.org>
33225
33226         Ensure no #include statements inside extern "C" { ... }.
33227         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33228         contain #include statements.
33229         * lib/time.in.h: Likewise.
33230
33231 2010-03-20  Bruno Haible  <bruno@clisp.org>
33232
33233         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33234         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33235         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33236         Reported by John W. Eaton <jwe@gnu.org>.
33237
33238 2010-03-20  Bruno Haible  <bruno@clisp.org>
33239
33240         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33241         Reported by Jim Meyering.
33242
33243 2010-03-20  Bruno Haible  <bruno@clisp.org>
33244
33245         pipe: Set errno upon failure.
33246         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33247         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33248         errno value in error message.
33249
33250 2010-03-20  Bruno Haible  <bruno@clisp.org>
33251             Jim Meyering  <meyering@redhat.com>
33252
33253         lchown: Avoid "unused variable" warning.
33254         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33255
33256 2010-03-20  Bruno Haible  <bruno@clisp.org>
33257
33258         Work around unlink() bug on MacOS X 10.5.6.
33259         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33260         attempting to unlink a parent directory.
33261         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33262         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33263         activate for the replacement function.
33264         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33265
33266 2010-03-20  Bruno Haible  <bruno@clisp.org>
33267
33268         Fix link errors on Solaris 8.
33269         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33270         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33271
33272 2010-03-19  Jim Meyering  <meyering@redhat.com>
33273
33274         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33275         The _LIBC implementation of build_range_exp correctly honors the
33276         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33277         However, the non-_LIBC implementation would ignore that syntax-bit
33278         flag and return REG_ERANGE unconditionally.
33279         This change makes it honor that flag.
33280         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33281         Make two pointer parameters "const".
33282         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33283         (parse_bracket_exp): Update caller.
33284
33285         regex.m4: correct the reversed range endpoint ([b-a]) test
33286         * m4/regex.m4: When requiring that [b-a] evoke failure,
33287         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33288         test pass once again for x86-based systems.
33289
33290 2010-03-19  Bruno Haible  <bruno@clisp.org>
33291
33292         scandir: Fix link error on Solaris 8.
33293         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33294         macros.
33295
33296 2010-03-19  Bruno Haible  <bruno@clisp.org>
33297
33298         getusershell: Fix documentation.
33299         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33300         module.
33301         * doc/glibc-functions/setusershell.texi: Likewise.
33302
33303         getusershell: Provide declaration, missing on Solaris 9.
33304         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33305         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33306         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33307         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33309         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33310         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33311         HAVE_GETUSERSHELL.
33312         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33313
33314 2010-03-19  Bruno Haible  <bruno@clisp.org>
33315
33316         wctype: Provide iswblank function.
33317         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33318         exists and is fine.
33319         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33320         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33321         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33322         * doc/posix-functions/iswblank.texi: Update.
33323
33324 2010-03-19  Bruno Haible  <bruno@clisp.org>
33325
33326         Tests of module 'pty' in C++ mode.
33327         * modules/pty-tests: New file.
33328         * tests/test-pty-c++.cc: New file.
33329         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33330
33331 2010-03-19  Eric Blake  <eblake@redhat.com>
33332
33333         logb: fix documentation
33334         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33335         1.5 declaration bug.
33336
33337         forkpty, openpty: prefer glibc's const-safe prototype
33338         * lib/forkpty.c (rpl_forkpty): New file.
33339         * lib/openpty.c (rpl_openpty): Likewise.
33340         * modules/forkpty (Files): Distribute it.
33341         * modules/openpty (Files): Likewise.
33342         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33343         check...
33344         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33345         replacement for for non-const BSD signature.
33346         * modules/pty (Makefile.am): Substitute witnesses.
33347         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33348         * tests/test-forkpty.c: Update signature check.
33349         * tests/test-openpty.c: Likewise.
33350         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33351         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33352
33353         forkpty, openpty: split functions into new modules
33354         * modules/pty (Makefile.am): Substitute new witnesses.
33355         (Libraries): Move library detection...
33356         * modules/forkpty: ...into new module.
33357         * modules/openpty: Another new module.
33358         * modules/pty-tests: Rename and split...
33359         * modules/forkpty-tests: ...to this...
33360         * modules/openpty-tests: ...and this.
33361         * tests/test-pty.c: Rename and split...
33362         * tests/test-forkpty.c: ...to this...
33363         * tests/test-openpty.c: ...and this.
33364         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33365         (gl_PTY): Split library searching...
33366         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33367         (gl_FORKPTY, gl_OPENPTY): New macros.
33368         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33369         * NEWS: Mention the split.
33370         * MODULES.html.sh (Misc): Document the modules.
33371         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33372         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33373
33374         pty: improve replacement header
33375         * lib/pty.in.h: New file.
33376         * modules/pty (Files): Ship it.
33377         (Makefile.am): Always build replacement.
33378         * m4/pty.m4: Rename...
33379         * m4/pty_h.m4: ...to this.
33380         (gl_PTY): Modernize setting of witness macros; update check of
33381         forkpty to take proper advantage of cache.
33382         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33383
33384         getopt: avoid compiler warning
33385         * lib/getopt.c (attribute_hidden): Remove unused macro.
33386
33387 2010-03-18  Bruno Haible  <bruno@clisp.org>
33388
33389         Fix link errors on Solaris 8.
33390         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33391         * modules/search-tests (test_search_c___LDADD): Likewise.
33392         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33393         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33394         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33395         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33396         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33397         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33398         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33399
33400 2010-03-18  Bruno Haible  <bruno@clisp.org>
33401
33402         Fix bug introduced on 2010-03-14.
33403         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33404         (gl_SPAWN_H): Require it.
33405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33406         Reported by Simon Josefsson.
33407
33408 2010-03-18  Bruno Haible  <bruno@clisp.org>
33409
33410         Fix typo introduced on 2009-12-31.
33411         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33412         posix_spawn_file_actions_adddup2.
33413
33414 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33415         and Eric Blake  <eblake@redhat.com>
33416
33417         test-vc-list-files-git: make more robust
33418         * tests/test-vc-list-files-git.sh: Unset problematic environment
33419         variables.  Chain commands together.
33420
33421 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33422
33423         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33424         `AC_CHECK_DECL' invocation.
33425
33426 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33427
33428         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33429         appears before executable statements. Suggested by Petr Sumbera
33430         <Petr.Sumbera@Sun.COM>.
33431
33432 2010-03-14  Bruno Haible  <bruno@clisp.org>
33433
33434         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33435         portability problems. Instead use a simpler test.
33436         (main): Check that invalid arguments are rejected only on Linux.
33437
33438 2010-03-14  Bruno Haible  <bruno@clisp.org>
33439
33440         Fix bug introduced on 2009-12-31.
33441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33442         gl_PREREQ_SYS_H_WINSOCK2 always.
33443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33444         SYS_SOCKET_H variable.
33445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33446         Update comments.
33447         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33448         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33449         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33451         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33452
33453 2010-03-14  Bruno Haible  <bruno@clisp.org>
33454
33455         Fix values returned by sinl, cosl.
33456         * lib/trigl.h: Add specification comments.
33457         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33458         that combines the values from the precomputed table with the values of
33459         the Chebyshev polynomials.
33460
33461 2010-03-14  Bruno Haible  <bruno@clisp.org>
33462
33463         Fix compilation error when modules 'posix_spawn[p]' are not used.
33464         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33466
33467 2010-03-14  Bruno Haible  <bruno@clisp.org>
33468
33469         Fix compilation error on mingw when module 'time_r' is not used.
33470         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33471         is 1.
33472         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33473         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33474         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33475         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33476
33477 2010-03-14  Bruno Haible  <bruno@clisp.org>
33478
33479         Fix compilation error with Sun C.
33480         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33481         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33482         instead of GCC specific ULONG_LONG_MAX.
33483         * lib/xstrtoll.c: Likewise.
33484         * lib/xstrtoull.c: Likewise.
33485
33486 2010-03-13  Bruno Haible  <bruno@clisp.org>
33487
33488         Allow the user to disable C++ code and tests.
33489         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33490         (gl_PROG_ANSI_CXX): Require it.
33491
33492 2010-03-13  Bruno Haible  <bruno@clisp.org>
33493
33494         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33495         cases.
33496
33497 2010-03-13  Bruno Haible  <bruno@clisp.org>
33498
33499         Test that gnulib does not break the standard C++ headers.
33500         * tests/test-locale-c++2.cc: New file.
33501         * modules/locale-tests (Files): Add it.
33502         (Makefile.am): Compile it for test-locale-c++.
33503         * tests/test-math-c++2.cc: New file.
33504         * modules/math-tests (Files): Add it.
33505         (Makefile.am): Compile it for test-math-c++.
33506         * tests/test-signal-c++2.cc: New file.
33507         * modules/signal-tests (Files): Add it.
33508         (Makefile.am): Compile it for test-signal-c++.
33509         * tests/test-stdio-c++2.cc: New file.
33510         * modules/stdio-tests (Files): Add it.
33511         (Makefile.am): Compile it for test-stdio-c++.
33512         * tests/test-stdlib-c++2.cc: New file.
33513         * modules/stdlib-tests (Files): Add it.
33514         (Makefile.am): Compile it for test-stdlib-c++.
33515         * tests/test-string-c++2.cc: New file.
33516         * modules/string-tests (Files): Add it.
33517         (Makefile.am): Compile it for test-string-c++.
33518         * tests/test-time-c++2.cc: New file.
33519         * modules/time-tests (Files): Add it.
33520         (Makefile.am): Compile it for test-time-c++.
33521         Reported by John W. Eaton <jwe@gnu.org>.
33522
33523 2010-03-13  Bruno Haible  <bruno@clisp.org>
33524
33525         * gnulib-tool (func_usage): Clarify which options are available for
33526         --create-testdir and --create-megatestdir.
33527
33528 2010-03-13  Bruno Haible  <bruno@clisp.org>
33529
33530         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33531         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33532         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33533         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33534         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33535         when appropriate.
33536         Reported by Jim Meyering.
33537
33538 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33539
33540         * gnulib-tool (func_import): Explain origin of code.
33541
33542 2010-03-12  Bruno Haible  <bruno@clisp.org>
33543
33544         Fix problem with automake's definition of CXXLINK.
33545         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33546         Reported by Simon Josefsson and Ludovic Courtès.
33547
33548 2010-03-12  Bruno Haible  <bruno@clisp.org>
33549
33550         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33551         stable releases.
33552
33553 2010-03-11  Bruno Haible  <bruno@clisp.org>
33554
33555         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33556         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33557         whether the system provides one variant or multiple variants of the
33558         function.
33559         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33560         C++ compilers.
33561         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33562         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33563         Reported by Jim Meyering.
33564
33565 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33566
33567         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33568
33569 2010-03-08  Bruno Haible  <bruno@clisp.org>
33570
33571         gnulib-tool: Add support for --libtool in --create-testdir.
33572         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33573         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33574
33575 2010-03-08  Eric Blake  <eblake@redhat.com>
33576
33577         gnulib-tool.texi: mention possibility of git submodule
33578         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33579         submodules.
33580         * doc/.gitignore: Ignore another generated file.
33581
33582 2010-03-08  Karl Berry  <karl@gnu.org>
33583
33584         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33585         of committing gnulib files while skipping others.
33586
33587 2010-03-07  Bruno Haible  <bruno@clisp.org>
33588
33589         Tests of module 'wctype' in C++ mode.
33590         * tests/test-wctype-c++.cc: New file.
33591         * modules/wctype-tests (Files): Add it and tests/signature.h.
33592         (Depends-on): Add ansi-c++-opt.
33593         (Makefile.am): Arrange to compile and run test-wctype-c++.
33594
33595         Tests of module 'wchar' in C++ mode.
33596         * tests/test-wchar-c++.cc: New file.
33597         * modules/wchar-tests (Files): Add it and tests/signature.h.
33598         (Depends-on): Add ansi-c++-opt.
33599         (Makefile.am): Arrange to compile and run test-wchar-c++.
33600         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33601         gl_MODULE_INDICATOR.
33602
33603         Tests of module 'unistd' in C++ mode.
33604         * tests/test-unistd-c++.cc: New file.
33605         * modules/unistd-tests (Files): Add it and tests/signature.h.
33606         (Depends-on): Add ansi-c++-opt.
33607         (Makefile.am): Arrange to compile and run test-unistd-c++.
33608         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33609         gl_MODULE_INDICATOR.
33610
33611         Tests of module 'time' in C++ mode.
33612         * tests/test-time-c++.cc: New file.
33613         * modules/time-tests (Files): Add it and tests/signature.h.
33614         (Depends-on): Add ansi-c++-opt.
33615         (Makefile.am): Arrange to compile and run test-time-c++.
33616         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33617
33618         Tests of module 'sys_time' in C++ mode.
33619         * tests/test-sys_time-c++.cc: New file.
33620         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33621         (Depends-on): Add ansi-c++-opt.
33622         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33623         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33624         gl_MODULE_INDICATOR.
33625
33626         Tests of module 'sys_stat' in C++ mode.
33627         * tests/test-sys_stat-c++.cc: New file.
33628         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33629         (Depends-on): Add ansi-c++-opt.
33630         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33631         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33632         gl_MODULE_INDICATOR.
33633
33634         Tests of module 'sys_socket' in C++ mode.
33635         * tests/test-sys_socket-c++.cc: New file.
33636         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33637         (Depends-on): Add ansi-c++-opt.
33638         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33639         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33640         gl_MODULE_INDICATOR.
33641
33642         Tests of module 'sys_select' in C++ mode.
33643         * tests/test-sys_select-c++.cc: New file.
33644         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33645         (Depends-on): Add ansi-c++-opt.
33646         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33647         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33648         gl_MODULE_INDICATOR.
33649
33650         Tests of module 'sys_ioctl' in C++ mode.
33651         * tests/test-sys_ioctl-c++.cc: New file.
33652         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33653         (Depends-on): Add ansi-c++-opt.
33654         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33656         gl_MODULE_INDICATOR.
33657
33658         Tests of module 'string' in C++ mode.
33659         * tests/test-string-c++.cc: New file.
33660         * modules/string-tests (Files): Add it and tests/signature.h.
33661         (Depends-on): Add ansi-c++-opt.
33662         (Makefile.am): Arrange to compile and run test-string-c++.
33663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33664         gl_MODULE_INDICATOR.
33665
33666         Tests of module 'stdlib' in C++ mode.
33667         * tests/test-stdlib-c++.cc: New file.
33668         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33669         (Depends-on): Add ansi-c++-opt.
33670         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33671         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33672         gl_MODULE_INDICATOR.
33673
33674         Tests of module 'stdio' in C++ mode.
33675         * tests/test-stdio-c++.cc: New file.
33676         * modules/stdio-tests (Files): Add it and tests/signature.h.
33677         (Depends-on): Add ansi-c++-opt.
33678         (Makefile.am): Arrange to compile and run test-stdio-c++.
33679         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33680         gl_MODULE_INDICATOR.
33681
33682         Tests of module 'spawn' in C++ mode.
33683         * tests/test-spawn-c++.cc: New file.
33684         * modules/spawn-tests (Files): Add it and tests/signature.h.
33685         (Depends-on): Add ansi-c++-opt.
33686         (Makefile.am): Arrange to compile and run test-spawn-c++.
33687         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33688         gl_MODULE_INDICATOR.
33689
33690         Tests of module 'signal' in C++ mode.
33691         * tests/test-signal-c++.cc: New file.
33692         * modules/signal-tests (Files): Add it and tests/signature.h.
33693         (Depends-on): Add ansi-c++-opt.
33694         (Makefile.am): Arrange to compile and run test-signal-c++.
33695         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33696         gl_MODULE_INDICATOR.
33697
33698         Tests of module 'search' in C++ mode.
33699         * tests/test-search-c++.cc: New file.
33700         * modules/search-tests (Files): Add it and tests/signature.h.
33701         (Depends-on): Add ansi-c++-opt.
33702         (Makefile.am): Arrange to compile and run test-search-c++.
33703         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33704         gl_MODULE_INDICATOR.
33705
33706         Tests of module 'math' in C++ mode.
33707         * tests/test-math-c++.cc: New file.
33708         * modules/math-tests (Files): Add it and tests/signature.h.
33709         (Depends-on): Add ansi-c++-opt.
33710         (Makefile.am): Arrange to compile and run test-math-c++.
33711         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33712
33713         Tests of module 'locale' in C++ mode.
33714         * tests/test-locale-c++.cc: New file.
33715         * modules/locale-tests (Files): Add it and tests/signature.h.
33716         (Depends-on): Add ansi-c++-opt.
33717         (Makefile.am): Arrange to compile and run test-locale-c++.
33718         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33719         gl_MODULE_INDICATOR.
33720
33721         Tests of module 'langinfo' in C++ mode.
33722         * tests/test-langinfo-c++.cc: New file.
33723         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33724         (Depends-on): Add ansi-c++-opt.
33725         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33726         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33727         gl_MODULE_INDICATOR.
33728
33729         Tests of module 'iconv-h' in C++ mode.
33730         * tests/test-iconv-h-c++.cc: New file.
33731         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33732         (Depends-on): Add ansi-c++-opt.
33733         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33734
33735         Tests of module 'glob' in C++ mode.
33736         * tests/test-glob-c++.cc: New file.
33737         * modules/glob-tests (Files): Add it.
33738         (Depends-on): Add ansi-c++-opt.
33739         (Makefile.am): Arrange to compile and run test-glob-c++.
33740
33741         Tests of module 'fcntl-h' in C++ mode.
33742         * tests/test-fcntl-h-c++.cc: New file.
33743         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33744         (Depends-on): Add ansi-c++-opt.
33745         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33746         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33747         gl_MODULE_INDICATOR.
33748
33749         Tests of module 'dirent' in C++ mode.
33750         * tests/test-dirent-c++.cc: New file.
33751         * modules/dirent-tests (Files): Add it and tests/signature.h.
33752         (Depends-on): Add ansi-c++-opt.
33753         (Makefile.am): Arrange to compile and run test-dirent-c++.
33754         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33755         gl_MODULE_INDICATOR.
33756
33757         New module 'ansi-c++-opt'.
33758         * modules/ansi-c++-opt: New file.
33759         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33760
33761         Document C++ namespace mode.
33762         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33763
33764         wctype: Avoid #define replacements in C++ mode.
33765         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33766         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33767         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33768         In C++, define a namespaced alias symbol.
33769         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33770         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33771         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33772         rule.
33773
33774         wchar: Avoid #define replacements in C++ mode.
33775         * lib/wchar.in.h: Include c++defs.h.
33776         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33777         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33778         symbol.
33779         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33780         * modules/wchar (Depends-on): Add c++defs.
33781         (Makefile.am): Update wchar.h rule.
33782
33783         unistd: Avoid #define replacements in C++ mode.
33784         * lib/unistd.in.h: Include c++defs.h.
33785         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33786         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33787         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33788         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33789         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33790         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33791         symbol.
33792         (environ): Update.
33793         * modules/unistd (Depends-on): Add c++defs.
33794         (Makefile.am): Update unistd.h rule.
33795
33796         time: Avoid #define replacements in C++ mode.
33797         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33798         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33799         define a namespaced alias symbol.
33800         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33801         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33802         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33803         * modules/time (Depends-on): Add c++defs, warn-on-use.
33804         (Makefile.am): Update time.h rule.
33805         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33806         * modules/nanosleep (configure.ac): Likewise.
33807         * modules/strptime (configure.ac): Likewise.
33808         * modules/timegm (configure.ac): Likewise.
33809
33810         sys_time: Avoid #define replacements in C++ mode.
33811         * lib/sys_time.in.h: Include c++defs.h.
33812         (gettimeofday): In C++, define a namespaced alias symbol.
33813         * modules/sys_time (Depends-on): Add c++defs.
33814         (Makefile.am): Update sys/time.h rule.
33815
33816         sys_stat: Avoid #define replacements in C++ mode.
33817         * lib/sys_stat.in.h: Include c++defs.h.
33818         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33819         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33820         namespaced alias symbol.
33821         In C++, define a namespaced alias symbol.
33822         * modules/sys_stat (Depends-on): Add c++defs.
33823         (Makefile.am): Update sys/stat.h rule.
33824
33825         sys_socket: Avoid #define replacements in C++ mode.
33826         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33827         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33828         definitions also when the system has a <sys/socket.h>.
33829         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33830         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33831         In C++, define a namespaced alias symbol.
33832         * modules/sys_socket (Depends-on): Add c++defs.
33833         (Makefile.am): Update sys/socket.h rule.
33834
33835         sys_select: Avoid #define replacements in C++ mode.
33836         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33837         definitions also when the system has a <sys/select.h>.
33838         (select): In C++, define a namespaced alias symbol.
33839         * modules/sys_select (Depends-on): Add c++defs.
33840         (Makefile.am): Update sys/select.h rule.
33841
33842         sys_ioctl: Avoid #define replacements in C++ mode.
33843         * lib/sys_ioctl.in.h: Include c++defs.h.
33844         (ioctl): In C++, define a namespaced alias symbol.
33845         * modules/sys_ioctl (Depends-on): Add c++defs.
33846         (Makefile.am): Update sys/ioctl.h rule.
33847
33848         string: Avoid #define replacements in C++ mode.
33849         * lib/string.in.h: Include c++defs.h.
33850         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33851         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33852         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33853         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33854         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33855         * modules/string (Depends-on): Add c++defs.
33856         (Makefile.am): Update string.h rule.
33857
33858         stdlib: Avoid #define replacements in C++ mode.
33859         * lib/stdlib.in.h: Include c++defs.h.
33860         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33861         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33862         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33863         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33864         symbol.
33865         * modules/stdlib (Depends-on): Add c++defs.
33866         (Makefile.am): Update stdlib.h rule.
33867
33868         stdio: Avoid #define replacements in C++ mode.
33869         * lib/stdio.in.h: Include c++defs.h.
33870         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33871         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33872         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33873         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33874         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33875         namespaced alias symbol.
33876         * modules/stdio (Depends-on): Add c++defs.
33877         (Makefile.am): Update stdio.h rule.
33878
33879         spawn: Avoid #define replacements in C++ mode.
33880         * lib/spawn.in.h: Include c++defs.h.
33881         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33882         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33883         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33884         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33885         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33886         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33887         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33888         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33889         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33890         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33891         In C++, define a namespaced alias symbol.
33892         * modules/spawn (Depends-on): Add c++defs.
33893         (Makefile.am): Update spawn.h rule.
33894
33895         signal: Avoid #define replacements in C++ mode.
33896         * lib/signal.in.h: Include c++defs.h.
33897         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33898         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33899         namespaced alias symbol.
33900         * modules/signal (Depends-on): Add c++defs.
33901         (Makefile.am): Update signal.h rule.
33902
33903         search: Avoid #define replacements in C++ mode.
33904         * lib/search.in.h: Include c++defs.h.
33905         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33906         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33907         symbol.
33908         * modules/search (Depends-on): Add c++defs.
33909         (Makefile.am): Update search.h rule.
33910
33911         math: Avoid #define replacements in C++ mode.
33912         * lib/math.in.h: Include c++defs.h.
33913         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33914         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33915         trunc, truncl): In C++, define a namespaced alias symbol.
33916         * modules/math (Depends-on): Add c++defs.
33917         (Makefile.am): Update math.h rule.
33918
33919         locale: Avoid #define replacements in C++ mode.
33920         * lib/locale.in.h: Include c++defs.h.
33921         (duplocale): In C++, define a namespaced alias symbol.
33922         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33923         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33924         * modules/locale (Depends-on): Add c++defs.
33925         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33926
33927         langinfo: Avoid #define replacements in C++ mode.
33928         * lib/langinfo.in.h: Include c++defs.h.
33929         (nl_langinfo): In C++, define a namespaced alias symbol.
33930         * modules/langinfo (Depends-on): Add c++defs.
33931         (Makefile.am): Update langinfo.h rule.
33932
33933         iconv-h: Avoid #define replacements in C++ mode.
33934         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33935         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33936         symbol.
33937         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33938         whenever iconv is present.
33939         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33940         (Makefile.am): Update iconv.h rule.
33941
33942         glob: Avoid #define replacements in C++ mode.
33943         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33944         (_gl_glob_errfunc_fn): New type.
33945         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33946         symbol.
33947         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33948         (Makefile.am): Update glob.h rule.
33949
33950         fcntl-h: Avoid #define replacements in C++ mode.
33951         * lib/fcntl.in.h: Include c++defs.h.
33952         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33953         * modules/fcntl-h (Depends-on): Add c++defs.
33954         (Makefile.am): Update fcntl.h rule.
33955
33956         dirent: Avoid #define replacements in C++ mode.
33957         * lib/dirent.in.h: Include c++defs.h.
33958         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33959         namespaced alias symbol.
33960         (dirfd): Update declaration.
33961         * modules/dirent (Depends-on): Add c++defs.
33962         (Makefile.am): Update dirent.h rule.
33963
33964         ctype: Make it usable in C++ code.
33965         * lib/ctype.in.h: Include c++defs.h.
33966         (isblank): Declare as extern "C".
33967         * modules/ctype (Depends-on): Add c++defs.
33968         (Makefile.am): Update ctype.h rule.
33969
33970         New module 'c++defs'.
33971         * modules/c++defs: New file.
33972         * build-aux/c++defs.h: New file.
33973         Reported by John W. Eaton <jwe@gnu.org>.
33974
33975 2010-03-07  Bruno Haible  <bruno@clisp.org>
33976
33977         logb: Provide missing declaration for Cygwin.
33978         * lib/math.in.h (logb): New declaration.
33979         * m4/logb.m4: New file.
33980         * modules/logb (Files): Add m4/logb.m4.
33981         (Depends-on): Add math.
33982         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33983         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33985         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33986         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33987
33988 2010-03-07  Bruno Haible  <bruno@clisp.org>
33989
33990         Fix test-cond link error.
33991         * tests/test-cond.c: Include <stdio.h>.
33992
33993 2010-03-07  Bruno Haible  <bruno@clisp.org>
33994
33995         Fix test-dirent-safer link error.
33996         * modules/dirent-safer-tests (Makefile.am): Define
33997         test_dirent_safer_LDADD.
33998
33999 2010-03-07  Bruno Haible  <bruno@clisp.org>
34000
34001         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34002         among default module list.
34003
34004 2010-03-07  Bruno Haible  <bruno@clisp.org>
34005
34006         Fix link error on platforms with GNU libiconv.
34007         * modules/unistr/u8-strcoll-tests (Makefile): Define
34008         test_u8_strcoll_LDADD.
34009         * modules/unistr/u16-strcoll-tests (Makefile): Define
34010         test_u16_strcoll_LDADD.
34011         * modules/unistr/u32-strcoll-tests (Makefile): Define
34012         test_u32_strcoll_LDADD.
34013
34014 2010-03-07  Bruno Haible  <bruno@clisp.org>
34015
34016         Use POSIX declarations for socket functions.
34017         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34018         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34019         rpl_sendto): Change declaration to match POSIX.
34020         * lib/connect.c (rpl_connect): Likewise.
34021         * lib/accept.c (rpl_accept): Likewise.
34022         * lib/bind.c (rpl_bind): Likewise.
34023         * lib/getpeername.c (rpl_getpeername): Likewise.
34024         * lib/getsockname.c (rpl_getsockname): Likewise.
34025         * lib/recv.c (rpl_recv): Likewise.
34026         * lib/send.c (rpl_send): Likewise.
34027         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34028         * lib/sendto.c (rpl_sendto): Likewise.
34029
34030 2010-03-06  Bruno Haible  <bruno@clisp.org>
34031
34032         Clarify access, euidaccess, faccessat.
34033         * doc/posix-functions/faccessat.texi: Mention security problem under
34034         "Other problems", not "Portability problems".
34035         * doc/posix-functions/access.texi: Likewise. Mention a related security
34036         problem.
34037         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34038         * lib/euidaccess.c: Add comments about platforms.
34039         * lib/unistd.in.h (access, euidaccess): Add warnings.
34040
34041 2010-03-07  Bruno Haible  <bruno@clisp.org>
34042
34043         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34044         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34045         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34046         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34047         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34048         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34049         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34050         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34051         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34052         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34053         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34054         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34055         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34056         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34057         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34058         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34059         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34060         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34061         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34062         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34063         Likewise.
34064         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34065         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34066         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34067         Likewise.
34068         * tests/test-spawn.c (main): Make it work when
34069         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34070
34071 2010-03-07  Bruno Haible  <bruno@clisp.org>
34072
34073         Fix incorrect Makefile.am generation in German locale.
34074         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34075         Execute sed command with character range in C locale.
34076
34077 2010-03-06  Bruno Haible  <bruno@clisp.org>
34078
34079         Tests for module 'iconv-h'.
34080         * modules/iconv-h-tests: New file.
34081         * tests/test-iconv-h.c: New file.
34082
34083         New module 'iconv-h'.
34084         * modules/iconv-h: New file.
34085         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34086         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34087         (configure.ac): Remove gl_ICONV_H.
34088         (Makefile.am): Remove rule for iconv.h.
34089
34090 2010-03-06  Bruno Haible  <bruno@clisp.org>
34091
34092         More consistent naming of *.m4 files.
34093         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34094         * modules/wctype (Files): Update.
34095
34096         More consistent naming of *.m4 files.
34097         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34098         * modules/wchar (Files): Update.
34099
34100 2010-03-06  Jim Meyering  <meyering@redhat.com>
34101
34102         euidaccess: relax license to LGPLv2+
34103         * modules/euidaccess (License): Relax to LGPLv2+.
34104
34105 2010-03-06  Bruno Haible  <bruno@clisp.org>
34106
34107         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34108         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34109         (Makefile.am): Augment lib_SOURCES instead.
34110
34111 2010-03-04  Jim Meyering  <meyering@redhat.com>
34112
34113         utime: remove obsolete module
34114         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34115         unnecessary for years, and has been marked as obsolete for 10 months.
34116         * modules/utime: Remove file.
34117         * lib/utime.c: Remove file.
34118         * m4/utime.m4: Remove file.
34119         * m4/utimes-null.m4: Remove file.
34120         * doc/posix-functions/utime.texi (utime): Remove reference to
34121         the module.  Move the sole "fixed by gnulib" item into the
34122         "problems not fixed by Gnulib" list.
34123         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34124
34125 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34126
34127         * modules/exit (License): Relax license to LGPLv2+.
34128         (Status): Mark as obsolete.
34129         * NEWS: Mention deprecated 'exit' module.
34130         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34131         of now obsolete 'exit'.
34132
34133 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34134
34135         fts-lgpl: remove unused module
34136         * modules/fts-lgpl: Remove.
34137         * MODULES.html.sh (func_all_modules): Adjust.
34138         * check-module (find_included_lib_files): Adjust.
34139         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34140
34141 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34142
34143         copy-acl: enhance Solaris ACL error handling
34144         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34145         * lib/set-mode-acl.c (qset_acl): Likewise.
34146
34147 2010-03-02  Bruno Haible  <bruno@clisp.org>
34148
34149         spawn: Don't override the system defined values on FreeBSD 8.
34150         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34151         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34152         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34153         if HAVE_POSIX_SPAWN is 1.
34154         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34155
34156 2010-03-01  Bruno Haible  <bruno@clisp.org>
34157
34158         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34159         regarding Automake.
34160
34161 2010-02-25  Bruno Haible  <bruno@clisp.org>
34162
34163         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34164         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34165         setting, not afterwards.
34166         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34167
34168 2010-02-24  Eric Blake  <eblake@redhat.com>
34169
34170         bootstrap, git-version-gen: use timestamp
34171         * build-aux/git-version-gen (scriptversion): Force UTC.
34172         * build-aux/bootstrap (scriptversion): New variable.
34173
34174         bootstrap: allow older git
34175         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34176         older than 1.6.4.  Requested by the libvirt project.
34177
34178 2010-02-23  Eric Blake  <eblake@redhat.com>
34179
34180         warn-on-use: work with old autoconf
34181         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34182         AS_VAR semantics of autoconf 2.60.
34183         Reported by Bruno Haible.
34184
34185         bootstrap: improve some comments
34186         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34187         clarification comments.
34188
34189         gettimeofday: provide correct function
34190         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34191         when replacement is declared, otherwise provide gettimeofday.
34192         Reported by Michael Goffioul.
34193
34194 2010-02-23  Jim Meyering  <meyering@redhat.com>
34195
34196         lib-ignore: relax license to "unlimited", not LGPLv2+
34197         * modules/lib-ignore (License): Relax to "unlimited".
34198
34199 2010-02-23  Jim Meyering  <meyering@redhat.com>
34200
34201         lib-ignore: relax license to LGPLv2+
34202         * modules/lib-ignore (License): Relax to LGPLv2+.
34203
34204 2010-02-22  Eric Blake  <eblake@redhat.com>
34205
34206         lseek: avoid bash 3.2 broken pipe bug
34207         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34208         warning from bash 3.2.
34209         Reported by Ben Pfaff, with analysis from Bruno Haible.
34210
34211         bootstrap: support non-FSF copyright holder
34212         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34213         bootstrap.conf override of COPYRIGHT_HOLDER.
34214         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34215
34216         bootstrap: interoperate with gettext 0.14.1
34217         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34218
34219         bootstrap: allow for alternate submodule location
34220         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34221         hardcoding submodule location.
34222         (gnulib_mk): Allow direct use of Makefile.am.
34223
34224         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34225         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34226         rather than reconfiguring where the submodule points.
34227
34228         gettimeofday: restore support for platforms that lack function
34229         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34230         replacement if function is missing.
34231         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34232         * modules/sys_time (Makefile.am): Substitute it.
34233         * lib/sys_time.in.h (gettimeofday): Check it.
34234         Reported by Michael Goffioul.
34235
34236 2010-02-21  Bruno Haible  <bruno@clisp.org>
34237
34238         * lib/stdio.in.h (obstack_printf): Fix typo.
34239
34240 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34241
34242         vc-list-files: use bzr ls's -R option
34243         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34244         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34245
34246 2010-02-21  Jim Meyering  <meyering@redhat.com>
34247
34248         init.sh: fix EXEEXT shims to work also for names like test-prog
34249         * tests/init.sh: Re-exec a better shell, when needed.
34250         If the current shell lacks support for posix $(...), an init.sh-using
34251         test will now try to find a shell that supports that.  If EXEEXT is
34252         nonempty, we also require support for hyphen-in-alias-name and shell
34253         substitutions like ${var#glob}.  Failure to find such a shell results
34254         in a skipped test.
34255
34256 2010-02-21  Bruno Haible  <bruno@clisp.org>
34257
34258         Really work around around "broken pipe" error message from bash 3.2.
34259         * gnulib-tool (func_reset_sigpipe): Remove function.
34260         (echo): In bash 3.2, define to a function that uses printf.
34261         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34262
34263 2010-02-20  Bruno Haible  <bruno@clisp.org>
34264
34265         Restore support for automake 1.9.6 with autoconf 2.61.
34266         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34267         Reported by James Youngman <jay@gnu.org>.
34268
34269 2010-02-20  Bruno Haible  <bruno@clisp.org>
34270
34271         Improve *printf warning condition.
34272         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34273         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34274         and the function is overridden due to SIGPIPE emulation.
34275
34276 2010-02-20  Bruno Haible  <bruno@clisp.org>
34277
34278         * lib/stdio.in.h: Tweak comments.
34279
34280 2010-02-19  Bruno Haible  <bruno@clisp.org>
34281
34282         Make it easier to find modules. New gnulib-tool option '--find'.
34283         * gnulib-tool: New option --find.
34284         (func_usage): Document it.
34285         (func_sanitize_modulelist): New function, extracted from
34286         func_all_modules.
34287         (func_all_modules): Invoke it.
34288         * doc/gnulib-tool.texi (Which modules?): New node.
34289
34290 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34291
34292         * lib/sys_select.in.h: Provide select replacement even if
34293         sys/select.h exists on a system, for Interix.
34294
34295 2010-02-18  Jim Meyering  <meyering@redhat.com>
34296
34297         init.sh: don't use $(...) just yet
34298         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34299         to accommodate e.g., Solaris' /bin/sh.
34300
34301 2010-02-17  Bruno Haible  <bruno@clisp.org>
34302
34303         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34304         Reported by Ludovic Courtès <ludo@gnu.org>.
34305
34306 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34307
34308         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34309         linking with -lintl.
34310
34311 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34312
34313         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34314         if not provided by the system's netdb.h.  Reported by
34315         ludo@gnu.org (Ludovic Courtès).
34316
34317 2010-02-15  Jim Meyering  <meyering@redhat.com>
34318
34319         init.sh: improve portability and efficiency
34320         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34321         "dummy" in a for loop.
34322         Use '!', not '^' to select the complement of a character set used
34323         in a "case" statement.
34324         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34325         Suggestions from Eric Blake.
34326
34327         init.sh: automatically accommodate programs with the .exe suffix
34328         Automatically arrange for an invocation of "prog" to execute the
34329         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34330         may use the simpler "prog", yet still work when built on a system
34331         that requires specifying the added suffix.
34332         Do this by constructing a function named "prog" that invokes
34333         "prog.exe" for each .exe file in selected directories.
34334         * tests/init.sh (find_exe_basenames_): New function.
34335         (create_exe_shim_functions_): New function.
34336         (path_prepend_): Use it.
34337
34338         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34339         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34340         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34341
34342 2010-02-14  Jim Meyering  <meyering@redhat.com>
34343
34344         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34345         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34346         (sc_prohibit_hash_pjw_without_use): New rule.
34347
34348         maint.mk: allow the default upload destination dir to be overridden
34349         * top/maint.mk (upload_dest_dir_): Define with a default that
34350         preserves the status quo.
34351         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34352         Reported by Peter Simons.
34353
34354         maint.mk: prohibit inclusion of "hash.h" without_use
34355         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34356
34357 2010-02-10  Jim Meyering  <meyering@redhat.com>
34358
34359         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34360         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34361
34362 2010-02-09  Eric Blake  <ebb9@byu.net>
34363         and Bruno Haible  <bruno@clisp.org>
34364
34365         obstack-printf-posix: ensure declaration
34366         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34367         extracted from gl_FUNC_OBSTACK_PRINTF.
34368         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34369         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34370         Likewise.
34371         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34372         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34373         0.
34374
34375 2010-02-08  Bruno Haible  <bruno@clisp.org>
34376
34377         gnulib-tool: Fix typo in 2010-02-07 commit.
34378         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34379         Reported by Eric Blake.
34380
34381 2010-02-07  Bruno Haible  <bruno@clisp.org>
34382
34383         gnulib-tool: Fix up caching patches.
34384         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34385         option --no-cache. Use associative arrays when supported by the shell.
34386         (sed_comments): New variable.
34387         (modcache): Renamed from do_cache.
34388         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34389         abbreviate unnecessarily.
34390         (have_associative): New variable.
34391         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34392         way also for ksh and zsh.
34393         (func_init_sed_convert_to_cache_statements): New function, extracted
34394         from func_cache_lookup_module. Add support for associative arrays.
34395         Don't set the c_MODULE_cached variable here. Ignore all lines before
34396         the first field header. Remove only the final newline, not all trailing
34397         newlines. Support empty fields correctly. Limit the use of 'eval' to
34398         assignments.
34399         (func_get_description, func_get_status, func_get_notice,
34400         func_get_applicability, func_get_filelist, func_get_dependencies,
34401         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34402         func_get_automake_snippet, func_get_include_directive,
34403         func_get_link_directive, func_get_license, func_get_maintainer):
34404         Update documentation. List the unoptimized code first. Add support for
34405         associative arrays. Limit the use of 'eval' to assignments.
34406         (func_get_applicability): Undo stylistic pessimisations.
34407         (func_get_automake_snippet, func_get_include_directive): Reduce code
34408         duplication.
34409         (func_modules_transitive_closure, func_modules_add_dummy,
34410         func_modules_notice, func_modules_to_filelist, func_add_file,
34411         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34412         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34413         func_create_testdir, func_create_megatestdir): Update documentation.
34414
34415 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34416
34417         * gnulib-tool (func_cache_lookup_module): Store the module name
34418         belonging to the cache variable; error out if two different
34419         module names map to the same cache variable name.
34420
34421 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34422
34423         gnulib-tool: Make caching optional.
34424         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34425         Update matching short versions of --no-changelog.
34426         (func_usage): Update.
34427         (sed_extract_cache_prog): Renamed from ...
34428         (sed_extract_prog): ... this; revert to old extraction script.
34429         (func_get_description, func_get_status)
34430         (func_get_notice, func_get_applicability, func_get_filelist)
34431         (func_get_dependencies, func_get_autoconf_early_snippet)
34432         (func_get_autoconf_snippet, func_get_automake_snippet)
34433         (func_get_include_directive, func_get_link_directive)
34434         (func_get_license, func_get_maintainer): If $do_cache is false,
34435         use old, non-caching extraction scripts.
34436         Suggestion by Bruno Haible.
34437
34438 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34439
34440         gnulib-tool: cache module metainformation.
34441         * gnulib-tool (sed_extract_prog): Match newline before each
34442         header, and rewrite header to a shell variable suffix.
34443         (func_cache_var, func_cache_lookup_module): New functions,
34444         to turn a module name into a cache variable prefix, and to
34445         look up and cache module metainformation.
34446         (func_get_description, func_get_status)
34447         (func_get_notice, func_get_applicability, func_get_filelist)
34448         (func_get_dependencies, func_get_autoconf_early_snippet)
34449         (func_get_autoconf_snippet, func_get_automake_snippet)
34450         (func_get_include_directive, func_get_link_directive)
34451         (func_get_license, func_get_maintainer): Use
34452         func_cache_lookup_module.
34453
34454 2010-02-07  Bruno Haible  <bruno@clisp.org>
34455
34456         fnctl: Fix missing dependency.
34457         * modules/fcntl (Depends-on): Add getdtablesize.
34458         Reported by John W. Eaton <jwe@gnu.org>.
34459
34460 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34461
34462         Argp: fix recognition of short alias options.
34463
34464         * lib/argp-parse.c (convert_options): Fix improper use of
34465         `|' between character values.
34466         * tests/test-argp.c (group1_option): New alias option
34467         --read (-r).
34468         (group1_parser): Special handling for 'r'.
34469         (test15): New test case.
34470         (test_fun): Add test15.
34471         * tests/test-argp-2.sh: Update expected --help and --usage
34472         outputs.
34473
34474 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34475
34476         * tests/test-argp.c: Fix indentation.
34477
34478 2010-02-04  Eric Blake  <ebb9@byu.net>
34479
34480         gettimeofday: expose type of second argument
34481         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34482         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34483         * tests/test-gettimeofday.c: Use it to silence warning.
34484         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34485         the issue.
34486
34487 2010-02-03  Jim Meyering  <meyering@redhat.com>
34488
34489         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34490         * lib/regcomp.c (TYPE_SIGNED): Define.
34491         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34492
34493         regcomp.c: avoid a new -Wshadow warning
34494         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34495
34496 2010-02-01  Jim Meyering  <meyering@redhat.com>
34497
34498         removing useless parentheses in cpp #define directives
34499         For motivation, see commit c0221df4, "define STREQ(a,b)
34500         consistently, removing useless parentheses"
34501         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34502         * lib/mountlist.c (MNT_IGNORE): Likewise.
34503         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34504
34505 2010-02-01  Eric Blake  <ebb9@byu.net>
34506
34507         sys_time: use link-warning
34508         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34509         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34510         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34511         * modules/sys_time (Depends-on): Add warn-on-use.
34512         (Makefile.am): Always build replacement.
34513         (configure.ac): Update substitutions.
34514         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34515         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34516         bother with SYS_TIME_H.
34517         * modules/gettimeofday (configure.ac): Declare indicator.
34518         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34519         in use.
34520
34521         closein-tests: silence compiler warning
34522         * tests/test-closein.c (main): Ignore fread result.
34523         * modules/closein-tests (Depends-on): Add ignore-value.
34524
34525         tests: silence warning about system return
34526         * tests/test-areadlink-with-size.c (main): Ignore system result.
34527         * tests/test-areadlink.c (main): Likewise.
34528         * tests/test-areadlinkat-with-size.c (main): Likewise.
34529         * tests/test-areadlinkat.c (main): Likewise.
34530         * tests/test-canonicalize-lgpl.c (main): Likewise.
34531         * tests/test-canonicalize.c (main): Likewise.
34532         * tests/test-chown.c (main): Likewise.
34533         * tests/test-fchownat.c (main): Likewise.
34534         * tests/test-fdutimensat.c (main): Likewise.
34535         * tests/test-fstatat.c (main): Likewise.
34536         * tests/test-futimens.c (main): Likewise.
34537         * tests/test-lchown.c (main): Likewise.
34538         * tests/test-link.c (main): Likewise.
34539         * tests/test-linkat.c (main): Likewise.
34540         * tests/test-lstat.c (main): Likewise.
34541         * tests/test-mkdir.c (main): Likewise.
34542         * tests/test-mkdirat.c (main): Likewise.
34543         * tests/test-mkfifo.c (main): Likewise.
34544         * tests/test-mkfifoat.c (main): Likewise.
34545         * tests/test-mknod.c (main): Likewise.
34546         * tests/test-readlink.c (main): Likewise.
34547         * tests/test-remove.c (main): Likewise.
34548         * tests/test-rename.c (main): Likewise.
34549         * tests/test-renameat.c (main): Likewise.
34550         * tests/test-rmdir.c (main): Likewise.
34551         * tests/test-symlink.c (main): Likewise.
34552         * tests/test-symlinkat.c (main): Likewise.
34553         * tests/test-unlink.c (main): Likewise.
34554         * tests/test-unlinkat.c (main): Likewise.
34555         * tests/test-utimens.c (main): Likewise.
34556         * tests/test-utimensat.c (main): Likewise.
34557         * modules/areadlink-tests (Depends-on): Add ignore-value.
34558         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34559         * modules/areadlinkat-tests (Depends-on): Likewise.
34560         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34561         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34562         * modules/canonicalize-tests (Depends-on): Likewise.
34563         * modules/chown-tests (Depends-on): Likewise.
34564         * modules/fdutimensat-tests (Depends-on): Likewise.
34565         * modules/futimens-tests (Depends-on): Likewise.
34566         * modules/lchown-tests (Depends-on): Likewise.
34567         * modules/link-tests (Depends-on): Likewise.
34568         * modules/linkat-tests (Depends-on): Likewise.
34569         * modules/lstat-tests (Depends-on): Likewise.
34570         * modules/mkdir-tests (Depends-on): Likewise.
34571         * modules/mkfifo-tests (Depends-on): Likewise.
34572         * modules/mkfifoat-tests (Depends-on): Likewise.
34573         * modules/mknod-tests (Depends-on): Likewise.
34574         * modules/openat-tests (Depends-on): Likewise.
34575         * modules/readlink-tests (Depends-on): Likewise.
34576         * modules/remove-tests (Depends-on): Likewise.
34577         * modules/rename-tests (Depends-on): Likewise.
34578         * modules/renameat-tests (Depends-on): Likewise.
34579         * modules/rmdir-tests (Depends-on): Likewise.
34580         * modules/symlink-tests (Depends-on): Likewise.
34581         * modules/symlinkat-tests (Depends-on): Likewise.
34582         * modules/unlink-tests (Depends-on): Likewise.
34583         * modules/utimens-tests (Depends-on): Likewise.
34584         * modules/utimensat-tests (Depends-on): Likewise.
34585
34586 2010-01-31  Bruno Haible  <bruno@clisp.org>
34587
34588         Perform the same test for many <math.h> functions.
34589         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34590         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34591         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34592         of gl_MATHFUNC.
34593         * modules/acos (configure.ac): Likewise.
34594         * modules/asin (configure.ac): Likewise.
34595         * modules/atan (configure.ac): Likewise.
34596         * modules/atan2 (configure.ac): Likewise.
34597         * modules/cbrt (configure.ac): Likewise.
34598         * modules/copysign (configure.ac): Likewise.
34599         * modules/cos (configure.ac): Likewise.
34600         * modules/cosh (configure.ac): Likewise.
34601         * modules/erf (configure.ac): Likewise.
34602         * modules/erfc (configure.ac): Likewise.
34603         * modules/exp (configure.ac): Likewise.
34604         * modules/fmod (configure.ac): Likewise.
34605         * modules/hypot (configure.ac): Likewise.
34606         * modules/j0 (configure.ac): Likewise.
34607         * modules/j1 (configure.ac): Likewise.
34608         * modules/jn (configure.ac): Likewise.
34609         * modules/lgamma (configure.ac): Likewise.
34610         * modules/log (configure.ac): Likewise.
34611         * modules/log10 (configure.ac): Likewise.
34612         * modules/log1p (configure.ac): Likewise.
34613         * modules/pow (configure.ac): Likewise.
34614         * modules/remainder (configure.ac): Likewise.
34615         * modules/sin (configure.ac): Likewise.
34616         * modules/sinh (configure.ac): Likewise.
34617         * modules/tan (configure.ac): Likewise.
34618         * modules/tanh (configure.ac): Likewise.
34619         * modules/y0 (configure.ac): Likewise.
34620         * modules/y1 (configure.ac): Likewise.
34621         * modules/yn (configure.ac): Likewise.
34622         Suggested by Paolo Bonzini.
34623
34624 2010-01-31  Bruno Haible  <bruno@clisp.org>
34625
34626         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34627
34628 2010-01-31  Bruno Haible  <bruno@clisp.org>
34629
34630         Work around getdelim() bug on FreeBSD 8.0.
34631         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34632         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34633         not work.
34634         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34635         is 1.
34636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34637         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34638         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34639         a non-zero size.
34640         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34641
34642 2010-01-31  Bruno Haible  <bruno@clisp.org>
34643
34644         Work around getline() bug on FreeBSD 8.0.
34645         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34646         and a non-zero size.
34647         * tests/test-getline.c (main): Likewise.
34648         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34649         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34650
34651 2010-01-28  Eric Blake  <ebb9@byu.net>
34652
34653         regex: fix build failure
34654         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34655         platforms.
34656
34657 2010-01-28  Jim Meyering  <meyering@redhat.com>
34658
34659         regex: do not ignore memory allocation failure
34660         * lib/regex_internal.c (create_cd_newstate): Detect
34661         re_node_set_init_copy failure.   Extracted from glibc commit
34662         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34663
34664         regex: sync more white-space changes from libc
34665         * lib/regex_internal.c: White-space only changes.
34666         * lib/regexec.c: Likewise.
34667
34668         regex: add many uses of __attribute_warn_unused_result__
34669         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34670         * lib/regexec.c: Likewise.
34671         Extracted from a messy glibc commit.
34672
34673         regcomp.c: spelling and merge-artifact from glibc
34674         * lib/regcomp.c: Merge remainder of glibc's
34675         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34676
34677         regcomp.c: sync white-space changes from glibc
34678         * lib/regcomp.c: Merge to accommodate white space
34679         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34680
34681         regcomp.c: do not ignore internal return values
34682         * lib/regcomp.c: Do not ignore internal return values.
34683         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34684         but without its white-space changes and spelling fixes.
34685
34686         regex_internal.h: define __attribute_warn_unused_result__
34687         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34688
34689         maint: add a syntax-check rule to check for vulnerable Makefile.in
34690         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34691
34692 2010-01-27  Jim Meyering  <meyering@redhat.com>
34693
34694         ncftpput-ftp: clean up spaces
34695         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34696         Remove trailing blanks.
34697
34698 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34699
34700         * build-aux/git-version-gen: Fix copyright statement.
34701         * build-aux/gnupload: Likewise.
34702         * tests/test-arcfour.c: Likewise.
34703         * tests/test-arctwo.c: Likewise.
34704         * tests/test-count-one-bits.c: Likewise.
34705         * tests/test-crc.c: Likewise.
34706         * tests/test-des.c: Likewise.
34707         * tests/test-gc-arcfour.c: Likewise.
34708         * tests/test-gc-arctwo.c: Likewise.
34709         * tests/test-gc-des.c: Likewise.
34710         * tests/test-gc-hmac-md5.c: Likewise.
34711         * tests/test-gc-hmac-sha1.c: Likewise.
34712         * tests/test-gc-md2.c: Likewise.
34713         * tests/test-gc-md4.c: Likewise.
34714         * tests/test-gc-md5.c: Likewise.
34715         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34716         * tests/test-gc-rijndael.c: Likewise.
34717         * tests/test-gc-sha1.c: Likewise.
34718         * tests/test-gc.c: Likewise.
34719         * tests/test-gethostname.c: Likewise.
34720         * tests/test-gettimeofday.c: Likewise.
34721         * tests/test-hash.c: Likewise.
34722         * tests/test-hmac-md5.c: Likewise.
34723         * tests/test-hmac-sha1.c: Likewise.
34724         * tests/test-md2.c: Likewise.
34725         * tests/test-md4.c: Likewise.
34726         * tests/test-md5.c: Likewise.
34727         * tests/test-memchr.c: Likewise.
34728         * tests/test-memchr2.c: Likewise.
34729         * tests/test-memcmp.c: Likewise.
34730         * tests/test-memmem.c: Likewise.
34731         * tests/test-memrchr.c: Likewise.
34732         * tests/test-rawmemchr.c: Likewise.
34733         * tests/test-read-file.c: Likewise.
34734         * tests/test-rijndael.c: Likewise.
34735         * tests/test-sockets.c: Likewise.
34736         * tests/test-strchrnul.c: Likewise.
34737         * tests/test-strstr.c: Likewise.
34738         * tests/test-strtod.c: Likewise.
34739         * build-aux/ncftpput-ftp: Likewise.
34740
34741 2010-01-26  Eric Blake  <ebb9@byu.net>
34742
34743         ignore-value: update recommended header name
34744         * modules/ignore-value (Include): Only use <> for headers that
34745         exist in glibc.
34746
34747 2010-01-26  Jim Meyering  <meyering@redhat.com>
34748
34749         test-userspec.c: avoid compiler warnings
34750         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34751         and "initialization discards qualifiers..." warnings.
34752         Put the first "uid" in its own scope, and make char* members "const".
34753
34754 2010-01-25  Bruno Haible  <bruno@clisp.org>
34755
34756         gnulib-tool: Make warning diagnostics consistent.
34757         * gnulib-tool (func_warning): New function.
34758         Use it everywhere where gnulib-tool produces output to stderr and it is
34759         not a fatal error.
34760
34761 2010-01-25  Bruno Haible  <bruno@clisp.org>
34762
34763         Fix test dependencies.
34764         * modules/xstrtol-tests (Depends-on): Add inttypes.
34765         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34766
34767 2010-01-25 Pádraig Brady <P@draigBrady.com>
34768
34769         syntax-check: detect incorrect boolean macro values in config.h
34770         * modules/maintainer-makefile (configure.ac): Parameterize the location
34771         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34772         The logic is from Eric Blake and the location indicated by Jim Meyering.
34773         Note the more natural CONFIG_HEADER name is prohibited by automake
34774         for backwards compatibility reasons.
34775         * top/maint.mk (sc_Wundef_boolean): New rule.
34776
34777 2010-01-25  Jim Meyering  <meyering@redhat.com>
34778
34779         bootstrap: detect MacOS 10.6's shasum, too
34780         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34781         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34782
34783 2010-01-23  Jim Meyering  <meyering@redhat.com>
34784
34785         xstrtoll: new module
34786         * modules/xstrtoll: New file.
34787         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34788         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34789         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34790         ./configure fails if you use this module and lack "long long".
34791         * modules/xstrtoll-tests: New module.
34792         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34793         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34794         new init.sh-based test framework.
34795
34796 2010-01-24  Bruno Haible  <bruno@clisp.org>
34797
34798         Tests for module 'yn'.
34799         * modules/yn-tests: New file.
34800         * tests/test-yn.c: New file.
34801
34802         Tests for module 'y1'.
34803         * modules/y1-tests: New file.
34804         * tests/test-y1.c: New file.
34805
34806         Tests for module 'y0'.
34807         * modules/y0-tests: New file.
34808         * tests/test-y0.c: New file.
34809
34810         Tests for module 'tanh'.
34811         * modules/tanh-tests: New file.
34812         * tests/test-tanh.c: New file.
34813
34814         Tests for module 'tan'.
34815         * modules/tan-tests: New file.
34816         * tests/test-tan.c: New file.
34817
34818         Tests for module 'sqrt'.
34819         * modules/sqrt-tests: New file.
34820         * tests/test-sqrt.c: New file.
34821
34822         Tests for module 'sinh'.
34823         * modules/sinh-tests: New file.
34824         * tests/test-sinh.c: New file.
34825
34826         Tests for module 'sin'.
34827         * modules/sin-tests: New file.
34828         * tests/test-sin.c: New file.
34829
34830         Tests for module 'rint'.
34831         * modules/rint-tests: New file.
34832         * tests/test-rint.c: New file.
34833
34834         Tests for module 'remainder'.
34835         * modules/remainder-tests: New file.
34836         * tests/test-remainder.c: New file.
34837
34838         Tests for module 'pow'.
34839         * modules/pow-tests: New file.
34840         * tests/test-pow.c: New file.
34841
34842         Tests for module 'nextafter'.
34843         * modules/nextafter-tests: New file.
34844         * tests/test-nextafter.c: New file.
34845
34846         Tests for module 'modf'.
34847         * modules/modf-tests: New file.
34848         * tests/test-modf.c: New file.
34849
34850         Tests for module 'logb'.
34851         * modules/logb-tests: New file.
34852         * tests/test-logb.c: New file.
34853
34854         Tests for module 'log1p'.
34855         * modules/log1p-tests: New file.
34856         * tests/test-log1p.c: New file.
34857
34858         Tests for module 'log10'.
34859         * modules/log10-tests: New file.
34860         * tests/test-log10.c: New file.
34861
34862         Tests for module 'log'.
34863         * modules/log-tests: New file.
34864         * tests/test-log.c: New file.
34865
34866         Tests for module 'lgamma'.
34867         * modules/lgamma-tests: New file.
34868         * tests/test-lgamma.c: New file.
34869
34870         Tests for module 'ldexp'.
34871         * modules/ldexp-tests: New file.
34872         * tests/test-ldexp.c: New file.
34873
34874         Tests for module 'jn'.
34875         * modules/jn-tests: New file.
34876         * tests/test-jn.c: New file.
34877
34878         Tests for module 'j1'.
34879         * modules/j1-tests: New file.
34880         * tests/test-j1.c: New file.
34881
34882         Tests for module 'j0'.
34883         * modules/j0-tests: New file.
34884         * tests/test-j0.c: New file.
34885
34886         Tests for module 'hypot'.
34887         * modules/hypot-tests: New file.
34888         * tests/test-hypot.c: New file.
34889
34890         Tests for module 'fmod'.
34891         * modules/fmod-tests: New file.
34892         * tests/test-fmod.c: New file.
34893
34894         Tests for module 'fabs'.
34895         * modules/fabs-tests: New file.
34896         * tests/test-fabs.c: New file.
34897
34898         Tests for module 'exp'.
34899         * modules/exp-tests: New file.
34900         * tests/test-exp.c: New file.
34901
34902         Tests for module 'erfc'.
34903         * modules/erfc-tests: New file.
34904         * tests/test-erfc.c: New file.
34905
34906         Tests for module 'erf'.
34907         * modules/erf-tests: New file.
34908         * tests/test-erf.c: New file.
34909
34910         Tests for module 'cosh'.
34911         * modules/cosh-tests: New file.
34912         * tests/test-cosh.c: New file.
34913
34914         Tests for module 'cos'.
34915         * modules/cos-tests: New file.
34916         * tests/test-cos.c: New file.
34917
34918         Tests for module 'copysign'.
34919         * modules/copysign-tests: New file.
34920         * tests/test-copysign.c: New file.
34921
34922         Tests for module 'cbrt'.
34923         * modules/cbrt-tests: New file.
34924         * tests/test-cbrt.c: New file.
34925
34926         Tests for module 'atan2'.
34927         * modules/atan2-tests: New file.
34928         * tests/test-atan2.c: New file.
34929
34930         Tests for module 'atan'.
34931         * modules/atan-tests: New file.
34932         * tests/test-atan.c: New file.
34933
34934         Tests for module 'asin'.
34935         * modules/asin-tests: New file.
34936         * tests/test-asin.c: New file.
34937
34938         Tests for module 'acos'.
34939         * modules/acos-tests: New file.
34940         * tests/test-acos.c: New file.
34941
34942 2010-01-24  Bruno Haible  <bruno@clisp.org>
34943
34944         Fix tests for common <math.h> functions.
34945         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34946         code snippet that references the function pointer, rather than merely
34947         calling the function. Substitute the FUNC_LIBM variable.
34948         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34949         * modules/acos (configure.ac): Likewise.
34950         * modules/asin (configure.ac): Likewise.
34951         * modules/atan (configure.ac): Likewise.
34952         * modules/atan2 (configure.ac): Likewise.
34953         * modules/cbrt (configure.ac): Likewise.
34954         * modules/copysign (configure.ac): Likewise.
34955         * modules/cos (configure.ac): Likewise.
34956         * modules/cosh (configure.ac): Likewise.
34957         * modules/erf (configure.ac): Likewise.
34958         * modules/erfc (configure.ac): Likewise.
34959         * modules/exp (configure.ac): Likewise.
34960         * modules/fabs (configure.ac): Likewise.
34961         * modules/fmod (configure.ac): Likewise.
34962         * modules/hypot (configure.ac): Likewise.
34963         * modules/j0 (configure.ac): Likewise.
34964         * modules/j1 (configure.ac): Likewise.
34965         * modules/jn (configure.ac): Likewise.
34966         * modules/ldexp (configure.ac): Likewise.
34967         * modules/lgamma (configure.ac): Likewise.
34968         * modules/log (configure.ac): Likewise.
34969         * modules/log10 (configure.ac): Likewise.
34970         * modules/log1p (configure.ac): Likewise.
34971         * modules/logb (configure.ac): Likewise.
34972         * modules/modf (configure.ac): Likewise.
34973         * modules/nextafter (configure.ac): Likewise.
34974         * modules/pow (configure.ac): Likewise.
34975         * modules/remainder (configure.ac): Likewise.
34976         * modules/rint (configure.ac): Likewise.
34977         * modules/sin (configure.ac): Likewise.
34978         * modules/sinh (configure.ac): Likewise.
34979         * modules/tan (configure.ac): Likewise.
34980         * modules/tanh (configure.ac): Likewise.
34981         * modules/y0 (configure.ac): Likewise.
34982         * modules/y1 (configure.ac): Likewise.
34983         * modules/yn (configure.ac): Likewise.
34984
34985 2010-01-24  Bruno Haible  <bruno@clisp.org>
34986
34987         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34988         * tests/test-acosl.c (x): New variable.
34989         (main): Store argument in x and fetch it from x.
34990         * tests/test-asinl.c (x): New variable.
34991         (main): Store argument in x and fetch it from x.
34992         * tests/test-atanl.c (x): New variable.
34993         (main): Store argument in x and fetch it from x.
34994         * tests/test-cosl.c (x): New variable.
34995         (main): Store argument in x and fetch it from x.
34996         * tests/test-expl.c (x): New variable.
34997         (main): Store argument in x and fetch it from x.
34998         * tests/test-logl.c (x): New variable.
34999         (main): Store argument in x and fetch it from x.
35000         * tests/test-sinl.c (x): New variable.
35001         (main): Store argument in x and fetch it from x.
35002         * tests/test-sqrtl.c (x): New variable.
35003         (main): Store argument in x and fetch it from x.
35004         * tests/test-tanl.c (x): New variable.
35005         (main): Store argument in x and fetch it from x.
35006
35007 2010-01-24  Bruno Haible  <bruno@clisp.org>
35008
35009         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35010         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35011         assignments to the initial TESTS_ENVIRONMENT.
35012         * doc/gnulib.texi (Unit test modules): Document it.
35013         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35014         TESTS_ENVIRONMENT.
35015         * modules/btowc-tests (Makefile.am): Likewise.
35016         * modules/c-stack-tests (Makefile.am): Likewise.
35017         * modules/c-strcase-tests (Makefile.am): Likewise.
35018         * modules/copy-file-tests (Makefile.am): Likewise.
35019         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35020         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35021         * modules/mbrtowc-tests (Makefile.am): Likewise.
35022         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35023         * modules/mbscasestr-tests (Makefile.am): Likewise.
35024         * modules/mbschr-tests (Makefile.am): Likewise.
35025         * modules/mbscspn-tests (Makefile.am): Likewise.
35026         * modules/mbsinit-tests (Makefile.am): Likewise.
35027         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35028         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35029         * modules/mbspbrk-tests (Makefile.am): Likewise.
35030         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35031         * modules/mbsrchr-tests (Makefile.am): Likewise.
35032         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35033         * modules/mbsspn-tests (Makefile.am): Likewise.
35034         * modules/mbsstr-tests (Makefile.am): Likewise.
35035         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35036         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35037         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35038         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35039         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35040         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35041         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35042         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35043         * modules/wcrtomb-tests (Makefile.am): Likewise.
35044         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35045         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35046         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35047         assignments from TESTS_ENVIRONMENT.
35048         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35049         augmentation.
35050         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35051         * modules/atexit-tests (Makefile.am): Likewise.
35052         * modules/binary-io-tests (Makefile.am): Likewise.
35053         * modules/closein-tests (Makefile.am): Likewise.
35054         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35055         * modules/exclude-tests (Makefile.am): Likewise.
35056         * modules/fflush-tests (Makefile.am): Likewise.
35057         * modules/fpending-tests (Makefile.am): Likewise.
35058         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35059         * modules/freadahead-tests (Makefile.am): Likewise.
35060         * modules/freadptr-tests (Makefile.am): Likewise.
35061         * modules/freadseek-tests (Makefile.am): Likewise.
35062         * modules/fseek-tests (Makefile.am): Likewise.
35063         * modules/fseeko-tests (Makefile.am): Likewise.
35064         * modules/ftell-tests (Makefile.am): Likewise.
35065         * modules/ftello-tests (Makefile.am): Likewise.
35066         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35067         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35068         * modules/lseek-tests (Makefile.am): Likewise.
35069         * modules/parse-duration-tests (Makefile.am): Likewise.
35070         * modules/perror-tests (Makefile.am): Likewise.
35071         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35072         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35073         * modules/pipe-tests (Makefile.am): Likewise.
35074         * modules/pread-tests (Makefile.am): Likewise.
35075         * modules/printf-posix-tests (Makefile.am): Likewise.
35076         * modules/select-tests (Makefile.am): Likewise.
35077         * modules/sigpipe-tests (Makefile.am): Likewise.
35078         * modules/tsearch-tests (Makefile.am): Likewise.
35079         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35080         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35081         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35082         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35083         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35084         * modules/version-etc-tests (Makefile.am): Likewise.
35085         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35086         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35087         * modules/xalloc-die-tests (Makefile.am): Likewise.
35088         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35089         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35090         * modules/xstrtol-tests (Makefile.am): Likewise.
35091         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35092         * modules/yesno-tests (Makefile.am): Likewise.
35093         Suggested by Jim Meyering.
35094
35095 2010-01-24  Bruno Haible  <bruno@clisp.org>
35096
35097         More documentation.
35098         * doc/gnulib.texi (Writing modules): New chapter.
35099         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35100         the new chapter.
35101
35102 2010-01-24  Jim Meyering  <meyering@redhat.com>
35103
35104         maint.mk: do not prepend "./" after filtering
35105         * top/maint.mk (_prepend_srcdir_prefix): New variable
35106         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35107         "./" when $(srcdir) is ".".
35108
35109         define STREQ(a,b) consistently, removing useless parentheses
35110         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35111         since the only risk is that "a" or "b" contains an unparenthesized
35112         comma, but if either did that, STREQ would have 3 or more arguments.
35113         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35114         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35115         * lib/hash-triple.c (STREQ): Likewise.
35116         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35117         * lib/getugroups.c (STREQ): Likewise.
35118
35119 2010-01-23  Jim Meyering  <meyering@redhat.com>
35120
35121         maint.mk: fix syntax-check in a non-srcdir build directory
35122         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35123         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35124
35125 2010-01-22  Jim Meyering  <meyering@redhat.com>
35126
35127         userspec: add unit tests
35128         * tests/test-userspec.c: New file.
35129         * modules/userspec-tests: Likewise.
35130
35131 2010-01-21  Jim Meyering  <meyering@redhat.com>
35132
35133         maint.mk: handle source file names containing "." robustly
35134         * top/maint.mk (_dot_escaped_srcdir): Define.
35135         (VC_LIST): Use it in LHS of sed substitution.
35136
35137 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35138
35139         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35140         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35141         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35142         from a non-srcdir build.
35143
35144 2010-01-20  Eric Blake  <ebb9@byu.net>
35145
35146         warn-on-use: use instead of link-warning
35147         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35148         * modules/unistd (Depends-on, Makefile.am): Likewise.
35149         * modules/arpa_inet (Depends-on): Replace link-warning with
35150         warn-on-use.
35151         (Makefile.am): Update rules accordingly.
35152         * modules/ctype (Depends-on, Makefile.am): Likewise.
35153         * modules/dirent (Depends-on, Makefile.am): Likewise.
35154         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35155         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35156         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35157         * modules/locale (Depends-on, Makefile.am): Likewise.
35158         * modules/math (Depends-on, Makefile.am): Likewise.
35159         * modules/search (Depends-on, Makefile.am): Likewise.
35160         * modules/signal (Depends-on, Makefile.am): Likewise.
35161         * modules/spawn (Depends-on, Makefile.am): Likewise.
35162         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35163         * modules/string (Depends-on, Makefile.am): Likewise.
35164         * modules/strings (Depends-on, Makefile.am): Likewise.
35165         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35166         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35167         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35168         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35169         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35170         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35171         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35172         * modules/wchar (Depends-on, Makefile.am): Likewise.
35173         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35174         should be poisoned.
35175         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35176         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35177         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35178         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35179         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35180         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35181         * m4/math_h.m4 (gl_MATH_H): Likewise.
35182         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35183         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35184         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35185         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35186         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35187         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35188         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35189         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35192         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35194         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35195         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35196         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35197         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35198         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35199         GL_LINK_WARNING.
35200         * lib/ctype.in.h: Likewise.
35201         * lib/dirent.in.h: Likewise.
35202         * lib/fcntl.in.h: Likewise.
35203         * lib/inttypes.in.h: Likewise.
35204         * lib/langinfo.in.h: Likewise.
35205         * lib/locale.in.h: Likewise.
35206         * lib/math.in.h: Likewise.
35207         * lib/search.in.h: Likewise.
35208         * lib/signal.in.h: Likewise.
35209         * lib/spawn.in.h: Likewise.
35210         * lib/stdio.in.h: Likewise.
35211         * lib/stdlib.in.h: Likewise.
35212         * lib/string.in.h: Likewise.
35213         * lib/strings.in.h: Likewise.
35214         * lib/sys_file.in.h: Likewise.
35215         * lib/sys_ioctl.in.h: Likewise.
35216         * lib/sys_select.in.h: Likewise.
35217         * lib/sys_socket.in.h: Likewise.
35218         * lib/sys_stat.in.h: Likewise.
35219         * lib/sys_times.in.h: Likewise.
35220         * lib/sys_utsname.in.h: Likewise.
35221         * lib/unistd.in.h: Likewise.
35222         * lib/wchar.in.h: Likewise.
35223
35224 2010-01-20  Bruno Haible  <bruno@clisp.org>
35225
35226         Avoid duplicate -lm.
35227         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35228         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35229         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35230         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35231         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35232         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35233         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35234         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35235         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35236         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35237         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35238         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35239         Reported by Paolo Bonzini.
35240
35241 2010-01-19  Bruno Haible  <bruno@clisp.org>
35242
35243         langinfo, nl_langinfo: Relicense under LGPLv2+.
35244         * modules/langinfo (License): Change to LGPLv2+.
35245         * modules/nl_langinfo (License): Likewise.
35246         Patch by David Lutterkort <lutter@redhat.com>.
35247
35248 2010-01-19  Bruno Haible  <bruno@clisp.org>
35249
35250         Avoid compilation error with cc on OSF/1 5.1.
35251         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35252         statement, not before.
35253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35254
35255 2010-01-18  Bruno Haible  <bruno@clisp.org>
35256
35257         Avoid a link error due to the __printf__ symbol.
35258         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35259         and 2.6.x.
35260         (__format__, __printf__): Remove definitions.
35261         * lib/argp-fmtstream.h: Likewise.
35262         * lib/argp.h: Likewise.
35263         * lib/error.h: Likewise.
35264         * lib/vasnprintf.h: Likewise.
35265         * lib/xprintf.h: Likewise.
35266         * lib/xvasprintf.h: Likewise.
35267         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35268
35269 2010-01-18  Bruno Haible  <bruno@clisp.org>
35270
35271         Tests for module 'tanl'.
35272         * modules/tanl-tests: New file.
35273         * tests/test-tanl.c: New file.
35274
35275         Tests for module 'sqrtl'.
35276         * modules/sqrtl-tests: New file.
35277         * tests/test-sqrtl.c: New file.
35278
35279         Tests for module 'sinl'.
35280         * modules/sinl-tests: New file.
35281         * tests/test-sinl.c: New file.
35282
35283         Tests for module 'logl'.
35284         * modules/logl-tests: New file.
35285         * tests/test-logl.c: New file.
35286
35287         Tests for module 'expl'.
35288         * modules/expl-tests: New file.
35289         * tests/test-expl.c: New file.
35290
35291         Tests for module 'cosl'.
35292         * modules/cosl-tests: New file.
35293         * tests/test-cosl.c: New file.
35294
35295         Tests for module 'atanl'.
35296         * modules/atanl-tests: New file.
35297         * tests/test-atanl.c: New file.
35298
35299         Tests for module 'asinl'.
35300         * modules/asinl-tests: New file.
35301         * tests/test-asinl.c: New file.
35302
35303         Tests for module 'acosl'.
35304         * modules/acosl-tests: New file.
35305         * tests/test-acosl.c: New file.
35306
35307         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35308         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35309         tanl): Use the standard gnulib idiom.
35310         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35311         * lib/sinl.c: Likewise.
35312         * lib/tanl.c: Don't include trigl.c.
35313         (kernel_tanl): Make static.
35314         * lib/sincosl.c: Include trigl.h first.
35315         * lib/trigl.c: Likewise.
35316         * m4/acosl.m4: New file.
35317         * m4/asinl.m4: New file.
35318         * m4/atanl.m4: New file.
35319         * m4/cosl.m4: New file.
35320         * m4/expl.m4: New file.
35321         * m4/logl.m4: New file.
35322         * m4/sinl.m4: New file.
35323         * m4/sqrtl.m4: New file.
35324         * m4/tanl.m4: New file.
35325         * m4/mathl.m4: Remove file.
35326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35327         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35328         Don't initialize GNULIB_MATHL.
35329         * modules/acosl: New file.
35330         * modules/asinl: New file.
35331         * modules/atanl: New file.
35332         * modules/cosl: New file.
35333         * modules/expl: New file.
35334         * modules/logl: New file.
35335         * modules/sinl: New file.
35336         * modules/sqrtl: New file.
35337         * modules/tanl: New file.
35338         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35339         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35340         substitute GNULIB_MATHL.
35341         * modules/mathl: Rewritten.
35342         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35343         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35344         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35345         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35346         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35347         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35348         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35349         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35350         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35351
35352 2010-01-18  Bruno Haible  <bruno@clisp.org>
35353
35354         sqrt: Make gl_FUNC_SQRT requirable.
35355         * m4/sqrt.m4: New file.
35356         * modules/sqrt (Files): Add it.
35357         (configure.ac): Invoke gl_FUNC_SQRT.
35358
35359 2010-01-18  Bruno Haible  <bruno@clisp.org>
35360
35361         New modules for common <math.h> functions.
35362         * m4/mathfunc.m4: New file.
35363         * modules/acos: New file.
35364         * modules/asin: New file.
35365         * modules/atan: New file.
35366         * modules/atan2: New file.
35367         * modules/cbrt: New file.
35368         * modules/copysign: New file.
35369         * modules/cos: New file.
35370         * modules/cosh: New file.
35371         * modules/erf: New file.
35372         * modules/erfc: New file.
35373         * modules/exp: New file.
35374         * modules/fabs: New file.
35375         * modules/fmod: New file.
35376         * modules/hypot: New file.
35377         * modules/j0: New file.
35378         * modules/j1: New file.
35379         * modules/jn: New file.
35380         * modules/ldexp: New file.
35381         * modules/lgamma: New file.
35382         * modules/log: New file.
35383         * modules/log10: New file.
35384         * modules/log1p: New file.
35385         * modules/logb: New file.
35386         * modules/modf: New file.
35387         * modules/nextafter: New file.
35388         * modules/pow: New file.
35389         * modules/remainder: New file.
35390         * modules/rint: New file.
35391         * modules/sin: New file.
35392         * modules/sinh: New file.
35393         * modules/sqrt: New file.
35394         * modules/tan: New file.
35395         * modules/tanh: New file.
35396         * modules/y0: New file.
35397         * modules/y1: New file.
35398         * modules/yn: New file.
35399         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35400         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35401         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35402         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35403         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35404         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35405         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35406         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35407         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35408         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35409         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35410         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35411         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35412         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35413         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35414         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35415         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35416         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35417         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35418         * doc/posix-functions/log.texi: Mention the 'log' module.
35419         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35420         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35421         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35422         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35423         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35424         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35425         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35426         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35427         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35428         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35429         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35430         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35431         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35432         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35433         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35434         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35435
35436 2010-01-18  Jim Meyering  <meyering@redhat.com>
35437
35438         ignore-value: relax license to LGPLv2+
35439         * modules/ignore-value (License): Relax to LGPLv2+.
35440
35441         getdate: don't leak when TZ contains two or more '"'s
35442         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35443         double quote in TZ after the first one.
35444
35445         readtokens: do not leak internal token_lengths buffer
35446         * lib/readtokens.c (readtokens): Free the local, lengths,
35447         when the supplied "token_lengths" parameter is NULL.
35448
35449 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35450
35451         Fix a couple of missing LIBTHREAD link failures on AIX.
35452         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35453         $(LIBTHREAD).
35454         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35455
35456         Link test-poll against INET_PTON_LIB.
35457         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35458         for inet_pton on Solaris 10.
35459
35460 2010-01-17  Bruno Haible  <bruno@clisp.org>
35461
35462         unistdio/*-sprintf: Fix typo in module description.
35463         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35464         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35465         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35466         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35467         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35468         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35469         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35471
35472 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35473
35474         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35475         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35476         variables in shell case patterns, for AIX and HP-UX ksh.
35477
35478         Split large sed scripts, for HP-UX sed.
35479         * modules/stdio: Split sed scripts around 50 sed commands,
35480         to avoid HP-UX limit of 99 commands, in the near future.
35481         * modules/string: Likewise.
35482         * modules/unistd: Likewise.
35483
35484         gnulib-tool: avoid writing in the current directory.
35485         * gnulib-tool (func_emit_lib_Makefile_am)
35486         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35487         not in the current directory, so concurrent gnulib-tool
35488         instances do not interfere.
35489
35490 2010-01-16  Jim Meyering  <meyering@redhat.com>
35491
35492         doc: update users.txt
35493         * users.txt: Add grep.
35494         (diffutils, gzip): Update URLs.
35495
35496 2010-01-12  Bruno Haible  <bruno@clisp.org>
35497
35498         posix_spawn: Avoid test failure on Cygwin.
35499         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35500         characters.
35501         Reported by Simon Josefsson.
35502
35503 2010-01-12  Bruno Haible  <bruno@clisp.org>
35504
35505         * tests/test-cond.c (main): When skipping the test, show the reason.
35506
35507 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35508
35509         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35510
35511 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35512
35513         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35514         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35515
35516 2010-01-12  Eric Blake  <ebb9@byu.net>
35517
35518         build: guarantee AS_VAR_IF
35519         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35520         (gl_AS_VAR_IF): Move...
35521         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35522         Reported by Simon Josefsson.
35523
35524 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35525
35526         * lib/stdio.in.h: Fix typo.
35527
35528 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35529
35530         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35531         libgpg-error.
35532
35533 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35534
35535         * tests/test-xalloc-die.sh: Use $EXEEXT.
35536
35537 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35538             Bruno Haible  <bruno@clisp.org>
35539
35540         getlogin, getlogin_r: Avoid test failure.
35541         * tests/test-getlogin.c: Include <stdio.h>.
35542         (main): Skip the test when the function fails because stdin is not a
35543         tty.
35544         * tests/test-getlogin_r.c: Include <stdio.h>.
35545         (main): Skip the test when the function fails because stdin is not a
35546         tty.
35547
35548 2010-01-11  Eric Blake  <ebb9@byu.net>
35549
35550         tests: avoid more large file warnings
35551         * tests/test-fflush.c: Avoid warning about ftell use.
35552         * tests/test-fseek.c: Avoid warning about fseek use.
35553
35554 2010-01-10  Bruno Haible  <bruno@clisp.org>
35555
35556         nproc: Work better on Linux when /proc and /sys are not mounted.
35557         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35558         as lower bound when, on glibc/Linux systems,
35559         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35560         Suggested by Pádraig Brady <P@draigbrady.com>.
35561         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35562
35563         nproc: Refactor.
35564         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35565         extracted from num_processors.
35566         (num_processors): Call it.
35567
35568 2010-01-11  Jim Meyering  <meyering@redhat.com>
35569
35570         utimecmp: avoid new warning from upcoming gcc-4.5.0
35571         * lib/utimecmp.c (BILLION): Define using #define rather than an
35572         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35573
35574 2010-01-11  Eric Blake  <ebb9@byu.net>
35575
35576         math: add portability warnings for classification macros
35577         * modules/math (Depends-on): Add warn-on-use.
35578         (Makefile.am): Provide new substitutions.
35579         * m4/math_h.m4 (gl_MATH_H): Require inline.
35580         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35581         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35582         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35583         implement warnings.
35584
35585         unistd: warn on use of environ without module
35586         * modules/unistd (Depends-on): Add warn-on-use.
35587         (Makefile.am): Provide new substitutions.
35588         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35589         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35590
35591         stdio: warn on suspicious uses
35592         * modules/stdio (Depends-on): Add warn-on-use.
35593         (Makefile.am): Provide new substitutions.
35594         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35595         fseeko.
35596         * lib/stdio.in.h (gets): Always warn on use.
35597         (fseek, ftell): Adjust when warnings are issued, and honor
35598         _GL_NO_LARGE_FILES as a way to silence the warning.
35599         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35600         any warning about large file offsets.
35601         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35602         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35603         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35604         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35605         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35606         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35607         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35608         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35609
35610         warn-on-use: new module
35611         * modules/warn-on-use: New file.
35612         * build-aux/warn-on-use.h: Likewise.
35613         * m4/warn-on-use.m4: Likewise.
35614         * MODULES.html.sh (Support for building): Mention it.
35615
35616 2010-01-10  Bruno Haible  <bruno@clisp.org>
35617
35618         Tests for module 'unistr/u32-strdup'.
35619         * modules/unistr/u32-strdup-tests: New file.
35620         * tests/unistr/test-u32-strdup.c: New file.
35621
35622         Tests for module 'unistr/u16-strdup'.
35623         * modules/unistr/u16-strdup-tests: New file.
35624         * tests/unistr/test-u16-strdup.c: New file.
35625
35626         Tests for module 'unistr/u8-strdup'.
35627         * modules/unistr/u8-strdup-tests: New file.
35628         * tests/unistr/test-u8-strdup.c: New file.
35629         * tests/unistr/test-strdup.h: New file.
35630
35631         Tests for module 'unistr/u32-strncmp'.
35632         * modules/unistr/u32-strncmp-tests: New file.
35633         * tests/unistr/test-u32-strncmp.c: New file.
35634
35635         Tests for module 'unistr/u16-strncmp'.
35636         * modules/unistr/u16-strncmp-tests: New file.
35637         * tests/unistr/test-u16-strncmp.c: New file.
35638
35639         Tests for module 'unistr/u8-strncmp'.
35640         * modules/unistr/u8-strncmp-tests: New file.
35641         * tests/unistr/test-u8-strncmp.c: New file.
35642         * tests/unistr/test-strncmp.h: New file.
35643
35644         Tests for module 'unistr/u32-strcoll'.
35645         * modules/unistr/u32-strcoll-tests: New file.
35646         * tests/unistr/test-u32-strcoll.c: New file.
35647
35648         Tests for module 'unistr/u16-strcoll'.
35649         * modules/unistr/u16-strcoll-tests: New file.
35650         * tests/unistr/test-u16-strcoll.c: New file.
35651
35652         Tests for module 'unistr/u8-strcoll'.
35653         * modules/unistr/u8-strcoll-tests: New file.
35654         * tests/unistr/test-u8-strcoll.c: New file.
35655
35656         Tests for module 'unistr/u32-strcmp'.
35657         * modules/unistr/u32-strcmp-tests: New file.
35658         * tests/unistr/test-u32-strcmp.c: New file.
35659         * tests/unistr/test-u32-strcmp.h: New file.
35660
35661         Tests for module 'unistr/u16-strcmp'.
35662         * modules/unistr/u16-strcmp-tests: New file.
35663         * tests/unistr/test-u16-strcmp.c: New file.
35664         * tests/unistr/test-u16-strcmp.h: New file.
35665
35666         Tests for module 'unistr/u8-strcmp'.
35667         * modules/unistr/u8-strcmp-tests: New file.
35668         * tests/unistr/test-u8-strcmp.c: New file.
35669         * tests/unistr/test-u8-strcmp.h: New file.
35670         * tests/unistr/test-strcmp.h: New file.
35671
35672         Tests for module 'unistr/u32-strncat'.
35673         * modules/unistr/u32-strncat-tests: New file.
35674         * tests/unistr/test-u32-strncat.c: New file.
35675
35676         Tests for module 'unistr/u16-strncat'.
35677         * modules/unistr/u16-strncat-tests: New file.
35678         * tests/unistr/test-u16-strncat.c: New file.
35679
35680         Tests for module 'unistr/u8-strncat'.
35681         * modules/unistr/u8-strncat-tests: New file.
35682         * tests/unistr/test-u8-strncat.c: New file.
35683         * tests/unistr/test-strncat.h: New file.
35684
35685         Tests for module 'unistr/u32-strcat'.
35686         * modules/unistr/u32-strcat-tests: New file.
35687         * tests/unistr/test-u32-strcat.c: New file.
35688
35689         Tests for module 'unistr/u16-strcat'.
35690         * modules/unistr/u16-strcat-tests: New file.
35691         * tests/unistr/test-u16-strcat.c: New file.
35692
35693         Tests for module 'unistr/u8-strcat'.
35694         * modules/unistr/u8-strcat-tests: New file.
35695         * tests/unistr/test-u8-strcat.c: New file.
35696         * tests/unistr/test-strcat.h: New file.
35697
35698         Tests for module 'unistr/u32-stpncpy'.
35699         * modules/unistr/u32-stpncpy-tests: New file.
35700         * tests/unistr/test-u32-stpncpy.c: New file.
35701
35702         Tests for module 'unistr/u16-stpncpy'.
35703         * modules/unistr/u16-stpncpy-tests: New file.
35704         * tests/unistr/test-u16-stpncpy.c: New file.
35705
35706         Tests for module 'unistr/u8-stpncpy'.
35707         * modules/unistr/u8-stpncpy-tests: New file.
35708         * tests/unistr/test-u8-stpncpy.c: New file.
35709         * tests/unistr/test-stpncpy.h: New file.
35710
35711         Tests for module 'unistr/u32-strncpy'.
35712         * modules/unistr/u32-strncpy-tests: New file.
35713         * tests/unistr/test-u32-strncpy.c: New file.
35714
35715         Tests for module 'unistr/u16-strncpy'.
35716         * modules/unistr/u16-strncpy-tests: New file.
35717         * tests/unistr/test-u16-strncpy.c: New file.
35718
35719         Tests for module 'unistr/u8-strncpy'.
35720         * modules/unistr/u8-strncpy-tests: New file.
35721         * tests/unistr/test-u8-strncpy.c: New file.
35722         * tests/unistr/test-strncpy.h: New file.
35723
35724         Tests for module 'unistr/u32-stpcpy'.
35725         * modules/unistr/u32-stpcpy-tests: New file.
35726         * tests/unistr/test-u32-stpcpy.c: New file.
35727
35728         Tests for module 'unistr/u16-stpcpy'.
35729         * modules/unistr/u16-stpcpy-tests: New file.
35730         * tests/unistr/test-u16-stpcpy.c: New file.
35731
35732         Tests for module 'unistr/u8-stpcpy'.
35733         * modules/unistr/u8-stpcpy-tests: New file.
35734         * tests/unistr/test-u8-stpcpy.c: New file.
35735         * tests/unistr/test-stpcpy.h: New file.
35736
35737         Tests for module 'unistr/u32-strcpy'.
35738         * modules/unistr/u32-strcpy-tests: New file.
35739         * tests/unistr/test-u32-strcpy.c: New file.
35740
35741         Tests for module 'unistr/u16-strcpy'.
35742         * modules/unistr/u16-strcpy-tests: New file.
35743         * tests/unistr/test-u16-strcpy.c: New file.
35744
35745         Tests for module 'unistr/u8-strcpy'.
35746         * modules/unistr/u8-strcpy-tests: New file.
35747         * tests/unistr/test-u8-strcpy.c: New file.
35748         * tests/unistr/test-strcpy.h: New file.
35749
35750         Tests for module 'unistr/u32-strnlen'.
35751         * modules/unistr/u32-strnlen-tests: New file.
35752         * tests/unistr/test-u32-strnlen.c: New file.
35753
35754         Tests for module 'unistr/u16-strnlen'.
35755         * modules/unistr/u16-strnlen-tests: New file.
35756         * tests/unistr/test-u16-strnlen.c: New file.
35757
35758         Tests for module 'unistr/u8-strnlen'.
35759         * modules/unistr/u8-strnlen-tests: New file.
35760         * tests/unistr/test-u8-strnlen.c: New file.
35761         * tests/unistr/test-strnlen.h: New file.
35762
35763         Tests for module 'unistr/u32-strlen'.
35764         * modules/unistr/u32-strlen-tests: New file.
35765         * tests/unistr/test-u32-strlen.c: New file.
35766
35767         Tests for module 'unistr/u16-strlen'.
35768         * modules/unistr/u16-strlen-tests: New file.
35769         * tests/unistr/test-u16-strlen.c: New file.
35770
35771         Tests for module 'unistr/u8-strlen'.
35772         * modules/unistr/u8-strlen-tests: New file.
35773         * tests/unistr/test-u8-strlen.c: New file.
35774
35775         Tests for module 'unistr/u32-prev'.
35776         * modules/unistr/u32-prev-tests: New file.
35777         * tests/unistr/test-u32-prev.c: New file.
35778
35779         Tests for module 'unistr/u16-prev'.
35780         * modules/unistr/u16-prev-tests: New file.
35781         * tests/unistr/test-u16-prev.c: New file.
35782
35783         Tests for module 'unistr/u8-prev'.
35784         * modules/unistr/u8-prev-tests: New file.
35785         * tests/unistr/test-u8-prev.c: New file.
35786
35787         Tests for module 'unistr/u32-next'.
35788         * modules/unistr/u32-next-tests: New file.
35789         * tests/unistr/test-u32-next.c: New file.
35790
35791         Tests for module 'unistr/u16-next'.
35792         * modules/unistr/u16-next-tests: New file.
35793         * tests/unistr/test-u16-next.c: New file.
35794
35795         Tests for module 'unistr/u8-next'.
35796         * modules/unistr/u8-next-tests: New file.
35797         * tests/unistr/test-u8-next.c: New file.
35798
35799         Tests for module 'unistr/u32-strmbtouc'.
35800         * modules/unistr/u32-strmbtouc-tests: New file.
35801         * tests/unistr/test-u32-strmbtouc.c: New file.
35802
35803         Tests for module 'unistr/u16-strmbtouc'.
35804         * modules/unistr/u16-strmbtouc-tests: New file.
35805         * tests/unistr/test-u16-strmbtouc.c: New file.
35806
35807         Tests for module 'unistr/u8-strmbtouc'.
35808         * modules/unistr/u8-strmbtouc-tests: New file.
35809         * tests/unistr/test-u8-strmbtouc.c: New file.
35810
35811         Tests for module 'unistr/u32-strmblen'.
35812         * modules/unistr/u32-strmblen-tests: New file.
35813         * tests/unistr/test-u32-strmblen.c: New file.
35814
35815         Tests for module 'unistr/u16-strmblen'.
35816         * modules/unistr/u16-strmblen-tests: New file.
35817         * tests/unistr/test-u16-strmblen.c: New file.
35818
35819         Tests for module 'unistr/u8-strmblen'.
35820         * modules/unistr/u8-strmblen-tests: New file.
35821         * tests/unistr/test-u8-strmblen.c: New file.
35822
35823         Tests for module 'unistr/u32-cpy-alloc'.
35824         * modules/unistr/u32-cpy-alloc-tests: New file.
35825         * tests/unistr/test-u32-cpy-alloc.c: New file.
35826
35827         Tests for module 'unistr/u16-cpy-alloc'.
35828         * modules/unistr/u16-cpy-alloc-tests: New file.
35829         * tests/unistr/test-u16-cpy-alloc.c: New file.
35830
35831         Tests for module 'unistr/u8-cpy-alloc'.
35832         * modules/unistr/u8-cpy-alloc-tests: New file.
35833         * tests/unistr/test-u8-cpy-alloc.c: New file.
35834         * tests/unistr/test-cpy-alloc.h: New file.
35835
35836         Tests for module 'unistr/u32-mbsnlen'.
35837         * modules/unistr/u32-mbsnlen-tests: New file.
35838         * tests/unistr/test-u32-mbsnlen.c: New file.
35839
35840         Tests for module 'unistr/u16-mbsnlen'.
35841         * modules/unistr/u16-mbsnlen-tests: New file.
35842         * tests/unistr/test-u16-mbsnlen.c: New file.
35843
35844         Tests for module 'unistr/u8-mbsnlen'.
35845         * modules/unistr/u8-mbsnlen-tests: New file.
35846         * tests/unistr/test-u8-mbsnlen.c: New file.
35847
35848         Tests for module 'unistr/u32-chr'.
35849         * modules/unistr/u32-chr-tests: New file.
35850         * tests/unistr/test-u32-chr.c: New file.
35851
35852         Tests for module 'unistr/u16-chr'.
35853         * modules/unistr/u16-chr-tests: New file.
35854         * tests/unistr/test-u16-chr.c: New file.
35855
35856         Tests for module 'unistr/u8-chr'.
35857         * modules/unistr/u8-chr-tests: New file.
35858         * tests/unistr/test-u8-chr.c: New file.
35859         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35860
35861         Tests for module 'unistr/u32-cmp2'.
35862         * modules/unistr/u32-cmp2-tests: New file.
35863         * tests/unistr/test-u32-cmp2.c: New file.
35864
35865         Tests for module 'unistr/u16-cmp2'.
35866         * modules/unistr/u16-cmp2-tests: New file.
35867         * tests/unistr/test-u16-cmp2.c: New file.
35868
35869         Tests for module 'unistr/u8-cmp2'.
35870         * modules/unistr/u8-cmp2-tests: New file.
35871         * tests/unistr/test-u8-cmp2.c: New file.
35872         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35873
35874         Tests for module 'unistr/u32-cmp'.
35875         * modules/unistr/u32-cmp-tests: New file.
35876         * tests/unistr/test-u32-cmp.c: New file.
35877
35878         Tests for module 'unistr/u16-cmp'.
35879         * modules/unistr/u16-cmp-tests: New file.
35880         * tests/unistr/test-u16-cmp.c: New file.
35881
35882         Tests for module 'unistr/u8-cmp'.
35883         * modules/unistr/u8-cmp-tests: New file.
35884         * tests/unistr/test-u8-cmp.c: New file.
35885         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35886
35887         Tests for module 'unistr/u32-set'.
35888         * modules/unistr/u32-set-tests: New file.
35889         * tests/unistr/test-u32-set.c: New file.
35890
35891         Tests for module 'unistr/u16-set'.
35892         * modules/unistr/u16-set-tests: New file.
35893         * tests/unistr/test-u16-set.c: New file.
35894
35895         Tests for module 'unistr/u8-set'.
35896         * modules/unistr/u8-set-tests: New file.
35897         * tests/unistr/test-u8-set.c: New file.
35898         * tests/unistr/test-set.h: New file.
35899
35900         Tests for module 'unistr/u32-move'.
35901         * modules/unistr/u32-move-tests: New file.
35902         * tests/unistr/test-u32-move.c: New file.
35903
35904         Tests for module 'unistr/u16-move'.
35905         * modules/unistr/u16-move-tests: New file.
35906         * tests/unistr/test-u16-move.c: New file.
35907
35908         Tests for module 'unistr/u8-move'.
35909         * modules/unistr/u8-move-tests: New file.
35910         * tests/unistr/test-u8-move.c: New file.
35911         * tests/unistr/test-move.h: New file.
35912
35913         Tests for module 'unistr/u32-cpy'.
35914         * modules/unistr/u32-cpy-tests: New file.
35915         * tests/unistr/test-u32-cpy.c: New file.
35916
35917         Tests for module 'unistr/u16-cpy'.
35918         * modules/unistr/u16-cpy-tests: New file.
35919         * tests/unistr/test-u16-cpy.c: New file.
35920
35921         Tests for module 'unistr/u8-cpy'.
35922         * modules/unistr/u8-cpy-tests: New file.
35923         * tests/unistr/test-u8-cpy.c: New file.
35924         * tests/unistr/test-cpy.h: New file.
35925
35926 2010-01-09  Bruno Haible  <bruno@clisp.org>
35927
35928         Tests for module 'unistr/u32-uctomb'.
35929         * modules/unistr/u32-uctomb-tests: New file.
35930         * tests/unistr/test-u32-uctomb.c: New file.
35931
35932         Tests for module 'unistr/u16-uctomb'.
35933         * modules/unistr/u16-uctomb-tests: New file.
35934         * tests/unistr/test-u16-uctomb.c: New file.
35935
35936         Tests for module 'unistr/u8-uctomb'.
35937         * modules/unistr/u8-uctomb-tests: New file.
35938         * tests/unistr/test-u8-uctomb.c: New file.
35939
35940         Tests for module 'unistr/u32-mbtoucr'.
35941         * modules/unistr/u32-mbtoucr-tests: New file.
35942         * tests/unistr/test-u32-mbtoucr.c: New file.
35943
35944         Tests for module 'unistr/u16-mbtoucr'.
35945         * modules/unistr/u16-mbtoucr-tests: New file.
35946         * tests/unistr/test-u16-mbtoucr.c: New file.
35947
35948         Tests for module 'unistr/u8-mbtoucr'.
35949         * modules/unistr/u8-mbtoucr-tests: New file.
35950         * tests/unistr/test-u8-mbtoucr.c: New file.
35951
35952         Tests for module 'unistr/u32-mbtouc'.
35953         * modules/unistr/u32-mbtouc-tests: New file.
35954         * tests/unistr/test-u32-mbtouc.c: New file.
35955
35956         Tests for module 'unistr/u16-mbtouc'.
35957         * modules/unistr/u16-mbtouc-tests: New file.
35958         * tests/unistr/test-u16-mbtouc.c: New file.
35959
35960         Tests for module 'unistr/u8-mbtouc'.
35961         * modules/unistr/u8-mbtouc-tests: New file.
35962         * tests/unistr/test-u8-mbtouc.c: New file.
35963
35964         Tests for module 'unistr/u32-mbtouc-unsafe'.
35965         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35966         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35967         * tests/unistr/test-u32-mbtouc.h: New file.
35968
35969         Tests for module 'unistr/u16-mbtouc-unsafe'.
35970         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35971         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35972         * tests/unistr/test-u16-mbtouc.h: New file.
35973
35974         Tests for module 'unistr/u8-mbtouc-unsafe'.
35975         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35976         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35977         * tests/unistr/test-u8-mbtouc.h: New file.
35978
35979         Tests for module 'unistr/u32-mblen'.
35980         * modules/unistr/u32-mblen-tests: New file.
35981         * tests/unistr/test-u32-mblen.c: New file.
35982
35983         Tests for module 'unistr/u16-mblen'.
35984         * modules/unistr/u16-mblen-tests: New file.
35985         * tests/unistr/test-u16-mblen.c: New file.
35986
35987         Tests for module 'unistr/u8-mblen'.
35988         * modules/unistr/u8-mblen-tests: New file.
35989         * tests/unistr/test-u8-mblen.c: New file.
35990
35991         Tests for module 'unistr/u32-to-u16'.
35992         * modules/unistr/u32-to-u16-tests: New file.
35993         * tests/unistr/test-u32-to-u16.c: New file.
35994
35995         Tests for module 'unistr/u32-to-u8'.
35996         * modules/unistr/u32-to-u8-tests: New file.
35997         * tests/unistr/test-u32-to-u8.c: New file.
35998
35999         Tests for module 'unistr/u16-to-u32'.
36000         * modules/unistr/u16-to-u32-tests: New file.
36001         * tests/unistr/test-u16-to-u32.c: New file.
36002
36003         Tests for module 'unistr/u16-to-u8'.
36004         * modules/unistr/u16-to-u8-tests: New file.
36005         * tests/unistr/test-u16-to-u8.c: New file.
36006
36007         Tests for module 'unistr/u8-to-u32'.
36008         * modules/unistr/u8-to-u32-tests: New file.
36009         * tests/unistr/test-u8-to-u32.c: New file.
36010
36011         Tests for module 'unistr/u8-to-u16'.
36012         * modules/unistr/u8-to-u16-tests: New file.
36013         * tests/unistr/test-u8-to-u16.c: New file.
36014
36015         Tests for module 'unistr/u32-check'.
36016         * modules/unistr/u32-check-tests: New file.
36017         * tests/unistr/test-u32-check.c: New file.
36018
36019         Tests for module 'unistr/u16-check'.
36020         * modules/unistr/u16-check-tests: New file.
36021         * tests/unistr/test-u16-check.c: New file.
36022
36023         Tests for module 'unistr/u8-check'.
36024         * modules/unistr/u8-check-tests: New file.
36025         * tests/unistr/test-u8-check.c: New file.
36026
36027         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36028         (category_equals): New function.
36029         (main): Add more tests.
36030         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36031
36032         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36033
36034 2010-01-10  Bruno Haible  <bruno@clisp.org>
36035
36036         unistr/u*-strcoll: Try harder to distinguish different strings.
36037         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36038         compare s1 and s2 to see if they are different.
36039
36040 2010-01-10  Bruno Haible  <bruno@clisp.org>
36041
36042         unistr/u*-stpncpy: Fix the return value.
36043         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36044         description of the return value consistent with stpncpy in glibc.
36045         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36046         written non-NUL unit.
36047
36048 2010-01-10  Bruno Haible  <bruno@clisp.org>
36049
36050         unistr/u*-next: Add missing dependencies.
36051         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36052         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36053         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36054
36055 2010-01-10  Bruno Haible  <bruno@clisp.org>
36056
36057         unistr/u8-mbsnlen: Fix return value for incomplete character.
36058         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36059         u8_mblen.
36060         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36061         Remove unistr/u8-mblen.
36062         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36063         u16_mblen.
36064         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36065         Remove unistr/u16-mblen.
36066
36067 2010-01-10  Bruno Haible  <bruno@clisp.org>
36068
36069         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36070         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36071         Reported by Brian Gough <bjg@gnu.org> and
36072         Chris Clayton <chris2553@googlemail.com> via
36073         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36074
36075 2010-01-09  Bruno Haible  <bruno@clisp.org>
36076
36077         unistr/u16-to-u32: Reject invalid input.
36078         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36079         u16_mbtouc.
36080         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36081         Remove unistr/u16-mbtouc.
36082
36083         unistr/u16-to-u8: Reject invalid input.
36084         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36085         u16_mbtouc.
36086         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36087         Remove unistr/u16-mbtouc.
36088
36089         unistr/u8-to-u32: Reject invalid input.
36090         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36091         u8_mbtouc.
36092         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36093         Remove unistr/u8-mbtouc.
36094
36095         unistr/u8-to-u16: Reject invalid input.
36096         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36097         u8_mbtouc.
36098         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36099         Remove unistr/u8-mbtouc.
36100
36101 2010-01-09  Bruno Haible  <bruno@clisp.org>
36102
36103         Tests for module 'getlogin'.
36104         * modules/getlogin-tests: New file.
36105         * tests/test-getlogin.c: New file.
36106
36107         New module 'getlogin'.
36108         * lib/unistd.in.h (getlogin): New declaration.
36109         * lib/getlogin.c: New file.
36110         * m4/getlogin.m4: New file.
36111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36112         HAVE_GETLOGIN.
36113         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36114         HAVE_GETLOGIN.
36115         * modules/getlogin: New file.
36116         * doc/posix-functions/getlogin.texi: Mention the new module.
36117         Reported by John W. Eaton <jwe@gnu.org>.
36118
36119 2010-01-09  Bruno Haible  <bruno@clisp.org>
36120
36121         getlogin_r: Support for native Windows.
36122         * lib/getlogin_r.c: Include <windows.h>
36123         (getlogin_r): Implement for native Windows.
36124         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36125         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36126         via John W. Eaton <jwe@gnu.org>.
36127
36128 2010-01-09  Bruno Haible  <bruno@clisp.org>
36129
36130         getlogin_r: Small fixes.
36131         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36132         succeeds.
36133         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36134         before testing whether getlogin_r is declared. No need to set
36135         HAVE_DECL_GETLOGIN_R to 1.
36136         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36137
36138 2010-01-09  Bruno Haible  <bruno@clisp.org>
36139
36140         * lib/unistd.in.h (getlogin_r): Add comment.
36141
36142 2010-01-09  Bruno Haible  <bruno@clisp.org>
36143
36144         Tests for module 'getlogin_r'.
36145         * modules/getlogin_r-tests: New file.
36146         * tests/test-getlogin_r.c: New file.
36147
36148 2010-01-09  Jim Meyering  <meyering@redhat.com>
36149
36150         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36151         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36152         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36153
36154 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36155
36156         * lib/dup2.c (rpl_dup2): Improve comment.
36157
36158 2010-01-08  Eric Blake  <ebb9@byu.net>
36159
36160         maint.mk: allow packages to add makefile @@ exceptions
36161         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36162         (sc_makefile_check): Rename...
36163         (sc_makefile_at_at_check): ...to this, and use hook.
36164
36165         dup2: work around mingw bug
36166         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36167         Reported by Simon Josefsson.
36168
36169 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36170
36171         glob: Fix C++ compilation.
36172         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36173         C++.
36174
36175 2010-01-07  Bruno Haible  <bruno@clisp.org>
36176
36177         Fix indentation of wctype.in.h, broken since 2007-01-06.
36178         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36179
36180 2010-01-07  Bruno Haible  <bruno@clisp.org>
36181
36182         mbslen: Avoid collision with system function.
36183         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36184         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36185         * m4/mbslen.m4: New file.
36186         * modules/mbslen (Files): Add it.
36187         (configure.ac): Invoke gl_MBSLEN.
36188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36189         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36190         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36191         via Ian Beckwith <ianb@erislabs.net>.
36192
36193 2010-01-07  Bruno Haible  <bruno@clisp.org>
36194
36195         dirent: Document the last fix.
36196         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36197
36198 2010-01-07  Bruno Haible  <bruno@clisp.org>
36199
36200         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36201         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36202         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36203         va_list are defined.
36204         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36205         Reported by Eric Blake.
36206
36207 2010-01-07  Bruno Haible  <bruno@clisp.org>
36208
36209         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36210         * modules/xlist (Depends-on): Add 'list',
36211         * modules/xoset (Depends-on): Add 'oset'.
36212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36213
36214 2010-01-07  Bruno Haible  <bruno@clisp.org>
36215
36216         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36217         * doc/posix-functions/strncasecmp.texi: Likewise.
36218
36219 2010-01-07  Bruno Haible  <bruno@clisp.org>
36220
36221         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36222
36223 2010-01-07  John W. Eaton  <jwe@octave.org>
36224
36225         wctype: allow C++ use
36226         * lib/wctype.in.h: Add extern "C" block for C++.
36227
36228 2010-01-06  Eric Blake  <ebb9@byu.net>
36229
36230         maint.mk: detect incorrect GFDL usage
36231         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36232
36233 2010-01-06  Jim Meyering  <meyering@redhat.com>
36234         and Eric Blake  <ebb9@byu.net>
36235
36236         maint.mk: ignore multi-line copyright in NEWS
36237         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36238
36239 2010-01-06  Eric Blake  <ebb9@byu.net>
36240
36241         select: add missing dependency
36242         * modules/select-tests (Depends-on): Move sockets dependency...
36243         * modules/select (Depends-on): ...here.
36244         Reported by Ian Beckwith.
36245
36246         doc: regenerate INSTALL
36247         * doc/INSTALL: Reflect recent autoconf update.
36248         * doc/INSTALL.ISO: Likewise.
36249         * doc/INSTALL.UTF-8: Likewise.
36250
36251         pread: fix compilation on glibc
36252         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36253         Reported by Ralf Wildenhues.
36254
36255         dirent: fix test failure
36256         * lib/dirent.in.h (includes): Guarantee ino_t.
36257         Reported by Ralf Wildenhues.
36258
36259 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36260
36261         linkat, renameat: avoid bad free
36262         * lib/at-func2.c (at_func2): Fix typo.
36263         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36264
36265 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36266
36267         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36268         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36269         to avoid failure of symlink test later.
36270
36271 2010-01-06  Eric Blake  <ebb9@byu.net>
36272
36273         stdio, unistd: guarantee ssize_t
36274         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36275         2008 are exposed when needed.
36276         * lib/stdio.in.h (includes): Likewise.
36277         Reported by Ralf Wildenhues.
36278
36279 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36280
36281         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36282         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36283         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36284
36285 2010-01-06  Jim Meyering  <meyering@redhat.com>
36286
36287         readtokens: this module *does* require xalloc.h
36288         It uses only functions that were omitted by the old syntax-check rule.
36289         * lib/readtokens.c: Include "xalloc.h" once again.
36290         * modules/readtokens (Depends-on): Add xalloc.
36291         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36292
36293 2010-01-05  Eric Blake  <ebb9@byu.net>
36294
36295         maint: support 'make announcement' from a VPATH build
36296         * top/maint.mk (announcement): Look for correct NEWS file.
36297
36298 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36299
36300         utimens (fdutimens): ignore a negative FD, per contract
36301         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36302         when we have a valid file descriptor.  Otherwise, using a brand
36303         new glibc (with just-patched futimens that now fails with EBADF)
36304         would cause this function to fail with ENOSYS.
36305         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36306         See also http://bugzilla.redhat.com/552320.
36307
36308 2010-01-05  Eric Blake  <ebb9@byu.net>
36309
36310         strcase: document what it provides
36311         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36312         gnulib module.
36313         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36314         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36315
36316 2010-01-05  Jim Meyering  <meyering@redhat.com>
36317
36318         maint: remove useless inclusions of "xalloc.h"
36319         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36320         * lib/readtokens.c: Likewise.
36321         * lib/same.c: Likewise.
36322         * modules/getloadavg (Depends-on): Remove xalloc.
36323         * modules/readtokens: Likewise.
36324         * modules/same: Likewise.
36325
36326         maint.mk: include 4 more function names in alloca.h-checking regexp
36327         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36328         regexp.  Before, we would give a false-positive (saying alloca.h
36329         is included unnecessarily) when the only uses involved omitted symbols.
36330
36331         xalloc.h: use consistent formatting
36332         * lib/xalloc.h: Move declarations to start in the first column.
36333
36334 2010-01-05  Eric Blake  <ebb9@byu.net>
36335
36336         mkdir: avoid xalloc
36337         * lib/mkdir.c (includes): Drop unused header.
36338         Reported by John W. Eaton.
36339
36340 2010-01-04  Jim Meyering  <meyering@redhat.com>
36341
36342         nl_langinfo: avoid configure-time syntax error
36343         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36344         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36345         the empty string.  Don't let that provoke a shell syntax error.
36346
36347         regcomp, regexec, fnmatch: avoid array bounds read error
36348         * lib/regcomp.c (build_equiv_class): From glibc:
36349         Use only the low 24 bits of a findidx return value as an index
36350         into the weights array.  Patch by Ulrich Drepper:
36351         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36352         * lib/regexec.c (check_node_accept_bytes): Likewise.
36353         * lib/fnmatch_loop.c (FCT): Likewise.
36354
36355         regcomp: skip collseq lookup when there are no rules
36356         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36357         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36358
36359         regcomp: recognize ill-formed { } expressions
36360         * lib/regcomp.c (parse_dup_op): From glibc:
36361         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36362
36363         regcomp: fix typo in comment
36364         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36365         s/satisfy/satisfies/.
36366
36367         regcomp: sync from glibc: remove dead store
36368         * lib/regcomp.c (duplicate_node_closure): Remove useless
36369         search_duplicated_node call and dead store.
36370
36371         regcomp: sync from glibc; always use nl_langinfo
36372         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36373         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36374         * modules/regex (Depends-on): Add nl_langinfo.
36375
36376 2010-01-04  Eric Blake  <ebb9@byu.net>
36377
36378         fdopendir: fix configure test
36379         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36380
36381 2010-01-01  Bruno Haible  <bruno@clisp.org>
36382
36383         wchar: Remove unused configure check.
36384         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36385
36386 2010-01-01  Eric Blake  <ebb9@byu.net>
36387
36388         headers: make check of system header explicit
36389         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36390         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36391         ourselves.
36392         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36394         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36395         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36396         internals.
36397         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36398         missing.
36399         Suggested by Bruno Haible.
36400
36401 2010-01-01  Jim Meyering  <meyering@redhat.com>
36402
36403         ChangeLog: tweak to eliminate unnecessary copyright line
36404         * ChangeLog: Remove a copyright line that was mistakenly updated
36405         by today's update-copyright run.  Reported by Eric Blake.
36406
36407         test-update-copyright: don't let envvar setting cause test failure
36408         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36409
36410 2010-01-01  Bruno Haible  <bruno@clisp.org>
36411
36412         localename: Avoid gcc warning.
36413         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36414         function if it is not used.
36415
36416 2010-01-01  Jim Meyering  <meyering@redhat.com>
36417
36418         update nearly all FSF copyright year lists to include 2010
36419         Use the same procedure as for 2009, outlined in
36420         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36421
36422         version-etc: set COPYRIGHT_YEAR to 2010
36423         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36424
36425 2009-12-31  Eric Blake  <ebb9@byu.net>
36426
36427         doc: correct availability of cygwin 1.5.x getopt
36428         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36429         variables.
36430         * doc/posix-functions/opterr.texi (opterr): Likewise.
36431         * doc/posix-functions/optind.texi (optind): Likewise.
36432         * doc/posix-functions/optopt.texi (optopt): Likewise.
36433         * doc/posix-functions/tzname.texi (tzname): Likewise.
36434
36435         openat: update maintainer
36436         * modules/openat (Maintainer): Add myself.
36437
36438         utimens: avoid shadowing warning
36439         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36440         buffers into one, to avoid shadowing, as well as avoiding a
36441         redundant stat.
36442         Reported by Jim Meyering.
36443
36444         test-dup2: avoid compiler warning
36445         * tests/test-dup2.c (is_inheritable): Only define if used.
36446
36447 2010-01-01  Bruno Haible  <bruno@clisp.org>
36448
36449         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36450         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36451         defined, use wctomb instead of wcrtomb.
36452
36453 2010-01-01  Bruno Haible  <bruno@clisp.org>
36454
36455         iconv: Reject native Solaris iconv.
36456         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36457         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36458
36459 2009-12-31  Bruno Haible  <bruno@clisp.org>
36460
36461         * tests/test-signal.c (main): Remove test of 'SIG'.
36462
36463 2009-12-31  Bruno Haible  <bruno@clisp.org>
36464
36465         spawn: Fix incomplete fix.
36466         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36467         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36468         warnings for GNULIB_POSIXCHECK again.
36469         Reported by Eric Blake.
36470
36471 2009-12-31  Bruno Haible  <bruno@clisp.org>
36472
36473         Avoid namespace pollution on glibc systems.
36474         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36475         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36476         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36477         glibc systems.
36478
36479 2009-12-31  Bruno Haible  <bruno@clisp.org>
36480
36481         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36482         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36483         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36484         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36485         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36486         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36487         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36488
36489 2009-12-31  Bruno Haible  <bruno@clisp.org>
36490
36491         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36492         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36493         afterwards.
36494
36495 2009-12-31  Bruno Haible  <bruno@clisp.org>
36496
36497         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36498         SYS_UTSNAME_H.
36499
36500 2009-12-31  Bruno Haible  <bruno@clisp.org>
36501
36502         spawn: Fix misapplied patch.
36503         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36504         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36505         warnings for GNULIB_POSIXCHECK.
36506
36507 2009-12-31  Bruno Haible  <bruno@clisp.org>
36508
36509         times: Update after sys_times changed.
36510         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36511         * modules/times (Files): Add it.
36512         (configure.ac): Invoke gl_FUNC_TIMES.
36513
36514 2009-12-31  Bruno Haible  <bruno@clisp.org>
36515
36516         Use AC_C_INLINE where necessary.
36517         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36518         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36520         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36521         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36522         * m4/mbiter.m4 (gl_MBITER): Likewise.
36523         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36524         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36525         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36526         * modules/u64 (configure.ac): Likewise.
36527
36528 2009-12-31  Bruno Haible  <bruno@clisp.org>
36529
36530         Use AC_C_INLINE instead of module 'inline' where possible.
36531         * modules/inline (Description): Clarify purpose.
36532         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36533         * modules/count-one-bits (Depends-on): Remove inline.
36534         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36535         * modules/openat (Depends-on): Remove inline.
36536         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36537         instead of depending on module 'inline'.
36538         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36539         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36540         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36541         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36542         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36543         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36544         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36545         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36546         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36547         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36548         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36549         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36550         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36551         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36552         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36553         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36554         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36555         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36556         Likewise.
36557         * modules/unictype/property-ascii-hex-digit (Depends-on,
36558         configure.ac): Likewise.
36559         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36560         configure.ac): Likewise.
36561         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36562         configure.ac): Likewise.
36563         * modules/unictype/property-bidi-block-separator (Depends-on,
36564         configure.ac): Likewise.
36565         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36566         configure.ac): Likewise.
36567         * modules/unictype/property-bidi-common-separator (Depends-on,
36568         configure.ac): Likewise.
36569         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36570         Likewise.
36571         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36572         configure.ac): Likewise.
36573         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36574         configure.ac): Likewise.
36575         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36576         configure.ac): Likewise.
36577         * modules/unictype/property-bidi-european-digit (Depends-on,
36578         configure.ac): Likewise.
36579         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36580         configure.ac): Likewise.
36581         * modules/unictype/property-bidi-left-to-right (Depends-on,
36582         configure.ac): Likewise.
36583         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36584         configure.ac): Likewise.
36585         * modules/unictype/property-bidi-other-neutral (Depends-on,
36586         configure.ac): Likewise.
36587         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36588         Likewise.
36589         * modules/unictype/property-bidi-segment-separator (Depends-on,
36590         configure.ac): Likewise.
36591         * modules/unictype/property-bidi-whitespace (Depends-on,
36592         configure.ac): Likewise.
36593         * modules/unictype/property-combining (Depends-on, configure.ac):
36594         Likewise.
36595         * modules/unictype/property-composite (Depends-on, configure.ac):
36596         Likewise.
36597         * modules/unictype/property-currency-symbol (Depends-on,
36598         configure.ac): Likewise.
36599         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36600         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36601         Likewise.
36602         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36603         configure.ac): Likewise.
36604         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36605         Likewise.
36606         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36607         Likewise.
36608         * modules/unictype/property-extender (Depends-on, configure.ac):
36609         Likewise.
36610         * modules/unictype/property-format-control (Depends-on, configure.ac):
36611         Likewise.
36612         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36613         Likewise.
36614         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36615         Likewise.
36616         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36617         Likewise.
36618         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36619         Likewise.
36620         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36621         Likewise.
36622         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36623         Likewise.
36624         * modules/unictype/property-id-start (Depends-on, configure.ac):
36625         Likewise.
36626         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36627         Likewise.
36628         * modules/unictype/property-ids-binary-operator (Depends-on,
36629         configure.ac): Likewise.
36630         * modules/unictype/property-ids-trinary-operator (Depends-on,
36631         configure.ac): Likewise.
36632         * modules/unictype/property-ignorable-control (Depends-on,
36633         configure.ac): Likewise.
36634         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36635         Likewise.
36636         * modules/unictype/property-join-control (Depends-on, configure.ac):
36637         Likewise.
36638         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36639         Likewise.
36640         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36641         Likewise.
36642         * modules/unictype/property-logical-order-exception (Depends-on,
36643         configure.ac): Likewise.
36644         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36645         Likewise.
36646         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36647         * modules/unictype/property-non-break (Depends-on, configure.ac):
36648         Likewise.
36649         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36650         Likewise.
36651         * modules/unictype/property-numeric (Depends-on, configure.ac):
36652         Likewise.
36653         * modules/unictype/property-other-alphabetic (Depends-on,
36654         configure.ac): Likewise.
36655         * modules/unictype/property-other-default-ignorable-code-point
36656         (Depends-on, configure.ac): Likewise.
36657         * modules/unictype/property-other-grapheme-extend (Depends-on,
36658         configure.ac): Likewise.
36659         * modules/unictype/property-other-id-continue (Depends-on,
36660         configure.ac): Likewise.
36661         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36662         Likewise.
36663         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36664         Likewise.
36665         * modules/unictype/property-other-math (Depends-on, configure.ac):
36666         Likewise.
36667         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36668         Likewise.
36669         * modules/unictype/property-paired-punctuation (Depends-on,
36670         configure.ac): Likewise.
36671         * modules/unictype/property-paragraph-separator (Depends-on,
36672         configure.ac): Likewise.
36673         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36674         Likewise.
36675         * modules/unictype/property-pattern-white-space (Depends-on,
36676         configure.ac): Likewise.
36677         * modules/unictype/property-private-use (Depends-on, configure.ac):
36678         Likewise.
36679         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36680         Likewise.
36681         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36682         Likewise.
36683         * modules/unictype/property-radical (Depends-on, configure.ac):
36684         Likewise.
36685         * modules/unictype/property-sentence-terminal (Depends-on,
36686         configure.ac): Likewise.
36687         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36688         Likewise.
36689         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36690         * modules/unictype/property-terminal-punctuation (Depends-on,
36691         configure.ac): Likewise.
36692         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36693         Likewise.
36694         * modules/unictype/property-unassigned-code-value (Depends-on,
36695         configure.ac): Likewise.
36696         * modules/unictype/property-unified-ideograph (Depends-on,
36697         configure.ac): Likewise.
36698         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36699         Likewise.
36700         * modules/unictype/property-variation-selector (Depends-on,
36701         configure.ac): Likewise.
36702         * modules/unictype/property-white-space (Depends-on, configure.ac):
36703         Likewise.
36704         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36705         Likewise.
36706         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36707         Likewise.
36708         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36709         Likewise.
36710         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36711         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36712         Likewise.
36713
36714 2009-12-31  Bruno Haible  <bruno@clisp.org>
36715
36716         Remove unnecessary AC_C_INLINE invocation.
36717         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36718         since 2009-08-21.
36719
36720 2009-12-31  Jim Meyering  <meyering@redhat.com>
36721
36722         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36723         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36724         With this change, we can all remove the gpg_key_ID = ... definition
36725         from our respective cfg.mk files.
36726
36727         maint.mk: create announcement template in ~/, not in /tmp
36728         * top/maint.mk (emit_upload_commands): Adjust.
36729         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36730         Remove temporary file, .ci-msg.
36731
36732 2009-12-31  Eric Blake  <ebb9@byu.net>
36733
36734         link-warning: always build headers with link warnings
36735         * modules/arpa_inet (Makefile.am): Always build replacement
36736         header.
36737         * modules/ctype (Makefile.am): Likewise.
36738         * modules/dirent (Makefile.am): Likewise.
36739         * modules/inttypes (Makefile.am): Likewise.
36740         * modules/langinfo (Makefile.am): Likewise.
36741         * modules/locale (Makefile.am): Likewise.
36742         * modules/spawn (Makefile.am): Likewise.
36743         * modules/sys_file (Makefile.am): Likewise.
36744         * modules/sys_ioctl (Makefile.am): Likewise.
36745         * modules/sys_select (Makefile.am): Likewise.
36746         * modules/sys_socket (Makefile.am): Likewise.
36747         * modules/sys_times (Makefile.am): Likewise.
36748         * modules/sys_utsname (Makefile.am): Likewise.
36749         * modules/sys_wait (Makefile.am): Likewise.
36750         * modules/wchar (Makefile.am): Likewise.
36751         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36752         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36753         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36754         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36755         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36756         Likewise.
36757         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36758         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36759         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36760         Likewise.
36761         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36762         Likewise.
36763         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36764         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36765         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36766         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36767         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36768         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36769         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36770         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36771         (gl_WCHAR_H_DEFAULTS): Likewise.
36772
36773 2009-12-31  Eric Blake  <ebb9@byu.net>
36774
36775         signal, spawn: use link warnings
36776         * lib/signal.in.h (sigset_t): Make unconditional.
36777         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36778         (sigpending, sigprocmask, sigaction): Add link warnings.
36779         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36780         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36781         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36782         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36783         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36784         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36785         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36786         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36787         (posix_spawn_file_actions_destroy)
36788         (posix_spawn_file_actions_addopen)
36789         (posix_spawn_file_actions_addclose)
36790         (posix_spawn_file_actions_adddup2): Likewise.
36791         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36792         * tests/test-signal.c (main): Enhance test.
36793
36794         spawn: improve wrapper support
36795         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36796         (gl_SPAWN_H_DEFAULTS): New defaults.
36797         * modules/spawn (Makefile.am): Substitute them.
36798         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36799         Only declare if missing or broken.
36800
36801         sys_times, sys_utsname: use include_next
36802         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36803         header.
36804         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36805         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36806         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36807         * modules/sys_times (Depends-on): Add include_next.
36808         (Makefile.am): Substitute additional values.
36809         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36810         * lib/sys_times.in.h (includes): Include native header, if
36811         available.
36812         * lib/sys_utsname.in.h (includes): Likewise.
36813         * tests/test-sys_times.c (main): Enhance test.
36814
36815         fdutimensat: revert prior patch
36816         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36817         utimens.h.
36818         Reported by Bruno Haible.
36819
36820 2009-12-30  Eric Blake  <ebb9@byu.net>
36821
36822         sys_wait: drop link-warning dependency
36823         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36824         link-warning efforts.
36825         * lib/sys_wait.in.h: Likewise.
36826
36827         fdutimensat: remove bogus dependency
36828         * modules/fdutimensat (Depends-on): Drop inline.
36829
36830         unistd: fix typo
36831         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36832
36833 2009-12-30  Bruno Haible  <bruno@clisp.org>
36834
36835         Fix compilation error with Solaris cc.
36836         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36837         * lib/unicase/u16-is-invariant.c: Likewise.
36838         * lib/unicase/u32-is-invariant.c: Likewise.
36839         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36840
36841 2009-12-30  Bruno Haible  <bruno@clisp.org>
36842
36843         Fix test crash.
36844         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36845         locales.
36846         Reported by Simon Josefsson <simon@josefsson.org>.
36847
36848 2009-12-30  Bruno Haible  <bruno@clisp.org>
36849
36850         Fix compilation error on most platforms.
36851         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36852         Reported by Simon Josefsson <simon@josefsson.org>
36853         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36854
36855 2009-12-30  Eric Blake  <ebb9@byu.net>
36856
36857         futimens, utimensat: work around ntfs-3g bug
36858         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36859         a ctime bug is present, and expand workaround to cover ntfs-3g.
36860         * lib/utimens.c (fdutimens, lutimens): Likewise.
36861         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36862         (validate_timespec): Adjust return value.
36863         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36864         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36865         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36866
36867 2009-12-29  Eric Blake  <ebb9@byu.net>
36868
36869         link-warning: make usage consistent
36870         * modules/ctype (Depends-on): Add link-warning.
36871         (Makefile.am): Update rules accordingly.
36872         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36873         * modules/locale (Depends-on, Makefile.am): Likewise.
36874         * modules/sys_file (Makefile.am): Likewise.
36875         * modules/getopt-posix (Makefile.am): Delete unused link warning
36876         efforts.
36877         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36878         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36879         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36880         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36881
36882         stdio: remove unused variables
36883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36884         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36885         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36886
36887         tests: test more substitute headers
36888         * modules/ctype-tests: New file.
36889         * modules/dirent-tests: Likewise.
36890         * modules/spawn-tests: Likewise.
36891         * modules/sys_file-tests: Likewise.
36892         * modules/sys_ioctl-tests: Likewise.
36893         * modules/sys_wait-tests: Likewise.
36894         * tests/test-ctype.c: Likewise.
36895         * tests/test-dirent.c: Likewise.
36896         * tests/test-spawn.c: Likewise.
36897         * tests/test-sys_file.c: Likewise.
36898         * tests/test-sys_ioctl.c: Likewise.
36899         * tests/test-sys_wait.c: Likewise.
36900         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36901         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36902         whether or not flock is in use.
36903
36904         tests: remove License section from module
36905         * modules/arpa_inet-tests: Remove unneeded section.
36906         * modules/byteswap-tests: Likewise.
36907         * modules/ceilf-tests: Likewise.
36908         * modules/ceill-tests: Likewise.
36909         * modules/crypto/des-tests: Likewise.
36910         * modules/crypto/gc-arcfour-tests: Likewise.
36911         * modules/crypto/gc-arctwo-tests: Likewise.
36912         * modules/crypto/gc-des-tests: Likewise.
36913         * modules/crypto/gc-hmac-md5-tests: Likewise.
36914         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36915         * modules/crypto/gc-md2-tests: Likewise.
36916         * modules/crypto/gc-md4-tests: Likewise.
36917         * modules/crypto/gc-md5-tests: Likewise.
36918         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36919         * modules/crypto/gc-rijndael-tests: Likewise.
36920         * modules/crypto/gc-sha1-tests: Likewise.
36921         * modules/crypto/gc-tests: Likewise.
36922         * modules/crypto/md2-tests: Likewise.
36923         * modules/crypto/md4-tests: Likewise.
36924         * modules/fcntl-h-tests: Likewise.
36925         * modules/floorf-tests: Likewise.
36926         * modules/floorl-tests: Likewise.
36927         * modules/frexp-nolibm-tests: Likewise.
36928         * modules/frexp-tests: Likewise.
36929         * modules/frexpl-nolibm-tests: Likewise.
36930         * modules/frexpl-tests: Likewise.
36931         * modules/getaddrinfo-tests: Likewise.
36932         * modules/inttypes-tests: Likewise.
36933         * modules/isfinite-tests: Likewise.
36934         * modules/isinf-tests: Likewise.
36935         * modules/ldexpl-tests: Likewise.
36936         * modules/locale-tests: Likewise.
36937         * modules/math-tests: Likewise.
36938         * modules/netdb-tests: Likewise.
36939         * modules/netinet_in-tests: Likewise.
36940         * modules/printf-frexp-tests: Likewise.
36941         * modules/printf-frexpl-tests: Likewise.
36942         * modules/priv-set-tests: Likewise.
36943         * modules/random_r-tests: Likewise.
36944         * modules/round-tests: Likewise.
36945         * modules/roundf-tests: Likewise.
36946         * modules/roundl-tests: Likewise.
36947         * modules/search-tests: Likewise.
36948         * modules/select-tests: Likewise.
36949         * modules/signal-tests: Likewise.
36950         * modules/stdbool-tests: Likewise.
36951         * modules/stddef-tests: Likewise.
36952         * modules/stdint-tests: Likewise.
36953         * modules/stdio-tests: Likewise.
36954         * modules/stdlib-tests: Likewise.
36955         * modules/string-tests: Likewise.
36956         * modules/strings-tests: Likewise.
36957         * modules/sys_select-tests: Likewise.
36958         * modules/sys_socket-tests: Likewise.
36959         * modules/sys_stat-tests: Likewise.
36960         * modules/sys_time-tests: Likewise.
36961         * modules/sys_utsname-tests: Likewise.
36962         * modules/sysexits-tests: Likewise.
36963         * modules/time-tests: Likewise.
36964         * modules/trunc-tests: Likewise.
36965         * modules/truncf-tests: Likewise.
36966         * modules/truncl-tests: Likewise.
36967         * modules/tsearch-tests: Likewise.
36968         * modules/unistd-tests: Likewise.
36969         * modules/wchar-tests: Likewise.
36970         * modules/wctype-tests: Likewise.
36971
36972         tests: fix license on several tests
36973         * tests/test-des.c: Update to GPLv3+.
36974         * tests/test-flock.c: Likewise.
36975         * tests/test-fsync.c: Likewise.
36976         * tests/test-futimens.h: Likewise.
36977         * tests/test-gc-arcfour.c: Likewise.
36978         * tests/test-gc-arctwo.c: Likewise.
36979         * tests/test-gc-des.c: Likewise.
36980         * tests/test-gc-hmac-md5.c: Likewise.
36981         * tests/test-gc-hmac-sha1.c: Likewise.
36982         * tests/test-gc-md2.c: Likewise.
36983         * tests/test-gc-md4.c: Likewise.
36984         * tests/test-gc-md5.c: Likewise.
36985         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36986         * tests/test-gc-rijndael.c: Likewise.
36987         * tests/test-gc-sha1.c: Likewise.
36988         * tests/test-gc.c: Likewise.
36989         * tests/test-getcwd.c: Likewise.
36990         * tests/test-link.c: Likewise.
36991         * tests/test-link.h: Likewise.
36992         * tests/test-lutimens.h: Likewise.
36993         * tests/test-md2.c: Likewise.
36994         * tests/test-md4.c: Likewise.
36995         * tests/test-mkdir.h: Likewise.
36996         * tests/test-rename.c: Likewise.
36997         * tests/test-rename.h: Likewise.
36998         * tests/test-safe-alloc.c: Likewise.
36999         * tests/test-utimens-common.h: Likewise.
37000         * tests/test-utimens.h: Likewise.
37001
37002         maint: sync license texts
37003         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37004         * doc/gpl-3.0.texi: Revert copyright year update.
37005         * doc/lgpl-3.0.texi: Likewise.
37006
37007 2009-12-29  Jim Meyering  <meyering@redhat.com>
37008
37009         update nearly all FSF copyright year lists to include 2009
37010         The files named by the following are exempted:
37011             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37012               test -f "$dst" && { echo "$dst"; continue; }
37013               test -d "$dst" || continue
37014               echo "$dst"/$(basename "$src")
37015             done > exempt
37016             git ls-files tests/unictype >> exempt
37017         In the remaining files, convert to all-interval notation if
37018         - there is already at least one year interval like 2000-2003
37019         - the file is maintained by me
37020         - the file is in lib/uni*/, where that style already prevails
37021         Otherwise, use update-copyright's default.
37022
37023 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37024         and Eric Blake  <ebb9@byu.net>
37025
37026         tests: don't require debug system() to pass
37027         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37028         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37029         * tests/test-unlink.h (test_unlink_func): Likewise.
37030         * tests/test-fstatat.c (main): ...into callers.
37031         * tests/test-lstat.c (main): Likewise.
37032         * tests/test-rmdir.c (main): Likewise.
37033         * tests/test-unlink.c (main): Likewise.
37034         * tests/test-unlinkat.c (main): Likewise.
37035         * tests/test-areadlink-with-size.c (main): Don't require a
37036         debug-only system call to pass, aiding cross-testing to mingw.
37037         * tests/test-areadlink.c (main): Likewise.
37038         * tests/test-areadlinkat-with-size.c (main): Likewise.
37039         * tests/test-areadlinkat.c (main): Likewise.
37040         * tests/test-canonicalize-lgpl.c (main): Likewise.
37041         * tests/test-canonicalize.c (main): Likewise.
37042         * tests/test-chown.c (main): Likewise.
37043         * tests/test-fchownat.c (main): Likewise.
37044         * tests/test-lchown.c (main): Likewise.
37045         * tests/test-fdutimensat.c (main): Likewise.
37046         * tests/test-futimens.c (main): Likewise.
37047         * tests/test-link.c (main): Likewise.
37048         * tests/test-linkat.c (main): Likewise.
37049         * tests/test-mkdir.c (main): Likewise.
37050         * tests/test-mkdirat.c (main): Likewise.
37051         * tests/test-mkfifo.c (main): Likewise.
37052         * tests/test-mkfifoat.c (main): Likewise.
37053         * tests/test-mknod.c (main): Likewise.
37054         * tests/test-readlink.c (main): Likewise.
37055         * tests/test-remove.c (main): Likewise.
37056         * tests/test-rename.c (main): Likewise.
37057         * tests/test-renameat.c (main): Likewise.
37058         * tests/test-symlink.c (main): Likewise.
37059         * tests/test-symlinkat.c (main): Likewise.
37060         * tests/test-utimens.c (main): Likewise.
37061         * tests/test-utimensat.c (main): Likewise.
37062
37063 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37064
37065         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37066         on $(UNUSED_PARAMETER_H) to avoid build failure.
37067
37068 2009-12-28  Jim Meyering  <meyering@redhat.com>
37069
37070         update-copyright: you may specify a max. line length other than 72
37071         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37072
37073         maint: use consistent FSF copyright line syntax
37074         * lib/posixtm.c: Add missing comma in FSF copyright line.
37075         * lib/posixtm.h: Likewise.
37076         * lib/getugroups.c: Add missing ", Inc.".
37077
37078         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37079         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37080         FSF copyright line.  Remove trailing blanks.
37081
37082 2009-12-28  Eric Blake  <ebb9@byu.net>
37083
37084         test-dup2: reduce dependencies
37085         * modules/cloexec (Configure.ac): Set witness.
37086         * modules/dup2-tests (Depends-on): Drop cloexec.
37087         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37088         not present.
37089         Suggested by Bruno Haible.
37090
37091 2009-12-26  Bruno Haible  <bruno@clisp.org>
37092
37093         Remove an unneeded dependency.
37094         * modules/fseterr (Depends-on): Remove dup2.
37095
37096 2009-12-26  Eric Blake  <ebb9@byu.net>
37097
37098         tests: use macros.h in more places
37099         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37100         (ASSERT_STREAM): Provide default of stderr.
37101         * tests/test-dirent-safer.c: Include macros.h, using alternate
37102         stream for assertions.
37103         * tests/test-dup-safer.c: Likewise.
37104         * tests/test-freopen-safer.c: Likewise.
37105         * tests/test-getopt.c: Likewise.
37106         * tests/test-openat-safer.c: Likewise.
37107         * tests/test-pipe.c: Likewise.
37108         * tests/test-popen-safer.c: Likewise.
37109         * modules/dirent-safer-tests (Files): Include macros.h.
37110         * modules/unistd-safer-tests (Files): Likewise.
37111         * modules/freopen-safer-tests (Files): Likewise.
37112         * modules/getopt-posix-tests (Files): Likewise.
37113         * modules/openat-safer-tests (Files): Likewise.
37114         * modules/pipe-tests (Files): Likewise.
37115
37116 2009-12-26  Bruno Haible  <bruno@clisp.org>
37117
37118         javacomp: Portability fix.
37119         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37120         that it also works on Solaris.
37121
37122 2009-12-26  Bruno Haible  <bruno@clisp.org>
37123
37124         localename: Fix storage allocation of gl_locale_name_thread's result.
37125         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37126         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37127         all platforms that have 'uselocale'.
37128         (gl_locale_name_thread_unsafe): New function, extracted from
37129         gl_locale_name_thread.
37130         (gl_locale_name_thread): Call struniq on all platforms that have
37131         'uselocale'.
37132         * tests/test-localename.c (test_locale_name_thread): Check that the
37133         resulting strings are permanently allocated.
37134         * modules/localename-tests (Depends-on): Add strdup.
37135
37136 2009-12-26  Bruno Haible  <bruno@clisp.org>
37137
37138         * tests/test-localename.c (categories): Fill in the strings.
37139
37140 2009-12-26  Jim Meyering  <meyering@redhat.com>
37141
37142         isdir: complete the removal of m4/isdir.m4
37143         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37144
37145         isdir: clean up, since at least grep still uses it
37146         * lib/isdir.c: Include "isdir.h".
37147         (S_ISDIR): Remove now-unneeded definition.
37148         * modules/isdir (Files): Add lib/isdir.h.
37149         * lib/isdir.h: New file, with declaration.
37150         * m4/isdir.m4: Remove file -- unneeded.
37151
37152 2009-12-25  Bruno Haible  <bruno@clisp.org>
37153
37154         selinux-h: Make generated .h files standalone.
37155         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37156         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37157         * lib/se-selinux.in.h: Likewise.
37158         * modules/selinux-h (Depends-on): Add unused-parameter.
37159         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37160         selinux/selinux.h and selinux/context.h.
37161         Suggested by Eric Blake.
37162
37163 2009-12-25  Bruno Haible  <bruno@clisp.org>
37164
37165         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37166         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37167         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37168         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37169         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37170
37171 2009-12-24  Bruno Haible  <bruno@clisp.org>
37172
37173         openat: Fix warning.
37174         * lib/openat-proc.c: Include <unistd.h>.
37175
37176 2009-12-24  Bruno Haible  <bruno@clisp.org>
37177
37178         New module 'unused-parameter'.
37179         * build-aux/unused-parameter.h: New file, extracted from earlier
37180         gnulib-common.m4.
37181         * modules/unused-parameter: New file.
37182         * lib/unistr.h: Include unused-parameter.h.
37183         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37184         _GL_UNUSED.
37185         * modules/unistr/base (Depends-on): Add unused-parameter.
37186
37187 2009-12-24  Bruno Haible  <bruno@clisp.org>
37188
37189         Add missing dependencies to 'extensions' module.
37190         * m4/extensions.m4: Add comment.
37191         * modules/accept4 (Depends-on): Add extensions.
37192         * modules/dup3 (Depends-on): Likewise.
37193         * modules/fcntl (Depends-on): Likewise.
37194         * modules/futimens (Depends-on): Likewise.
37195         * modules/mknod (Depends-on): Likewise.
37196         * modules/pipe2 (Depends-on): Likewise.
37197         * modules/stat-time (Depends-on): Likewise.
37198         * modules/strcasestr-simple (Depends-on): Likewise.
37199         * modules/strsignal (Depends-on): Likewise.
37200         * modules/utimensat (Depends-on): Likewise.
37201         * modules/localcharset (Depends-on): Likewise. Needed because of
37202         gl_FCNTL_O_FLAGS.
37203         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37204         AC_TYPE_MBSTATE_T.
37205         * modules/wcsnrtombs (Depends-on): Likewise.
37206         * modules/wcsrtombs (Depends-on): Likewise.
37207
37208 2009-12-24  Bruno Haible  <bruno@clisp.org>
37209
37210         binary-io: Avoid gcc warning due to SET_BINARY.
37211         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37212         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37213
37214 2009-12-24  Bruno Haible  <bruno@clisp.org>
37215
37216         Avoid future namespace pollution on glibc systems.
37217         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37218         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37219         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37220         glibc systems.
37221
37222 2009-12-24  Bruno Haible  <bruno@clisp.org>
37223
37224         Refactor common macros used in tests.
37225         * tests/macros.h: New file.
37226         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37227         and/or <stdlib.h>, if appropriate.
37228         (ASSERT, SIZEOF): Remove macros.
37229         * tests/test-areadlink-with-size.c: Likewise.
37230         * tests/test-areadlinkat.c: Likewise.
37231         * tests/test-areadlinkat-with-size.c: Likewise.
37232         * tests/test-argmatch.c: Likewise.
37233         * tests/test-argv-iter.c: Likewise.
37234         * tests/test-array-mergesort.c: Likewise.
37235         * tests/test-array_list.c: Likewise.
37236         * tests/test-array_oset.c: Likewise.
37237         * tests/test-avltree_list.c: Likewise.
37238         * tests/test-avltree_oset.c: Likewise.
37239         * tests/test-avltreehash_list.c: Likewise.
37240         * tests/test-base64.c: Likewise.
37241         * tests/test-binary-io.c: Likewise.
37242         * tests/test-bitrotate.c: Likewise.
37243         * tests/test-btowc.c: Likewise.
37244         * tests/test-byteswap.c: Likewise.
37245         * tests/test-c-ctype.c: Likewise.
37246         * tests/test-c-stack.c: Likewise.
37247         * tests/test-c-strcasecmp.c: Likewise.
37248         * tests/test-c-strcasestr.c: Likewise.
37249         * tests/test-c-strncasecmp.c: Likewise.
37250         * tests/test-c-strstr.c: Likewise.
37251         * tests/test-canonicalize-lgpl.c: Likewise.
37252         * tests/test-canonicalize.c: Likewise.
37253         * tests/test-carray_list.c: Likewise.
37254         * tests/test-ceilf1.c: Likewise.
37255         * tests/test-ceilf2.c: Likewise.
37256         * tests/test-ceill.c: Likewise.
37257         * tests/test-chown.c: Likewise.
37258         * tests/test-cloexec.c: Likewise.
37259         * tests/test-copy-acl.c: Likewise.
37260         * tests/test-copy-file.c: Likewise.
37261         * tests/test-count-one-bits.c: Likewise.
37262         * tests/test-dprintf-posix.c: Likewise.
37263         * tests/test-dup2.c: Likewise.
37264         * tests/test-dup3.c: Likewise.
37265         * tests/test-duplocale.c: Likewise.
37266         * tests/test-fbufmode.c: Likewise.
37267         * tests/test-fchdir.c: Likewise.
37268         * tests/test-fchownat.c: Likewise.
37269         * tests/test-fcntl-safer.c: Likewise.
37270         * tests/test-fcntl.c: Likewise.
37271         * tests/test-fdopendir.c: Likewise.
37272         * tests/test-fdutimensat.c: Likewise.
37273         * tests/test-fflush2.c: Likewise.
37274         * tests/test-file-has-acl.c: Likewise.
37275         * tests/test-filevercmp.c: Likewise.
37276         * tests/test-flock.c: Likewise.
37277         * tests/test-floorf1.c: Likewise.
37278         * tests/test-floorf2.c: Likewise.
37279         * tests/test-floorl.c: Likewise.
37280         * tests/test-fnmatch.c: Likewise.
37281         * tests/test-fopen.h: Likewise.
37282         * tests/test-fpending.c: Likewise.
37283         * tests/test-fprintf-posix.c: Likewise.
37284         * tests/test-fpurge.c: Likewise.
37285         * tests/test-freadable.c: Likewise.
37286         * tests/test-freadahead.c: Likewise.
37287         * tests/test-freading.c: Likewise.
37288         * tests/test-freadptr.c: Likewise.
37289         * tests/test-freadptr2.c: Likewise.
37290         * tests/test-freadseek.c: Likewise.
37291         * tests/test-freopen.c: Likewise.
37292         * tests/test-frexp.c: Likewise.
37293         * tests/test-frexpl.c: Likewise.
37294         * tests/test-fseek.c: Likewise.
37295         * tests/test-fseeko.c: Likewise.
37296         * tests/test-fstatat.c: Likewise.
37297         * tests/test-fstrcmp.c: Likewise.
37298         * tests/test-fsync.c: Likewise.
37299         * tests/test-ftell.c: Likewise.
37300         * tests/test-ftello.c: Likewise.
37301         * tests/test-func.c: Likewise.
37302         * tests/test-futimens.c: Likewise.
37303         * tests/test-fwritable.c: Likewise.
37304         * tests/test-fwriting.c: Likewise.
37305         * tests/test-getcwd.c: Likewise.
37306         * tests/test-getdate.c: Likewise.
37307         * tests/test-getdelim.c: Likewise.
37308         * tests/test-getdtablesize.c: Likewise.
37309         * tests/test-getgroups.c: Likewise.
37310         * tests/test-getline.c: Likewise.
37311         * tests/test-getndelim2.c: Likewise.
37312         * tests/test-glob.c: Likewise.
37313         * tests/test-hash.c: Likewise.
37314         * tests/test-i-ring.c: Likewise.
37315         * tests/test-iconv-utf.c: Likewise.
37316         * tests/test-iconv.c: Likewise.
37317         * tests/test-idpriv-drop.c: Likewise.
37318         * tests/test-idpriv-droptemp.c: Likewise.
37319         * tests/test-inet_ntop.c: Likewise.
37320         * tests/test-inet_pton.c: Likewise.
37321         * tests/test-isblank.c: Likewise.
37322         * tests/test-isfinite.c: Likewise.
37323         * tests/test-isinf.c: Likewise.
37324         * tests/test-isnan.c: Likewise.
37325         * tests/test-isnand.h: Likewise.
37326         * tests/test-isnanf.h: Likewise.
37327         * tests/test-isnanl.h: Likewise.
37328         * tests/test-lchown.c: Likewise.
37329         * tests/test-ldexpl.c: Likewise.
37330         * tests/test-link.c: Likewise.
37331         * tests/test-linkat.c: Likewise.
37332         * tests/test-linked_list.c: Likewise.
37333         * tests/test-linkedhash_list.c: Likewise.
37334         * tests/test-localename.c: Likewise.
37335         * tests/test-lseek.c: Likewise.
37336         * tests/test-lstat.c: Likewise.
37337         * tests/test-mbmemcasecmp.c: Likewise.
37338         * tests/test-mbmemcasecoll.c: Likewise.
37339         * tests/test-mbrtowc.c: Likewise.
37340         * tests/test-mbscasecmp.c: Likewise.
37341         * tests/test-mbscasestr1.c: Likewise.
37342         * tests/test-mbscasestr2.c: Likewise.
37343         * tests/test-mbscasestr3.c: Likewise.
37344         * tests/test-mbscasestr4.c: Likewise.
37345         * tests/test-mbschr.c: Likewise.
37346         * tests/test-mbscspn.c: Likewise.
37347         * tests/test-mbsinit.c: Likewise.
37348         * tests/test-mbsncasecmp.c: Likewise.
37349         * tests/test-mbsnrtowcs.c: Likewise.
37350         * tests/test-mbspbrk.c: Likewise.
37351         * tests/test-mbspcasecmp.c: Likewise.
37352         * tests/test-mbsrchr.c: Likewise.
37353         * tests/test-mbsrtowcs.c: Likewise.
37354         * tests/test-mbsspn.c: Likewise.
37355         * tests/test-mbsstr1.c: Likewise.
37356         * tests/test-mbsstr2.c: Likewise.
37357         * tests/test-mbsstr3.c: Likewise.
37358         * tests/test-memchr.c: Likewise.
37359         * tests/test-memchr2.c: Likewise.
37360         * tests/test-memcmp.c: Likewise.
37361         * tests/test-memmem.c: Likewise.
37362         * tests/test-memrchr.c: Likewise.
37363         * tests/test-mkdir.c: Likewise.
37364         * tests/test-mkdirat.c: Likewise.
37365         * tests/test-mkfifo.c: Likewise.
37366         * tests/test-mkfifoat.c: Likewise.
37367         * tests/test-mknod.c: Likewise.
37368         * tests/test-nanosleep.c: Likewise.
37369         * tests/test-nl_langinfo.c: Likewise.
37370         * tests/test-obstack-printf.c: Likewise.
37371         * tests/test-open.c: Likewise.
37372         * tests/test-openat.c: Likewise.
37373         * tests/test-pipe-filter-gi1.c: Likewise.
37374         * tests/test-pipe-filter-gi2-main.c: Likewise.
37375         * tests/test-pipe-filter-ii1.c: Likewise.
37376         * tests/test-pipe-filter-ii2-main.c: Likewise.
37377         * tests/test-pipe2.c: Likewise.
37378         * tests/test-popen.h: Likewise.
37379         * tests/test-posixtm.c: Likewise.
37380         * tests/test-pread.c: Likewise.
37381         * tests/test-printf-frexp.c: Likewise.
37382         * tests/test-printf-frexpl.c: Likewise.
37383         * tests/test-printf-posix.c: Likewise.
37384         * tests/test-priv-set.c: Likewise.
37385         * tests/test-quotearg.c: Likewise.
37386         * tests/test-random_r.c: Likewise.
37387         * tests/test-rawmemchr.c: Likewise.
37388         * tests/test-rbtree_list.c: Likewise.
37389         * tests/test-rbtree_oset.c: Likewise.
37390         * tests/test-rbtreehash_list.c: Likewise.
37391         * tests/test-readlink.c: Likewise.
37392         * tests/test-remove.c: Likewise.
37393         * tests/test-rename.c: Likewise.
37394         * tests/test-renameat.c: Likewise.
37395         * tests/test-rmdir.c: Likewise.
37396         * tests/test-round1.c: Likewise.
37397         * tests/test-roundf1.c: Likewise.
37398         * tests/test-roundl.c: Likewise.
37399         * tests/test-safe-alloc.c: Likewise.
37400         * tests/test-sameacls.c: Likewise.
37401         * tests/test-set-mode-acl.c: Likewise.
37402         * tests/test-setenv.c: Likewise.
37403         * tests/test-sigaction.c: Likewise.
37404         * tests/test-signbit.c: Likewise.
37405         * tests/test-sleep.c: Likewise.
37406         * tests/test-snprintf-posix.c: Likewise.
37407         * tests/test-snprintf.c: Likewise.
37408         * tests/test-sprintf-posix.c: Likewise.
37409         * tests/test-stat-time.c: Likewise.
37410         * tests/test-stat.c: Likewise.
37411         * tests/test-strcasestr.c: Likewise.
37412         * tests/test-strchrnul.c: Likewise.
37413         * tests/test-strerror.c: Likewise.
37414         * tests/test-striconv.c: Likewise.
37415         * tests/test-striconveh.c: Likewise.
37416         * tests/test-striconveha.c: Likewise.
37417         * tests/test-strsignal.c: Likewise.
37418         * tests/test-strstr.c: Likewise.
37419         * tests/test-strtod.c: Likewise.
37420         * tests/test-strverscmp.c: Likewise.
37421         * tests/test-symlink.c: Likewise.
37422         * tests/test-symlinkat.c: Likewise.
37423         * tests/test-trunc1.c: Likewise.
37424         * tests/test-trunc2.c: Likewise.
37425         * tests/test-truncf1.c: Likewise.
37426         * tests/test-truncf2.c: Likewise.
37427         * tests/test-truncl.c: Likewise.
37428         * tests/test-uname.c: Likewise.
37429         * tests/test-unlink.c: Likewise.
37430         * tests/test-unlinkat.c: Likewise.
37431         * tests/test-unsetenv.c: Likewise.
37432         * tests/test-usleep.c: Likewise.
37433         * tests/test-utimens.c: Likewise.
37434         * tests/test-utimensat.c: Likewise.
37435         * tests/test-vasnprintf-posix.c: Likewise.
37436         * tests/test-vasnprintf-posix2.c: Likewise.
37437         * tests/test-vasnprintf.c: Likewise.
37438         * tests/test-vasprintf-posix.c: Likewise.
37439         * tests/test-vasprintf.c: Likewise.
37440         * tests/test-vdprintf-posix.c: Likewise.
37441         * tests/test-vfprintf-posix.c: Likewise.
37442         * tests/test-vprintf-posix.c: Likewise.
37443         * tests/test-vsnprintf-posix.c: Likewise.
37444         * tests/test-vsnprintf.c: Likewise.
37445         * tests/test-vsprintf-posix.c: Likewise.
37446         * tests/test-wcrtomb.c: Likewise.
37447         * tests/test-wcsnrtombs.c: Likewise.
37448         * tests/test-wcsrtombs.c: Likewise.
37449         * tests/test-wctype.c: Likewise.
37450         * tests/test-wcwidth.c: Likewise.
37451         * tests/test-xfprintf-posix.c: Likewise.
37452         * tests/test-xmemdup0.c: Likewise.
37453         * tests/test-xprintf-posix.c: Likewise.
37454         * tests/test-xvasprintf.c: Likewise.
37455         * tests/unicase/test-locale-language.c: Likewise.
37456         * tests/unicase/test-mapping-part1.h: Likewise.
37457         * tests/unicase/test-predicate-part1.h: Likewise.
37458         * tests/unicase/test-u8-casecmp.c: Likewise.
37459         * tests/unicase/test-u8-casecoll.c: Likewise.
37460         * tests/unicase/test-u8-casefold.c: Likewise.
37461         * tests/unicase/test-u8-is-cased.c: Likewise.
37462         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37463         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37464         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37465         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37466         * tests/unicase/test-u8-tolower.c: Likewise.
37467         * tests/unicase/test-u8-totitle.c: Likewise.
37468         * tests/unicase/test-u8-toupper.c: Likewise.
37469         * tests/unicase/test-u16-casecmp.c: Likewise.
37470         * tests/unicase/test-u16-casecoll.c: Likewise.
37471         * tests/unicase/test-u16-casefold.c: Likewise.
37472         * tests/unicase/test-u16-is-cased.c: Likewise.
37473         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37474         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37475         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37476         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37477         * tests/unicase/test-u16-tolower.c: Likewise.
37478         * tests/unicase/test-u16-totitle.c: Likewise.
37479         * tests/unicase/test-u16-toupper.c: Likewise.
37480         * tests/unicase/test-u32-casecmp.c: Likewise.
37481         * tests/unicase/test-u32-casecoll.c: Likewise.
37482         * tests/unicase/test-u32-casefold.c: Likewise.
37483         * tests/unicase/test-u32-is-cased.c: Likewise.
37484         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37485         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37486         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37487         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37488         * tests/unicase/test-u32-tolower.c: Likewise.
37489         * tests/unicase/test-u32-totitle.c: Likewise.
37490         * tests/unicase/test-u32-toupper.c: Likewise.
37491         * tests/unicase/test-ulc-casecmp.c: Likewise.
37492         * tests/unicase/test-ulc-casecoll.c: Likewise.
37493         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37494         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37495         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37496         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37497         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37498         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37499         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37500         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37501         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37502         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37503         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37504         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37505         * tests/unictype/test-bidi_byname.c: Likewise.
37506         * tests/unictype/test-bidi_name.c: Likewise.
37507         * tests/unictype/test-bidi_of.c: Likewise.
37508         * tests/unictype/test-bidi_test.c: Likewise.
37509         * tests/unictype/test-block_list.c: Likewise.
37510         * tests/unictype/test-block_of.c: Likewise.
37511         * tests/unictype/test-block_test.c: Likewise.
37512         * tests/unictype/test-categ_and.c: Likewise.
37513         * tests/unictype/test-categ_and_not.c: Likewise.
37514         * tests/unictype/test-categ_byname.c: Likewise.
37515         * tests/unictype/test-categ_name.c: Likewise.
37516         * tests/unictype/test-categ_none.c: Likewise.
37517         * tests/unictype/test-categ_of.c: Likewise.
37518         * tests/unictype/test-categ_or.c: Likewise.
37519         * tests/unictype/test-categ_test_withtable.c: Likewise.
37520         * tests/unictype/test-combining.c: Likewise.
37521         * tests/unictype/test-decdigit.c: Likewise.
37522         * tests/unictype/test-digit.c: Likewise.
37523         * tests/unictype/test-mirror.c: Likewise.
37524         * tests/unictype/test-numeric.c: Likewise.
37525         * tests/unictype/test-pr_byname.c: Likewise.
37526         * tests/unictype/test-pr_test.c: Likewise.
37527         * tests/unictype/test-predicate-part1.h: Likewise.
37528         * tests/unictype/test-scripts.c: Likewise.
37529         * tests/unictype/test-sy_c_ident.c: Likewise.
37530         * tests/unictype/test-sy_java_ident.c: Likewise.
37531         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37532         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37533         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37534         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37535         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37536         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37537         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37538         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37539         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37540         * tests/uninorm/test-compat-decomposition.c: Likewise.
37541         * tests/uninorm/test-composition.c: Likewise.
37542         * tests/uninorm/test-decomposing-form.c: Likewise.
37543         * tests/uninorm/test-decomposition.c: Likewise.
37544         * tests/uninorm/test-u8-nfc.c: Likewise.
37545         * tests/uninorm/test-u8-nfd.c: Likewise.
37546         * tests/uninorm/test-u8-nfkc.c: Likewise.
37547         * tests/uninorm/test-u8-nfkd.c: Likewise.
37548         * tests/uninorm/test-u8-normcmp.c: Likewise.
37549         * tests/uninorm/test-u8-normcoll.c: Likewise.
37550         * tests/uninorm/test-u16-nfc.c: Likewise.
37551         * tests/uninorm/test-u16-nfd.c: Likewise.
37552         * tests/uninorm/test-u16-nfkc.c: Likewise.
37553         * tests/uninorm/test-u16-nfkd.c: Likewise.
37554         * tests/uninorm/test-u16-normcmp.c: Likewise.
37555         * tests/uninorm/test-u16-normcoll.c: Likewise.
37556         * tests/uninorm/test-u32-nfc.c: Likewise.
37557         * tests/uninorm/test-u32-nfd.c: Likewise.
37558         * tests/uninorm/test-u32-nfkc.c: Likewise.
37559         * tests/uninorm/test-u32-nfkd.c: Likewise.
37560         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37561         * tests/uninorm/test-u32-normcmp.c: Likewise.
37562         * tests/uninorm/test-u32-normcoll.c: Likewise.
37563         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37564         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37565         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37566         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37567         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37568         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37569         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37570         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37571         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37572         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37573         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37574         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37575         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37576         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37577         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37578         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37579         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37580         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37581         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37582         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37583         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37584         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37585         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37586         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37587         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37588         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37589         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37590         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37591         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37592         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37593         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37594         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37595         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37596         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37597         * tests/uniwidth/test-u8-width.c: Likewise.
37598         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37599         * tests/uniwidth/test-u16-width.c: Likewise.
37600         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37601         * tests/uniwidth/test-u32-width.c: Likewise.
37602         * tests/uniwidth/test-uc_width.c: Likewise.
37603         * tests/uniwidth/test-uc_width2.c: Likewise.
37604         * modules/acl-tests (Files): Add tests/macros.h.
37605         * modules/areadlink-tests (Files): Likewise.
37606         * modules/areadlink-with-size-tests (Files): Likewise.
37607         * modules/areadlinkat-tests (Files): Likewise.
37608         * modules/areadlinkat-with-size-tests (Files): Likewise.
37609         * modules/argmatch-tests (Files): Likewise.
37610         * modules/argv-iter-tests (Files): Likewise.
37611         * modules/array-list-tests (Files): Likewise.
37612         * modules/array-mergesort-tests (Files): Likewise.
37613         * modules/array-oset-tests (Files): Likewise.
37614         * modules/avltree-list-tests (Files): Likewise.
37615         * modules/avltree-oset-tests (Files): Likewise.
37616         * modules/avltreehash-list-tests (Files): Likewise.
37617         * modules/base64-tests (Files): Likewise.
37618         * modules/binary-io-tests (Files): Likewise.
37619         * modules/bitrotate-tests (Files): Likewise.
37620         * modules/btowc-tests (Files): Likewise.
37621         * modules/byteswap-tests (Files): Likewise.
37622         * modules/c-ctype-tests (Files): Likewise.
37623         * modules/c-stack-tests (Files): Likewise.
37624         * modules/c-strcase-tests (Files): Likewise.
37625         * modules/c-strcasestr-tests (Files): Likewise.
37626         * modules/c-strstr-tests (Files): Likewise.
37627         * modules/canonicalize-lgpl-tests (Files): Likewise.
37628         * modules/canonicalize-tests (Files): Likewise.
37629         * modules/carray-list-tests (Files): Likewise.
37630         * modules/ceilf-tests (Files): Likewise.
37631         * modules/ceill-tests (Files): Likewise.
37632         * modules/chown-tests (Files): Likewise.
37633         * modules/cloexec-tests (Files): Likewise.
37634         * modules/copy-file-tests (Files): Likewise.
37635         * modules/count-one-bits-tests (Files): Likewise.
37636         * modules/dprintf-posix-tests (Files): Likewise.
37637         * modules/dup2-tests (Files): Likewise.
37638         * modules/dup3-tests (Files): Likewise.
37639         * modules/duplocale-tests (Files): Likewise.
37640         * modules/fbufmode-tests (Files): Likewise.
37641         * modules/fchdir-tests (Files): Likewise.
37642         * modules/fcntl-safer-tests (Files): Likewise.
37643         * modules/fcntl-tests (Files): Likewise.
37644         * modules/fdopendir-tests (Files): Likewise.
37645         * modules/fdutimensat-tests (Files): Likewise.
37646         * modules/fflush-tests (Files): Likewise.
37647         * modules/filevercmp-tests (Files): Likewise.
37648         * modules/flock-tests (Files): Likewise.
37649         * modules/floorf-tests (Files): Likewise.
37650         * modules/floorl-tests (Files): Likewise.
37651         * modules/fnmatch-tests (Files): Likewise.
37652         * modules/fopen-safer-tests (Files): Likewise.
37653         * modules/fopen-tests (Files): Likewise.
37654         * modules/fpending-tests (Files): Likewise.
37655         * modules/fprintf-posix-tests (Files): Likewise.
37656         * modules/fpurge-tests (Files): Likewise.
37657         * modules/freadable-tests (Files): Likewise.
37658         * modules/freadahead-tests (Files): Likewise.
37659         * modules/freading-tests (Files): Likewise.
37660         * modules/freadptr-tests (Files): Likewise.
37661         * modules/freadseek-tests (Files): Likewise.
37662         * modules/freopen-tests (Files): Likewise.
37663         * modules/frexp-nolibm-tests (Files): Likewise.
37664         * modules/frexp-tests (Files): Likewise.
37665         * modules/frexpl-nolibm-tests (Files): Likewise.
37666         * modules/frexpl-tests (Files): Likewise.
37667         * modules/fseek-tests (Files): Likewise.
37668         * modules/fseeko-tests (Files): Likewise.
37669         * modules/fstrcmp-tests (Files): Likewise.
37670         * modules/fsync-tests (Files): Likewise.
37671         * modules/ftell-tests (Files): Likewise.
37672         * modules/ftello-tests (Files): Likewise.
37673         * modules/func-tests (Files): Likewise.
37674         * modules/futimens-tests (Files): Likewise.
37675         * modules/fwritable-tests (Files): Likewise.
37676         * modules/fwriting-tests (Files): Likewise.
37677         * modules/getcwd-tests (Files): Likewise.
37678         * modules/getdate-tests (Files): Likewise.
37679         * modules/getdelim-tests (Files): Likewise.
37680         * modules/getdtablesize-tests (Files): Likewise.
37681         * modules/getgroups-tests (Files): Likewise.
37682         * modules/getline-tests (Files): Likewise.
37683         * modules/getndelim2-tests (Files): Likewise.
37684         * modules/glob-tests (Files): Likewise.
37685         * modules/hash-tests (Files): Likewise.
37686         * modules/i-ring-tests (Files): Likewise.
37687         * modules/iconv-tests (Files): Likewise.
37688         * modules/iconv_open-utf-tests (Files): Likewise.
37689         * modules/idpriv-drop-tests (Files): Likewise.
37690         * modules/idpriv-droptemp-tests (Files): Likewise.
37691         * modules/inet_ntop-tests (Files): Likewise.
37692         * modules/inet_pton-tests (Files): Likewise.
37693         * modules/isblank-tests (Files): Likewise.
37694         * modules/isfinite-tests (Files): Likewise.
37695         * modules/isinf-tests (Files): Likewise.
37696         * modules/isnan-tests (Files): Likewise.
37697         * modules/isnand-nolibm-tests (Files): Likewise.
37698         * modules/isnand-tests (Files): Likewise.
37699         * modules/isnanf-nolibm-tests (Files): Likewise.
37700         * modules/isnanf-tests (Files): Likewise.
37701         * modules/isnanl-nolibm-tests (Files): Likewise.
37702         * modules/isnanl-tests (Files): Likewise.
37703         * modules/lchown-tests (Files): Likewise.
37704         * modules/ldexpl-tests (Files): Likewise.
37705         * modules/link-tests (Files): Likewise.
37706         * modules/linkat-tests (Files): Likewise.
37707         * modules/linked-list-tests (Files): Likewise.
37708         * modules/linkedhash-list-tests (Files): Likewise.
37709         * modules/localename-tests (Files): Likewise.
37710         * modules/lseek-tests (Files): Likewise.
37711         * modules/lstat-tests (Files): Likewise.
37712         * modules/mbmemcasecmp-tests (Files): Likewise.
37713         * modules/mbmemcasecoll-tests (Files): Likewise.
37714         * modules/mbrtowc-tests (Files): Likewise.
37715         * modules/mbscasecmp-tests (Files): Likewise.
37716         * modules/mbscasestr-tests (Files): Likewise.
37717         * modules/mbschr-tests (Files): Likewise.
37718         * modules/mbscspn-tests (Files): Likewise.
37719         * modules/mbsinit-tests (Files): Likewise.
37720         * modules/mbsncasecmp-tests (Files): Likewise.
37721         * modules/mbsnrtowcs-tests (Files): Likewise.
37722         * modules/mbspbrk-tests (Files): Likewise.
37723         * modules/mbspcasecmp-tests (Files): Likewise.
37724         * modules/mbsrchr-tests (Files): Likewise.
37725         * modules/mbsrtowcs-tests (Files): Likewise.
37726         * modules/mbsspn-tests (Files): Likewise.
37727         * modules/mbsstr-tests (Files): Likewise.
37728         * modules/memchr-tests (Files): Likewise.
37729         * modules/memchr2-tests (Files): Likewise.
37730         * modules/memcmp-tests (Files): Likewise.
37731         * modules/memmem-tests (Files): Likewise.
37732         * modules/memrchr-tests (Files): Likewise.
37733         * modules/mkdir-tests (Files): Likewise.
37734         * modules/mkfifo-tests (Files): Likewise.
37735         * modules/mkfifoat-tests (Files): Likewise.
37736         * modules/mknod-tests (Files): Likewise.
37737         * modules/nanosleep-tests (Files): Likewise.
37738         * modules/nl_langinfo-tests (Files): Likewise.
37739         * modules/obstack-printf-tests (Files): Likewise.
37740         * modules/open-tests (Files): Likewise.
37741         * modules/openat-tests (Files): Likewise.
37742         * modules/pipe-filter-gi-tests (Files): Likewise.
37743         * modules/pipe-filter-ii-tests (Files): Likewise.
37744         * modules/pipe2-tests (Files): Likewise.
37745         * modules/popen-safer-tests (Files): Likewise.
37746         * modules/popen-tests (Files): Likewise.
37747         * modules/posixtm-tests (Files): Likewise.
37748         * modules/pread-tests (Files): Likewise.
37749         * modules/printf-frexp-tests (Files): Likewise.
37750         * modules/printf-frexpl-tests (Files): Likewise.
37751         * modules/printf-posix-tests (Files): Likewise.
37752         * modules/priv-set-tests (Files): Likewise.
37753         * modules/quotearg-tests (Files): Likewise.
37754         * modules/random_r-tests (Files): Likewise.
37755         * modules/rawmemchr-tests (Files): Likewise.
37756         * modules/rbtree-list-tests (Files): Likewise.
37757         * modules/rbtree-oset-tests (Files): Likewise.
37758         * modules/rbtreehash-list-tests (Files): Likewise.
37759         * modules/readlink-tests (Files): Likewise.
37760         * modules/remove-tests (Files): Likewise.
37761         * modules/rename-tests (Files): Likewise.
37762         * modules/renameat-tests (Files): Likewise.
37763         * modules/rmdir-tests (Files): Likewise.
37764         * modules/round-tests (Files): Likewise.
37765         * modules/roundf-tests (Files): Likewise.
37766         * modules/roundl-tests (Files): Likewise.
37767         * modules/safe-alloc-tests (Files): Likewise.
37768         * modules/setenv-tests (Files): Likewise.
37769         * modules/sigaction-tests (Files): Likewise.
37770         * modules/signbit-tests (Files): Likewise.
37771         * modules/sleep-tests (Files): Likewise.
37772         * modules/snprintf-posix-tests (Files): Likewise.
37773         * modules/snprintf-tests (Files): Likewise.
37774         * modules/sprintf-posix-tests (Files): Likewise.
37775         * modules/stat-tests (Files): Likewise.
37776         * modules/stat-time-tests (Files): Likewise.
37777         * modules/strcasestr-tests (Files): Likewise.
37778         * modules/strchrnul-tests (Files): Likewise.
37779         * modules/strerror-tests (Files): Likewise.
37780         * modules/striconv-tests (Files): Likewise.
37781         * modules/striconveh-tests (Files): Likewise.
37782         * modules/striconveha-tests (Files): Likewise.
37783         * modules/strsignal-tests (Files): Likewise.
37784         * modules/strstr-tests (Files): Likewise.
37785         * modules/strtod-tests (Files): Likewise.
37786         * modules/strverscmp-tests (Files): Likewise.
37787         * modules/symlink-tests (Files): Likewise.
37788         * modules/symlinkat-tests (Files): Likewise.
37789         * modules/trunc-tests (Files): Likewise.
37790         * modules/truncf-tests (Files): Likewise.
37791         * modules/truncl-tests (Files): Likewise.
37792         * modules/uname-tests (Files): Likewise.
37793         * modules/unicase/cased-tests (Files): Likewise.
37794         * modules/unicase/ignorable-tests (Files): Likewise.
37795         * modules/unicase/locale-language-tests (Files): Likewise.
37796         * modules/unicase/tolower-tests (Files): Likewise.
37797         * modules/unicase/totitle-tests (Files): Likewise.
37798         * modules/unicase/toupper-tests (Files): Likewise.
37799         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37800         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37801         * modules/unicase/u8-casefold-tests (Files): Likewise.
37802         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37803         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37804         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37805         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37806         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37807         * modules/unicase/u8-tolower-tests (Files): Likewise.
37808         * modules/unicase/u8-totitle-tests (Files): Likewise.
37809         * modules/unicase/u8-toupper-tests (Files): Likewise.
37810         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37811         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37812         * modules/unicase/u16-casefold-tests (Files): Likewise.
37813         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37814         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37815         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37816         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37817         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37818         * modules/unicase/u16-tolower-tests (Files): Likewise.
37819         * modules/unicase/u16-totitle-tests (Files): Likewise.
37820         * modules/unicase/u16-toupper-tests (Files): Likewise.
37821         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37822         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37823         * modules/unicase/u32-casefold-tests (Files): Likewise.
37824         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37825         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37826         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37827         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37828         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37829         * modules/unicase/u32-tolower-tests (Files): Likewise.
37830         * modules/unicase/u32-totitle-tests (Files): Likewise.
37831         * modules/unicase/u32-toupper-tests (Files): Likewise.
37832         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37833         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37834         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37835         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37836         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37837         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37838         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37839         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37840         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37841         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37842         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37843         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37844         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37845         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37846         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37847         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37848         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37849         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37850         * modules/unictype/block-list-tests (Files): Likewise.
37851         * modules/unictype/block-of-tests (Files): Likewise.
37852         * modules/unictype/block-test-tests (Files): Likewise.
37853         * modules/unictype/category-C-tests (Files): Likewise.
37854         * modules/unictype/category-Cc-tests (Files): Likewise.
37855         * modules/unictype/category-Cf-tests (Files): Likewise.
37856         * modules/unictype/category-Cn-tests (Files): Likewise.
37857         * modules/unictype/category-Co-tests (Files): Likewise.
37858         * modules/unictype/category-Cs-tests (Files): Likewise.
37859         * modules/unictype/category-L-tests (Files): Likewise.
37860         * modules/unictype/category-Ll-tests (Files): Likewise.
37861         * modules/unictype/category-Lm-tests (Files): Likewise.
37862         * modules/unictype/category-Lo-tests (Files): Likewise.
37863         * modules/unictype/category-Lt-tests (Files): Likewise.
37864         * modules/unictype/category-Lu-tests (Files): Likewise.
37865         * modules/unictype/category-M-tests (Files): Likewise.
37866         * modules/unictype/category-Mc-tests (Files): Likewise.
37867         * modules/unictype/category-Me-tests (Files): Likewise.
37868         * modules/unictype/category-Mn-tests (Files): Likewise.
37869         * modules/unictype/category-N-tests (Files): Likewise.
37870         * modules/unictype/category-Nd-tests (Files): Likewise.
37871         * modules/unictype/category-Nl-tests (Files): Likewise.
37872         * modules/unictype/category-No-tests (Files): Likewise.
37873         * modules/unictype/category-P-tests (Files): Likewise.
37874         * modules/unictype/category-Pc-tests (Files): Likewise.
37875         * modules/unictype/category-Pd-tests (Files): Likewise.
37876         * modules/unictype/category-Pe-tests (Files): Likewise.
37877         * modules/unictype/category-Pf-tests (Files): Likewise.
37878         * modules/unictype/category-Pi-tests (Files): Likewise.
37879         * modules/unictype/category-Po-tests (Files): Likewise.
37880         * modules/unictype/category-Ps-tests (Files): Likewise.
37881         * modules/unictype/category-S-tests (Files): Likewise.
37882         * modules/unictype/category-Sc-tests (Files): Likewise.
37883         * modules/unictype/category-Sk-tests (Files): Likewise.
37884         * modules/unictype/category-Sm-tests (Files): Likewise.
37885         * modules/unictype/category-So-tests (Files): Likewise.
37886         * modules/unictype/category-Z-tests (Files): Likewise.
37887         * modules/unictype/category-Zl-tests (Files): Likewise.
37888         * modules/unictype/category-Zp-tests (Files): Likewise.
37889         * modules/unictype/category-Zs-tests (Files): Likewise.
37890         * modules/unictype/category-and-not-tests (Files): Likewise.
37891         * modules/unictype/category-and-tests (Files): Likewise.
37892         * modules/unictype/category-byname-tests (Files): Likewise.
37893         * modules/unictype/category-name-tests (Files): Likewise.
37894         * modules/unictype/category-none-tests (Files): Likewise.
37895         * modules/unictype/category-of-tests (Files): Likewise.
37896         * modules/unictype/category-or-tests (Files): Likewise.
37897         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37898         * modules/unictype/combining-class-tests (Files): Likewise.
37899         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37900         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37901         * modules/unictype/ctype-blank-tests (Files): Likewise.
37902         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37903         * modules/unictype/ctype-digit-tests (Files): Likewise.
37904         * modules/unictype/ctype-graph-tests (Files): Likewise.
37905         * modules/unictype/ctype-lower-tests (Files): Likewise.
37906         * modules/unictype/ctype-print-tests (Files): Likewise.
37907         * modules/unictype/ctype-punct-tests (Files): Likewise.
37908         * modules/unictype/ctype-space-tests (Files): Likewise.
37909         * modules/unictype/ctype-upper-tests (Files): Likewise.
37910         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37911         * modules/unictype/decimal-digit-tests (Files): Likewise.
37912         * modules/unictype/digit-tests (Files): Likewise.
37913         * modules/unictype/mirror-tests (Files): Likewise.
37914         * modules/unictype/numeric-tests (Files): Likewise.
37915         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37916         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37917         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37918         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37919         Likewise.
37920         * modules/unictype/property-bidi-block-separator-tests (Files):
37921         Likewise.
37922         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37923         Likewise.
37924         * modules/unictype/property-bidi-common-separator-tests (Files):
37925         Likewise.
37926         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37927         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37928         Likewise.
37929         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37930         Likewise.
37931         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37932         Likewise.
37933         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37934         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37935         Likewise.
37936         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37937         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37938         Likewise.
37939         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37940         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37941         * modules/unictype/property-bidi-segment-separator-tests (Files):
37942         Likewise.
37943         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37944         * modules/unictype/property-byname-tests (Files): Likewise.
37945         * modules/unictype/property-combining-tests (Files): Likewise.
37946         * modules/unictype/property-composite-tests (Files): Likewise.
37947         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37948         * modules/unictype/property-dash-tests (Files): Likewise.
37949         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37950         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37951         Likewise.
37952         * modules/unictype/property-deprecated-tests (Files): Likewise.
37953         * modules/unictype/property-diacritic-tests (Files): Likewise.
37954         * modules/unictype/property-extender-tests (Files): Likewise.
37955         * modules/unictype/property-format-control-tests (Files): Likewise.
37956         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37957         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37958         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37959         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37960         * modules/unictype/property-hyphen-tests (Files): Likewise.
37961         * modules/unictype/property-id-continue-tests (Files): Likewise.
37962         * modules/unictype/property-id-start-tests (Files): Likewise.
37963         * modules/unictype/property-ideographic-tests (Files): Likewise.
37964         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37965         * modules/unictype/property-ids-trinary-operator-tests (Files):
37966         Likewise.
37967         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37968         * modules/unictype/property-iso-control-tests (Files): Likewise.
37969         * modules/unictype/property-join-control-tests (Files): Likewise.
37970         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37971         * modules/unictype/property-line-separator-tests (Files): Likewise.
37972         * modules/unictype/property-logical-order-exception-tests (Files):
37973         Likewise.
37974         * modules/unictype/property-lowercase-tests (Files): Likewise.
37975         * modules/unictype/property-math-tests (Files): Likewise.
37976         * modules/unictype/property-non-break-tests (Files): Likewise.
37977         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37978         * modules/unictype/property-numeric-tests (Files): Likewise.
37979         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37980         * modules/unictype/property-other-default-ignorable-code-point-tests
37981         (Files): Likewise.
37982         * modules/unictype/property-other-grapheme-extend-tests (Files):
37983         Likewise.
37984         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37985         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37986         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37987         * modules/unictype/property-other-math-tests (Files): Likewise.
37988         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37989         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37990         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37991         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37992         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37993         * modules/unictype/property-private-use-tests (Files): Likewise.
37994         * modules/unictype/property-punctuation-tests (Files): Likewise.
37995         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37996         * modules/unictype/property-radical-tests (Files): Likewise.
37997         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37998         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37999         * modules/unictype/property-space-tests (Files): Likewise.
38000         * modules/unictype/property-terminal-punctuation-tests (Files):
38001         Likewise.
38002         * modules/unictype/property-test-tests (Files): Likewise.
38003         * modules/unictype/property-titlecase-tests (Files): Likewise.
38004         * modules/unictype/property-unassigned-code-value-tests (Files):
38005         Likewise.
38006         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38007         * modules/unictype/property-uppercase-tests (Files): Likewise.
38008         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38009         * modules/unictype/property-white-space-tests (Files): Likewise.
38010         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38011         * modules/unictype/property-xid-start-tests (Files): Likewise.
38012         * modules/unictype/property-zero-width-tests (Files): Likewise.
38013         * modules/unictype/scripts-tests (Files): Likewise.
38014         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38015         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38016         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38017         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38018         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38019         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38020         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38021         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38022         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38023         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38024         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38025         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38026         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38027         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38028         * modules/uninorm/composition-tests (Files): Likewise.
38029         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38030         * modules/uninorm/decomposition-tests (Files): Likewise.
38031         * modules/uninorm/filter-tests (Files): Likewise.
38032         * modules/uninorm/nfc-tests (Files): Likewise.
38033         * modules/uninorm/nfd-tests (Files): Likewise.
38034         * modules/uninorm/nfkc-tests (Files): Likewise.
38035         * modules/uninorm/nfkd-tests (Files): Likewise.
38036         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38037         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38038         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38039         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38040         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38041         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38042         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38043         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38044         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38045         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38046         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38047         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38048         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38049         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38050         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38051         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38052         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38053         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38054         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38055         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38056         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38057         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38058         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38059         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38060         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38061         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38062         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38063         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38064         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38065         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38066         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38067         * modules/uniwidth/u8-width-tests (Files): Likewise.
38068         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38069         * modules/uniwidth/u16-width-tests (Files): Likewise.
38070         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38071         * modules/uniwidth/u32-width-tests (Files): Likewise.
38072         * modules/uniwidth/width-tests (Files): Likewise.
38073         * modules/unlink-tests (Files): Likewise.
38074         * modules/unsetenv-tests (Files): Likewise.
38075         * modules/usleep-tests (Files): Likewise.
38076         * modules/utimens-tests (Files): Likewise.
38077         * modules/utimensat-tests (Files): Likewise.
38078         * modules/vasnprintf-posix-tests (Files): Likewise.
38079         * modules/vasnprintf-tests (Files): Likewise.
38080         * modules/vasprintf-posix-tests (Files): Likewise.
38081         * modules/vasprintf-tests (Files): Likewise.
38082         * modules/vdprintf-posix-tests (Files): Likewise.
38083         * modules/vfprintf-posix-tests (Files): Likewise.
38084         * modules/vprintf-posix-tests (Files): Likewise.
38085         * modules/vsnprintf-posix-tests (Files): Likewise.
38086         * modules/vsnprintf-tests (Files): Likewise.
38087         * modules/vsprintf-posix-tests (Files): Likewise.
38088         * modules/wcrtomb-tests (Files): Likewise.
38089         * modules/wcsnrtombs-tests (Files): Likewise.
38090         * modules/wcsrtombs-tests (Files): Likewise.
38091         * modules/wctype-tests (Files): Likewise.
38092         * modules/wcwidth-tests (Files): Likewise.
38093         * modules/xmemdup0-tests (Files): Likewise.
38094         * modules/xprintf-posix-tests (Files): Likewise.
38095         * modules/xvasprintf-tests (Files): Likewise.
38096
38097 2009-12-24  Eric Blake  <ebb9@byu.net>
38098
38099         test-nanosleep: fix typo
38100         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38101         patch.
38102         Reported by Bruno Haible.
38103
38104 2009-12-24  Bruno Haible  <bruno@clisp.org>
38105
38106         Reduce namespace pollution on glibc systems.
38107         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38108         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38109         systems.
38110         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38111         <getopt.h> on glibc systems.
38112         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38113         systems.
38114         * lib/fcntl.c: Include <unistd.h> here instead.
38115
38116 2009-12-24  Bruno Haible  <bruno@clisp.org>
38117
38118         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38119
38120 2009-12-24  Eric Blake  <ebb9@byu.net>
38121
38122         tests: add signature checks
38123         * tests/signature.h (SIGNATURE_CHECK): New file.
38124         * modules/atexit-tests (Files): Use it.
38125         * modules/btowc-tests (Files): Likewise.
38126         * modules/canonicalize-lgpl-tests (Files): Likewise.
38127         * modules/ceilf-tests (Files): Likewise.
38128         * modules/ceill-tests (Files): Likewise.
38129         * modules/chown-tests (Files): Likewise.
38130         * modules/dprintf-posix-tests (Files): Likewise.
38131         * modules/dup2-tests (Files): Likewise.
38132         * modules/dup3-tests (Files): Likewise.
38133         * modules/duplocale-tests (Files): Likewise.
38134         * modules/fchdir-tests (Files): Likewise.
38135         * modules/fcntl-tests (Files): Likewise.
38136         * modules/fdopendir-tests (Files): Likewise.
38137         * modules/fflush-tests (Files): Likewise.
38138         * modules/flock-tests (Files): Likewise.
38139         * modules/floorf-tests (Files): Likewise.
38140         * modules/floorl-tests (Files): Likewise.
38141         * modules/fnmatch-tests (Files): Likewise.
38142         * modules/fopen-tests (Files): Likewise.
38143         * modules/fprintf-posix-tests (Files): Likewise.
38144         * modules/freopen-tests (Files): Likewise.
38145         * modules/frexp-nolibm-tests (Files): Likewise.
38146         * modules/frexp-tests (Files): Likewise.
38147         * modules/frexpl-nolibm-tests (Files): Likewise.
38148         * modules/frexpl-tests (Files): Likewise.
38149         * modules/fseek-tests (Files): Likewise.
38150         * modules/fseeko-tests (Files): Likewise.
38151         * modules/fsync-tests (Files): Likewise.
38152         * modules/ftell-tests (Files): Likewise.
38153         * modules/ftello-tests (Files): Likewise.
38154         * modules/futimens-tests (Files): Likewise.
38155         * modules/getaddrinfo-tests (Files): Likewise.
38156         * modules/getcwd-tests (Files): Likewise.
38157         * modules/getdelim-tests (Files): Likewise.
38158         * modules/getdtablesize-tests (Files): Likewise.
38159         * modules/getgroups-tests (Files): Likewise.
38160         * modules/gethostname-tests (Files): Likewise.
38161         * modules/getline-tests (Files): Likewise.
38162         * modules/getopt-posix-tests (Files): Likewise.
38163         * modules/gettimeofday-tests (Files): Likewise.
38164         * modules/glob-tests (Files): Likewise.
38165         * modules/iconv-tests (Files): Likewise.
38166         * modules/inet_ntop-tests (Files): Likewise.
38167         * modules/inet_pton-tests (Files): Likewise.
38168         * modules/isblank-tests (Files): Likewise.
38169         * modules/lchown-tests (Files): Likewise.
38170         * modules/ldexpl-tests (Files): Likewise.
38171         * modules/link-tests (Files): Likewise.
38172         * modules/linkat-tests (Files): Likewise.
38173         * modules/lseek-tests (Files): Likewise.
38174         * modules/lstat-tests (Files): Likewise.
38175         * modules/mbrtowc-tests (Files): Likewise.
38176         * modules/mbsinit-tests (Files): Likewise.
38177         * modules/mbsnrtowcs-tests (Files): Likewise.
38178         * modules/mbsrtowcs-tests (Files): Likewise.
38179         * modules/memchr-tests (Files): Likewise.
38180         * modules/memcmp-tests (Files): Likewise.
38181         * modules/memmem-tests (Files): Likewise.
38182         * modules/memrchr-tests (Files): Likewise.
38183         * modules/mkdir-tests (Files): Likewise.
38184         * modules/mkfifo-tests (Files): Likewise.
38185         * modules/mkfifoat-tests (Files): Likewise.
38186         * modules/mknod-tests (Files): Likewise.
38187         * modules/nanosleep-tests (Files): Likewise.
38188         * modules/nl_langinfo-tests (Files): Likewise.
38189         * modules/obstack-printf-tests (Files): Likewise.
38190         * modules/open-tests (Files): Likewise.
38191         * modules/openat-tests (Files): Likewise.
38192         * modules/perror-tests (Files): Likewise.
38193         * modules/pipe2-tests (Files): Likewise.
38194         * modules/poll-tests (Files): Likewise.
38195         * modules/popen-tests (Files): Likewise.
38196         * modules/posix_spawn-tests (Files): Likewise.
38197         * modules/posix_spawnp-tests (Files): Likewise.
38198         * modules/pread-tests (Files): Likewise.
38199         * modules/printf-posix-tests (Files): Likewise.
38200         * modules/pty-tests (Files): Likewise.
38201         * modules/random_r-tests (Files): Likewise.
38202         * modules/rawmemchr-tests (Files): Likewise.
38203         * modules/readlink-tests (Files): Likewise.
38204         * modules/remove-tests (Files): Likewise.
38205         * modules/rename-tests (Files): Likewise.
38206         * modules/renameat-tests (Files): Likewise.
38207         * modules/rmdir-tests (Files): Likewise.
38208         * modules/round-tests (Files): Likewise.
38209         * modules/roundf-tests (Files): Likewise.
38210         * modules/roundl-tests (Files): Likewise.
38211         * modules/select-tests (Files): Likewise.
38212         * modules/setenv-tests (Files): Likewise.
38213         * modules/sigaction-tests (Files): Likewise.
38214         * modules/sleep-tests (Files): Likewise.
38215         * modules/snprintf-posix-tests (Files): Likewise.
38216         * modules/snprintf-tests (Files): Likewise.
38217         * modules/sprintf-posix-tests (Files): Likewise.
38218         * modules/stat-tests (Files): Likewise.
38219         * modules/strcasestr-tests (Files): Likewise.
38220         * modules/strchrnul-tests (Files): Likewise.
38221         * modules/strerror-tests (Files): Likewise.
38222         * modules/strsignal-tests (Files): Likewise.
38223         * modules/strstr-tests (Files): Likewise.
38224         * modules/strtod-tests (Files): Likewise.
38225         * modules/strverscmp-tests (Files): Likewise.
38226         * modules/symlink-tests (Files): Likewise.
38227         * modules/symlinkat-tests (Files): Likewise.
38228         * modules/times-tests (Files): Likewise.
38229         * modules/trunc-tests (Files): Likewise.
38230         * modules/truncf-tests (Files): Likewise.
38231         * modules/truncl-tests (Files): Likewise.
38232         * modules/tsearch-tests (Files): Likewise.
38233         * modules/uname-tests (Files): Likewise.
38234         * modules/unlink-tests (Files): Likewise.
38235         * modules/unsetenv-tests (Files): Likewise.
38236         * modules/usleep-tests (Files): Likewise.
38237         * modules/utimensat-tests (Files): Likewise.
38238         * modules/vasprintf-tests (Files): Likewise.
38239         * modules/vdprintf-posix-tests (Files): Likewise.
38240         * modules/vfprintf-posix-tests (Files): Likewise.
38241         * modules/vprintf-posix-tests (Files): Likewise.
38242         * modules/vsnprintf-posix-tests (Files): Likewise.
38243         * modules/vsnprintf-tests (Files): Likewise.
38244         * modules/vsprintf-posix-tests (Files): Likewise.
38245         * modules/wcrtomb-tests (Files): Likewise.
38246         * modules/wcsnrtombs-tests (Files): Likewise.
38247         * modules/wcsrtombs-tests (Files): Likewise.
38248         * modules/wcwidth-tests (Files): Likewise.
38249         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38250         * tests/test-isinf.c (isinf): Likewise.
38251         * tests/test-isnan.c (isnan): Likewise.
38252         * tests/test-signbit.c (signbit): Likewise.
38253         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38254         declaration, either as macro or with correct signature.
38255         (select): Ensure function under test is declared with correct
38256         signature in correct header.
38257         * tests/test-atexit.c (atexit): Likewise.
38258         * tests/test-btowc.c (btowc): Likewise.
38259         * tests/test-canonicalize-lgpl.c (realpath)
38260         (canonicalize_file_name): Likewise.
38261         * tests/test-ceilf1.c (ceilf): Likewise.
38262         * tests/test-ceill.c (ceill): Likewise.
38263         * tests/test-chown.c (chown): Likewise.
38264         * tests/test-dprintf-posix.c (dprintf): Likewise.
38265         * tests/test-dup2.c (dup2): Likewise.
38266         * tests/test-dup3.c (dup3): Likewise.
38267         * tests/test-duplocale.c (duplocale): Likewise.
38268         * tests/test-fchdir.c (fchdir): Likewise.
38269         * tests/test-fchownat.c (fchownat): Likewise.
38270         * tests/test-fcntl.c (fcntl): Likewise.
38271         * tests/test-fdopendir.c (fdopendir): Likewise.
38272         * tests/test-fflush.c (fflush): Likewise.
38273         * tests/test-flock.c (flock): Likewise.
38274         * tests/test-floorf1.c (floorf): Likewise.
38275         * tests/test-floorl.c (floorl): Likewise.
38276         * tests/test-fnmatch.c (fnmatch): Likewise.
38277         * tests/test-fopen.c (fopen): Likewise.
38278         * tests/test-fprintf-posix.c (fprintf): Likewise.
38279         * tests/test-freopen.c (freopen): Likewise.
38280         * tests/test-frexp.c (frexp): Likewise.
38281         * tests/test-frexpl.c (frexpl): Likewise.
38282         * tests/test-fseek.c (fseek): Likewise.
38283         * tests/test-fseeko.c (fseeko): Likewise.
38284         * tests/test-fstatat.c (fstatat): Likewise.
38285         * tests/test-fsync.c (fsync): Likewise.
38286         * tests/test-ftell.c (ftell): Likewise.
38287         * tests/test-ftello.c (ftello): Likewise.
38288         * tests/test-futimens.c (futimens): Likewise.
38289         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38290         (gai_strerror): Likewise.
38291         * tests/test-getcwd.c (getcwd): Likewise.
38292         * tests/test-getdelim.c (getdelim): Likewise.
38293         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38294         * tests/test-getgroups.c (getgroups): Likewise.
38295         * tests/test-gethostname.c (gethostname): Likewise.
38296         * tests/test-getline.c (getline): Likewise.
38297         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38298         Likewise.
38299         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38300         * tests/test-glob.c (glob, globfree): Likewise.
38301         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38302         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38303         * tests/test-inet_pton.c (inet_pton): Likewise.
38304         * tests/test-isblank.c (isblank): Likewise.
38305         * tests/test-lchown.c (lchown): Likewise.
38306         * tests/test-ldexpl.c (ldexpl): Likewise.
38307         * tests/test-link.c (link): Likewise.
38308         * tests/test-linkat.c (linkat): Likewise.
38309         * tests/test-lseek.c (lseek): Likewise.
38310         * tests/test-lstat.c (lstat): Likewise.
38311         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38312         * tests/test-mbsinit.c (mbsinit): Likewise.
38313         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38314         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38315         * tests/test-memchr.c (memchr): Likewise.
38316         * tests/test-memcmp.c (memcmp): Likewise.
38317         * tests/test-memmem.c (memmem): Likewise.
38318         * tests/test-memrchr.c (memrchr): Likewise.
38319         * tests/test-mkdir.c (mkdir): Likewise.
38320         * tests/test-mkdirat.c (mkdirat): Likewise.
38321         * tests/test-mkfifo.c (mkfifo): Likewise.
38322         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38323         * tests/test-mknod.c (mknod): Likewise.
38324         * tests/test-nanosleep.c (nanosleep): Likewise.
38325         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38326         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38327         Likewise.
38328         * tests/test-open.c (open): Likewise.
38329         * tests/test-openat.c (openat): Likewise.
38330         * tests/test-perror.c (perror): Likewise.
38331         * tests/test-pipe2.c (pipe2): Likewise.
38332         * tests/test-poll.c (poll): Likewise.
38333         * tests/test-popen.c (popen, pclose): Likewise.
38334         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38335         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38336         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38337         (posix_spawn_file_actions_destroy)
38338         (posix_spawn_file_actions_addclose)
38339         (posix_spawn_file_actions_addopen)
38340         (posix_spawn_file_actions_adddup2): Likewise.
38341         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38342         * tests/test-pread.c (pread): Likewise.
38343         * tests/test-printf-posix.c (printf): Likewise.
38344         * tests/test-pty.c (openpty, forkpty): Likewise.
38345         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38346         (random_r): Likewise.
38347         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38348         * tests/test-readlink.c (readlink): Likewise.
38349         * tests/test-remove.c (remove): Likewise.
38350         * tests/test-rename.c (rename): Likewise.
38351         * tests/test-renameat.c (renameat): Likewise.
38352         * tests/test-rmdir.c (rmdir): Likewise.
38353         * tests/test-round1.c (round): Likewise.
38354         * tests/test-roundf1.c (roundf): Likewise.
38355         * tests/test-roundl.c (roundl): Likewise.
38356         * tests/test-setenv.c (setenv): Likewise.
38357         * tests/test-sigaction.c (sigaction): Likewise.
38358         * tests/test-sleep.c (sleep): Likewise.
38359         * tests/test-snprintf.c (snprintf): Likewise.
38360         * tests/test-sprintf-posix.c (sprintf): Likewise.
38361         * tests/test-stat.c (stat): Likewise.
38362         * tests/test-stpncpy.c (stpncpy): Likewise.
38363         * tests/test-strcasestr.c (strcasestr): Likewise.
38364         * tests/test-strchrnul.c (strchrnul): Likewise.
38365         * tests/test-strerror.c (strerror): Likewise.
38366         * tests/test-strsignal.c (strsignal): Likewise.
38367         * tests/test-strstr.c (strstr): Likewise.
38368         * tests/test-strtod.c (strtod): Likewise.
38369         * tests/test-strverscmp.c (strverscmp): Likewise.
38370         * tests/test-symlink.c (symlink): Likewise.
38371         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38372         * tests/test-times.c (times): Likewise.
38373         * tests/test-trunc1.c (trunc): Likewise.
38374         * tests/test-truncf1.c (truncf): Likewise.
38375         * tests/test-truncl.c (truncl): Likewise.
38376         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38377         Likewise.
38378         * tests/test-uname.c (uname): Likewise.
38379         * tests/test-unlink.c (unlink): Likewise.
38380         * tests/test-unlinkat.c (unlinkat): Likewise.
38381         * tests/test-unsetenv.c (unsetenv): Likewise.
38382         * tests/test-usleep.c (usleep): Likewise.
38383         * tests/test-utimensat.c (utimensat): Likewise.
38384         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38385         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38386         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38387         * tests/test-vprintf-posix.c (vprintf): Likewise.
38388         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38389         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38390         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38391         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38392         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38393         * tests/test-wcwidth.c (wcwidth): Likewise.
38394
38395         build: pull in conditional headers during GNULIB_POSIXCHECK
38396         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38397         definitions from any conditionally-included headers.
38398         * lib/stdlib.in.h (includes): Likewise.
38399         * lib/unistd.in.h (includes): Likewise.
38400
38401 2009-12-24  Bruno Haible  <bruno@clisp.org>
38402
38403         * tests/test-argv-iter.c: Include header file being tested immediately
38404         after config.h.
38405         * tests/test-base64.c: Likewise.
38406         * tests/test-flock.c: Likewise.
38407         * tests/test-fsync.c: Likewise.
38408         * tests/test-getdate.c: Likewise.
38409         * tests/test-getndelim2.c: Likewise.
38410         * tests/test-isfinite.c: Likewise.
38411         * tests/test-isinf.c: Likewise.
38412         * tests/test-strerror.c: Likewise.
38413         * tests/test-strsignal.c: Likewise.
38414
38415 2009-12-23  Eric Blake  <ebb9@byu.net>
38416
38417         unistd: work around cygwin bug
38418         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38419         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38420         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38421
38422 2009-12-23  Bruno Haible  <bruno@clisp.org>
38423
38424         localename: More tests.
38425         * tests/test-localename.c (SIZEOF): New macro.
38426         (categories): New variable.
38427         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38428         test_locale_name_default): Add test w.r.t. thread locale.
38429         (test_locale_name_thread): New function.
38430         (main): Invoke it.
38431
38432         localename: Make aware of thread locale.
38433         * lib/localename.h (gl_locale_name_thread): New declaration.
38434         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38435         behaviour with respect to thread locale.
38436         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38437         <langinfo.h>, glthread/lock.h.
38438         (SIZE_BITS): New macro.
38439         (string_hash): New function.
38440         (struct hash_node): New type.
38441         (HASH_TABLE_SIZE): New macro.
38442         (struniq_hash_table, struniq_lock): New variables.
38443         (struniq): New function.
38444         (gl_locale_name_thread): New function.
38445         (gl_locale_name): Invoke it.
38446         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38447         * modules/localename (Depends-on): Add lock.
38448         Reported by Mike Gran <spk121@yahoo.com>.
38449
38450 2009-12-23  Eric Blake  <ebb9@byu.net>
38451
38452         va-args: new module
38453         * modules/va-args: New file.
38454         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38455         * MODULES.html.sh (Core language properties): Mention it.
38456
38457         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38458         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38459         named alias for __attribute__((__unused__)).
38460         * lib/chown.c: Update client.
38461         * lib/fchmodat.c: Likewise.
38462         * lib/fts.c: Likewise.
38463         * lib/getdate.y: Likewise.
38464         * lib/getgroups.c: Likewise.
38465         * lib/getopt.c: Likewise.
38466         * lib/getugroups.c: Likewise.
38467         * lib/mkdir.c: Likewise.
38468         * lib/mkfifo.c: Likewise.
38469         * lib/mkfifoat.c: Likewise.
38470         * lib/mknod.c: Likewise.
38471         * lib/mknodat.c: Likewise.
38472         * lib/readlink.c: Likewise.
38473         * lib/se-context.in.h: Likewise.
38474         * lib/se-selinux.in.h: Likewise.
38475         * lib/sockets.c: Likewise.
38476         * lib/symlink.c: Likewise.
38477         * lib/symlinkat.c: Likewise.
38478         * lib/unicodeio.c: Likewise.
38479         * lib/unistr.h: Likewise.
38480         * tests/test-areadlink.c: Likewise.
38481         * tests/test-areadlinkat.c: Likewise.
38482         * tests/test-filenamecat.c: Likewise.
38483         * tests/test-fseeko.c: Likewise.
38484         * tests/test-ftello.c: Likewise.
38485         * tests/test-getdate.c: Likewise.
38486         * tests/test-getgroups.c: Likewise.
38487         * tests/test-gethostname.c: Likewise.
38488         * tests/test-quotearg.c: Likewise.
38489         * tests/test-version-etc.c: Likewise.
38490         * tests/test-xalloc-die.c: Likewise.
38491         * tests/test-xfprintf-posix.c: Likewise.
38492         * tests/test-xprintf-posix.c: Likewise.
38493         * tests/test-xvasprintf.c: Likewise.
38494
38495         tests: avoid compiler warnings
38496         * tests/test-fcntl.c (main): Delete unused parameters.
38497         * tests/test-freopen-safer.c (main): Likewise.
38498         * tests/test-xalloc-die.c (main): Mark unused parameters.
38499         * tests/test-fseeko.c (main): Likewise.
38500         * tests/test-ftello.c (main): Likewise.
38501         * tests/test-nanosleep.c (main): Avoid declaration warning.
38502         * tests/test-sleep.c (main): Likewise.
38503         * tests/test-unsetenv.c (main): Silence warning about string
38504         literal.
38505         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38506
38507 2009-12-23  Bruno Haible  <bruno@clisp.org>
38508
38509         * tests/test-localename.c (test_locale_name): New function, extracted
38510         from main. Also test mixed situations.
38511         (test_locale_name_posix, test_locale_name_environ,
38512         test_locale_name_default): New functions.
38513         (main): Invoke them all.
38514         * modules/localename-tests (configure.ac): Test for newlocale.
38515
38516 2009-12-23  Bruno Haible  <bruno@clisp.org>
38517
38518         unistd: Ensure getcwd gets declared before being overridden.
38519         * lib/unistd.in.h: Conditionally include <io.h>.
38520
38521 2009-12-22  Bruno Haible  <bruno@clisp.org>
38522
38523         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38524         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38525         (gl_WCHAR_H): Invoke it.
38526         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38527         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38528         Reported by Karl Berry <karl@freefriends.org>.
38529
38530 2009-12-22  Eric Blake  <ebb9@byu.net>
38531
38532         math, unistd: avoid redundant includes
38533         * lib/math.in.h (isnan): No need to re-include <math.h>.
38534         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38535
38536         getsubopt: work around cygwin bug
38537         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38538         avoid conflicting with system getsubopt.
38539         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38540         bug.
38541
38542         getopt: synchronize from glibc
38543         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38544         parameter order.  Adjust all callers.
38545         (_getopt_internal_r, main): Adjust quoting in error messages.
38546         Drop considerations for outdated POSIX 1003.2 error message.
38547         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38548         callers.
38549         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38550
38551         test-getopt: test stderr behavior
38552         * modules/getopt-posix-tests (Depends-on): Add dup2.
38553         * tests/test-getopt.c (ASSERT): Avoid stderr.
38554         (main): Move stderr to a temporary file.
38555         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38556         Instead, add parameter to inform caller if output occurred.
38557         (test_getopt): Adjust all existing tests to expect silence, and
38558         add new tests of leading ":".
38559         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38560         glibc shortcomings with leading "-:" or "+:" in optstring.
38561         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38562         Likewise.
38563         * doc/posix-functions/getopt.texi (getopt): Likewise.
38564
38565         test-getopt: enhance test
38566         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38567         supports optind=0.
38568         * tests/test-getopt.c (OPTIND_MIN): Move...
38569         * tests/test-getopt.h (OPTIND_MIN): ...here.
38570         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38571         Require that optind=0 works, since modern BSD supports it in
38572         addition to optreset, and since coreutils expects it.
38573         (test_getopt_long_only): New test.
38574         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38575         glibc shortcomings with 'W;', and enforcement of optind=0.
38576         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38577         Likewise.
38578
38579 2009-12-21  Bruno Haible  <bruno@clisp.org>
38580
38581         localename: Improvements for MacOS X and Cygwin.
38582         * lib/localename.h (gl_locale_name_environ): New declaration.
38583         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38584         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38585         (gl_locale_name_posix): Invoke it.
38586         (gl_locale_name_default): Add comments. Use Windows native API also on
38587         Cygwin.
38588
38589 2009-12-21  Bruno Haible  <bruno@clisp.org>
38590
38591         Update list of Win32 locale ids.
38592         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38593         (LANG_SAMI): Renamed from LANG_SAAMI.
38594         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38595         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38596         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38597         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38598         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38599         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38600         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38601         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38602         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38603         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38604         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38605         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38606         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38607         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38608         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38609         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38610         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38611         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38612         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38613         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38614         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38615         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38616         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38617         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38618         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38619         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38620         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38621         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38622         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38623         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38624         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38625         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38626         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38627         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38628         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38629         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38630         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38631         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38632         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38633         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38634         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38635         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38636         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38637         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38638         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38639         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38640         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38641         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38642         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38643         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38644         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38645         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38646         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38647         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38648         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38649         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38650         Add more languages and countries for Sami, Sorbian. Add more countries
38651         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38652         for Pashto. Change country for Syriac, Tswana.
38653
38654 2009-12-21  Eric Blake  <ebb9@byu.net>
38655
38656         test-utimens: avoid spurious failure
38657         * tests/test-chown.h (nap): Factor...
38658         * tests/nap.h: ...into new file.
38659         * tests/test-lchown.h (nap): Avoid duplication.
38660         * tests/test-utimens-common.h (nap): Use shared implementation,
38661         necessary on file systems with 1-second resolution.
38662         * modules/chown-tests (Files): Include new file.
38663         * modules/fdutimensat-tests (Files): Likewise.
38664         * modules/futimens-tests (Files): Likewise.
38665         * modules/lchown-tests (Files): Likewise.
38666         * modules/openat-tests (Files): Likewise.
38667         * modules/utimens-tests (Files): Likewise.
38668         * modules/utimensat-tests (Files): Likewise.
38669
38670 2009-12-19  Eric Blake  <ebb9@byu.net>
38671
38672         futimens, utimensat: work around Linux bug
38673         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38674         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38675         * lib/utimensat.c (rpl_utimensat): Work around it.
38676         * lib/futimens.c (rpl_futimens): Adjust comment.
38677
38678         utimens: work around Linux ctime bug
38679         * lib/utimens.c (detect_ctime_bug): New helper function.
38680         (update_timespec): Differentiate between workaround needed for
38681         this bug vs. what is needed for systems that lack utimensat.
38682         (fdutimens, lutimens): Work around bug.
38683
38684         utimens: check for ctime update
38685         * tests/test-utimens-common.h (check_ctime): Define.
38686         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38687         * tests/test-futimens.h (test_futimens): Likewise.
38688         * tests/test-lutimens.h (test_lutimens): Likewise.
38689         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38690         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38691
38692 2009-12-19  Bruno Haible  <bruno@clisp.org>
38693
38694         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38695         * tests/test-dprintf-posix2.sh: New file.
38696         * tests/test-dprintf-posix2.c: New file.
38697         * modules/dprintf-posix-tests (Files): Add them.
38698         (configure.ac): Check for getrlimit and setrlimit.
38699         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38700
38701 2009-12-19  Bruno Haible  <bruno@clisp.org>
38702
38703         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38704         * tests/test-fprintf-posix3.sh: New file.
38705         * tests/test-fprintf-posix3.c: New file.
38706         * modules/fprintf-posix-tests (Files): Add them.
38707         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38708
38709 2009-12-19  Eric Blake  <ebb9@byu.net>
38710
38711         dirfd: fix prototype
38712         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38713         * lib/dirfd.c (dirfd): Likewise.
38714
38715         canonicalize: reduce memory usage
38716         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38717         allocation to size.
38718         Reported by Solar Designer <solar@openwall.com>.
38719
38720 2009-12-19  Bruno Haible  <bruno@clisp.org>
38721
38722         New module attribute 'Applicability'.
38723         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38724         * gnulib-tool: New option --extract-applicability.
38725         (func_usage): Document it.
38726         (sed_extract_prog): Recognize it.
38727         (func_get_applicability): New function.
38728         (func_import): Generalize handling of 'link-warning' module.
38729         * modules/link-warning (Applicability): New section.
38730         * modules/arg-nonnull (Applicability): New section.
38731         Repoted by Simon Josefsson <simon@josefsson.org>.
38732
38733 2009-12-19  Bruno Haible  <bruno@clisp.org>
38734
38735         fflush: tweak
38736         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38737         * lib/fseeko.c (rpl_fseeko): Likewise.
38738
38739 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38740
38741         * lib/gl_list.h: Fix typo in comment.
38742
38743 2009-12-16  Eric Blake  <ebb9@byu.net>
38744
38745         fcntl: use to simplify other modules
38746         * modules/cloexec (Depends-on): Add fcntl.
38747         * modules/fchdir (Depends-on): Likewise.
38748         * modules/fd-safer-flag (Depends-on): Likewise.
38749         * modules/unistd-safer (Depends-on): Likewise.
38750         * modules/dup3 (configure.ac): Set module indicator.
38751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38752         missing.
38753         * lib/fchdir.c (_gl_register_dup): Fix comment.
38754         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38755         * lib/dup-safer.c (dup_safer): Likewise.
38756         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38757         * lib/dup3.c (dup3): Likewise.
38758         * tests/test-fchdir.c (main): Enhance test.
38759         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38760
38761         fcntl: port portions of fcntl to mingw
38762         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38763         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38764         replacement for mingw.
38765         * modules/fcntl (Description): Update.
38766         (Depends-on): Add dup2.
38767         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38768         * modules/fcntl-h (Makefile.am): Substitute it.
38769         * lib/fcntl.in.h (fcntl): Update declaration.
38770         (F_DUPFD, F_GETFD): New macros, when needed.
38771         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38772         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38773         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38774         we now guarantee.
38775
38776         fcntl: work around cygwin bug in F_DUPFD
38777         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38778         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38779         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38780         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38781         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38782
38783         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38784         * modules/fcntl (Files): List new files.
38785         (configure.ac): Run a test.
38786         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38787         * lib/fcntl.c (rpl_fcntl): Likewise.
38788         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38789         (gl_FCNTL_H): Always replace fcntl.h.
38790         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38791         * lib/fcntl.in.h (fcntl): Declare replacement.
38792         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38793         needed, plus a witness.
38794         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38795         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38796         * tests/test-fcntl.c: New file.
38797         * modules/fcntl-tests: Likewise.
38798
38799         binary-io: avoid potential compilation warning
38800         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38801         directives.
38802
38803         fflush: avoid compilation error on NetBSD
38804         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38805         between off_t and fpos_t, since the latter is sometimes a struct.
38806         * lib/fseeko.c (rpl_fseeko): Likewise.
38807         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38808
38809 2009-12-15  Eric Blake  <ebb9@byu.net>
38810
38811         fcntl-h, stdio, sys_ioctl: fix declarations
38812         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38813         function must not take arguments.
38814         * lib/sys_ioctl.in.h (ioctl): Likewise.
38815         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38816         (open): Add a link warning.
38817
38818 2009-12-15  Jim Meyering  <meyering@redhat.com>
38819
38820         areadlink, areadlink-with-size: relax license to LGPLv2+
38821         * modules/areadlink (License): Relax to LGPLv2+.
38822         * modules/areadlink-with-size (License): Likewise.
38823
38824 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38825             Bruno Haible  <bruno@clisp.org>
38826
38827         *printf: Fix memory leak.
38828         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38829         * lib/vfprintf.c (vfprintf): Likewise.
38830         * lib/dprintf.c (dprintf): Likewise.
38831         * lib/vdprintf.c (vdprintf): Likewise.
38832
38833 2009-12-14  Eric Blake  <ebb9@byu.net>
38834
38835         accept4: adjust module dependencies
38836         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38837
38838         utimens: one more try at avoiding compiler warning
38839         * lib/utimens.c (lutimens): Lower scope of result.
38840
38841 2009-12-13  Bruno Haible  <bruno@clisp.org>
38842
38843         Move the malloc checking from module 'list' to new module 'xlist'.
38844         * modules/xlist: New file.
38845         * lib/gl_xlist.h: New file.
38846         * lib/gl_xlist.c: New file.
38847         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38848         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38849         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38850         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38851         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38852         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38853         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38854         gl_sortedlist_nx_add): New declarations.
38855         (struct gl_list_implementation): Rename and change methods accordingly.
38856         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38857         (gl_list_nx_create): Renamed from gl_list_create.
38858         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38859         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38860         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38861         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38862         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38863         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38864         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38865         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38866         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38867         gl_list_create_empty.
38868         (gl_list_nx_create): Renamed from gl_list_create.
38869         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38870         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38871         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38872         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38873         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38874         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38875         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38876         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38877         * lib/gl_array_list.c: Don't include xalloc.h.
38878         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38879         NULL upon out-of-memory.
38880         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38881         out-of-memory.
38882         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38883         Change return type to 'int'.
38884         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38885         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38886         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38887         upon out-of-memory.
38888         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38889         upon out-of-memory.
38890         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38891         upon out-of-memory.
38892         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38893         upon out-of-memory.
38894         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38895         out-of-memory.
38896         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38897         Update.
38898         (gl_array_list_implementation): Update.
38899         * lib/gl_carray_list.c: Don't include xalloc.h.
38900         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38901         Return NULL upon out-of-memory.
38902         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38903         out-of-memory.
38904         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38905         Change return type to 'int'.
38906         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38907         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38908         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38909         upon out-of-memory.
38910         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38911         upon out-of-memory.
38912         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38913         out-of-memory.
38914         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38915         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38916         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38917         Update.
38918         (gl_carray_list_implementation): Update.
38919         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38920         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38921         gl_linked_create_empty. Return NULL upon out-of-memory.
38922         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38923         out-of-memory.
38924         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38925         Change return type to 'int'. Return -1 upon out-of-memory.
38926         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38927         out-of-memory.
38928         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38929         upon out-of-memory.
38930         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38931         upon out-of-memory.
38932         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38933         NULL upon out-of-memory.
38934         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38935         upon out-of-memory.
38936         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38937         out-of-memory.
38938         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38939         Update.
38940         * lib/gl_linked_list.c: Don't include xalloc.h.
38941         (gl_linked_list_implementation): Update.
38942         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38943         (add_to_bucket): Change return type to 'int'.
38944         (gl_linkedhash_list_implementation): Update.
38945         * lib/gl_anytree_list1.h (free_subtree): New function.
38946         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38947         gl_tree_create_empty. Return NULL upon out-of-memory.
38948         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38949         Change return type to 'int'. Return -1 upon out-of-memory.
38950         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38951         out-of-memory.
38952         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38953         (gl_tree_remove_node): New function, moved here from
38954         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38955         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38956         Update.
38957         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38958         malloc, not xmalloc. Return NULL upon out-of-memory.
38959         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38960         out-of-memory.
38961         (gl_tree_remove_node_from_tree): New function, extracted from
38962         gl_tree_remove_node.
38963         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38964         upon out-of-memory.
38965         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38966         out-of-memory.
38967         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38968         upon out-of-memory.
38969         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38970         upon out-of-memory.
38971         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38972         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38973         not xmalloc. Return NULL upon out-of-memory.
38974         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38975         out-of-memory.
38976         (gl_tree_remove_node_from_tree): New function, extracted from
38977         gl_tree_remove_node.
38978         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38979         upon out-of-memory.
38980         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38981         out-of-memory.
38982         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38983         upon out-of-memory.
38984         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38985         upon out-of-memory.
38986         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38987         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38988         gl_anytree_list1.h before gl_anyavltree_list2.h.
38989         (gl_avltree_list_implementation): Update.
38990         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38991         gl_anytree_list1.h before gl_anyavltree_list2.h.
38992         (gl_rbtree_list_implementation): Update.
38993         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38994         Change return type to 'int'. Return -1 upon out-of-memory. Use
38995         __builtin_expect.
38996         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38997         (gl_avltreehash_list_implementation): Update.
38998         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38999         (gl_rbtreehash_list_implementation): Update.
39000         * modules/array-list (Depends-on): Remove xalloc.
39001         * modules/carray-list (Depends-on): Likewise.
39002         * modules/linked-list (Depends-on): Likewise.
39003         * modules/linkedhash-list (Depends-on): Likewise.
39004         * modules/avltree-list (Depends-on): Likewise.
39005         * modules/rbtree-list (Depends-on): Likewise.
39006         * modules/avltreehash-list (Depends-on): Likewise.
39007         * modules/rbtreehash-list (Depends-on): Likewise.
39008
39009         * modules/xsublist: New file.
39010         * lib/gl_xsublist.h: New file.
39011         * lib/gl_xsublist.c: New file.
39012         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39013         (gl_sublist_nx_create): New declaration.
39014         * lib/gl_sublist.c: Don't include xalloc.h.
39015         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39016         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39017         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39018         Change return type to 'int'. Return -1 upon out-of-memory.
39019         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39020         upon out-of-memory.
39021         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39022         NULL upon out-of-memory.
39023         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39024         upon out-of-memory.
39025         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39026         NULL upon out-of-memory.
39027         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39028         NULL upon out-of-memory.
39029         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39030         upon out-of-memory.
39031         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39032         (gl_sublist_list_implementation): Update.
39033         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39034         upon out-of-memory.
39035         * modules/sublist (Depends-on): Remove xalloc.
39036
39037         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39038         * tests/test-carray_list.c: Likewise.
39039         * tests/test-linked_list.c: Likewise.
39040         * tests/test-linkedhash_list.c: Likewise.
39041         * tests/test-avltree_list.c: Likewise.
39042         * tests/test-rbtree_list.c: Likewise.
39043         * tests/test-avltreehash_list.c: Likewise.
39044         * tests/test-rbtreehash_list.c: Likewise.
39045         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39046         * modules/carray-list-tests (Makefile.am): Likewise.
39047         * modules/linked-list-tests (Makefile.am): Likewise.
39048         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39049         * modules/avltree-list-tests (Makefile.am): Likewise.
39050         * modules/rbtree-list-tests (Makefile.am): Likewise.
39051         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39052         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39053
39054         * NEWS: Mention the changes.
39055
39056         * lib/clean-temp.c: Include gl_xlist.h.
39057         * modules/clean-temp (Depends-on): Add xlist.
39058
39059         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39060         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39061
39062         * tests/test-array_oset.c: Include gl_xlist.h.
39063         * modules/array-oset-tests (Depends-on): Add xlist.
39064
39065         Reported by José E. Marchesi <jemarch@gnu.org>.
39066
39067 2009-12-13  Bruno Haible  <bruno@clisp.org>
39068
39069         Move the malloc checking from module 'oset' to new module 'xoset'.
39070         * modules/xoset: New file.
39071         * lib/gl_xoset.h: New file.
39072         * lib/gl_xoset.c: New file.
39073         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39074         declarations.
39075         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39076         (struct gl_oset_implementation): Rename and change methods accordingly.
39077         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39078         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39079         'int'. Mark as __warn_unused_result__.
39080         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39081         gl_oset_create_empty.
39082         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39083         'int'.
39084         * lib/gl_array_oset.c: Don't include xalloc.h.
39085         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39086         malloc, not xmalloc.
39087         (grow): Change return type to 'int'. Don't call xalloc_die.
39088         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39089         to 'int'.
39090         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39091         'int'.
39092         (gl_array_oset_implementation): Update.
39093         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39094         gl_tree_create_empty.
39095         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39096         'int'.
39097         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39098         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39099         xmalloc.
39100         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39101         not xmalloc.
39102         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39103         xmalloc.
39104         (gl_avltree_oset_implementation): Update.
39105         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39106         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39107         xmalloc.
39108         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39109         not xmalloc.
39110         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39111         xmalloc.
39112         (gl_rbtree_oset_implementation): Update.
39113         * modules/array-oset (Depends-on): Remove xalloc.
39114         * modules/avltree-oset (Depends-on): Likewise.
39115         * modules/rbtree-oset (Depends-on): Likewise.
39116         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39117         * tests/test-avltree_oset.c: Likewise.
39118         * tests/test-rbtree_oset.c: Likewise.
39119         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39120         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39121         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39122         * NEWS: Mention the change.
39123
39124 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39125
39126         maint.mk: allow a project to override release-prep commands
39127         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39128         commands into a new rule.
39129         (release-prep): New rule.
39130         (release-prep-hook): New overridable variable.
39131
39132 2009-12-13  Bruno Haible  <bruno@clisp.org>
39133
39134         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39135
39136 2009-12-13  Jim Meyering  <meyering@redhat.com>
39137
39138         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39139         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39140
39141 2009-12-12  Bruno Haible  <bruno@clisp.org>
39142
39143         duplocale: Tweak.
39144         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39145
39146 2009-12-12  Karl Berry  <karl@gnu.org>
39147
39148         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39149
39150 2009-12-12  Bruno Haible  <bruno@clisp.org>
39151
39152         * m4/po.m4: Undo incorrect untabification.
39153
39154 2009-12-12  Bruno Haible  <bruno@clisp.org>
39155
39156         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39157         * modules/c-strtod (Depends-on): Add locale.
39158         * modules/c-strtold (Depends-on): Likewise.
39159
39160 2009-12-12  Bruno Haible  <bruno@clisp.org>
39161
39162         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39163
39164 2009-12-11  Eric Blake  <ebb9@byu.net>
39165
39166         setenv: relax requirement in light of POSIX ruling
39167         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39168         not NULL.
39169         * tests/test-setenv.c (main): Relax test.
39170         * tests/test-unsetenv.c (main): Likewise.
39171         * doc/posix-functions/setenv.texi (setenv): Document this.
39172         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39173
39174 2009-12-11  Bruno Haible  <bruno@clisp.org>
39175
39176         New module 'fd-safer-flag'.
39177         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39178         * lib/dup-safer.c (dup_safer_flag): Remove function.
39179         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39180         * lib/fd-safer.c (fd_safer_flag): Remove function.
39181         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39182         * modules/cloexec (configure.ac): Drop indicator macro.
39183         * modules/fd-safer-flag: New file.
39184         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39185         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39186         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39187
39188 2009-12-11  Bruno Haible  <bruno@clisp.org>
39189
39190         Tests for module 'nl_langinfo'.
39191         * modules/nl_langinfo-tests: New file.
39192         * tests/test-nl_langinfo.sh: New file.
39193         * tests/test-nl_langinfo.c: New file.
39194
39195         New module 'nl_langinfo'.
39196         * lib/nl_langinfo.c: New file.
39197         * m4/nl_langinfo.m4: New file.
39198         * modules/nl_langinfo: New file.
39199         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39200
39201 2009-12-11  Bruno Haible  <bruno@clisp.org>
39202
39203         Tests for module 'langinfo'.
39204         * modules/langinfo-tests: New file.
39205         * tests/test-langinfo.c: New file.
39206
39207         New module 'langinfo'.
39208         * lib/langinfo.in.h: New file.
39209         * m4/langinfo_h.m4: New file.
39210         * modules/langinfo: New file.
39211         * doc/posix-headers/langinfo.texi: Mention the new module.
39212
39213 2009-12-11  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/config.charset: Untabify.
39216
39217 2009-12-11  Bruno Haible  <bruno@clisp.org>
39218
39219         * modules/unistd-safer (configure.ac): Drop indicator macro.
39220
39221 2009-12-11  Bruno Haible  <bruno@clisp.org>
39222
39223         Move pipe2-safer code to its own file.
39224         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39225         * lib/pipe-safer.c (pipe2_safer): Remove function.
39226         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39227         (Makefile.am): Add it to lib_SOURCES.
39228
39229 2009-12-10  Bruno Haible  <bruno@clisp.org>
39230
39231         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39232
39233 2009-12-10  Bruno Haible  <bruno@clisp.org>
39234
39235         Declare which arguments expect non-NULL values, for GCC and clang.
39236         * build-aux/arg-nonnull.h: New file.
39237         * modules/arg-nonnull: New file.
39238         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39239         (inet_ntop, inet_pton): Use it.
39240         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39241         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39242         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39243         (open, openat): Use it.
39244         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39245         (fnmatch): Use it.
39246         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39247         (getopt, getopt_long, getopt_long_only): Use it.
39248         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39249         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39250         Use it.
39251         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39252         (iconv_open): Use it.
39253         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39254         (strtoimax, strtoumax): Use it.
39255         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39256         (duplocale): Use it.
39257         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39258         (frexp, frexpl): Use it.
39259         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39260         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39261         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39262         (tsearch, tfind, tdelete, twalk): Use it.
39263         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39264         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39265         sigpending): Use it.
39266         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39267         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39268         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39269         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39270         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39271         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39272         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39273         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39274         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39275         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39276         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39277         Use it.
39278         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39279         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39280         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39281         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39282         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39283         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39284         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39285         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39286         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39287         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39288         strtoull, unsetenv): Use it.
39289         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39290         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39291         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39292         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39293         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39294         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39295         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39296         (strcasecmp, strncasecmp): Use it.
39297         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39298         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39299         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39300         rpl_setsockopt): Use it.
39301         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39302         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39303         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39304         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39305         (gettimeofday): Use it.
39306         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39307         (times): Use it.
39308         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39309         (uname): Use it.
39310         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39311         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39312         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39313         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39314         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39315         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39316         unlinkat, write): Use it.
39317         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39318         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39319         * lib/argv-iter.h: Include arg-nonnull.h.
39320         (_ATTRIBUTE_NONNULL_): Remove macro.
39321         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39322         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39323         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39324         optimization.
39325         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39326         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39327         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39328         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39329         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39330         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39331         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39332         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39333         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39334         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39335         * modules/dirent (Depends-on): Add arg-nonnull.
39336         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39337         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39338         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39339         * modules/fnmatch (Depends-on): Add arg-nonnull.
39340         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39341         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39342         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39343         * modules/glob (Depends-on): Add arg-nonnull.
39344         (Makefile.am): Insert arg-nonnull.h into glob.h.
39345         * modules/iconv_open (Depends-on): Add arg-nonnull.
39346         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39347         * modules/inttypes (Depends-on): Add arg-nonnull.
39348         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39349         * modules/locale (Depends-on): Add arg-nonnull.
39350         (Makefile.am): Insert arg-nonnull.h into locale.h.
39351         * modules/math (Depends-on): Add arg-nonnull.
39352         (Makefile.am): Insert arg-nonnull.h into math.h.
39353         * modules/netdb (Depends-on): Add arg-nonnull.
39354         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39355         * modules/search (Depends-on): Add arg-nonnull.
39356         (Makefile.am): Insert arg-nonnull.h into search.h.
39357         * modules/signal (Depends-on): Add arg-nonnull.
39358         (Makefile.am): Insert arg-nonnull.h into signal.h.
39359         * modules/spawn (Depends-on): Add arg-nonnull.
39360         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39361         * modules/stdio (Depends-on): Add arg-nonnull.
39362         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39363         * modules/stdlib (Depends-on): Add arg-nonnull.
39364         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39365         * modules/string (Depends-on): Add arg-nonnull.
39366         (Makefile.am): Insert arg-nonnull.h into string.h.
39367         * modules/strings (Depends-on): Add arg-nonnull.
39368         (Makefile.am): Insert arg-nonnull.h into strings.h.
39369         * modules/sys_socket (Depends-on): Add arg-nonnull.
39370         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39371         * modules/sys_stat (Depends-on): Add arg-nonnull.
39372         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39373         * modules/sys_time (Depends-on): Add arg-nonnull.
39374         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39375         * modules/sys_times (Depends-on): Add arg-nonnull.
39376         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39377         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39378         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39379         * modules/time (Depends-on): Add arg-nonnull.
39380         (Makefile.am): Insert arg-nonnull.h into time.h.
39381         * modules/unistd (Depends-on): Add arg-nonnull.
39382         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39383         * modules/wchar (Depends-on): Add arg-nonnull.
39384         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39385         * modules/argv-iter (Depends-on): Add arg-nonnull.
39386         * tests/test-canonicalize.c (null_ptr): New function.
39387         (main): Use it.
39388         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39389         (main): Use it.
39390         * tests/test-memmem.c (null_ptr): New function.
39391         (main): Use it.
39392         Reported by Jim Meyering.
39393
39394 2009-12-10  Bruno Haible  <bruno@clisp.org>
39395
39396         Use spaces for indentation, not tabs.
39397         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39398         * m4/*.m4: Untabify.
39399         * build-aux/*.h: Untabify.
39400         * tests/**/*.[hc]: Untabify.
39401         * README: New section "Indent with spaces, not TABs", based on
39402         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39403         * NEWS: Mention the change.
39404
39405 2009-12-10  Bruno Haible  <bruno@clisp.org>
39406
39407         pty test: Fix link error.
39408         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39409         test_pty_LDADD.
39410
39411 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39412
39413         * modules/pty: New file.
39414         * modules/pty-tests: New file.
39415         * m4/pty.m4: New file.
39416         * tests/test-pty.c: New file.
39417         * doc/glibc-headers/pty.texi: Modified.
39418         * doc/glibc-functions/forkpty.texi: Modified.
39419         * doc/glibc-functions/openpty.texi: Modified.
39420
39421 2009-12-10  Bruno Haible  <bruno@clisp.org>
39422
39423         Avoid syntax error in C++ mode.
39424         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39425
39426 2009-12-10  Bruno Haible  <bruno@clisp.org>
39427
39428         Use sed with option -e.
39429         * gnulib-tool (func_version, func_emit_copyright_notice,
39430         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39431         option -e to sed.
39432         * modules/link-warning (Makefile.am): Likewise.
39433
39434 2009-12-10  Jim Meyering  <meyering@redhat.com>
39435
39436         mgetgroups: do not write bytes beyond end of malloc'd buffer
39437         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39438         username, we call getgroups with a one-element-shorter buffer,
39439         but still told it the length was original, max_n_groups.
39440
39441 2009-12-09  Eric Blake  <ebb9@byu.net>
39442
39443         cloexec: relax license
39444         * modules/cloexec (Maintainer): Add myself.
39445         (License): Use LGPL, not GPL.
39446
39447         link-warning: optimize generation
39448         * modules/link-warning (Makefile.am): Reduce process usage.
39449
39450 2009-12-09  Bruno Haible  <bruno@clisp.org>
39451
39452         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39453         workaround was added on 2009-11-17.
39454
39455 2009-12-09  Jim Meyering  <meyering@redhat.com>
39456             Bruno Haible  <bruno@clisp.org>
39457
39458         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39459         * modules/link-warning (Makefile.am): Make the comment-removing sed
39460         command more robust in the face of bootstrap-prepended comment lines.
39461
39462 2009-12-09  Bruno Haible  <bruno@clisp.org>
39463
39464         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39465         most one group.
39466
39467 2009-12-09  Simon Josefsson <simon@josefsson.org>
39468             Bruno Haible  <bruno@clisp.org>
39469
39470         * build-aux/link-warning.h: Add copyright notice.
39471         * modules/link-warning (Makefile.am): Generate link-warning.h from
39472         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39473         * NEWS: Mention change in link-warning module.
39474         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39475         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39476         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39477         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39478         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39479         * modules/math (Makefile.am): Add dependency to math.h.
39480         * modules/search (Makefile.am): Add dependency to search.h.
39481         * modules/signal (Makefile.am): Add dependency to signal.h.
39482         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39483         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39484         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39485         * modules/string (Makefile.am): Add dependency to string.h.
39486         * modules/strings (Makefile.am): Add dependency to strings.h.
39487         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39488         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39489         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39490         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39491         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39492         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39493         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39494         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39495         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39496
39497 2009-12-09  Bruno Haible  <bruno@clisp.org>
39498
39499         fchdir: Optimize away rpl_fstat when possible.
39500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39501         REPLACE_OPEN_DIRECTORY.
39502         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39503
39504 2009-12-09  Bruno Haible  <bruno@clisp.org>
39505
39506         * lib/fchdir.c: Update comment.
39507
39508 2009-12-09  Bruno Haible  <bruno@clisp.org>
39509
39510         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39511
39512 2009-12-08  Eric Blake  <ebb9@byu.net>
39513
39514         fchdir: avoid memory leak on re-registration.
39515         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39516
39517 2009-12-08  Jim Meyering  <meyering@redhat.com>
39518
39519         init.sh: avoid Solaris 10 /bin/sh portability problem
39520         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39521         sourced script:
39522           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39523           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39524           bar
39525         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39526         and two tests used that idiom.
39527         * tests/init.sh: Update suggested usage comments.
39528         (path_prepend_): New function, to be used in place
39529         of the --src-path=DIR option.
39530         (setup_): Move PATH-prepending code into path_prepend_.
39531         * tests/test-pread.sh: Adapt to new usage.
39532         * tests/test-xalloc-die.sh: Likewise.
39533
39534 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39535
39536         * doc/gnulib.texi (Glibc pty.h): Add.
39537         * doc/glibc-functions/forkpty.texi: Add.
39538         * doc/glibc-functions/openpty.texi: Add.
39539         Suggested by Bruno Haible.
39540
39541 2009-12-08  Eric Blake  <ebb9@byu.net>
39542
39543         fchdir: fix logic bugs
39544         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39545         * tests/test-fchdir.c (main): Enhance test.
39546         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39547         is in use.
39548
39549         dup2: fix logic bugs
39550         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39551         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39552         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39553         exists.
39554         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39555
39556 2009-12-07  Eric Blake  <ebb9@byu.net>
39557
39558         unlink: fix m4 detection
39559         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39560
39561         unistd-safer: add unit test
39562         * modules/unistd-safer-tests: New file.
39563         * tests/test-dup-safer.c: Likewise.
39564         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39565         * tests/test-dup2.c (setmode): Likewise.
39566         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39567
39568         cloexec: preserve text vs. binary across dup_cloexec
39569         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39570         mode.
39571         * modules/dup2-tests (Depends-on): Add binary-io.
39572         * modules/cloexec-tests (Depends-on): Likewise.
39573         * tests/test-dup2.c (setmode, is_mode): New helpers.
39574         (main): Add tests that translation mode is preserved.
39575         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39576         Reported by Bruno Haible.
39577
39578         mgetgroups: reduce duplicate listings
39579         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39580         resulting array.
39581         * tests/test-chown.h (test_chown): Simplify client.
39582         * tests/test-lchown.h (test_lchown): Likewise.
39583
39584 2009-12-06  Bruno Haible  <bruno@clisp.org>
39585
39586         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39587         value.
39588
39589 2009-12-06  Bruno Haible  <bruno@clisp.org>
39590
39591         * lib/progname.c: Include stdio.h, stdlib.h.
39592         (set_program_name): Reject a NULL argument.
39593
39594 2009-12-05  Eric Blake  <ebb9@byu.net>
39595
39596         pipe2-safer: new module
39597         * modules/pipe2-safer: New file.
39598         * lib/unistd-safer.h (pipe2_safer): New prototype.
39599         * lib/unistd--.h (pipe2): New wrapper.
39600         * lib/pipe-safer.c (pipe2_safer): New function.
39601         * modules/pipe (Depends-on): Add pipe2-safer.
39602         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39603
39604         stdlib-safer: preserve cloexec flag for mkostemp[s]
39605         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39606         fd_safer_flag.
39607
39608         unistd-safer: allow preservation of cloexec status via flag
39609         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39610         prototypes.
39611         * lib/dup-safer.c (dup_safer_flag): New function.
39612         * lib/fd-safer.c (fd_safer_flag): Likewise.
39613         * modules/cloexec (configure.ac): Set witness.
39614
39615         test-dup2: enhance test
39616         * modules/dup2-tests (Depends-on): Add cloexec.
39617         * tests/test-dup2.c (main): Enhance test.
39618
39619         cloexec: add dup_cloexec
39620         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39621         header and comments.
39622         * lib/cloexec.c (set_cloexec_flag): Add comments.
39623         (dup_cloexec): New function, with mingw implementation borrowed
39624         from...
39625         * lib/w32spawn.h (dup_noinherit): ...here.
39626         * modules/execute (Depends-on): Add cloexec.
39627         * modules/pipe (Depends-on): Likewise.
39628         * modules/cloexec (Depends-on): Add dup2.
39629         * modules/cloexec-tests (Files): New file.
39630         * tests/test-cloexec.c: Likewise.
39631
39632         test-xalloc-die: fix test for mingw
39633         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39634         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39635         directory and .exe suffix off argv[0] output.
39636
39637         test-fseeko: fix test for mingw
39638         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39639         than undefining fseek, so test will pass on mingw.
39640
39641 2009-12-05  Bruno Haible  <bruno@clisp.org>
39642
39643         * lib/progname.h (set_program_name): Clarify specification.
39644         * lib/progname.c (set_program_name): Likewise.
39645         Reported by Jim Meyering.
39646
39647 2009-12-05  Jim Meyering  <meyering@redhat.com>
39648
39649         maint.mk: backslash-escape parens in default regexp
39650         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39651         backslash-escape the literal parentheses.
39652
39653         maint.mk: news-date-check: use grep -E
39654         * top/maint.mk (today): Define a Make variable, not a...
39655         (news-date-check): ...shell variable.
39656         (news-date-regexp): Use the Make variable.
39657         Use grep's -E option.  Change the failing diagnostic to mention
39658         the variable, $(news-date-regexp).
39659
39660 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39661
39662         maintainer-makefile: allow customization of NEWS entry format
39663         * top/maint.mk (news-date-regexp): New overridable variable.
39664         (news-date-check): Use it.
39665
39666 2009-12-04  Eric Blake  <ebb9@byu.net>
39667
39668         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39669         * lib/mgetgroups.h (xgetgroups): New prototype.
39670         * lib/mgetgroups.c (xgetgroups): New wrapper.
39671         (mgetgroups): Handle ENOSYS.
39672         * modules/mgetgroups (Depends-on): Add realloc.
39673         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39674
39675         mgetgroups: avoid argument promotion issues with -1
39676         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39677         for invalid gid_t.
39678         * tests/test-chown.h (getegid, test_chown): Likewise.
39679         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39680
39681 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39682
39683         exclude: Fix header file problems.
39684         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39685
39686 2009-12-01  Jim Meyering  <meyering@redhat.com>
39687
39688         fts: fts_open: do not let an empty string cause immediate failure
39689         This is required in support of GNU rm, for which the command
39690         "rm A '' B" must process and remove both A and B, in spite of
39691         the empty string argument.
39692         * lib/fts.c (fts_open): Do not let the presence of an empty string
39693         cause fts_open to fail immediately.  Most fts-using tools must be
39694         able to process all arguments, in order, and can be expected to
39695         diagnose such arguments themselves.
39696
39697 2009-11-30  Eric Blake  <ebb9@byu.net>
39698
39699         utimens: fix compilation error
39700         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39701         Declare variable at right scope.
39702
39703 2009-11-29  Jim Meyering  <meyering@redhat.com>
39704
39705         bootstrap: handle perl-5.11's changed --version output
39706         * build-aux/bootstrap (get_version): Handle perl separately,
39707         since perl-5.11's --version output is different.
39708
39709 2009-11-28  Jim Meyering  <meyering@redhat.com>
39710
39711         userspec: depend on the inttostr module, too
39712         * modules/userspec (Depends-on): Add inttostr.
39713
39714         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39715         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39716         number of MAXUID when it evaluates to (uid_t) -1.
39717         Likewise for group ID.  Reported by Matt McCutchen in
39718         <http://savannah.gnu.org/bugs/?28113>
39719
39720         userspec: reformat to use spaces, not TABs
39721         * lib/userspec.c: Expand TABs to spaces.
39722         Add Emacs' "indent-tabs-mode: nil" hint.
39723
39724 2009-11-27  Eric Blake  <ebb9@byu.net>
39725
39726         getopt-gnu: flush out another BSD bug
39727         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39728         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39729         flush out BSD bug.
39730         * tests/test-getopt.h (test_getopt): End lists with NULL.
39731         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39732         (test_getopt_long_posix): Enhance test.
39733         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39734         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39735         getopt-gnu.
39736         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39737         Likewise.
39738
39739 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39740
39741         * modules/idpriv-droptemp-tests (Notice): Fix text.
39742
39743 2009-11-27  Jim Meyering  <meyering@redhat.com>
39744
39745         test-xalloc-die: avoid spurious failure due to libtool argv difference
39746         In a libtool-enabled project, this test would fail due to a difference
39747         in the emitted program name, e.g.,
39748         -test-xalloc-die: memory exhausted
39749         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39750         Use program to avoid that.
39751         * modules/xalloc-die-tests (Depends-on): Add progname.
39752         * tests/test-xalloc-die.c: Include progname.h".
39753         (program_name): Remove decl.
39754         (main): Call set_program_name.
39755         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39756
39757 2009-11-26  Richard Jones  <rjones@redhat.com>
39758
39759         w32sock: leave win32 error in place.
39760         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39761
39762 2009-11-26  Eric Blake  <ebb9@byu.net>
39763
39764         init.sh: suggest to use skip_ and fail_ functions in comments
39765         * tests/init.sh: Add a sentence.
39766
39767 2009-11-25  Bruno Haible  <bruno@clisp.org>
39768
39769         init.sh: add documentation in comments
39770         * tests/init.sh: Add some developer and user documentation.
39771
39772 2009-11-26  Jim Meyering  <meyering@redhat.com>
39773
39774         init.sh: accommodate even those who specify bogus srcdir manually
39775         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39776         configure-time tests to be sanitized, so that there is no need to
39777         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39778         (with no double quotes) suffices.  However, since tests may be
39779         invoked manually, and since you may explicitly set srcdir to the
39780         name of a directory containing spaces, do quote its uses here.
39781         * tests/test-pread.sh: Likewise.
39782         Suggested by Bruno Haible.
39783
39784         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39785         * tests/test-pread.sh: Write no data into the pipe, because
39786         test-pread actually reads none.  This avoids a diagnostic,
39787         "bash: echo: write error: Broken pipe", that arises in the unusual
39788         event something is ignoring SIGPIPE, and might be interpreted
39789         as some sort of failure.  Reported by Bruno Haible.
39790
39791 2009-11-25  Jim Meyering  <meyering@redhat.com>
39792
39793         test-pread: cover failure with ESPIPE and EINVAL
39794         * tests/test-pread.c (main): Test for failure, too.
39795         * tests/test-pread.sh: Invoke with stdin on a pipe.
39796         Suggested by Eric Blake.
39797
39798         pread: improvement and fix
39799         * modules/pread (Depends-on): Depend on lseek, for portability to
39800         e.g., mingw.  Suggested by Eric Blake.
39801         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39802
39803         unistd.in.h: correct declaration of pread
39804         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39805         Reported by Richard W.M. Jones.
39806
39807         test-pread.sh: distribute the test script
39808         * modules/pread-tests (Files): Include test-pread.sh.
39809
39810         test-pread.sh: clean up
39811         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39812         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39813         That is unnecessary, since it's always ".".
39814         Suggestion from Eric Blake.
39815
39816         test-pread.sh: make executable
39817         * tests/test-pread.sh: Set executable bit.
39818         Reported by Eric Blake.
39819
39820         correct typo in test-pread.sh
39821         * tests/test-pread.sh: Add #! line.
39822
39823         test pread
39824         * tests/test-pread.c: New file.
39825         * tests/test-pread.sh: Likewise.
39826         * modules/pread-tests: Likewise.
39827
39828         pread: new module
39829         * modules/pread: New file.
39830         * lib/unistd.in.h (pread): Define/declare.
39831         * lib/pread.c (pread): New file.
39832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39833         * modules/unistd (Makefile.am): Substitute witnesses.
39834         * doc/posix-functions/pread.texi (pread): Update.
39835         * MODULES.html.sh: Add pread.
39836
39837 2009-11-25  Jim Meyering  <meyering@redhat.com>
39838
39839         tests/init.sh: new file to be used via most *.sh tests
39840         * tests/init.sh: New file.
39841
39842 2009-11-25  Eric Blake  <ebb9@byu.net>
39843
39844         utimens: work around older Linux failure with symlinks
39845         * lib/utimens.c (lutimensat_works_really): New variable.
39846         (fdutimens, lutimens): Use it to manage kernels that support
39847         nanosecond times on files, but not on symlinks.
39848         Reported by OndÅ™ej Vašík.
39849
39850         utimes: fix configure grammar
39851         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39852
39853 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39854
39855         regex: Fix fastmap for multibyte character ranges.
39856         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39857         characters when a multibyte character range is included.
39858
39859 2009-11-22  Andy Wingo  <wingo@pobox.com>
39860
39861         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39862         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39863
39864 2009-11-24  Bruno Haible  <bruno@clisp.org>
39865
39866         doc: Most *_l functions exist in MacOS X 10.5.
39867         * doc/posix-functions/duplocale.texi: Update platforms list.
39868         * doc/posix-functions/freelocale.texi: Likewise.
39869         * doc/posix-functions/newlocale.texi: Likewise.
39870         * doc/posix-functions/uselocale.texi: Likewise.
39871         * doc/posix-functions/isalnum_l.texi: Likewise.
39872         * doc/posix-functions/isalpha_l.texi: Likewise.
39873         * doc/posix-functions/isblank_l.texi: Likewise.
39874         * doc/posix-functions/iscntrl_l.texi: Likewise.
39875         * doc/posix-functions/isdigit_l.texi: Likewise.
39876         * doc/posix-functions/isgraph_l.texi: Likewise.
39877         * doc/posix-functions/islower_l.texi: Likewise.
39878         * doc/posix-functions/isprint_l.texi: Likewise.
39879         * doc/posix-functions/ispunct_l.texi: Likewise.
39880         * doc/posix-functions/isspace_l.texi: Likewise.
39881         * doc/posix-functions/isupper_l.texi: Likewise.
39882         * doc/posix-functions/iswalnum_l.texi: Likewise.
39883         * doc/posix-functions/iswalpha_l.texi: Likewise.
39884         * doc/posix-functions/iswblank_l.texi: Likewise.
39885         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39886         * doc/posix-functions/iswctype_l.texi: Likewise.
39887         * doc/posix-functions/iswdigit_l.texi: Likewise.
39888         * doc/posix-functions/iswgraph_l.texi: Likewise.
39889         * doc/posix-functions/iswlower_l.texi: Likewise.
39890         * doc/posix-functions/iswprint_l.texi: Likewise.
39891         * doc/posix-functions/iswpunct_l.texi: Likewise.
39892         * doc/posix-functions/iswspace_l.texi: Likewise.
39893         * doc/posix-functions/iswupper_l.texi: Likewise.
39894         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39895         * doc/posix-functions/isxdigit_l.texi: Likewise.
39896         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39897         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39898         * doc/posix-functions/strcoll_l.texi: Likewise.
39899         * doc/posix-functions/strfmon_l.texi: Likewise.
39900         * doc/posix-functions/strftime_l.texi: Likewise.
39901         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39902         * doc/posix-functions/strxfrm_l.texi: Likewise.
39903         * doc/posix-functions/tolower_l.texi: Likewise.
39904         * doc/posix-functions/toupper_l.texi: Likewise.
39905         * doc/posix-functions/towctrans_l.texi: Likewise.
39906         * doc/posix-functions/towlower_l.texi: Likewise.
39907         * doc/posix-functions/towupper_l.texi: Likewise.
39908         * doc/posix-functions/wcscoll_l.texi: Likewise.
39909         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39910         * doc/posix-functions/wctrans_l.texi: Likewise.
39911         * doc/posix-functions/wctype_l.texi: Likewise.
39912         * doc/glibc-functions/strptime_l.texi: Likewise.
39913         * doc/glibc-functions/strtod_l.texi: Likewise.
39914         * doc/glibc-functions/strtof_l.texi: Likewise.
39915         * doc/glibc-functions/strtol_l.texi: Likewise.
39916         * doc/glibc-functions/strtold_l.texi: Likewise.
39917         * doc/glibc-functions/strtoll_l.texi: Likewise.
39918         * doc/glibc-functions/strtoul_l.texi: Likewise.
39919         * doc/glibc-functions/strtoull_l.texi: Likewise.
39920         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39921         * doc/glibc-functions/wcstod_l.texi: Likewise.
39922         * doc/glibc-functions/wcstof_l.texi: Likewise.
39923         * doc/glibc-functions/wcstol_l.texi: Likewise.
39924         * doc/glibc-functions/wcstold_l.texi: Likewise.
39925         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39926         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39927         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39928
39929 2009-11-24  Bruno Haible  <bruno@clisp.org>
39930
39931         duplocale: Fix logic bug.
39932         * lib/duplocale.c: Don't include <langinfo.h>.
39933         (_NL_LOCALE_NAME): Remove macro.
39934         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39935         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39936
39937 2009-11-23  Jim Meyering  <meyering@redhat.com>
39938
39939         test-update-copyright: don't hard-code /usr/bin/perl
39940         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39941         perl to print the current year.  Gilles Espinasse reported that
39942         the replaced use of perl was hard-coded as /usr/bin/perl.
39943
39944 2009-11-23  Bruno Haible  <bruno@clisp.org>
39945
39946         duplocale: Add support for glibc 2.3.x.
39947         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39948
39949 2009-11-22  Bruno Haible  <bruno@clisp.org>
39950
39951         vasnprintf: Tiny optimization.
39952         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39953         MacOS X.
39954
39955 2009-11-22  Bruno Haible  <bruno@clisp.org>
39956
39957         Tests for module 'duplocale'.
39958         * modules/duplocale-tests: New file.
39959         * tests/test-duplocale.c: New file.
39960
39961         New module 'duplocale'.
39962         * m4/duplocale.m4: New file.
39963         * lib/locale.in.h (duplocale): New declaration.
39964         * lib/duplocale.c: New file.
39965         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39966         gl_LOCALE_H_DEFAULTS): New macros.
39967         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39968         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39969         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39970         REPLACE_DUPLOCALE.
39971         * modules/duplocale: New file.
39972         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39973
39974 2009-11-22  Bruno Haible  <bruno@clisp.org>
39975
39976         * modules/locale-tests (configure.ac): Test for newlocale function.
39977         * tests/test-locale.c: When the system has extended locale functions,
39978         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39979
39980         locale: Make locale_t available when possible.
39981         * lib/locale.in.h: Include <xlocale.h> when it exists.
39982         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39983         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39984         * modules/locale (Depends-on): Add extensions.
39985         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39986         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39987
39988 2009-11-22  Bruno Haible  <bruno@clisp.org>
39989
39990         Add comments.
39991         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39992         invocation.
39993         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39994         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39995         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39996
39997 2009-11-22  Bruno Haible  <bruno@clisp.org>
39998
39999         error: account for the possibility of freopen (stdout).
40000         * lib/error.c: Include <unistd.h>.
40001         (flush_stdout): New function, extracted from error and error_at_line.
40002         Determine stdout's fd dynamically.
40003         (error, error_at_line): Invoke flush_stdout.
40004         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40005         * modules/error (Depends-on): Add unistd.
40006
40007 2009-11-22  Bruno Haible  <bruno@clisp.org>
40008
40009         diffseq: Add comment.
40010         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40011
40012 2009-11-22  Jim Meyering  <meyering@redhat.com>
40013
40014         c-stack: avoid defining an unused static function
40015         * lib/c-stack.c (find_stack_direction): Do not define this function
40016         when it will not be used.
40017
40018         diffseq: avoid spurious gcc warnings
40019         * lib/diffseq.h (IF_LINT2): Define.
40020         (compareseq): Use it to initialize two members of "part".
40021         This avoids two used-uninitialized warnings.
40022
40023 2009-11-21  Jim Meyering  <meyering@redhat.com>
40024
40025         c-stack: avoid "ignoring return value of `write'" warning
40026         * lib/c-stack.c: Include "ignore-value.h".
40027         (die): Explicitly ignore each write return value.
40028         * modules/c-stack (Depends-on): Add ignore-value.
40029
40030 2009-11-21  Bruno Haible  <bruno@clisp.org>
40031
40032         diffseq: reduce scope of variable 'best'.
40033         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40034         variable, earlier used for two different purposes.
40035
40036 2009-11-21  Jim Meyering  <meyering@redhat.com>
40037
40038         diffseq: remove useless assignment to "best"
40039         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40040         assignment.  At that point "best" is already guaranteed to be zero.
40041
40042 2009-11-20  Eric Blake  <ebb9@byu.net>
40043
40044         build: mention ftp redirector in release announcements
40045         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40046         values that used to come from cfg.mk; mention FTP redirect URL.
40047         * build-aux/announce-gen: Mention the mirror list.
40048         Suggested by Karl Berry.
40049
40050         nanosleep: improve port to mingw
40051         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40053         LIB_NANOSLEEP, but only when needed.
40054         * modules/select (Link): Document LIBSOCKET.
40055         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40056         enough.
40057
40058         nanosleep: work around cygwin bug
40059         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40060         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40061         bug.
40062         (getnow): Delete, not needed.
40063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40064         LIB_CLOCK_GETTIME.
40065         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40066         clock-time, gettime.
40067         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40068         bug.
40069         * modules/nanosleep-tests: New test.
40070         * tests/test-nanosleep.c: New file.
40071
40072         sleep: work around cygwin bug
40073         * lib/sleep.c (rpl_sleep): Work around the bug.
40074         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40075         (gl_PREREQ_SLEEP): Delete unused macro.
40076         * modules/sleep (Depends-on): Add verify.
40077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40078         * modules/unistd (Makefile.am): Substitute witness.
40079         * lib/unistd.in.h (sleep): Update prototype.
40080         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40081         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40082         * modules/sleep-tests (Depends-on): Check for alarm.
40083
40084 2009-11-20  Jim Meyering  <meyering@redhat.com>
40085
40086         maint.mk: improve sc_prohibit_magic_number_exit
40087         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40088         so it does not match uses like System.exit(1).
40089         Add comments showing how to correct all offenders.
40090
40091 2009-11-19  Eric Blake  <ebb9@byu.net>
40092
40093         xalloc-die-tests: add missing library
40094         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40095
40096         test-xvasprintf: silence compiler warnings
40097         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40098         empty string from gcc.
40099
40100 2009-11-19  Jim Meyering  <meyering@redhat.com>
40101
40102         xfreopen: new module, from coreutils
40103         * modules/xfreopen: New module.
40104         * lib/xfreopen.c: New file.
40105         * lib/xfreopen.h: New file.
40106         * MODULES.html.sh (File stream based Input/Output"): Add it.
40107
40108 2009-11-19  Eric Blake  <ebb9@byu.net>
40109
40110         manywarnings: depend on warnings
40111         * modules/manywarnings (Depends-on): Add warnings.
40112
40113         build: avoid compiler warnings
40114         * lib/select.c (rpl_select): Delete unused variable.
40115         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40116
40117 2009-11-18  Eric Blake  <ebb9@byu.net>
40118
40119         tests: avoid false negative with --with-packager
40120         * tests/test-version-etc.sh: Discard packager information.
40121         * tests/test-argp-version-etc-1.sh: Likewise.
40122         Reported by Mike Frysinger.
40123
40124         utimens: fix regression on Solaris
40125         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40126         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40127         can only change fd timestamps via futimesat.  Instead, use an
40128         additional witness macro to avoid BSD bug.
40129         Reported by Jim Meyering.
40130
40131 2009-11-17  Eric Blake  <ebb9@byu.net>
40132
40133         usleep: use it to simplify tests
40134         * modules/stat-time-tests (Depends-on): Add usleep.
40135         (configure.ac): Drop usleep check.
40136         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40137         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40138         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40139         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40140         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40141         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40142         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40143         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40144         Likewise.
40145         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40146         * tests/test-lchown.h (nap): Likewise.
40147         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40148         * tests/test-stat-time.c (nap): Likewise.
40149         * tests/test-utimens-common.h (nap): Update comments.
40150
40151         usleep: new module
40152         * modules/usleep: New file.
40153         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40154         * lib/usleep.c (usleep): Likewise.
40155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40156         * modules/unistd (Makefile.am): Substitute witnesses.
40157         * lib/unistd.in.h (usleep): Add declaration.
40158         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40159         * MODULES.html.sh (Date and time): Likewise.
40160         * modules/usleep-tests (Depends-on): New test.
40161         * tests/test-usleep.c: New file.
40162
40163         chown: work around OpenBSD bug
40164         * lib/chown.c (rpl_chown): Work around the bug.
40165         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40166         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40167         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40168         * modules/chown (Depends-on): Add stdbool.
40169         * modules/lchown (Depends-on): Likewise.
40170         * doc/posix-functions/chown.texi (chown): Document the bug.
40171         * doc/posix-functions/lchown.texi (lchown): Likewise.
40172         * tests/test-lchown.h (test_chown): Relax test.
40173
40174         mkstemp: avoid conflict with C++ keyword template
40175         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40176         * lib/mkostemp.c (mkostemp): Likewise.
40177         * lib/mkostemps.c (mkostemps): Likewise.
40178         * lib/mkstemp.c (mkstemp): Likewise.
40179         * lib/mkstemps.c (mkstemps): Likewise.
40180
40181         xalloc-die-tests: optimize
40182         * tests/test-xalloc-die.sh: Reduce number of processes.
40183
40184 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40185
40186         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40187         patch from ludo@gnu.org (Ludovic Courtès).
40188
40189 2009-11-17  Jim Meyering  <meyering@redhat.com>
40190
40191         version-etc: use proper license string
40192         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40193         * modules/version-etc-fsf: Likewise.
40194
40195 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40196
40197         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40198         printed to stdout.  Deal with EOL differences.
40199
40200 2009-11-17  Eric Blake  <ebb9@byu.net>
40201
40202         unsetenv: work around Solaris bug
40203         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40204         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40205         Reported by Jim Meyering.
40206
40207         vasnprintf: avoid compiler warnings
40208         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40209         variables.
40210         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40211
40212 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40213
40214         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40215         settings since xalloc-die is no longer the self test,
40216         xalloc-die.sh is.
40217
40218 2009-11-17  Jim Meyering  <meyering@redhat.com>
40219
40220         test-xalloc-die.sh: make the code agree with the commit log
40221         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40222         at the end, just in case you happen to have a test-xalloc-die
40223         program in some other PATH directory.
40224
40225         test-xalloc-die.sh: fix a portability bug
40226         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40227         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40228         Otherwise, argv[0] (as often seen in diagnostics) would be too
40229         system-dependent, sometimes with, and sometimes without the leading "./".
40230
40231         version-etc-fsf: relax license to LGPLv3+
40232         * modules/version-etc-fsf (License): Relax license.
40233
40234 2009-11-16  Eric Blake  <ebb9@byu.net>
40235
40236         xalloc-die-tests: avoid printing null pointer
40237         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40238         shell script.
40239         * tests/test-xalloc-die.c (program_name): Declare.
40240         * tests/test-xalloc-die.sh (tmpfiles): New file.
40241
40242         setenv, unsetenv: work around various bugs
40243         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40244         (setenv) [HAVE_SETENV]: Work around bugs.
40245         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40247         for bugs.
40248         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40249         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40251         * modules/stdlib (Makefile.am): Update substitutions.
40252         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40253         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40254         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40255         * modules/setenv-tests: New test.
40256         * modules/unsetenv-tests: Likewise.
40257         * tests/test-setenv.c: New file.
40258         * tests/test-unsetenv.c: Likewise.
40259
40260 2009-11-16  Jim Meyering  <meyering@redhat.com>
40261
40262         version-etc: relax license to LGPLv3+
40263         * modules/version-etc (License): Relax license.
40264
40265         better AC_REQUIRE expanded-before-required-warning avoidance
40266         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40267         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40268         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40269         which is no longer needed.
40270
40271 2009-11-16  Eric Blake  <ebb9@byu.net>
40272
40273         test-freading: clean up temporary file
40274         * tests/test-freading.c (main): Remove file on success, and use
40275         ASSERT more liberally.
40276         Reported by Jim Meyering.
40277
40278 2009-11-16  Jim Meyering  <meyering@redhat.com>
40279
40280         avoid new AC_REQUIRE expanded-before-required warnings
40281         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40282         merely using it.
40283         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40284         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40285
40286 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40287
40288         * tests/test-xalloc-die.c: New file.
40289         * modules/xalloc-die-tests: New file.
40290         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40291         XFAIL_TESTS so it can be appended by modules.
40292
40293 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40294
40295         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40296         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40297
40298 2009-11-14  Eric Blake  <ebb9@byu.net>
40299
40300         fnmatch: avoid compiler warning
40301         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40302         to silence compiler warning about mismatch signedness in ?:.
40303         Reported by Robert Millan.
40304
40305         intprops: add double-inclusion guard
40306         * lib/intprops.h: Allow idempotent includes.
40307         Suggested by Bruce Korb.
40308
40309         openat: detect Solaris fchownat bug
40310         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40311         penalizing glibc chownat when only lchownat is broken.
40312         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40313         trailing slash bugs.
40314         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40315         * modules/openat-tests (Files): Include more files.
40316         (Depends-on): Add mgetgroups, sleep, stat-time.
40317         (configure.ac): Add additional checks.
40318         (Makefile.am): Build new test.
40319         * tests/test-fchownat.c: New file.
40320
40321         lchown: detect Solaris and FreeBSD bug
40322         * lib/lchown.c (rpl_lchown): Work around bug.
40323         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40325         * modules/unistd (Makefile.am): Populate it.
40326         * lib/unistd.in.h (lchown): Update declaration.
40327         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40328         * modules/lchown-tests: New file.
40329         * tests/test-lchown.h (test_lchown): Likewise.
40330         * tests/test-lchown.c (main): Likewise.
40331
40332         chown: detect Solaris and FreeBSD bug
40333         * lib/chown.c (rpl_chown): Work around bug.
40334         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40335         (gl_PREREQ_CHOWN): Delete.
40336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40337         * modules/unistd (Makefile.am): Populate it.
40338         * lib/unistd.in.h (chown): Update declaration.
40339         * lib/lchown.c (chown): Update client.
40340         * modules/lchown (Depends-on): Add lstat.
40341         * doc/posix-functions/chown.texi (chown): Document the bug.
40342         * doc/posix-functions/getgroups.texi (getgroups): Document
40343         getgroups pitfall.
40344         * modules/chown-tests: New file.
40345         * tests/test-chown.h (test_chown): Likewise.
40346         * tests/test-chown.c (main): Likewise.
40347
40348 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40349
40350         gnulib-tool: correctly detect absence of m4 directories
40351         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40352
40353 2009-11-14  Jim Meyering  <meyering@redhat.com>
40354
40355         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40356         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40357
40358 2009-11-14  John W. Eaton  <jwe@gnu.org>
40359
40360         strftime.h: wrap function declaration in extern "C" block
40361         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40362
40363 2009-11-13  Eric Blake  <ebb9@byu.net>
40364
40365         getgroups: avoid compiler warning
40366         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40367
40368         getgroups: work around FreeBSD bug
40369         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40370         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40371         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40372         * tests/test-getgroups.c (main): Fix buffer overrun.
40373
40374         getgroups: avoid compilation failure
40375         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40376         * modules/getgroups (Depends-on): Add stdint.
40377
40378 2009-11-13  Jim Meyering  <meyering@redhat.com>
40379
40380         test-getgroups: avoid compilation failure
40381         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40382
40383 2009-11-13  Eric Blake  <ebb9@byu.net>
40384
40385         mgetgroups: new module, taken from coreutils
40386         * modules/mgetgroups: New file.
40387         * lib/mgetgroups.h: Likewise.
40388         * lib/mgetgroups.c (mgetgroups): Likewise.
40389         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40390         * MODULES.html.sh (Users and groups): Mention it.
40391
40392         getgroups: don't expose GETGROUPS_T to user
40393         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40394         an element at a time if GETGROUPS_T is wrong size.
40395         * lib/getugroups.h (getugroups): Change signature.
40396         * lib/unistd.in.h (getgroups): Likewise.
40397         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40398         signature needs fixing.
40399         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40400         AC_TYPE_GETGROUPS.
40401         * modules/group-member (Depends-on): Add getgroups.
40402         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40403         (group_member): Rely on getgroups replacement.
40404         * lib/getugroups.c (getugroups): Use gid_t.
40405         * tests/test-getgroups.c (main): Likewise.
40406         * NEWS: Mention the signature change.
40407         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40408         problem with signature.
40409         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40410         GETGROUPS_T is still useful for setgroups.
40411
40412         getgroups, getugroups: provide stubs for mingw
40413         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40414         * lib/getugroups.c (getugroups): Likewise.
40415         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40416         function.  Modernize replacement scheme.
40417         (gl_PREREQ_GETGROUPS): Delete.
40418         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40419         * modules/getgroups (configure.ac): Declare witness.
40420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40421         * modules/unistd (Depends-on): Substitute witness.
40422         * lib/unistd.in.h (getgroups): Declare replacement.
40423
40424         getgroups: avoid calling exit
40425         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40426         drop xalloc.
40427         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40428         dependencies.
40429         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40430         exiting, in the rare case of malloc failure.
40431
40432         getgroups: fix logic error
40433         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40434         has more than 20 groups.
40435         * modules/getgroups-tests: New test.
40436         * tests/test-getgroups.c: New file.
40437
40438 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40439
40440         * tests/test-base64.c: Improve.
40441
40442 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40443
40444         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40445         Blake <ebb9@byu.net>.
40446
40447 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40448
40449         * tests/test-xvasprintf.c: Add %s%s related checks.
40450
40451 2009-11-12  Eric Blake  <ebb9@byu.net>
40452
40453         version-etc: match standards.texi style
40454         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40455         and use <> only for URLs.
40456
40457 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40458
40459         fts: do not fail on a submount during traversal
40460         * lib/fts.c (fts_build): Read the stat info again after opening
40461         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40462         Original report at http://bugzilla.redhat.com/501848.
40463
40464 2009-11-12  Jim Meyering  <meyering@redhat.com>
40465
40466         bootstrap: sync from coreutils
40467         * build-aux/bootstrap (bootstrap_epilogue): New function.
40468         Use git_modules_config in one more place.  This make bootstrap's
40469         --gnulib-srcdir option more useful for testing.
40470
40471         bootstrap: generalize autoheader check
40472         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40473         AC_CONFIG_HEADERS.
40474
40475 2009-11-11  Eric Blake  <ebb9@byu.net>
40476
40477         mkfifoat: use new modules for Solaris and BSD bugs
40478         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40479         * lib/mkfifoat.c (mknodat): Split...
40480         * lib/mknodat.c (mknodat): ...into new file.
40481         * modules/mkfifoat (Files): Ship new file.
40482         (Depends-on): Add mkfifo, mknod.
40483         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40484         (Depends-on): Add symlink.
40485         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40486         redundant with test_mkfifo.h.
40487         (do_mkfifoat, do_mknodat): New helpers.
40488
40489         mknod: new module
40490         * modules/mknod: New file.
40491         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40492         * lib/mknod.c (mknod): Likewise.
40493         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40494         defaults.
40495         * modules/sys_stat (Makefile.am): Substitute them.
40496         * lib/sys_stat.in.h (mknod): Declare replacement.
40497         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40498         Document it.
40499         * doc/posix-functions/mknod.texi (mknod): Likewise.
40500         * modules/mknod-tests: New test.
40501         * tests/test-mknod.c: Likewise.
40502
40503         mkfifo: new module
40504         * modules/mkfifo: New file.
40505         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40506         * lib/mkfifo.c (mkfifo): Likewise.
40507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40508         defaults.
40509         * modules/sys_stat (Makefile.am): Substitute them.
40510         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40511         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40512         Document it.
40513         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40514         * modules/mkfifo-tests: New test.
40515         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40516         from test-mkfifoat.c.
40517         * tests/test-mkfifo.c: New file.
40518
40519         readlink: detect FreeBSD bug
40520         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40521         slash on symlink.
40522         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40523         * tests/test-readlink.h (test_readlink): Enhance test.
40524
40525         symlink: detect FreeBSD bug
40526         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40527         slash on symlink.
40528         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40529         * tests/test-symlink.h (test_symlink): Enhance test.
40530
40531 2009-11-10  Eric Blake  <ebb9@byu.net>
40532
40533         link: detect FreeBSD bug
40534         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40535         symlink.
40536         * doc/posix-functions/link.texi (link): Document the bug.
40537         * tests/test-link.h (test_link): Enhance test.
40538         * tests/test-linkat.c (main): Update caller.
40539
40540         unlink, remove: detect FreeBSD bug
40541         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40542         slash on symlink.
40543         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40544         * doc/posix-functions/remove.texi (remove): Likewise.
40545         * tests/test-unlink.h (test_unlink): Enhance test.
40546         * tests/test-remove.c (main): Likewise.
40547
40548 2009-11-09  Eric Blake  <ebb9@byu.net>
40549
40550         rename: detect FreeBSD bug
40551         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40552         slash on symlink.
40553         * modules/renameat-tests (Depends-on): Add filenamecat.
40554         * tests/test-rename.h (test_rename): Allow one more errno.
40555         * tests/test-renameat.c (main): Likewise.
40556         * doc/posix-functions/rename.texi (rename): Document the bug.
40557
40558         open: detect FreeBSD bug
40559         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40560         symlink.
40561         * doc/posix-functions/open.texi (open): Document the bug.
40562         * doc/posix-functions/utimes.texi (utimes): Likewise.
40563         * tests/test-open.h (test_open): Add parameters, and test symlink
40564         handling.
40565         * tests/test-open.c (main): Adjust caller.
40566         * tests/test-fcntl-safer.c (main): Likewise.
40567         * modules/open-tests (Depends-on): Add stdbool, symlink.
40568         * modules/fcntl-safer-tests (Depends-on): Likewise.
40569         * tests/test-openat.c (main): Add test-open tests.
40570
40571         stat: detect FreeBSD bug
40572         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40573         symlink.
40574         * doc/posix-functions/stat.texi (stat): Document the bug.
40575         * tests/test-stat.h (test_stat_func): Add argument.
40576         * tests/test-stat.c (main): Adjust caller.
40577         * tests/test-fstatat.c (main): Likewise.
40578         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40579         Reported by Jim Meyering.
40580
40581 2009-11-09  James Youngman  <jay@gnu.org>
40582
40583         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40584         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40585
40586 2009-11-08  Jim Meyering  <meyering@redhat.com>
40587
40588         utimens: remove invalid futimesat call
40589         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40590         It used the file descriptor of the target file as the DIR_FD
40591         parameter and NULL as the file name.  That caused failure with
40592         errno == EFAULT on FreeBSD-8.0-rc2
40593
40594 2009-11-07  Eric Blake  <ebb9@byu.net>
40595
40596         fflush, freadseek: use fseeko, not fseek
40597         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40598         (clear_ungetc_buffer): Avoid potential problems on large files.
40599         * lib/freadseek.c (freadseek): Likewise.
40600         * modules/freadseek (Depends-on): Add fseeko.
40601         * modules/fseek (configure.ac): Set a witness.
40602         * tests/test-fflush.c (main): Use fseeko.
40603         * tests/test-fpurge.c (fseek): Disable link warning.
40604         * tests/test-freadable.c (fseek): Likewise.
40605         * tests/test-freading.c (fseek): Likewise.
40606         * tests/test-fseeko.c (fseek): Likewise.
40607         * tests/test-ftell.c (fseek): Likewise.
40608         * tests/test-ftello.c (fseek): Likewise.
40609         * tests/test-fwritable.c (fseek): Likewise.
40610         * tests/test-fwriting.c (fseek): Likewise.
40611
40612 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40613
40614         * modules/memchr (Depends-on): Drop getpagesize dependency.
40615
40616 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40617
40618         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40619         Reported by Ludovic Courtès.
40620         * build-aux/pmccabe2html: Improve example usage.
40621         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40622
40623 2009-11-06  Jim Meyering  <meyering@redhat.com>
40624
40625         do-release-commit-and-tag: New module.
40626         Automate the release-commit and tag process.
40627         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40628         * modules/do-release-commit-and-tag: New file.
40629         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40630
40631 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40632
40633         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40634         because test-select.c uses inet_pton.
40635
40636 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40637
40638         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40639         GETADDRINFO_LIB.  Bump serial number.
40640         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40641         Suggested by Eric Blake <ebb9@byu.net>.
40642
40643 2009-11-05  Eric Blake  <ebb9@byu.net>
40644
40645         strtod: detect darwin bug
40646         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40647         Reported by Leo Davis.
40648
40649         freopen-safer: new module
40650         * modules/freopen-safer: New module.
40651         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40652         * lib/freopen-safer.c (freopen_safer): New file.
40653         * lib/stdio-safer.h (freopen_safer): New declaration.
40654         * lib/stdio--.h (freopen): New override.
40655         * MODULES.html.sh (File stream based Input/Output): Mention it.
40656         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40657         freopen-safer module.
40658         * doc/posix-functions/stderr.texi (stderr): Likewise.
40659         * doc/posix-functions/stdin.texi (stdin): Likewise.
40660         * doc/posix-functions/stdout.texi (stdout): Likewise.
40661         * modules/freopen-safer-tests: New test.
40662         * tests/test-reopen-safer.c: New file.
40663
40664 2009-11-05  Jim Meyering  <meyering@redhat.com>
40665
40666         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40667         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40668
40669 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40670
40671         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40672
40673 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40674
40675         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40676
40677 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40678
40679         Fix link error.
40680         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40681         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40682
40683 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40684
40685         * tests/test-func.c: Also test value of __func__.
40686
40687 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40688
40689         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40690         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40691
40692 2009-11-05  Bruno Haible  <bruno@clisp.org>
40693
40694         Fix link error.
40695         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40696         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40697         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40698
40699 2009-11-05  Bruno Haible  <bruno@clisp.org>
40700
40701         Tests for module 'inet_pton'.
40702         * modules/inet_pton-tests: New file.
40703         * tests/test-inet_pton.c: New file.
40704
40705 2009-11-05  Bruno Haible  <bruno@clisp.org>
40706
40707         Tests for module 'inet_ntop'.
40708         * modules/inet_ntop-tests: New file.
40709         * tests/test-inet_ntop.c: New file.
40710
40711 2009-11-04  Eric Blake  <ebb9@byu.net>
40712
40713         stdlib-safer: wrap all mkstemp variants
40714         * modules/mkostemp (configure.ac): Set witness.
40715         * modules/mkostemps (configure.ac): Likewise.
40716         * modules/mkstemps (configure.ac): Likewise.
40717         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40718         (mkstemps_safer): Wrap more functions.
40719         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40720         wrapping.
40721         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40722         (mkstemps_safer): Implement the wrappers.
40723
40724         mkstemps, mkostemps: new modules
40725         * modules/mkostemps: New module.
40726         * modules/mkstemps: Likewise.
40727         * lib/mkostemps.c (mkostemps): New file.
40728         * lib/mkstemps.c (mkstemps): Likewise.
40729         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40730         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40732         * modules/stdlib (Makefile.am): Substitute them.
40733         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40734         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40735         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40736         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40737         * MODULES.html.sh (File system functions): Mention them.
40738
40739         tempname: resync from glibc
40740         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40741         same values for __GT_FILE as glibc.  Abort even when assertions
40742         are disabled.
40743         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40744         match its value otherwise.  Allow idempotent inclusion.
40745         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40746         * lib/mkostemp.c (mkostemp): Likewise.
40747         * lib/mkstemp.c (mkstemp): Likewise.
40748         * lib/tmpfile.c (tmpfile): Likewise.
40749         * NEWS: Document this.
40750
40751         utimens: fix use of futimens on older Linux
40752         * lib/utimens.c (fdutimens): Use updated, rather than original,
40753         timespec to avoid bug in older Linux kernel.
40754         Reported by Simon Josefsson.
40755
40756 2009-11-04  Bruno Haible  <bruno@clisp.org>
40757
40758         Make num_processors more flexible and consistent.
40759         * lib/nproc.h (enum nproc_query): New type.
40760         (num_processors): Add a 'query' argument.
40761         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40762         (num_processors): Add a 'query' argument. Test the value of the
40763         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40764         mingw, count the number of CPUs available for the current process.
40765         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40766         Check for sched_getaffinity and sched_getaffinity_np.
40767         * modules/nproc (Depends-on): Add c-ctype, extensions.
40768         * NEWS: Mention the change.
40769
40770 2009-11-03  Bruno Haible  <bruno@clisp.org>
40771
40772         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40773
40774 2009-11-03  Jim Meyering  <meyering@redhat.com>
40775
40776         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40777         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40778         if it is defined.
40779
40780 2009-11-02  Eric Blake  <ebb9@byu.net>
40781
40782         mktime, timegm: share common declaration
40783         * lib/mktime-internal.h: New file.
40784         * lib/mktime.c: Use it rather than open-coding a declaration.
40785         * lib/timegm.c: Likewise.
40786         * modules/mktime (Files): Ship it.
40787         * modules/timegm (Files): Likewise.
40788         Suggested by Bruno Haible.
40789
40790         test-update-copyright: update test to match script changes
40791         * tests/test-update-copyright.sh: Avoid hard-coding perl
40792         location.  Don't update *.bak created by earlier runs.
40793
40794 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40795             Simon Josefsson  <simon@josefsson.org>
40796             Bruno Haible  <bruno@clisp.org>
40797
40798         Fix link error on Solaris 8.
40799         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40800         also in libnsl. Define also INET_PTON_LIB.
40801         * modules/inet_pton (Link): New section.
40802
40803 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40804             Bruno Haible  <bruno@clisp.org>
40805
40806         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40807         * modules/inet_ntop (Link): New section.
40808         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40809
40810 2009-11-02  Eric Blake  <ebb9@byu.net>
40811
40812         maint: avoid compiler warnings in m4 macros
40813         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40814         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40815
40816 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40817
40818         * m4/pmccabe2html.m4: Remove file.
40819         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40820         function.  Change maintainer.
40821         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40822         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40823         Courtès).
40824
40825 2009-10-31  Eric Blake  <ebb9@byu.net>
40826
40827         fseeko: fix m4 regression
40828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40829         regression from 2009-10-27.
40830         Reported by Ralf Wildenhues.
40831
40832 2009-10-31  Jim Meyering  <meyering@redhat.com>
40833
40834         inttostr: aesthetics and improved (compile-time) safety
40835         Define inttype_is_signed rather than inttype_is_unsigned,
40836         since the sole use is via "#if inttype_is_signed".
40837         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40838         inttype_is_unsigned.
40839         * lib/offtostr.c (inttype_is_signed): Likewise.
40840         * lib/uinttostr.c (inttype_is_signed): Likewise.
40841         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40842         * lib/inttostr.c (inttostr): Use verify to cross-check the
40843         inttype_is_signed value and the signedness of the actual type.
40844         * modules/inttostr (Depends-on): Add verify.
40845
40846 2009-10-30  Eric Blake  <ebb9@byu.net>
40847
40848         build: avoid compiler warnings
40849         * lib/fchmodat.c (lchmod): Mark unused variables.
40850         * lib/getopt.c (_getopt_initialize): Likewise.
40851         * lib/mktime.c (__mktime_internal): Provide prototype.
40852         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40853         older gcc that do not understand #pragma GCC diagnostic.
40854         * lib/uinttostr.c (inttype_is_unsigned): Define.
40855         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40856
40857 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40858
40859         stat: fix compilation on AIX
40860         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40861         only see struct stat64.
40862
40863 2009-10-30  Eric Blake  <ebb9@byu.net>
40864
40865         exclude: make more robust
40866         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40867         rather than masking a coding bug.
40868         Suggested by Bruno Haible.
40869
40870 2009-10-30  Jim Meyering  <meyering@redhat.com>
40871
40872         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40873         Rather than putting #!/usr/bin/perl on the first line,
40874         start with a variant of what's recommended by "man perlrun" that
40875         invokes the first "perl" program from your shell's search path.
40876         * build-aux/gitlog-to-changelog: Replace #!... as above.
40877         Add a "Local Variables" perl mode setting.
40878         Prompted by a patch from Ludovic Courtès.
40879         Improved by Eric Blake.
40880         * build-aux/useless-if-before-free: Likewise.
40881         * build-aux/announce-gen: Likewise.
40882         * build-aux/update-copyright: Likewise.
40883
40884 2009-10-29  Eric Blake  <ebb9@byu.net>
40885
40886         filenamecat-lgpl: adjust clients
40887         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40888         filenamecat.
40889         * modules/renameat (Depends-on): Likewise.
40890
40891         filenamecat: split into filenamecat-lgpl
40892         * modules/filenamecat-lgpl: New module.
40893         * modules/filenamecat (Files): Move library-safe files into
40894         filenamecat-lgpl.
40895         (Depends-on): Add filenamecat-lgpl.
40896         (configure.ac): Declare witness.
40897         * lib/filenamecat.h (file_name_concat): Only declare when using
40898         GPL module.
40899         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40900         Move...
40901         * lib/filenamecat-lgpl.c: ...into new file.
40902         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40903         (gl_FILE_NAME_CONCAT): Use it.
40904         * MODULES.html.sh (File system functions): Mention new module.
40905
40906         argp: avoid memory leak
40907         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40908         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40909         base_name, since the latter malloc()s and can call exit().
40910         Leak introduced 2006-07-03.
40911
40912         dirname-lgpl: adjust clients that don't need full dirname
40913         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40914         * modules/filenamecat (Depends-on): Likewise.
40915         * modules/linkat (Depends-on): Likewise.
40916         * modules/mkancesdirs (Depends-on): Likewise.
40917         * modules/mkdir (Depends-on): Likewise.
40918         * modules/openat (Depends-on): Likewise.
40919         * modules/savewd (Depends-on): Likewise.
40920         * modules/rename (Depends-on): Likewise.
40921         (License): Relax license.
40922         * modules/mkdir-tests (Depends-on): Drop progname.
40923         (Makefile.am): Delete unneeded LDADD.
40924         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40925
40926         dirname: split into dirname-lgpl
40927         * modules/dirname-lgpl: New module.
40928         * modules/dirname (Files): Move library-safe files into
40929         dirname-lgpl.
40930         (Depends-on): Add dirname-lgpl.
40931         (configure.ac): Declare witness.
40932         * modules/double-slash-root (License): Relax license.
40933         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40934         module.
40935         * lib/dirname.c (dir_len, mdir_name): Move...
40936         * lib/dirname-lgpl.c: ...into new file.
40937         * lib/basename.c (last_component, base_len): Move...
40938         * lib/basename-lgpl.c: ...into new file.
40939         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40940         (gl_DIRNAME): Use it.
40941         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40942         Mention new module.
40943         * modules/dirname-tests (Depends-on): Add progname.
40944         * tests/test-dirname.c (program_name): Delete.
40945
40946         mkdir: make safe for libraries
40947         * modules/mkdir (Depends-on): Drop xalloc.
40948         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40949         exit.
40950
40951         tests: avoid some compiler warnings
40952         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40953         literals.
40954         * tests/test-memchr.c (main): Avoid type mismatch.
40955         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40956         * tests/test-base64.c (main): Likewise.
40957         * tests/test-getdelim.c (main): Likewise.
40958         * tests/test-gethostname.c (main): Likewise.
40959         * tests/test-getline.c (main): Likewise.
40960         * tests/test-netinet_in.c (main): Likewise.
40961         * tests/test-select.c (open_server_socket, main): Likewise.
40962         * tests/test-select-stdin.c (main): Likewise.
40963         * tests/test-sockets.c (main): Likewise.
40964         * tests/test-strsignal.c (main): Likewise.
40965         * tests/test-sys_select.c (main): Likewise.
40966         * tests/test-sys_socket.c (main): Likewise.
40967         * tests/test-u64.c (main): Likewise.
40968         * tests/test-xfprintf-posix.c (main): Likewise.
40969         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40970
40971         sockets: avoid compiler warning
40972         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40973
40974         maint: detect usage(1) and other suspicious exits
40975         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40976
40977 2009-10-29  Jim Meyering  <meyering@redhat.com>
40978
40979         timespec: long-to-int truncation could make timespec_cmp malfunction
40980         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40981         a multiple of 2^32 nanoseconds as no difference.
40982
40983 2009-10-28  Jim Meyering  <meyering@redhat.com>
40984
40985         fprintftime: wrap macro code argument in "do {...} while(0)"
40986         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40987         cpy macro must be a statement that can be followed by a semicolon.
40988         Now that the else clause contains a comment and is hence longer
40989         than one line, I require curly braces.  That in turn requires
40990         that we wrap this code block in the standard do...while(0).
40991
40992         fprintftime: remove stray semicolon from previous change
40993         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40994
40995         fprintftime: avoid a warning about ignored fwrite return value
40996         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40997         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40998         that is unsafe.
40999         * modules/fprintftime (Depends-on): Add ignore-value.
41000
41001         exclude: avoid an unwarranted warning
41002         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41003
41004 2009-10-27  Eric Blake  <ebb9@byu.net>
41005
41006         fseek: avoid compilation failure when fflush is replaced
41007         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41008         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41009         module is in use.
41010         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41011         module is not in use; since REPLACE_FSEEK worked otherwise.
41012         (GNULIB_FTELLO): Likewise for ftell.
41013         Reported by Ian Beckwith and others.
41014
41015 2009-10-27  Bruno Haible  <bruno@clisp.org>
41016
41017         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41018         Reported by Jim Meyering.
41019
41020 2009-10-27  Jim Meyering  <jim@meyering.net>
41021             Bruno Haible  <bruno@clisp.org>
41022
41023         Avoid warning despite dropping the return value of fwrite.
41024         * lib/unicodeio.c: Include ignore-value.h.
41025         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41026         * modules/unicodeio (Depends-on): Add ignore-value.
41027
41028 2009-10-26  Eric Blake  <ebb9@byu.net>
41029
41030         areadlinkat: fix fallback path
41031         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41032         pointer and zero.
41033
41034 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41035
41036         Use a better IO block size for modern systems
41037         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41038         * lib/md2.c: Likewise.
41039         * lib/md4.c: Likewise.
41040         * lib/md5.c: Likewise.
41041         * lib/sha1.c: Likewise.
41042         * lib/sha256.c: Likewise.
41043         * lib/sha512.c: Likewise.
41044
41045 2009-10-22  Eric Blake  <ebb9@byu.net>
41046
41047         tests: avoid several compiler warnings
41048         * tests/test-getcwd.c (main): Avoid buffer underflow.
41049         * tests/test-getdate.c (main): String literals are not safe with
41050         putenv, so use setenv.  Declare unused argument.
41051         * modules/getdate-tests (Depends-on): Add setenv.
41052         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41053         problems with string literals in char *.
41054         * tests/test-hash.c (main): Avoid shadowing declaration.
41055         (insert_new): Treat string literals as char const *.
41056         * tests/test-getopt.h (test_getopt): Likewise.
41057         (getopt_loop): Alter types to minimize casting elsewhere.
41058         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41059         (test_getopt_long_posix): Likewise.
41060         (do_getopt_long): Add wrapper to minimize casting.
41061         * tests/test-atexit.c (clear_temp_file): Use void.
41062         * tests/test-areadlink-with-size.c (main): Declare unused
41063         arguments.
41064         * tests/test-areadlink.c (main): Likewise.
41065         * tests/test-areadlinkat-with-size.c (main): Likewise.
41066         * tests/test-areadlinkat.c (main): Likewise.
41067         * tests/test-canonicalize-lgpl.c (main): Likewise.
41068         * tests/test-canonicalize.c (main): Likewise.
41069         * tests/test-dirent-safer.c (main): Likewise.
41070         * tests/test-dirname.c (main): Likewise.
41071         * tests/test-dup2.c (main): Likewise.
41072         * tests/test-fchdir.c (main): Likewise.
41073         * tests/test-fcntl-h.c (main): Likewise.
41074         * tests/test-fcntl-safer.c (main): Likewise.
41075         * tests/test-fdopendir.c (main): Likewise.
41076         * tests/test-fdutimensat.c (main): Likewise.
41077         * tests/test-fflush.c (main): Likewise.
41078         * tests/test-filenamecat.c (main): Likewise.
41079         * tests/test-filevercmp.c (main): Likewise.
41080         * tests/test-fopen-safer.c (main): Likewise.
41081         * tests/test-fopen.c (main): Likewise.
41082         * tests/test-fpending.c (main): Likewise.
41083         * tests/test-fpurge.c (main): Likewise.
41084         * tests/test-freading.c (main): Likewise.
41085         * tests/test-fstatat.c (main): Likewise.
41086         * tests/test-fsync.c (main): Likewise.
41087         * tests/test-futimens.c (main): Likewise.
41088         * tests/test-getndelim2.c (main): Likewise.
41089         * tests/test-gettimeofday.c (main): Likewise.
41090         * tests/test-getopt.c (main): Likewise.
41091         * tests/test-i-ring.c (main): Likewise.
41092         * tests/test-inttypes.c (main): Likewise.
41093         * tests/test-link.c (main): Likewise.
41094         * tests/test-lstat.c (main): Likewise.
41095         * tests/test-math.c (main): Likewise.
41096         * tests/test-md5.c (main): Likewise.
41097         * tests/test-memchr2.c (main): Likewise.
41098         * tests/test-memrchr.c (main): Likewise.
41099         * tests/test-mkdir.c (main): Likewise.
41100         * tests/test-mkdirat.c (main): Likewise.
41101         * tests/test-mkfifoat.c (main): Likewise.
41102         * tests/test-open.c (main): Likewise.
41103         * tests/test-openat-safer.c (main): Likewise.
41104         * tests/test-openat.c (main): Likewise.
41105         * tests/test-quotearg.c (main): Likewise.
41106         * tests/test-rawmemchr.c (main): Likewise.
41107         * tests/test-readlink.c (main): Likewise.
41108         * tests/test-remove.c (main): Likewise.
41109         * tests/test-rename.c (main): Likewise.
41110         * tests/test-renameat.c (main): Likewise.
41111         * tests/test-rmdir.c (main): Likewise.
41112         * tests/test-sha1.c (main): Likewise.
41113         * tests/test-signal.c (main): Likewise.
41114         * tests/test-sigaction.c (main): Likewise.
41115         * tests/test-stat.c (main): Likewise.
41116         * tests/test-stat-time.c (main): Likewise.
41117         * tests/test-stddef.c (main): Likewise.
41118         * tests/test-stdint.c (main): Likewise.
41119         * tests/test-stdio.c (main): Likewise.
41120         * tests/test-stdlib.c (main): Likewise.
41121         * tests/test-strchrnul.c (main): Likewise.
41122         * tests/test-strerror.c (main): Likewise.
41123         * tests/test-string.c (main): Likewise.
41124         * tests/test-strtod.c (main): Likewise.
41125         * tests/test-strverscmp.c (main): Likewise.
41126         * tests/test-symlink.c (main): Likewise.
41127         * tests/test-symlinkat.c (main): Likewise.
41128         * tests/test-sys_stat.c (main): Likewise.
41129         * tests/test-sys_time.c (main): Likewise.
41130         * tests/test-time.c (main): Likewise.
41131         * tests/test-unistd.c (main): Likewise.
41132         * tests/test-unlink.c (main): Likewise.
41133         * tests/test-unlinkat.c (main): Likewise.
41134         * tests/test-utimens.c (main): Likewise.
41135         * tests/test-utimensat.c (main): Likewise.
41136         * tests/test-version-etc.c (main): Likewise.
41137         * tests/test-wchar.c (main): Likewise.
41138         * tests/test-wctype.c (main): Likewise.
41139         * tests/test-xprintf-posix.c (main): Likewise.
41140         * tests/test-posixtm.c (main): Likewise.
41141         (STREQ): Delete unused macro.
41142         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41143         shadowed variables.
41144         * tests/test-memchr.c (main): Likewise.
41145
41146 2009-10-21  Eric Blake  <ebb9@byu.net>
41147
41148         areadlinkat: avoid failure on older glibc
41149         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41150         rather than mis-comparing 0 against FUNC_RESULT of char*.
41151
41152 2009-10-21  Bruno Haible  <bruno@clisp.org>
41153
41154         * modules/stpncpy (License): Relicense under LGPLv2+.
41155         Reported by David Lutterkort <lutter@redhat.com>.
41156
41157 2009-10-20  Eric Blake  <ebb9@byu.net>
41158
41159         utimensat: work around Solaris 9 bug
41160         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41161         has trailing slash bugs.
41162         * tests/test-lutimens.h (test_lutimens): Enhance test.
41163         * tests/test-utimens.h (test_utimens): Likewise.
41164         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41165         * doc/posix-functions/utimes.texi (utimes): Likewise.
41166         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41167         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41168         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41169         * doc/posix-functions/futimens.texi (futimens): Likewise.
41170
41171         fdutimensat: new module
41172         * modules/fdutimensat: New file.
41173         * lib/fdutimensat.c (fdutimensat): Likewise.
41174         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41175         * MODULES.html.sh (File system functions): Mention module.
41176         * modules/fdutimensat-tests: New test.
41177         * tests/test-fdutimensat.c: Likewise.
41178
41179         doc: regenerate INSTALL
41180         * doc/INSTALL: Reflect recent autoconf update.
41181         * doc/INSTALL.ISO: Likewise.
41182         * doc/INSTALL.UTF-8: Likewise.
41183
41184 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41185
41186         acl: warn if ACL support is not detected
41187         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41188
41189 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41190
41191         * lib/nproc.h: Add extern "C" block for C++.
41192
41193 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41194             Bruno Haible  <bruno@clisp.org>
41195
41196         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41197         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41198         * doc/posix-functions/isalpha.texi: Likewise.
41199         * doc/posix-functions/isblank.texi: Likewise.
41200         * doc/posix-functions/iscntrl.texi: Likewise.
41201         * doc/posix-functions/isdigit.texi: Likewise.
41202         * doc/posix-functions/isgraph.texi: Likewise.
41203         * doc/posix-functions/islower.texi: Likewise.
41204         * doc/posix-functions/isprint.texi: Likewise.
41205         * doc/posix-functions/ispunct.texi: Likewise.
41206         * doc/posix-functions/isspace.texi: Likewise.
41207         * doc/posix-functions/isupper.texi: Likewise.
41208         * doc/posix-functions/isxdigit.texi: Likewise.
41209
41210 2009-10-18  Bruno Haible  <bruno@clisp.org>
41211
41212         Tests for module 'isblank'.
41213         * modules/isblank-tests: New file.
41214         * tests/test-isblank.c: New file.
41215
41216         New module 'isblank'.
41217         * lib/isblank.c: New file.
41218         * m4/isblank.m4: New file.
41219         * modules/isblank: New file.
41220         * doc/posix-functions/isblank.texi: Mention the new module.
41221
41222 2009-10-18  Bruno Haible  <bruno@clisp.org>
41223
41224         New module 'ctype'.
41225         * lib/ctype.in.h: New file.
41226         * m4/ctype.m4: New file.
41227         * modules/ctype: New file.
41228         * doc/posix-headers/ctype.texi: Mention the new module.
41229
41230 2009-10-18  Jim Meyering  <meyering@redhat.com>
41231
41232         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41233         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41234         right after its initialization, rather than farther down.
41235         Keeping these in close proximity makes it easier to ensure
41236         that each such variable is initialized.  E.g.,
41237
41238             LIB_CLOCK_GETTIME=
41239             AC_SUBST([LIB_CLOCK_GETTIME])
41240
41241         This change also increments these serial numbers.
41242         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41244         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41245
41246 2009-10-18  Bruno Haible  <bruno@clisp.org>
41247
41248         Don't let environment variables perturb build.
41249         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41250         (gl_PREREQ_GETHRXTIME): ... not here.
41251
41252 2009-10-18  Bruno Haible  <bruno@clisp.org>
41253
41254         Avoid symlink attack in localcharset module.
41255         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41256         (O_NOFOLLOW): Define fallback.
41257         (get_charset_aliases): Don't open the file if it is a symbolic link.
41258         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41259         gl_FCNTL_H.
41260         (gl_FCNTL_H): Require it.
41261         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41262         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41263         Reported by Fergal Glynn <fglynn@veracode.com>.
41264
41265 2009-10-18  Bruno Haible  <bruno@clisp.org>
41266
41267         Implement nproc for mingw.
41268         * lib/nproc.c: Include <windows.h>
41269         (num_processors): On native Windows platforms, try GetSystemInfo.
41270
41271 2009-10-18  Bruno Haible  <bruno@clisp.org>
41272
41273         Implement nproc for IRIX.
41274         * lib/nproc.c: Include <sys/sysmp.h>.
41275         (num_processors): On IRIX systems, try sysmp.
41276         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41277
41278 2009-10-18  Bruno Haible  <bruno@clisp.org>
41279
41280         Implement nproc for HP-UX.
41281         * lib/nproc.c: Include <sys/pstat.h>
41282         (num_processors): On HP-UX systems, try pstat_getdynamic.
41283         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41284         pstat_getdynamic.
41285
41286 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41287             Bruno Haible  <bruno@clisp.org>
41288
41289         Implement nproc for NetBSD, OpenBSD.
41290         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41291         (ARRAY_SIZE): New macro.
41292         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41293         * m4/nproc.m4: New file.
41294         * modules/nproc (Files): Add m4/nproc.m4.
41295         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41296         (Makefile.am): Instead, augment lib_SOURCES.
41297
41298 2009-10-18  Bruno Haible  <bruno@clisp.org>
41299
41300         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41301         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41302         sys/param.h.
41303
41304 2009-10-16  Eric Blake  <ebb9@byu.net>
41305
41306         utimensat: new module
41307         * modules/utimensat: New file.
41308         * lib/utimensat.c (utimensat): Likewise.
41309         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41310         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41311         so we can work around Linux bugs.
41312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41313         * modules/sys_stat (Makefile.am): Substitute them.
41314         * lib/sys_stat.in.h (utimensat): Declare it.
41315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41316         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41317         * modules/utimensat-tests: New test.
41318         * tests/test-utimensat.c: Likewise.
41319
41320         utimens: let lutimens work on non-symlinks
41321         * lib/utimens.c (lutimens): Fall back to utimens rather than
41322         failing with ENOSYS, when file is not a symlink.
41323         (utimens): Reduce redirection.
41324         * tests/test-lutimens.h (test_lutimens): Update test to cover
41325         non-symlinks.
41326         * tests/test-utimens.h (test_utimens): Update test to cover
41327         symlinks.
41328         * tests/test-utimens.c (main): Update caller.
41329
41330         utimens: cache whether utimensat syscall works
41331         * lib/utimens.c (utimensat_works_really): New cache variable.
41332         (fdutimens, lutimens): Use it to avoid failing syscall.
41333
41334         test-stat-time, test-utimens: improve portability
41335         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41336         ext4 on alpha, and for cygwin.
41337         * tests/test-utimens-common.h: New file.
41338         (nap): Factor delays into single function.
41339         * tests/test-lutimens.h (test_lutimens): Use new header.
41340         * tests/test-futimens.h (test_futimens): Likewise.
41341         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41342         timestamps to occur from same machine, as was done previously for
41343         test_utimens.
41344         * modules/utimens-tests (Files): Ship new file.
41345         * modules/futimens-tests (Files): Likewise.
41346         Reported in part by Jim Meyering.
41347
41348         sys_stat: sort replacement declarations
41349         * lib/sys_stat.in.h: Sort declarations.
41350         * lib/futimens.c (futimens): Fix typo.
41351
41352 2009-10-15  Jim Meyering  <meyering@redhat.com>
41353
41354         don't let environment settings perturb build
41355         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41356         could cause a configure-time and/or build-time malfunction.
41357         Typically, a configure-time function-in-library test is performed
41358         via code like this:
41359
41360           LIB_VAR=
41361           AC_SUBST([LIB_VAR])
41362           prefix_saved_LIBS=$LIBS
41363             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41364                        [test "$ac_cv_search_FUNC" = "none required" ||
41365                         LIB_VAR=$ac_cv_search_FUNC])
41366           LIBS=$prefix_saved_LIBS
41367
41368         However, in each of the files affected by this change, the LIB_VAR=
41369         initialization was omitted.  Thus, when set in the environment, its
41370         value would propagate into generated Makefiles when FUNC is not found
41371         in LIB_NAME.
41372         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41373         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41374         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41375
41376 2009-10-14  Eric Blake  <ebb9@byu.net>
41377
41378         fchdir: avoid infinite recursion in mingw
41379         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41380         recursing.
41381
41382         test-stat-time: port to mingw
41383         * tests/test-stat-time.c (force_unlink): Return a value.
41384         (test_ctime) [W32]: Fix compilation error.
41385         (nap): Don't call usleep with too large an argument.  Use
41386         force_unlink.
41387         * doc/pastposix-functions/usleep.texi (usleep): Document the
41388         portability issue.
41389
41390 2009-10-13  Jim Meyering  <meyering@redhat.com>
41391
41392         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41393         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41394         * modules/pipe-filter-ii: Likewise.
41395         * modules/sys_socket-tests: Likewise.
41396         * modules/tsearch-tests: Likewise.
41397         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41398         (check): Depend on it.
41399
41400 2009-10-12  Eric Blake  <ebb9@byu.net>
41401
41402         utimens-tests: port to NFS file systems
41403         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41404         comparisons to avoid spurious failures from timestamp drift
41405         between NFS machines.
41406
41407 2009-10-12  Eric Blake  <ebb9@byu.net>
41408
41409         stat-time-tests: minor cleanups
41410         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41411         * tests/test-stat-time.c (nap): Separate assignment from call.
41412         Suggested by Paolo Bonzini and Bruno Haible.
41413
41414         sys_stat: guarantee struct timespec
41415         * lib/sys_stat.in.h (includes): Always include <time.h>
41416         * modules/sys_stat (Depends-on): Add time.
41417         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41418         mode_t permission values.
41419         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41420         get at subsecond timestamps.
41421
41422 2009-10-10  Eric Blake  <ebb9@byu.net>
41423
41424         futimens: new module
41425         * modules/futimens: New file.
41426         * lib/futimens.c (futimens): Likewise.
41427         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41428         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41429         we can work around Linux bugs.
41430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41431         * modules/sys_stat (Makefile.am): Substitute them.
41432         * lib/sys_stat.in.h (futimens): Declare it.
41433         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41434         * doc/posix-functions/futimens.texi (futimens): Likewise.
41435         * modules/futimens-tests: New test.
41436         * tests/test-futimens.c: Likewise.
41437
41438         utimens: introduce fdutimens
41439         * lib/utimens.h (fdutimens): New prototype.
41440         * lib/utimens.c (gl_futimens): Move guts...
41441         (fdutimens): ...to new interface.
41442         * tests/test-utimens.c (do_fdutimens): Use it.
41443
41444         utimens: add UTIME_NOW and UTIME_OMIT support
41445         * lib/utimens.c (validate_timespec, update_timespec): New helper
41446         functions.
41447         (gl_futimens, lutimens): Use them.
41448         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41449         stdbool, sys_stat.
41450         (Link): Mention resulting library dependency.
41451         * modules/utimecmp (Link): Likewise.
41452         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41453         (Makefile.am): Pick up library dependency.
41454         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41455         definition.
41456         * tests/test-sys_stat.c: Test the definitions.
41457         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41458         * NEWS: Document library dependency.
41459
41460         utimecmp: support symlink timestamps
41461         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41462         hashing when possible.  Use pathconf when available.
41463         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41464         * modules/utimecmp (Depends-on): Add lstat.
41465
41466         utimens: add lutimens interface
41467         * lib/utimens.c (lutimens): New function.
41468         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41469         * lib/utimens.h (lutimens): Declare new interface.
41470         * tests/test-utimens.c (main): Enhance test.
41471         * tests/test-lutimens.h (test_lutimens): New file.
41472         * modules/utimens-tests (Files): Distribute it.
41473         (Depends-on): Add symlink.
41474         (configure.ac): Check for usleep.
41475
41476         utimens: validate futimens usage
41477         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41478         fewer syscalls on failure later on.  Avoid compiler warning on
41479         mingw.
41480         * modules/utimens (Depends-on): Add dup2.
41481
41482         utimens: add test
41483         * modules/utimens-tests: New test.
41484         * tests/test-utimens.h: New file.
41485         * tests/test-futimens.h: Likewise.
41486         * tests/test-utimens.c: Likewise.
41487
41488         doc: mention timestamp portability issues
41489         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41490         instead.
41491         * doc/posix-functions/utime.texi (utime): Likewise.
41492         * doc/posix-functions/utimes.texi (utimes): Likewise.
41493         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41494         instead.
41495         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41496         module.
41497         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41498         Mention weakness with symlink timestamps.
41499         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41500         to utimensat/futimens instead.
41501         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41502
41503         test-dup2: enhance test
41504         * tests/test-dup2.c (main): Also check AT_FDCWD.
41505
41506         test-stat-time: avoid more spurious failures
41507         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41508         xfs; and avoid race if the two timestamps cross quantization edge.
41509
41510         relocatable: prefer 'file system' over 'filesystem'
41511         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41512         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41513         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41514         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41515         * lib/relocatable.c (compute_curr_prefix): Likewise.
41516
41517 2009-10-10  Jim Meyering  <meyering@redhat.com>
41518
41519         stat-time-tests: check for the usleep function
41520         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41521
41522 2009-10-10  Bruno Haible  <bruno@clisp.org>
41523
41524         * modules/xnanosleep: Put the Link section after the Include section.
41525
41526 2009-10-09  Eric Blake  <ebb9@byu.net>
41527
41528         dup2: work around FreeBSD 6.1 bug
41529         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41530         * doc/posix-functions/dup2.texi (dup2): Document it.
41531         Reported by Nelson H. F. Beebe and Jim Meyering.
41532
41533         test-stat-time: port to buggy NFS clients
41534         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41535         (test_ctime): Also skip test if mtime and ctime are skewed.
41536
41537         maint: prefer 'file system' over 'filesystem'
41538         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41539         * doc/posix-functions/lstat.texi (lstat): Likewise.
41540         * lib/file-has-acl.c (file_has_acl): Likewise.
41541         * lib/fwriteerror.c [TEST]: Likewise.
41542         * tests/test-areadlink.h (test_areadlink): Likewise.
41543         * tests/test-areadlinkat-with-size.c (main): Likewise.
41544         * tests/test-areadlinkat.c (main): Likewise.
41545         * tests/test-canonicalize-lgpl.c (main): Likewise.
41546         * tests/test-canonicalize.c (main): Likewise.
41547         * tests/test-fstatat.c (main): Likewise.
41548         * tests/test-linkat.c (main): Likewise.
41549         * tests/test-lstat.h (test_lstat_func): Likewise.
41550         * tests/test-mkdir.h (test_mkdir): Likewise.
41551         * tests/test-readlink.h (test_readlink): Likewise.
41552         * tests/test-remove.c (main): Likewise.
41553         * tests/test-rename.h (test_rename): Likewise.
41554         * tests/test-renameat.c (main): Likewise.
41555         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41556         * tests/test-symlink.h (test_symlink): Likewise.
41557         * tests/test-symlinkat.c (main): Likewise.
41558         * tests/test-unlink.h (test_unlink_func): Likewise.
41559         * tests/test-unlinkat.c (main): Likewise.
41560
41561         maint: make realtime library usage explicit
41562         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41563         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41564         * modules/settime (Link): Likewise.
41565         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41566
41567         test-stat-time: speed up execution
41568         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41569         warning on mingw.
41570         (nap): New helper function.
41571         (prepare_test): Use it to reduce sleep time.
41572         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41573         execution.
41574         * modules/stat-time-tests (configure.ac): Check for usleep.
41575
41576 2009-10-09  Jim Meyering  <meyering@redhat.com>
41577
41578         selinux-h: always use getfilecon wrappers
41579         * lib/getfilecon.c: New file.
41580         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41581         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41582         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41583         (fgetfilecon): Provide a stub.
41584         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41585         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41586         file unconditionally.
41587         When <selinux/selinux.h> is found, arrange to use wrappers.
41588         * modules/selinux-h (Files): Add getfilecon.c.
41589         (Makefile.am): Substitute include-next-related bits
41590         into the now-always-generated selinux/selinux.h file.
41591         * doc/glibc-functions/lgetfilecon.texi: New file.
41592         * doc/glibc-functions/fgetfilecon.texi: New file.
41593         * doc/glibc-functions/getfilecon.texi: New file.
41594         * doc/glibc-functions/getfilecon-desc.texi: New file.
41595         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41596         which to pull in the new files.
41597         * MODULES.html.sh (Misc): Add selinux-h.
41598
41599 2009-10-08  Jim Meyering  <meyering@redhat.com>
41600
41601         unistd: fix comment typo
41602         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41603
41604 2009-10-08  Eric Blake  <ebb9@byu.net>
41605
41606         areadlink: use SIZE_MAX consistently
41607         * modules/areadlink (Depends-on): Add stdint.
41608         * modules/areadlink-with-size (Depends-on): Likewise.
41609         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41610         gives NULL; drop sys/types, since unistd gives size_t; and add
41611         stdint for SIZE_MAX.
41612         (SIZE_MAX): Rely on headers.
41613         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41614         and add stdint.
41615         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41616         (SIZE_MAX): Likewise.
41617         (INITIAL_BUF_SIZE): Turn into enum.
41618         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41619
41620 2009-10-08  Jim Meyering  <meyering@redhat.com>
41621
41622         areadlinkat: avoid compilation failure
41623         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41624         Fix typo in comment.
41625
41626 2009-10-07  Eric Blake  <ebb9@byu.net>
41627
41628         areadlinkat-with-size: new module
41629         * modules/areadlinkat-with-size: New module.
41630         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41631         * lib/areadlink.h (areadlinkat): Declare it.
41632         * MODULES.html.sh (File system functions): Mention it.
41633         * modules/areadlinkat-with-size-tests: New test.
41634         * tests/test-areadlinkat-with-size.c: New file.
41635
41636         xreadlinkat: new module
41637         * modules/xreadlinkat: New module.
41638         * lib/xreadlinkat.c (xreadlinkat): New file.
41639         * lib/xreadlink.h (xreadlinkat): Declare it.
41640         * MODULES.html.sh (File system functions): Mention it.
41641
41642         areadlinkat: new module
41643         * lib/at-func.c (FUNC_FAIL): New define.
41644         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41645         * modules/areadlinkat: New module.
41646         * lib/linkat.c (areadlinkat): Move...
41647         * lib/areadlinkat.c (areadlinkat): ...to new file.
41648         * lib/areadlink.h (areadlinkat): Declare it.
41649         * modules/linkat (Depends-on): Add areadlinkat.
41650         * MODULES.html.sh (File system functions): Mention it.
41651         * modules/areadlinkat-tests: New test.
41652         * tests/test-areadlinkat.c: New file.
41653
41654         areadlink, areadlink-with-size: add tests
41655         * modules/areadlink-tests: New test.
41656         * modules/areadlink-with-size-tests: Likewise.
41657         * tests/test-areadlink.h: New file.
41658         * tests/test-areadlink.c: Likewise.
41659         * tests/test-areadlink-with-size.c: Likewise.
41660
41661         maint: minor cleanups
41662         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41663         _UNUSED_PARAMETER_ instead.
41664         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41665         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41666         * modules/linkat-tests (Files): Distribute test-link.h.
41667
41668         openat, utimens: whitespace cleanup
41669         * lib/openat.c: Prefer space throughout, rather than mix of 8
41670         spaces vs. tabs.
41671         * lib/at-func.c: Likewise.
41672         * lib/utimens.c: Likewise.
41673
41674         openat: avoid using wrong fd
41675         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41676         working directory chooses same fd.
41677         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41678
41679         mkdir, mkdirat: fix cygwin 1.5.x bug
41680         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41681         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41682         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41683         bug.
41684         (gl_PREREQ_MKDIR): Delete unused macro.
41685         * modules/mkdir (Files): Track file rename.
41686         (configure.ac): Update macro name.
41687         * modules/openat (Depends-on): Add mkdir.
41688         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41689
41690         mkdir, mkdirat: add tests
41691         * modules/mkdir-tests: New test.
41692         * tests/test-mkdir.h: New file.
41693         * tests/test-mkdir.c: Likewise.
41694         * tests/test-mkdirat.c: Likewise.
41695         * modules/openat-tests (Files): Add new files.
41696         (Makefile.am): Run new test.
41697
41698 2009-10-06  Eric Blake  <ebb9@byu.net>
41699
41700         doc: tweak *at function documentation
41701         * doc/posix-functions/faccessat.texi (faccessat): Mention
41702         known issue with replacement.
41703         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41704         * doc/posix-functions/linkat.texi (linkat): Likewise.
41705         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41706         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41707         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41708         * doc/posix-functions/renameat.texi (renameat): Likewise.
41709         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41710
41711         openat: fix GNU/Hurd bug in unlinkat
41712         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41713         broken.
41714         * doc/posix-functions/unlink.texi (unlink): Document this.
41715         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41716
41717         fdopendir: fix GNU/Hurd bug
41718         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41719         allowing non-directory fds.
41720         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41721         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41722         * modules/dirent (Makefile.am): Substitute it.
41723         * lib/dirent.in.h (fdopendir): Declare replacement.
41724         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41725         * tests/test-fdopendir.c (main): Test something other than
41726         /dev/null, since on Hurd that behaves like a directory.
41727
41728         test-symlink: port to GNU/Hurd
41729         * tests/test-symlink.h (test_symlink): Relax expected errno.
41730
41731         doc: tweak more cygwin information
41732         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41733         now compatible with glibc.
41734         * doc/posix-functions/getopt.texi (getopt): Likewise.
41735
41736         getopt-gnu: add another test
41737         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41738         guarantee behavior relied on by m4.
41739         * tests/test-getopt.c (main): Use it.
41740         * modules/getopt-posix-tests (Depends-on): Add setenv.
41741         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41742
41743         getopt: fix compilation on darwin
41744         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41745         include.
41746         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41747         Reported by Ludovic Courtès.
41748
41749 2009-10-06  Bruno Haible  <bruno@clisp.org>
41750
41751         * modules/size_max (Description): Discourage its use.
41752         Reported by Simon Josefsson.
41753
41754 2009-10-06  Jim Meyering  <meyering@redhat.com>
41755
41756         linkat: avoid compilation failure
41757         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41758
41759 2009-10-05  Eric Blake  <ebb9@byu.net>
41760
41761         linkat: support Linux 2.6.17
41762         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41763         linkat on Linux, but allow cache variable override.
41764         * lib/linkat.c (rpl_linkat): Define override.
41765         * modules/linkat (Depends-on): Add symlinkat.
41766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41767         * modules/unistd (Makefile.am): Substitute it.
41768         * lib/unistd.in.h (linkat): Declare replacement.
41769         Reported by Pádraig Brady.
41770
41771         quotearg: port test to systems with C.UTF-8 locale
41772         * tests/test-quotearg.c (struct result_strings): Add another
41773         member, differentiating between C.ASCII and C.UTF-8 handling.
41774         (compare_strings): Add parameter.
41775         (main): Adjust all callers.
41776
41777         getopt: avoid clash with FreeBSD _getopt_internal
41778         * lib/getopt.in.h (_getopt_internal): Override the name.
41779         * lib/getopt_int.h (includes): Pick up any overrides.
41780         Reported by Reuben Thomas.
41781
41782         hash: allow C89 compilation
41783         * lib/hash.c (check_tuning): Move declaration before statement.
41784         Reported by Reuben Thomas.
41785
41786 2009-10-05  Karl Berry  <karl@gnu.org>
41787
41788         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41789
41790 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41791             Bruno Haible  <bruno@clisp.org>
41792
41793         * lib/uname.c (uname): Use a table-driven algorithm to compute
41794         Windows NT versions.
41795
41796 2009-10-04  Bruno Haible  <bruno@clisp.org>
41797
41798         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41799         program_invocation_short_name.
41800         * modules/progname (configure.ac): Test for presence of
41801         program_invocation_short_name.
41802         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41803
41804 2009-10-04  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/progname.c (set_program_name): Fix comment.
41807         Reported by Jim Meyering.
41808
41809 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41810             Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/uname.c: Include <string.h>.
41813         (uname): Do only one call to GetVersionEx in the common case.
41814
41815 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41816             Bruno Haible  <bruno@clisp.org>
41817
41818         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41819         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41820         (uname): Add support for Windows CE and various non-x86 CPU types.
41821
41822 2009-10-03  Bruno Haible  <bruno@clisp.org>
41823
41824         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41825         invocation to tests/configure.ac.
41826         Reported by Ian Beckwith <ianb@erislabs.net>.
41827
41828 2009-10-02  Eric Blake  <ebb9@byu.net>
41829
41830         fchdir: avoid compiler warning
41831         * lib/fchdir.c (canonicalize_file_name)
41832         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41833
41834         test-open: support mingw errno values
41835         * tests/test-open.h (test_open): Relax test.
41836         * tests/test-fopen.h (test_fopen): Likewise.
41837         * tests/test-openat-safer.c (main): Likewise.
41838
41839         open: fix opening directory on mingw
41840         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41841
41842         test-open: on GNU/Hurd, /dev/null is a directory
41843         * tests/test-fopen.h (main): Rename...
41844         (test_fopen): ...to this.  Use a guaranteed non-directory when
41845         confirming open behavior on trailing slash.
41846         * tests/test-openat-safer.c (main): Likewise.
41847         * tests/test-open.h (main): Likewise....
41848         (test_open): ...to this.
41849         * tests/test-fopen.c (main): Adjust caller.
41850         * tests/test-fopen-safer.c (main): Likewise.
41851         * tests/test-open.c (main): Likewise.
41852         * tests/test-fcntl-safer.c (main): Likewise.
41853         Reported by Samuel Thibault.
41854
41855         rename, fchdir: don't ignore chdir failure
41856         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41857         * lib/rename.c (rpl_rename) [W32]: Likewise.
41858         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41859         an empty destination directory if source cannot be renamed,
41860         although there is still possibility for failure.
41861         * doc/posix-functions/rename.texi (rename): Document the race.
41862         Reported by Jim Meyering.
41863
41864         maint: cleanup whitespace in recent commits
41865         * lib/rename.c (rpl_rename): Remove tabs.
41866         * tests/test-link.h (test_link): Likewise.
41867         * lib/fchdir.c (get_name): Likewise.
41868         Reported by Jim Meyering.
41869
41870 2009-10-02  Ben Pfaff  <blp@gnu.org>
41871
41872         relocatable-prog-wrapper: Add missing dependency on
41873         double-slash-root.
41874         * modules/relocatable-prog-wrapper: Add dependency.
41875         Reported by Ian Beckwith <ianb@erislabs.net>.
41876
41877 2009-10-02  Eric Blake  <ebb9@byu.net>
41878
41879         renameat: fix Solaris bugs
41880         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41881         needed fixing.
41882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41883         * modules/stdio (Makefile.am): Substitute it.
41884         * lib/stdio.in.h (renameat): Declare replacement.
41885         * lib/renameat.c (rpl_renameat): Implement fix.
41886
41887         renameat: new module
41888         * modules/renameat: New file.
41889         * lib/renameat.c (renameat): Likewise.
41890         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41892         * modules/stdio (Makefile.am): Substitute them.
41893         * lib/stdio.in.h (renameat): Declare it.
41894         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41895         * doc/posix-functions/renameat.texi (renameat): Likewise.
41896         * modules/renameat-tests: New test.
41897         * tests/test-renameat.c: Likewise.
41898
41899         rename: fix mingw bugs
41900         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41901         directory overwrite bugs.
41902
41903         rename: fix another cygwin 1.5 bug
41904         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41905         checks.
41906         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41907         unnecessary cygwin workarounds.  Also work around bug with moving
41908         full directory onto an empty one.
41909         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41910
41911         rename-dest-slash: merge into rename module
41912         * modules/rename-dest-slash (Status): Mark obsolete.
41913         (Depends-on): Add rename.
41914         (Files): Let rename do it all.
41915         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41916         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41917         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41918         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41919         * lib/rename.c (rpl_rename): Update comments.
41920
41921         rename: fix cygwin 1.5.x bugs
41922         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41923         * lib/rename.c (rpl_rename): Work around them.
41924         * modules/rename (Depends-on): Add same-inode.
41925
41926         rename: fix Solaris 10 bug
41927         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41928         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41929         was the only bug.
41930
41931         rename: fix Solaris 9 bug
41932         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41933         on non-directory.  Avoid calling exit.
41934         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41935         strdup.
41936         * modules/rename-tests (Depends-on): Drop lstat.
41937         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41938         (gl_PREREQ_RENAME): Delete unused macro.
41939
41940         rename-dest-slash: fix NetBSD bug
41941         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41942         links.
41943         * modules/rename-dest-slash (Depends-on): Add same-inode.
41944
41945         rename-tests: new test, exposes several platform bugs
41946         * modules/rename-tests: New file.
41947         * tests/test-rename.h: Likewise.
41948         * tests/test-rename.c: Likewise.
41949         * doc/posix-functions/rename.texi (rename): Improve documentation,
41950         including bugs that will eventually be fixed in gnulib.
41951
41952 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41953
41954         * lib/uname.c: Include <stdlib.h>
41955         (uname): Assume version info is available.
41956
41957 2009-10-02  Jim Meyering  <meyering@redhat.com>
41958
41959         gnu-web-doc-update: correct --help output
41960         * build-aux/gnu-web-doc-update: Make --help output relevant.
41961
41962         gnu-web-doc-update: add standard options
41963         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41964
41965         gnu-web-doc-update: New module.
41966         Use this script to automatically update the on-line web documentation
41967         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41968         * modules/gnu-web-doc-update: New file, from coreutils.
41969         * build-aux/gnu-web-doc-update: New script.
41970
41971 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41972
41973         link: LoadLibrary is not needed.
41974         * lib/link.c: Use GetModuleHandle.
41975
41976 2009-10-01  Eric Blake  <ebb9@byu.net>
41977
41978         getopt: bump serial number
41979         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41980         change.
41981
41982         tests: tighten link, rmdir, and remove tests
41983         * tests/test-link.h (includes): No need to use <config.h> here.
41984         Clean up if directory hard link was created, otherwise test for
41985         trailing '.'.
41986         * tests/test-linkat.c (main): Simplify.
41987         * tests/test-remove.c (main): Enhance test for trailing '.'.
41988         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41989
41990 2009-10-01  Jim Meyering  <meyering@redhat.com>
41991
41992         maint.mk: requiring "make major" was annoying, for a "minor" release.
41993         What is intended is "stable", to contrast with alpha and beta,
41994         so require "make stable", not "make major".
41995         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41996         (get_tool_versions): Likewise.
41997         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41998
41999 2009-09-30  Ben Pfaff  <blp@gnu.org>
42000
42001         Fix broken build of replacement for Windows tmpfile().
42002         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42003         flags argument added along with the 'mkostemp' module.
42004
42005 2009-09-28  Bruno Haible  <bruno@clisp.org>
42006
42007         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42008         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42009         to 'remove_elt'.
42010         (gl_list_remove): Update.
42011         * lib/gl_list.c (gl_list_remove): Update.
42012         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42013         to 'remove_elt'.
42014         (gl_oset_remove): Update.
42015         * lib/gl_list.c (gl_oset_remove): Update.
42016         Reported by Eric Blake.
42017
42018 2009-09-28  Eric Blake  <ebb9@byu.net>
42019
42020         doc: mention yet more cygwin 1.7 status
42021         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42022         cygwin.
42023         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42024         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42025
42026         argp: fix test failure
42027         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42028         that are not upper-case.  Pass correct range to tolower.
42029
42030 2009-09-27  Jim Meyering  <meyering@redhat.com>
42031
42032         test-yesno: work around sparc-dash here-document infelicity
42033         Without this change, the literal \177 byte in a here document
42034         would make dash 0.5.5.1-3 access uninitialized memory.
42035         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42036         Instead, use a marker, "@", and filter through tr to create the desired
42037         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42038
42039 2009-09-27  Bruno Haible  <bruno@clisp.org>
42040
42041         Disable untested support for new flavours of ACLs on AIX.
42042         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42043         progress.
42044         * lib/set-mode-acl.c (qset_acl): Likewise.
42045
42046 2008-12-07  Bruno Haible  <bruno@clisp.org>
42047
42048         Add support for new flavours of ACLs on AIX. (Untested.)
42049         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42050         (file_has_acl): Add support for newer AIX.
42051         * lib/set-mode-acl.c (qset_acl): Likewise.
42052         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42053         Rainer Tammer <tammer@tammer.net>.
42054
42055 2009-09-26  Eric Blake  <ebb9@byu.net>
42056
42057         argp: fix compilation of getopt
42058         * lib/getopt.in.h (includes): Use different guard than glibc.
42059         Reported by Sergey Poznyakoff.
42060
42061         doc: mention more cygwin 1.7 status
42062         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42063         bug.
42064         * doc/posix-functions/execl.texi (execl): Likewise.
42065         * doc/posix-functions/execle.texi (execle): Likewise.
42066         * doc/posix-functions/execlp.texi (execlp): Likewise.
42067         * doc/posix-functions/execv.texi (execv): Likewise.
42068         * doc/posix-functions/execve.texi (execve): Likewise.
42069         * doc/posix-functions/execvp.texi (execvp): Likewise.
42070         * doc/glibc-functions/canonicalize_file_name.texi
42071         (canonicalize_file_name): Cygwin 1.7 now provides this.
42072         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42073         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42074         on AT_SYMLINK_NOFOLLOW.
42075
42076 2009-09-24  Eric Blake  <ebb9@byu.net>
42077
42078         test-linkat: make test more robust
42079         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42080
42081         getopt: fix inclusion guards for cygwin
42082         * modules/getopt-posix (Depends-on): Add include-next.
42083         (Makefile.am): Substitute more items in replacement header.
42084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42085         <getopt.h>.
42086         * lib/getopt.in.h (includes): Use split inclusion guard, and
42087         prefer <getopt.h> over include <unistd.h> when one is present.
42088         (option): Also override name of 'struct option'.
42089
42090         same-inode: revert prior change; it is not yet ready
42091         * NEWS: Undo mention of this change.
42092         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42093         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42094         * lib/cycle-check.c (cycle_check): Likewise.
42095         * lib/same.c (same_name): Likewise.
42096         * lib/at-func2.c (at_func2): Likewise.
42097
42098 2009-09-23  Eric Blake  <ebb9@byu.net>
42099
42100         linkat: new module
42101         * modules/linkat: New file.
42102         * lib/at-func2.c (at_func2): Likewise.
42103         * lib/linkat.c (linkat): Likewise.
42104         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42105         * lib/openat-priv.h (at_func2): Add declaration.
42106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42107         * modules/unistd (Makefile.am): Substitute them.
42108         * lib/unistd.in.h (linkat): Declare it.
42109         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42110         * doc/posix-functions/linkat.texi (linkat): Likewise.
42111         * doc/posix-functions/link.texi (link): Tweak wording.
42112         * tests/test-link.c (main): Move guts...
42113         * tests/test-link.h (test_link): ...into new file.
42114         * modules/linkat-tests: New test.
42115         * tests/test-linkat.c: Likewise.
42116         * modules/link-tests (Files): Ship new file.
42117         (Depends-on): Add stdbool.
42118
42119         dirname: add library-safe mdir_name
42120         * lib/dirname.h (mdir_name): New prototype.
42121         * lib/dirname.c (dir_name): Move guts...
42122         (mdir_name): ...to new function that avoids xalloc_die.
42123
42124         fchdir: another mingw fix
42125         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42126         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42127         on mingw (where it has not yet been ported), and make it optional
42128         elsewhere.
42129         (_gl_register_fd): Use it.
42130
42131         same-inode: make SAME_INODE tri-state, to port to mingw
42132         * NEWS: Mention this change.
42133         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42134         st_ino always being 0.
42135         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42136         * lib/cycle-check.c (cycle_check): Likewise.
42137         * lib/same.c (same_name): Likewise.
42138
42139         lstat: avoid mingw compilation error
42140         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42141         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42142         lstat ourselves.
42143         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42144         was adequate.
42145         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42146         the checks for lstat.
42147         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42148
42149         link: fix test failure on Solaris 9
42150         * lib/link.c (rpl_link): Don't assume link will catch bogus
42151         trailing slash on source.
42152
42153         test-symlinkat: enhance test
42154         * tests/test-readlink.c (main): Move guts...
42155         * tests/test-readlink.h (test_readlink): ...into new file.
42156         * tests/test-symlink.c (main): Move guts...
42157         * tests/test-symlink.h (test_symlink): ...into new file.
42158         * tests/test-symlinkat.c (main): Use new files for further
42159         coverage.
42160         (do_symlink, do_readlink): New helper functions.
42161         * modules/symlink-tests (Files): Ship new file.
42162         (Depends-on): Add stdbool.
42163         * modules/readlink-tests (Files): Ship new file.
42164         (Depends-on): Add stdbool.
42165         * modules/symlinkat-tests (Files): Use new files.
42166
42167 2009-09-23  Eric Blake  <ebb9@byu.net>
42168
42169         readlink: document portability issue with symlink length
42170         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42171         systems have bogus st_size on symlinks, and mention the
42172         areadlink-with-size module.
42173         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42174         * doc/posix-functions/readlink.texi (readlink): Mention the
42175         areadlink module, and ERANGE failure.
42176         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42177         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42178
42179         readlink: fix Solaris 9 bug with trailing slash
42180         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42181         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42182         * doc/posix-functions/readlink.texi (readlink): Document this.
42183         * modules/readlink-tests: New test.
42184         * tests/test-readlink.c: Likewise.
42185
42186         readlink: fix cygwin 1.5.x bug with return type
42187         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42188         * lib/unistd.in.h (readlink): Use ssize_t.
42189         * lib/readlink.c (readlink): Likewise.
42190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42191         * modules/unistd (Makefile.am): Substitute it.
42192         * lib/unistd.in.h (readlink): Declare replacement.
42193         * doc/posix-functions/readlink.texi (readlink): Document this.
42194
42195         symlink: use throughout gnulib
42196         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42197         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42198         symlink is not used.
42199         * modules/symlinkat (Depends-on): Add symlink.
42200         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42201         * modules/canonicalize-tests (Depends-on): Likewise.
42202         * modules/lstat-tests (Depends-on): Likewise.
42203         * modules/openat-tests (Depends-on): Likewise.
42204         * modules/remove-tests (Depends-on): Likewise.
42205         * modules/rmdir-tests (Depends-on): Likewise.
42206         * modules/unlink-tests (Depends-on): Likewise.
42207         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42208         * tests/test-canonicalize.c (symlink): Likewise.
42209         * tests/test-fstatat.c (symlink): Likewise.
42210         * tests/test-lstat.c (symlink): Likewise.
42211         * tests/test-remove.c (symlink): Likewise.
42212         * tests/test-rmdir.c (symlink): Likewise.
42213         * tests/test-unlink.c (symlink): Likewise.
42214         * tests/test-unlinkat.c (symlink): Likewise.
42215
42216         symlink: new module, for Solaris 9 bug
42217         * modules/symlink: New file.
42218         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42219         * lib/symlink.c: Likewise.
42220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42221         * modules/unistd (Makefile.am): Substitute them.
42222         * lib/unistd.in.h (symlink): Declare replacement.
42223         * MODULES.html.sh (File system functions): Mention it.
42224         * doc/posix-functions/symlink.texi (symlink): Likewise.
42225         * modules/symlink-tests: New test.
42226         * tests/test-symlink.c: Likewise.
42227
42228 2009-09-23  Bruno Haible  <bruno@clisp.org>
42229
42230         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42231         when needed.
42232         Test case: gnulib-tool --import --with-tests atexit inttypes.
42233         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42234
42235 2009-09-23  Bruno Haible  <bruno@clisp.org>
42236
42237         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42238         subcommand, not in a subshell.
42239
42240 2009-09-22  Eric Blake  <ebb9@byu.net>
42241
42242         unistd: sort replacement declarations
42243         * lib/unistd.in.h: Sort declarations.
42244
42245         open, openat: minor optimization
42246         * lib/open.c (open): If open succeeded, len is non-zero.
42247         * lib/openat.c (rpl_openat): Likewise.
42248
42249         link-follow: ensure correct result
42250         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42252         distinguish between possible failures.
42253
42254 2009-09-21  Eric Blake  <ebb9@byu.net>
42255
42256         fts: avoid compiler warning
42257         * lib/fts.c (dirent_inode_sort_may_be_useful)
42258         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42259
42260 2009-09-19  Bruno Haible  <bruno@clisp.org>
42261
42262         * lib/progreloc.c (canonicalize_file_name): New declaration.
42263
42264 2009-09-19  Eric Blake  <ebb9@byu.net>
42265
42266         link: fix quoting
42267         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42268
42269         openat: fix openat bugs on Solaris 9
42270         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42271         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42272         * modules/openat (Depends-on): Add open.
42273         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42274         * modules/fcntl-h (Makefile.am): Substitute it.
42275         * lib/fcntl.in.h (openat): Declare replacement.
42276         * doc/posix-functions/openat.texi (openat): Document this.
42277
42278         openat: move fstatat and unlinkat into correct files
42279         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42280         compiled.
42281         * lib/openat.c (fstatat, unlinkat): Move...
42282         * lib/fstatat.c (fstatat): ...into correct files.
42283         * lib/unlinkat.c (unlinkat): Likewise.
42284
42285         openat: fix unlinkat bugs on Solaris 9
42286         * lib/unlinkat.c (unlinkat): New file.
42287         * modules/openat (Depends-on): Add unlink.
42288         (Files): Distribute it.
42289         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42290         trailing slash behavior is broken.
42291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42292         * modules/unistd (Makefile.am): Substitute it.
42293         * lib/unistd.in.h (unlinkat): Declare replacement.
42294         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42295
42296         openat: fix fstatat bugs on Solaris 9
42297         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42298         stat.
42299         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42300
42301         test-unlinkat: enhance test, to expose Solaris 9 bug
42302         * tests/test-unlink.c (main): Factor guts...
42303         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42304         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42305         * tests/test-rmdir.c (main): Adjust caller.
42306         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42307         (unlinker): New helper function.
42308         (rmdirat): Enhance check.
42309         * modules/rmdir-tests (Depends-on): Add stdbool.
42310         * modules/unlink-tests (Depends-on): Likewise.
42311         (Files): Add test-unlink.h.
42312         * modules/openat-tests (Files): Likewise.
42313         (Depends-on): Add unlinkdir.
42314
42315         test-fstatat: new test, to expose Solaris 9 bugs
42316         * tests/test-stat.c (main): Factor guts...
42317         * tests/test-stat.h (test_stat_func): ...into new file.
42318         * tests/test-lstat.c (main): Factor guts...
42319         * tests/test-lstat.h (test_lstat_func): ...into new file.
42320         * tests/test-fstatat.c: New file.
42321         * modules/stat-tests (Files): Add test-stat.h.
42322         * modules/lstat-tests (Files): Add test-lstat.h.
42323         (Depends-on): Add stdbool.
42324         * modules/openat-tests (Depends-on): Add pathmax.
42325         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42326         (Makefile.am): Run new test.
42327
42328         remove: new module, for mingw and Solaris 9 bugs
42329         * modules/remove: New file.
42330         * lib/remove.c: Likewise.
42331         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42332         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42333         * modules/stdio (Makefile.am): Use them.
42334         * lib/stdio.in.h (remove): Declare replacement.
42335         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42336         * doc/posix-functions/remove.texi (remove): Likewise.
42337         * modules/remove-tests: New test.
42338         * tests/test-remove.c: Likewise.
42339
42340         unlink: new module, for Solaris 9 bug
42341         * modules/unlink: New file.
42342         * lib/unlink.c: Likewise.
42343         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42345         * modules/unistd (Makefile.am): Use them.
42346         * lib/unistd.in.h (stat): Declare replacement.
42347         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42348         * doc/posix-functions/unlink.texi (unlink): Likewise.
42349         * modules/unlink-tests: New test.
42350         * tests/test-unlink.c: Likewise.
42351
42352         lstat: fix Solaris 9 bug
42353         * lib/lstat.c (lstat): Also check for trailing slash on
42354         non-symlink, non-directories.  Use stat module to simplify logic.
42355         * doc/posix-functions/lstat.texi (lstat): Document it.
42356         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42357         (configure.ac): Check for symlink.
42358         * tests/test-lstat.c (main): Add more tests.
42359
42360         stat: add as dependency to other modules
42361         * modules/chown (Depends-on): Add stat.
42362         * modules/euidaccess (Depends-on): Likewise.
42363         * modules/fchdir (Depends-on): Likewise.
42364         * modules/isdir (Depends-on): Likewise.
42365         * modules/link (Depends-on): Likewise.
42366         * modules/lstat (Depends-on): Likewise.
42367         * modules/mkdir-p (Depends-on): Likewise.
42368         * modules/modechange (Depends-on): Likewise.
42369         * modules/open (Depends-on): Likewise.
42370         * modules/readlink (Depends-on): Likewise.
42371         * modules/same (Depends-on): Likewise.
42372
42373         stat: fix Solaris 9 bug
42374         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42375         slash.
42376         * lib/stat.c (rpl_stat): Work around it.
42377         * doc/posix-functions/stat.texi (stat): Update documentation.
42378
42379         stat: new module, for mingw bug
42380         * modules/stat: New file.
42381         * lib/stat.c: Likewise.
42382         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42384         * modules/sys_stat (Makefile.am): Use them.
42385         * lib/sys_stat.in.h (stat): Declare replacement.
42386         * lib/openat.c (fstatat): Deal with lstat and stat being function
42387         macros.
42388         * modules/openat (Depends-on): Add inline.
42389         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42390         * doc/posix-functions/stat.texi (stat): Likewise.
42391         * modules/stat-tests: New test.
42392         * tests/test-stat.c: Likewise.
42393
42394 2009-09-19  Jim Meyering  <meyering@redhat.com>
42395
42396         syntax-check: detect unnecessary inclusion of canonicalize.h
42397         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42398
42399 2009-09-19  Eric Blake  <ebb9@byu.net>
42400
42401         canonicalize-lgpl: adjust clients to use correct header
42402         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42403         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42404         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42405         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42406         * lib/progreloc.c (includes): Likewise.
42407
42408 2009-09-19  Jim Meyering  <meyering@redhat.com>
42409
42410         test-posixtm.c: correct a comment
42411         * tests/test-posixtm.c: Correct first-line comment.
42412         Spotted by Eric Blake.
42413
42414 2009-09-16  Jim Meyering  <meyering@redhat.com>
42415
42416         posixtm-tests: make T const-correct; add a test case
42417         * tests/test-posixtm.c (T): Declare const.
42418         Add a test for -(2^31+1).
42419         Remove useless can-succeed-only-in-2002 test.
42420
42421         posixtm-tests: adjust the sole failing test
42422         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42423         expected output matches what mktime now produces.  Cross-checked via
42424         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42425
42426         posixtm: move #ifdef'd tests into a new module
42427         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42428         * tests/test-posixtm.c: ... this new file.
42429         * modules/posixtm-tests: New module.
42430
42431 2009-09-19  Eric Blake  <ebb9@byu.net>
42432
42433         openat: simplify use of at-func.c
42434         * lib/at-func.c (includes): Include prerequisites here, to
42435         simplify requirements on client files.
42436         * lib/openat-priv.h: Add double-inclusion guard.
42437         * lib/faccessat.c (includes): Simplify.
42438         * lib/fchmodat.c (includes): Likewise.
42439         * lib/fchownat.c (includes): Likewise.
42440         * lib/mkdirat.c (includes): Likewise.
42441         * lib/mkfifoat.c (includes): Likewise.
42442         * lib/symlinkat.c (includes): Likewise.
42443
42444         openat: allow return of fd 0
42445         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42446         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42447         unistd-safer.
42448         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42449         <fcntl.h>; this module does not leak fds.
42450         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42451         must be allowed to return 0, leaving openat_safer to add the
42452         safety.
42453         (openat_permissive): Avoid writing to just-opened fd 2 if
42454         restoring the current directory fails.
42455         * lib/openat-die.c (openat_restore_fail): Add comment.
42456         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42457         (save_cwd): Guarantee safe fd, but without use of open_safer.
42458         * tests/test-openat.c: New test.
42459         * modules/openat-tests (Files, Makefile.am): Distribute and build
42460         new file.
42461
42462         relocatable-prog-wrapper: fix build
42463         * modules/relocatable-prog-wrapper (Files): Update name of
42464         canonicalize m4 file, broken on 2009-09-17.
42465         Reported by emad hajjar <aleppos@hotmail.com>.
42466
42467 2009-09-19  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42470         * lib/safe-alloc.c: Likewise.
42471         Reported by Ian Beckwith <ianb@erislabs.net>.
42472
42473 2009-09-18  Bruno Haible  <bruno@clisp.org>
42474
42475         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42476         Reported by <erobles@sensacd.com.mx>.
42477
42478 2009-09-17  Eric Blake  <ebb9@byu.net>
42479
42480         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42481         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42482         slashes when checking if last component is missing.
42483         * tests/test-canonicalize.c (main): Test this.
42484
42485         canonicalize, canonicalize-lgpl: honor // if distinct from /
42486         * modules/canonicalize (Files): Add double-slash-root.m4.
42487         * modules/canonicalize-lgpl (Files): Likewise.
42488         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42489         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42490         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42491         fallback definition.
42492         (canonicalize_filename_mode): Use it to protect //.
42493         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42494         (__realpath): Likewise.
42495         * tests/test-canonicalize.c (main): Test this.
42496         * tests/test-canonicalize-lgpl.c (main): Likewise.
42497         * modules/canonicalize-tests (Depends-on): Add same-inode.
42498         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42499
42500         canonicalize-lgpl: fix glibc bug with trailing slash
42501         * m4/canonicalize-lgpl.m4: Move contents...
42502         * m4/canonicalize.m4: ...here.
42503         (gl_CANONICALIZE_LGPL): Factor realpath check...
42504         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42505         glibc 2.3.5 bug, fixed 2005-04-27.
42506         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42507         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42508         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42509         * modules/canonicalize-lgpl (Files): Manage file rename.
42510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42511         * modules/stdlib (Makefile.am): Substitute witness.
42512         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42513         is needed.
42514         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42515         replacement is required.
42516         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42517         * doc/glibc-functions/canonicalize_file_name.texi
42518         (canonicalize_file_name): Document this.
42519         * doc/posix-functions/realpath.texi (realpath): Likewise.
42520
42521         canonicalize-lgpl: reject non-directory with trailing slash
42522         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42523         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42524         catches failures in glibc 2.3.5.
42525         * tests/test-canonicalize.c (main): Likewise.
42526
42527         canonicalize-lgpl: use native realpath if it works
42528         * lib/canonicalize-lgpl.c (realpath): Guard with
42529         FUNC_REALPATH_WORKS.
42530         * lib/stdlib.in.h (realpath): Make declaration optional based on
42531         HAVE_REALPATH.
42532         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42533         native realpath works.
42534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42535         * modules/stdlib (Makefile.am): Substitute witness.
42536
42537         canonicalize, canonicalize-lgpl: use <stdlib.h>
42538         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42539         (Include): Mention <stdlib.h>.
42540         (configure.ac): Mention functions we provide.
42541         * modules/canonicalize (configure.ac): Likewise.
42542         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42543         realpath if canonicalize_file_name is missing.
42544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42545         * modules/stdlib (Makefile.am): Substitute witnesses.
42546         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42547         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42548         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42549         * NEWS: Document this.
42550         * doc/glibc-functions/canonicalize_file_name.texi
42551         (canonicalize_file_name): Likewise.
42552         * doc/posix-functions/realpath.texi (realpath): Likewise.
42553         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42554
42555         test-canonicalize: consolidate into single C program
42556         * tests/test-canonicalize.sh: Delete; move setup into...
42557         * tests/test-canonicalize.c (main): ...the program, making it
42558         easier to run in debugger.  Add some tests.
42559         * modules/canonicalize-tests (Files): Remove unused file.
42560         (Depends-on): Add progname.
42561         (configure.ac, Makefile.am): Simplify.
42562
42563         test-canonicalize-lgpl: consolidate into single C program
42564         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42565         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42566         easier to run in debugger.  Add some tests.
42567         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42568         (configure.ac, Makefile.am): Simplify.
42569
42570         canonicalize: avoid resolvepath
42571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42572         unnecessary checks.
42573         * lib/canonicalize.c (includes): Simplify.
42574         (canonicalize_file_name): Drop resolvepath implementation.
42575         * modules/canonicalize (Depends-on): Drop filenamecat.
42576
42577         canonicalize: don't lose errno
42578         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42579         over calls to free.
42580
42581         canonicalize: simplify errno handling
42582         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42583         assignment.
42584
42585         canonicalize, canonicalize-lgpl: update module dependencies
42586         * modules/canonicalize (Depends-on): Add extensions, lstat,
42587         pathmax, stdlib.
42588         (Files): Drop pathmax.h.
42589         (configure.ac): Adjust macro name.
42590         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42591         lstat, stdlib, sys_stat.
42592         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42593         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42594         extensions.
42595         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42596         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42597         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42598         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42599         declaration, if available.
42600         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42601         we can rely on the readlink module.
42602         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42603         (includes): Use <unistd.h> unconditionally.
42604
42605 2009-09-17  Eric Blake  <ebb9@byu.net>
42606
42607         maint: make Include sections of modules consistent
42608         * modules/alloca: Use only header name; no need to list #include.
42609         * modules/alloca-opt: Likewise.
42610         * modules/arpa_inet: Likewise.
42611         * modules/canon-host: Likewise.
42612         * modules/configmake: Likewise.
42613         * modules/dirent: Likewise.
42614         * modules/eealloc: Likewise.
42615         * modules/environ: Likewise.
42616         * modules/fchdir: Likewise.
42617         * modules/fcntl: Likewise.
42618         * modules/fcntl-h: Likewise.
42619         * modules/gethrxtime: Likewise.
42620         * modules/gettime: Likewise.
42621         * modules/ignore-value: Likewise.
42622         * modules/inet_ntop: Likewise.
42623         * modules/inet_pton: Likewise.
42624         * modules/inttypes: Likewise.
42625         * modules/isnand-nolibm: Likewise.
42626         * modules/isnanf-nolibm: Likewise.
42627         * modules/mbchar: Likewise.
42628         * modules/mbfile: Likewise.
42629         * modules/mbiter: Likewise.
42630         * modules/mbuiter: Likewise.
42631         * modules/netdb: Likewise.
42632         * modules/netinet_in: Likewise.
42633         * modules/nproc: Likewise.
42634         * modules/pagealign_alloc: Likewise.
42635         * modules/poll: Likewise.
42636         * modules/printf-frexp: Likewise.
42637         * modules/pthread: Likewise.
42638         * modules/putenv: Likewise.
42639         * modules/random_r: Likewise.
42640         * modules/relocatable-prog: Likewise.
42641         * modules/search: Likewise.
42642         * modules/select: Likewise.
42643         * modules/selinux-h: Likewise.
42644         * modules/settime: Likewise.
42645         * modules/signal: Likewise.
42646         * modules/size_max: Likewise.
42647         * modules/socklen: Likewise.
42648         * modules/ssize_t: Likewise.
42649         * modules/stdarg: Likewise.
42650         * modules/stdbool: Likewise.
42651         * modules/stddef: Likewise.
42652         * modules/stdint: Likewise.
42653         * modules/stdio: Likewise.
42654         * modules/stdlib: Likewise.
42655         * modules/string: Likewise.
42656         * modules/strings: Likewise.
42657         * modules/sys_file: Likewise.
42658         * modules/sys_ioctl: Likewise.
42659         * modules/sys_select: Likewise.
42660         * modules/sys_socket: Likewise.
42661         * modules/sys_stat: Likewise.
42662         * modules/sys_time: Likewise.
42663         * modules/sys_times: Likewise.
42664         * modules/sys_utsname: Likewise.
42665         * modules/sys_wait: Likewise.
42666         * modules/sysexits: Likewise.
42667         * modules/time: Likewise.
42668         * modules/times: Likewise.
42669         * modules/tmpfile: Likewise.
42670         * modules/trim: Likewise.
42671         * modules/unistd: Likewise.
42672         * modules/wchar: Likewise.
42673         * modules/wctype: Likewise.
42674
42675 2009-09-17  Bruno Haible  <bruno@clisp.org>
42676
42677         Make getdate.y compile on QNX and NetBSD 5 / i386.
42678         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42679         TIME_T_FITS_IN_LONG_INT.
42680         * lib/getdate.y (long_time_t): New type.
42681         (relative_time): Change type of 'seconds' field to long_time_t.
42682         (get_date): Update types of local variables. Check against overflow
42683         during conversion from long_time_t to time_t.
42684         Reported by Matt Kraai <kraai@ftbfs.org>
42685         and Hasso Tepper <hasso@netbsd.org>.
42686
42687 2009-09-17  Bruno Haible  <bruno@clisp.org>
42688
42689         * modules/COPYING: Update copyright years.
42690         * modules/README: Likeiwse.
42691         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42692         Reported by Ian Beckwith <ianb@erislabs.net>.
42693
42694 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42695
42696         * users.txt: Update references for gnuit package.
42697
42698 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42699
42700         * m4/getdelim.m4: Fix typo in copyright line.
42701
42702 2009-09-17  Bruno Haible  <bruno@clisp.org>
42703
42704         * lib/atoll.c: Use the standard header with GPL copyright.
42705         * lib/argz.in.h: Likewise.
42706         * lib/glob.c: Likewise.
42707         * lib/glob-libc.h: Likewise.
42708         * lib/random_r.c: Likewise.
42709         * lib/siglist.h: Likewise.
42710         * lib/strsignal.c: Likewise.
42711         Reported by Ian Beckwith <ianb@erislabs.net>.
42712
42713 2009-09-17  Eric Blake  <ebb9@byu.net>
42714
42715         rmdir: ensure correct dependency order
42716         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42717
42718 2009-09-17  Bruno Haible  <bruno@clisp.org>
42719
42720         Disable assertion that fails on NetBSD 5 / i386.
42721         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42722         Reported by Sam Steingold <sds@gnu.org>
42723         and Hasso Tepper <hasso@netbsd.org>.
42724
42725 2009-09-16  Eric Blake  <ebb9@byu.net>
42726
42727         unlinkdir: port to mingw
42728         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42729         on which no one can unlink a directory.
42730
42731         stdlib: sort witness names
42732         * modules/stdlib (Makefile.am): Sort replacements.
42733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42734         * lib/stdlib.in.h: Likewise.
42735
42736         parse-duration-tests: avoid link failure
42737         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42738         LIBINTL.
42739         Reported by Tom G. Christensen.
42740
42741         openat-tests: ensure unlinkat behaves like rmdir
42742         * tests/test-rmdir.c (main): Factor guts...
42743         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42744         * modules/rmdir-tests (Files): Ship new file.
42745         * modules/openat-tests: New test.
42746         * tests/test-unlinkat.c: Likewise.
42747
42748         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42749         * modules/rmdir-errno (Status, Notice): Now obsolete.
42750
42751         rmdir: work around cygwin 1.5.x and mingw bugs
42752         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42753         * lib/rmdir.c (rmdir): Work around it.
42754         * modules/rmdir (Status, Notice): No longer obsolete.
42755         (Files): Add dos.m4.
42756         (Depends-on): Add unistd.
42757         (configure.ac): Set witnesses.
42758         (License): Relax to LGPLv2+.
42759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42760         * modules/unistd (Makefile.am): Substitute witnesses.
42761         * lib/unistd.in.h (rmdir): Declare replacement.
42762         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42763         * modules/rmdir-tests: New tests.
42764         * tests/test-rmdir.c: Likewise.
42765
42766 2009-09-15  Eric Blake  <ebb9@byu.net>
42767
42768         fchdir: improve use of replacement functions
42769         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42770         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42771         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42772         REPLACE_CLOSEDIR.
42773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42774         * modules/sys_stat (Makefile.am): Substitute correct witness.
42775         * modules/dirent (Makefile.am): Likewise.
42776         * modules/unistd (Makefile.am): Likewise.
42777         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42778         * lib/unistd.in.h (dup): Likewise.
42779         * lib/sys_stat.in.h (fstat): Likewise.
42780
42781         maint: ignore gnulib-tool temp files
42782         * .gitignore: Ignore files created during gnulib-tool --test.
42783
42784 2009-09-13  Jim Meyering  <meyering@redhat.com>
42785
42786         posixtm: don't reject a time that specify "60" as the number of seconds
42787         * lib/posixtm.c (posixtime): The code to reject invalid dates
42788         would also reject a time specified with the .60 suffix.
42789         But POSIX allows that, in order to accommodate leap seconds.
42790         So don't reject it.
42791         (main): Adjust tests accordingly.
42792         * modules/posixtm (Depends-on): Add stpcpy.
42793
42794 2009-09-11  Jim Meyering  <meyering@redhat.com>
42795
42796         announce-gen: include [$release_type] in emitted Subject:
42797         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42798         e.g., [stable] in the emitted Subject: line.
42799
42800 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42801
42802         Remove obsolete macros from several modules.
42803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42804         obsolete Autoconf macros with their modern counterparts.
42805         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42806         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42808         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42809         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42810         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42811         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42812         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42813         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42814         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42815         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42816         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42817         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42818         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42819         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42820         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42821         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42822         * m4/time_r.m4 (gl_TIME_R): Likewise.
42823         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42824         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42825         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42826
42827         Fix copyright header in build-aux scripts.
42828         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42829         recommendation.
42830         * build-aux/ncftpput-ftp: Likewise.
42831         * build-aux/update-copyright: Likewise.
42832
42833 2009-09-09  Eric Blake  <ebb9@byu.net>
42834
42835         test-link: allow Linux choice of errno
42836         * tests/test-link.c (main): Relax test for alternate error.
42837
42838         strndup: fix improper m4 caching
42839         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42840         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42841         (gl_PREREQ_STRNDUP): Delete.
42842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42843         * modules/string (Makefile.am): Substitute it.
42844         * lib/string.in.h (strndup): Modernize prototype.
42845
42846         getcwd: port to mingw
42847         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42848         different from the POSIX assumptions made throughout the getcwd
42849         module; fortunately, the mingw getcwd does not need replacement.
42850         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42851         * modules/getcwd-tests: New test.
42852         * tests/test-getcwd.c: Likewise.
42853
42854         link: fix platform bugs
42855         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42856         * lib/link.c (link): Work around them.  Fix related mingw bug.
42857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42858         * modules/unistd (Makefile.am): Substitute it.
42859         * lib/unistd.in.h (link): Declare replacement.
42860         * doc/posix-functions/link.texi (link): Document this.
42861         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42862
42863         test-link: consolidate into single C program, test more cases
42864         * tests/test-link.sh: Delete.
42865         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42866         at least Cygwin and Solaris.
42867         * modules/link-tests (Files): Remove unused file.
42868         (Depends-on): Add errno, sys_stat.
42869         (Makefile.am): Simplify.
42870
42871 2009-09-08  Bruno Haible  <bruno@clisp.org>
42872
42873         Work around towlower, towupper bug on mingw.
42874         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42875         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42876         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42877         * doc/posix-functions/towupper.texi: Likewise.
42878         Reported by Eric Blake.
42879
42880 2009-09-08  Jim Meyering  <meyering@redhat.com>
42881
42882         build: don't try to run autoheader if we don't use it
42883         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42884         is not used in configure.ac.
42885
42886 2009-09-08  Eric Blake  <ebb9@byu.net>
42887
42888         euidaccess: fix compilation error
42889         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42890
42891         rawmemchr: relax license
42892         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42893         okay.
42894         Reported by Jim Meyering.
42895
42896         mkfifoat: new module
42897         * modules/mkfifoat: New file.
42898         * lib/mkfifoat.c: Likewise.
42899         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42900         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42901         * modules/sys_stat (Makefile.am): Use them.
42902         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42903         * MODULES.html.sh (File system functions): Mention module.
42904         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42905         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42906         * modules/mkfifoat-tests: New test.
42907         * tests/test-mkfifoat.c: Likewise.
42908
42909         strchrnul: relax license
42910         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42911         okay.
42912         Reported by Jim Meyering.
42913
42914 2009-09-08  Eric Blake  <ebb9@byu.net>
42915
42916         fstatat: fix compilation on Solaris
42917         * lib/fstatat.c (includes): Add fcntl.h.
42918         Reported by Pádraig Brady.
42919
42920 2009-09-07  Eric Blake  <ebb9@byu.net>
42921
42922         rename: modernize replacement
42923         * modules/rename (Depends-on): Add stdio.
42924         (configure.ac): Declare witness.
42925         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42926         stdio take care of replacement.
42927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42928         * modules/stdio (Makefile.am): Substitute them.
42929         * lib/stdio.in.h (rename): Declare replacement.
42930         * lib/rename.c (includes): Allow cross-compilation to non-windows
42931         machines.
42932         * doc/posix-functions/rename.texi (rename): Improve
42933         documentation.
42934
42935         stdio: sort witness names
42936         * modules/stdio (Makefile.am): Sort replacements.
42937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42938         * lib/stdio.in.h: Likewise.
42939
42940         getcwd: minor cleanups
42941         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42942         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42943
42944         openat: provide more convenience names
42945         * modules/faccessat (configure.ac): Add C witness.
42946         * lib/unistd.in.h (readlinkat): Fix typo.
42947         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42948         convenience wrappers.
42949         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42950         wrappers in syntax checks.
42951
42952 2009-09-06  Eric Blake  <ebb9@byu.net>
42953
42954         doc: fix comments in recent patches
42955         * lib/faccessat.c: Mention correct function.
42956         * lib/fchmodat.c: Likewise.
42957         * lib/fchownat.c: Likewise.
42958         * lib/symlinkat.c: Likewise.
42959         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42960         constants.
42961
42962         faccessat, symlinkat: continue cleanup of previous patch
42963         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42964         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42965         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42967         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42968         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42969         set.
42970
42971 2009-09-06  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42974         (fstatat): Declare if GNULIB_FSTATAT is set.
42975         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42976         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42977         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42978         * modules/fcntl-h (Files): Remove m4/openat.m4.
42979         * modules/sys_stat (Files): Remove m4/openat.m4.
42980         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42981         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42982         * modules/unistd (Files): Remove m4/openat.m4.
42983         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42984         GNULIB_OPENAT.
42985         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42986         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42988         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42989         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42990         gl_OPENAT_DEFAULTS.
42991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42992         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42993         Don't require gl_OPENAT_DEFAULTS.
42994         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42995         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42996         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42997         (gl_OPENAT_DEFAULTS): Remove macro.
42998
42999 2009-09-06  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/openat (configure.ac): Remove unneeded witness.
43002
43003 2009-09-06  Bruno Haible  <bruno@clisp.org>
43004
43005         Set errno to ENOSYS when a function is entirely unsupported.
43006         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43007         EOPNOTSUPP.
43008         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43009         * modules/chown (Depends-on): Remove errno.
43010
43011 2009-09-06  Bruno Haible  <bruno@clisp.org>
43012
43013         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43014
43015 2009-09-06  Bruno Haible  <bruno@clisp.org>
43016
43017         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43018
43019 2009-09-06  Ben Pfaff  <blp@gnu.org>
43020             Bruno Haible  <bruno@clisp.org>
43021
43022         Work around a glibc bug in strtok_r.
43023         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43024         Undefine if UNDEFINE_STRTOK_R is set.
43025         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43027         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43029         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43030         UNDEFINE_STRTOK_R.
43031         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43032
43033 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43034
43035         exclude: minor fix
43036         * lib/exclude.c: Include wctype.h
43037
43038 2009-09-06  Akim Demaille  <demaille@gostai.com>
43039
43040         bootstrap: improve error message
43041         * build-aux/bootstrap (find_tool): Upon failure, report the list
43042         of candidates.
43043         Honor the initial value of the envvar.
43044
43045 2009-09-05  Eric Blake  <ebb9@byu.net>
43046
43047         symlinkat: new module
43048         * modules/symlinkat: New file.
43049         * lib/symlinkat.c: Likewise.
43050         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43052         * modules/unistd (Makefile.am): Use them.
43053         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43054         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43055         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43056         * MODULES.html.sh (File system functions): Mention module.
43057         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43058         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43059         * modules/symlinkat-tests: New test.
43060         * tests/test-symlinkat.c: Likewise.
43061
43062         test-openat-safer: add more checks
43063         * tests/test-openat-safer.c (main): Check more code paths.
43064
43065 2009-09-05  Jim Meyering  <meyering@redhat.com>
43066
43067         syntax-check: detect unnecessary inclusion of openat.h
43068         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43069
43070 2009-09-05  Bruno Haible  <bruno@clisp.org>
43071
43072         Support towlower, towupper.
43073         * doc/posix-functions/towlower.texi: Mention module wctype.
43074         * doc/posix-functions/towupper.texi: Likewise.
43075         * lib/wctype.in.h (towlower, towupper): New functions.
43076         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43077         (ASSERT): New macro.
43078         (e): New variable.
43079         (main): Test also towlower, towupper. Test WEOF argument.
43080         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43081
43082 2009-09-05  Bruno Haible  <bruno@clisp.org>
43083
43084         Fix conversion behaviour when the input is invalid.
43085         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43086         mark occurring in first pass of indirect conversion.
43087         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43088         input.
43089         Found by clang's static analyzer.
43090
43091 2009-09-05  Bruno Haible  <bruno@clisp.org>
43092
43093         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43094         where direct conversion is possible.
43095
43096 2009-09-04  Eric Blake  <ebb9@byu.net>
43097
43098         openat: fail with ENOENT on empty name
43099         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43100         buffer.
43101
43102         link-follow: fix logic bug in prior patch
43103         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43104         reversed sense of yes and no in prior patch.  Avoid confusing
43105         compilation failure with desired semantics.
43106
43107         link-follow: accommodate mingw and cross-compilation
43108         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43109         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43110         cross-compilation results to -1, to make linkat easier to
43111         implement when cross-compiling.  Trivially support mingw.
43112         * modules/link-follow (configure.ac): Call new name.
43113         * NEWS: Mention this.
43114
43115 2009-09-03  Eric Blake  <ebb9@byu.net>
43116
43117         faccessat: compile replacement
43118         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43119         needed.
43120
43121         fts: fix compilation error
43122         * lib/fts.c (includes): Re-add "openat.h", for
43123         openat_needs_fchdir.
43124
43125         faccessat: new module
43126         * modules/faccessat: New file.
43127         * lib/faccessat.c: Likewise.
43128         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43130         * modules/unistd (Makefile.am): Use it.
43131         * lib/unistd.in.h (faccessat): Declare it.
43132         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43133         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43134         * MODULES.html.sh (File system functions): Mention it.
43135         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43136         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43137
43138         euidaccess: prefer POSIX over non-standard implementation
43139         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43140         * lib/euidaccess.c (euidaccess): Use it if available.
43141
43142         openat: make template easier to use
43143         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43144         AT_FUNC_F2 to be undefined.
43145         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43146         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43147         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43148         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43149         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43150         Likewise.
43151         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43152         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43153         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43154         Likewise.
43155
43156         openat: declare in POSIX headers
43157         * NEWS: Mention this.
43158         * modules/openat (configure.ac): Declare witnesses.
43159         (Depends-on): Add fcntl-h, sys_stat, unistd.
43160         (Include): Mention correct headers.
43161         * modules/fcntl-h (Depends-on): Add link-warning.
43162         (Files): Add openat.m4.
43163         (Makefile.am): Substitute witnesses.
43164         * modules/sys_stat (Files, Makefile.am): Likewise.
43165         * modules/unistd (Files, Makefile.am): Likewise.
43166         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43167         (gl_OPENAT_DEFAULTS): New macro.
43168         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43170         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43171         (SYS_STAT_H): Remove unused variable.
43172         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43173         * lib/fcntl--.h (includes): Remove unneeded header.
43174         * lib/openat-safer.c (includes): Likewise.
43175         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43176         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43177         appropriate headers.
43178         (__OPENAT_PREFIX): Delete.
43179         * lib/fcntl.in.h (openat): Provide declaration.
43180         (AT_FDCWD): Fix Solaris bug.
43181         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43182         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43183         * lib/fchmodat.c (includes):  Adjust to find declaration.
43184         * lib/fchownat.c (includes): Likewise.
43185         * lib/mkdirat.c (includes): Likewise.
43186         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43187         still visible.
43188
43189 2009-09-02  Eric Blake  <ebb9@byu.net>
43190
43191         errno: use consistently
43192         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43193         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43194         * lib/canonicalize.c (ELOOP): Likewise.
43195         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43196         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43197         * lib/lchown.c (EOPNOTSUPP): Likewise.
43198         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43199         * lib/savewd.c (ESTALE): Likewise.
43200         * lib/settime.c (ENOSYS): Likewise.
43201         * lib/utimens.c (ENOSYS): Likewise.
43202         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43203         * lib/chdir-safer.c (ELOOP): Likewise.
43204         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43205         * modules/c-stack (Depends-on): Add errno.
43206         * modules/canonicalize (Depends-on): Likewise.
43207         * modules/chdir-safer (Depends-on): Likewise.
43208         * modules/fdopendir (Depends-on): Likewise.
43209         * modules/inet_ntop (Depends-on): Likewise.
43210         * modules/inet_pton (Depends-on): Likewise.
43211         * modules/lchown (Depends-on): Likewise.
43212         * modules/openat (Depends-on): Likewise.
43213         * modules/savewd (Depends-on): Likewise.
43214         * modules/settime (Depends-on): Likewise.
43215         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43216
43217         fts: avoid leaking fds
43218         * modules/fts (Depends-on): Add cloexec.
43219         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43220         flag.
43221
43222         fts: make directory fds more robust
43223         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43224         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43225
43226         backupfile, chdir-long, fts, savedir: make safer
43227         * lib/backupfile.c (includes): Use "dirent--.h", since
43228         numbered_backup can write to stderr during readdir.
43229         * lib/savedir.c (includes): Likewise.
43230         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43231         emulation can write to stderr on failure.
43232         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43233         * lib/getcwd.c: Document why opendir_safer is unused.
43234         * lib/glob.c: Likewise.
43235         * lib/scandir.c: Likewise.
43236         * lib/openat-proc.c: Likewise, for open_safer.
43237         * modules/backupfile (Depends-on): Add dirent-safer.
43238         * modules/savedir (Depends-on): Likewise.
43239         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43240         * modules/chdir-long (Depends-on): Add openat-safer.
43241
43242         openat-safer: new module
43243         * modules/openat-safer: New file.
43244         * lib/openat-safer.c: Likewise.
43245         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43246         * lib/fcntl-safer.h (openat_safer): Declare.
43247         * lib/fcntl--.h (openat): Override.
43248         * MODULES.html.sh (File descriptor based I/O): Mention it.
43249         * lib/openat.h: Add double-inclusion guards.
43250         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43251         "fcntl--.h", so we can implement openat.
43252         * modules/openat-safer-tests: New test.
43253         * tests/test-openat-safer.c: New file.
43254
43255         dirent-safer: new module
43256         * modules/dirent-safer: New file.
43257         * lib/dirent--.h: Likewise.
43258         * lib/dirent-safer.h: Likewise.
43259         * lib/opendir-safer.c: Likewise.
43260         * m4/dirent-safer.m4: Likewise.
43261         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43262         * modules/dirent-safer-tests: New test.
43263         * tests/test-dirent-safer.c: New file.
43264         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43265
43266         fdopendir: optimize on mingw
43267         * lib/unistd.in.h (_gl_directory_name): New prototype.
43268         * lib/fchdir.c (_gl_directory_name): Implement it.
43269         (fchdir): Use it to simplify implementation.
43270         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43271         fchdir, when available, to avoid calling [f]chdir().
43272
43273         fdopendir: split into its own module
43274         * lib/openat.c (fdopendir): Move...
43275         * lib/fdopendir.c: ...into new file.
43276         * modules/fdopendir: New module.
43277         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43278         * modules/openat (Depends-on): Add fdopendir.
43279         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43280         fdopendir here.
43281         * modules/savedir (Depends-on): Only need fdopendir, not full
43282         openat.
43283         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43284         * lib/openat.h (fdopendir): Drop prototype.
43285         * lib/dirent.in.h (fdopendir): Provide prototype.
43286         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43287         * modules/dirent (Makefile.am): Substitute them.
43288         * MODULES.html.sh (File system functions): Mention it.
43289         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43290         * modules/fdopendir-tests: New file.
43291         * tests/test-fdopendir.c: Likewise.
43292
43293         fchdir: use more consistent macro convention
43294         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43295         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43296         REPLACE_FCHDIR, rather than relying on config.h macros.
43297         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43298         inside a single make-time REPLACE_FCHDIR block, rather than using
43299         the config.h FCHDIR_REPLACEMENT.
43300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43301         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43302         Manage fstat replacement.
43303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43304         REPLACE_FCHDIR.
43305         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43306         (Makefile.am): Substitute REPLACE_FCHDIR.
43307         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43308         FCHDIR_REPLACEMENT.
43309         * lib/dup-safer.c (dup_safer): Likewise.
43310         * lib/dup2.c (rpl_dup2): Likewise.
43311         * lib/dup3.c (rpl_dup3): Likewise.
43312         * lib/open.c (rpl_open): Likewise.
43313
43314         fchdir: simplify error handling, and support dup3
43315         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43316         stdbool, malloc-posix, realloc-posix.
43317         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43318         (ensure_dirs_slot): Return false on allocation failure.
43319         (rpl_dup2): Delete.
43320         (_gl_register_dup): New function.
43321         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43322         (_gl_register_fd): Close fd on allocation failure.
43323         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43324         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43325         prototype.
43326         (rpl_dup2_fchdir): Delete prototype.
43327         * lib/open.c (open): Update caller.
43328         * lib/dup2.c (dup2): Track fchdir metadata.
43329         * lib/dup3.c (dup3): Likewise.
43330         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43332
43333 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43334
43335         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43336         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43337         don't pass arguments to AC_OUTPUT.
43338
43339 2009-09-02  Bruno Haible  <bruno@clisp.org>
43340
43341         * modules/mkdtemp (License): Relicense under LGPLv2+.
43342         Reported by Paolo Bonzini.
43343
43344 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43345
43346         Replace uses of obsolete autoconf macros in Jim's modules.
43347         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43348         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43349         can evoke a warning from autoconf when run with -Wobsolete
43350         enabled.  They were declared obsolete for good reasons (see
43351         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43352         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43353         should not continue using the deprecated macros.
43354         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43355         obsolete Autoconf macros with modern counterparts.
43356         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43357         * m4/dos.m4 (gl_AC_DOS): Likewise.
43358         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43359         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43360         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43361         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43362         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43363         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43364         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43365         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43366         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43367         Likewise.
43368         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43369         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43370         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43371         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43372         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43373         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43374
43375 2009-09-01  Eric Blake  <ebb9@byu.net>
43376
43377         fchdir: fix off-by-one bug in previous patch
43378         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43379         (_gl_unregister_fd): Delete useless if.
43380
43381 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43382
43383         maint.mk: sort the list of syntax-check rules
43384         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43385         easier to get a sense of progress when the rules are run sequentially
43386         and take a long time.
43387
43388 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43389
43390         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43391         * modules/netinet_in: Likewise.
43392         * modules/sys_file: Likewise.
43393         * modules/sys_ioctl: Likewise.
43394         * modules/sys_select: Likewise.
43395         * modules/sys_socket: Likewise.
43396         * modules/sys_stat: Likewise.
43397         * modules/sys_time: Likewise.
43398         * modules/sys_times: Likewise.
43399         * modules/sys_utsname: Likewise.
43400         * modules/sys_wait: Likewise.
43401
43402 2009-09-01  Jim Meyering  <meyering@redhat.com>
43403
43404         fts: help ensure that return values are not ignored
43405         * lib/fts_.h (__GNUC_PREREQ): Define.
43406         (__attribute_warn_unused_result__): Define.
43407         (fts_children, fts_close, fts_open, fts_read): Declare with
43408         __attribute_warn_unused_result__.
43409
43410         fts: fts_close now fails also when closing a dir file descriptor fails
43411         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43412         and propagate to caller, along with errno.
43413
43414         announce-gen: correct formatting in --help output
43415         * build-aux/announce-gen (usage): Move the one-line description in
43416         --help output "up", to where it belongs, just after Usage:.
43417
43418 2009-08-31  Eric Blake  <ebb9@byu.net>
43419
43420         fchdir: port to mingw
43421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43422         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43423         opened, then use a substitute.
43424         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43425         replacement.
43426         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43427         (_gl_register_fd): No need to check stat if open already filters
43428         all directories.
43429         (fchdir): Fix error condition to match POSIX.
43430         * modules/fchdir (Depends-on): Add sys_stat.
43431         * doc/posix-functions/open.texi (open): Document the limitation.
43432         * modules/fchdir-tests: New file.
43433         * tests/test-fchdir.c: Likewise.
43434
43435         canonicalize: allow cross-testing from cygwin to mingw
43436         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43437         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43438         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43439         Likewise.
43440         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43441         target does not support symlinks.
43442         * tests/test-canonicalize-lgpl.sh: Likewise.
43443
43444         chown: avoid compilation warning on mingw
43445         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43446         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43447         mingw.
43448         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43449         * modules/chown (Depends-on): Add errno.
43450
43451 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43452
43453         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43454         command.
43455
43456 2009-08-31  Jim Meyering  <meyering@redhat.com>
43457
43458         canonicalize: remove useless initialization
43459         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43460         initialization of local, "end".
43461
43462 2009-08-30  Bruno Haible  <bruno@clisp.org>
43463
43464         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43465         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43466         ENOSYS.
43467
43468 2009-08-30  Bruno Haible  <bruno@clisp.org>
43469
43470         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43471         /usr/xpg4/bin/tr when it exists.
43472         * tests/test-pipe-filter-gi1.sh: Likewise.
43473
43474 2009-08-30  Bruno Haible  <bruno@clisp.org>
43475
43476         Work around deficient /usr/bin/id program on Solaris.
43477         * tests/test-file-has-acl.sh (ID): New variable.
43478         * tests/test-set-mode-acl.sh (ID): Likewise.
43479         * tests/test-copy-acl.sh (ID): Likewise.
43480         * tests/test-copy-file.sh (ID): Likewise.
43481
43482 2009-08-30  Bruno Haible  <bruno@clisp.org>
43483
43484         New module 'xstriconveh'.
43485         * lib/xstriconveh.h: New file.
43486         * lib/xstriconveh.c: New file.
43487         * modules/xstriconveh: New file.
43488
43489 2009-08-30  Bruno Haible  <bruno@clisp.org>
43490
43491         Make it easier to use mem_cd_iconveh.
43492         * lib/striconveh.h (iconveh_t): New type.
43493         (iconveh_open, iconveh_close): New declarations.
43494         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43495         with a single 'const iconveh_t *' argument.
43496         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43497         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43498         with a single 'const iconveh_t *' argument.
43499         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43500         * tests/test-striconveh.c (main): Update.
43501         * NEWS: Mention the change.
43502
43503 2009-08-30  Bruno Haible  <bruno@clisp.org>
43504
43505         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43506         problem.
43507
43508 2009-08-30  Bruno Haible  <bruno@clisp.org>
43509
43510         Work around iconv_open problem on Solaris.
43511         * lib/iconv_open-solaris.gperf: New file.
43512         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43513         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43514         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43515         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43516         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43517         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43518
43519 2009-08-29  Jim Meyering  <meyering@redhat.com>
43520
43521         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43522         * top/maint.mk (cvs-check): Remove target; it was just an alias
43523         to the better-named vc-diff-check.
43524         (maintainer-distcheck): Remove rule.  It was used only from
43525         the (alpha/beta/major) target, and all of its commands but one
43526         were coreutils-specific.
43527         (vc-dist): Remove rule.
43528         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43529         Run vc-diff-check, not vc-dist.
43530         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43531
43532 2009-08-27  Bruno Haible  <bruno@clisp.org>
43533
43534         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43535         of 0.
43536
43537 2009-08-27  Bruno Haible  <bruno@clisp.org>
43538
43539         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43540         compilers.
43541         * doc/func.texi: Document the SunPRO C bug.
43542
43543 2009-08-27  Bruno Haible  <bruno@clisp.org>
43544
43545         Fix link error on Solaris.
43546         * tests/test-parse-duration.c (xstrdup): Remove function.
43547
43548 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43549
43550         ignore-value: handle pointer types, too
43551         * lib/ignore-value.h (__attribute__): Remove definition.
43552         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43553         of a more concise and more-often effective "(void) i" statement.
43554         (ignore_ptr): New function to suppress warnings from functions that
43555         return pointers, and to make it explicit that one function doesn't
43556         handle all cases.
43557
43558 2009-08-25  Bruno Haible  <bruno@clisp.org>
43559
43560         dup2: work around a Linux bug.
43561         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43562         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43563         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43564         Reported by Simon Josefsson.
43565
43566 2009-08-25  Jim Meyering  <meyering@redhat.com>
43567
43568         libguestfs uses gnulib
43569         * users.txt: Add libguestfs.
43570
43571 2009-08-24  Eric Blake  <ebb9@byu.net>
43572
43573         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43574         * lib/pipe2.c (includes): Add binary-io.h.
43575         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43576
43577 2009-08-24  Bruno Haible  <bruno@clisp.org>
43578
43579         Tolerate declared but missing accept4 syscall.
43580         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43581         available.
43582         * lib/sys_socket.in.h (accept4): If the function is already present,
43583         override it.
43584         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43585         * modules/accept4 (Makefile.am): Compile accept4.c always.
43586         Reported by Paolo Bonzini and Eric Blake.
43587
43588 2009-08-23  Bruno Haible  <bruno@clisp.org>
43589
43590         New module 'accept4'.
43591         * lib/sys_socket.in.h (accept4): New declaration.
43592         * lib/accept4.c: New file.
43593         * m4/accept4.m4: New file.
43594         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43595         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43596         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43597         HAVE_ACCEPT4.
43598         * modules/accept4: New file.
43599         * doc/glibc-functions/accept4.texi: Mention the new module.
43600
43601 2009-08-24  Jim Meyering  <meyering@redhat.com>
43602
43603         progname: also set global program_invocation_name, when possible
43604         Before this change, a libtool-enabled program that calls glibc's
43605         error function would report the program name as
43606         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43607         * modules/progname (configure.ac): Check for a declaration of
43608         program_invocation_name.
43609         * lib/progname.c:  Include <errno.h>.
43610         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43611         Set program_invocation_name.
43612
43613 2009-08-23  Bruno Haible  <bruno@clisp.org>
43614
43615         * lib/dup3.c: Include <string.h>.
43616
43617 2009-08-23  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43620         * lib/pipe2.c (pipe2): Likewise.
43621         Suggested by Eric Blake.
43622
43623 2009-08-23  Bruno Haible  <bruno@clisp.org>
43624
43625         Tolerate declared but missing dup3 syscall.
43626         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43627         * lib/unistd.in.h (dup3): If the function is already present,
43628         override it.
43629         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43630         * modules/dup3 (Makefile.am): Compile dup3.c always.
43631         Reported by Paolo Bonzini.
43632
43633 2009-08-23  Bruno Haible  <bruno@clisp.org>
43634
43635         Tolerate declared but missing pipe2 syscall.
43636         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43637         available.
43638         * lib/unistd.in.h (pipe2): If the function is already present,
43639         override it.
43640         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43641         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43642         Reported by Paolo Bonzini.
43643
43644 2009-08-23  Bruno Haible  <bruno@clisp.org>
43645
43646         * lib/pipe2.c (pipe2): Move #ifs inside function.
43647
43648 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43649
43650         quotearg: document limitations of quote_these_too
43651         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43652         those limitations are created.
43653         * lib/quotearg.h (set_char_quoting): Document that digits and
43654         letters that are special after backslash are not permitted.
43655         (quotearg_char): Cross-reference set_char_quoting documentation.
43656
43657 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43658
43659         quotearg: implement custom_quoting_style
43660         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43661         right_quote fields.
43662         (set_custom_quoting): New public function.
43663         (quotearg_buffer_restyled): Add left_quote and right_quote
43664         arguments, handle them very much like locale quoting, and update
43665         all uses.
43666         (quotearg_n_custom): New public function.
43667         (quotearg_n_custom_mem): New public function.
43668         (quotearg_custom): New public function.
43669         (quotearg_custom_mem): New public function.
43670         * lib/quotearg.h: Prototype and document new public functions.
43671         (enum quoting_style): For escape_quoting_style and
43672         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43673         ignored even though they're otherwise like c_quoting_style.
43674         Add custom_quoting_style member and document with comparison to
43675         clocale_quoting_style.
43676         * tests/test-quotearg.c (custom_quotes): New array.
43677         (custom_results): New array.
43678         (main): Extend to test custom quoting.
43679
43680 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43681
43682         quotearg: fix right quote escaping when it's in quote_these_too
43683         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43684         quote, be sure to prepend only one backslash.
43685         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43686         (main): Test it.
43687
43688 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43689
43690         quotearg-tests: test escaping of embedded locale quotes
43691         * tests/test-quotearg.c (struct result_strings): Add member for
43692         new input.
43693         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43694         (inputs): Add new input.
43695         (results_g): Add expected results.
43696         (flag_results): Likewise.
43697         (locale_results): Likewise.
43698         (compare_strings): Check those.
43699
43700 2009-08-23  Bruno Haible  <bruno@clisp.org>
43701
43702         Tests for module 'dup3'.
43703         * modules/dup3-tests: New file.
43704         * tests/test-dup3.c: New file.
43705
43706         New module 'dup3'.
43707         * lib/unistd.in.h (dup3): New declaration.
43708         * lib/dup3.c: New file.
43709         * m4/dup3.m4: New file.
43710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43711         HAVE_DUP3.
43712         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43713         * modules/dup3: New file.
43714         * doc/glibc-functions/dup3.texi: Mention the new module.
43715
43716 2009-08-23  Bruno Haible  <bruno@clisp.org>
43717
43718         Tweak the dup2 test.
43719         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43720         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43721         the test file is still empty. Fix argument order of lseek.
43722
43723 2009-08-23  Bruno Haible  <bruno@clisp.org>
43724
43725         Avoid test link errors when the modules getopt-gnu, gettext are used.
43726         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43727         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43728
43729 2009-08-23  Bruno Haible  <bruno@clisp.org>
43730
43731         Fix getdtablesize() on mingw.
43732         * lib/getdtablesize.c (getdtablesize): Implement differently.
43733         * lib/unistd.in.h (getdtablesize): Improve comment.
43734
43735 2009-08-23  Bruno Haible  <bruno@clisp.org>
43736
43737         New module 'mkostemp'.
43738         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43739         * lib/stdlib.in.h (mksotemp): New declaration.
43740         * lib/mkostemp.c: New file, from glibc with modifications.
43741         * lib/tempname.h (GT_FILE): Remove outdated comment.
43742         (gen_tempname): Add flags argument.
43743         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43744         (__GT_FILE): Map to 1.
43745         (small_open, large_open): Remove macros.
43746         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43747         * lib/mkstemp.c (mkstemp): Update.
43748         * lib/mkdtemp.c (mkdtemp): Likewise.
43749         * m4/mkostemp.m4: New file.
43750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43751         HAVE_MKOSTEMP.
43752         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43753         HAVE_MKOSTEMP.
43754         * modules/mkostemp: New file, based on modules/mkstemp.
43755         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43756         * NEWS: Mention the change.
43757
43758 2009-08-23  Bruno Haible  <bruno@clisp.org>
43759
43760         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43761         Reported by Eric Blake.
43762
43763 2009-08-23  Bruno Haible  <bruno@clisp.org>
43764
43765         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43766         Reported by Eric Blake.
43767
43768 2009-08-23  Bruno Haible  <bruno@clisp.org>
43769
43770         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43771         * modules/pipe2 (Depends-on): Likewise.
43772
43773 2009-08-23  Eric Blake  <ebb9@byu.net>
43774
43775         fcntl-h: add O_TTY_INIT support
43776         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43777         * tests/test-fcntl-h.c (o): Test it.
43778         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43779
43780         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43781         * modules/fcntl: Move <fcntl.h> header replacement...
43782         * modules/fcntl-h: ...to new name, so as not to collide with
43783         like-named function.
43784         * tests/test-fcntl.c: Rename...
43785         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43786         * modules/fcntl-tests: Rename...
43787         * modules/fcntl-h-tests: ...to this.  Update test file name.
43788         * modules/chdir-long (Depends-on): Update clients.
43789         * modules/chdir-safer (Depends-on): Likewise.
43790         * modules/fcntl-safer (Depends-on): Likewise.
43791         * modules/fts (Depends-on): Likewise.
43792         * modules/mkancesdirs (Depends-on): Likewise.
43793         * modules/mkdir-p (Depends-on): Likewise.
43794         * modules/open (Depends-on): Likewise.
43795         * modules/savewd (Depends-on): Likewise.
43796         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43797         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43798
43799 2009-08-22  Bruno Haible  <bruno@clisp.org>
43800
43801         * modules/binary-io (License): Relicense under LGPL.
43802         * modules/pipe2 (License): Likewise.
43803
43804 2009-08-22  Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43807         return value.
43808         * lib/pipe-filter-gi.c (filter_init): Likewise.
43809         Reported by Eric Blake.
43810
43811 2009-08-22  Bruno Haible  <bruno@clisp.org>
43812
43813         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43814         * modules/pipe (Depends-on): Add pipe2.
43815
43816 2009-08-22  Bruno Haible  <bruno@clisp.org>
43817
43818         Tests for module 'pipe2'.
43819         * modules/pipe2-tests: New file.
43820         * tests/test-pipe2.c: New file.
43821
43822         New module 'pipe2'.
43823         * lib/unistd.in.h (pipe2): New declaration.
43824         * lib/pipe2.c: New file.
43825         * m4/pipe2.m4: New file.
43826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43827         HAVE_PIPE2.
43828         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43829         * modules/pipe2: New file.
43830         * doc/glibc-functions/pipe2.texi: Mention the new module.
43831
43832 2009-08-22  Bruno Haible  <bruno@clisp.org>
43833
43834         Reference some new glibc functions.
43835         * doc/glibc-functions/accept4.texi: New file.
43836         * doc/glibc-functions/dup3.texi: New file.
43837         * doc/glibc-functions/mkostemp.texi: New file.
43838         * doc/glibc-functions/pipe2.texi: New file.
43839         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43840         (Glibc sys/socket.h): Refer to accept4.
43841         (Glibc unistd.h): Refer to dup3, pipe2.
43842         Reported by Eric Blake.
43843
43844 2009-08-22  Jim Meyering  <meyering@redhat.com>
43845             Bruno Haible  <bruno@clisp.org>
43846
43847         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43848         This makes it so packages using automake-1.11's silent-rules option
43849         can print e.g., a single "GEN    configmake.h" line, rather than
43850         the 30+ statements that perform the job.  If you want to see the
43851         actual commands, you can still run "make V=1".
43852         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43853         so that make output is abbreviated when those variables are defined
43854         appropriately.
43855         * modules/argz: Likewise.
43856         * modules/arpa_inet: Likewise.
43857         * modules/byteswap: Likewise.
43858         * modules/configmake: Likewise.
43859         * modules/dirent: Likewise.
43860         * modules/errno: Likewise.
43861         * modules/fcntl: Likewise.
43862         * modules/float: Likewise.
43863         * modules/fnmatch: Likewise.
43864         * modules/getopt-posix: Likewise.
43865         * modules/glob: Likewise.
43866         * modules/iconv_open: Likewise.
43867         * modules/inttypes: Likewise.
43868         * modules/localcharset: Likewise.
43869         * modules/locale: Likewise.
43870         * modules/math: Likewise.
43871         * modules/netdb: Likewise.
43872         * modules/netinet_in: Likewise.
43873         * modules/poll: Likewise.
43874         * modules/posix_spawnp-tests: Likewise.
43875         * modules/sched: Likewise.
43876         * modules/search: Likewise.
43877         * modules/selinux-h: Likewise.
43878         * modules/signal: Likewise.
43879         * modules/spawn: Likewise.
43880         * modules/stdarg: Likewise.
43881         * modules/stdbool: Likewise.
43882         * modules/stddef: Likewise.
43883         * modules/stdint: Likewise.
43884         * modules/stdio: Likewise.
43885         * modules/stdlib: Likewise.
43886         * modules/string: Likewise.
43887         * modules/strings: Likewise.
43888         * modules/sys_file: Likewise.
43889         * modules/sys_ioctl: Likewise.
43890         * modules/sys_select: Likewise.
43891         * modules/sys_socket: Likewise.
43892         * modules/sys_stat: Likewise.
43893         * modules/sys_time: Likewise.
43894         * modules/sys_times: Likewise.
43895         * modules/sys_utsname: Likewise.
43896         * modules/sys_wait: Likewise.
43897         * modules/sysexits: Likewise.
43898         * modules/time: Likewise.
43899         * modules/unistd: Likewise.
43900         * modules/wchar: Likewise.
43901         * modules/wctype: Likewise.
43902
43903 2009-08-22  Jim Meyering  <meyering@redhat.com>
43904
43905         announce-gen: detect write failure
43906         * build-aux/announce-gen: Add Coda at end.
43907         Remove equivalent-but-more-verbose block at top.
43908
43909 2009-08-19  Akim Demaille  <demaille@gostai.com>
43910
43911         bootstrap: --help to stdout.
43912         * bootstrap (usage): Don't send --help to stderr.
43913         Use a here doc instead of a long string.
43914
43915 2009-08-21  Eric Blake  <ebb9@byu.net>
43916
43917         test-popen-safer: split from test-popen
43918         * tests/test-popen.c (main): Move...
43919         * tests/test-popen.h: ...into new file.
43920         * tests/test-popen-safer2.c: New file.
43921         * modules/popen-tests (Files): Add test-popen.h.
43922         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43923         Suggested by Bruno Haible.
43924
43925         test-fcntl-safer: split from test-open
43926         * tests/test-open.c (main): Move...
43927         * tests/test-open.h: ...into new file.
43928         * tests/test-fcntl-safer.c: New file.
43929         * modules/open-tests (Files): Add test-open.h.
43930         * modules/fcntl-safer-tests: New file.
43931         Suggested by Bruno Haible.
43932
43933         test-fopen-safer: split from test-fopen
43934         * tests/test-fopen.c (main): Move...
43935         * tests/test-fopen.h: ...into new file.
43936         * tests/test-fopen-safer.c: New file.
43937         * modules/fopen-tests (Files): Add test-fopen.h.
43938         * modules/fopen-safer-tests: New file.
43939         Suggested by Bruno Haible.
43940
43941 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43942
43943         popen-safer: test O_CLOEXEC at run-time.
43944         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43945
43946 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43947
43948         fcntl: move more flags to the header
43949         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43950         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43951         * lib/fcntl.in.h: Do both things here.
43952
43953 2009-08-21  Jim Meyering  <meyering@redhat.com>
43954
43955         consistently remove $@-t before redirecting to it
43956         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43957         * modules/alloca-opt: Likewise.
43958         * modules/byteswap: Likewise.
43959         * modules/fnmatch: Likewise.
43960         * modules/getopt-posix: Likewise.
43961         * modules/glob: Likewise.
43962         * modules/poll: Likewise.
43963         * modules/posix_spawnp-tests: Likewise.
43964         * modules/sys_socket: Likewise.
43965         * modules/sysexits: Likewise.
43966
43967 2009-08-21  Eric Blake  <ebb9@byu.net>
43968
43969         popen: simplify access to original popen
43970         * lib/popen.c (rpl_popen): No need to worry about popen being a
43971         macro.
43972         Reported by Bruno Haible.
43973
43974 2009-08-20  Eric Blake  <ebb9@byu.net>
43975
43976         build: avoid some compiler warnings
43977         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43978         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43979         type.
43980         (new_exclude_segment, excluded_file_pattern_p)
43981         (excluded_file_name_p): Reduce scope.
43982         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43983         old-style declaration.
43984
43985 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43986
43987         * tests/test-exclude1.sh: Handle Windows EOL.
43988         * tests/test-exclude2.sh: Likewise.
43989         * tests/test-exclude3.sh: Likewise.
43990         * tests/test-exclude4.sh: Likewise.
43991         * tests/test-exclude5.sh: Likewise.
43992         * tests/test-exclude6.sh: Likewise.
43993         * tests/test-exclude7.sh: Likewise.
43994
43995 2009-08-19  Akim Demaille  <demaille@gostai.com>
43996
43997         bootstrap: find sha1sum when named gsha1sum.
43998         * bootstrap (find_tool): New.
43999         ($SHA1SUM): New.
44000         Use it.
44001
44002 2009-08-20  Jim Meyering  <meyering@redhat.com>
44003
44004         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44005         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44006         expression that converts "." in a file name to "\." in the resulting
44007         regexp.  Start with a dummy statement, so that prior shell variable
44008         definitions are expanded portably.  Reported by Simon Josefsson.
44009
44010 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44011
44012         Fix polling for writeability of a screen buffer.
44013         * lib/poll.c: Distinguish input and screen buffers for the
44014         Win32 implementation.
44015         * lib/select.c: Likewise.
44016
44017 2009-08-19  Eric Blake  <ebb9@byu.net>
44018
44019         popen-safer: prevent popen from clobbering std descriptors
44020         * modules/popen-safer: New file.
44021         * lib/popen-safer.c: Likewise.
44022         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44023         * lib/stdio--.h (popen): Provide override.
44024         * lib/stdio-safer.h (popen_safer): Provide declaration.
44025         * tests/test-popen.c (includes): Partially test this.
44026         * modules/popen-safer-tests: New file, for more tests.
44027         * tests/test-popen-safer.c: Likewise.
44028         * MODULES.html.sh (file stream based Input/Output): Mention it.
44029
44030         tests: test some of the *-safer modules
44031         * modules/fopen-safer (Depends-on): Add fopen.
44032         * modules/fcntl-safer (Depends-on): Add fcntl.
44033         * modules/stdlib-safer (Depends-on): Add stdlib.
44034         (configure.ac): Set indicator.
44035         * modules/unistd-safer (configure.ac): Likewise.
44036         * modules/tmpfile-safer (configure.ac): Likewise.
44037         (Depends-on): Add tmpfile.
44038         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44039         active.
44040         * tests/test-fopen.c (includes): Test safer versions when they are
44041         in use.
44042         * tests/test-open.c (includes): Likewise.
44043
44044         popen: fix cygwin 1.5 bug when stdin closed
44045         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44046         * modules/popen: New file.
44047         * modules/popen-tests: Likewise.
44048         * tests/test-popen.c: Likewise.
44049         * m4/popen.m4: Likewise.
44050         * lib/popen.c: Likewise.
44051         * lib/stdio.in.h (popen): New declaration.
44052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44053         * modules/stdio (Makefile.am): Likewise.
44054         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44055
44056 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44057
44058         maint.mk: give full control over update-copyright exclusions
44059         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44060         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44061         (update-copyright): Don't force inclusion of top-level
44062         ChangeLog.  Don't force exclusion of all COPYING files, but make
44063         them the default exclusion instead.
44064
44065 2009-08-16  Bruno Haible  <bruno@clisp.org>
44066
44067         Fix test failures on Solaris 10.
44068         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44069         tests when Solaris iconv() is used.
44070         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44071         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44072         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44073         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44074         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44075
44076 2009-08-16  Bruno Haible  <bruno@clisp.org>
44077
44078         Fix test failures on Solaris 10.
44079         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44080         'tr' program and pass it as first argument.
44081         * tests/test-pipe-filter-gi1.sh: Likewise.
44082         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44083         program as first argument.
44084         * tests/test-pipe-filter-gi1.c (main): Likewise.
44085
44086 2009-08-16  Eric Blake  <ebb9@byu.net>
44087
44088         fpurge: fix previous commits
44089         * modules/fpurge (Makefile.am): Make replacement conditional,
44090         partially reverting 2007-04-29 change; missed in previous
44091         attempt.
44092         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44093         is missing.
44094
44095 2009-08-16  Bruno Haible  <bruno@clisp.org>
44096
44097         Clarify fpurge's effect on the file position.
44098         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44099         * tests/test-fpurge.c (main): Make a second pass for checking the file
44100         position.
44101
44102 2009-08-16  Bruno Haible  <bruno@clisp.org>
44103
44104         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44105         declaration of fpurge is missing.
44106         * tests/test-fpurge.c (main): Check that the file has not more contents
44107         than expected. Close the file before removing it.
44108
44109 2009-08-15  Eric Blake  <ebb9@byu.net>
44110
44111         fpurge: don't wrap working cygwin implementation
44112         * lib/fpurge.c (fpurge): Fix comment typo.
44113         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44114         1.7 to avoid replacement.
44115         * tests/test-fpurge.c (main): Enhance test.
44116
44117 2009-08-15  Eric Blake  <ebb9@byu.net>
44118         and Jim Meyering  <meyering@redhat.com>
44119
44120         test-update-copyright: skip if perl is insufficient
44121         * tests/test-update-copyright.sh: Failure to run maintainer tool
44122         should not cause testsuite failure on cygwin 1.5.
44123
44124 2009-08-14  Eric Blake  <ebb9@byu.net>
44125
44126         doc: mention more functions added in cygwin 1.7.0
44127         * doc/posix-headers/limits.texi (limits.h): Update for recent
44128         cygwin additions.
44129         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44130         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44131         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44132         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44133         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44134
44135 2009-08-14  Eric Blake  <ebb9@byu.net>
44136
44137         maint.mk: simplify update-copyright rule
44138         * top/maint.mk (update-copyright-local): Delete, and document how
44139         to do it in cfg.mk instead.
44140         (update-copyright-exclude-regexp): Delete, and document how to do
44141         it in .x-update-copyright instead.
44142         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44143         exclude ChangeLog.
44144
44145 2009-08-14  Bruno Haible  <bruno@clisp.org>
44146
44147         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44148
44149 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44150
44151         maint.mk: support update-copyright-env
44152         * top/maint.mk (update-copyright-env): Define place-holder.
44153         (update-copyright): Expand $(update-copyright-env) before
44154         invoking update-copyright.
44155
44156 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44157
44158         update-copyright: implement forced reformatting
44159         * build-aux/update-copyright: Implement and document
44160         UPDATE_COPYRIGHT_FORCE.
44161         * tests/test-update-copyright.sh: Test it.
44162
44163 2009-08-14  Eric Blake  <ebb9@byu.net>
44164         and Bruno Haible  <bruno@clisp.org>
44165
44166         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44167         * tests/test-locale.c: Revert previous patch related to NULL.
44168         * tests/test-stdio.c: Likewise.
44169         * tests/test-stdlib.c: Likewise.
44170         * tests/test-string.c: Likewise.
44171         * tests/test-unistd.c: Likewise.
44172         * modules/time-tests (Depends-on): Add verify.
44173         * modules/wchar-tests (Depends-on): Likewise.
44174         * tests/test-time.c: Test for NULL compliance.
44175         * tests/test-wchar.c: Likewise.
44176         * modules/locale (Depends-on): Add stddef.
44177         * modules/stdio (Depends-on): Likewise.
44178         * modules/stdlib (Depends-on): Likewise.
44179         * modules/string (Depends-on): Likewise.
44180         * modules/time (Depends-on): Likewise.
44181         * modules/unistd (Depends-on): Likewise.
44182         * modules/wchar (Depends-on): Likewise.
44183         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44184         * lib/stdlib.in.h (includes): Likewise.
44185         * lib/string.in.h (includes): Likewise.
44186         * lib/time.in.h (includes): Likewise.
44187         * lib/unistd.in.h (includes): Likewise.
44188         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44189         replaced.
44190         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44191         * m4/stddef_h.m4: New file.
44192         * modules/stddef: Likewise.
44193         * lib/stddef.in.h: Likewise.
44194         * modules/stddef-tests: Likewise.
44195         * tests/test-stddef.c: Likewise.
44196         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44197         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44198         * doc/posix-headers/locale.texi (locale.h): Likewise.
44199         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44200         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44201         * doc/posix-headers/string.texi (string.h): Likewise.
44202         * doc/posix-headers/time.texi (time.h): Likewise.
44203         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44204         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44205
44206 2009-08-14  Eric Blake  <ebb9@byu.net>
44207
44208         doc: improve git diff of texinfo files
44209         * .gitattributes: Add rule for *.texi files, with hint on how to
44210         use it.
44211         Copied from m4, and based on a report by Bruno Haible.
44212
44213 2009-08-14  Bruno Haible  <bruno@clisp.org>
44214
44215         Disable multithread support by default on Cygwin 1.5.x for real.
44216         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44217
44218 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44219
44220         update-copyright: much ado about intervals
44221         * build-aux/update-copyright: Implement and document
44222         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44223         of copyright year intervals.
44224         Also, document UPDATE_COPYRIGHT_YEAR.
44225         * tests/test-update-copyright.sh: Test it.
44226
44227         update-copyright: convert 2-digit to 4-digit years
44228         * build-aux/update-copyright: Implement and document.
44229         * tests/test-update-copyright.sh: Update.
44230
44231 2009-08-14  Jim Meyering  <meyering@redhat.com>
44232
44233         test-exclude: avoid coreutils "make check" failure
44234         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44235         just as in test-argmatch.c.
44236
44237 2009-08-13  Eric Blake  <ebb9@byu.net>
44238
44239         test-dup2: fix bad assumption
44240         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44241         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44242
44243         test-version-etc: fix CRLF portability issue
44244         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44245         recognize \r.
44246         * tests/test-argp-version-etc-1.sh: Likewise.
44247
44248         getopt: update client modules
44249         * modules/argp (Depends-on): Use getopt-gnu.
44250         * modules/git-merge-changelog (Depends-on): Likewise.
44251         * modules/long-options (Depends-on): Likewise.
44252         * modules/xstrtol (Depends-on): Likewise.
44253
44254 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44255
44256         * tests/test-version-etc.sh: Don't fail on different
44257         project/version.  Don't fail on CRLF differences.  Rewrite to use
44258         multiple -e instead of multiple sed forks, suggested by Eric Blake
44259         <ebb9@byu.net>.
44260         * tests/test-argp-version-etc-1.sh: Likewise.
44261
44262 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44263
44264         * tests/test-version-etc.sh: Don't fail on different
44265         project/version.
44266
44267 2009-08-12  Bruno Haible  <bruno@clisp.org>
44268
44269         Tests for modules 'getopt-posix', 'getopt-gnu'.
44270         * modules/getopt-posix-tests: New file.
44271         * tests/test-getopt.c: New file.
44272         * tests/test-getopt.h: New file.
44273         * tests/test-getopt_long.h: New file.
44274
44275         New modules 'getopt-posix', 'getopt-gnu'.
44276         * modules/getopt-gnu: New file, renamed from modules/getopt.
44277         * modules/getopt-posix: New file.
44278         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44279         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44280         (gl_GETOPT): Remove macro.
44281         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44282         Disable the test against BSD systems that declare optreset. Test
44283         against mingw bug. Test against lack of support of optional arguments
44284         on many platforms.
44285         * doc/glibc-headers/getopt.texi: Update module name and list of
44286         relevant platforms.
44287         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44288         'getopt-gnu' and more portability problems.
44289         * NEWS: Mention the changes.
44290
44291 2009-08-12  Bruno Haible  <bruno@clisp.org>
44292
44293         Ensure that optarg etc. get declared by <unistd.h>.
44294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44295         AC_USE_SYSTEM_EXTENSIONS.
44296         * modules/getopt (Depends-on): Add 'extensions'.
44297
44298 2009-08-12  Bruno Haible  <bruno@clisp.org>
44299
44300         Avoid test link errors.
44301         * modules/pipe-filter-ii-tests (Makefile.am): Define
44302         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44303         * modules/pipe-filter-gi-tests (Makefile.am): Define
44304         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44306
44307 2009-08-12  Bruno Haible  <bruno@clisp.org>
44308
44309         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44310         gl_GETOPT_SUBSTITUTE before.
44311         (gl_GETOPT): Use it.
44312         * m4/argp.m4 (gl_ARGP): Update.
44313         Reported by Sergey Poznyakoff.
44314
44315         * m4/getopt.m4: Reorder macros.
44316         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44317         (gl_GETOPT_SUBSTITUTE): Remove macro.
44318
44319 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44320
44321         Minor improvement in gitlog-to-changelog
44322
44323         * build-aux/gitlog-to-changelog: New option `--format' makes
44324         output format string configurable.
44325
44326 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44327
44328         Optimize exclude: use hash tables for non-wildcard patterns.
44329
44330         * lib/exclude.c: Include hash.h and mbuiter.h
44331         (struct exclude_pattern, exclude_segment): New data types.
44332         (struct exclude): Rewrite.
44333         (fnmatch_pattern_has_wildcards): New function.
44334         (new_exclude_segment, free_exclude_segment): New functions.
44335         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44336         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44337         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44338         * modules/exclude: Depend on hash and mbuiter.
44339
44340         * modules/exclude-tests: New file.
44341         * tests/test-exclude.c: New file.
44342         * tests/test-exclude1.sh: New file.
44343         * tests/test-exclude2.sh: New file.
44344         * tests/test-exclude3.sh: New file.
44345         * tests/test-exclude4.sh: New file.
44346         * tests/test-exclude5.sh: New file.
44347         * tests/test-exclude6.sh: New file.
44348         * tests/test-exclude7.sh: New file.
44349
44350 2009-08-12  Bruno Haible  <bruno@clisp.org>
44351
44352         Ensure that getopt() gets declared by <unistd.h>.
44353         * lib/unistd.in.h: Conditionally include getopt.h.
44354         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44355         Set GNULIB_UNISTD_H_GETOPT.
44356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44357         GNULIB_UNISTD_H_GETOPT.
44358         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44359
44360 2009-08-12  Bruno Haible  <bruno@clisp.org>
44361
44362         Clarify logic.
44363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44364         gl_replace_getopt instead of GETOPT_H.
44365
44366 2009-08-12  Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/getopt.m4: Add comments.
44369
44370 2009-08-12  Bruno Haible  <bruno@clisp.org>
44371
44372         Disable multithread support by default on Cygwin 1.5.x.
44373         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44374         set gl_use_threads=no if not specified otherwise.
44375
44376 2009-08-11  Bruno Haible  <bruno@clisp.org>
44377
44378         Avoid compilation error on NetBSD 5.0.
44379         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44380         * tests/test-stdio.c: Likewise.
44381         * tests/test-stdlib.c: Likewise.
44382         * tests/test-string.c: Likewise.
44383         * tests/test-unistd.c: Likewise.
44384         Reported by Greg Troxel <gdt@ir.bbn.com>
44385         at <https://savannah.gnu.org/support/?106973>.
44386
44387 2009-08-11  Bruno Haible  <bruno@clisp.org>
44388
44389         * modules/dup2-tests (Depends-on): Remove close.
44390
44391         Undo 2009-07-19 commit.
44392         * modules/acl-tests (Depends-on): Remove close.
44393         * modules/binary-io-tests (Depends-on): Likewise.
44394         * modules/closein-tests (Depends-on): Likewise.
44395         * modules/flock-tests (Depends-on): Likewise.
44396         * modules/fsync-tests (Depends-on): Likewise.
44397         * modules/lseek-tests (Depends-on): Likewise.
44398         * modules/pipe-tests (Depends-on): Likewise.
44399         * modules/posix_spawn-tests (Depends-on): Likewise.
44400         * modules/posix_spawnp-tests (Depends-on): Likewise.
44401         * modules/stat-time-tests (Depends-on): Likewise.
44402         * modules/yesno-tests (Depends-on): Likewise.
44403
44404 2009-08-10  Bruno Haible  <bruno@clisp.org>
44405
44406         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44407
44408 2009-08-10  Bruno Haible  <bruno@clisp.org>
44409
44410         Fix a gcc warning.
44411         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44412
44413 2009-08-10  Bruno Haible  <bruno@clisp.org>
44414
44415         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44416         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44417         not only the first time.
44418         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44419         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44420         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44421         is 1, not only the the first time.
44422
44423 2009-08-10  Bruno Haible  <bruno@clisp.org>
44424
44425         Make it possible to use module 'gethostname' without module 'close'.
44426         * lib/unistd.in.h (close): Evoke a link error only if
44427         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44429         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44430         * modules/unistd (Makefile.am): Substitute
44431         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44432         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44433         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44434         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44435         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44436         * modules/sys_ioctl (Makefile.am): Substitute
44437         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44438         * modules/socket (configure.ac): On native Windows, set
44439         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44440         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44441         Reported by Sam Steingold <sds@gnu.org>.
44442
44443 2009-08-10  Bruno Haible  <bruno@clisp.org>
44444
44445         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44446         * modules/ioctl (configure.ac): Likewise.
44447
44448 2009-08-10  Bruno Haible  <bruno@clisp.org>
44449
44450         Avoid collision between gnulib wrapper and libintl wrapper.
44451         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44452         already defined in intl/printf.c.
44453         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44454         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44455
44456 2009-08-09  Bruno Haible  <bruno@clisp.org>
44457
44458         Make <sys/select.h> really self-contained, also on Solaris 10.
44459         * lib/sys_select.in.h: Include <string.h>.
44460         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44461         Solaris 10 problem.
44462         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44463         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44464         Reported by Jim Meyering.
44465
44466 2009-08-09  Bruno Haible  <bruno@clisp.org>
44467
44468         Avoid warnings from 'aclocal' that are due to a use of macro name
44469         AM_XGETTEXT_OPTION that is not defined in automake.
44470         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44471         automake.
44472         * modules/error (configure.ac): Likewise.
44473         * modules/propername (configure.ac): Likewise.
44474         * modules/vasprintf (configure.ac): Likewise.
44475         * modules/verror (configure.ac): Likewise.
44476         * modules/xprintf (configure.ac): Likewise.
44477         * modules/xvasprintf (configure.ac): Likewise.
44478
44479 2009-08-08  Bruno Haible  <bruno@clisp.org>
44480
44481         Avoid compilation error in C++ mode.
44482         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44483         Reported by Sam Steingold <sds@gnu.org>.
44484
44485 2009-08-08  Bruno Haible  <bruno@clisp.org>
44486
44487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44488         for the various Unix platforms.
44489         * doc/posix-headers/limits.texi: Update platforms list regarding
44490         HOST_NAME_MAX.
44491         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44492
44493 2009-08-07  Jim Meyering  <meyering@redhat.com>
44494
44495         selinux-at: fix typo in a comment
44496         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44497         Spotted by Paolo Bonzini.
44498
44499         selinux-at: remove redundant m4 code, add documentation
44500         * modules/selinux-at (configure.ac): Remove redundant code.
44501         LIB_SELINUX is already set via the dependent module, selinux-h.
44502         (Include): Add quotes around selinux-at.h.
44503         * lib/selinux-at.h: Add documentation.
44504         Reported by Bruno Haible in
44505         http://marc.info/?l=gnulib-bug&m=124958988300749
44506
44507 2009-08-07  Bruno Haible  <bruno@clisp.org>
44508
44509         Avoid link error on MacOS X 10.3 and 10.4.
44510         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44511         on non-ELF systems.
44512         * lib/argp-pv.c (argp_program_version): Likewise.
44513         Reported by Simon Josefsson.
44514
44515 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44516
44517         * tests/test-version-etc.sh: Use $EXEEXT.
44518
44519 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44520
44521         update-copyright: update documentation to point to maint.mk
44522         * build-aux/update-copyright: Here.
44523
44524 2009-08-06  Jim Meyering  <meyering@redhat.com>
44525
44526         maint.mk: support update-copyright-local
44527         * top/maint.mk (update-copyright-local): Define place-holder.
44528         (update-copyright): Depend on $(update-copyright-local).
44529
44530 2009-08-06  Jim Meyering  <meyering@redhat.com>
44531
44532         selinux-at: new module
44533         Initially written for coreutils, this module will soon be
44534         used by findutils, too.
44535         * MODULES.html.sh [Misc]: Add selinux-at.
44536         * lib/selinux-at.h: New file, from coreutils.
44537         * lib/selinux-at.c: Likewise.
44538         * modules/selinux-at: Likewise.
44539         (License): Change from LGPL to GPL, since it depends
44540         on the GPL'd openat module.
44541
44542         doc: update README
44543         * README: Remove references to cogito.
44544         Remove cvs-repo-updating instructions from 2007.
44545         Don't imply that CVS is better if you have limited disk space.
44546
44547 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44548
44549         update-copyright: support C-style comments
44550         * build-aux/update-copyright: Implement and document.
44551         * tests/test-update-copyright.sh: Test.
44552
44553 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44554
44555         update-copyright: support omitted "(C)"
44556         * build-aux/update-copyright: Implement and document.  Also,
44557         allow variable whitespace before "(C)".
44558         * tests/test-update-copyright.sh: Test.
44559
44560 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44561
44562         update-copyright: don't trip on non-FSF copyright statements
44563         * build-aux/update-copyright: Fix so that the first correctly
44564         formatted FSF copyright statement is recognized no matter what
44565         appears before it.  Update documentation.
44566         * tests/test-update-copyright.sh: Test that.
44567
44568 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44569
44570         update-copyright: clean up code a little
44571         * build-aux/update-copyright: Append "_re" to the name of any
44572         variable holding a regular expression.
44573         Replace "old" and "new" with "stmt" in variable names.
44574         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44575         handled correctly.
44576         Format code more consistently.
44577
44578 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44579
44580         update-copyright-tests: improve portability
44581         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44582         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44583
44584 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44585
44586         update-copyright: support @copyright{} and &copy;
44587         * build-aux/update-copyright: Implement and document.
44588         * tests/test-update-copyright.sh: Test.
44589
44590 2009-08-04  Jim Meyering  <meyering@redhat.com>
44591
44592         update-copyright-tests: correctly test EOL=\r\n handling
44593         * tests/test-update-copyright.sh: Put \r at the end of some lines
44594         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44595
44596         maint.mk: make update-copyright exclusion list more configurable
44597         * top/maint.mk (update-copyright): Default to excluding COPYING,
44598         but allow an override, in case someone does want to update that file.
44599
44600         maint.mk: don't update copyright date in COPYING
44601         * top/maint.mk (update-copyright): Exclude COPYING.
44602
44603         maint.mk: add a copyright-updating rule
44604         * top/maint.mk (update-copyright): New rule.
44605         Derived from coreutils/Makefile.am.
44606
44607         update-copyright: rename some variables
44608         * build-aux/update-copyright: Rename a few variables for clarity.
44609         Tweak syntax.  List Joel E. Denny as coauthor.
44610
44611 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44612
44613         update-copyright: fix bug for 2-digit last year and add tests
44614         * build-aux/update-copyright: Fix bug.
44615         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44616         specified.
44617         * modules/update-copyright-tests: New
44618         * tests/test-update-copyright.sh: New.
44619
44620 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44621
44622         update-copyright: handle leading tabs in line prefix
44623         * build-aux/update-copyright: Count leading tabs as 8 spaces
44624         when computing margin.  This helps with the formatting of
44625         ChangeLogs, for example.
44626         Fix documentation a little.
44627
44628 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44629
44630         update-copyright: support EOL=\r\n
44631         * build-aux/update-copyright: Implement that.
44632
44633 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44634
44635         update-copyright: automatically format copyright statements
44636         * build-aux/update-copyright: Implement that.
44637         Also, be a little more predictable and safer by always failing
44638         when the full copyright format is not perfectly recognized as an
44639         unbroken whole.  Discussed at
44640         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44641         Rewrite documentation.
44642
44643 2009-08-03  Bruno Haible  <bruno@clisp.org>
44644
44645         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44646
44647 2009-08-02  Bruno Haible  <bruno@clisp.org>
44648
44649         Tests for module 'uname'.
44650         * modules/uname-tests: New file.
44651         * tests/test-uname.c: New file.
44652
44653         New module 'uname'.
44654         * lib/uname.c: New file.
44655         * m4/uname.m4: New file.
44656         * modules/uname: New file.
44657         * doc/posix-functions/uname.texi: Mention the new module.
44658
44659 2009-08-02  Bruno Haible  <bruno@clisp.org>
44660
44661         Tests for module 'sys_utsname'.
44662         * modules/sys_utsname-tests: New file.
44663         * tests/test-sys_utsname.c: New file.
44664
44665         New module 'sys_utsname'.
44666         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44667         * m4/sys_utsname_h.m4: New file.
44668         * modules/sys_utsname: New file.
44669         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44670
44671 2009-08-02  Bruno Haible  <bruno@clisp.org>
44672
44673         Implicitly initialize the sockets library.
44674         * lib/gethostname.c: Include sockets.h.
44675         (rpl_gethostname): Invoke gl_sockets_startup.
44676         * lib/socket.c: Include sockets.h.
44677         (rpl_socket): Invoke gl_sockets_startup.
44678         * modules/gethostname (Depends-on): Add sockets.
44679         * modules/socket (Depends-on): Likewise.
44680         * tests/test-poll.c: Don't include sockets.h.
44681         (main): Don't invoke gl_sockets_startup.
44682         * tests/test-select.c: Don't include sockets.h.
44683         (main): Don't invoke gl_sockets_startup.
44684
44685 2009-08-02  Bruno Haible  <bruno@clisp.org>
44686
44687         Allow multiple calls to gl_sockets_startup.
44688         * lib/sockets.c (initialized_sockets_version): New variable.
44689         (gl_sockets_startup): Do nothing if already called for this or a higher
44690         version.
44691         (gl_sockets_cleanup): Reset initialized_sockets_version.
44692
44693 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44694
44695         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44696         different project/version.
44697
44698 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44699             Bruno Haible  <bruno@clisp.org>
44700
44701         Tests for module 'pipe-filter-gi'.
44702         * modules/pipe-filter-gi-tests: New file.
44703         * tests/test-pipe-filter-gi1.sh: New file.
44704         * tests/test-pipe-filter-gi1.c: New file.
44705         * tests/test-pipe-filter-gi2.sh: New file.
44706         * tests/test-pipe-filter-gi2-main.c: New file.
44707         * tests/test-pipe-filter-gi2-child.c: New file.
44708
44709         New module 'pipe-filter-gi'.
44710         * lib/pipe-filter-gi.c: New file.
44711         * modules/pipe-filter-gi: New file.
44712
44713 2009-08-02  Bruno Haible  <bruno@clisp.org>
44714             Paolo Bonzini  <bonzini@gnu.org>
44715
44716         Tests for module 'pipe-filter-ii'.
44717         * modules/pipe-filter-ii-tests: New file.
44718         * tests/test-pipe-filter-ii1.sh: New file.
44719         * tests/test-pipe-filter-ii1.c: New file.
44720         * tests/test-pipe-filter-ii2.sh: New file.
44721         * tests/test-pipe-filter-ii2-main.c: New file.
44722         * tests/test-pipe-filter-ii2-child.c: New file.
44723
44724         New module 'pipe-filter-ii'.
44725         * lib/pipe-filter.h: New file.
44726         * lib/pipe-filter-ii.c: New file.
44727         * lib/pipe-filter-aux.h: New file.
44728         * modules/pipe-filter-ii: New file.
44729
44730 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44731
44732         * lib/gc-libgcrypt.c: Change copyright to FSF.
44733         * lib/gc-gnulib.c: Likewise.
44734
44735 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44736
44737         * lib/gethostname.c: Include limits.h.
44738
44739 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44740             Bruno Haible  <bruno@clisp.org>
44741
44742         Ensure HOST_NAME_MAX as part of the gethostname module.
44743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44744         define also HOST_NAME_MAX.
44745         * tests/test-gethostname.c: Include <limits.h>.
44746         (main): Check also HOST_NAME_MAX.
44747         * doc/posix-headers/limits.texi: Document the mingw problem.
44748
44749 2009-08-02  Bruno Haible  <bruno@clisp.org>
44750
44751         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44752         Add comments.
44753
44754 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44755
44756         * lib/gethostname.c: Add Windows wrapper.
44757         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44758         * modules/gethostname: Depend on sys_socket & errno, for also
44759         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44760         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44761
44762 2009-07-31  Jim Meyering  <meyering@redhat.com>
44763
44764         getloadavg: fix symbol name in comment
44765         * lib/getloadavg.c: Correct a typo I introduced when adding
44766         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44767         Matt Kraai spotted the problem.
44768
44769 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44770
44771         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44772         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44773         code also if ! defined N_NAME_POINTER.
44774         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44775         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44776         but the n_name member is a 12-byte array.
44777
44778 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44779
44780         update-copyright: generalize comment handling
44781         * build-aux/update-copyright: Handle copyright statements
44782         within more comment styles.
44783         Document usage.
44784         Report any file with an external copyright holder or parse failure.
44785
44786 2009-07-29  Jim Meyering  <meyering@redhat.com>
44787
44788         mktime: correct setting of REPLACE_MKTIME
44789         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44790
44791         update-copyright: new module
44792         * modules/update-copyright: New file.
44793         * build-aux/update-copyright: New file.
44794         * MODULES.html.sh (maint+release support): Add update-copyright.
44795
44796 2009-07-27  Bruno Haible  <bruno@clisp.org>
44797
44798         Fix compilation error when <ctime> is used and mktime is replaced.
44799         * lib/time.in.h (mktime): New declaration.
44800         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44801         REPLACE_MKTIME instead of defining mktime in config.h.
44802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44803         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44804         Reported by Ross McFarland <rwmcfa1@neces.com>.
44805
44806 2009-07-27  Bruno Haible  <bruno@clisp.org>
44807
44808         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44809         Reported by Matt Kraai <mkraai@beckman.com>.
44810
44811 2009-07-25  Jim Meyering  <meyering@redhat.com>
44812
44813         maint.mk: avoid warnings about missing files
44814         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44815         diagnostic when .prev-version does not exist.
44816         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44817         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44818         nonexistent cfg.mk.
44819         Suggestions from Simon Josefsson.
44820
44821 2009-07-25  Bruno Haible  <bruno@clisp.org>
44822
44823         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44824         defined as macros. Needed on QNX 6.4.1.
44825         Reported by Matt Kraai <mkraai@beckman.com>.
44826
44827 2009-07-23  Jim Meyering  <meyering@redhat.com>
44828
44829         maint.mk: invoke "make dist" with a working value of XZ_OPT
44830         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44831
44832 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44833
44834         Make fseeko.c compile on QNX.
44835         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44836
44837 2009-07-22  Peter Simons  <simons@cryp.to>
44838
44839         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44840         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44841         * lib/md4.h: Likewise.
44842         * lib/md5.h: Likewise.
44843         * lib/sha1.h: Likewise.
44844         * lib/sha256.h: Likewise.
44845         * lib/sha512.h: Likewise.
44846
44847         tests-sha1: don't assign literal string to 'char *' variable
44848         * tests/test-sha1.c (main): Declare locals with "const" to match
44849         attributes of the right hand side.
44850
44851 2009-07-21  Eric Blake  <ebb9@byu.net>
44852
44853         dup2: fix more mingw problems
44854         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44855         fd to itself.
44856         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44857         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44858         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44859         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44860         care of mingw bugs.
44861
44862 2009-07-21  Jim Meyering  <meyering@redhat.com>
44863
44864         vc-list-files: avoid failure when /bin/sh is dash
44865         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44866         On some Debian based systems, /bin/sh is a symlink to dash, and running
44867         this command would omit the "/" following each 'tests' prefix:
44868           dash -x build-aux/vc-list-files -C . tests
44869         That is because bash and dash work differently:
44870           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44871           bash ok
44872           dash odd
44873
44874 2009-07-21  Eric Blake  <ebb9@byu.net>
44875
44876         dup2-tests: test previous patch
44877         * modules/dup2-tests: New file.
44878         * tests/test-dup2.c: Likewise.
44879         * tests/test-open.c (main): Avoid unspecified behavior.
44880         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44881         test.
44882
44883         dup2: work around mingw and cygwin 1.5 bug
44884         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44886         * modules/unistd (Makefile.am): Substitute it.
44887         * lib/unistd.in.h (dup2): Declare the replacement.
44888         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44889         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44890         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44891         * modules/execute (Depends-on): Add dup2.
44892         * modules/fseterr (Depends-on): Likewise.
44893         * modules/pipe (Depends-on): Likewise.
44894         * modules/posix_spawn-internal (Depends-on): Likewise.
44895
44896 2009-07-21  Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/.gitattributes: New file.
44899
44900 2009-07-20  Bruno Haible  <bruno@clisp.org>
44901
44902         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44903         (main): Use it.
44904
44905 2009-07-20  Eric Blake  <ebb9@byu.net>
44906
44907         test-pipe: make a bit more robust.
44908         * tests/test-pipe.c (myerr): Allow error messages regardless of
44909         what we do to stderr.
44910         (test_pipe): Rearrange to avoid deadlock.
44911         (child_main): Try a larger read, to ensure we avoided deadlock.
44912         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44913         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44914         if misused.
44915
44916 2009-07-19  Jim Meyering  <meyering@redhat.com>
44917
44918         fts: avoid false-positive cycle-detection
44919         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44920         for each new command line argument.
44921
44922 2009-07-19  Bruno Haible  <bruno@clisp.org>
44923
44924         Fix build error on mingw with the modules sys_select and unistd.
44925         * modules/acl-tests (Depends-on): Add close.
44926         * modules/binary-io-tests (Depends-on): Likewise.
44927         * modules/closein-tests (Depends-on): Likewise.
44928         * modules/flock-tests (Depends-on): Likewise.
44929         * modules/fsync-tests (Depends-on): Likewise.
44930         * modules/lseek-tests (Depends-on): Likewise.
44931         * modules/pipe-tests (Depends-on): Likewise.
44932         * modules/posix_spawn-tests (Depends-on): Likewise.
44933         * modules/posix_spawnp-tests (Depends-on): Likewise.
44934         * modules/stat-time-tests (Depends-on): Likewise.
44935         * modules/yesno-tests (Depends-on): Likewise.
44936
44937 2009-07-19  Bruno Haible  <bruno@clisp.org>
44938
44939         Unify conditionals.
44940         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44941         macros, not at the compiler macros.
44942         * lib/pipe.c: Likewise.
44943         * lib/execute.c: Likewise.
44944         * lib/spawni.c: Likewise.
44945
44946 2009-07-19  Bruno Haible  <bruno@clisp.org>
44947
44948         Fix handling of closed stdin/stdout/stderr on mingw.
44949         * lib/w32spawn.h: Include unistd.h.
44950         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44951         file descriptor with O_NOINHERIT flag.
44952         (fd_safer_noinherit): New function, based on fd-safer.c.
44953         (dup_safer_noinherit): New function, based on dup-safer.c.
44954         (undup_safer_noinherit): New function.
44955         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44956         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44957         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44958         instead of fd_safer.
44959         * tests/test-pipe.c: Include <windows.h>.
44960         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44961         result.
44962
44963         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44964         from main.
44965         (test_pipe): Pass an extra argument for disambiguation.
44966         (main): Invoke parent_main or child_main.
44967
44968         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44969         consistently.
44970
44971 2009-07-18  Eric Blake  <ebb9@byu.net>
44972
44973         test-pipe: fix mingw build
44974         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44975
44976 2009-07-18  Bruno Haible  <bruno@clisp.org>
44977
44978         * modules/pipe-tests (Makefile.am): Fix typo.
44979
44980 2009-07-18  Eric Blake  <ebb9@byu.net>
44981
44982         error: fix mingw build
44983         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44984         Reported by Bruno Haible.
44985
44986         error: avoid undefined use of stdout
44987         * lib/error.c (error, error_at_line): Check that fd 1 is open
44988         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44989         is handling faults and the close_stdout module wants to report the
44990         detection of closed stdout as an error.
44991
44992 2009-07-17  Eric Blake  <ebb9@byu.net>
44993
44994         pipe: be robust in face of closed fds
44995         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44996         should cause child to misbehave.
44997         * modules/pipe-tests: New module.
44998         * tests/test-pipe.c: New file.
44999         * tests/test-pipe.sh: New file.
45000         Reported by Akim Demaille.
45001
45002 2009-07-14  Bruno Haible  <bruno@clisp.org>
45003
45004         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45005         Reported by anonymous kc.
45006
45007 2009-07-07  Jim Meyering  <meyering@redhat.com>
45008
45009         maint.mk: don't look for translatable strings in *.m4 or *.mk
45010         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45011         when searching for translatable strings.
45012
45013 2009-07-05  Jim Meyering  <meyering@redhat.com>
45014
45015         remove superfluous parentheses in STREQ definition
45016         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45017         * lib/getugroups.c (STREQ): Likewise.
45018         * lib/fnmatch.c (STREQ): Likewise.
45019         Spotted by Bruno Haible.
45020
45021 2009-07-04  Jim Meyering  <meyering@redhat.com>
45022
45023         argv-iter: new module
45024         * MODULES.html.sh: Add argv-iter.
45025         * lib/argv-iter.c, lib/argv-iter.h: New files.
45026         * modules/argv-iter: New file.
45027         * modules/argv-iter-tests: New file.
45028         * tests/test-argv-iter.c: Test it.
45029
45030 2009-07-04  Bruno Haible  <bruno@clisp.org>
45031
45032         Fix assertion.
45033         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45034         contains more exact copies of a given entry than file2, leave the extra
45035         copies unpaired rather than aborting.
45036         Reported by Eric Blake.
45037
45038 2009-07-02  Bruno Haible  <bruno@clisp.org>
45039
45040         Speedup git-merge-changelog for git cherry-pick.
45041         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45042         (entries_mapping_get): New function, extracted from compute_mapping.
45043         (entries_mapping_reverse_get): New function.
45044         (compute_mapping): Add a 'full' argument. Return the result in a
45045         'struct entries_mapping'.
45046         (main): Update. Access the mappings through entries_mapping_get.
45047         Reported by Eric Blake.
45048
45049 2009-07-02  Bruno Haible  <bruno@clisp.org>
45050
45051         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45052         best_i.
45053
45054 2009-07-02  Bruno Haible  <bruno@clisp.org>
45055
45056         Speed up approximate search for matching ChangeLog entries.
45057         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45058         argument. Call fstrcmp_bounded instead of fstrcmp.
45059         (compute_mapping, try_split_merged_entry, main): Update callers.
45060
45061 2009-07-02  Bruno Haible  <bruno@clisp.org>
45062
45063         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45064
45065 2009-06-30  Bruno Haible  <bruno@clisp.org>
45066
45067         Reduce the number of uc_is_cased calls.
45068         * lib/unicase.h (casing_suffix_context_t): Add
45069         'first_char_except_ignorable' field.
45070         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45071         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45072         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45073         Update initializer.
45074         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45075         case-ignorable characters.
45076         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45077         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45078         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45079         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45080         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45081
45082 2009-06-30  Bruno Haible  <bruno@clisp.org>
45083
45084         Tests for module 'unicase/ignorable'.
45085         * modules/unicase/ignorable-tests: New file.
45086         * tests/unicase/test-ignorable.c: New file, generated by
45087         gen-uni-tables.
45088
45089         Tests for module 'unicase/cased'.
45090         * modules/unicase/cased-tests: New file.
45091         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45092         * tests/unicase/test-predicate-part1.h: New file, derived from
45093         tests/unictype/test-predicate-part1.h.
45094         * tests/unicase/test-predicate-part2.h: New file, same as
45095         tests/unictype/test-predicate-part2.h.
45096
45097         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45098         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45099         (output_casing_properties): New function.
45100         (main): Call it.
45101         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45102         * lib/unicase/cased.c: Include unictype/bitmap.h.
45103         (uc_is_cased): Define through a bitmap lookup.
45104         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45105         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45106         (uc_is_case_ignorable): Define through a bitmap lookup.
45107         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45108         lib/unictype/bitmap.h.
45109         (Depends-on): Add inline. Clean up.
45110         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45111         lib/unictype/bitmap.h.
45112         (Depends-on): Add inline. Clean up.
45113         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45114         recognition.
45115         * tests/unicase/test-u16-tolower.c (main): Likewise.
45116         * tests/unicase/test-u32-tolower.c (main): Likewise.
45117
45118 2009-06-30  Bruno Haible  <bruno@clisp.org>
45119
45120         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45121         * lib/unicase/u16-casemap.c: Likewise.
45122         * lib/unicase/u32-casemap.c: Likewise.
45123
45124 2009-06-29  Bruno Haible  <bruno@clisp.org>
45125
45126         Define u32_casefold as a wrapper around u32_ct_casefold.
45127         * lib/unicase/u32-casefold.c: Update.
45128         * modules/unicase/u32-casefold (Depends-on): Add
45129         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45130         unicase/empty-suffix-context. Clean up.
45131
45132         Define u16_casefold as a wrapper around u16_ct_casefold.
45133         * lib/unicase/u16-casefold.c: Update.
45134         * modules/unicase/u16-casefold (Depends-on): Add
45135         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45136         unicase/empty-suffix-context. Clean up.
45137
45138         Define u8_casefold as a wrapper around u8_ct_casefold.
45139         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45140         * lib/unicase/u8-casefold.c: Update.
45141         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45142         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45143
45144         Define u32_totitle as a wrapper around u32_ct_totitle.
45145         * lib/unicase/u32-totitle.c: Update.
45146         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45147         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45148
45149         Define u16_totitle as a wrapper around u16_ct_totitle.
45150         * lib/unicase/u16-totitle.c: Update.
45151         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45152         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45153
45154         Define u8_totitle as a wrapper around u8_ct_totitle.
45155         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45156         functions.
45157         (FUNC): Delegate to U_CT_TOTITLE.
45158         * lib/unicase/u8-totitle.c: Update.
45159         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45160         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45161
45162         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45163         invocation.
45164         * modules/unicase/u32-tolower (Depends-on): Add
45165         unicase/empty-prefix-context, unicase/empty-suffix-context.
45166
45167         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45168         invocation.
45169         * modules/unicase/u16-tolower (Depends-on): Add
45170         unicase/empty-prefix-context, unicase/empty-suffix-context.
45171
45172         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45173         * modules/unicase/u8-tolower (Depends-on): Add
45174         unicase/empty-prefix-context, unicase/empty-suffix-context.
45175
45176         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45177         invocation.
45178         * modules/unicase/u32-toupper (Depends-on): Add
45179         unicase/empty-prefix-context, unicase/empty-suffix-context.
45180
45181         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45182         invocation.
45183         * modules/unicase/u16-toupper (Depends-on): Add
45184         unicase/empty-prefix-context, unicase/empty-suffix-context.
45185
45186         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45187         * modules/unicase/u8-toupper (Depends-on): Add
45188         unicase/empty-prefix-context, unicase/empty-suffix-context.
45189
45190         New module 'unicase/u32-ct-casefold'.
45191         * lib/unicase/u32-ct-casefold.c: New file.
45192         * modules/unicase/u32-ct-casefold: New file.
45193
45194         New module 'unicase/u16-ct-casefold'.
45195         * lib/unicase/u16-ct-casefold.c: New file.
45196         * modules/unicase/u16-ct-casefold: New file.
45197
45198         New module 'unicase/u8-ct-casefold'.
45199         * lib/unicase/u8-ct-casefold.c: New file.
45200         * lib/unicase/u-ct-casefold.h: New file, derived from
45201         lib/unicase/u-casefold.h.
45202         * modules/unicase/u8-ct-casefold: New file.
45203
45204         New module 'unicase/u32-ct-totitle'.
45205         * lib/unicase/u32-ct-totitle.c: New file.
45206         * modules/unicase/u32-ct-totitle: New file.
45207
45208         New module 'unicase/u16-ct-totitle'.
45209         * lib/unicase/u16-ct-totitle.c: New file.
45210         * modules/unicase/u16-ct-totitle: New file.
45211
45212         New module 'unicase/u8-ct-totitle'.
45213         * lib/unicase/u8-ct-totitle.c: New file.
45214         * lib/unicase/u-ct-totitle.h: New file, derived from
45215         lib/unicase/u-totitle.h.
45216         * modules/unicase/u8-ct-totitle: New file.
45217
45218         New module 'unicase/u32-ct-tolower'.
45219         * lib/unicase/u32-ct-tolower.c: New file.
45220         * modules/unicase/u32-ct-tolower: New file.
45221
45222         New module 'unicase/u16-ct-tolower'.
45223         * lib/unicase/u16-ct-tolower.c: New file.
45224         * modules/unicase/u16-ct-tolower: New file.
45225
45226         New module 'unicase/u8-ct-tolower'.
45227         * lib/unicase/u8-ct-tolower.c: New file.
45228         * modules/unicase/u8-ct-tolower: New file.
45229
45230         New module 'unicase/u32-ct-toupper'.
45231         * lib/unicase/u32-ct-toupper.c: New file.
45232         * modules/unicase/u32-ct-toupper: New file.
45233
45234         New module 'unicase/u16-ct-toupper'.
45235         * lib/unicase/u16-ct-toupper.c: New file.
45236         * modules/unicase/u16-ct-toupper: New file.
45237
45238         New module 'unicase/u8-ct-toupper'.
45239         * lib/unicase/u8-ct-toupper.c: New file.
45240         * modules/unicase/u8-ct-toupper: New file.
45241
45242         Add context arguments to u*_casemap functions.
45243         * lib/unicase/unicasemap.h: Include unicase.h.
45244         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45245         suffix_context arguments.
45246         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45247         functions.
45248         (FUNC): Add prefix_context and suffix_context arguments. Use
45249         uc_is_cased and uc_is_case_ignorable.
45250         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45251         * lib/unicase/u16-casemap.c: Likewise.
45252         * lib/unicase/u32-casemap.c: Likewise.
45253         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45254         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45255         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45256         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45257         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45258         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45259
45260         New module 'unicase/u32-suffix-context'.
45261         * lib/unicase/u32-suffix-context.c: New file.
45262         * modules/unicase/u32-suffix-context: New file.
45263
45264         New module 'unicase/u16-suffix-context'.
45265         * lib/unicase/u16-suffix-context.c: New file.
45266         * modules/unicase/u16-suffix-context: New file.
45267
45268         New module 'unicase/u8-suffix-context'.
45269         * lib/unicase/u8-suffix-context.c: New file.
45270         * lib/unicase/u-suffix-context.h: New file.
45271         * modules/unicase/u8-suffix-context: New file.
45272
45273         New module 'unicase/empty-suffix-context'.
45274         * lib/unicase/empty-suffix-context.c: New file.
45275         * modules/unicase/empty-suffix-context: New file.
45276
45277         New module 'unicase/u32-prefix-context'.
45278         * lib/unicase/u32-prefix-context.c: New file.
45279         * modules/unicase/u32-prefix-context: New file.
45280
45281         New module 'unicase/u16-prefix-context'.
45282         * lib/unicase/u16-prefix-context.c: New file.
45283         * modules/unicase/u16-prefix-context: New file.
45284
45285         New module 'unicase/u8-prefix-context'.
45286         * lib/unicase/u8-prefix-context.c: New file.
45287         * lib/unicase/u-prefix-context.h: New file.
45288         * lib/unicase/context.h: New file.
45289         * modules/unicase/u8-prefix-context: New file.
45290
45291         New module 'unicase/empty-prefix-context'.
45292         * lib/unicase/empty-prefix-context.c: New file.
45293         * modules/unicase/empty-prefix-context: New file.
45294
45295         New module 'unicase/ignorable'.
45296         * lib/unicase/ignorable.c: New file.
45297         * modules/unicase/ignorable: New file.
45298
45299         New module 'unicase/cased'.
45300         * lib/unicase/caseprop.h: New file.
45301         * lib/unicase/cased.c: New file.
45302         * modules/unicase/cased: New file.
45303
45304         New functions for case mapping of substrings.
45305         * lib/unicase.h (casing_prefix_context_t): New type.
45306         (unicase_empty_prefix_context): New variable.
45307         (u8_casing_prefix_context, u16_casing_prefix_context,
45308         u32_casing_prefix_context, u8_casing_prefixes_context,
45309         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45310         declarations.
45311         (casing_suffix_context_t): New type.
45312         (unicase_empty_suffix_context): New variable.
45313         (u8_casing_suffix_context, u16_casing_suffix_context,
45314         u32_casing_suffix_context, u8_casing_suffixes_context,
45315         u16_casing_suffixes_context, u32_casing_suffixes_context,
45316         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45317         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45318         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45319         declarations.
45320
45321 2009-06-28  Jim Meyering  <meyering@redhat.com>
45322
45323         boostrap: indent only with spaces
45324         * build-aux/bootstrap: Indent only with spaces, never TABs.
45325
45326         bootstrap: split long lines
45327         * build-aux/bootstrap: Keep line length < 80.
45328
45329         bootstrap: sync from coreutils
45330         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45331         just as autoreconf does.  Verify a list of prerequisite
45332         package-name,version-number pairs if defined in bootstrap.conf.
45333         Refer to README-prereq, if prerequisites are not satisfied.
45334
45335 2009-06-27  Eric Blake  <ebb9@byu.net>
45336
45337         tests: add test for bogus NULL definition
45338         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45339         * tests/test-stdlib.c: Likewise.
45340         * tests/test-string.c: Likewise.
45341         * tests/test-locale.c: Likewise.
45342         * tests/test-unistd.c: Likewise.
45343         * modules/stdio-tests (Depends-on): Add verify.
45344         * modules/stdlib-tests (Depends-on): Likewise.
45345         * modules/string-tests (Depends-on): Likewise.
45346         * modules/locale-tests (Depends-on): Likewise.
45347         * modules/unistd-tests (Depends-on): Likewise.
45348
45349 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45350
45351         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45352         self-explaining comment.
45353         * m4/selinux-selinux-h: Update serial.
45354         (gl_LIBSELINUX): New macro, adding a warning for missing development
45355         packages to code extracted from...
45356         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45357         Add warning for missing development packages here, too.
45358
45359 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45360
45361         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45362
45363 2009-06-25  Eric Blake  <ebb9@byu.net>
45364
45365         version-etc: fix regression
45366         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45367         gcc.
45368         (version_etc): Use it, to catch bugs with trailing NULL.
45369         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45370         (version_etc_va): Fix logic bug.
45371         * modules/version-etc-tests: Add test.
45372         * tests/test-version-etc.c: New file.
45373         * tests/test-version-etc.sh: Likewise.
45374
45375 2009-06-25  Sam Steingold  <sds@gnu.org>
45376
45377         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45378         mbtowc declaration.
45379
45380 2009-06-25  Eric Blake  <ebb9@byu.net>
45381
45382         fpurge: migrate into <stdio.h>
45383         * lib/fpurge.h: Delete...
45384         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45385         * lib/fpurge.c (fpurge): Change declaring header.
45386         * modules/fpurge (Files): Drop deleted file.
45387         (Depends-on): Add stdio.
45388         (configure.ac): Set witness.
45389         * modules/stdio (Makefile.am): Support fpurge macros.
45390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45391         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45392         * lib/fflush.c: Update client.
45393         * tests/test-fpurge.c: Likewise.
45394         * NEWS: Mention the change.
45395
45396 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45397
45398         * lib/argp-version-etc.c (program_authors): Add const
45399         qualifier.
45400         * lib/version-etc.c: Fix typos in the comments.
45401         * modules/argp-version-etc: Depends on version-etc.
45402
45403 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45404
45405         argp-version-etc: new module.
45406
45407         * lib/argp-version-etc.c: New file.
45408         * lib/argp-version-etc.h: New file.
45409         * modules/argp-version-etc: New file.
45410         * modules/argp-version-etc-tests: New file.
45411         * tests/test-argp-version-etc.c: New test.
45412         * tests/test-argp-version-etc-1.sh: New test.
45413
45414 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45415
45416         Provide additional interfaces and documentation for version-etc
45417         module.
45418
45419         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45420         interfaces.
45421         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45422         prototypes.
45423
45424 2009-06-24  Bruno Haible  <bruno@clisp.org>
45425
45426         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45427         HAVE_LIB${NAME} macro.
45428         Reported by Sam Steingold <sds@gnu.org>.
45429
45430 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45431
45432         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45433         needed.
45434
45435 2009-06-21  Bruno Haible  <bruno@clisp.org>
45436
45437         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45438         work.
45439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45440         together with LIB${NAME}, LTLIB${NAME}.
45441         Reported by Sam Steingold <sds@gnu.org>.
45442
45443 2009-06-20  Jim Meyering  <meyering@redhat.com>
45444
45445         tests: make sc_require_test_exit_idiom more generic
45446         * top/maint.mk (Exit_witness_file): New overridable variable.
45447         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45448         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45449
45450 2009-06-19  Jim Meyering  <meyering@redhat.com>
45451
45452         hash: reverse order of src/dst parameters in an internal interface
45453         * lib/hash.c (transfer_entries): Reverse order of parameters to
45454         put DST before SRC.  Adjust callers.
45455
45456         tests: test-hash: avoid wholesale duplication
45457         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45458         Instead, use a loop and add a single conditional.
45459
45460         tests: test-hash: allow seed selection via a command line argument
45461         * tests/test-hash.c (get_seed): New function.
45462         (main): Use it.
45463
45464 2009-06-19  Eric Blake  <ebb9@byu.net>
45465
45466         hash: avoid memory leak on allocation failure
45467         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45468         failure.  Factor repeated algorithm...
45469         (transfer_entries): ...into new helper routine.
45470         (hash_delete): React to hash_rehash return value.
45471
45472         hash: reduce memory pressure in hash_rehash no-op case
45473         * lib/hash.c (next_prime): Avoid overflow.
45474         (hash_initialize): Factor bucket size computation...
45475         (compute_bucket_size): ...into new helper function.
45476         (hash_rehash): Use new function and open coding to reduce memory
45477         pressure, and avoid a memory leak in USE_OBSTACK code.
45478         Reported by Jim Meyering.
45479
45480 2009-06-18  Eric Blake  <ebb9@byu.net>
45481
45482         hash: make rotation more obvious
45483         * modules/hash (Depends-on): Add bitrotate and stdint.
45484         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45485         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45486         (SIZE_MAX): Rely on headers for definition.
45487         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45488         (raw_hasher): Use rotr_sz.
45489         Suggested by Jim Meyering.
45490
45491         hash: fix memory leak in last patch
45492         * lib/hash.c (hash_rehash): Avoid memory leak.
45493
45494         hash: avoid no-op rehashing
45495         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45496
45497         hash: provide default callback functions
45498         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45499         (hash_initialize): Use them as defaults.
45500         * tests/test-hash.c (main): Test this.
45501
45502         hash: minor optimization
45503         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45504         when possible.
45505         (hash_initialize): Document this promise.
45506         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45507         * tests/test-hash.c (hash_compare_strings): Test this.
45508
45509 2009-06-18  Bruno Haible  <bruno@clisp.org>
45510
45511         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45512         going to be replaced anyway.
45513
45514 2009-06-18  Bruno Haible  <bruno@clisp.org>
45515
45516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45517         in one place.
45518         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45519         be replaced anyway.
45520
45521 2009-06-18  Eric Blake  <ebb9@byu.net>
45522
45523         hash: check for resize before insertion
45524         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45525         threshold before insertion, so that a pathological hash_rehash
45526         that fills every bucket can still trigger another rehash.
45527
45528 2009-06-18  Jim Meyering  <meyering@redhat.com>
45529
45530         hash-tests: add a loop around the small tests
45531         * tests/test-hash.c (main): Repeat small tests with selected
45532         small initial table sizes.
45533
45534 2009-06-17  Eric Blake  <ebb9@byu.net>
45535
45536         hash: minor cleanups
45537         * lib/hash.h (hash_entry): Make opaque, by moving...
45538         * lib/hash.c (hash_entry): ...here.
45539         (hash_insert): Clarify restrictions on what can be inserted.
45540         (hash_get_next): Clarify when it is safe to remove an element
45541         during traversal.
45542         (check_tuning): Skip verification when tuning is known safe.
45543         (hash_initialize): Clarify restrictions on tuning.
45544
45545 2009-06-17  Jim Meyering  <jim@meyering.net>
45546         and Eric Blake  <ebb9@byu.net>
45547
45548         hash-tests: new module
45549         * modules/hash-tests: New file.
45550         * tests/test-hash.c: New file.
45551
45552 2009-06-17  Eric Blake  <ebb9@byu.net>
45553
45554         strstr-simple: document new module
45555         * MODULES.html.sh: Document new module.
45556
45557         strstr, strcasestr: replace on platforms with broken memchr
45558         * modules/strstr: Split into...
45559         * modules/strstr-simple: ...new module that does not care about
45560         performance, but does care about glibc bug.
45561         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45562         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45563         if platform memchr is broken, per Debian bug 521737.
45564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45565         memchr.
45566         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45567         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45568         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45569         * modules/mountlist (Depends-on): Add strstr-simple.
45570         * modules/gen-uni-tables (Depends-on): Likewise.
45571         * modules/argz (Depends-on): Add strstr.
45572
45573 2009-06-17  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/posix_spawn-internal (Depends-on): Add errno.
45576
45577 2009-06-17  Bruno Haible  <bruno@clisp.org>
45578
45579         Define missing ESTALE on Interix 3.5.
45580         * lib/errno.in.h (ESTALE): Assign a value if missing.
45581         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45582         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45583         missing.
45584         * doc/posix-headers/errno.texi: Mention the Interix bug.
45585         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45586
45587 2009-06-15  Eric Blake  <ebb9@byu.net>
45588
45589         memchr, memchr2: add valgrind exception
45590         * lib/memchr.valgrind: New file.
45591         * lib/memchr2.valgrind: New file.
45592         * modules/memchr (Files): Distribute valgrind file.
45593         * modules/memchr2 (Files): Likewise.
45594
45595         docs: memchr is no longer obsolete
45596         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45597         * lib/string.in.h (memchr): Simplify logic.
45598
45599 2009-06-14  Jim Meyering  <meyering@redhat.com>
45600
45601         link-follow: fix the "checking..." message to not mention trailing slash
45602         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45603         never considered trailing slashes.
45604
45605 2009-06-14  Bruno Haible  <bruno@clisp.org>
45606
45607         * m4/memchr.m4: Mention also the bug on IA-64.
45608         * doc/posix-functions/memchr.texi: Likewise.
45609
45610 2009-06-12  Eric Blake  <ebb9@byu.net>
45611
45612         memchr: detect broken x86_64 and alpha implementations
45613         * modules/memchr-tests (Depends-on): Move mmap detection...
45614         * modules/memchr (Depends-on): ...here.
45615         (configure.ac): Set indicator.
45616         * lib/string.in.h (memchr): Declare replacement.
45617         * modules/string (Makefile.am): Trigger replacement.
45618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45619         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45620         bugs.
45621         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45622         * modules/getpagesize (License): Relax license.
45623
45624 2009-06-11  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/idpriv.h: Add more references.
45627
45628 2009-06-08  Bruno Haible  <bruno@clisp.org>
45629
45630         Tests for module 'idpriv-droptemp'.
45631         * modules/idpriv-droptemp-tests: New file.
45632         * tests/test-idpriv-droptemp.sh: New file.
45633         * tests/test-idpriv-droptemp.su.sh: New file.
45634         * tests/test-idpriv-droptemp.c: New file.
45635
45636         New module 'idpriv-droptemp'.
45637         * lib/idpriv-droptemp.c: New file.
45638         * modules/idpriv-droptemp: New file.
45639
45640 2009-06-08  Bruno Haible  <bruno@clisp.org>
45641
45642         Tests for module 'idpriv-drop'.
45643         * modules/idpriv-drop-tests: New file.
45644         * tests/test-idpriv-drop.sh: New file.
45645         * tests/test-idpriv-drop.su.sh: New file.
45646         * tests/test-idpriv-drop.c: New file.
45647
45648         New module 'idpriv-drop'.
45649         * lib/idpriv.h: New file.
45650         * lib-idpriv-drop.c: New file.
45651         * m4/idpriv.m4: New file.
45652         * modules/idpriv-drop: New file.
45653
45654 2009-06-08  Bruno Haible  <bruno@clisp.org>
45655
45656         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45657         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45658         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45659         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45660         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45661         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45662         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45663
45664 2009-06-08  Eric Blake  <ebb9@byu.net>
45665
45666         test-strstr: use memory fence, when possible
45667         * tests/test-strstr.c (main): Use memory fence, in order to be
45668         more likely to trigger Debian bug 521737.
45669         * modules/strstr-tests (Files): Pull in additional files.
45670
45671         memchr: no longer obsolete, for wider field testing
45672         * modules/memchr (Status, Notice): Delete, this module is no
45673         longer obsolete.
45674         * modules/vasnprintf (Depends-on): Add memchr.
45675
45676 2009-06-07  Jim Meyering  <meyering@redhat.com>
45677
45678         hash: declare some functions with the warn_unused_result attribute
45679         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45680
45681 2009-06-07  Bruno Haible  <bruno@clisp.org>
45682
45683         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45684         Reported by Eric Blake.
45685
45686 2009-06-06  Eric Blake  <ebb9@byu.net>
45687
45688         test-alignof: fix typo with long double
45689         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45690         compiler error.
45691
45692 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45693
45694         Escape non-texinfo { and }s.
45695         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45696         markup error.
45697
45698 2009-06-04  Jim Meyering  <meyering@redhat.com>
45699
45700         gitlog-to-changelog: don't infloop on an empty commit log
45701         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45702         Reported by Boris Petersen <transacid@centerim.org>.
45703
45704 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45705
45706         version-etc: extend for packagers
45707         Add three new configure options, intended for packagers:
45708           --with-packager="packager name"
45709           --with-packager-version="packager-specific version"
45710           --with-packager-bug-reports="packager bug reporting"
45711         An example with coreutils:
45712           $ ./configure \
45713             --with-packager=Gentoo \
45714             --with-packager-bug-report=http://bugs.gentoo.org/ \
45715             --with-packager-version="patchset 1.6"
45716           $ ./src/ls --version | head -n2
45717           ls (GNU coreutils) 7.1-dirty
45718           Packaged by Gentoo (patchset 1.6)
45719         Note that the bug reporting info via --help doesn't show up because
45720         coreutils uses its own custom emit_bug_reporting_address() implementation
45721         in src/system.h.  If it didn't, it'd look like:
45722           $ ./src/ls --help | tail -n4
45723           Report bugs to <bug-coreutils@gnu.org>.
45724           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45725           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45726           General help using GNU software: <http://www.gnu.org/gethelp/>.
45727         * lib/version-etc.c: Print new information, if provided.
45728         * m4/version-etc.m4: New file.
45729         * modules/version-etc (Files): Add m4/version-etc.m4.
45730         (configure.ac): Add gl_VERSION_ETC.
45731
45732 2009-05-31  Bruno Haible  <bruno@clisp.org>
45733
45734         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45735         and 'int64_t'.
45736         * modules/alignof-tests (Dependencies): Add stdint.
45737         Reported by Eric Blake.
45738
45739 2009-05-31  Bruno Haible  <bruno@clisp.org>
45740
45741         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45742         restriction due to compiler bugs.
45743         Reported by Eric Blake.
45744
45745 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45746             Bruno Haible  <bruno@clisp.org>
45747
45748         Fix test-alignof failure.
45749         * lib/alignof.h (alignof_slot): New macro.
45750         (alignof_type): New macro, with the same semantics as the previous
45751         'alignof'.
45752         (alignof): Alias to alignof_slot.
45753         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45754         check that the results are usable as constant expressions.
45755
45756 2009-05-31  Bruno Haible  <bruno@clisp.org>
45757
45758         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45759         * tests/test-memchr.c (main): Check that memchr does not read past the
45760         first occurrence of the byte.
45761         * tests/test-strstr.c (main): Update comment.
45762         Suggested by Eric Blake.
45763
45764 2009-05-30  Bruno Haible  <bruno@clisp.org>
45765
45766         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45767         detail how to use dumpbin.
45768         Reported by David Byron <dbyron@dbyron.com>.
45769
45770 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45771
45772         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45773
45774 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45775
45776         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45777
45778 2009-05-28  Bruno Haible  <bruno@clisp.org>
45779
45780         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45781         build-aux/ files.
45782
45783 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45784
45785         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45786
45787 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45788
45789         * gnulib-tool (sed_transform_main_lib_file)
45790         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45791         regexps.
45792
45793 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45794
45795         * tests/test-strstr.c: Add another self-test.
45796         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45797         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45798
45799 2009-05-23  Bruno Haible  <bruno@clisp.org>
45800
45801         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45802         change.
45803
45804 2009-05-21  Bruno Haible  <bruno@clisp.org>
45805
45806         Simplify use of mode_t varargs.
45807         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45808         uses 'mode_t' or 'int'.
45809         * lib/openat.c (openat): Likewise.
45810         * lib/open-safer.c (open_safer): Likewise.
45811         * m4/mode_t.m4: New file.
45812         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45813         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45814         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45815         * modules/open (Files): Add m4/mode_t.m4.
45816         * modules/openat (Files): Likewise.
45817         * modules/fcntl-safer (Files): Likewise.
45818         Suggested by Eric Blake.
45819
45820 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45821
45822         * doc/glibc-functions/fallocate.texi: New file.
45823         * doc/gnulib.texi: Include it.
45824
45825 2009-05-21  Eric Blake  <ebb9@byu.net>
45826             Bruno Haible  <bruno@clisp.org>
45827
45828         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45829         invocations.
45830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45831
45832 2009-05-21  Eric Blake  <ebb9@byu.net>
45833             Bruno Haible  <bruno@clisp.org>
45834
45835         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45836         include_next. Fix of 2008-11-20 commit.
45837         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45838         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45839         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45840         NEXT_MATH_H.
45841         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45842         instead of NEXT_MATH_H.
45843
45844 2009-05-21  Bruno Haible  <bruno@clisp.org>
45845
45846         Avoid redefinition warnings for SIZE_MAX.
45847         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45848         Reported by Simon Josefsson.
45849
45850 2009-05-21  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45853         AC_CACHE_VAL.
45854
45855 2009-05-20  Bruno Haible  <bruno@clisp.org>
45856
45857         Make zeroptr.h work on mingw.
45858         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45859         mprotect.
45860         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45861         * modules/memchr2-tests (configure.ac): Likewise.
45862         * modules/memcmp-tests (configure.ac): Likewise.
45863         * modules/memmem-tests (configure.ac): Likewise.
45864         * modules/memrchr-tests (configure.ac): Likewise.
45865         Reported by Simon Josefsson.
45866
45867 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45868
45869         * tests/test-glob.c: Include string.h for strcmp prototype.
45870
45871 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45872
45873         * modules/getdelim (Depends-on): Add explicit stdint, although it
45874         was implicitly already pulled in via realloc-posix.
45875         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45876
45877 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45878
45879         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45880         G. Christensen" <tgc@jupiterrise.com>.
45881         * m4/sys_socket_h.m4: Check for sa_family_t.
45882         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45883         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45884         * tests/test-sys_socket.c: Check that sa_family_t works.
45885
45886 2009-05-18  Eric Blake  <ebb9@byu.net>
45887
45888         maint.mk: allow gnulib_dir in VPATH build
45889         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45890
45891 2009-05-15  Jim Meyering  <meyering@redhat.com>
45892
45893         maint.mk: Give gnulib_dir a default definition.
45894         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45895         Thus, most packages no longer need to specify this variable in cfg.mk
45896
45897 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45898
45899         rename.m4: fix typos that would make non-mingw cross-configure fail
45900         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45901
45902 2009-05-13  Eric Blake  <ebb9@byu.net>
45903
45904         mmap-anon: avoid out-of-order autoconf expansion
45905         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45906         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45907         * modules/memchr-tests (Depends-on): Add extensions.
45908         * modules/memchr2-tests (Depends-on): Add extensions.
45909         * modules/memcmp-tests (Depends-on): Add extensions.
45910         * modules/memmem-tests (Depends-on): Add extensions.
45911         * modules/memrchr-tests (Depends-on): Add extensions.
45912
45913 2009-05-13  Bruno Haible  <bruno@clisp.org>
45914
45915         Make some tests ISO C 99 compliant.
45916         * tests/zerosize-ptr.h: New file.
45917         * tests/test-memchr.c: Include zerosize-ptr.h.
45918         (main): Use a zero-size object pointer instead of NULL.
45919         * tests/test-memchr2.c: Include zerosize-ptr.h.
45920         (main): Use a zero-size object pointer instead of NULL.
45921         * tests/test-memcmp.c: Include zerosize-ptr.h.
45922         (main): Use a zero-size object pointer instead of NULL.
45923         * tests/test-memmem.c: Include zerosize-ptr.h.
45924         (main): Use a zero-size object pointer instead of NULL.
45925         * tests/test-memrchr.c: Include zerosize-ptr.h.
45926         (main): Use a zero-size object pointer instead of NULL.
45927         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45928         m4/mmap-anon.m4.
45929         (Depends-on): Add getpagesize.
45930         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45931         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45932         m4/mmap-anon.m4.
45933         (Depends-on): Add getpagesize.
45934         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45935         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45936         m4/mmap-anon.m4.
45937         (Depends-on): Add getpagesize.
45938         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45939         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45940         m4/mmap-anon.m4.
45941         (Depends-on): Add getpagesize.
45942         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45943         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45944         m4/mmap-anon.m4.
45945         (Depends-on): Add getpagesize.
45946         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45947
45948 2009-05-12  Bruno Haible  <bruno@clisp.org>
45949
45950         Tests for module 'alignof'.
45951         * modules/alignof-tests: New file.
45952         * tests/test-alignof.c: New file.
45953
45954 2009-05-12  Bruno Haible  <bruno@clisp.org>
45955
45956         Fix alignof macro.
45957         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45958         vendor compilers that are always correct.
45959
45960 2009-05-12  Bruno Haible  <bruno@clisp.org>
45961
45962         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45963         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45964         not whether its fully works.
45965
45966 2009-05-12  Bruno Haible  <bruno@clisp.org>
45967
45968         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45969
45970 2009-05-12  Jim Meyering  <meyering@redhat.com>
45971
45972         * top/maint.mk: Adjust backslash alignment.
45973
45974 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45975
45976         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45977
45978 2009-05-11  Eric Blake  <ebb9@byu.net>
45979
45980         argp: avoid undefined behavior
45981         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45982         macros.
45983
45984 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45985
45986         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45987         user.name to prevent git commit from complaining.
45988
45989 2009-05-10  Bruno Haible  <bruno@clisp.org>
45990
45991         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45992         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45993         it rewrites every file name only once.
45994         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45995
45996 2009-05-08  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45999         instead of 'max'.
46000
46001 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46002
46003         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46004         sockaddr_storage test.
46005
46006 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46007
46008         * modules/sys_socket (Makefile.am): Substitute
46009         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46010         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46011         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46012         * tests/test-sys_socket.c: Check sockaddr_storage.
46013
46014 2009-05-08  Bruno Haible  <bruno@clisp.org>
46015
46016         New module 'alignof'.
46017         * lib/alignof.h: New file.
46018         * modules/alignof: New file.
46019
46020 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46021             Bruno Haible  <bruno@clisp.org>
46022
46023         Fix test-file-has-acl on FreeBSD.
46024         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46025         mask is implicitly added.
46026         * tests/test-file-has-acl.c: Include <signal.h>.
46027         (main): Terminate the test after 5 seconds.
46028         * modules/acl-tests (configure.ac): Check for alarm function.
46029
46030 2009-05-04  Bruno Haible  <bruno@clisp.org>
46031
46032         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46034         * modules/errno (configure.ac): Drop AC_REQUIRE.
46035         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46036         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46037
46038 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46039
46040         * modules/glob-tests: New module.
46041         * tests/test-glob.c: Add.
46042
46043 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46044
46045         * modules/fnmatch-tests: New module.
46046         * tests/test-fnmatch.c: Add.
46047
46048 2009-05-04  Eric Blake  <ebb9@byu.net>
46049
46050         maint: make the new no-submodule-changes rule VPATH-safe
46051         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46052
46053 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46054             Bruno Haible  <bruno@clisp.org>
46055
46056         acl: Fix infinite loop on FreeBSD.
46057         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46058         of return value from acl_get_entry.
46059         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46060         Likewise.
46061
46062 2009-05-03  Bruno Haible  <bruno@clisp.org>
46063
46064         * lib/acl-internal.h (acl_entries): Clarify return value.
46065         * lib/acl_entries.c (acl_entries): Likewise.
46066
46067 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46068
46069         Bug fix in acl module.
46070         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46071
46072 2009-05-03  Bruno Haible  <bruno@clisp.org>
46073
46074         Create gperf-generated file in the source dir, not in the build dir.
46075         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46076         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46077         * modules/unicase/locale-language (unicase/locale-languages.h):
46078         Likewise.
46079         * modules/unicase/special-casing (unicase/special-casing-table.h):
46080         Likewise.
46081         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46082         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46083         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46084         Reported by Ralf Wildenhues.
46085
46086 2009-05-03  Bruno Haible  <bruno@clisp.org>
46087
46088         * modules/fnmatch (Description, configure.ac): Taken from
46089         fnmatch-posix.
46090         * modules/fnmatch-posix: Turn into a symbolic reference to the
46091         'fnmatch' module, and deprecate.
46092         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46093
46094 2009-05-03  Bruno Haible  <bruno@clisp.org>
46095
46096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46097         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46098         Reported by Ralf Wildenhues.
46099
46100 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46101
46102         * m4/fnmatch.m4: Fix fnmatch re-define.
46103
46104 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46105
46106         priv-set: new module and tests; adapt write-any-file
46107         * lib/priv-set.c: New file.
46108         * lib/priv-set.h: New file.
46109         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46110         * lib/write-any-file.c: Simplify by using priv-set module.
46111         * m4/priv-set.m4: New file.
46112         * modules/priv-set: New file.
46113         * modules/unlinkdir: Add dependency on priv-set module.
46114         * modules/write-any-file: Likewise.
46115
46116         Tests for module 'priv-set'.
46117         * modules/priv-set-tests: New file.
46118         * tests/test-priv-set.c: New file.
46119
46120 2009-05-03  Jim Meyering  <meyering@redhat.com>
46121             Bruno Haible  <bruno@clisp.org>
46122
46123         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46124         use the converted UTF-8 variant of the name instead.
46125
46126 2009-05-03  Jim Meyering  <meyering@redhat.com>
46127
46128         tests: tighten some getdate tests
46129         * tests/test-getdate.c (main): Tighten tests: require equality,
46130         not just greater than.  Set TZ envvar to UTC0.
46131
46132 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46133
46134         getdate: correctly interpret "next monday" when run on a Monday
46135         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46136         that e.g., "next tues" (when run on a tuesday) results in a date
46137         that is one week in the future, and not today's date.
46138         I.e., add a week when the wday is the same as the current one.
46139         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46140         and earlier by Martin Bernreuther and Jan Minář.
46141         * tests/test-getdate.c (main): Check that "next DAY" is always in
46142         the future and that "last DAY" is always in the past.
46143
46144 2009-05-02  Jim Meyering  <meyering@redhat.com>
46145
46146         build: ensure that a release build fails when a submodule is unclean
46147         * top/maint.mk (no-submodule-changes): New rule.
46148         (alpha beta major): Depend on it.
46149
46150 2009-05-02  Bruno Haible  <bruno@clisp.org>
46151
46152         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46153         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46154         shell variable gl_fnmatch_required to detect which variant is
46155         requested.
46156         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46157         gl_FUNC_FNMATCH_POSIX.
46158         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46159         exclude fnmatch-posix.
46160
46161 2009-05-02  Bruno Haible  <bruno@clisp.org>
46162
46163         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46164         * modules/mbsrtowcs (License): Change to LGPLv2+.
46165         * modules/strnlen1 (License): Likewise.
46166         Reported by Simon Josefsson.
46167
46168 2009-05-02  Bruno Haible  <bruno@clisp.org>
46169
46170         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46171         "cross".
46172         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46173         gnulib-tool was called with option --source-base=lib.
46174
46175 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46176
46177         Use automake *-local hooks without commands, for extensibility.
46178         * modules/localcharset (Makefile.am): Rename install-exec-local
46179         rule to install-exec-localcharset, and make it a prerequisite of
46180         install-exec-local.  Likewise, rename the uninstall-local rule to
46181         uninstall-localcharset, and make it a prerequisite of the former.
46182
46183 2009-05-01  Bruno Haible  <bruno@clisp.org>
46184
46185         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46186         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46187         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46188         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46189         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46190         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46191         m4/locale-zh.m4, m4/codeset.m4.
46192
46193         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46194         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46195         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46196         m4/locale-zh.m4.
46197
46198         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46199         REPLACE_WCRTOMB if mbstate_t must be replaced.
46200         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46201         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46202
46203 2009-05-01  Bruno Haible  <bruno@clisp.org>
46204
46205         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46206         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46207         dngettext, dcngettext, textdomain, bindtextdomain,
46208         bind_textdomain_codeset): Undefine before redefining.
46209
46210 2009-04-30  Bruno Haible  <bruno@clisp.org>
46211
46212         Fix bug introduced on 2009-04-25.
46213         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46214         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46215         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46216         is defined.
46217         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46218         is defined.
46219         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46220         is defined.
46221         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46222
46223 2009-04-28  Bruno Haible  <bruno@clisp.org>
46224
46225         Comment tweaks.
46226         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46227         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46228         * lib/unicase.h (u*_casexfrm): Likewise.
46229         Reported by Paolo Bonzini.
46230
46231 2009-04-28  Bruno Haible  <bruno@clisp.org>
46232
46233         Fix a compilation error.
46234         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46235         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46236         Reported by Jim Meyering.
46237
46238 2009-04-27  Bruno Haible  <bruno@clisp.org>
46239
46240         New module 'libunistring'.
46241         * modules/libunistring: New file.
46242         * m4/libunistring.m4: New file.
46243         * MODULES.html.sh (Unicode string functions): Add it.
46244
46245 2009-04-27  Eric Blake  <ebb9@byu.net>
46246
46247         maint.mk: allow package-specific header to provide <config.h>
46248         * top/maint.mk (sc_require_config_h): New variable.
46249         (sc_require_config_h, sc_require_config_h_first): Use it.
46250
46251 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46252
46253         * top/maint.mk (sc_avoid_if_before_free): Except
46254         useless-if-before-free script.
46255
46256 2009-04-27  Eric Blake  <ebb9@byu.net>
46257
46258         maintainer-makefile: depend on all required helper scripts
46259         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46260         useless-if-before-free.
46261         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46262         version, rather than assuming gnulib checkout is available.
46263         Reported by Simen Josefsson.
46264
46265 2009-04-26  Bruno Haible  <bruno@clisp.org>
46266
46267         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46268         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46269         "../" or "..".
46270
46271 2009-04-26  Bruno Haible  <bruno@clisp.org>
46272
46273         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46274         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46275         AC_LIB_HAVE_LINKFLAGS.
46276
46277 2009-04-26  Bruno Haible  <bruno@clisp.org>
46278
46279         Simplify calling convention of u*_conv_from_encoding.
46280         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46281         u32_conv_from_encoding): Expect a resultbuf argument and return the
46282         result directly as a pointer.
46283         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46284         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46285         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46286         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46287         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46288         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46289         Update.
46290         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46291         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46292         * lib/vasnprintf.c (VASNPRINTF): Update.
46293         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46294         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46295         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46296         * NEWS: Mention the change.
46297
46298 2009-04-26  Bruno Haible  <bruno@clisp.org>
46299
46300         Simplify calling convention of u*_conv_to_encoding.
46301         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46302         u32_conv_to_encoding): Expect a resultbuf argument and return the
46303         result directly as a pointer.
46304         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46305         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46306         freeing scaled_offsets if mem_iconveha failed.
46307         * lib/unicase/u-casexfrm.h (FUNC): Update.
46308         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46309         * lib/vasnprintf.c (VASNPRINTF): Update.
46310         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46311         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46312         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46313         * NEWS: Mention the change.
46314
46315 2009-04-26  Bruno Haible  <bruno@clisp.org>
46316
46317         Avoid test failures on AIX and OSF/1.
46318         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46319         malloc(0).
46320         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46321         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46322         Likewise.
46323         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46324         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46325         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46326         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46327         * doc/posix-functions/malloc.texi: Document the portability problem
46328         related to malloc(0).
46329
46330 2009-04-26  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46333         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46334         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46335
46336 2009-04-25  Bruno Haible  <bruno@clisp.org>
46337
46338         Avoid link error when creating a namespace clean library.
46339         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46340         as macro with arguments if already defined as an alias.
46341         * lib/signbitf.c (gl_signbitf): Don't undefine.
46342         * lib/signbitd.c (gl_signbitd): Don't undefine.
46343         * lib/signbitl.c (gl_signbitl): Don't undefine.
46344
46345 2009-04-25  Jim Meyering  <meyering@redhat.com>
46346
46347         vc-list-files: fix another quoting bug
46348         * build-aux/vc-list-files: Avoid sed backslash expansion
46349         of pathological directory names.
46350
46351 2009-04-25  Eric Blake  <ebb9@byu.net>
46352
46353         vc-list-files: fix shell quoting error
46354         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46355         timestamp.
46356
46357 2009-04-25  Jim Meyering  <meyering@redhat.com>
46358
46359         vc-list-files: restore lost functionality with subdir argument
46360         * build-aux/vc-list-files: When given a non-"." sub-directory
46361         argument, substitute the $dir/ prefix back onto each resulting name.
46362         Otherwise, coreutils' root_tests check would fail.
46363
46364 2009-04-24  Eric Blake  <ebb9@byu.net>
46365
46366         vc-list-files: ignore git symlinks
46367         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46368         than ls-files, to ignore git symlinks.
46369
46370         maint.mk: import improvements from m4
46371         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46372         (move_if_change): Delete unused macro.
46373         (news-date-check, vc-diff-check): Support VPATH builds.
46374         (announcement): Likewise.  Split --bootstrap-tools list...
46375         (boostrap-tools): ...into separate list, which can be overridden
46376         in cfg.mk.
46377         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46378         requiring dependency on useless-if-before-free module.
46379         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46380         Support VPATH builds.
46381
46382 2009-04-24  Jim Meyering  <meyering@redhat.com>
46383
46384         maint.mk: remove coreutils-specific rules and variables
46385         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46386         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46387         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46388
46389         maint.mk: remove obsolete rule
46390         * top/maint.mk (rel-check): Remove rule.
46391         (WGET, WGETFLAGS): Remove now-unused variables.
46392
46393 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46394
46395         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46396         consistency.
46397
46398         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46399         '$(PATH_SEPARATOR)' instead of ':'.
46400
46401 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46402
46403         * lib/getopt1.c (main): Use 'const' for static array.
46404
46405 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46406
46407         * top/maint.mk: Sync with coreutils.
46408         * NEWS: Explain incompatibilities.
46409
46410 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46411             Bruno Haible  <bruno@clisp.org>
46412
46413         Fix cross-compilation results.
46414         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46415         statement, as third argument of AC_TRY_RUN.
46416         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46417         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46418         Likewise.
46419         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46420         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46421         Likewise.
46422         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46423         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46424         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46425
46426 2009-04-20  Bruno Haible  <bruno@clisp.org>
46427
46428         Avoid test failure on mingw.
46429         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46430
46431 2009-04-20  Bruno Haible  <bruno@clisp.org>
46432
46433         Avoid compilation error on mingw.
46434         * modules/localename-tests (Depends-on): Add locale.
46435
46436 2009-04-19  Bruno Haible  <bruno@clisp.org>
46437
46438         Support for building a shared library on Windows platforms.
46439         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46440         (main): Test the presence of UNINORM_NFC here.
46441         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46442         (main): Test the presence of UNINORM_NFD here.
46443         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46444         (main): Test the presence of UNINORM_NFKC here.
46445         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46446         (main): Test the presence of UNINORM_NFKD here.
46447
46448 2009-04-19  Bruno Haible  <bruno@clisp.org>
46449
46450         Avoid a compiler warning.
46451         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46452         Change type of variable 'sequence'.
46453
46454 2009-04-19  Bruno Haible  <bruno@clisp.org>
46455
46456         * modules/configmake (Makefile.am): When the contents of configmake.h
46457         does not change, arrange to preserve its modification time.
46458
46459 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46460
46461         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46462         gettext domain.
46463
46464 2009-04-16  Jim Meyering  <meyering@redhat.com>
46465
46466         useless-if-before-free: improve conversion code
46467         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46468         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46469
46470 2009-04-14  Bruno Haible  <bruno@clisp.org>
46471
46472         * modules/fcntl (Depends-on): Add extensions.
46473         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46474
46475 2009-04-12  Ben Pfaff  <blp@gnu.org>
46476
46477         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46478         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46479
46480 2009-03-20  Ben Pfaff  <blp@gnu.org>
46481
46482         Make rename replace existing destinations on Windows.
46483         * m4/rename.m4: Add test for Mingw.
46484         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46485         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46486         * doc/posix-functions/rename.texi: Document.
46487
46488 2009-04-10  Bruno Haible  <bruno@clisp.org>
46489
46490         New include file "iconveh.h".
46491         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46492         * lib/striconveh.h: Include it.
46493         (enum iconv_ilseq_handler): Remove definition.
46494         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46495         striconveh.h.
46496         * lib/striconveha.c: Include striconveh.h.
46497         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46498         * modules/striconveh (Files): Add lib/iconveh.h.
46499         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46500         lib/striconveh.h.
46501
46502 2009-04-10  Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/uniconv.h: Update comment.
46505
46506 2009-04-10  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46509         always.
46510         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46511         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46512         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46513         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46514         "unistring-notinline.h", so that the function gets defined always.
46515         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46516         * lib/unistr/u8-uctomb.c: Likewise.
46517         * lib/unistr/u16-mbtouc.c: Likewise.
46518         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46519         * lib/unistr/u16-uctomb.c: Likewise.
46520         * lib/unistr/u32-mbtouc.c: Likewise.
46521         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46522         * lib/unistr/u32-uctomb.c: Likewise.
46523
46524 2009-04-10  Bruno Haible  <bruno@clisp.org>
46525
46526         Mark 'utime' obsolete.
46527         * modules/utime (Status, Notice): New sections.
46528         Suggested by Jim Meyering.
46529
46530         Fix cross-compile guess for utime test.
46531         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46532         autoconf.
46533         * doc/posix-functions/utime.texi: Give more precisions.
46534         Reported by Jan <ipif@ymail.com>.
46535
46536 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46537
46538         filevercmp: correct today's change
46539         * lib/filevercmp.c: Also handle coreutils' test inputs.
46540         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46541
46542         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46543         for reporting it.
46544         * lib/filevercmp.c: Special handle for "", "." and "..".
46545         * tests/test-filevercmp.c: Enlarge the set suite.
46546
46547 2009-04-07  Jim Meyering  <meyering@redhat.com>
46548
46549         useless-if-before-free: show how to remove braced useless free, too
46550         * build-aux/useless-if-before-free: still only in a comment, though.
46551
46552 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46553
46554         maint.mk: import changes to syntax-check macros from coreutils
46555         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46556         Use them in the relevant macros.
46557
46558 2009-04-06  Bruno Haible  <bruno@clisp.org>
46559
46560         Fix unportable use of bit-fields.
46561         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46562         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46563         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46564
46565 2009-04-06  Bruno Haible  <bruno@clisp.org>
46566
46567         Avoid test failures on AIX and OSF/1.
46568         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46569         that malloc(0) = NULL.
46570         * tests/unicase/test-u8-tolower.c (check): Likewise.
46571         * tests/unicase/test-u8-totitle.c (check): Likewise.
46572         * tests/unicase/test-u8-toupper.c (check): Likewise.
46573         * tests/unicase/test-u16-casefold.c (check): Likewise.
46574         * tests/unicase/test-u16-tolower.c (check): Likewise.
46575         * tests/unicase/test-u16-totitle.c (check): Likewise.
46576         * tests/unicase/test-u16-toupper.c (check): Likewise.
46577         * tests/unicase/test-u32-casefold.c (check): Likewise.
46578         * tests/unicase/test-u32-tolower.c (check): Likewise.
46579         * tests/unicase/test-u32-totitle.c (check): Likewise.
46580         * tests/unicase/test-u32-toupper.c (check): Likewise.
46581         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46582         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46583         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46584         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46585         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46586         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46587         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46588         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46589         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46590         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46591         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46592         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46593
46594 2009-04-05  Bruno Haible  <bruno@clisp.org>
46595
46596         Work around an autoconf limitation.
46597         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46598         comment line if it would be longer than 3 KB.
46599
46600 2009-04-05  Bruno Haible  <bruno@clisp.org>
46601
46602         Avoid test failure with libiconv-1.13.
46603         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46604         of the expected test results.
46605
46606 2009-04-05  Bruno Haible  <bruno@clisp.org>
46607
46608         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46609         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46610         that it should be installed.
46611
46612 2009-04-05  Bruno Haible  <bruno@clisp.org>
46613
46614         * gnulib-tool: New option --copy-file.
46615         (func_usage): Document it.
46616         (func_dest_tmpfilename): Moved out of func_import.
46617         (func_add_file, func_update_file): New functions, extracted from
46618         func_import.
46619         (func_import): Update.
46620
46621 2009-04-05  Karl Berry  <karl@gnu.org>
46622
46623         * README: prominently mention gnulib-tool.
46624         Rearrange sections so getting the code is near the top.
46625
46626 2009-04-05  Bruno Haible  <bruno@clisp.org>
46627
46628         * lib/unicase.h: Mention u*_cmp2.
46629         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46630         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46631         * lib/unicase/ulc-casecmp.c: Likewise.
46632         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46633         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46634         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46635         unistr/u8-cmp.
46636         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46637         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46638         unistr/u16-cmp.
46639         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46640         unistr/u32-cmp.
46641
46642         * lib/uninorm.h: Mention u*_cmp2.
46643         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46644         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46645         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46646         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46647         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46648         unistr/u8-cmp.
46649         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46650         unistr/u16-cmp.
46651         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46652         unistr/u32-cmp.
46653
46654         New module 'unistr/u32-cmp2'.
46655         * lib/unistr/u32-cmp2.c: New file.
46656         * modules/unistr/u32-cmp2: New file.
46657
46658         New module 'unistr/u16-cmp2'.
46659         * lib/unistr/u16-cmp2.c: New file.
46660         * modules/unistr/u16-cmp2: New file.
46661
46662         New module 'unistr/u8-cmp2'.
46663         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46664         * lib/unistr/u8-cmp2.c: New file.
46665         * lib/unistr/u-cmp2.h: New file.
46666         * modules/unistr/u8-cmp2: New file.
46667
46668 2009-04-05  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/unictype.h (uc_property_is_valid): New macro.
46671         * tests/unictype/test-pr_byname.c (main): Use it.
46672
46673         * lib/unistr.h: Doc fixes.
46674         * lib/uniconv.h: Doc fixes.
46675         * lib/unictype.h: Doc fixes.
46676
46677 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46678
46679         Port coreutils 7.2 to Solaris 8.
46680
46681         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46682         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46683         for Solaris 8.  This is a bit of a hack, as it means it's the
46684         caller's responsibility to add -lnsl if needed, but most likely it
46685         won't be needed since only getaddrinfo uses this and getaddrinfo
46686         isn't needed on Solaris 8.
46687
46688         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46689         problem to Solaris 8 encountered with coreutils 7.2, which
46690         resulted in a message "fnmatch.c:292: warning: passing argument 4
46691         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46692         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46693
46694 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46695
46696         * m4/ld-version-script.m4: Add FIXME comment.
46697
46698 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46699
46700         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46701         SOVERSION variable.
46702
46703 2009-04-02  Bruno Haible  <bruno@clisp.org>
46704
46705         * Makefile (info, html, dvi, pdf): Combine the rules.
46706         Suggested by Jim Meyering.
46707
46708 2009-04-01  Bruno Haible  <bruno@clisp.org>
46709
46710         * Makefile (info, html, dvi, pdf): New targets.
46711         Reported by Reuben Thomas <rrt@sc3d.org>.
46712
46713 2009-04-01  Bruno Haible  <bruno@clisp.org>
46714
46715         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46716         can be put into PATH.
46717         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46718
46719 2009-04-01  Bruno Haible  <bruno@clisp.org>
46720
46721         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46722
46723 2009-04-01  Bruno Haible  <bruno@clisp.org>
46724
46725         Rename module 'visibility'.
46726         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46727         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46728         * doc/gnulib.texi: Update.
46729         * MODULES.html.sh (Misc): Update.
46730         * NEWS: Mention the change.
46731
46732 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46733
46734         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46735         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46736         Eric Blake <ebb9@byu.net> for review.
46737         * MODULES.html.sh: Add lib-msvc-compat.
46738         * doc/gnulib.texi: Link to new section.
46739         * m4/ld-output-def.m4: New file.
46740         * doc/ld-output-def.texi: New file.
46741
46742 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46743
46744         Rename ld-version-script to lib-symbol-versions.  Suggested by
46745         Bruno Haible <bruno@clisp.org>.
46746         * modules/ld-version-script: Renamed to lib-symbol-versions.
46747         * doc/ld-version-script.texi: Fix module name.
46748         * MODULES.html.sh: Add lib-symbol-versions.
46749
46750 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46751
46752         * modules/u64-tests: New file.
46753         * tests/test-u64.c: New file.
46754
46755 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46756
46757         * MODULES.html.sh: Mention u64.
46758         * modules/u64: New module.
46759         * modules/crypto/sha512: Depend on u64 module instead of providing
46760         u64.h.
46761
46762 2009-03-27  Eric Blake  <ebb9@byu.net>
46763
46764         test-strerror: make debugging EAI_SYSTEM easier
46765         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46766         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46767         failure was EAI_SYSTEM.
46768
46769 2009-03-25  Bruno Haible  <bruno@clisp.org>
46770
46771         Fix a problem with --enable-relocatable on Solaris 7.
46772         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46773         since 2008-02-24.
46774
46775 2009-03-25  Eric Blake  <ebb9@byu.net>
46776
46777         test-sockets: avoid gcc warning
46778         * tests/test-sockets.c (main): Silence compiler warning.
46779
46780 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46781
46782         New modules nproc, pthread, contributed by Glen Lenker.
46783
46784         * MODULES.html.sh: Add pthread, nproc.
46785         * lib/nproc.c: New file.
46786         * lib/nproc.h: New file.
46787         * lib/pthread.in.h: New file.
46788         * m4/pthread.m4: New file.
46789         * modules/nproc: New file.
46790         * modules/pthread: New file.
46791
46792 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46793
46794         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46795         New variable.
46796
46797 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46798
46799         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46800         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46801         * tests/test-filevercmp.c: Add tests for backup suffixes.
46802
46803 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46804
46805         * modules/stdlib (Depends-on): Add stdint, needed when defining
46806         struct random_data on, for example, HP-UX 10.20.  Reported by
46807         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46808
46809 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46810
46811         * lib/readline.c (readline): Call fflush on stdout after printing
46812         prompt.
46813
46814 2009-03-20  Bruno Haible  <bruno@clisp.org>
46815
46816         Remove dependency from 'close' module to -lws2_32 on native Windows.
46817         * lib/close-hook.h: New file.
46818         * lib/close-hook.c: New file.
46819         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46820         w32sock.h.
46821         (_gl_close_fd_maybe_socket): Remove function.
46822         (rpl_close): Invoke execute_all_close_hooks instead of
46823         _gl_close_fd_maybe_socket.
46824         * lib/sockets.c: Include close-hook.h, w32sock.h.
46825         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46826         (close_sockets_hook): New variable.
46827         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46828         (gl_sockets_cleanup): Unregister it.
46829         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46830         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46831         * modules/close-hook: New file.
46832         * modules/close (Files): Remove lib/w32sock.h.
46833         (Depends-on): Add close-hook.
46834         (Link): Remove section.
46835         * modules/sockets (Files): Add lib/w32sock.h.
46836         (Depends-on): Add close-hook.
46837         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46838         invocation.
46839         * NEWS: Mention that LIB_CLOSE is gone.
46840
46841 2009-03-23  Eric Blake  <ebb9@byu.net>
46842
46843         signal-tests: test previous patch
46844         * tests/test-signal.c: New file.
46845         * modules/signal-tests: Likewise.
46846
46847         signal.h: always support 'volatile sig_atomic_t'
46848         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46849         (gl_SIGNAL_H_DEFAULTS): Add a default.
46850         * modules/signal (Makefile.am): Substitute if needed.
46851         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46852         users can blindly add volatile.
46853         * doc/posix-headers/signal.texi (signal.h): Document it.
46854         Reported by Matthew Woehlke.
46855
46856 2009-03-23  Jim Meyering  <meyering@redhat.com>
46857
46858         pathmax: PATH_MAX: use pathconf only when available
46859         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46860         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46861         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46862         This avoids a link failure in a PSP cross-compilation environment
46863         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46864
46865         * lib/vasnprintf.c (divide): Fix typo in comment.
46866
46867 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46868
46869         * gnulib-tool (func_filter_filelist): Fix comment.
46870
46871 2009-03-20  Bruno Haible  <bruno@clisp.org>
46872
46873         Make sockets.h self-contained.
46874         * lib/sockets.c: Include sockets.h first.
46875         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46876
46877 2009-03-19  Eric Blake  <ebb9@byu.net>
46878
46879         doc: mention more functions added in cygwin 1.7.0
46880         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46881         addition.
46882         * doc/posix-functions/log2f.texi: Likewise.
46883
46884 2009-03-19  Jim Meyering  <meyering@redhat.com>
46885
46886         fsusage: avoid syntax error due to statement-before-declaration
46887         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46888         after all declarations.  Reported by Matthew Woehlke in
46889         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46890
46891 2009-03-18  Eric Blake  <ebb9@byu.net>
46892
46893         build-aux/compile: sync from automake
46894         * build-aux/compile: New file, from automake.
46895         * config/srclist.txt: Mention build-aux/compile.
46896
46897 2009-03-17  Bruno Haible  <bruno@clisp.org>
46898
46899         * lib/git-merge-changelog.c: Fix typo in comment.
46900         Reported by Reuben Thomas <rrt@sc3d.org>.
46901
46902 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46903
46904         * m4/regex.m4: update and improve help for
46905         --without-included-regex.
46906
46907 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46908
46909         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46910         failure on missing include files.
46911
46912 2009-03-17  Eric Blake  <ebb9@byu.net>
46913
46914         doc: mention more functions added in cygwin 1.7.0
46915         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46916         addition.
46917         * doc/posix-functions/fwscanf.texi: Likewise.
46918         * doc/posix-functions/swprintf.texi: Likewise.
46919         * doc/posix-functions/swscanf.texi: Likewise.
46920         * doc/posix-functions/vfwprintf.texi: Likewise.
46921         * doc/posix-functions/vfwscanf.texi: Likewise.
46922         * doc/posix-functions/vswprintf.texi: Likewise.
46923         * doc/posix-functions/vswscanf.texi: Likewise.
46924         * doc/posix-functions/vwprintf.texi: Likewise.
46925         * doc/posix-functions/vwscanf.texi: Likewise.
46926         * doc/posix-functions/wcscasecmp.texi: Likewise.
46927         * doc/posix-functions/wcsdup.texi: Likewise.
46928         * doc/posix-functions/wcsftime.texi: Likewise.
46929         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46930         * doc/posix-functions/wprintf.texi: Likewise.
46931         * doc/posix-functions/wscanf.texi: Likewise.
46932         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46933
46934 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46935
46936         maint.mk: really add $(AM_MAKEFLAGS)
46937         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46938         was inadvertently omitted in the last commit.
46939         Spotted by Bruno Haible.
46940
46941         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46942         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46943         $(AM_MAKEFLAGS)' rather than plain `make'.
46944
46945         gnulib-tool: execute $MAKE not make
46946         * gnulib-tool: Default $MAKE to 'make'.
46947         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46948         than make.  Initialize $MAKE in the do-autobuild script.
46949
46950         gnulib-tool: use $MAKE not make in generated files
46951         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46952         make, in generated files.  Initialize $MAKE in the do-autobuild
46953         script.
46954
46955         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46956
46957         GNUmakefile: disable parallelism only for multiple, recursive targets
46958         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46959         additions in the Makefile.
46960         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46961         by Automake.
46962         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46963         are listed on the command line and at least one of them is
46964         listed in $(ALL_RECURSIVE_TARGETS).
46965
46966 2009-03-14  Bruno Haible  <bruno@clisp.org>
46967
46968         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46969         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46970         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46971         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46972         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46973         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46974         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46975         unistr/u8-uctomb.
46976         * modules/unistr/u8-strchr (Depends-on): Likewise.
46977         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46978         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46979         unistr/u16-uctomb.
46980         * modules/unistr/u16-strchr (Depends-on): Likewise.
46981         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46982
46983 2009-03-12  Bruno Haible  <bruno@clisp.org>
46984
46985         Work around select() bug on Interix 3.5.
46986         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46987         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46988         * m4/select.m4: New file.
46989         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46990         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46991         * modules/select (Files): Add m4/select.m4.
46992         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46993         * modules/nanosleep (Depends-on): Add select.
46994         * modules/poll (Depends-on): Likewise.
46995         * doc/posix-functions/select.texi: Mention the Interix bug.
46996         Reported by Markus Duft <mduft@gentoo.org>.
46997
46998         * lib/select.c: Renamed from lib/winsock-select.c.
46999         * modules/select (Files): Add lib/select.c, remove
47000         lib/winsock-select.c.
47001         (configure.ac): Update.
47002
47003 2009-03-12  Jim Meyering  <meyering@redhat.com>
47004
47005         avoid gcc warnings about unused macro definitions
47006         * lib/readtokens.c (STREQ): Remove unused definition.
47007         * lib/xmalloc.c (SIZE_MAX): Likewise.
47008         * lib/openat-die.c (N_): Likewise.
47009         * lib/mountlist.c (SIZE_MAX): Remove definition.
47010         Instead, include <stdint.h>.
47011         * lib/readutmp.c: Likewise.
47012         * modules/readutmp (Depends-on): Add stdint.
47013         * modules/mountlist (Depends-on): Add stdint.
47014         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47015
47016 2009-03-10  Bruno Haible  <bruno@clisp.org>
47017
47018         Tests for module 'mbmemcasecoll'.
47019         * modules/mbmemcasecoll-tests: New file.
47020         * tests/test-mbmemcasecoll1.sh: New file.
47021         * tests/test-mbmemcasecoll2.sh: New file.
47022         * tests/test-mbmemcasecoll3.sh: New file.
47023         * tests/test-mbmemcasecoll.c: New file.
47024
47025         New module 'mbmemcasecoll'.
47026         * lib/mbmemcasecoll.h: New file.
47027         * lib/mbmemcasecoll.c: New file.
47028         * modules/mbmemcasecoll: New file.
47029
47030         * tests/test-mbmemcasecmp.h: New file, extracted from
47031         tests/test-mbmemcasecmp.c.
47032         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47033         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47034         (main): Update.
47035         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47036
47037 2009-03-09  Bruno Haible  <bruno@clisp.org>
47038
47039         Tests for module 'mbmemcasecmp'.
47040         * modules/mbmemcasecmp-tests: New file.
47041         * tests/test-mbmemcasecmp1.sh: New file.
47042         * tests/test-mbmemcasecmp2.sh: New file.
47043         * tests/test-mbmemcasecmp3.sh: New file.
47044         * tests/test-mbmemcasecmp.c: New file.
47045
47046         New module 'mbmemcasecmp'.
47047         * lib/mbmemcasecmp.h: New file.
47048         * lib/mbmemcasecmp.c: New file.
47049         * modules/mbmemcasecmp: New file.
47050
47051 2009-03-09  Bruno Haible  <bruno@clisp.org>
47052
47053         Tests for module 'unicase/ulc-casecoll'.
47054         * modules/unicase/ulc-casecoll-tests: New file.
47055         * tests/unicase/test-ulc-casecoll1.sh: New file.
47056         * tests/unicase/test-ulc-casecoll2.sh: New file.
47057         * tests/unicase/test-ulc-casecoll.c: New file.
47058
47059         New module 'unicase/ulc-casecoll'.
47060         * lib/unicase.h (ulc_casecoll): New declaration.
47061         * lib/unicase/ulc-casecoll.c: New file.
47062         * modules/unicase/ulc-casecoll: New file.
47063
47064         New module 'unicase/ulc-casexfrm'.
47065         * lib/unicase.h (ulc_casexfrm): New declaration.
47066         * lib/unicase/ulc-casexfrm.c: New file.
47067         * modules/unicase/ulc-casexfrm: New file.
47068
47069 2009-03-09  Bruno Haible  <bruno@clisp.org>
47070
47071         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47072         invocations.
47073
47074         * m4/mbscasecmp.m4: Remove file.
47075         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47076         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47077
47078         * m4/mbscasestr.m4: Remove file.
47079         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47080         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47081
47082         * m4/mbschr.m4: Remove file.
47083         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47084         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47085
47086         * m4/mbscspn.m4: Remove file.
47087         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47088         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47089
47090         * m4/mbslen.m4: Remove file.
47091         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47092         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47093
47094         * m4/mbsncasecmp.m4: Remove file.
47095         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47096         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47097
47098         * m4/mbsnlen.m4: Remove file.
47099         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47100         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47101
47102         * m4/mbspbrk.m4: Remove file.
47103         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47104         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47105
47106         * m4/mbspcasecmp.m4: Remove file.
47107         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47108         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47109
47110         * m4/mbsrchr.m4: Remove file.
47111         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47112         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47113
47114         * m4/mbssep.m4: Remove file.
47115         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47116         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47117
47118         * m4/mbsspn.m4: Remove file.
47119         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47120         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47121
47122         * m4/mbsstr.m4: Remove file.
47123         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47124         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47125
47126         * m4/mbstok_r.m4: Remove file.
47127         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47128         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47129
47130         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47131
47132         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47133         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47134
47135         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47136
47137 2009-03-08  Bruno Haible  <bruno@clisp.org>
47138
47139         Tests for module 'unicase/ulc-casecmp'.
47140         * modules/unicase/ulc-casecmp-tests: New file.
47141         * tests/unicase/test-ulc-casecmp1.sh: New file.
47142         * tests/unicase/test-ulc-casecmp2.sh: New file.
47143         * tests/unicase/test-ulc-casecmp.c: New file.
47144
47145         New module 'unicase/ulc-casecmp'.
47146         * lib/unicase.h (ulc_casecmp): New declaration.
47147         * lib/unicase/ulc-casecmp.c: New file.
47148         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47149         'const SRC_UNIT *'.
47150         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47151         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47152         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47153         * modules/unicase/ulc-casecmp: New file.
47154
47155         Tests for module 'unicase/u32-is-cased'.
47156         * modules/unicase/u32-is-cased-tests: New file.
47157         * tests/unicase/test-u32-is-cased.c: New file.
47158
47159         Tests for module 'unicase/u16-is-cased'.
47160         * modules/unicase/u16-is-cased-tests: New file.
47161         * tests/unicase/test-u16-is-cased.c: New file.
47162
47163         Tests for module 'unicase/u8-is-cased'.
47164         * modules/unicase/u8-is-cased-tests: New file.
47165         * tests/unicase/test-u8-is-cased.c: New file.
47166         * tests/unicase/test-is-cased.h: New file.
47167
47168         New module 'unicase/u32-is-cased'.
47169         * lib/unicase/u32-is-cased.c: New file.
47170         * modules/unicase/u32-is-cased: New file.
47171
47172         New module 'unicase/u16-is-cased'.
47173         * lib/unicase/u16-is-cased.c: New file.
47174         * modules/unicase/u16-is-cased: New file.
47175
47176         New module 'unicase/u8-is-cased'.
47177         * lib/unicase/u8-is-cased.c: New file.
47178         * lib/unicase/u-is-cased.h: New file.
47179         * modules/unicase/u8-is-cased: New file.
47180
47181         Tests for module 'unicase/u32-is-casefolded'.
47182         * modules/unicase/u32-is-casefolded-tests: New file.
47183         * tests/unicase/test-u32-is-casefolded.c: New file.
47184
47185         Tests for module 'unicase/u16-is-casefolded'.
47186         * modules/unicase/u16-is-casefolded-tests: New file.
47187         * tests/unicase/test-u16-is-casefolded.c: New file.
47188
47189         Tests for module 'unicase/u8-is-casefolded'.
47190         * modules/unicase/u8-is-casefolded-tests: New file.
47191         * tests/unicase/test-u8-is-casefolded.c: New file.
47192         * tests/unicase/test-is-casefolded.h: New file.
47193
47194         New module 'unicase/u32-is-casefolded'.
47195         * lib/unicase/u32-is-casefolded.c: New file.
47196         * modules/unicase/u32-is-casefolded: New file.
47197
47198         New module 'unicase/u16-is-casefolded'.
47199         * lib/unicase/u16-is-casefolded.c: New file.
47200         * modules/unicase/u16-is-casefolded: New file.
47201
47202         New module 'unicase/u8-is-casefolded'.
47203         * lib/unicase/u8-is-casefolded.c: New file.
47204         * modules/unicase/u8-is-casefolded: New file.
47205
47206         Tests for module 'unicase/u32-is-titlecase'.
47207         * modules/unicase/u32-is-titlecase-tests: New file.
47208         * tests/unicase/test-u32-is-titlecase.c: New file.
47209
47210         Tests for module 'unicase/u16-is-titlecase'.
47211         * modules/unicase/u16-is-titlecase-tests: New file.
47212         * tests/unicase/test-u16-is-titlecase.c: New file.
47213
47214         Tests for module 'unicase/u8-is-titlecase'.
47215         * modules/unicase/u8-is-titlecase-tests: New file.
47216         * tests/unicase/test-u8-is-titlecase.c: New file.
47217         * tests/unicase/test-is-titlecase.h: New file.
47218
47219         New module 'unicase/u32-is-titlecase'.
47220         * lib/unicase/u32-is-titlecase.c: New file.
47221         * modules/unicase/u32-is-titlecase: New file.
47222
47223         New module 'unicase/u16-is-titlecase'.
47224         * lib/unicase/u16-is-titlecase.c: New file.
47225         * modules/unicase/u16-is-titlecase: New file.
47226
47227         New module 'unicase/u8-is-titlecase'.
47228         * lib/unicase/u8-is-titlecase.c: New file.
47229         * modules/unicase/u8-is-titlecase: New file.
47230
47231         Tests for module 'unicase/u32-is-lowercase'.
47232         * modules/unicase/u32-is-lowercase-tests: New file.
47233         * tests/unicase/test-u32-is-lowercase.c: New file.
47234
47235         Tests for module 'unicase/u16-is-lowercase'.
47236         * modules/unicase/u16-is-lowercase-tests: New file.
47237         * tests/unicase/test-u16-is-lowercase.c: New file.
47238
47239         Tests for module 'unicase/u8-is-lowercase'.
47240         * modules/unicase/u8-is-lowercase-tests: New file.
47241         * tests/unicase/test-u8-is-lowercase.c: New file.
47242         * tests/unicase/test-is-lowercase.h: New file.
47243
47244         New module 'unicase/u32-is-lowercase'.
47245         * lib/unicase/u32-is-lowercase.c: New file.
47246         * modules/unicase/u32-is-lowercase: New file.
47247
47248         New module 'unicase/u16-is-lowercase'.
47249         * lib/unicase/u16-is-lowercase.c: New file.
47250         * modules/unicase/u16-is-lowercase: New file.
47251
47252         New module 'unicase/u8-is-lowercase'.
47253         * lib/unicase/u8-is-lowercase.c: New file.
47254         * modules/unicase/u8-is-lowercase: New file.
47255
47256         Tests for module 'unicase/u32-is-uppercase'.
47257         * modules/unicase/u32-is-uppercase-tests: New file.
47258         * tests/unicase/test-u32-is-uppercase.c: New file.
47259
47260         Tests for module 'unicase/u16-is-uppercase'.
47261         * modules/unicase/u16-is-uppercase-tests: New file.
47262         * tests/unicase/test-u16-is-uppercase.c: New file.
47263
47264         Tests for module 'unicase/u8-is-uppercase'.
47265         * modules/unicase/u8-is-uppercase-tests: New file.
47266         * tests/unicase/test-u8-is-uppercase.c: New file.
47267         * tests/unicase/test-is-uppercase.h: New file.
47268
47269         New module 'unicase/u32-is-uppercase'.
47270         * lib/unicase/u32-is-uppercase.c: New file.
47271         * modules/unicase/u32-is-uppercase: New file.
47272
47273         New module 'unicase/u16-is-uppercase'.
47274         * lib/unicase/u16-is-uppercase.c: New file.
47275         * modules/unicase/u16-is-uppercase: New file.
47276
47277         New module 'unicase/u8-is-uppercase'.
47278         * lib/unicase/u8-is-uppercase.c: New file.
47279         * modules/unicase/u8-is-uppercase: New file.
47280
47281         New module 'unicase/u32-is-invariant'.
47282         * lib/unicase/u32-is-invariant.c: New file.
47283         * modules/unicase/u32-is-invariant: New file.
47284
47285         New module 'unicase/u16-is-invariant'.
47286         * lib/unicase/u16-is-invariant.c: New file.
47287         * modules/unicase/u16-is-invariant: New file.
47288
47289         New module 'unicase/u8-is-invariant'.
47290         * lib/unicase/u8-is-invariant.c: New file.
47291         * lib/unicase/invariant.h: New file.
47292         * lib/unicase/u-is-invariant.h: New file.
47293         * modules/unicase/u8-is-invariant: New file.
47294
47295         Tests for module 'unicase/u32-casecoll'.
47296         * modules/unicase/u32-casecoll-tests: New file.
47297         * tests/unicase/test-u32-casecoll.c: New file.
47298
47299         Tests for module 'unicase/u16-casecoll'.
47300         * modules/unicase/u16-casecoll-tests: New file.
47301         * tests/unicase/test-u16-casecoll.c: New file.
47302
47303         Tests for module 'unicase/u8-casecoll'.
47304         * modules/unicase/u8-casecoll-tests: New file.
47305         * tests/unicase/test-u8-casecoll.c: New file.
47306
47307         New module 'unicase/u32-casecoll'.
47308         * lib/unicase/u32-casecoll.c: New file.
47309         * modules/unicase/u32-casecoll: New file.
47310
47311         New module 'unicase/u16-casecoll'.
47312         * lib/unicase/u16-casecoll.c: New file.
47313         * modules/unicase/u16-casecoll: New file.
47314
47315         New module 'unicase/u8-casecoll'.
47316         * lib/unicase/u8-casecoll.c: New file.
47317         * lib/unicase/u-casecoll.h: New file.
47318         * modules/unicase/u8-casecoll: New file.
47319
47320         New module 'unicase/u32-casexfrm'.
47321         * lib/unicase/u32-casexfrm.c: New file.
47322         * modules/unicase/u32-casexfrm: New file.
47323
47324         New module 'unicase/u16-casexfrm'.
47325         * lib/unicase/u16-casexfrm.c: New file.
47326         * modules/unicase/u16-casexfrm: New file.
47327
47328         New module 'unicase/u8-casexfrm'.
47329         * lib/unicase/u8-casexfrm.c: New file.
47330         * lib/unicase/u-casexfrm.h: New file.
47331         * modules/unicase/u8-casexfrm: New file.
47332
47333         Tests for module 'unicase/u32-casecmp'.
47334         * modules/unicase/u32-casecmp-tests: New file.
47335         * tests/unicase/test-u32-casecmp.c: New file.
47336
47337         Tests for module 'unicase/u16-casecmp'.
47338         * modules/unicase/u16-casecmp-tests: New file.
47339         * tests/unicase/test-u16-casecmp.c: New file.
47340
47341         Tests for module 'unicase/u8-casecmp'.
47342         * modules/unicase/u8-casecmp-tests: New file.
47343         * tests/unicase/test-u8-casecmp.c: New file.
47344         * tests/unicase/test-casecmp.h: New file.
47345
47346         New module 'unicase/u32-casecmp'.
47347         * lib/unicase/u32-casecmp.c: New file.
47348         * modules/unicase/u32-casecmp: New file.
47349
47350         New module 'unicase/u16-casecmp'.
47351         * lib/unicase/u16-casecmp.c: New file.
47352         * modules/unicase/u16-casecmp: New file.
47353
47354         New module 'unicase/u8-casecmp'.
47355         * lib/unicase/u8-casecmp.c: New file.
47356         * lib/unicase/u-casecmp.h: New file.
47357         * modules/unicase/u8-casecmp: New file.
47358
47359         Tests for module 'unicase/u32-casefold'.
47360         * modules/unicase/u32-casefold-tests: New file.
47361         * tests/unicase/test-u32-casefold.c: New file.
47362
47363         Tests for module 'unicase/u16-casefold'.
47364         * modules/unicase/u16-casefold-tests: New file.
47365         * tests/unicase/test-u16-casefold.c: New file.
47366
47367         Tests for module 'unicase/u8-casefold'.
47368         * modules/unicase/u8-casefold-tests: New file.
47369         * tests/unicase/test-u8-casefold.c: New file.
47370
47371         New module 'unicase/u32-casefold'.
47372         * lib/unicase/u32-casefold.c: New file.
47373         * modules/unicase/u32-casefold: New file.
47374
47375         New module 'unicase/u16-casefold'.
47376         * lib/unicase/u16-casefold.c: New file.
47377         * modules/unicase/u16-casefold: New file.
47378
47379         New module 'unicase/u8-casefold'.
47380         * lib/unicase/u8-casefold.c: New file.
47381         * lib/unicase/u-casefold.h: New file.
47382         * modules/unicase/u8-casefold: New file.
47383
47384         New module 'unicase/tocasefold'.
47385         * lib/unicase/casefold.h: New file.
47386         * lib/unicase/tocasefold.c: New file.
47387         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47388         * modules/unicase/tocasefold: New file.
47389
47390         Tests for module 'unicase/u32-totitle'.
47391         * modules/unicase/u32-totitle-tests: New file.
47392         * tests/unicase/test-u32-totitle.c: New file.
47393
47394         Tests for module 'unicase/u16-totitle'.
47395         * modules/unicase/u16-totitle-tests: New file.
47396         * tests/unicase/test-u16-totitle.c: New file.
47397
47398         Tests for module 'unicase/u8-totitle'.
47399         * modules/unicase/u8-totitle-tests: New file.
47400         * tests/unicase/test-u8-totitle.c: New file.
47401
47402         New module 'unicase/u32-totitle'.
47403         * lib/unicase/u32-totitle.c: New file.
47404         * modules/unicase/u32-totitle: New file.
47405
47406         New module 'unicase/u16-totitle'.
47407         * lib/unicase/u16-totitle.c: New file.
47408         * modules/unicase/u16-totitle: New file.
47409
47410         New module 'unicase/u8-totitle'.
47411         * lib/unicase/u8-totitle.c: New file.
47412         * lib/unicase/u-totitle.h: New file.
47413         * modules/unicase/u8-totitle: New file.
47414
47415         Tests for module 'unicase/u32-tolower'.
47416         * modules/unicase/u32-tolower-tests: New file.
47417         * tests/unicase/test-u32-tolower.c: New file.
47418
47419         Tests for module 'unicase/u16-tolower'.
47420         * modules/unicase/u16-tolower-tests: New file.
47421         * tests/unicase/test-u16-tolower.c: New file.
47422
47423         Tests for module 'unicase/u8-tolower'.
47424         * modules/unicase/u8-tolower-tests: New file.
47425         * tests/unicase/test-u8-tolower.c: New file.
47426
47427         New module 'unicase/u32-tolower'.
47428         * lib/unicase/u32-tolower.c: New file.
47429         * modules/unicase/u32-tolower: New file.
47430
47431         New module 'unicase/u16-tolower'.
47432         * lib/unicase/u16-tolower.c: New file.
47433         * modules/unicase/u16-tolower: New file.
47434
47435         New module 'unicase/u8-tolower'.
47436         * lib/unicase/u8-tolower.c: New file.
47437         * modules/unicase/u8-tolower: New file.
47438
47439         Tests for module 'unicase/u32-toupper'.
47440         * modules/unicase/u32-toupper-tests: New file.
47441         * tests/unicase/test-u32-toupper.c: New file.
47442
47443         Tests for module 'unicase/u16-toupper'.
47444         * modules/unicase/u16-toupper-tests: New file.
47445         * tests/unicase/test-u16-toupper.c: New file.
47446
47447         Tests for module 'unicase/u8-toupper'.
47448         * modules/unicase/u8-toupper-tests: New file.
47449         * tests/unicase/test-u8-toupper.c: New file.
47450
47451         New module 'unicase/u32-toupper'.
47452         * lib/unicase/u32-toupper.c: New file.
47453         * modules/unicase/u32-toupper: New file.
47454
47455         New module 'unicase/u16-toupper'.
47456         * lib/unicase/u16-toupper.c: New file.
47457         * modules/unicase/u16-toupper: New file.
47458
47459         New module 'unicase/u8-toupper'.
47460         * lib/unicase/u8-toupper.c: New file.
47461         * modules/unicase/u8-toupper: New file.
47462
47463         New module 'unicase/u32-casemap'.
47464         * lib/unicase/u32-casemap.c: New file.
47465         * modules/unicase/u32-casemap: New file.
47466
47467         New module 'unicase/u16-casemap'.
47468         * lib/unicase/u16-casemap.c: New file.
47469         * modules/unicase/u16-casemap: New file.
47470
47471         New module 'unicase/u8-casemap'.
47472         * lib/unicase/unicasemap.h: New file.
47473         * lib/unicase/u8-casemap.c: New file.
47474         * lib/unicase/u-casemap.h: New file.
47475         * modules/unicase/u8-casemap: New file.
47476
47477         New module 'unicase/special-casing'.
47478         * lib/unicase/special-casing.h: New file.
47479         * lib/unicase/special-casing.c: New file.
47480         * lib/unicase/special-casing-table.gperf: New file, generated by
47481         gen-uni-tables.c.
47482         * modules/unicase/special-casing: New file.
47483
47484         Tests for module 'unicase/locale-language'.
47485         * modules/unicase/locale-language-tests: New file.
47486         * tests/unicase/test-locale-language.sh: New file.
47487         * tests/unicase/test-locale-language.c: New file.
47488
47489         New module 'unicase/locale-language'.
47490         * lib/unicase/locale-language.c: New file.
47491         * lib/unicase/locale-languages.gperf: New file.
47492         * modules/unicase/locale-language: New file.
47493
47494         Generate more tables for case conversion and case folding.
47495         * lib/gen-uni-tables.c (SCC_*): New enum items.
47496         (struct special_casing_rule): New type.
47497         (casing_rules, num_casing_rules, allocated_casing_rules): New
47498         variables.
47499         (add_casing_rule, fill_casing_rules): New functions.
47500         (struct casefold_rule): New type.
47501         (casefolding_rules, num_casefolding_rules,
47502         allocated_casefolding_rules): New variables.
47503         (fill_casefolding_rules): New function.
47504         (unicode_casefold): New variable.
47505         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47506         sort_casing_rules, output_casing_rules): New functions.
47507         (main): Accept to more arguments: SpecialCasing.txt and
47508         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47509         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47510         Output mapping for casefolding.
47511
47512         * lib/unicase.h: Include stdbool.h, uninorm.h.
47513         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47514         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47515         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47516         arguments.
47517         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47518         resultp arguments.
47519         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47520         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47521         resultp arguments.
47522         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47523         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47524         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47525         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47526         declarations.
47527         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47528
47529 2009-03-08  Bruno Haible  <bruno@clisp.org>
47530
47531         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47532         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47533         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47534         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47535
47536 2009-03-07  Bruno Haible  <bruno@clisp.org>
47537
47538         Adjust u*_normcmp, u*_normcoll API.
47539         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47540         u16_normcoll, u32_normcoll): Change failure conventions.
47541         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47542         errno and return -1.
47543         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47544
47545 2009-03-07  Bruno Haible  <bruno@clisp.org>
47546
47547         Tests for module 'uninorm/u32-normcoll'.
47548         * modules/uninorm/u32-normcoll-tests: New file.
47549         * tests/uninorm/test-u32-normcoll.c: New file.
47550
47551         Tests for module 'uninorm/u16-normcoll'.
47552         * modules/uninorm/u16-normcoll-tests: New file.
47553         * tests/uninorm/test-u16-normcoll.c: New file.
47554
47555         Tests for module 'uninorm/u8-normcoll'.
47556         * modules/uninorm/u8-normcoll-tests: New file.
47557         * tests/uninorm/test-u8-normcoll.c: New file.
47558
47559 2009-03-07  Bruno Haible  <bruno@clisp.org>
47560
47561         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47562         tests/uninorm/test-u32-normcmp.c.
47563         * tests/uninorm/test-u32-normcmp.c: Include it.
47564         (test_nonascii): New function, extracted from main. Add some more
47565         tests.
47566         (main): Invoke test_ascii and test_nonascii.
47567         * modules/uninorm/u32-normcmp-tests (Files): Add
47568         tests/uninorm/test-u32-normcmp.h.
47569         (Depends-on): Remove uninorm/u32-normcmp.
47570
47571         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47572         tests/uninorm/test-u16-normcmp.c.
47573         * tests/uninorm/test-u16-normcmp.c: Include it.
47574         (test_nonascii): New function, extracted from main. Add some more
47575         tests.
47576         (main): Invoke test_ascii and test_nonascii.
47577         * modules/uninorm/u16-normcmp-tests (Files): Add
47578         tests/uninorm/test-u16-normcmp.h.
47579         (Depends-on): Remove uninorm/u16-normcmp.
47580
47581         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47582         tests/uninorm/test-u8-normcmp.c.
47583         * tests/uninorm/test-u8-normcmp.c: Include it.
47584         (test_nonascii): New function, extracted from main. Add some more
47585         tests.
47586         (main): Invoke test_ascii and test_nonascii.
47587         * modules/uninorm/u8-normcmp-tests (Files): Add
47588         tests/uninorm/test-u8-normcmp.h.
47589         (Depends-on): Remove uninorm/u8-normcmp.
47590
47591 2009-03-07  Bruno Haible  <bruno@clisp.org>
47592
47593         New module 'uninorm/u32-normcoll'.
47594         * lib/uninorm/u32-normcoll.c: New file.
47595         * modules/uninorm/u32-normcoll: New file.
47596
47597         New module 'uninorm/u16-normcoll'.
47598         * lib/uninorm/u16-normcoll.c: New file.
47599         * modules/uninorm/u16-normcoll: New file.
47600
47601         New module 'uninorm/u8-normcoll'.
47602         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47603         declarations.
47604         * lib/uninorm/u8-normcoll.c: New file.
47605         * lib/uninorm/u-normcoll.h: New file.
47606         * modules/uninorm/u8-normcoll: New file.
47607
47608         New module 'uninorm/u32-normxfrm'.
47609         * lib/uninorm/u32-normxfrm.c: New file.
47610         * modules/uninorm/u32-normxfrm: New file.
47611
47612         New module 'uninorm/u16-normxfrm'.
47613         * lib/uninorm/u16-normxfrm.c: New file.
47614         * modules/uninorm/u16-normxfrm: New file.
47615
47616         New module 'uninorm/u8-normxfrm'.
47617         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47618         declarations.
47619         * lib/uninorm/u8-normxfrm.c: New file.
47620         * lib/uninorm/u-normxfrm.h: New file.
47621         * modules/uninorm/u8-normxfrm: New file.
47622
47623 2009-03-07  Bruno Haible  <bruno@clisp.org>
47624
47625         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47626         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47627         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47628
47629 2009-03-07  Bruno Haible  <bruno@clisp.org>
47630
47631         New module 'memxfrm'.
47632         * lib/memxfrm.h: New file.
47633         * lib/memxfrm.c: New file.
47634         * modules/memxfrm: New file.
47635
47636 2009-03-07  Bruno Haible  <bruno@clisp.org>
47637
47638         New module 'memcmp2'.
47639         * lib/memcmp2.h: New file.
47640         * lib/memcmp2.c: New file.
47641         * modules/memcmp2: New file.
47642
47643 2009-03-07  Bruno Haible  <bruno@clisp.org>
47644
47645         Tests for module 'uninorm/decomposing-form'.
47646         * modules/uninorm/decomposing-form-tests: New file.
47647         * tests/uninorm/test-decomposing-form.c: New file.
47648
47649         New module 'uninorm/decomposing-form'.
47650         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47651         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47652         Add 'decomposing_variant' field.
47653         * lib/uninorm/decomposing-form.c: New file.
47654         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47655         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47656         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47657         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47658         * modules/uninorm/decomposing-form: New file.
47659         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47660         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47661
47662 2009-03-07  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47665         strings.
47666
47667 2009-03-06  Bruno Haible  <bruno@clisp.org>
47668
47669         Tests for module 'uninorm/u32-normcmp'.
47670         * tests/uninorm/test-u32-normcmp.c: New file.
47671         * modules/uninorm/u32-normcmp-tests: New file.
47672
47673         Tests for module 'uninorm/u16-normcmp'.
47674         * tests/uninorm/test-u16-normcmp.c: New file.
47675         * modules/uninorm/u16-normcmp-tests: New file.
47676
47677         Tests for module 'uninorm/u8-normcmp'.
47678         * tests/uninorm/test-u8-normcmp.c: New file.
47679         * modules/uninorm/u8-normcmp-tests: New file.
47680
47681         New module 'uninorm/u32-normcmp'.
47682         * lib/uninorm/u32-normcmp.c: New file.
47683         * modules/uninorm/u32-normcmp: New file.
47684
47685         New module 'uninorm/u16-normcmp'.
47686         * lib/uninorm/u16-normcmp.c: New file.
47687         * modules/uninorm/u16-normcmp: New file.
47688
47689         New module 'uninorm/u8-normcmp'.
47690         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47691         declarations.
47692         * lib/uninorm/u8-normcmp.c: New file.
47693         * lib/uninorm/u-normcmp.h: New file.
47694         * modules/uninorm/u8-normcmp: New file.
47695
47696 2009-03-06  Bruno Haible  <bruno@clisp.org>
47697
47698         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47699         Reported by Eric Blake.
47700
47701 2009-03-06  Eric Blake  <ebb9@byu.net>
47702             Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47705         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47706         condition.
47707         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47708         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47709         condition.
47710         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47711
47712 2009-03-06  Eric Blake  <ebb9@byu.net>
47713
47714         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47715         to avoid compiler warnings.
47716         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47717
47718 2009-03-05  Bruno Haible  <bruno@clisp.org>
47719
47720         * tests/test-ftell.c (main): Disable test beyond end of file on
47721         FreeMiNT.
47722         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47723
47724 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47725
47726         * lib/filevercmp.c: Move hidden files up in ordering.
47727         * tests/test-filevercmp.c: Add tests for hidden files.
47728
47729 2009-03-04  Bruno Haible  <bruno@clisp.org>
47730
47731         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47732         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47733         AM_CFLAGS.
47734         Reported by Simon Josefsson.
47735
47736 2009-03-03  Bruno Haible  <bruno@clisp.org>
47737
47738         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47739         Reported by Simon Josefsson.
47740
47741         * doc/ld-version-script.texi: Update node reference.
47742
47743 2009-03-03  Bruno Haible  <bruno@clisp.org>
47744
47745         * modules/visibility (License): Change to 'unlimited'.
47746         Suggested by Simon Josefsson.
47747
47748 2009-03-03  Jim Meyering  <meyering@redhat.com>
47749
47750         unlinkdir: cannot_unlink_dir may modify process state
47751         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47752         it's neither thread-safe nor appropriate for use in a library.
47753
47754 2009-03-03  Eric Blake  <ebb9@byu.net>
47755
47756         test-closein: silence test under Darwin
47757         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47758         care if it dies from EPIPE or EBADF.
47759
47760 2009-03-03  Bruno Haible  <bruno@clisp.org>
47761
47762         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47763         earlier.
47764         * doc/visibility.texi: Fix @node and @section.
47765
47766 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47767
47768         * doc/gnulib.texi: Link to sections for ld version script and
47769         visibility.
47770         * doc/visibility.texi: Add @node and @section.
47771         * modules/ld-version-script: New module.
47772         * m4/ld-version-script.m4: New file.
47773         * doc/ld-version-script.texi: New file.
47774
47775 2009-03-02  David Lutterkort  <lutter@redhat.com>
47776
47777         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47779
47780 2009-03-02  Bruno Haible  <bruno@clisp.org>
47781
47782         * doc/visibility.texi: Mention libtool's -export-symbols option.
47783
47784 2009-03-02  Jim Meyering  <meyering@redhat.com>
47785
47786         announce-gen: new option: --no-print-checksums
47787         * build-aux/announce-gen (usage): Describe it.
47788         (print_checksums): Print a newline here, not in the [*] footnote.
47789         (main): Honor it.
47790
47791 2009-03-01  Bruno Haible  <bruno@clisp.org>
47792
47793         Use socklen_t in the native Windows replacements prototypes.
47794         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47795         instead of 'int'.
47796         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47797         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47798         * modules/getsockopt (Depends-on): Add socklen.
47799         * modules/setsockopt (Depends-on): Add socklen.
47800
47801 2009-03-01  Bruno Haible  <bruno@clisp.org>
47802
47803         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47804         least 4.2.
47805
47806 2009-03-01  Eric Blake  <ebb9@byu.net>
47807             Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47810         error messages.
47811         * lib/wait-process.c (wait_subprocess): Omit error message about
47812         deadly signal sent to the child of termsigp != NULL.
47813
47814 2009-03-01  Eric Blake  <ebb9@byu.net>
47815
47816         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47817
47818 2009-03-01  Bruno Haible  <bruno@clisp.org>
47819
47820         Avoid a gcc warning.
47821         * tests/test-sched.c (b): Make global.
47822         Reported by Eric Blake.
47823
47824 2009-01-19  Martin Lambers  <marlam@marlam.de>
47825
47826         Provide POSIX semantics for socket timeout options on W32.
47827         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47828         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47829         * modules/setsockopt: Depend on sys_time module for struct timeval.
47830         * modules/getsockopt: Depend on sys_time module for struct timeval.
47831
47832 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47833
47834         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47835         __USE_GNU, for consistency with netdb.in.h.
47836         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47837
47838 2009-03-01  Bruno Haible  <bruno@clisp.org>
47839
47840         More support for FreeMiNT.
47841         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47842         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47843
47844 2009-03-01  Bruno Haible  <bruno@clisp.org>
47845
47846         More support for FreeMiNT.
47847         * lib/fpurge.c (fpurge): Correct last commit.
47848         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47849
47850 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47851
47852         Fix unportable awk script in vc-list-files.
47853         * build-aux/vc-list-files: In the replacement awk script, use
47854         substr with a second argument of 1, not zero.
47855         Report by Simon Josefsson.
47856
47857 2009-02-28  Bruno Haible  <bruno@clisp.org>
47858
47859         More support for FreeMiNT.
47860         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47861         to FreeMiNT today.
47862         * lib/fwriting.c (fwriting): Likewise.
47863         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47864
47865 2009-02-28  Bruno Haible  <bruno@clisp.org>
47866
47867         * tests/test-freadseek.c (main): Disable test beyond end of file on
47868         FreeMiNT.
47869         * tests/test-ftello.c (main): Likewise.
47870         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47871
47872 2009-02-28  Bruno Haible  <bruno@clisp.org>
47873
47874         Add tentative support for FreeMiNT.
47875         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47876         * lib/fpurge.c (fpurge): Likewise.
47877         * lib/freadable.c (freadable): Likewise.
47878         * lib/freading.c (freading): Likewise.
47879         * lib/freadptr.c (freadptr): Likewise.
47880         * lib/freadseek.c (freadptrinc): Likewise.
47881         * lib/fseeko.c (rpl_fseeko): Likewise.
47882         * lib/fseterr.c (fseterr): Likewise.
47883         * lib/fwritable.c (fwritable): Likewise.
47884         * lib/fwriting.c (fwriting): Likewise.
47885         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47886         Hourihane.
47887         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47888
47889 2009-02-28  Bruno Haible  <bruno@clisp.org>
47890
47891         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47892         SIGCHLD.
47893         Reported by Jim Meyering.
47894
47895 2009-02-28  Bruno Haible  <bruno@clisp.org>
47896
47897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47898         Mention the results of these tests on various platforms.
47899         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47900         order.
47901         * doc/posix-functions/printf.texi: Likewise.
47902         * doc/posix-functions/snprintf.texi: Likewise.
47903         * doc/posix-functions/sprintf.texi: Likewise.
47904         * doc/posix-functions/vfprintf.texi: Likewise.
47905         * doc/posix-functions/vprintf.texi: Likewise.
47906         * doc/posix-functions/vsnprintf.texi: Likewise.
47907         * doc/posix-functions/vsprintf.texi: Likewise.
47908         * doc/glibc-functions/obstack_printf.texi: Likewise.
47909         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47910
47911 2009-02-28  Bruno Haible  <bruno@clisp.org>
47912
47913         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47914         Reported by Loïc Minier <lool@dooz.org>.
47915
47916 2009-02-27  Bruno Haible  <bruno@clisp.org>
47917
47918         * gnulib-tool (func_import): Make the sed expression used to create the
47919         sed script for updating the .gitignore file POSIX compliant.
47920         Reported by Eric Blake.
47921
47922 2009-02-27  Bruno Haible  <bruno@clisp.org>
47923
47924         * gnulib-tool (sed): Don't alias as "sed --posix".
47925         Reported by Eric Blake.
47926
47927 2009-02-27  Bruno Haible  <bruno@clisp.org>
47928
47929         Avoid test link errors.
47930         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47931         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47932         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47933         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47935
47936 2009-02-27  Bruno Haible  <bruno@clisp.org>
47937
47938         Avoid spurious "(cached)" in configure output.
47939         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47941         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47942         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47943         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47944         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47945         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47946         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47947         Reported by Eric Blake.
47948
47949 2009-02-27  Eric Blake  <ebb9@byu.net>
47950
47951         printf: fix regression in previous patch
47952         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47953
47954 2009-02-27  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47957         value.
47958         * lib/stdint.in.h: Likewise.
47959         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47960
47961 2009-02-27  Eric Blake  <ebb9@byu.net>
47962
47963         doc: mention more functions added in cygwin 1.7.0
47964         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47965         addition.
47966         * doc/posix-functions/open_wmemstream.texi: Likewise.
47967         * doc/posix-functions/wcsnlen.texi: Likewise.
47968         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47969         * doc/posix-functions/wcstod.texi: Likewise.
47970         * doc/posix-functions/wcstof.texi: Likewise.
47971         * doc/posix-functions/wcstoimax.texi: Likewise.
47972         * doc/posix-functions/wcstok.texi: Likewise.
47973         * doc/posix-functions/wcstoumax.texi: Likewise.
47974
47975         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47977         * doc/posix-functions/fprintf.texi: Update.
47978         * doc/posix-functions/printf.texi: Update.
47979         * doc/posix-functions/snprintf.texi: Update.
47980         * doc/posix-functions/sprintf.texi: Update.
47981         * doc/posix-functions/vfprintf.texi: Update.
47982         * doc/posix-functions/vprintf.texi: Update.
47983         * doc/posix-functions/vsnprintf.texi: Update.
47984         * doc/posix-functions/vsprintf.texi: Update.
47985         * doc/glibc-functions/obstack_printf.texi: Update.
47986         * doc/glibc-functions/obstack_vprintf.texi: Update.
47987
47988 2009-02-26  Eric Blake  <ebb9@byu.net>
47989
47990         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47991         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47992         compilation bug by using runtime conversion.
47993         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47994         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47995         * modules/ceill-tests (Files): Use nan.h.
47996         * modules/floorl-tests (Files): Likewise.
47997         * modules/frexpl-tests (Files): Likewise.
47998         * modules/isnanl-tests (Files): Likewise.
47999         * modules/ldexpl-tests (Files): Likewise.
48000         * modules/roundl-tests (Files): Likewise.
48001         * modules/truncl-tests (Files): Likewise.
48002         * tests/test-ceill.c (main): Use a working NaN.
48003         * tests/test-floorl.c (main): Likewise.
48004         * tests/test-frexpl.c (main): Likewise.
48005         * tests/test-isnan.c (test_long_double): Likewise.
48006         * tests/test-isnanl.h (main): Likewise.
48007         * tests/test-ldexpl.h (main): Likewise.
48008         * tests/test-roundl.h (main): Likewise.
48009         * tests/test-truncl.h (main): Likewise.
48010         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48011
48012 2009-02-26  Eric Blake  <ebb9@byu.net>
48013             Bruno Haible  <bruno@clisp.org>
48014
48015         Work around a *printf bug with %ls on Solaris.
48016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48017         precision is specified, sprintf stops converting the wide string
48018         argument when the number of bytes that have been produced by this
48019         conversion equals or exceeds the precision.
48020         * doc/posix-functions/fprintf.texi: Update.
48021         * doc/posix-functions/printf.texi: Update.
48022         * doc/posix-functions/snprintf.texi: Update.
48023         * doc/posix-functions/sprintf.texi: Update.
48024         * doc/posix-functions/vfprintf.texi: Update.
48025         * doc/posix-functions/vprintf.texi: Update.
48026         * doc/posix-functions/vsnprintf.texi: Update.
48027         * doc/posix-functions/vsprintf.texi: Update.
48028         * doc/glibc-functions/obstack_printf.texi: Update.
48029         * doc/glibc-functions/obstack_vprintf.texi: Update.
48030
48031 2009-02-26  Eric Blake  <ebb9@byu.net>
48032
48033         stdlib: favor compiler check of random.h
48034         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48035         to avoid an ObjC random.h installed by Swarm.
48036
48037 2009-02-26  Bruno Haible  <bruno@clisp.org>
48038
48039         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48040         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48041         Reported by Gary V. Vaughan <gary@gnu.org>.
48042
48043 2009-02-26  Bruno Haible  <bruno@clisp.org>
48044
48045         Fix *printf behaviour regarding the %ls directive.
48046         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48047         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48048         NEED_PRINTF_DIRECTIVE_LS.
48049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48050         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48052         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48053         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48054         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48055         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48056         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48057         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48058         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48059         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48060         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48061         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48062         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48064         * doc/posix-functions/fprintf.texi: Update.
48065         * doc/posix-functions/printf.texi: Update.
48066         * doc/posix-functions/snprintf.texi: Update.
48067         * doc/posix-functions/sprintf.texi: Update.
48068         * doc/posix-functions/vfprintf.texi: Update.
48069         * doc/posix-functions/vprintf.texi: Update.
48070         * doc/posix-functions/vsnprintf.texi: Update.
48071         * doc/posix-functions/vsprintf.texi: Update.
48072         * doc/glibc-functions/obstack_printf.texi: Update.
48073         * doc/glibc-functions/obstack_vprintf.texi: Update.
48074         Reported by Eric Blake.
48075
48076 2009-02-25  Bruno Haible  <bruno@clisp.org>
48077
48078         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48079         with known value.
48080         Reported by Gary V. Vaughan <gary@gnu.org>.
48081
48082 2009-02-25  Bruno Haible  <bruno@clisp.org>
48083
48084         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48085         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48086         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48087         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48088         Reported by Gary V. Vaughan <gary@gnu.org>.
48089
48090 2009-02-25  Bruno Haible  <bruno@clisp.org>
48091
48092         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48093         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48094         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48095         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48096         Reported by Gary V. Vaughan <gary@gnu.org>.
48097
48098 2009-02-25  Eric Blake  <ebb9@byu.net>
48099
48100         tests: skip fseek/ftell tests if ungetc is broken
48101         * m4/ungetc.m4: New file.
48102         * modules/fseek-tests: Split test, so ungetc dependency is
48103         separate from rest of test.
48104         * modules/fseeko-tests: Likewise.
48105         * modules/ftell-tests: Likewise.
48106         * modules/ftello-tests: Likewise.
48107         * tests/test-fseek.c (main): Isolate ungetc dependency.
48108         * tests/test-fseeko.c (main): Likewise.
48109         * tests/test-ftell.c (main): Likewise.
48110         * tests/test-ftello.c (main): Likewise.
48111         * tests/test-fseek2.sh: New file.
48112         * tests/test-fseeko2.sh: Likewise.
48113         * tests/test-ftell2.sh: Likewise.
48114         * tests/test-ftello2.sh: Likewise.
48115
48116 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
48117
48118         test-getaddrinfo: fix usage of skip return code 77
48119         * tests/test-gettaddrinfo.c: Return skip code 77 only
48120         for first occurrence of skip (4x77 is not 77)
48121
48122 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48123
48124         strtod: avoid C99 decl-after-statement
48125         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48126
48127 2009-02-24  Eric Blake  <ebb9@byu.net>
48128
48129         strtod: detect HP-UX 11.31 bug
48130         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48131         Reported by Gary V. Vaughan.
48132
48133 2009-02-23  Bruno Haible  <bruno@clisp.org>
48134
48135         Fix invalid read past end of memory block.
48136         * lib/vasnprintf.c (DCHAR_SET): Define.
48137         (local_wcslen): Define only when needed.
48138         (local_strnlen, local_wcsnlen): New functions.
48139         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48140         directives that involve a conversion ourselves.
48141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48142         wcsnlen, mbrtowc, wcrtomb.
48143         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48144         * tests/test-vasprintf-posix.c (test_function): Likewise.
48145         * tests/test-snprintf-posix.h (test_function): Likewise.
48146         * tests/test-sprintf-posix.h (test_function): Likewise.
48147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48148
48149 2009-02-22  Bruno Haible  <bruno@clisp.org>
48150
48151         Implement new clarified decomposition of Hangul syllables.
48152         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48153         of type LTV, return only a pairwise decomposition.
48154         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48155         Likewise.
48156         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48157         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48158         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48159
48160 2009-02-22  Bruno Haible  <bruno@clisp.org>
48161
48162         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48163         zero-length results and shrink excess allocated memory.
48164         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48165         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48166         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48167         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48168         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48169         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48170         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48171         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48172         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48173         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48174         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48175         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48176
48177 2009-02-21  Bruno Haible  <bruno@clisp.org>
48178
48179         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48180         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48181         spaces after a period. Put a space between a macro name and its
48182         argument list. Trivial rewordings.
48183         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48184         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48185         (main): Return 0 explicitly.
48186
48187 2009-02-21  Bruno Haible  <bruno@clisp.org>
48188
48189         Tests for module 'uninorm/filter'.
48190         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48191         * modules/uninorm/filter-tests: New file.
48192
48193         New module 'uninorm/filter'.
48194         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48195         uninorm_filter_flush, uninorm_filter_free): New declarations.
48196         * lib/uninorm/uninorm-filter.c: New file.
48197         * modules/uninorm/filter: New file.
48198
48199 2009-02-21  Bruno Haible  <bruno@clisp.org>
48200
48201         Tests for module 'uninorm/nfkc'.
48202         * tests/uninorm/test-nfkc.c: New file.
48203         * tests/uninorm/test-u8-nfkc.c: New file.
48204         * tests/uninorm/test-u16-nfkc.c: New file.
48205         * tests/uninorm/test-u32-nfkc.c: New file.
48206         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48207         * tests/uninorm/test-u32-nfkc-big.c: New file.
48208         * modules/uninorm/nfkc-tests: New file.
48209
48210         New module 'uninorm/nfkc'.
48211         * lib/uninorm/nfkc.c: New file.
48212         * modules/uninorm/nfkc: New file.
48213
48214         Tests for module 'uninorm/nfkd'.
48215         * tests/uninorm/test-nfkd.c: New file.
48216         * tests/uninorm/test-u8-nfkd.c: New file.
48217         * tests/uninorm/test-u16-nfkd.c: New file.
48218         * tests/uninorm/test-u32-nfkd.c: New file.
48219         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48220         * tests/uninorm/test-u32-nfkd-big.c: New file.
48221         * modules/uninorm/nfkd-tests: New file.
48222
48223         New module 'uninorm/nfkd'.
48224         * lib/uninorm/nfkd.c: New file.
48225         * modules/uninorm/nfkd: New file.
48226
48227         Tests for module 'uninorm/nfc'.
48228         * tests/uninorm/test-nfc.c: New file.
48229         * tests/uninorm/test-u8-nfc.c: New file.
48230         * tests/uninorm/test-u16-nfc.c: New file.
48231         * tests/uninorm/test-u32-nfc.c: New file.
48232         * tests/uninorm/test-u32-nfc-big.sh: New file.
48233         * tests/uninorm/test-u32-nfc-big.c: New file.
48234         * modules/uninorm/nfc-tests: New file.
48235
48236         New module 'uninorm/nfc'.
48237         * lib/uninorm/nfc.c: New file.
48238         * modules/uninorm/nfc: New file.
48239
48240         Tests for module 'uninorm/nfd'.
48241         * tests/uninorm/test-nfd.c: New file.
48242         * tests/uninorm/test-u8-nfd.c: New file.
48243         * tests/uninorm/test-u16-nfd.c: New file.
48244         * tests/uninorm/test-u32-nfd.c: New file.
48245         * tests/uninorm/test-u32-nfd-big.sh: New file.
48246         * tests/uninorm/test-u32-nfd-big.c: New file.
48247         * tests/uninorm/test-u32-normalize-big.h: New file.
48248         * tests/uninorm/test-u32-normalize-big.c: New file.
48249         * tests/uninorm/NormalizationTest.txt: New file, created from
48250         Unicode 5.1.0 NormalizationTest.txt.
48251         * modules/uninorm/nfd-tests: New file.
48252
48253         New module 'uninorm/nfd'.
48254         * lib/uninorm/nfd.c: New file.
48255         * modules/uninorm/nfd: New file.
48256
48257         New module 'uninorm/u32-normalize'.
48258         * lib/uninorm/u32-normalize.c: New file.
48259         * modules/uninorm/u32-normalize: New file.
48260
48261         New module 'uninorm/u16-normalize'.
48262         * lib/uninorm/u16-normalize.c: New file.
48263         * modules/uninorm/u16-normalize: New file.
48264
48265         New module 'uninorm/u8-normalize'.
48266         * lib/uninorm/u8-normalize.c: New file.
48267         * lib/uninorm/normalize-internal.h: New file.
48268         * lib/uninorm/u-normalize-internal.h: New file.
48269         * modules/uninorm/u8-normalize: New file.
48270
48271         New module 'uninorm/decompose-internal'.
48272         * lib/uninorm/decompose-internal.c: New file.
48273         * modules/uninorm/decompose-internal: New file.
48274
48275         Tests for module 'uninorm/composition'.
48276         * tests/uninorm/test-composition.c: New file.
48277         * modules/uninorm/composition-tests: New file.
48278
48279         New module 'uninorm/composition'.
48280         * lib/uninorm/composition.c: New file.
48281         * lib/uninorm/composition-table.gperf: New file, generated by
48282         gen-uni-tables.
48283         * modules/uninorm/composition: New file.
48284
48285         Tests for module 'uninorm/compat-decomposition'.
48286         * tests/uninorm/test-compat-decomposition.c: New file.
48287         * modules/uninorm/compat-decomposition-tests: New file.
48288
48289         New module 'uninorm/compat-decomposition'.
48290         * lib/uninorm/decompose-internal.h: New file.
48291         * lib/uninorm/compat-decomposition.c: New file.
48292         * modules/uninorm/compat-decomposition: New file.
48293
48294         Tests for module 'uninorm/canonical-decomposition'.
48295         * tests/uninorm/test-canonical-decomposition.c: New file.
48296         * modules/uninorm/canonical-decomposition-tests: New file.
48297
48298         New module 'uninorm/canonical-decomposition'.
48299         * lib/uninorm/canonical-decomposition.c: New file.
48300         * modules/uninorm/canonical-decomposition: New file.
48301
48302         Tests for module 'uninorm/decomposition'.
48303         * tests/uninorm/test-decomposition.c: New file.
48304         * modules/uninorm/decomposition-tests: New file.
48305
48306         New module 'uninorm/decomposition'.
48307         * lib/uninorm/decomposition.c: New file.
48308         * modules/uninorm/decomposition: New file.
48309
48310         New module 'uninorm/decomposition-table'.
48311         * lib/uninorm/decomposition-table.h: New file.
48312         * lib/uninorm/decomposition-table.c: New file.
48313         * lib/uninorm/decomposition-table1.h: New file, generated by
48314         gen-uni-tables.
48315         * lib/uninorm/decomposition-table2.h: New file, generated by
48316         gen-uni-tables.
48317         * modules/uninorm/decomposition-table: New file.
48318
48319         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48320         (UC_DECOMP_*): New enumeration items.
48321         (get_decomposition): New function.
48322         (struct decomp_table): New type.
48323         (output_decomposition, output_decomposition_tables): New functions.
48324         (unicode_composition_exclusions): New variable.
48325         (fill_composition_exclusions, debug_output_composition_tables): New
48326         functions.
48327         (main): Accept one more argument. Invoke fill_composition_exclusions.
48328         Output decomposition and composition tables.
48329
48330         New module 'uninorm/base'.
48331         * lib/uninorm.h: New file.
48332         * lib/unictype.h: Update comment.
48333         * modules/uninorm/base: New file.
48334
48335 2009-02-21  David Lutterkort  <lutter@redhat.com>
48336
48337         Tests for module 'safe-alloc'.
48338         * tests/test-safe-alloc.c: New file.
48339         * modules/safe-alloc-tests: New file.
48340
48341         New module 'safe-alloc'.
48342         * lib/safe-alloc.h: New file.
48343         * lib/safe-alloc.c: New file.
48344         * m4/safe-alloc.m4: New file.
48345         * modules/safe-alloc: New file.
48346         * doc/safe-alloc.texi: New file.
48347         * doc/gnulib.texi: Include it.
48348         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48349         safe-alloc.
48350
48351 2009-02-18  Bruno Haible  <bruno@clisp.org>
48352
48353         Fix link error on non-glibc systems.
48354         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48355         variable.
48356         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48357
48358 2009-02-18  Jim Meyering  <meyering@redhat.com>
48359
48360         fts: avoid used-uninitialized error due to recent change
48361         * lib/fts.c (fts_read): Guard uses of the new member,
48362         parent->fts_n_dirs_remaining, since it's not relevant for
48363         the parent of a directory specified on the command-line.
48364
48365 2009-02-17  James Youngman  <jay@gnu.org>
48366             Bruno Haible  <bruno@clisp.org>
48367
48368         * m4/include_next.m4: Reformulate comment.
48369
48370 2009-02-16  Jim Meyering  <meyering@redhat.com>
48371
48372         fts: add #if guards so that the fts_lgpl module still builds
48373         * lib/fts.c: Guard just-added hash-table-using parts with
48374         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48375         Reported by Simon Josefsson.
48376
48377 2009-02-15  Bruno Haible  <bruno@clisp.org>
48378
48379         * modules/array-mergesort-tests: New file.
48380         * tests/test-array-mergesort.c: New file.
48381
48382         New module 'array-mergesort'.
48383         * modules/array-mergesort: New file.
48384         * lib/array-mergesort.h: New file.
48385
48386 2009-02-15  Bruno Haible  <bruno@clisp.org>
48387
48388         Fix 2009-02-07 commit.
48389         * lib/gen-uni-tables.c (output_predicate, output_category,
48390         output_combclass, output_bidi_category, output_decimal_digit,
48391         output_digit, output_numeric, output_mirror, output_scripts,
48392         output_ident_category, output_simple_mapping): Fix format directives.
48393         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48394
48395 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48396
48397         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48398         fixes are available from IBM.
48399
48400 2009-02-13  Jim Meyering  <meyering@redhat.com>
48401
48402         fts: arrange not to stat non-directories in more cases
48403         This makes GNU find (when it doesn't need to stat each file)
48404         *much* more efficient at traversing reiserfs file systems.
48405         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48406         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48407         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48408         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48409         (leaf_optimization_applies): New function.
48410         (LCO_hash, LCO_compare): New helper functions.
48411         (link_count_optimize_ok): New function.
48412         (fts_stat): Initialize new member (if dir).
48413         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48414         we've just stat'ed a directory.  Skip the stat call when possible.
48415         ---
48416         Note this AFS-related exchange:
48417         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48418         and note find's pioctl call in find/fstype.c.
48419         But that is necessary only if you want to enable the
48420         optimization for AFS, and for now, I don't.
48421
48422         fts: move a function definition "up" (no semantic change)
48423         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48424         "up" to precede upcoming use of a related function.
48425
48426 2009-02-11  Jim Meyering  <meyering@redhat.com>
48427
48428         fts: correct internal computation of nlinks (optimization-related)
48429         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48430         whether the current entry is a directory, so don't test it.
48431
48432 2009-02-10  Bruno Haible  <bruno@clisp.org>
48433
48434         Tests for module 'uniwbrk/ulc-wordbreaks'.
48435         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48436         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48437         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48438
48439         Tests for module 'uniwbrk/u32-wordbreaks'.
48440         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48441         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48442
48443         Tests for module 'uniwbrk/u16-wordbreaks'.
48444         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48445         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48446
48447         Tests for module 'uniwbrk/u8-wordbreaks'.
48448         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48449         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48450
48451 2009-02-10  Bruno Haible  <bruno@clisp.org>
48452
48453         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48454         property.
48455         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48456         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48457         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48458
48459 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48460
48461         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48462         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48463
48464 2009-02-10  Bruno Haible  <bruno@clisp.org>
48465
48466         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48467         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48468         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48469         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48470         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48471         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48472
48473 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48474
48475         * lib/sockets.h (gl_fd_to_handle): New function.
48476
48477         * tests/test-sockets.c: Call gl_fd_to_handle.
48478
48479 2009-02-09  Bruno Haible  <bruno@clisp.org>
48480
48481         * doc/havelib.texi: Document the conventions on bi-arch systems.
48482
48483 2009-02-08  Bruno Haible  <bruno@clisp.org>
48484
48485         Document the AC_LIB_LINKFLAGS macro.
48486         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48487         * doc/gnulib.texi: Include it.
48488
48489 2009-02-08  Bruno Haible  <bruno@clisp.org>
48490
48491         Fix wrong order of sections, compared to TOC.
48492         * doc/gnulib.texi: Include relocatable-maint.texi after the
48493         "Regular expressions" node, not before.
48494
48495 2009-02-08  Bruno Haible  <bruno@clisp.org>
48496
48497         Tests for module 'unicase/totitle'.
48498         * modules/unicase/totitle-tests: New file.
48499
48500         Tests for module 'unicase/tolower'.
48501         * modules/unicase/tolower-tests: New file.
48502
48503         Tests for module 'unicase/toupper'.
48504         * modules/unicase/toupper-tests: New file.
48505         * tests/unicase/test-mapping-part1.h: New file.
48506         * tests/unicase/test-mapping-part2.h: New file.
48507
48508         New module 'unicase/totitle'.
48509         * modules/unicase/totitle: New file.
48510         * lib/unicase/totitle.c: New file.
48511
48512         New module 'unicase/tolower'.
48513         * modules/unicase/tolower: New file.
48514         * lib/unicase/tolower.c: New file.
48515
48516         New module 'unicase/toupper'.
48517         * modules/unicase/toupper: New file.
48518         * lib/unicase/toupper.c: New file.
48519         * lib/unicase/simple-mapping.h: New file.
48520
48521         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48522         (mapping_table): New structure.
48523         (output_simple_mapping): New function.
48524         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48525         * modules/gen-uni-tables (Description): Update.
48526         * lib/unicase/toupper.h: New file, automatically generated by
48527         gen-uni-tables.
48528         * lib/unicase/tolower.h: New file, automatically generated by
48529         gen-uni-tables.
48530         * lib/unicase/totitle.h: New file, automatically generated by
48531         gen-uni-tables.
48532         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48533         gen-uni-tables.
48534         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48535         gen-uni-tables.
48536         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48537         gen-uni-tables.
48538
48539         New module 'unicase/base'.
48540         * modules/unicase/base: New file.
48541         * lib/unicase.h: New file.
48542
48543 2009-02-08  Bruno Haible  <bruno@clisp.org>
48544
48545         New module 'uniwbrk/ulc-wordbreaks'.
48546         * modules/uniwbrk/ulc-wordbreaks: New file.
48547         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48548
48549         New module 'uniwbrk/u32-wordbreaks'.
48550         * modules/uniwbrk/u32-wordbreaks: New file.
48551         * lib/uniwbrk/u32-wordbreaks.c: New file.
48552
48553         New module 'uniwbrk/u16-wordbreaks'.
48554         * modules/uniwbrk/u16-wordbreaks: New file.
48555         * lib/uniwbrk/u16-wordbreaks.c: New file.
48556
48557         New module 'uniwbrk/u8-wordbreaks'.
48558         * modules/uniwbrk/u8-wordbreaks: New file.
48559         * lib/uniwbrk/u8-wordbreaks.c: New file.
48560         * lib/uniwbrk/u-wordbreaks.h: New file.
48561
48562         New module 'uniwbrk/table'.
48563         * modules/uniwbrk/table: New file.
48564         * lib/uniwbrk/wbrktable.h: New file.
48565         * lib/uniwbrk/wbrktable.c: New file.
48566
48567         New module 'uniwbrk/wordbreak-property'.
48568         * modules/uniwbrk/wordbreak-property: New file.
48569         * lib/uniwbrk/wordbreak-property.c: New file.
48570
48571         * lib/gen-uni-tables.c (WBP_*): New enum items.
48572         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48573         (unicode_org_wbp): New variable.
48574         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48575         New functions.
48576         (wbp_table): New structure.
48577         (output_wbp, output_wbrk_tables): New functions.
48578         (main): Accept additional argument. Invoke fill_org_wbp,
48579         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48580         output_wbrk_tables.
48581         * modules/gen-uni-tables (Description): Update.
48582         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48583         gen-uni-tables.
48584
48585         New module 'uniwbrk/base'.
48586         * modules/uniwbrk/base: New file.
48587         * lib/uniwbrk.h: New file.
48588
48589 2009-02-08  Bruno Haible  <bruno@clisp.org>
48590
48591         Update to Unicode 5.1.0.
48592         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48593         U+2185..U+2188.
48594         (is_property_default_ignorable_code_point): Don't include characters
48595         of category Cc or Cs and not-a-characters.
48596         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48597         U+0D79, U+109E, U+109F, U+A60C.
48598         * lib/unictype/bidi_of.h: Regenerated.
48599         * lib/unictype/blocks.h: Regenerated.
48600         * lib/unictype/categ_C.h: Regenerated.
48601         * lib/unictype/categ_Cf.h: Regenerated.
48602         * lib/unictype/categ_Cn.h: Regenerated.
48603         * lib/unictype/categ_L.h: Regenerated.
48604         * lib/unictype/categ_Ll.h: Regenerated.
48605         * lib/unictype/categ_Lm.h: Regenerated.
48606         * lib/unictype/categ_Lo.h: Regenerated.
48607         * lib/unictype/categ_Lu.h: Regenerated.
48608         * lib/unictype/categ_M.h: Regenerated.
48609         * lib/unictype/categ_Mc.h: Regenerated.
48610         * lib/unictype/categ_Me.h: Regenerated.
48611         * lib/unictype/categ_Mn.h: Regenerated.
48612         * lib/unictype/categ_N.h: Regenerated.
48613         * lib/unictype/categ_Nd.h: Regenerated.
48614         * lib/unictype/categ_Nl.h: Regenerated.
48615         * lib/unictype/categ_No.h: Regenerated.
48616         * lib/unictype/categ_P.h: Regenerated.
48617         * lib/unictype/categ_Pd.h: Regenerated.
48618         * lib/unictype/categ_Pe.h: Regenerated.
48619         * lib/unictype/categ_Pf.h: Regenerated.
48620         * lib/unictype/categ_Pi.h: Regenerated.
48621         * lib/unictype/categ_Po.h: Regenerated.
48622         * lib/unictype/categ_Ps.h: Regenerated.
48623         * lib/unictype/categ_S.h: Regenerated.
48624         * lib/unictype/categ_Sk.h: Regenerated.
48625         * lib/unictype/categ_Sm.h: Regenerated.
48626         * lib/unictype/categ_So.h: Regenerated.
48627         * lib/unictype/categ_of.h: Regenerated.
48628         * lib/unictype/combining.h: Regenerated.
48629         * lib/unictype/ctype_alnum.h: Regenerated.
48630         * lib/unictype/ctype_alpha.h: Regenerated.
48631         * lib/unictype/ctype_graph.h: Regenerated.
48632         * lib/unictype/ctype_lower.h: Regenerated.
48633         * lib/unictype/ctype_print.h: Regenerated.
48634         * lib/unictype/ctype_punct.h: Regenerated.
48635         * lib/unictype/ctype_upper.h: Regenerated.
48636         * lib/unictype/decdigit.h: Regenerated.
48637         * lib/unictype/digit.h: Regenerated.
48638         * lib/unictype/mirror.h: Regenerated.
48639         * lib/unictype/numeric.h: Regenerated.
48640         * lib/unictype/pr_alphabetic.h: Regenerated.
48641         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48642         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48643         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48644         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48645         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48646         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48647         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48648         * lib/unictype/pr_combining.h: Regenerated.
48649         * lib/unictype/pr_dash.h: Regenerated.
48650         * lib/unictype/pr_decimal_digit.h: Regenerated.
48651         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48652         * lib/unictype/pr_deprecated.h: Regenerated.
48653         * lib/unictype/pr_diacritic.h: Regenerated.
48654         * lib/unictype/pr_extender.h: Regenerated.
48655         * lib/unictype/pr_format_control.h: Regenerated.
48656         * lib/unictype/pr_grapheme_base.h: Regenerated.
48657         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48658         * lib/unictype/pr_grapheme_link.h: Regenerated.
48659         * lib/unictype/pr_id_continue.h: Regenerated.
48660         * lib/unictype/pr_id_start.h: Regenerated.
48661         * lib/unictype/pr_ideographic.h: Regenerated.
48662         * lib/unictype/pr_ignorable_control.h: Regenerated.
48663         * lib/unictype/pr_lowercase.h: Regenerated.
48664         * lib/unictype/pr_math.h: Regenerated.
48665         * lib/unictype/pr_numeric.h: Regenerated.
48666         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48667         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48668         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48669         * lib/unictype/pr_other_id_continue.h: Regenerated.
48670         * lib/unictype/pr_other_lowercase.h: Regenerated.
48671         * lib/unictype/pr_other_math.h: Regenerated.
48672         * lib/unictype/pr_punctuation.h: Regenerated.
48673         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48674         * lib/unictype/pr_soft_dotted.h: Regenerated.
48675         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48676         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48677         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48678         * lib/unictype/pr_uppercase.h: Regenerated.
48679         * lib/unictype/pr_xid_continue.h: Regenerated.
48680         * lib/unictype/pr_xid_start.h: Regenerated.
48681         * lib/unictype/pr_zero_width.h: Regenerated.
48682         * lib/unictype/scripts.h: Regenerated.
48683         * lib/unictype/scripts_byname.gperf: Regenerated.
48684         * lib/unictype/sy_java_ident.h: Regenerated.
48685         * lib/unilbrk/lbrkprop1.h: Regenerated.
48686         * lib/unilbrk/lbrkprop2.h: Regenerated.
48687         * tests/unictype/test-categ_C.c: Regenerated.
48688         * tests/unictype/test-categ_Cf.c: Regenerated.
48689         * tests/unictype/test-categ_Cn.c: Regenerated.
48690         * tests/unictype/test-categ_L.c: Regenerated.
48691         * tests/unictype/test-categ_Ll.c: Regenerated.
48692         * tests/unictype/test-categ_Lm.c: Regenerated.
48693         * tests/unictype/test-categ_Lo.c: Regenerated.
48694         * tests/unictype/test-categ_Lu.c: Regenerated.
48695         * tests/unictype/test-categ_M.c: Regenerated.
48696         * tests/unictype/test-categ_Mc.c: Regenerated.
48697         * tests/unictype/test-categ_Me.c: Regenerated.
48698         * tests/unictype/test-categ_Mn.c: Regenerated.
48699         * tests/unictype/test-categ_N.c: Regenerated.
48700         * tests/unictype/test-categ_Nd.c: Regenerated.
48701         * tests/unictype/test-categ_Nl.c: Regenerated.
48702         * tests/unictype/test-categ_No.c: Regenerated.
48703         * tests/unictype/test-categ_P.c: Regenerated.
48704         * tests/unictype/test-categ_Pd.c: Regenerated.
48705         * tests/unictype/test-categ_Pe.c: Regenerated.
48706         * tests/unictype/test-categ_Pf.c: Regenerated.
48707         * tests/unictype/test-categ_Pi.c: Regenerated.
48708         * tests/unictype/test-categ_Po.c: Regenerated.
48709         * tests/unictype/test-categ_Ps.c: Regenerated.
48710         * tests/unictype/test-categ_S.c: Regenerated.
48711         * tests/unictype/test-categ_Sk.c: Regenerated.
48712         * tests/unictype/test-categ_Sm.c: Regenerated.
48713         * tests/unictype/test-categ_So.c: Regenerated.
48714         * tests/unictype/test-ctype_alnum.c: Regenerated.
48715         * tests/unictype/test-ctype_alpha.c: Regenerated.
48716         * tests/unictype/test-ctype_graph.c: Regenerated.
48717         * tests/unictype/test-ctype_lower.c: Regenerated.
48718         * tests/unictype/test-ctype_print.c: Regenerated.
48719         * tests/unictype/test-ctype_punct.c: Regenerated.
48720         * tests/unictype/test-ctype_upper.c: Regenerated.
48721         * tests/unictype/test-decdigit.h: Regenerated.
48722         * tests/unictype/test-digit.h: Regenerated.
48723         * tests/unictype/test-numeric.h: Regenerated.
48724         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48725         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48726         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48727         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48728         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48729         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48730         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48731         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48732         * tests/unictype/test-pr_combining.c: Regenerated.
48733         * tests/unictype/test-pr_dash.c: Regenerated.
48734         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48735         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48736         * tests/unictype/test-pr_deprecated.c: Regenerated.
48737         * tests/unictype/test-pr_diacritic.c: Regenerated.
48738         * tests/unictype/test-pr_extender.c: Regenerated.
48739         * tests/unictype/test-pr_format_control.c: Regenerated.
48740         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48741         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48742         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48743         * tests/unictype/test-pr_id_continue.c: Regenerated.
48744         * tests/unictype/test-pr_id_start.c: Regenerated.
48745         * tests/unictype/test-pr_ideographic.c: Regenerated.
48746         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48747         * tests/unictype/test-pr_lowercase.c: Regenerated.
48748         * tests/unictype/test-pr_math.c: Regenerated.
48749         * tests/unictype/test-pr_numeric.c: Regenerated.
48750         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48751         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48752         Regenerated.
48753         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48754         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48755         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48756         * tests/unictype/test-pr_other_math.c: Regenerated.
48757         * tests/unictype/test-pr_punctuation.c: Regenerated.
48758         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48759         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48760         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48761         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48762         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48763         * tests/unictype/test-pr_uppercase.c: Regenerated.
48764         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48765         * tests/unictype/test-pr_xid_start.c: Regenerated.
48766         * tests/unictype/test-pr_zero_width.c: Regenerated.
48767
48768         Update to Unicode 5.1.0.
48769         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48770         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48771         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48772         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48773         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48774         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48775         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48776         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48777         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48778         (nonspacing_table_ind): Update.
48779         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48780
48781         Update to Unicode 5.1.0.
48782         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48783         code transform.
48784         * lib/uniname/uniname.c (unicode_character_name,
48785         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48786         * lib/uniname/uninames.h: Regenerated.
48787         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48788
48789 2009-02-07  Bruno Haible  <bruno@clisp.org>
48790
48791         Merge gen-ctype and gen-lbrk into a single program.
48792         * lib/gen-uni-tables.c: New file, incorporating
48793         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48794         Add directory prefixes to the names of the generated files.
48795         * lib/unictype/gen-ctype.c: Remove file.
48796         * lib/unilbrk/gen-lbrk.c: Remove file.
48797         * modules/gen-uni-tables: New file.
48798         * modules/unictype/gen-ctype: Remove file.
48799         * modules/unilbrk/gen-lbrk: Remove file.
48800
48801 2009-02-07  Bruno Haible  <bruno@clisp.org>
48802
48803         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48804
48805         New module 'unistr/u32-strcoll'.
48806         * modules/unistr/u32-strcoll: New file.
48807         * lib/unistr/u32-strcoll.c: New file.
48808
48809         New module 'unistr/u16-strcoll'.
48810         * modules/unistr/u16-strcoll: New file.
48811         * lib/unistr/u16-strcoll.c: New file.
48812
48813         New module 'unistr/u8-strcoll'.
48814         * modules/unistr/u8-strcoll: New file.
48815         * lib/unistr/u8-strcoll.c: New file.
48816         * lib/unistr/u-strcoll.h: New file.
48817
48818 2009-02-07  Bruno Haible  <bruno@clisp.org>
48819
48820         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48821         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48822         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48823         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48824         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48825         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48826
48827 2009-02-07  Bruno Haible  <bruno@clisp.org>
48828
48829         Make 64-bit clean.
48830         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48831         output_combclass, output_bidi_category, output_decimal_digit,
48832         output_digit, output_numeric, output_mirror, output_scripts,
48833         output_ident_category): Use proper width specifier in format strings.
48834
48835 2009-02-07  Bruno Haible  <bruno@clisp.org>
48836
48837         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48838         failure behaviour.
48839
48840 2009-02-07  Jim Meyering  <meyering@redhat.com>
48841
48842         regex: avoid compilation failure with upcoming gcc-4.4
48843         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48844         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48845         "... error: integer overflow in preprocessor expression".
48846
48847 2009-02-05  Ben Pfaff  <blp@gnu.org>
48848
48849         Fix link errors on Windows when close module is used.
48850         * modules/close: Add $(LIB_CLOSE) to Link section.
48851         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48852         $(LIB_CLOSE) on Windows.
48853
48854 2009-02-05  Jim Meyering  <meyering@redhat.com>
48855
48856         still avoid unused-parameter warnings, but do it cleanly
48857         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48858         (get_fs_usage): Cast to void instead.
48859         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48860         (dev_from_mount_options, read_file_system_list): Cast to void.
48861         Prompted by Bruno Haible.
48862
48863 2009-02-04  Jim Meyering  <meyering@redhat.com>
48864
48865         fsusage.c: correct copyright year
48866         * lib/fsusage.c: Reflect year in which the change is pushed into
48867
48868         avoid misc. warnings
48869         * lib/fsusage.c (UNUSED_PARAM): Define.
48870         (get_fs_usage): Mark parameter "disk" as unused.
48871         * lib/getugroups.c (getgrent): Use "void" in prototype.
48872         * lib/mountlist.c: Mark unused parameters.
48873         (read_file_system_list): Declare a local with "const".
48874         * lib/nanosleep.c (getnow): Declare static.
48875         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48876
48877         dirfd: set errno upon failure
48878         * lib/dirfd.c: Include <errno.h>.
48879         Set errno to ENOTSUP when returning -1.
48880         * modules/dirfd (Depends-on): Add errno.
48881         Suggested by John Kodis <kodis@comcast.net>.
48882
48883 2009-02-01  Bruno Haible  <bruno@clisp.org>
48884
48885         Don't assume sizeof (long) >= sizeof (void *).
48886         * lib/memcmp.c: Include stdint.h.
48887         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48888         srcp2 to 'const byte *'.
48889         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48890         types to uintptr_t.
48891         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48892         * modules/memcmp (Depends-on): Add stdint.
48893         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48894
48895 2009-01-30  Eric Blake  <ebb9@byu.net>
48896
48897         fix more require-before-expand issues
48898         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48899         expand, AC_PROG_AWK.
48900         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48901
48902 2009-01-28  Eric Blake  <ebb9@byu.net>
48903
48904         version-etc: use consistent URL formatting
48905         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48906         Improve formatting.  Use fputs for string without %.
48907
48908 2009-01-28  Jim Meyering  <meyering@redhat.com>
48909
48910         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48911         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48912         "underquoted definition of NAME" from autoconf-2.59.
48913
48914 2009-01-28  Bruno Haible  <bruno@clisp.org>
48915
48916         * doc/gnulib.texi: Add "Obsolete modules" to index.
48917
48918 2009-01-28  Jim Meyering  <meyering@redhat.com>
48919
48920         useless-if-before-free: recognize more variants
48921         * build-aux/useless-if-before-free: Also recognize e.g.,
48922         if (NULL != p) free (p);
48923
48924 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48925
48926         test-getaddrinfo: skip (don't fail) this test when there's no network
48927         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48928         on the presumption that it means you lack network access.
48929
48930 2009-01-26  Jim Meyering  <meyering@redhat.com>
48931
48932         fflush: avoid warnings on modern systems
48933         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48934         pos and result, into scopes where they're used.
48935
48936 2009-01-26  Eric Blake  <ebb9@byu.net>
48937
48938         Silence warning reintroduced by recent extensions patch.
48939         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48940         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48941         autoconf.
48942
48943         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48944         * m4/00gnulib.m4: New file.
48945         * gnulib-tool (func_get_filelist): Always use it.
48946         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48947         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48948
48949 2009-01-25  Bruno Haible  <bruno@clisp.org>
48950
48951         Make test-quotearg work on MacOS X and AIX.
48952         * tests/test-quotearg.sh: New file.
48953         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48954         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48955         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48956         include <libintl.h>.
48957         (fake_locale): Remove variable.
48958         (gettext, dgettext, dcgettext): Remove functions.
48959         (main): Instead of setting a fake locale, set a real locale. Call
48960         textdomain and bindtextdomain.
48961         * modules/quotearg-tests (Files): Add the new files.
48962         (Depends-on): Add gettext, setenv, unsetenv.
48963         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48964         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48965         Augment TESTS_ENVIRONMENT.
48966
48967 2009-01-25  Bruno Haible  <bruno@clisp.org>
48968
48969         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48970         fr_FR.ISO8859-1 locale on MacOS X.
48971         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48972         ja_JP.eucJP locale on MacOS X.
48973         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48974         zh_CN.GB18030 locale on MacOS X.
48975
48976 2009-01-25  Bruno Haible  <bruno@clisp.org>
48977
48978         Avoid link errors on MacOS X 10.3.
48979         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48980         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48981
48982 2009-01-25  Bruno Haible  <bruno@clisp.org>
48983
48984         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48985         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48986         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48987         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48988         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48989         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48990         posix_spawnattr_init, posix_spawnattr_setsigmask,
48991         posix_spawnattr_setflags, posix_spawnattr_destroy.
48992
48993         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48994         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48995         * modules/execute (Files): Remove m4/posix_spawn.m4.
48996         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48997         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48998         posix_spawnattr_init, posix_spawnattr_setsigmask,
48999         posix_spawnattr_setflags, posix_spawnattr_destroy.
49000
49001 2009-01-25  Bruno Haible  <bruno@clisp.org>
49002
49003         * lib/glthread/threadlib.c: Include <stdlib.h>.
49004
49005 2009-01-25  Bruno Haible  <bruno@clisp.org>
49006
49007         * lib/glthread/threadlib.c (dummy): New declaration.
49008
49009 2009-01-25  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49012         multibyte characters also for the GB18030 encoding. Don't crash when
49013         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49014
49015 2009-01-25  Bruno Haible  <bruno@clisp.org>
49016
49017         Avoid redefining 'struct random_data' on OSF/1 5.1.
49018         * lib/stdlib.in.h: Include <random.h> if it exists.
49019         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49020         HAVE_RANDOM_H. Include <random.h> when testing whether
49021         'struct random_data' exists.
49022         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49023
49024 2009-01-25  Bruno Haible  <bruno@clisp.org>
49025
49026         Don't install charset.alias on MacOS X >= 10.3.
49027         * lib/localcharset.c (DARWIN7): New macro.
49028         (get_charset_aliases): Hardcode the result for Darwin7.
49029         * modules/localcharset (install-exec-local): Don't install
49030         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49031
49032 2009-01-25  Bruno Haible  <bruno@clisp.org>
49033
49034         Don't install charset.alias on mingw and Cygwin.
49035         * modules/localcharset (install-exec-local): Don't install
49036         charset.alias on mingw and Cygwin, if the file does not yet exist.
49037         The result for these platforms is hardcoded in localcharset.c.
49038
49039 2009-01-25  Bruno Haible  <bruno@clisp.org>
49040
49041         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49043         before requiring AC_USE_SYSTEM_EXTENSIONS.
49044
49045 2009-01-25  Jim Meyering  <meyering@redhat.com>
49046
49047         c-strtod: avoid warnings
49048         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49049         "assignment discards qualifiers from pointer target type" warnings.
49050
49051 2009-01-24  Bruno Haible  <bruno@clisp.org>
49052
49053         Add support for non-UTF-8 locales on MacOS X.
49054         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49055         canonical encodings. For Darwin 7 and newer, don't map traditional
49056         encodings to UTF-8.
49057         Reported by Vincent Lefevre <vincent@vinc17.org>
49058         at <http://savannah.gnu.org/bugs/?25235>.
49059
49060 2009-01-24  Bruno Haible  <bruno@clisp.org>
49061
49062         * doc/gnulib.texi (Obsolete modules): New section.
49063         Reported by Mike Frysinger <vapier@gentoo.org>.
49064
49065 2009-01-24  Bruno Haible  <bruno@clisp.org>
49066
49067         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49068         (%.dvi): New rule.
49069
49070 2009-01-24  Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49073         Reported by Eric Blake.
49074
49075 2009-01-24  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49078         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49079         Reported by Gary V. Vaughan <gary@gnu.org>.
49080
49081 2009-01-24  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49084
49085 2009-01-23  Bruno Haible  <bruno@clisp.org>
49086
49087         Make c-strtod, c-strtold usable in libraries.
49088         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49089         (C_STRTOD): Call strdup instead of xstrdup.
49090         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49091         * modules/c-strtold (Depends-on): Likewise.
49092         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49093         * NEWS: Mention the change.
49094         Reported by Michael Gold <mgold@ncf.ca>.
49095
49096 2009-01-23  Jim Meyering  <meyering@redhat.com>
49097
49098         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49099         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49100         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49101
49102 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49103
49104         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49105         GNU CoreUtils.
49106         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49107         * modules/version-etc (Description): Update.
49108
49109 2009-01-22  Bruno Haible  <bruno@clisp.org>
49110
49111         Cache the C locale object.
49112         * lib/c-strtod.c (c_locale_cache): New variable.
49113         (c_locale): New function.
49114         (C_STRTOD): Use it, and don't call freelocale.
49115         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49116         Suggested by Paolo Bonzini.
49117
49118 2009-01-21  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49121         conditions other than overflow.
49122
49123 2009-01-21  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/c-strtod.c: Include errno.h.
49126         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49127         value from STRTOD_L and STRTOD.
49128
49129 2009-01-21  Bruno Haible  <bruno@clisp.org>
49130         and Jim Meyering  <meyering@redhat.com>
49131
49132         nanosleep: skip configure test (fail it) for apple universal builds
49133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49134         universal builds, assume that nanosleep does not work.
49135         * modules/nanosleep (Depends-on): Add multiarch.
49136
49137         mktime: skip configure test (fail it) for apple universal builds
49138         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49139         universal builds, assume that mktime does not work.
49140         * modules/mktime (Depends-on): Add multiarch.
49141
49142 2009-01-21  Eric Blake  <ebb9@byu.net>
49143
49144         multiarch: avoid expand-before-require warning
49145         * modules/multiarch (configure.ac): Require, rather than expand,
49146         gl_MULTIARCH.
49147         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49148         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49149         enforce that all clients require it.  Partial reversion of
49150         2008-12-29 patch.
49151
49152         error: avoid expand-before-require warning
49153         * modules/errno (configure.ac): Require, rather than expand,
49154         gl_HEADER_ERRNO_H.
49155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49156         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49157         enforce that all clients require it.
49158
49159         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49160         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49161         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49162         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49163
49164 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49165
49166         Revert:
49167         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49168
49169         regex: do not depend on obsolete modules.
49170         * modules/regex: Remove memcmp and memmove.
49171
49172 2009-01-20  Bruno Haible  <bruno@clisp.org>
49173
49174         Make the 'link' module link on Windows NT 4.
49175         * lib/link.c (_WIN32_WINNT): Don't define.
49176         (CreateHardLinkFuncType): New type.
49177         (CreateHardLinkFunc, initialized): New variables.
49178         (initialize): New function.
49179         (link): Invoke CreateHardLink indirectly through the function pointer.
49180
49181 2009-01-20  Bruno Haible  <bruno@clisp.org>
49182
49183         Fix compilation failure on mingw.
49184         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49185
49186 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49187
49188         * doc/c-strtod.texi: Mention a couple of restrictions.
49189
49190 2009-01-20  Jim Meyering  <meyering@redhat.com>
49191
49192         gettimeofday: move more declarations out of functions
49193         * lib/gettimeofday.c: Move extern declarations of tzset and
49194         gmtime out of containing functions.  Prompted by Bruno Haible.
49195
49196 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49197
49198         regex: do not depend on obsolete modules.
49199         * modules/regex: Remove memcmp and memmove.
49200
49201 2009-01-19  Bruno Haible  <bruno@clisp.org>
49202
49203         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49204         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49205         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49206         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49207         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49208
49209 2009-01-19  Bruno Haible  <bruno@clisp.org>
49210
49211         * tests/test-link.c: Include <errno.h>.
49212         (main): Exit with code 77 when a hard link cannot be created due to
49213         the file system.
49214         * tests/test-link.sh: Skip test when a hard link cannot be created due
49215         to the file system.
49216         Suggested by Eric Blake.
49217
49218 2009-01-19  Martin Lambers  <marlam@marlam.de>
49219
49220         * modules/link-tests: New file.
49221         * tests/test-link.sh: New file.
49222         * tests/test-link.c: New file.
49223
49224 2009-01-19  Eric Blake  <ebb9@byu.net>
49225
49226         doc: mention another function added in cygwin 1.7.0
49227         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49228         Another new function in cygwin 1.7.
49229
49230 2009-01-19  Bruno Haible  <bruno@clisp.org>
49231
49232         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49233         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49234         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49235         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49236         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49237         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49238         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49239         * m4/md4.m4 (gl_MD4): Likewise.
49240         * m4/md5.m4 (gl_MD5): Likewise.
49241         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49242         * m4/sha1.m4 (gl_SHA1): Likewise.
49243         * m4/sha256.m4 (gl_SHA256): Likewise.
49244         * m4/sha512.m4 (gl_SHA512): Likewise.
49245
49246 2009-01-19  Bruno Haible  <bruno@clisp.org>
49247
49248         * modules/uniname/uniname-tests (Depends-on): Add progname.
49249         * tests/uniname/test-uninames.c: Include progname.h.
49250         (main): Call set_program_name.
49251
49252         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49253         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49254         (main): Call set_program_name.
49255
49256         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49257         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49258         (main): Call set_program_name.
49259
49260         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49261         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49262         (main): Call set_program_name.
49263
49264         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49265         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49266         (main): Call set_program_name.
49267
49268         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49269         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49270         (main): Call set_program_name.
49271
49272         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49273         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49274         (main): Call set_program_name.
49275
49276         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49277         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49278         (main): Call set_program_name.
49279
49280         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49281         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49282         (main): Call set_program_name.
49283
49284 2009-01-19  Eric Blake  <ebb9@byu.net>
49285
49286         test-unistd: test previous patch
49287         * tests/test-unistd.c: Test *_FILENO macros.
49288
49289         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49290         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49291         Guarantee a definition.
49292         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49293         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49294         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49295         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49296         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49297         Likewise.
49298         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49299         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49300         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49301         Likewise.
49302         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49303         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49304         (STDERR_FILENO): Likewise.
49305         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49306         (STDERR_FILENO): Likewise.
49307         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49308         (STDERR_FILENO): Likewise.
49309         Reported by Elbert Pol.
49310
49311 2009-01-19  Eric Blake  <ebb9@byu.net>
49312
49313         doc: mention more functions added in cygwin 1.7.0
49314         * doc/posix-functions/abort.texi (abort): Update wording related
49315         to cygwin.
49316         * doc/posix-functions/daylight.texi (daylight): Likewise.
49317         * doc/posix-functions/optarg.texi (optarg): Likewise.
49318         * doc/posix-functions/optarg.texi (opterr): Likewise.
49319         * doc/posix-functions/optarg.texi (optind): Likewise.
49320         * doc/posix-functions/optarg.texi (optopt): Likewise.
49321         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49322         worked in 1.5.x, and was withdrawn in 1.7.
49323         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49324         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49325         cygwin versions.
49326         * doc/posix-functions/perror.texi (perror): Likewise.
49327         * doc/posix-functions/printf.texi (printf): Likewise.
49328         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49329         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49330         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49331         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49332         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49333         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49334         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49335         Likewise.
49336         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49337         Likewise.
49338         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49339         this function.
49340         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49341         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49342         Likewise.
49343         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49344         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49345         * doc/posix-functions/confstr.texi (confstr): Likewise.
49346         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49347         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49348         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49349         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49350         * doc/posix-functions/fputws.texi (fputws): Likewise.
49351         * doc/posix-functions/fwide.texi (fwide): Likewise.
49352         * doc/posix-functions/getwc.texi (getwc): Likewise.
49353         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49354         * doc/posix-functions/putwc.texi (putwc): Likewise.
49355         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49356         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49357         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49358         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49359         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49360         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49361         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49362         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49363         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49364         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49365         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49366
49367 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49368
49369         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49370         * lib/ioctl.c: Include <sys/ioctl.h>.
49371
49372 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49373
49374         * modules/getdate-tests (Depends-on): Add progname.
49375         * tests/test-getdate.c: Use progname module, to avoid link errors
49376         on non-glibc systems.
49377
49378 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49379
49380         * modules/filenamecat-tests (Depends-on): Add progname.
49381         * modules/fstrcmp-tests (Depends-on): Likewise.
49382
49383         * tests/test-filenamecat.c: Use progname module, to avoid link
49384         errors on non-glibc systems.
49385         * tests/test-fstrcmp.c: Likewise.
49386
49387 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49388
49389         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49390         * lib/gettimeofday.c: Move extern declaration out of function.
49391
49392 2009-01-18  Bruno Haible  <bruno@clisp.org>
49393
49394         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49395         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49396         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49397
49398 2009-01-18  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/strftime.c (MEMPCPY): Remove unused macro.
49401         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49402
49403 2009-01-18  Martin Lambers  <marlam@marlam.de>
49404
49405         New module 'link'.
49406         * lib/unistd.in.h (link): New declaration.
49407         * lib/link.c: New file.
49408         * m4/link.m4: New file.
49409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49410         HAVE_LINK.
49411         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49412         * modules/link: New file.
49413         * doc/posix-functions/link.texi: Mention the new module.
49414
49415 2009-01-18  Bruno Haible  <bruno@clisp.org>
49416
49417         * tests/test-avltree_list.c (main): Call set_program_name.
49418         * tests/test-avltree_oset.c (main): Likewise.
49419         * tests/test-obstack-printf.c: Include progname.h.
49420         (main): Call set_program_name.
49421         * tests/test-quotearg.c: Include progname.h.
49422         (main): Call set_program_name.
49423         * tests/test-xmemdup0.c: Include progname.h.
49424         (main): Call set_program_name.
49425
49426 2009-01-18  Bruno Haible  <bruno@clisp.org>
49427
49428         New module 'alphasort'.
49429         * lib/dirent.in.h (alphasort): New declaration.
49430         * lib/alphasort.c: New file, from glibc with modifications.
49431         * m4/alphasort.m4: New file.
49432         * modules/alphasort: New file.
49433         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49434         HAVE_ALPHASORT.
49435         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49436         HAVE_ALPHASORT.
49437         * doc/posix-functions/alphasort.texi: Mention the new module and the
49438         portability problems.
49439
49440 2009-01-18  Bruno Haible  <bruno@clisp.org>
49441
49442         New module 'scandir'.
49443         * lib/dirent.in.h (scandir): New declaration.
49444         * lib/scandir.c: New file, from glibc with modifications.
49445         * m4/scandir.m4: New file.
49446         * modules/scandir: New file.
49447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49448         HAVE_SCANDIR.
49449         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49450         HAVE_SCANDIR.
49451         * doc/posix-functions/scandir.texi: Mention the new module and the
49452         portability problems.
49453
49454 2009-01-17  Bruno Haible  <bruno@clisp.org>
49455
49456         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49457         Update documentation.
49458         (func_remove_suffix): Escape all dots in the suffix. Update
49459         documentation.
49460         (func_filter_filelist): Update documentation.
49461         Reported by Ralf Wildenhues.
49462
49463 2009-01-17  Bruno Haible  <bruno@clisp.org>
49464
49465         * modules/dprintf-posix-tests: New file.
49466         * tests/test-dprintf-posix.sh: New file.
49467         * tests/test-dprintf-posix.c: New file.
49468
49469         New modules 'dprintf', 'dprintf-posix'.
49470         * lib/stdio.in.h (dprintf): New declaration.
49471         * lib/dprintf.c: New file.
49472         * m4/dprintf.m4: New file.
49473         * m4/dprintf-posix.m4: New file.
49474         * modules/dprintf: New file.
49475         * modules/dprintf-posix: New file.
49476         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49477         HAVE_DPRINTF, REPLACE_DPRINTF.
49478         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49479         HAVE_DPRINTF, REPLACE_DPRINTF.
49480         * doc/posix-functions/dprintf.texi: Mention the new modules.
49481
49482 2009-01-17  Bruno Haible  <bruno@clisp.org>
49483
49484         * modules/vdprintf-posix-tests: New file.
49485         * tests/test-vdprintf-posix.sh: New file.
49486         * tests/test-vdprintf-posix.c: New file.
49487
49488         New modules 'vdprintf', 'vdprintf-posix'.
49489         * lib/stdio.in.h (vdprintf): New declaration.
49490         * lib/vdprintf.c: New file.
49491         * m4/vdprintf.m4: New file.
49492         * m4/vdprintf-posix.m4: New file.
49493         * modules/vdprintf: New file.
49494         * modules/vdprintf-posix: New file.
49495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49496         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49497         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49498         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49499         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49500
49501 2009-01-17  Bruno Haible  <bruno@clisp.org>
49502
49503         Fix replacement of fopen on mingw.
49504         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49505         mingw.
49506
49507 2009-01-17  Bruno Haible  <bruno@clisp.org>
49508
49509         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49510         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49511
49512 2009-01-17  Bruno Haible  <bruno@clisp.org>
49513
49514         Avoid test-fflush2.sh failure on mingw.
49515         * tests/test-fflush2.c: Include binary-io.h.
49516         (main): Put standard input into binary mode.
49517         * modules/fflush-tests (Depends-on): Add binary-io.
49518
49519 2009-01-17  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/wchar.in.h: In another particular situation, include only the
49522         system's <wchar.h> file.
49523         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49524         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49525         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49526
49527 2009-01-17  Bruno Haible  <bruno@clisp.org>
49528
49529         Support for stripping executables in --enable-relocatable.
49530         * build-aux/install-reloc: Expect one more argument, or an environment
49531         variable RELOC_STRIP_PROG. If set, strip the destination program and
49532         its wrapper.
49533         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49534         RELOC_STRIP_PROG.
49535         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49536         to set RELOCATABLE_STRIP.
49537         * NEWS: Mention the new Makefile requirement.
49538
49539 2009-01-17  Bruno Haible  <bruno@clisp.org>
49540
49541         * build-aux/install-reloc: Remove debugging information left over by
49542         C compiler on MacOS X.
49543
49544 2009-01-17  Bruno Haible  <bruno@clisp.org>
49545
49546         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49547         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49548         _NSGetExecutablePath.
49549
49550 2009-01-16  Jim Meyering  <meyering@redhat.com>
49551
49552         strerror: avoid warnings about discarding "const"
49553         * lib/strerror.c (rpl_strerror): Instead of returning a const
49554         string from each and every "case", use a variable, and add a single
49555         cast after the switch.
49556
49557 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49558
49559         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49560
49561 2009-01-16  Bruno Haible  <bruno@clisp.org>
49562
49563         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49564         array initializer syntax that also works in C++ mode.
49565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49566
49567 2009-01-16  Jim Meyering  <meyering@redhat.com>
49568
49569         poll: suppress a warning
49570         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49571         to ignore "...unsigned expression < 0 is always false" warnings.
49572
49573 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49574
49575         poll: remove declarations of unused variables
49576         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49577         sockbuf and optlen.
49578
49579 2009-01-15  Bruno Haible  <bruno@clisp.org>
49580
49581         Make fflush-after-ungetc POSIX compliant on BSD systems.
49582         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49583         (clear_ungetc_buffer): Implement also for other systems.
49584         (rpl_fflush): On glibc systems, invoke
49585         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49586         clear_ungetc_buffer after fetching the stream's position, not before.
49587
49588 2009-01-15  Bruno Haible  <bruno@clisp.org>
49589
49590         Make fflush-after-ungetc POSIX compliant on glibc systems.
49591         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49592         after ungetc.
49593         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49594         (rpl_fflush): On glibc systems, simply call the system's fflush
49595         function after clearing the ungetc buffer.
49596         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49597         Instead, lseek only to the end of file, then use the system's fseeko
49598         for the rest. On glibc systems, reset the EOF indicator bit.
49599
49600 2009-01-15  Jim Meyering  <meyering@redhat.com>
49601
49602         openmp.m4: revert quote-adding change, for portability to older autoconf
49603         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49604         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49605         Simon Josefsson noticed the problem when using autoconf-2.61.
49606
49607 2009-01-15  Bruno Haible  <bruno@clisp.org>
49608
49609         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49610         * tests/test-fflush2.c (ASSERT): Always fail.
49611         (main): Add two tests for fflush() after ungetc(), taking into account
49612         the Austin Group's clarification.
49613         Suggested by Eric Blake.
49614
49615 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49616
49617         mktime.m4: remove K&R-style function prototypes
49618         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49619         for the Sun C++ compiler.
49620
49621 2009-01-14  Bruno Haible  <bruno@clisp.org>
49622
49623         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49624         while including <wchar.h>.
49625         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49626         the system's <wchar.h> file.
49627         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49628
49629 2009-01-14  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/csharp.m4: Don't mention gettext on the serial number line.
49632         * m4/csharpexec.m4: Likewise.
49633         * m4/eaccess.m4: Likewise.
49634         * m4/javaexec.m4: Likewise.
49635         * m4/sig_atomic_t.m4: Likewise.
49636         * m4/tmpdir.m4: Likewise.
49637         * m4/intldir.m4: Bump gettext version.
49638         * m4/lib-ld.m4: Likewise.
49639
49640 2009-01-14  Bruno Haible  <bruno@clisp.org>
49641
49642         * lib/progname.c (set_program_name): Add more comments.
49643         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49644
49645 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49646
49647         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49648         were sys/stat.h does not define it.
49649
49650 2009-01-14  Jim Meyering  <meyering@redhat.com>
49651
49652         many *.m4 files: improve m4 quoting
49653         99% of this change was performed by running the following commands:
49654         git ls-files | grep '\.m4$' | xargs perl -pi \
49655           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49656           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49657           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49658           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49659         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49660         The remainder were to add Copyright dates, increment serial numbers,
49661         undo some changes in comments, exclude m4/intl.m4, and add quotes
49662         around the "1" in ",1" where the unusual spacing prohibited the
49663         above regexps from doing the job.  For more details, see
49664         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49665         * m4/acl.m4: Modified.
49666         * m4/afs.m4: Likewise.
49667         * m4/alloca.m4: Likewise.
49668         * m4/argp.m4: Likewise.
49669         * m4/argz.m4: Likewise.
49670         * m4/atexit.m4: Likewise.
49671         * m4/bison-i18n.m4: Likewise.
49672         * m4/bison.m4: Likewise.
49673         * m4/byteswap.m4: Likewise.
49674         * m4/c-stack.m4: Likewise.
49675         * m4/c-strtod.m4: Likewise.
49676         * m4/calloc.m4: Likewise.
49677         * m4/canonicalize-lgpl.m4: Likewise.
49678         * m4/chown.m4: Likewise.
49679         * m4/clock_time.m4: Likewise.
49680         * m4/codeset.m4: Likewise.
49681         * m4/copy-file.m4: Likewise.
49682         * m4/csharp.m4: Likewise.
49683         * m4/csharpcomp.m4: Likewise.
49684         * m4/csharpexec.m4: Likewise.
49685         * m4/d-ino.m4: Likewise.
49686         * m4/d-type.m4: Likewise.
49687         * m4/dirfd.m4: Likewise.
49688         * m4/double-slash-root.m4: Likewise.
49689         * m4/eaccess.m4: Likewise.
49690         * m4/eealloc.m4: Likewise.
49691         * m4/environ.m4: Likewise.
49692         * m4/errno_h.m4: Likewise.
49693         * m4/euidaccess.m4: Likewise.
49694         * m4/execute.m4: Likewise.
49695         * m4/fatal-signal.m4: Likewise.
49696         * m4/fchdir.m4: Likewise.
49697         * m4/fcntl_h.m4: Likewise.
49698         * m4/fileblocks.m4: Likewise.
49699         * m4/filenamecat.m4: Likewise.
49700         * m4/findprog.m4: Likewise.
49701         * m4/flexmember.m4: Likewise.
49702         * m4/fnmatch.m4: Likewise.
49703         * m4/fopen.m4: Likewise.
49704         * m4/fpending.m4: Likewise.
49705         * m4/fprintf-posix.m4: Likewise.
49706         * m4/free.m4: Likewise.
49707         * m4/frexp.m4: Likewise.
49708         * m4/frexpl.m4: Likewise.
49709         * m4/fsusage.m4: Likewise.
49710         * m4/ftruncate.m4: Likewise.
49711         * m4/gc-camellia.m4: Likewise.
49712         * m4/gc-random.m4: Likewise.
49713         * m4/gc.m4: Likewise.
49714         * m4/getaddrinfo.m4: Likewise.
49715         * m4/getcwd-abort-bug.m4: Likewise.
49716         * m4/getcwd-path-max.m4: Likewise.
49717         * m4/getdate.m4: Likewise.
49718         * m4/getdomainname.m4: Likewise.
49719         * m4/getgroups.m4: Likewise.
49720         * m4/gethostname.m4: Likewise.
49721         * m4/gethrxtime.m4: Likewise.
49722         * m4/getline.m4: Likewise.
49723         * m4/getloadavg.m4: Likewise.
49724         * m4/getndelim2.m4: Likewise.
49725         * m4/getpass.m4: Likewise.
49726         * m4/gettext.m4: Likewise.
49727         * m4/gettime.m4: Likewise.
49728         * m4/gettimeofday.m4: Likewise.
49729         * m4/gnulib-common.m4: Likewise.
49730         * m4/group-member.m4: Likewise.
49731         * m4/host-os.m4: Likewise.
49732         * m4/iconv.m4: Likewise.
49733         * m4/iconv_open.m4: Likewise.
49734         * m4/inet_ntop.m4: Likewise.
49735         * m4/inet_pton.m4: Likewise.
49736         * m4/inline.m4: Likewise.
49737         * m4/intldir.m4: Likewise.
49738         * m4/intlmacosx.m4: Likewise.
49739         * m4/intmax.m4: Likewise.
49740         * m4/intmax_t.m4: Likewise.
49741         * m4/inttypes.m4: Likewise.
49742         * m4/inttypes_h.m4: Likewise.
49743         * m4/inttypes-pri.m4: Likewise.
49744         * m4/isapipe.m4: Likewise.
49745         * m4/isnand.m4: Likewise.
49746         * m4/isnanf.m4: Likewise.
49747         * m4/isnanl.m4: Likewise.
49748         * m4/javacomp.m4: Likewise.
49749         * m4/javaexec.m4: Likewise.
49750         * m4/jm-winsz1.m4: Likewise.
49751         * m4/jm-winsz2.m4: Likewise.
49752         * m4/lchown.m4: Likewise.
49753         * m4/lcmessage.m4: Likewise.
49754         * m4/ldexpl.m4: Likewise.
49755         * m4/lib-ld.m4: Likewise.
49756         * m4/lib-link.m4: Likewise.
49757         * m4/libsigsegv.m4: Likewise.
49758         * m4/link-follow.m4: Likewise.
49759         * m4/localcharset.m4: Likewise.
49760         * m4/locale-fr.m4: Likewise.
49761         * m4/locale-ja.m4: Likewise.
49762         * m4/locale-tr.m4: Likewise.
49763         * m4/locale-zh.m4: Likewise.
49764         * m4/lock.m4: Likewise.
49765         * m4/longlong.m4: Likewise.
49766         * m4/ls-mntd-fs.m4: Likewise.
49767         * m4/lstat.m4: Likewise.
49768         * m4/malloc.m4: Likewise.
49769         * m4/mathl.m4: Likewise.
49770         * m4/mbrtowc.m4: Likewise.
49771         * m4/mbstate_t.m4: Likewise.
49772         * m4/mbswidth.m4: Likewise.
49773         * m4/memchr.m4: Likewise.
49774         * m4/memcmp.m4: Likewise.
49775         * m4/memcpy.m4: Likewise.
49776         * m4/memmem.m4: Likewise.
49777         * m4/memmove.m4: Likewise.
49778         * m4/mempcpy.m4: Likewise.
49779         * m4/memrchr.m4: Likewise.
49780         * m4/memset.m4: Likewise.
49781         * m4/minmax.m4: Likewise.
49782         * m4/mkdir-slash.m4: Likewise.
49783         * m4/mkdtemp.m4: Likewise.
49784         * m4/mktime.m4: Likewise.
49785         * m4/mmap-anon.m4: Likewise.
49786         * m4/mountlist.m4: Likewise.
49787         * m4/nanosleep.m4: Likewise.
49788         * m4/nls.m4: Likewise.
49789         * m4/nocrash.m4: Likewise.
49790         * m4/open.m4: Likewise.
49791         * m4/openat.m4: Likewise.
49792         * m4/openmp.m4: Likewise.
49793         * m4/pathmax.m4: Likewise.
49794         * m4/perl.m4: Likewise.
49795         * m4/physmem.m4: Likewise.
49796         * m4/pipe.m4: Likewise.
49797         * m4/po.m4: Likewise.
49798         * m4/poll.m4: Likewise.
49799         * m4/posixtm.m4: Likewise.
49800         * m4/posixver.m4: Likewise.
49801         * m4/printf-frexp.m4: Likewise.
49802         * m4/printf-frexpl.m4: Likewise.
49803         * m4/printf-posix.m4: Likewise.
49804         * m4/printf-posix-rpl.m4: Likewise.
49805         * m4/printf.m4: Likewise.
49806         * m4/progtest.m4: Likewise.
49807         * m4/putenv.m4: Likewise.
49808         * m4/readline.m4: Likewise.
49809         * m4/readlink.m4: Likewise.
49810         * m4/readutmp.m4: Likewise.
49811         * m4/realloc.m4: Likewise.
49812         * m4/regex.m4: Likewise.
49813         * m4/relocatable.m4: Likewise.
49814         * m4/relocatable-lib.m4: Likewise.
49815         * m4/rename-dest-slash.m4: Likewise.
49816         * m4/rename.m4: Likewise.
49817         * m4/rmdir-errno.m4: Likewise.
49818         * m4/rmdir.m4: Likewise.
49819         * m4/roundf.m4: Likewise.
49820         * m4/roundl.m4: Likewise.
49821         * m4/rpmatch.m4: Likewise.
49822         * m4/save-cwd.m4: Likewise.
49823         * m4/selinux-selinux-h.m4: Likewise.
49824         * m4/setenv.m4: Likewise.
49825         * m4/settime.m4: Likewise.
49826         * m4/sig2str.m4: Likewise.
49827         * m4/sig_atomic_t.m4: Likewise.
49828         * m4/signalblocking.m4: Likewise.
49829         * m4/signbit.m4: Likewise.
49830         * m4/sigpipe.m4: Likewise.
49831         * m4/sockets.m4: Likewise.
49832         * m4/sockpfaf.m4: Likewise.
49833         * m4/st_dm_mode.m4: Likewise.
49834         * m4/stat-time.m4: Likewise.
49835         * m4/stdbool.m4: Likewise.
49836         * m4/stdint.m4: Likewise.
49837         * m4/stdint_h.m4: Likewise.
49838         * m4/stpcpy.m4: Likewise.
49839         * m4/stpncpy.m4: Likewise.
49840         * m4/strcase.m4: Likewise.
49841         * m4/strchrnul.m4: Likewise.
49842         * m4/strcspn.m4: Likewise.
49843         * m4/strdup.m4: Likewise.
49844         * m4/strftime.m4: Likewise.
49845         * m4/strndup.m4: Likewise.
49846         * m4/strnlen.m4: Likewise.
49847         * m4/strpbrk.m4: Likewise.
49848         * m4/strptime.m4: Likewise.
49849         * m4/strsep.m4: Likewise.
49850         * m4/strtod.m4: Likewise.
49851         * m4/strtoimax.m4: Likewise.
49852         * m4/strtok_r.m4: Likewise.
49853         * m4/strtol.m4: Likewise.
49854         * m4/strtoll.m4: Likewise.
49855         * m4/strtoul.m4: Likewise.
49856         * m4/strtoull.m4: Likewise.
49857         * m4/strtoumax.m4: Likewise.
49858         * m4/strverscmp.m4: Likewise.
49859         * m4/threadlib.m4: Likewise.
49860         * m4/timegm.m4: Likewise.
49861         * m4/tm_gmtoff.m4: Likewise.
49862         * m4/tmpdir.m4: Likewise.
49863         * m4/tmpfile.m4: Likewise.
49864         * m4/tzset.m4: Likewise.
49865         * m4/uintmax_t.m4: Likewise.
49866         * m4/unlinkdir.m4: Likewise.
49867         * m4/unlocked-io.m4: Likewise.
49868         * m4/uptime.m4: Likewise.
49869         * m4/userspec.m4: Likewise.
49870         * m4/utimbuf.m4: Likewise.
49871         * m4/utime.m4: Likewise.
49872         * m4/utimes-null.m4: Likewise.
49873         * m4/utimes.m4: Likewise.
49874         * m4/vararrays.m4: Likewise.
49875         * m4/vasnprintf.m4: Likewise.
49876         * m4/vfprintf-posix.m4: Likewise.
49877         * m4/vprintf-posix.m4: Likewise.
49878         * m4/wait-process.m4: Likewise.
49879         * m4/wchar_t.m4: Likewise.
49880         * m4/wint_t.m4: Likewise.
49881         * m4/write-any-file.m4: Likewise.
49882         * m4/yield.m4: Likewise.
49883
49884 2009-01-13  Bruno Haible  <bruno@clisp.org>
49885
49886         Avoid test-copy-file.sh failures when ACL support insufficient.
49887         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49888         TESTS_ENVIRONMENT.
49889         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49890         Reported by Jim Meyering.
49891
49892 2009-01-13  Bruno Haible  <bruno@clisp.org>
49893
49894         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49895         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49896         * modules/unistdio/u8-printf-parse (Files): Likewise.
49897         * modules/unistdio/u32-printf-parse (Files): Likewise.
49898         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49899
49900 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49901
49902         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49903         and m4/inttypes_h.m4 too.
49904
49905 2009-01-12  Eric Blake  <ebb9@byu.net>
49906
49907         tests: IRIX 6.2 cc can't compile -0.0 into .data
49908         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49909         rather than at compile-time.
49910         * tests/test-floorl.c (minus_zero): Likewise.
49911         * tests/test-frexpl.c (minus_zero): Likewise.
49912         * tests/test-isnan.c (minus_zerol): Likewise.
49913         * tests/test-isnanl.h (minus_zero): Likewise.
49914         * tests/test-ldexpl.c (minus_zero): Likewise.
49915         * tests/test-roundl.c (minus_zero): Likewise.
49916         * tests/test-signbit.c (minus_zerol): Likewise.
49917         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49918         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49919         * tests/test-truncl.c (minus_zero): Likewise.
49920         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49921         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49922         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49923
49924 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49925
49926         regex: fix glibc bug 9697
49927         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49928         handling.
49929
49930 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49931
49932         regex: fix glibc bug 697
49933         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49934         being NULL also if there are no backreferences.
49935
49936 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49937
49938         regex: merge glibc changes
49939         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49940         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49941         re_string_skip_chars, re_string_reconstruct): Likewise.
49942         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49943
49944 2009-01-07  Jim Meyering  <meyering@redhat.com>
49945
49946         poll: filter through cppi
49947         * lib/poll.c: Indent cpp directives to reflect nesting.
49948
49949 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49950
49951         poll: don't return uninitialized
49952         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49953
49954 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49955
49956         avoid compile failure on AIX 6.1
49957         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49958         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49959
49960 2009-01-04  Jim Meyering  <meyering@redhat.com>
49961
49962         remove duplicate inclusion of <stdio.h>
49963         * tests/test-fprintf-posix.c: Likewise.
49964         * tests/test-printf-posix.c: Likewise.
49965         * tests/test-snprintf-posix.c: Likewise.
49966         * tests/test-sprintf-posix.c: Likewise.
49967         * tests/test-vasprintf-posix.c: Likewise.
49968         * tests/test-vfprintf-posix.c: Likewise.
49969         * tests/test-vprintf-posix.c: Likewise.
49970         * tests/test-vsnprintf-posix.c: Likewise.
49971         * tests/test-vsprintf-posix.c: Likewise.
49972
49973 2009-01-03  Jim Meyering  <meyering@redhat.com>
49974
49975         gnulib-tool: fix sed-based filtering
49976         * gnulib-tool (func_filter_filelist): Remove extra backslash
49977         in sed_fff_filter definition.
49978
49979 2009-01-02  Jim Meyering  <meyering@redhat.com>
49980
49981         strftime: avoid compilation failure on Solaris 2.6
49982         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49983         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49984         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49985         be available.  Reported by Tom G. Christensen.  Details in
49986         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49987
49988 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49989             Bruno Haible  <bruno@clisp.org>
49990
49991         Speed up gnulib-tool by doing more string processing through shell
49992         built-ins.
49993         * gnulib-tool (fast_func_append): New variable.
49994         (func_remove_prefix, func_remove_suffix): New functions.
49995         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49996         (func_filter_filelist): New function.
49997         (func_get_dependencies): Use func_remove_suffix instead of sed.
49998         (func_get_automake_snippet): Use func_filter_filelist instead of a
49999         subshell and sed invocation.
50000
50001 2009-01-01  Bruno Haible  <bruno@clisp.org>
50002
50003         Fix a security bug.
50004         * gnulib-tool (func_import, import, update): Don't allow the characters
50005         '"', '$', '`', '\' in macro arguments that become part of commands that
50006         are evaluated.
50007
50008 2009-01-01  Bruno Haible  <bruno@clisp.org>
50009
50010         * gnulib-tool (func_reset_sigpipe): Add more comments.
50011
50012 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50013
50014         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50015         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50016         already know the answer.
50017
50018 2009-01-01  Jim Meyering  <meyering@redhat.com>
50019
50020         * lib/version-etc.c (version_etc_va): Update copyright year.
50021
50022 2008-12-30  Bruno Haible  <bruno@clisp.org>
50023
50024         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50025         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50026         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50027
50028 2008-12-29  Eric Blake  <ebb9@byu.net>
50029
50030         multiarch: avoid autoconf AC_REQUIRE bug
50031         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50032         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50033         2.63 and older.
50034         Reported by Bruno Haible, and analyzed in
50035         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50036
50037 2008-12-29  Bruno Haible  <bruno@clisp.org>
50038
50039         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50040         files in subdirectories correctly.
50041         Reported by Ralf Wildenhues.
50042
50043 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50044
50045         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50046         rather than 'join FILE -', for Solaris join.
50047
50048 2008-12-29  Bruno Haible  <bruno@clisp.org>
50049
50050         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50051         quoting.
50052         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50053         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50054         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50055         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50056         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50057         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50058         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50059         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50060         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50061         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50062         * m4/nls.m4 (AM_NLS): Likewise.
50063         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50064         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50065         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50066         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50067         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50068         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50069         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50070         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50071         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50072         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50073         * m4/xsize.m4 (gl_XSIZE): Likewise.
50074         Suggested by Jim Meyering.
50075
50076 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50077
50078         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50079         * lib/parse-duration.c: use a switch instead of cascading if's.
50080
50081 2008-12-29  Eric Blake  <ebb9@byu.net>
50082
50083         wchar.h: supply WEOF on Irix 5.3
50084         * lib/wchar.in.h (wint_t): Also supply WEOF.
50085         * lib/wctype.in.h (wint_t): Likewise.
50086         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50087         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50088         Reported by Tom G. Christensen.
50089
50090 2008-12-26  Bruno Haible  <bruno@clisp.org>
50091
50092         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50093         i486, i586, i686.
50094
50095 2008-12-26  Bruno Haible  <bruno@clisp.org>
50096
50097         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50098
50099 2008-12-26  Bruno Haible  <bruno@clisp.org>
50100
50101         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50102         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50103         not __STDC_CONSTANT_MACROS.
50104         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50105
50106 2008-12-25  Bruno Haible  <bruno@clisp.org>
50107
50108         Add support for universal builds to vasnprintf.
50109         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50110         universal builds, guess no.
50111         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50112         * modules/vasprintf-posix (Depends-on): Likewise.
50113         * modules/fprintf-posix (Depends-on): Likewise.
50114         * modules/vfprintf-posix (Depends-on): Likewise.
50115         * modules/snprintf-posix (Depends-on): Likewise.
50116         * modules/vsnprintf-posix (Depends-on): Likewise.
50117         * modules/sprintf-posix (Depends-on): Likewise.
50118         * modules/vsprintf-posix (Depends-on): Likewise.
50119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50120         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50122         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50123         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50124         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50125         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50126
50127         Add support for universal builds to <inttypes.h>.
50128         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50129         _SCNu64_PREFIX): In Apple
50130         universal builds, define directly, using _LP64.
50131         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50132         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50133         * modules/inttypes (Depends-on): Add multiarch.
50134         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50135
50136         Add support for universal builds to <stdint.h>.
50137         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50138         universal builds, define directly, using _LP64.
50139         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50140         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50141         and size_t.
50142         * modules/stdint (Depends-on): Add multiarch.
50143         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50144
50145         New module 'multiarch'.
50146         * modules/multiarch: New file.
50147         * m4/multiarch.m4: New file.
50148
50149 2008-12-25  Bruno Haible  <bruno@clisp.org>
50150
50151         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50152
50153 2008-12-25  Bruno Haible  <bruno@clisp.org>
50154
50155         * modules/btowc (License): Relicense under LGPLv2+.
50156         * modules/mbsinit (License): Likewise.
50157         * modules/mbrtowc (License): Likewise.
50158         * modules/wcrtomb (License): Likewise.
50159         * modules/streq (License): Likewise.
50160         Reported by David Lutterkort <lutter@redhat.com>.
50161
50162 2008-12-23  Bruno Haible  <bruno@clisp.org>
50163
50164         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50165
50166 2008-12-23  Bruno Haible  <bruno@clisp.org>
50167
50168         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50170         GETADDRINFO_LIB, not in LIBS.
50171         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50172         * modules/canon-host (Link): Likewise.
50173         * NEWS: Mention the change.
50174         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50175         GETADDRINFO_LIB.
50176
50177 2008-12-22  Bruno Haible  <bruno@clisp.org>
50178
50179         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50180         * doc/posix-functions/iswalpha_l.texi: Likewise.
50181         * doc/posix-functions/iswblank_l.texi: Likewise.
50182         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50183         * doc/posix-functions/iswctype_l.texi: Likewise.
50184         * doc/posix-functions/iswdigit_l.texi: Likewise.
50185         * doc/posix-functions/iswgraph_l.texi: Likewise.
50186         * doc/posix-functions/iswlower_l.texi: Likewise.
50187         * doc/posix-functions/iswprint_l.texi: Likewise.
50188         * doc/posix-functions/iswpunct_l.texi: Likewise.
50189         * doc/posix-functions/iswspace_l.texi: Likewise.
50190         * doc/posix-functions/iswupper_l.texi: Likewise.
50191         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50192         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50193         * doc/posix-functions/open_wmemstream.texi: Likewise.
50194         * doc/posix-functions/swscanf.texi: Likewise.
50195         * doc/posix-functions/towctrans_l.texi: Likewise.
50196         * doc/posix-functions/towlower.texi: Likewise.
50197         * doc/posix-functions/towlower_l.texi: Likewise.
50198         * doc/posix-functions/towupper.texi: Likewise.
50199         * doc/posix-functions/towupper_l.texi: Likewise.
50200         * doc/posix-functions/vfwprintf.texi: Likewise.
50201         * doc/posix-functions/vfwscanf.texi: Likewise.
50202         * doc/posix-functions/vswscanf.texi: Likewise.
50203         * doc/posix-functions/vwprintf.texi: Likewise.
50204         * doc/posix-functions/vwscanf.texi: Likewise.
50205         * doc/posix-functions/wcpcpy.texi: Likewise.
50206         * doc/posix-functions/wcpncpy.texi: Likewise.
50207         * doc/posix-functions/wcscasecmp.texi: Likewise.
50208         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50209         * doc/posix-functions/wcscoll_l.texi: Likewise.
50210         * doc/posix-functions/wcsdup.texi: Likewise.
50211         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50212         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50213         * doc/posix-functions/wcsnlen.texi: Likewise.
50214         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50215         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50216         * doc/posix-functions/wctrans_l.texi: Likewise.
50217         * doc/posix-functions/wctype_l.texi: Likewise.
50218         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50219         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50220         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50221         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50222         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50223         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50224         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50225         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50226         * doc/glibc-functions/wcschrnul.texi: Likewise.
50227         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50228         * doc/glibc-functions/wcstod_l.texi: Likewise.
50229         * doc/glibc-functions/wcstof_l.texi: Likewise.
50230         * doc/glibc-functions/wcstol_l.texi: Likewise.
50231         * doc/glibc-functions/wcstold_l.texi: Likewise.
50232         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50233         * doc/glibc-functions/wcstoq.texi: Likewise.
50234         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50235         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50236         * doc/glibc-functions/wcstouq.texi: Likewise.
50237         * doc/glibc-functions/wmempcpy.texi: Likewise.
50238
50239 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50240             Eric Blake  <ebb9@byu.net>
50241             Paolo Bonzini  <bonzini@gnu.org>
50242             Bruno Haible  <bruno@clisp.org>
50243
50244         Make c-stack work on Haiku.
50245         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50246         (c_stack_action): Use SA_ONSTACK flag.
50247
50248 2008-12-22  Bruno Haible  <bruno@clisp.org>
50249
50250         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50251
50252 2008-12-22  Bruno Haible  <bruno@clisp.org>
50253
50254         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50255         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50256         being overridden.
50257         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50258         New macros.
50259         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50261         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50262         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50263
50264 2008-12-22  Bruno Haible  <bruno@clisp.org>
50265
50266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50267         from test code.
50268
50269 2008-12-22  Eric Blake  <ebb9@byu.net>
50270
50271         Avoid gcc warnings on cygwin.
50272         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50273         Avoid unused variable.
50274         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50275         Likewise.
50276
50277 2008-12-22  Bruno Haible  <bruno@clisp.org>
50278
50279         Remove HAVE_MBRTOWC conditionals.
50280         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50281         (mbscasecmp): Assume mbrtowc function.
50282         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50283         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50284         * lib/mbschr.c: Include mbuiter.h unconditionally.
50285         (mbschr): Assume mbrtowc function.
50286         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50287         (mbscspn): Assume mbrtowc function.
50288         * lib/mbslen.c: Include mbuiter.h unconditionally.
50289         (mbslen): Assume mbrtowc function.
50290         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50291         (mbsncasecmp): Assume mbrtowc function.
50292         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50293         (mbsnlen): Assume mbrtowc function.
50294         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50295         (mbspbrk): Assume mbrtowc function.
50296         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50297         (mbspcasecmp): Assume mbrtowc function.
50298         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50299         (mbsrchr): Assume mbrtowc function.
50300         * lib/mbssep.c: Include mbuiter.h unconditionally.
50301         (mbssep): Assume mbrtowc function.
50302         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50303         (mbsspn): Assume mbrtowc function.
50304         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50305         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50306         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50307         (mbstok_r): Assume mbrtowc function.
50308         * lib/propername.c: Include mbuiter.h unconditionally.
50309         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50310         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50311         (trim2): Assume mbrtowc function.
50312         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50313         (mbsnwidth): Assume mbrtowc function.
50314         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50315         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50316         fallback definitions.
50317         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50318
50319 2008-12-22  Bruno Haible  <bruno@clisp.org>
50320
50321         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50322
50323 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50324
50325         * modules/regex: Request emulations for the mb*/wc* functions we need.
50326         * m4/regex.m4: Don't look for those functions here.
50327         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50328
50329 2008-12-22  Bruno Haible  <bruno@clisp.org>
50330
50331         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50332
50333 2008-12-21  Bruno Haible  <bruno@clisp.org>
50334
50335         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50336         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50337         (Include): Remove conditionalization.
50338         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50339         (Include): Remove conditionalization.
50340         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50341         (Include): Remove conditionalization.
50342         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50343         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50344         * NEWS: Mention the change.
50345         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50346         via Sergey Poznyakoff <gray@gnu.org.ua>.
50347
50348 2008-12-21  Bruno Haible  <bruno@clisp.org>
50349
50350         * MODULES.html.sh (Extended multibyte and wide character utilities
50351         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50352         wcrtomb, wcsrtombs.
50353         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50354         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50355         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50356         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50357
50358 2008-12-21  Bruno Haible  <bruno@clisp.org>
50359
50360         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50361
50362 2008-12-21  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/wcsnrtombs-tests: New file.
50365         * tests/test-wcsnrtombs1.sh: New file.
50366         * tests/test-wcsnrtombs2.sh: New file.
50367         * tests/test-wcsnrtombs3.sh: New file.
50368         * tests/test-wcsnrtombs4.sh: New file.
50369         * tests/test-wcsnrtombs.c: New file.
50370
50371         New module 'wcsnrtombs'.
50372         * lib/wchar.in.h (wcsnrtombs): New declaration.
50373         * lib/wcsnrtombs.c: New file.
50374         * lib/wcsrtombs-state.c: New file.
50375         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50376         (internal_state): Remove variable.
50377         * m4/wcsnrtombs.m4: New file.
50378         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50379         compilation units.
50380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50381         HAVE_WCSNRTOMBS.
50382         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50383         HAVE_WCSNRTOMBS.
50384         * modules/wcsnrtombs: New file.
50385         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50386         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50387
50388 2008-12-21  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/wcsrtombs-tests: New file.
50391         * tests/test-wcsrtombs1.sh: New file.
50392         * tests/test-wcsrtombs2.sh: New file.
50393         * tests/test-wcsrtombs3.sh: New file.
50394         * tests/test-wcsrtombs4.sh: New file.
50395         * tests/test-wcsrtombs.c: New file.
50396
50397         New module 'wcsrtombs'.
50398         * lib/wchar.in.h (wcsrtombs): New declaration.
50399         * lib/wcsrtombs.c: New file.
50400         * m4/wcsrtombs.m4: New file.
50401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50402         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50404         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50405         * modules/wcsrtombs: New file.
50406         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50407         bugs.
50408
50409 2008-12-21  Bruno Haible  <bruno@clisp.org>
50410
50411         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50412         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50413         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50414         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50415         if not correct.
50416         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50417         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50418         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50419         m4/locale-zh.m4, m4/codeset.m4.
50420         * doc/posix-functions/wcrtomb.texi: Document the bug.
50421
50422 2008-12-21  Bruno Haible  <bruno@clisp.org>
50423
50424         Work around a btowc() bug on IRIX 6.5.
50425         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50426         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50427         REPLACE_WTOBC if not.
50428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50429         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50430         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50431
50432 2008-12-21  Bruno Haible  <bruno@clisp.org>
50433
50434         * modules/wcrtomb-tests: New file.
50435         * tests/test-wcrtomb.sh: New file.
50436         * tests/test-wcrtomb.c: New file.
50437
50438         New module 'wcrtomb'.
50439         * lib/wchar.in.h (wcrtomb): New declaration.
50440         * lib/wcrtomb.c: New file.
50441         * m4/wcrtomb.m4: New file.
50442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50443         HAVE_WCRTOMB.
50444         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50445         HAVE_WCRTOMB.
50446         * modules/wcrtomb: New file.
50447         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50448
50449 2008-12-21  Bruno Haible  <bruno@clisp.org>
50450
50451         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50452         * modules/mbsrtowcs (Files): Likewise.
50453         * modules/wctob (Files): Likewise.
50454         * modules/c-strcase-tests (Files): Likewise.
50455         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50456         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50457         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50458         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50459         * modules/vasnprintf-posix-tests (Files): Likewise.
50460
50461 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50462
50463         gitlog-to-changelog: pass all command-line arguments to git-log
50464         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50465         it is sometimes convenient to filter the commits in various ways.
50466         gitlog-to-changelog only allows --since to specify a start date,
50467         but git-log itself supports many other filtering mechanisms.
50468         At the moment, I want to filter by branch name.  Rather than
50469         adding a --branch option to gitlog-to-changelog, it seems more
50470         flexible to simply pass all options directly to git-log and let
50471         git do the work.  Notice that this effectively makes --since a
50472         redundant option for gitlog-to-changelog, but removing it would
50473         require current usage to change since calls would then require
50474         an additional '--'.
50475
50476 2008-12-21  Bruno Haible  <bruno@clisp.org>
50477
50478         * modules/mbsnrtowcs-tests: New file.
50479         * tests/test-mbsnrtowcs1.sh: New file.
50480         * tests/test-mbsnrtowcs2.sh: New file.
50481         * tests/test-mbsnrtowcs3.sh: New file.
50482         * tests/test-mbsnrtowcs4.sh: New file.
50483         * tests/test-mbsnrtowcs.c: New file.
50484
50485         New module 'mbsnrtowcs'.
50486         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50487         * lib/mbsnrtowcs.c: New file.
50488         * lib/mbsrtowcs-state.c: New file.
50489         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50490         (internal_state): Remove variable.
50491         * m4/mbsnrtowcs.m4: New file.
50492         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50493         compilation units.
50494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50495         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50496         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50497         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50498         * modules/mbsnrtowcs: New file.
50499         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50500         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50501         portability problem.
50502
50503 2008-12-21  Bruno Haible  <bruno@clisp.org>
50504
50505         Work around mbsrtowcs bug.
50506         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50507         (gl_FUNC_MBSRTOWCS): Invoke it.
50508         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50509         m4/locale-zh.m4.
50510         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50511
50512 2008-12-21  Bruno Haible  <bruno@clisp.org>
50513
50514         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50515
50516 2008-12-21  Bruno Haible  <bruno@clisp.org>
50517
50518         Update doc for AIX.
50519         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50520         16-bit wchar_t type.
50521         * doc/posix-functions/btowc.texi: Likewise.
50522         * doc/posix-functions/fgetwc.texi: Likewise.
50523         * doc/posix-functions/fgetws.texi: Likewise.
50524         * doc/posix-functions/fputwc.texi: Likewise.
50525         * doc/posix-functions/fputws.texi: Likewise.
50526         * doc/posix-functions/fwide.texi: Likewise.
50527         * doc/posix-functions/fwprintf.texi: Likewise.
50528         * doc/posix-functions/fwscanf.texi: Likewise.
50529         * doc/posix-functions/getwchar.texi: Likewise.
50530         * doc/posix-functions/getwc.texi: Likewise.
50531         * doc/posix-functions/iswalnum.texi: Likewise.
50532         * doc/posix-functions/iswalpha.texi: Likewise.
50533         * doc/posix-functions/iswblank.texi: Likewise.
50534         * doc/posix-functions/iswcntrl.texi: Likewise.
50535         * doc/posix-functions/iswctype.texi: Likewise.
50536         * doc/posix-functions/iswdigit.texi: Likewise.
50537         * doc/posix-functions/iswgraph.texi: Likewise.
50538         * doc/posix-functions/iswlower.texi: Likewise.
50539         * doc/posix-functions/iswprint.texi: Likewise.
50540         * doc/posix-functions/iswpunct.texi: Likewise.
50541         * doc/posix-functions/iswspace.texi: Likewise.
50542         * doc/posix-functions/iswupper.texi: Likewise.
50543         * doc/posix-functions/iswxdigit.texi: Likewise.
50544         * doc/posix-functions/mbrtowc.texi: Likewise.
50545         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50546         * doc/posix-functions/mbstowcs.texi: Likewise.
50547         * doc/posix-functions/mbtowc.texi: Likewise.
50548         * doc/posix-functions/putwchar.texi: Likewise.
50549         * doc/posix-functions/putwc.texi: Likewise.
50550         * doc/posix-functions/swprintf.texi: Likewise.
50551         * doc/posix-functions/tolower.texi: Likewise.
50552         * doc/posix-functions/toupper.texi: Likewise.
50553         * doc/posix-functions/towctrans.texi: Likewise.
50554         * doc/posix-functions/ungetwc.texi: Likewise.
50555         * doc/posix-functions/vswprintf.texi: Likewise.
50556         * doc/posix-functions/wcrtomb.texi: Likewise.
50557         * doc/posix-functions/wcscat.texi: Likewise.
50558         * doc/posix-functions/wcschr.texi: Likewise.
50559         * doc/posix-functions/wcscmp.texi: Likewise.
50560         * doc/posix-functions/wcscoll.texi: Likewise.
50561         * doc/posix-functions/wcscpy.texi: Likewise.
50562         * doc/posix-functions/wcscspn.texi: Likewise.
50563         * doc/posix-functions/wcsftime.texi: Likewise.
50564         * doc/posix-functions/wcslen.texi: Likewise.
50565         * doc/posix-functions/wcsncat.texi: Likewise.
50566         * doc/posix-functions/wcsncmp.texi: Likewise.
50567         * doc/posix-functions/wcsncpy.texi: Likewise.
50568         * doc/posix-functions/wcspbrk.texi: Likewise.
50569         * doc/posix-functions/wcsrchr.texi: Likewise.
50570         * doc/posix-functions/wcsrtombs.texi: Likewise.
50571         * doc/posix-functions/wcsspn.texi: Likewise.
50572         * doc/posix-functions/wcsstr.texi: Likewise.
50573         * doc/posix-functions/wcstod.texi: Likewise.
50574         * doc/posix-functions/wcstof.texi: Likewise.
50575         * doc/posix-functions/wcstoimax.texi: Likewise.
50576         * doc/posix-functions/wcstok.texi: Likewise.
50577         * doc/posix-functions/wcstold.texi: Likewise.
50578         * doc/posix-functions/wcstoll.texi: Likewise.
50579         * doc/posix-functions/wcstol.texi: Likewise.
50580         * doc/posix-functions/wcstombs.texi: Likewise.
50581         * doc/posix-functions/wcstoull.texi: Likewise.
50582         * doc/posix-functions/wcstoul.texi: Likewise.
50583         * doc/posix-functions/wcstoumax.texi: Likewise.
50584         * doc/posix-functions/wcswidth.texi: Likewise.
50585         * doc/posix-functions/wcsxfrm.texi: Likewise.
50586         * doc/posix-functions/wctob.texi: Likewise.
50587         * doc/posix-functions/wctomb.texi: Likewise.
50588         * doc/posix-functions/wctrans.texi: Likewise.
50589         * doc/posix-functions/wctype.texi: Likewise.
50590         * doc/posix-functions/wcwidth.texi: Likewise.
50591         * doc/posix-functions/wmemchr.texi: Likewise.
50592         * doc/posix-functions/wmemcmp.texi: Likewise.
50593         * doc/posix-functions/wmemcpy.texi: Likewise.
50594         * doc/posix-functions/wmemmove.texi: Likewise.
50595         * doc/posix-functions/wmemset.texi: Likewise.
50596         * doc/posix-functions/wprintf.texi: Likewise.
50597         * doc/posix-functions/wscanf.texi: Likewise.
50598
50599 2008-12-21  Bruno Haible  <bruno@clisp.org>
50600
50601         Update doc for HP-UX 11.11.
50602         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50603         in HP-UX version 11.00, not in all versions of HP-UX 11.
50604         * doc/posix-functions/fwide.texi: Likewise.
50605         * doc/posix-functions/fwprintf.texi: Likewise.
50606         * doc/posix-functions/fwscanf.texi: Likewise.
50607         * doc/posix-functions/inet_ntop.texi: Likewise.
50608         * doc/posix-functions/inet_pton.texi: Likewise.
50609         * doc/posix-functions/mbrlen.texi: Likewise.
50610         * doc/posix-functions/mbrtowc.texi: Likewise.
50611         * doc/posix-functions/mbsinit.texi: Likewise.
50612         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50613         * doc/posix-functions/swprintf.texi: Likewise.
50614         * doc/posix-functions/swscanf.texi: Likewise.
50615         * doc/posix-functions/towctrans.texi: Likewise.
50616         * doc/posix-functions/vfwprintf.texi: Likewise.
50617         * doc/posix-functions/vswprintf.texi: Likewise.
50618         * doc/posix-functions/vwprintf.texi: Likewise.
50619         * doc/posix-functions/wcrtomb.texi: Likewise.
50620         * doc/posix-functions/wcsrtombs.texi: Likewise.
50621         * doc/posix-functions/wcsstr.texi: Likewise.
50622         * doc/posix-functions/wctob.texi: Likewise.
50623         * doc/posix-functions/wctrans.texi: Likewise.
50624         * doc/posix-functions/wmemchr.texi: Likewise.
50625         * doc/posix-functions/wmemcmp.texi: Likewise.
50626         * doc/posix-functions/wmemcpy.texi: Likewise.
50627         * doc/posix-functions/wmemmove.texi: Likewise.
50628         * doc/posix-functions/wmemset.texi: Likewise.
50629         * doc/posix-functions/wprintf.texi: Likewise.
50630         * doc/posix-functions/wscanf.texi: Likewise.
50631
50632 2008-12-21  Bruno Haible  <bruno@clisp.org>
50633
50634         Work around a portability problem.
50635         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50636         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50637
50638 2008-12-20  Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50641         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50642         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50643         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50644         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50645
50646         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50647         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50648         set.
50649         (GNULIB_defined_mbstate_t): New macro.
50650         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50651         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50652         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50653         reuses the system's mbrtowc function but works around the bugs.
50654         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50655         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50656         macros.
50657         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50658         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50659         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50660         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50661         REPLACE_MBSINIT if mbsinit needs to be overridden.
50662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50663         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50664         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50665         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50666         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50667         m4/locale-zh.m4.
50668         (Depends): Add mbsinit.
50669         * modules/mbsinit (Depends): Add mbrtowc.
50670         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50671
50672 2008-12-20  Bruno Haible  <bruno@clisp.org>
50673
50674         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50675         so that there are no conversion errors on AIX.
50676         * tests/test-mbsrtowcs.c (main): LIkewise.
50677
50678 2008-12-20  Bruno Haible  <bruno@clisp.org>
50679
50680         Work around wctob bug on Solaris <= 9.
50681         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50682         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50684         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50685         * modules/wctob (Files): Add m4/locale-fr.m4.
50686         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50687
50688 2008-12-20  Bruno Haible  <bruno@clisp.org>
50689
50690         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50691         /dev/null.
50692         * tests/test-select-in.sh: Likewise.
50693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50694
50695 2008-12-20  Bruno Haible  <bruno@clisp.org>
50696
50697         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50698         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50699         Cygwin 1.5.x.
50700
50701 2008-12-20  Bruno Haible  <bruno@clisp.org>
50702
50703         Ensure mbstate_t is defined on HP-UX 11.11.
50704         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50705         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50706         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50707         AC_USE_SYSTEM_EXTENSIONS.
50708         * modules/fnmatch (Depends-on): Add extensions.
50709         * modules/mbrlen (Depends-on): Likewise.
50710         * modules/mbrtowc (Depends-on): Likewise.
50711         * modules/mbsinit (Depends-on): Likewise.
50712         * modules/mbsrtowcs (Depends-on): Likewise.
50713         * modules/mbswidth (Depends-on): Likewise.
50714         * modules/quotearg (Depends-on): Likewise.
50715         * modules/strftime (Depends-on): Likewise.
50716
50717 2008-12-20  Bruno Haible  <bruno@clisp.org>
50718
50719         Ensure wctob is declared on IRIX 6.5.
50720         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50721         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50722         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50723         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50724         of HAVE_WCTOB.
50725         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50726         HAVE_WCTOB.
50727         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50728
50729 2008-12-19  Bruno Haible  <bruno@clisp.org>
50730
50731         * modules/mbsrtowcs-tests: New file.
50732         * tests/test-mbsrtowcs1.sh: New file.
50733         * tests/test-mbsrtowcs2.sh: New file.
50734         * tests/test-mbsrtowcs3.sh: New file.
50735         * tests/test-mbsrtowcs4.sh: New file.
50736         * tests/test-mbsrtowcs.c: New file.
50737
50738         New module 'mbsrtowcs'.
50739         * lib/wchar.in.h (mbsrtowcs): New declaration.
50740         * lib/mbsrtowcs.c: New file.
50741         * m4/mbsrtowcs.m4: New file.
50742         * modules/mbsrtowcs: New file.
50743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50744         HAVE_MBSRTOWCS.
50745         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50746         HAVE_MBSRTOWCS.
50747         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50748
50749 2008-12-19  Bruno Haible  <bruno@clisp.org>
50750
50751         New module 'mbrlen'.
50752         * lib/wchar.in.h (mbrlen): New declaration.
50753         * lib/mbrlen.c: New file.
50754         * m4/mbrlen.m4: New file.
50755         * modules/mbrlen: New file.
50756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50757         HAVE_MBRLEN.
50758         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50759         HAVE_MBRLEN.
50760         * doc/posix-functions/mbrlen.texi: Document the new module.
50761
50762 2008-12-19  Bruno Haible  <bruno@clisp.org>
50763
50764         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50765         * modules/mbrtowc (Depends-on): Add verify.
50766         Suggested by Paul Eggert.
50767
50768 2008-12-18  Bruno Haible  <bruno@clisp.org>
50769
50770         * modules/mbsinit-tests: New file.
50771         * tests/test-mbsinit.sh: New file.
50772         * tests/test-mbsinit.c: New file.
50773
50774 2008-12-18  Bruno Haible  <bruno@clisp.org>
50775
50776         * modules/mbrtowc-tests: New file.
50777         * tests/test-mbrtowc1.sh: New file.
50778         * tests/test-mbrtowc2.sh: New file.
50779         * tests/test-mbrtowc3.sh: New file.
50780         * tests/test-mbrtowc4.sh: New file.
50781         * tests/test-mbrtowc.c: New file.
50782
50783         New module 'mbrtowc'.
50784         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50785         mbsinit and mbrtowc.
50786         (mbrtowc): New declaration.
50787         * lib/mbrtowc.c: New file.
50788         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50789         * modules/mbrtowc: New file.
50790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50791         HAVE_MBRTOWC.
50792         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50793         HAVE_MBRTOWC.
50794         * doc/posix-functions/mbrtowc.texi: Document the new module.
50795
50796 2008-12-18  Bruno Haible  <bruno@clisp.org>
50797
50798         New module 'wctob'.
50799         * lib/wchar.in.h (wctob): New declaration.
50800         * lib/wctob.c: New file.
50801         * m4/wctob.m4: New file.
50802         * modules/wctob: New file.
50803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50804         HAVE_WCTOB.
50805         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50806         * doc/posix-functions/wctob.texi: Document the new module.
50807
50808 2008-12-18  Bruno Haible  <bruno@clisp.org>
50809
50810         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50811         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50812
50813 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50814
50815         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50816         G. Christensen" <tgc@jupiterrise.com>.
50817
50818         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50819         G. Christensen" <tgc@jupiterrise.com>.
50820
50821         * lib/flock.c: Need to include string.h.  Reported by "Tom
50822         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50823         <ebb9@byu.net>.
50824
50825 2008-12-18  Bruno Haible  <bruno@clisp.org>
50826
50827         * m4/locale-ja.m4: New file, from GNU gettext.
50828
50829 2008-12-17  Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50832         Suggested by Eric Blake.
50833
50834 2008-12-17  Bruno Haible  <bruno@clisp.org>
50835
50836         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50837
50838 2008-12-17  Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50841         * modules/mbsinit (Depends-on): Add verify.
50842         Suggested by Paul Eggert.
50843
50844 2008-12-17  Bruno Haible  <bruno@clisp.org>
50845
50846         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50847         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50848         gl_FUNC_MBRTOWC.
50849         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50850         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50851         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50852         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50853         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50854         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50855         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50856         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50857         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50858         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50859         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50860         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50861         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50862         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50863         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50864         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50865         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50866         * modules/trim (configure.ac): Likewise.
50867
50868 2008-12-17  Bruno Haible  <bruno@clisp.org>
50869
50870         * modules/btowc-tests: New file.
50871         * tests/test-btowc1.sh: New file.
50872         * tests/test-btowc2.sh: New file.
50873         * tests/test-btowc.c: New file.
50874
50875         New module 'btowc'.
50876         * lib/wchar.in.h (btowc): New declaration.
50877         * lib/btowc.c: New file.
50878         * m4/btowc.m4: New file.
50879         * modules/btowc: New file.
50880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50881         HAVE_BTOWC.
50882         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50883         * doc/posix-functions/btowc.texi: Document the new module.
50884
50885 2008-12-17  Bruno Haible  <bruno@clisp.org>
50886
50887         New module 'mbsinit'.
50888         * lib/wchar.in.h (mbsinit): New declaration.
50889         * lib/mbsinit.c: New file.
50890         * m4/mbsinit.m4: New file.
50891         * modules/mbsinit: New file.
50892         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50893         HAVE_MBSINIT.
50894         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50895         HAVE_MBSINIT.
50896         * doc/posix-functions/mbsinit.texi: Document the new module.
50897
50898 2008-12-16  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/unistd.in.h: Add comment.
50901         * tests/test-environ.c: Don't include <stdlib.h>.
50902
50903 2008-12-16  Bruno Haible  <bruno@clisp.org>
50904
50905         * lib/parse-duration.h (parse_duration): Document return value
50906         convention.
50907         * lib/parse-duration.c: Include specification header first. Add
50908         comments.
50909         (_): Remove macro.
50910         (parse_year_month_day, parse_hour_minute_second): Move side effects
50911         outside of strchr call.
50912         (parse_non_iso8601): Move side effects outside of isspace call.
50913         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50914         call.
50915
50916 2008-12-16  Bruno Haible  <bruno@clisp.org>
50917
50918         * tests/test-parse-duration.sh: Produce no output when the test
50919         succeeds.
50920
50921 2008-12-16  Bruno Haible  <bruno@clisp.org>
50922
50923         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50924         expressions.
50925
50926 2008-12-15  Bruno Haible  <bruno@clisp.org>
50927
50928         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50929         * doc/glibc-functions/flistxattr.texi: Likewise.
50930         * doc/glibc-functions/fopencookie.texi: Likewise.
50931         * doc/glibc-functions/fremovexattr.texi: Likewise.
50932         * doc/glibc-functions/fsetxattr.texi: Likewise.
50933         * doc/glibc-functions/getxattr.texi: Likewise.
50934         * doc/glibc-functions/lgetxattr.texi: Likewise.
50935         * doc/glibc-functions/listxattr.texi: Likewise.
50936         * doc/glibc-functions/llistxattr.texi: Likewise.
50937         * doc/glibc-functions/lremovexattr.texi: Likewise.
50938         * doc/glibc-functions/lsetxattr.texi: Likewise.
50939         * doc/glibc-functions/removexattr.texi: Likewise.
50940         * doc/glibc-functions/setxattr.texi: Likewise.
50941         * doc/posix-functions/open_memstream.texi: Likewise.
50942
50943 2008-12-15  Eric Blake  <ebb9@byu.net>
50944
50945         Update doc for cygwin 1.7.
50946         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50947         functions.
50948         * doc/posix-functions/fchmodat.texi: Likewise.
50949         * doc/posix-functions/fchownat.texi: Likewise.
50950         * doc/posix-functions/fdopendir.texi: Likewise.
50951         * doc/posix-functions/fmemopen.texi: Likewise.
50952         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50953         * doc/posix-functions/fstatat.texi: Likewise.
50954         * doc/posix-functions/futimens.texi: Likewise.
50955         * doc/posix-functions/gai_strerror.texi: Likewise.
50956         * doc/posix-functions/getaddrinfo.texi: Likewise.
50957         * doc/posix-functions/getnameinfo.texi: Likewise.
50958         * doc/posix-functions/if_freenameindex.texi: Likewise.
50959         * doc/posix-functions/if_indextoname.texi: Likewise.
50960         * doc/posix-functions/if_nameindex.texi: Likewise.
50961         * doc/posix-functions/if_nametoindex.texi: Likewise.
50962         * doc/posix-functions/insque.texi: Likewise.
50963         * doc/posix-functions/linkat.texi: Likewise.
50964         * doc/posix-functions/llrint.texi: Likewise.
50965         * doc/posix-functions/llrintf.texi: Likewise.
50966         * doc/posix-functions/llrintl.texi: Likewise.
50967         * doc/posix-functions/lockf.texi: Likewise.
50968         * doc/posix-functions/lrintl.texi: Likewise.
50969         * doc/posix-functions/mkdirat.texi: Likewise.
50970         * doc/posix-functions/mkfifoat.texi: Likewise.
50971         * doc/posix-functions/mknodat.texi: Likewise.
50972         * doc/posix-functions/mq_close.texi: Likewise.
50973         * doc/posix-functions/mq_getattr.texi: Likewise.
50974         * doc/posix-functions/mq_notify.texi: Likewise.
50975         * doc/posix-functions/mq_open.texi: Likewise.
50976         * doc/posix-functions/mq_receive.texi: Likewise.
50977         * doc/posix-functions/mq_send.texi: Likewise.
50978         * doc/posix-functions/mq_setattr.texi: Likewise.
50979         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50980         * doc/posix-functions/mq_timedsend.texi: Likewise.
50981         * doc/posix-functions/mq_unlink.texi: Likewise.
50982         * doc/posix-functions/open_memstream.texi: Likewise.
50983         * doc/posix-functions/openat.texi: Likewise.
50984         * doc/posix-functions/posix_fadvise.texi: Likewise.
50985         * doc/posix-functions/posix_fallocate.texi: Likewise.
50986         * doc/posix-functions/posix_madvise.texi: Likewise.
50987         * doc/posix-functions/posix_memalign.texi: Likewise.
50988         * doc/posix-functions/posix_openpt.texi: Likewise.
50989         * doc/posix-functions/readlinkat.texi: Likewise.
50990         * doc/posix-functions/remque.texi: Likewise.
50991         * doc/posix-functions/renameat.texi: Likewise.
50992         * doc/posix-functions/rintl.texi: Likewise.
50993         * doc/posix-functions/sem_unlink.texi: Likewise.
50994         * doc/posix-functions/shm_open.texi: Likewise.
50995         * doc/posix-functions/shm_unlink.texi: Likewise.
50996         * doc/posix-functions/signgam.texi: Likewise.
50997         * doc/posix-functions/sigset.texi: Likewise.
50998         * doc/posix-functions/stpcpy.texi: Likewise.
50999         * doc/posix-functions/stpncpy.texi: Likewise.
51000         * doc/posix-functions/strerror.texi: Likewise.
51001         * doc/posix-functions/strtod.texi: Likewise.
51002         * doc/posix-functions/symlinkat.texi: Likewise.
51003         * doc/posix-functions/unlinkat.texi: Likewise.
51004         * doc/posix-functions/utimensat.texi: Likewise.
51005         * doc/glibc-functions/bindresvport.texi: Likewise.
51006         * doc/glibc-functions/dn_expand.texi: Likewise.
51007         * doc/glibc-functions/exp10.texi: Likewise.
51008         * doc/glibc-functions/exp10f.texi: Likewise.
51009         * doc/glibc-functions/fgetxattr.texi: Likewise.
51010         * doc/glibc-functions/flistxattr.texi: Likewise.
51011         * doc/glibc-functions/fopencookie.texi: Likewise.
51012         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51013         * doc/glibc-functions/fremovexattr.texi: Likewise.
51014         * doc/glibc-functions/fsetxattr.texi: Likewise.
51015         * doc/glibc-functions/getifaddrs.texi: Likewise.
51016         * doc/glibc-functions/getxattr.texi: Likewise.
51017         * doc/glibc-functions/lgetxattr.texi: Likewise.
51018         * doc/glibc-functions/listxattr.texi: Likewise.
51019         * doc/glibc-functions/llistxattr.texi: Likewise.
51020         * doc/glibc-functions/lremovexattr.texi: Likewise.
51021         * doc/glibc-functions/lsetxattr.texi: Likewise.
51022         * doc/glibc-functions/pow10.texi: Likewise.
51023         * doc/glibc-functions/pow10f.texi: Likewise.
51024         * doc/glibc-functions/rcmd_af.texi: Likewise.
51025         * doc/glibc-functions/removexattr.texi: Likewise.
51026         * doc/glibc-functions/res_init.texi: Likewise.
51027         * doc/glibc-functions/res_mkquery.texi: Likewise.
51028         * doc/glibc-functions/res_query.texi: Likewise.
51029         * doc/glibc-functions/res_querydomain.texi: Likewise.
51030         * doc/glibc-functions/res_send.texi: Likewise.
51031         * doc/glibc-functions/rresvport_af.texi: Likewise.
51032         * doc/glibc-functions/setxattr.texi: Likewise.
51033         * doc/glibc-functions/strcasestr.texi: Likewise.
51034
51035 2008-12-15  Bruno Haible  <bruno@clisp.org>
51036
51037         Fix compilation error on OSF/1 4.0.
51038         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51039         <sys/time.h>, simply delegate to the system header.
51040         Reported by Daniel Richard G. <oss@teragram.com>.
51041
51042 2008-12-15  Bruno Haible  <bruno@clisp.org>
51043
51044         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51045         * doc/posix-functions/fchmodat.texi: Likewise.
51046         * doc/posix-functions/fchownat.texi: Likewise.
51047         * doc/posix-functions/fdopendir.texi: Likewise.
51048         * doc/posix-functions/fstatat.texi: Likewise.
51049         * doc/posix-functions/mkdirat.texi: Likewise.
51050         * doc/posix-functions/unlinkat.texi: Likewise.
51051
51052 2008-12-14  Bruno Haible  <bruno@clisp.org>
51053
51054         Update doc for POSIX:2008.
51055         * doc/posix-functions/faccessat.texi: New file.
51056         * doc/posix-functions/fchmodat.texi: New file.
51057         * doc/posix-functions/fchownat.texi: New file.
51058         * doc/posix-functions/fdopendir.texi: New file.
51059         * doc/posix-functions/fstatat.texi: New file.
51060         * doc/posix-functions/futimens.texi: New file.
51061         * doc/posix-functions/linkat.texi: New file.
51062         * doc/posix-functions/mkdirat.texi: New file.
51063         * doc/posix-functions/mkfifoat.texi: New file.
51064         * doc/posix-functions/mknodat.texi: New file.
51065         * doc/posix-functions/open_wmemstream.texi: New file.
51066         * doc/posix-functions/openat.texi: New file.
51067         * doc/posix-functions/psiginfo.texi: New file.
51068         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51069         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51070         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51071         * doc/posix-functions/readlinkat.texi: New file.
51072         * doc/posix-functions/renameat.texi: New file.
51073         * doc/posix-functions/strerror_l.texi: New file.
51074         * doc/posix-functions/symlinkat.texi: New file.
51075         * doc/posix-functions/unlinkat.texi: New file.
51076         * doc/posix-functions/utimensat.texi: New file.
51077         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51078
51079 2008-12-14  Bruno Haible  <bruno@clisp.org>
51080
51081         Update doc for POSIX:2008.
51082         * doc/posix-functions/alphasort.texi: Renamed from
51083         doc/glibc-functions/alphasort.texi.
51084         * doc/posix-functions/dirfd.texi: Renamed from
51085         doc/glibc-functions/dirfd.texi.
51086         * doc/posix-functions/dprintf.texi: Renamed from
51087         doc/glibc-functions/dprintf.texi.
51088         * doc/posix-functions/duplocale.texi: Renamed from
51089         doc/glibc-functions/duplocale.texi.
51090         * doc/posix-functions/fexecve.texi: Renamed from
51091         doc/glibc-functions/fexecve.texi.
51092         * doc/posix-functions/fmemopen.texi: Renamed from
51093         doc/glibc-functions/fmemopen.texi.
51094         * doc/posix-functions/freelocale.texi: Renamed from
51095         doc/glibc-functions/freelocale.texi.
51096         * doc/posix-functions/getdate_err.texi: Renamed from
51097         doc/glibc-functions/getdate_err.texi.
51098         * doc/posix-functions/isalnum_l.texi: Renamed from
51099         doc/glibc-functions/isalnum_l.texi.
51100         * doc/posix-functions/isalpha_l.texi: Renamed from
51101         doc/glibc-functions/isalpha_l.texi.
51102         * doc/posix-functions/isblank_l.texi: Renamed from
51103         doc/glibc-functions/isblank_l.texi.
51104         * doc/posix-functions/iscntrl_l.texi: Renamed from
51105         doc/glibc-functions/iscntrl_l.texi.
51106         * doc/posix-functions/isdigit_l.texi: Renamed from
51107         doc/glibc-functions/isdigit_l.texi.
51108         * doc/posix-functions/isgraph_l.texi: Renamed from
51109         doc/glibc-functions/isgraph_l.texi.
51110         * doc/posix-functions/islower_l.texi: Renamed from
51111         doc/glibc-functions/islower_l.texi.
51112         * doc/posix-functions/isprint_l.texi: Renamed from
51113         doc/glibc-functions/isprint_l.texi.
51114         * doc/posix-functions/ispunct_l.texi: Renamed from
51115         doc/glibc-functions/ispunct_l.texi.
51116         * doc/posix-functions/isspace_l.texi: Renamed from
51117         doc/glibc-functions/isspace_l.texi.
51118         * doc/posix-functions/isupper_l.texi: Renamed from
51119         doc/glibc-functions/isupper_l.texi.
51120         * doc/posix-functions/iswalnum_l.texi: Renamed from
51121         doc/glibc-functions/iswalnum_l.texi.
51122         * doc/posix-functions/iswalpha_l.texi: Renamed from
51123         doc/glibc-functions/iswalpha_l.texi.
51124         * doc/posix-functions/iswblank_l.texi: Renamed from
51125         doc/glibc-functions/iswblank_l.texi.
51126         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51127         doc/glibc-functions/iswcntrl_l.texi.
51128         * doc/posix-functions/iswctype_l.texi: Renamed from
51129         doc/glibc-functions/iswctype_l.texi.
51130         * doc/posix-functions/iswdigit_l.texi: Renamed from
51131         doc/glibc-functions/iswdigit_l.texi.
51132         * doc/posix-functions/iswgraph_l.texi: Renamed from
51133         doc/glibc-functions/iswgraph_l.texi.
51134         * doc/posix-functions/iswlower_l.texi: Renamed from
51135         doc/glibc-functions/iswlower_l.texi.
51136         * doc/posix-functions/iswprint_l.texi: Renamed from
51137         doc/glibc-functions/iswprint_l.texi.
51138         * doc/posix-functions/iswpunct_l.texi: Renamed from
51139         doc/glibc-functions/iswpunct_l.texi.
51140         * doc/posix-functions/iswspace_l.texi: Renamed from
51141         doc/glibc-functions/iswspace_l.texi.
51142         * doc/posix-functions/iswupper_l.texi: Renamed from
51143         doc/glibc-functions/iswupper_l.texi.
51144         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51145         doc/glibc-functions/iswxdigit_l.texi.
51146         * doc/posix-functions/isxdigit_l.texi: Renamed from
51147         doc/glibc-functions/isxdigit_l.texi.
51148         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51149         doc/glibc-functions/mbsnrtowcs.texi.
51150         * doc/posix-functions/mkdtemp.texi: Renamed from
51151         doc/glibc-functions/mkdtemp.texi.
51152         * doc/posix-functions/newlocale.texi: Renamed from
51153         doc/glibc-functions/newlocale.texi.
51154         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51155         doc/glibc-functions/nl_langinfo_l.texi.
51156         * doc/posix-functions/open_memstream.texi: Renamed from
51157         doc/glibc-functions/open_memstream.texi.
51158         * doc/posix-functions/opterr.texi: Renamed from
51159         doc/glibc-functions/opterr.texi.
51160         * doc/posix-functions/optind.texi: Renamed from
51161         doc/glibc-functions/optind.texi.
51162         * doc/posix-functions/optopt.texi: Renamed from
51163         doc/glibc-functions/optopt.texi.
51164         * doc/posix-functions/psignal.texi: Renamed from
51165         doc/glibc-functions/psignal.texi.
51166         * doc/posix-functions/scandir.texi: Renamed from
51167         doc/glibc-functions/scandir.texi.
51168         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51169         doc/glibc-functions/sched_get_priority_min.texi.
51170         * doc/posix-functions/signgam.texi: Renamed from
51171         doc/glibc-functions/signgam.texi.
51172         * doc/posix-functions/stpcpy.texi: Renamed from
51173         doc/glibc-functions/stpcpy.texi.
51174         * doc/posix-functions/stpncpy.texi: Renamed from
51175         doc/glibc-functions/stpncpy.texi.
51176         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51177         doc/glibc-functions/strcasecmp_l.texi.
51178         * doc/posix-functions/strcoll_l.texi: Renamed from
51179         doc/glibc-functions/strcoll_l.texi.
51180         * doc/posix-functions/strfmon_l.texi: Renamed from
51181         doc/glibc-functions/strfmon_l.texi.
51182         * doc/posix-functions/strftime_l.texi: Renamed from
51183         doc/glibc-functions/strftime_l.texi.
51184         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51185         doc/glibc-functions/strncasecmp_l.texi.
51186         * doc/posix-functions/strndup.texi: Renamed from
51187         doc/glibc-functions/strndup.texi.
51188         * doc/posix-functions/strnlen.texi: Renamed from
51189         doc/glibc-functions/strnlen.texi.
51190         * doc/posix-functions/strsignal.texi: Renamed from
51191         doc/glibc-functions/strsignal.texi.
51192         * doc/posix-functions/strxfrm_l.texi: Renamed from
51193         doc/glibc-functions/strxfrm_l.texi.
51194         * doc/posix-functions/timer_gettime.texi: Renamed from
51195         doc/glibc-functions/timer_gettime.texi.
51196         * doc/posix-functions/tolower_l.texi: Renamed from
51197         doc/glibc-functions/tolower_l.texi.
51198         * doc/posix-functions/toupper_l.texi: Renamed from
51199         doc/glibc-functions/toupper_l.texi.
51200         * doc/posix-functions/towctrans_l.texi: Renamed from
51201         doc/glibc-functions/towctrans_l.texi.
51202         * doc/posix-functions/towlower_l.texi: Renamed from
51203         doc/glibc-functions/towlower_l.texi.
51204         * doc/posix-functions/towupper_l.texi: Renamed from
51205         doc/glibc-functions/towupper_l.texi.
51206         * doc/posix-functions/uselocale.texi: Renamed from
51207         doc/glibc-functions/uselocale.texi.
51208         * doc/posix-functions/vdprintf.texi: Renamed from
51209         doc/glibc-functions/vdprintf.texi.
51210         * doc/posix-functions/wcpcpy.texi:
51211         Renamed from doc/glibc-functions/wcpcpy.texi.
51212         * doc/posix-functions/wcpncpy.texi: Renamed from
51213         doc/glibc-functions/wcpncpy.texi.
51214         * doc/posix-functions/wcscasecmp.texi: Renamed from
51215         doc/glibc-functions/wcscasecmp.texi.
51216         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51217         doc/glibc-functions/wcscasecmp_l.texi.
51218         * doc/posix-functions/wcscoll_l.texi: Renamed from
51219         doc/glibc-functions/wcscoll_l.texi.
51220         * doc/posix-functions/wcsdup.texi: Renamed from
51221         doc/glibc-functions/wcsdup.texi.
51222         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51223         doc/glibc-functions/wcsncasecmp.texi.
51224         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51225         doc/glibc-functions/wcsncasecmp_l.texi.
51226         * doc/posix-functions/wcsnlen.texi: Renamed from
51227         doc/glibc-functions/wcsnlen.texi.
51228         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51229         doc/glibc-functions/wcsnrtombs.texi.
51230         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51231         doc/glibc-functions/wcsxfrm_l.texi.
51232         * doc/posix-functions/wctrans_l.texi: Renamed from
51233         doc/glibc-functions/wctrans_l.texi.
51234         * doc/posix-functions/wctype_l.texi: Renamed from
51235         doc/glibc-functions/wctype_l.texi.
51236         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51237         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51238         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51239         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51240         these subsections.
51241         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51242         Remove sections.
51243
51244 2008-12-14  Bruno Haible  <bruno@clisp.org>
51245
51246         Update doc for POSIX:2008.
51247         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51248
51249 2008-12-14  Bruno Haible  <bruno@clisp.org>
51250
51251         Update doc for POSIX:2008.
51252         * doc/pastposix-functions/bcmp.texi: Renamed from
51253         doc/posix-functions/bcmp.texi.
51254         * doc/pastposix-functions/bcopy.texi: Renamed from
51255         doc/posix-functions/bcopy.texi.
51256         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51257         doc/posix-functions/bsd_signal.texi.
51258         * doc/pastposix-functions/bzero.texi: Renamed from
51259         doc/posix-functions/bzero.texi.
51260         * doc/pastposix-functions/ecvt.texi: Renamed from
51261         doc/posix-functions/ecvt.texi.
51262         * doc/pastposix-functions/fcvt.texi: Renamed from
51263         doc/posix-functions/fcvt.texi.
51264         * doc/pastposix-functions/ftime.texi: Renamed from
51265         doc/posix-functions/ftime.texi.
51266         * doc/pastposix-functions/gcvt.texi: Renamed from
51267         doc/posix-functions/gcvt.texi.
51268         * doc/pastposix-functions/getcontext.texi: Renamed from
51269         doc/posix-functions/getcontext.texi.
51270         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51271         doc/posix-functions/gethostbyaddr.texi.
51272         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51273         doc/posix-functions/gethostbyname.texi.
51274         * doc/pastposix-functions/getwd.texi: Renamed from
51275         doc/posix-functions/getwd.texi.
51276         * doc/pastposix-functions/h_errno.texi: Renamed from
51277         doc/posix-functions/h_errno.texi.
51278         * doc/pastposix-functions/index.texi: Renamed from
51279         doc/posix-functions/index.texi.
51280         * doc/pastposix-functions/makecontext.texi: Renamed from
51281         doc/posix-functions/makecontext.texi.
51282         * doc/pastposix-functions/mktemp.texi: Renamed from
51283         doc/posix-functions/mktemp.texi.
51284         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51285         doc/posix-functions/pthread_attr_getstackaddr.texi.
51286         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51287         doc/posix-functions/pthread_attr_setstackaddr.texi.
51288         * doc/pastposix-functions/rindex.texi: Renamed from
51289         doc/posix-functions/rindex.texi.
51290         * doc/pastposix-functions/scalb.texi: Renamed from
51291         doc/posix-functions/scalb.texi.
51292         * doc/pastposix-functions/setcontext.texi: Renamed from
51293         doc/posix-functions/setcontext.texi.
51294         * doc/pastposix-functions/swapcontext.texi: Renamed from
51295         doc/posix-functions/swapcontext.texi.
51296         * doc/pastposix-functions/ualarm.texi: Renamed from
51297         doc/posix-functions/ualarm.texi.
51298         * doc/pastposix-functions/usleep.texi: Renamed from
51299         doc/posix-functions/usleep.texi.
51300         * doc/pastposix-functions/vfork.texi: Renamed from
51301         doc/posix-functions/vfork.texi.
51302         * doc/pastposix-functions/wcswcs.texi: Renamed from
51303         doc/posix-functions/wcswcs.texi.
51304         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51305         (Function Substitutes): Update.
51306
51307 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51308
51309         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51310         m4/strerror.m4.
51311
51312 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51313             Bruno Haible  <bruno@clisp.org>
51314
51315         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51316
51317 2008-12-13  Bruno Haible  <bruno@clisp.org>
51318
51319         * modules/strtoull (Depends-on): Remove unistd.
51320
51321 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51322
51323         * modules/strtoull (Depends-on): Add stdlib.
51324
51325 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51326
51327         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51328
51329 2008-12-10  Jim Meyering  <meyering@redhat.com>
51330
51331         gl_ASSERT: don't say assertions are disabled when they're not
51332         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51333         "checking whether to enable assertions... no", when they are in
51334         fact enabled.  This is solely a bug in the output of configure.
51335         In spite of saying "no", NDEBUG was not defined in that case.
51336         Also, as noted by Eric Blake, leave assertions enabled upon
51337         --enable-assert=INVALID.
51338
51339 2008-12-10  Bruno Haible  <bruno@clisp.org>
51340
51341         Change MODULES.html to refer to POSIX:2008 where possible.
51342         * MODULES.html.sh (POSIX2008_URL): New variable.
51343         (posix_headers): Remove sys/timeb, ucontext.
51344         (posix2001_headers): New variable.
51345         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51346         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51347         index, makecontext, mktemp, pthread_attr_getstackaddr,
51348         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51349         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51350         (posix2001_functions): New variable.
51351         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51352         otherwise.
51353
51354 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51355
51356         add missing include to parse-duration.c
51357         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51358         * modules/parse-duration (Depends-on): Add xalloc.
51359
51360         fix sed script reading maint.mk
51361         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51362         (syntax-check-rules): Use it.
51363
51364 2008-12-09  Bruno Haible  <bruno@clisp.org>
51365
51366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51367         MacOS X 10.4/PowerPC.
51368         Reported by Simon Josefsson.
51369
51370 2008-12-08  Jim Meyering  <meyering@redhat.com>
51371
51372         work around mingw's lack of some S_IF definitions
51373         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51374         Reported by Simon Josefsson.
51375
51376 2008-12-08  Bruno Haible  <bruno@clisp.org>
51377
51378         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51379         applied to variables. Needed on MacOS X 10.4/PowerPC.
51380         Reported by Simon Josefsson.
51381
51382 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51383         and Eric Blake  <ebb9@byu.net>
51384
51385         assert: honor --enable-assert
51386         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51387         order to honor --enable-assert, rather than treating it as a
51388         synonym for --disable-assert.
51389
51390 2008-12-08  Jim Meyering  <meyering@redhat.com>
51391
51392         * lib/posixtm.c: Remove now-useless declaration of mktime.
51393
51394         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51395
51396 2008-12-07  Bruno Haible  <bruno@clisp.org>
51397
51398         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51399         test_once): Mark functions as static.
51400         * tests/test-tls.c (test_tls): Likewise.
51401
51402 2008-12-07  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51405         iconv_register_autodetect.
51406
51407 2008-12-07  Jim Meyering  <meyering@redhat.com>
51408
51409         posixtm.c: avoid a warning
51410         * lib/posixtm.c (posixtime): Don't initialize tm0.
51411         It's no longer needed to placate gcc4's -Wuninitialized,
51412         and the attempt to placate would elicit a new warning.
51413
51414         unicodeio.c: mark unused parameters
51415         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51416         (fallback_failure_callback): Likewise.
51417
51418 2008-12-07  Bruno Haible  <bruno@clisp.org>
51419
51420         * gnulib-tool (func_create_testdir): When building the tests
51421         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51422         Reported by Simon Josefsson.
51423
51424 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51425
51426         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51427
51428 2008-12-06  Bruno Haible  <bruno@clisp.org>
51429
51430         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51431         Suggested by Eric Blake.
51432
51433 2008-12-06  Bruno Haible  <bruno@clisp.org>
51434
51435         Fix a c-stack test failure on MacOS X.
51436         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51437         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51438         handler for SIGBUS as well.
51439         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51440         install a signal handler for SIGBUS as well.
51441         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51442
51443 2008-12-06  Bruno Haible  <bruno@clisp.org>
51444
51445         Advocacy documentation.
51446         * doc/gnulib-intro.texi (Benefits): New section.
51447         * doc/gnulib.texi: Update.
51448
51449 2008-12-06  Bruno Haible  <bruno@clisp.org>
51450
51451         Document the 'manywarnings' module.
51452         * doc/manywarnings.texi: New file.
51453         * doc/gnulib.texi: Include it.
51454
51455 2008-12-05  Eric Blake  <ebb9@byu.net>
51456
51457         tests: silence some gcc warnings
51458         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51459         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51460         type mismatches.
51461
51462 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51463             Bruno Haible  <bruno@clisp.org>
51464
51465         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51466
51467 2008-11-29  Jim Meyering  <meyering@redhat.com>
51468
51469         unicodeio.c: mark unused parameters
51470         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51471         (fallback_failure_callback): Likewise.
51472
51473         fts: fix a thinko
51474         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51475         (set_stat_type): Return S_IF*-valued "type" directly.
51476         Prompted by James Youngman's spotting a related bug.
51477         Confirmed by further testing through find.
51478
51479         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51480         * lib/fts.c (D_TYPE): Define.
51481         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51482         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51483         (s_ifmt_shift_bits): New function.
51484         (set_stat_type): New function.
51485         (fts_build): When not calling fts_stat, call set_stat_type
51486         to propagate dirent.d_type info to fts_read caller.
51487         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51488         fts_statp->st_mode type information may be valid.
51489
51490 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51491
51492         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51493         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51494         <sds@gnu.org>.
51495
51496 2008-11-20  Bruno Haible  <bruno@clisp.org>
51497
51498         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51499         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51500         INCLUDE_NEXT.
51501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51502         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51503         * modules/math (Makefile.am): Substitute
51504         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51506
51507 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51508             Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/stdint.in.h: Define all type macros so that their expansion is
51511         a single typedef'ed token. Fixes a compilation failure in Boost which
51512         does "using ::int8_t;".
51513
51514 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51515
51516         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51517         gl_MANYWARN_ALL_GCC.
51518         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51519         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51520         * modules/manywarnings: New file.
51521         * MODULES.html.sh: Mention manywarnings module.
51522
51523 2008-11-18  Bruno Haible  <bruno@clisp.org>
51524
51525         * doc/gnulib-tool.texi (Unit tests): New section.
51526
51527 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51528
51529         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51530         paths like 'lib/po/foo.po'.
51531
51532 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51533
51534         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51535         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51536
51537 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51538
51539         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51540         parameter works.
51541
51542 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51543
51544         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51545
51546 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51547
51548         * modules/parse-duration-tests: New file.
51549         * tests/test-parse-duration.sh: New file.
51550         * tests/test-parse-duration.c: New file.
51551
51552         New module 'parse-duration'.
51553         * lib/parse-duration.h: New file.
51554         * lib/parse-duration.c: New file.
51555         * modules/parse-duration: New file.
51556
51557 2008-11-17  Bruno Haible  <bruno@clisp.org>
51558
51559         * tests/test-select-out.sh: Comment out the first pipe test.
51560         Reported by Simon Josefsson.
51561
51562 2008-11-17  Bruno Haible  <bruno@clisp.org>
51563
51564         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51565         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51566         gl_HOSTENT.
51567
51568 2008-11-17  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51571         -lnetwork and -lnet. Needed for Haiku and BeOS.
51572
51573 2008-11-16  Bruno Haible  <bruno@clisp.org>
51574
51575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51576
51577 2008-11-16  Bruno Haible  <bruno@clisp.org>
51578
51579         Avoid test failure on Haiku.
51580         * tests/test-fsync.c: Include <errno.h>.
51581         (main): Don't require that fsync (0) fails.
51582
51583 2008-11-15  Bruno Haible  <bruno@clisp.org>
51584
51585         New module 'hostent'.
51586         * modules/hostent: New file.
51587         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51588
51589 2008-11-15  Bruno Haible  <bruno@clisp.org>
51590
51591         New module 'servent'.
51592         * modules/servent: New file.
51593         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51594
51595 2008-11-15  Bruno Haible  <bruno@clisp.org>
51596
51597         Avoid generating same test program with two different rules.
51598         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51599         test-frexp to test-frexp-nolibm.
51600         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51601         test-frexpl to test-frexpl-nolibm.
51602
51603 2008-11-15  Bruno Haible  <bruno@clisp.org>
51604
51605         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51606         $(FREXPL_LIBM).
51607
51608 2008-11-15  Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/netdb.in.h: Activate the definitions also when the system's
51611         <netdb.h> has 'struct addrinfo'.
51612         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51613         EAI_OVERFLOW or AI_NUMERICSERV.
51614         * doc/posix-headers/netdb.texi: Document the problem.
51615
51616 2008-11-15  Bruno Haible  <bruno@clisp.org>
51617
51618         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51619
51620         Make the 'sched' module work on platforms where <sched.h> exists but
51621         is incomplete (such as Haiku).
51622         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51623         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51624         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51625         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51626         HAVE_STRUCT_SCHED_PARAM.
51627         * modules/sched (Depends-on): Add include_next.
51628         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51629         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51630         * doc/posix-headers/sched.texi: Document the issue.
51631
51632 2008-11-13  Jim Meyering  <meyering@redhat.com>
51633
51634         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51635         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51636         test would fail due to the difference in the Report bugs to ...
51637         line.  The expected address is empty, "<>", while the actual
51638         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51639
51640 2008-11-12  Bruno Haible  <bruno@clisp.org>
51641
51642         lstat: don't compile lstat.c on systems lacking lstat
51643         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51644         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51645         Reported by Daniel P. Berrange via Jim Meyering.
51646
51647 2008-11-12  Jim Meyering  <meyering@redhat.com>
51648
51649         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51650
51651 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51652
51653         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51654         instead.
51655
51656 2008-11-12  Bruno Haible  <bruno@clisp.org>
51657
51658         * lib/unicodeio.c: Include unistr.h.
51659         (utf8_wctomb): Remove function.
51660         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51661
51662 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51663
51664         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51665         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51666         <bruno@clisp.org>.
51667         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51668
51669 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51670
51671         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51672         * doc/gnulib.texi: Add section for warnings.
51673
51674 2008-11-11  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/sockets.h: Add a comment.
51677
51678 2008-11-11  Karl Berry  <karl@gnu.org>
51679
51680         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51681
51682 2008-11-11  Eric Blake  <ebb9@byu.net>
51683
51684         fdl.texi: avoid git symlinks
51685         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51686
51687 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51688
51689         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51690
51691 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51692
51693         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51694         (gl_WARN_ADD): Substitute $2 if literal.
51695
51696 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51697
51698         * m4/warning.m4: Remove.
51699
51700 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51701
51702         * m4/warnings.m4: Almost complete rewrite. :-)
51703
51704 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51705
51706         * modules/warnings: New module.
51707         * m4/warnings.m4: New file.
51708         * MODULES.html.sh: Mention warnings module.
51709         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51710         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51711
51712 2008-11-10  Eric Blake  <ebb9@byu.net>
51713
51714         fdl.texi: make a symlink to the latest version
51715         * doc/standards.texi: Revert today's earlier change.
51716         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51717         * doc/fdl.texi: ...and replace this with a symlink to the newer
51718         fdl-1.3.texi.
51719
51720 2008-11-10  Bruno Haible  <bruno@clisp.org>
51721
51722         * tests/test-select-fd.c (main): Accept the result file name as fourth
51723         argument.
51724         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51725         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51726
51727 2008-11-10  Bruno Haible  <bruno@clisp.org>
51728
51729         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51730         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51731         as autoconf-substituted macros.
51732         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51734         gl_NETDB_H_DEFAULTS. Set these variables.
51735         * modules/netdb (Makefile.am): Substitute these variables.
51736
51737 2008-11-10  Eric Blake  <ebb9@byu.net>
51738
51739         standards.texi: include correct file for FDL 1.3
51740         * doc/standards.texi (GNU Free Documentation License): Change
51741         include file to pull in FDL 1.3, not 1.2.
51742
51743         fdl.texi: revert accidental change to license
51744         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51745
51746 2008-11-10  Bruno Haible  <bruno@clisp.org>
51747
51748         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51749         cross-compiling guesses also when the native compile gives no result.
51750
51751 2008-11-10  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/spawni.c (__spawni): Force variable into the stack.
51754
51755 2008-11-10  Bruno Haible  <bruno@clisp.org>
51756
51757         Add support for Haiku.
51758         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51759         glibc and BeOS, but also on Haiku.
51760         * lib/fpurge.c (fpurge): Likewise.
51761         * lib/freadable.c (freadable): Likewise.
51762         * lib/freadahead.c (freadahead): Likewise.
51763         * lib/freading.c (freading): Likewise.
51764         * lib/freadptr.c (freadptr): Likewise.
51765         * lib/freadseek.c (freadptrinc): Likewise.
51766         * lib/fseeko.c (rpl_fseeko): Likewise.
51767         * lib/fseterr.c (fseterr): Likewise.
51768         * lib/fwritable.c (fwritable): Likewise.
51769         * lib/fwriting.c (fwriting): Likewise.
51770         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51771
51772 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51773
51774         * lib/config.charset: Treat Haiku like BeOS.
51775
51776 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51777
51778         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51779         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51780
51781 2008-11-08  Bruno Haible  <bruno@clisp.org>
51782
51783         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51784         AC_CACHE_CHECK.
51785
51786 2008-11-08  Bruno Haible  <bruno@clisp.org>
51787
51788         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51789
51790 2008-11-08  Bruno Haible  <bruno@clisp.org>
51791
51792         * tests/test-select-fd.c: New file.
51793         * tests/test-select-in.sh: New file.
51794         * tests/test-select-out.sh: New file.
51795         * tests/test-select-stdin.c: New file.
51796         * modules/select-tests (Files): Add the new files.
51797         (Depends-on): Add gettimeofday.
51798         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51799         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51800         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51801
51802 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51803             Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51806
51807 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51808
51809         * build-aux/pmccabe2html: Added support for C++ source files.
51810
51811 2008-11-05  Ben Pfaff  <blp@gnu.org>
51812
51813         Fix lib/close.c build on Windows.
51814         * modules/close (Files): Add lib/w32sock.h.
51815
51816 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51817
51818         Accept Bison's NEWS format.
51819         * build-aux/announce-gen (print_news_deltas): Tweak
51820         $re_prefix.
51821
51822 2008-11-04  Bruno Haible  <bruno@clisp.org>
51823
51824         * modules/random_r (Maintainer): Add glibc.
51825
51826 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51827
51828         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51829         by karl@freefriends.org (Karl Berry).
51830         * doc/alloca.texi: Likewise.
51831         * doc/c-ctype.texi: Likewise.
51832         * doc/c-strcase.texi: Likewise.
51833         * doc/c-strcaseeq.texi: Likewise.
51834         * doc/c-strcasestr.texi: Likewise.
51835         * doc/c-strstr.texi: Likewise.
51836         * doc/c-strtod.texi: Likewise.
51837         * doc/c-strtold.texi: Likewise.
51838         * doc/ctime.texi: Likewise.
51839         * doc/error.texi: Likewise.
51840         * doc/fdl.texi: Likewise.
51841         * doc/gcd.texi: Likewise.
51842         * doc/getdate.texi: Likewise.
51843         * doc/gnulib-intro.texi: Likewise.
51844         * doc/gnulib-tool.texi: Likewise.
51845         * doc/gnulib.texi: Likewise.
51846         * doc/inet_ntoa.texi: Likewise.
51847         * doc/maintain.texi: Likewise.
51848         * doc/make-stds.texi: Likewise.
51849         * doc/quote.texi: Likewise.
51850         * doc/regexprops-generic.texi: Likewise.
51851         * doc/standards.texi: Likewise.
51852         * doc/verify.texi: Likewise.
51853         * doc/visibility.texi: Likewise.
51854         * doc/gnulib.texi (GNU Free Documentation License): Include
51855         fdl-1.3.texi instead of fdl.texi.
51856
51857 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51858
51859         * doc/fdl-1.3.texi: New file, from
51860         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51861         * modules/fdl-1.3: Add.
51862         * MODULES.html.sh: Add fdl-1.3.
51863
51864 2008-11-03  Bruno Haible  <bruno@clisp.org>
51865
51866         Make determination of absolute name of header file work with AIX xlc.
51867         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51868         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51869         preprocessing.
51870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51871         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51872
51873 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51874
51875         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51876         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51877         <ludo@gnu.org>.
51878
51879 2008-11-02  Bruno Haible  <bruno@clisp.org>
51880
51881         Mark 'strpbrk' obsolete.
51882         * modules/strpbrk (Status, Notice): New sections.
51883         * modules/strtok_r (Depends-on): Add strpbrk.
51884
51885 2008-11-02  Bruno Haible  <bruno@clisp.org>
51886
51887         Mark 'strdup' obsolete.
51888         * modules/strdup (Status, Notice): New sections.
51889         * modules/findprog (Depends-on): Add strdup.
51890         * modules/getaddrinfo (Depends-on): Likewise.
51891         * modules/localename (Depends-on): Likewise.
51892         * modules/relocatable-lib (Depends-on): Likewise.
51893         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51894         * modules/relocatable-prog (Depends-on): Likewise.
51895         * modules/trim (Depends-on): Likewise.
51896         * modules/unictype/gen-ctype (Depends-on): Likewise.
51897         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51898
51899 2008-11-02  Bruno Haible  <bruno@clisp.org>
51900
51901         Mark 'strcspn' obsolete.
51902         * modules/strcspn (Status, Notice): New sections.
51903
51904 2008-11-02  Bruno Haible  <bruno@clisp.org>
51905
51906         Mark 'rmdir' obsolete.
51907         * modules/rmdir (Status, Notice): New sections.
51908         * modules/clean-temp (Depends-on): Add rmdir.
51909         * modules/openat (Depends-on): Likewise.
51910
51911 2008-11-02  Bruno Haible  <bruno@clisp.org>
51912
51913         Mark 'raise' obsolete.
51914         * modules/raise (Status, Notice): New sections.
51915         (Include): Specify <signal.h>.
51916         * modules/stdio (Depends-on): Add raise.
51917         * modules/write (Depends-on): Likewise.
51918
51919 2008-11-02  Bruno Haible  <bruno@clisp.org>
51920
51921         Mark 'memset' obsolete.
51922         * modules/memset (Status, Notice): New sections.
51923
51924 2008-11-02  Bruno Haible  <bruno@clisp.org>
51925
51926         Mark 'memmove' obsolete.
51927         * modules/memmove (Status, Notice): New sections.
51928         * modules/argp (Depends-on): Add memmove.
51929         * modules/argz (Depends-on): Likewise.
51930         * modules/canonicalize (Depends-on): Likewise.
51931         * modules/canonicalize-lgpl (Depends-on): Likewise.
51932         * modules/fts (Depends-on): Likewise.
51933         * modules/getcwd (Depends-on): Likewise.
51934         * modules/human (Depends-on): Likewise.
51935         * modules/regex (Depends-on): Likewise.
51936         * modules/striconveh (Depends-on): Likewise.
51937         * modules/trim (Depends-on): Likewise.
51938         * modules/unistr/u8-move (Depends-on): Likewise.
51939         * modules/unistr/u16-move (Depends-on): Likewise.
51940         * modules/unistr/u32-move (Depends-on): Likewise.
51941
51942 2008-11-02  Bruno Haible  <bruno@clisp.org>
51943
51944         Mark 'memcpy' obsolete.
51945         * modules/memcpy (Status, Notice): New sections.
51946
51947 2008-11-02  Bruno Haible  <bruno@clisp.org>
51948
51949         Mark 'memcmp' obsolete.
51950         * modules/memcmp (Status, Notice): New sections.
51951         * modules/argmatch (Depends-on): Add memchr.
51952         * modules/backupfile (Depends-on): Likewise.
51953         * modules/c-strcasestr (Depends-on): Likewise.
51954         * modules/crypto/des (Depends-on): Likewise.
51955         * modules/csharpcomp (Depends-on): Likewise.
51956         * modules/fnmatch (Depends-on): Likewise.
51957         * modules/git-merge-changelog (Depends-on): Likewise.
51958         * modules/isnand (Depends-on): Likewise.
51959         * modules/isnand-nolibm (Depends-on): Likewise.
51960         * modules/isnanf (Depends-on): Likewise.
51961         * modules/isnanf-nolibm (Depends-on): Likewise.
51962         * modules/isnanl (Depends-on): Likewise.
51963         * modules/isnanl-nolibm (Depends-on): Likewise.
51964         * modules/mbchar (Depends-on): Likewise.
51965         * modules/memcoll (Depends-on): Likewise.
51966         * modules/quotearg (Depends-on): Likewise.
51967         * modules/regex (Depends-on): Likewise.
51968         * modules/relocatable-prog (Depends-on): Likewise.
51969         * modules/same (Depends-on): Likewise.
51970         * modules/signbit (Depends-on): Likewise.
51971         * modules/strcasestr-simple (Depends-on): Likewise.
51972         * modules/unictype/gen-ctype (Depends-on): Likewise.
51973         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51974         * modules/uniname/uniname (Depends-on): Likewise.
51975         * modules/unistr/u8-cmp (Depends-on): Likewise.
51976
51977 2008-11-02  Bruno Haible  <bruno@clisp.org>
51978
51979         Mark 'memchr' obsolete.
51980         * modules/memchr (Status, Notice): New sections.
51981         * modules/argp (Depends-on): Add memchr.
51982         * modules/base64 (Depends-on): Likewise.
51983         * modules/c-strcasestr (Depends-on): Likewise.
51984         * modules/chdir-long (Depends-on): Likewise.
51985         * modules/fnmatch (Depends-on): Likewise.
51986         * modules/getsubopt (Depends-on): Likewise.
51987         * modules/git-merge-changelog (Depends-on): Likewise.
51988         * modules/glob (Depends-on): Likewise.
51989         * modules/strcasestr-simple (Depends-on): Likewise.
51990         * modules/strnlen (Depends-on): Likewise.
51991
51992 2008-11-02  Bruno Haible  <bruno@clisp.org>
51993
51994         Mark 'atexit' obsolete.
51995         * modules/atexit (Status, Notice): New sections.
51996         * modules/chdir-long (Depends-on): Add atexit.
51997         * modules/wait-process (Depends-on): Likewise.
51998
51999 2008-11-02  Bruno Haible  <bruno@clisp.org>
52000
52001         * gnulib-tool: New option --with-obsolete.
52002         (func_usage): Document it.
52003         (func_modules_transitive_closure): Drop obsolete dependencies if
52004         incobsolete is not true.
52005         (func_import): Read and save the incobsolete variable to the cache.
52006
52007 2008-11-02  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52010         * gnulib-tool: New option --extract-status.
52011         (func_usage): Document it.
52012         (sed_extract_prog): Recognize it.
52013         (func_get_status): New function.
52014
52015 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52016
52017         * modules/sockets (License): Change from LGPL to LGPLv2+.
52018
52019 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52020
52021         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52022
52023 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52024
52025         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52026         Mention times and sys_times.
52027         * modules/sys_times, modules/sys_times-tests: New modules.
52028         * modules/times, modules/times-tests: Likewise
52029         * m4/sys_times_h.m4: New file.
52030         * lib/sys_times.in.h: Likewise
52031         * lib/times.c: Likewise.
52032         * tests/test-sys_times.c: Likewise.
52033         * tests/test-times.c: Likewise.
52034         * doc/posix-headers/sys_times.texi: Update.
52035         * doc/posix-functions/times.texi: Update.
52036
52037 2008-10-28  Jim Meyering  <meyering@redhat.com>
52038
52039         * modules/tempname (Depends-on): Add lstat.
52040
52041         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52042
52043 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52044
52045         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52046         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52047         using idiom used elsewhere in gnulib.
52048
52049 2008-10-27  Jim Meyering  <meyering@redhat.com>
52050
52051         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52052
52053 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52054
52055         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52056         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52057         programs.
52058         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52059
52060 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52061
52062         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52063
52064 2008-10-27  Bruno Haible  <bruno@clisp.org>
52065
52066         * tests/test-lstat.c: Include <stdio.h>.
52067
52068 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52069
52070         * modules/lstat-tests: New module.
52071         * tests/test-lstat.c: New file.
52072
52073 2008-10-26  Jim Meyering  <meyering@redhat.com>
52074
52075         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52076
52077 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52081         * modules/configmake (Include): Add a note that the include must come
52082         after all system headers.
52083         * lib/javaversion.c: Include configmake.h after all other includes.
52084
52085 2008-10-26  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52088         HAVE_STRUCT_RANDOM_DATA to 1.
52089         (gl_STDLIB_H): Simplify.
52090
52091 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52092
52093         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52094         substitute HAVE_STRUCT_RANDOM_DATA.
52095         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52096         random_data.
52097         * modules/stdlib (Makefile.am): Substitute
52098         HAVE_STRUCT_RANDOM_DATA.
52099
52100 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52101
52102         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52103         * doc/gnulib-intro.texi (Copyright): Likewise.
52104
52105 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52106
52107         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52108         findings.
52109
52110 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52111             Bruno Haible  <bruno@clisp.org>
52112
52113         * lib/unistd.in.h: Include <winsock2.h>.
52114         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52115         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52116         Provide dummy declarations.
52117         (gethostname): Override.
52118         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52120         gl_PREREQ_SYS_H_WINSOCK2.
52121         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52122         * doc/posix-functions/gethostname.texi: More details.
52123
52124 2008-10-25  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52127         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52128         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52129
52130         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52131         here ...
52132         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52133         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52134         gl_UNISTD_H_DEFAULTS.
52135
52136 2008-10-25  Eric Blake  <ebb9@byu.net>
52137
52138         signbit: avoid spurious compiler failure
52139         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52140         declarations inside function.
52141
52142 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52143             Bruno Haible  <bruno@clisp.org>
52144
52145         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52146         * modules/random_r (Depends-on): Add stdint.
52147
52148 2008-10-24  Bruno Haible  <bruno@clisp.org>
52149
52150         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52151         Eggert.
52152         * modules/strerror (License): Likewise.
52153
52154 2008-10-24  Jim Meyering  <meyering@redhat.com>
52155
52156         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52157         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52158
52159 2008-10-24  Eric Blake  <ebb9@byu.net>
52160
52161         getgroups: fix compilation when getgroups is available
52162         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52163         but with <config.h> override of getgroups disabled.
52164
52165 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52166
52167         * doc/gnulib.texi (Header files): Add note about C++ problems.
52168         Explained by Bruno Haible <bruno@clisp.org>.
52169
52170 2008-10-23  Bruno Haible  <bruno@clisp.org>
52171
52172         Define a dummy SA_NODEFER macro on Interix.
52173         * lib/signal.in.h (SA_NODEFER): Define fallback.
52174         Reported by Aleksey Cheusov <cheusov@tut.by> via
52175         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52176
52177 2008-10-23  Bruno Haible  <bruno@clisp.org>
52178
52179         * modules/freadahead (License): Change to LGPLv2+.
52180         Suggested by Simon Josefsson.
52181
52182 2008-10-23  Jim Meyering  <meyering@redhat.com>
52183
52184         random_r: new module
52185         * modules/random_r: New file.
52186         * m4/random_r.m4: New file.
52187         * lib/random_r.c: New file, from glibc.
52188         * modules/random_r-tests: New file.
52189         * tests/test-random_r.c: New file.
52190         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52191          Declare.
52192         (RAND_MAX): Define.
52193         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52194         * modules/stdlib: Substitute them, too.
52195         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52196         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52197         * doc/glibc-functions/random_r.texi: Likewise.
52198         * doc/glibc-functions/setstate_r.texi: Likewise.
52199         * doc/glibc-functions/srandom_r.texi: Likewise.
52200         * config/srclist.txt: Mention it.
52201
52202 2008-10-23  David Lutterkort  <lutter@redhat.com>
52203
52204         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52205         link requirement
52206
52207 2008-10-23  Jim Meyering  <meyering@redhat.com>
52208
52209         selinux-h: mark parameters of stub functions as intentionally unused
52210         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52211         * lib/se-context.in.h: Likewise.
52212
52213 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52214
52215         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52216
52217 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52218
52219         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52220
52221 2008-10-22  Eric Blake  <ebb9@byu.net>
52222
52223         glthread/thread: avoid compiler warning
52224         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52225         Add unreachable abort to silence compiler.
52226
52227 2008-10-22  Eric Blake  <ebb9@byu.net>
52228
52229         netdb: also supply struct addrinfo for cygwin 1.5.x
52230         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52231         older cygwin.
52232         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52233         cygwin.
52234         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52235
52236 2008-10-22  Bruno Haible  <bruno@clisp.org>
52237
52238         * users.txt: Update entry about pspp.
52239
52240 2008-10-21  Bruno Haible  <bruno@clisp.org>
52241
52242         Simplification.
52243         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52244         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52245
52246         Simplification.
52247         * lib/ioctl.c (ioctl): Don't undefine.
52248         * lib/socket.c (socket): Don't undefine.
52249
52250         Remove unused module indicator macros.
52251         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52252         GNULIB_$1 as a C macro.
52253
52254         * doc/posix-functions/close.texi: Undo last change.
52255         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52256         Windows platforms.
52257
52258 2008-10-21  Bruno Haible  <bruno@clisp.org>
52259
52260         Add gethostname() declaration to <unistd.h>.
52261         * lib/unistd.in.h (gethostname): New declaration.
52262         * lib/gethostname.c: Include <unistd.h>.
52263         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52264         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52266         and HAVE_GETHOSTNAME.
52267         * modules/gethostname (Depends-on): Add unistd.
52268         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52269         (Include): Specify <unistd.h>.
52270         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52271         HAVE_GETHOSTNAME.
52272         * tests/test-gethostname.c: Include <unistd.h> first.
52273
52274 2008-10-21  Bruno Haible  <bruno@clisp.org>
52275
52276         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52277         * modules/select-tests (Depends-on): Likewise.
52278         Reported by Simon Josefsson.
52279
52280 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52281
52282         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52283         * lib/accept.c: New file, based on winsock.c.
52284         * lib/bind.c: New file, based on winsock.c.
52285         * lib/connect.c: New file, based on winsock.c.
52286         * lib/getpeername.c: New file, based on winsock.c.
52287         * lib/getsockname.c: New file, based on winsock.c.
52288         * lib/getsockopt.c: New file, based on winsock.c.
52289         * lib/ioctl.c: New file, based on winsock.c.
52290         * lib/listen.c: New file, based on winsock.c.
52291         * lib/recv.c: New file, based on winsock.c.
52292         * lib/recvfrom.c: New file, based on winsock.c.
52293         * lib/send.c: New file, based on winsock.c.
52294         * lib/sendto.c: New file, based on winsock.c.
52295         * lib/setsockopt.c: New file, based on winsock.c.
52296         * lib/shutdown.c: New file, based on winsock.c.
52297         * lib/socket.c: New file, based on winsock.c.
52298         * lib/w32sock.h: New file, based on winsock.c.
52299         * lib/winsock.c: Remove file.
52300         * modules/accept: Likewise.
52301         * modules/bind: Likewise.
52302         * modules/connect: Likewise.
52303         * modules/getpeername: Likewise.
52304         * modules/getsockname: Likewise.
52305         * modules/getsockopt: Likewise.
52306         * modules/ioctl: Likewise.
52307         * modules/listen: Likewise.
52308         * modules/recv: Likewise.
52309         * modules/recvfrom: Likewise.
52310         * modules/send: Likewise.
52311         * modules/sendto: Likewise.
52312         * modules/setsockopt: Likewise.
52313         * modules/shutdown: Likewise.
52314         * modules/socket: Use socket.c instead of winsock.c.
52315         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52316         * doc/posix-functions/accept.texi: Doc fix.
52317         * doc/posix-functions/bind.texi: Doc fix.
52318         * doc/posix-functions/close.texi: Doc fix.
52319         * doc/posix-functions/connect.texi: Doc fix.
52320         * doc/posix-functions/getpeername.texi: Doc fix.
52321         * doc/posix-functions/getsockname.texi: Doc fix.
52322         * doc/posix-functions/getsockopt.texi: Doc fix.
52323         * doc/posix-functions/ioctl.texi: Doc fix.
52324         * doc/posix-functions/listen.texi: Doc fix.
52325         * doc/posix-functions/recv.texi: Doc fix.
52326         * doc/posix-functions/recvfrom.texi: Doc fix.
52327         * doc/posix-functions/send.texi: Doc fix.
52328         * doc/posix-functions/sendto.texi: Doc fix.
52329         * doc/posix-functions/setsockopt.texi: Doc fix.
52330         * doc/posix-functions/shutdown.texi: Doc fix.
52331         * doc/posix-functions/socket.texi: Doc fix.
52332
52333 2008-10-20  Bruno Haible  <bruno@clisp.org>
52334
52335         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52336         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52337         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52338         as an alias for SIGABRT.
52339         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52340         (sigaction): Map it to SIGABRT.
52341         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52342
52343 2008-10-20  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/fts.c: Don't include lstat.h.
52346         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52347
52348         Move the lstat() declaration to <sys/stat.h>.
52349         * lib/lstat.h: Remove file.
52350         * lib/sys_stat.in.h: Add special invocation convention.
52351         (lstat): New declaration.
52352         * lib/lstat.c (orig_lstat): New function.
52353         (rpl_lstat): Use orig_lstat instead of lstat.
52354         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52355         AC_C_INLINE. Set REPLACE_LSTAT.
52356         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52357         and REPLACE_LSTAT.
52358         * modules/lstat (Files): Remove lib/lstat.h.
52359         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52360         (Include): Specify <sys/stat.h> instead of lstat.h.
52361         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52362         REPLACE_LSTAT.
52363         * NEWS: Mention the change.
52364
52365 2008-10-20  Bruno Haible  <bruno@clisp.org>
52366
52367         * modules/posix_spawn-tests: New file.
52368         * tests/test-posix_spawn3.c: New file.
52369
52370 2008-10-20  Bruno Haible  <bruno@clisp.org>
52371
52372         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52373         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52374         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52375         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52376         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52377
52378 2008-10-20  Bruno Haible  <bruno@clisp.org>
52379
52380         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52381         of posix_spawn on AIX 5.3.
52382
52383 2008-10-20  Bruno Haible  <bruno@clisp.org>
52384
52385         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52386
52387 2008-10-20  Bruno Haible  <bruno@clisp.org>
52388
52389         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52390         of AC_LANG_PROGRAM.
52391
52392 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52393
52394         * lib/netdb.in.h: Don't define GNU specific constants until they
52395         are supported or needed.  Reported by Bruno Haible
52396         <bruno@clisp.org>.
52397
52398 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52399
52400         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52401
52402 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52403
52404         * lib/getaddrinfo.h: Remove file.
52405         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52406         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52407         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52408         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52409         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52410         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52411         * tests/test-getaddrinfo.c: Likewise.
52412         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52413         * NEWS: Mention change.
52414
52415 2008-10-19  Bruno Haible  <bruno@clisp.org>
52416
52417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52418
52419 2008-10-19  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/wait-process.c: Include simply <sys/wait.h>.
52422         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52423         WIFSTOPPED): Remove fallback definitions.
52424         * modules/wait-process (Depends-on): Add sys_wait.
52425
52426         New module 'sys_wait'.
52427         * modules/sys_wait: New file.
52428         * lib/sys_wait.in.h: New file, partially copied from
52429         lib/wait-process.c.
52430         * m4/sys_wait_h.m4: New file.
52431         * doc/posix-headers/sys_wait.texi: Mention the new module.
52432
52433 2008-10-19  Bruno Haible  <bruno@clisp.org>
52434
52435         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52436
52437 2008-10-19  Bruno Haible  <bruno@clisp.org>
52438
52439         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52440         * lib/wait-process.c (WAIT_T): Remove type.
52441         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52442         (wait_subprocess): Update.
52443
52444 2008-10-19  Bruno Haible  <bruno@clisp.org>
52445
52446         New module 'atoll'.
52447         * modules/atoll: New file.
52448         * lib/stdlib.in.h (atoll): New declaration.
52449         * lib/atoll.c: New file, from glibc with modifications.
52450         * m4/atoll.m4: New file.
52451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52452         HAVE_ATOLL.
52453         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52454         * doc/posix-functions/atoll.texi: Mention the new module.
52455
52456 2008-10-19  Bruno Haible  <bruno@clisp.org>
52457
52458         Add strtoull() declaration to <stdlib.h>.
52459         * lib/stdlib.in.h (strtoull): New declaration.
52460         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52461         Set HAVE_STRTOULL.
52462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52463         HAVE_STRTOULL.
52464         * modules/strtoull (Depends-on): Add stdlib.
52465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52466         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52467         HAVE_STRTOULL.
52468
52469 2008-10-19  Bruno Haible  <bruno@clisp.org>
52470
52471         Add strtoll() declaration to <stdlib.h>.
52472         * lib/stdlib.in.h (strtoll): New declaration.
52473         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52474         Set HAVE_STRTOLL.
52475         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52476         HAVE_STRTOLL.
52477         * modules/strtoll (Depends-on): Add stdlib.
52478         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52479         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52480
52481 2008-10-19  Bruno Haible  <bruno@clisp.org>
52482
52483         * modules/bcopy (Depends-on): Add strings.
52484         (Include): Specify <strings.h>.
52485
52486 2008-10-19  Bruno Haible  <bruno@clisp.org>
52487
52488         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52489
52490 2008-10-19  Bruno Haible  <bruno@clisp.org>
52491
52492         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52493         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52494         mingw.
52495
52496 2008-10-19  Bruno Haible  <bruno@clisp.org>
52497
52498         * lib/atanl.c: Don't include isnanl.h.
52499         * lib/cosl.c: Likewise.
52500         * lib/ldexpl.c: Likewise.
52501         * lib/logl.c: Likewise.
52502         * lib/sinl.c: Likewise.
52503         * lib/sqrtl.c: Likewise.
52504         * lib/tanl.c: Likewise.
52505
52506         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52507         * lib/isnanf.h: Remove file.
52508         * lib/isnand.h: Remove file.
52509         * lib/isnanl.h: Remove file.
52510         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52511         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52512         macros.
52513         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52514         HAVE_ISNANF, don't define it as a C macro.
52515         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52516         HAVE_ISNAND, don't define it as a C macro.
52517         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52518         HAVE_ISNANL, don't define it as a C macro.
52519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52520         HAVE_ISNAN[FDL].
52521         * modules/isnanf (Files): Remove lib/isnanf.h.
52522         (Depends-on): Add math.
52523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52524         (Include): Specify <math.h> instead of isnanf.h.
52525         * modules/isnand (Files): Remove lib/isnand.h.
52526         (Depends-on): Add math.
52527         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52528         (Include): Specify <math.h> instead of isnand.h.
52529         * modules/isnanl (Files): Remove lib/isnanl.h.
52530         (Depends-on): Add math.
52531         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52532         (Include): Specify <math.h> instead of isnanl.h.
52533         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52534         HAVE_ISNAN[FDL].
52535         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52536         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52537         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52538         * NEWS: Mention the change.
52539
52540 2008-10-18  Bruno Haible  <bruno@clisp.org>
52541
52542         Add getusershell(), setusershell(), endusershell() declarations to
52543         <unistd.h>.
52544         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52545         declarations.
52546         * lib/getusershell.c: Include unistd.h.
52547         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52548         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52549         HAVE_GETUSERSHELL.
52550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52551         and HAVE_GETUSERSHELL.
52552         * modules/getusershell (Depends-on): Add unistd, extensions.
52553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52554         (Include): Specify <unistd.h>.
52555         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52556         HAVE_GETUSERSHELL.
52557
52558 2008-10-18  Bruno Haible  <bruno@clisp.org>
52559
52560         Add a getloadavg() declaration to <stdlib.h>.
52561         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52562         getloadavg declaration.
52563         (getloadavg): New declaration.
52564         * lib/getloadavg.c: Include <stdlib.h> first.
52565         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52566         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52567         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52569         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52570         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52571         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52572         (Include): Specify <stdlib.h>.
52573         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52574         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52575
52576 2008-10-18  Bruno Haible  <bruno@clisp.org>
52577
52578         * lib/dirchownmod.c: Don't include lchmod.h.
52579
52580         Move the lchmod() declaration to <sys/stat.h>.
52581         * lib/lchmod.h: Remove file.
52582         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52583         (lchmod): New declaration, moved here from lib/lchown.h.
52584         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52585         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52587         and HAVE_LCHMOD.
52588         * modules/lchmod (Files): Remove lib/lchmod.h.
52589         (Depends-on): Add sys_stat, extensions.
52590         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52591         (Include): Specify <sys/stat.h> instead of lchmod.h.
52592         * modules/sys_stat (Depends-on): Add link-warning.
52593         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52594         definition of GL_LINK_WARNING.
52595         * NEWS: Mention the change.
52596
52597 2008-10-18  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/fchdir.c: Don't include dirfd.h.
52600         * lib/fts.c: Likewise.
52601         * lib/getcwd.c: Likewise.
52602         * lib/glob.c: Likewise.
52603
52604         Move the dirfd() declaration to <dirent.h>.
52605         * lib/dirfd.h: Remove file.
52606         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52607         (dirfd): New declaration.
52608         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52609         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52610         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52611         HAVE_DECL_DIRFD.
52612         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52613         HAVE_DECL_DIRFD.
52614         * modules/dirfd (Files): Remove lib/dirfd.h.
52615         (Depends-on): Add dirent, extensions.
52616         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52617         (Include): Specify <dirent.h> instead of dirfd.h.
52618         * modules/dirent (Depends-on): Add link-warning.
52619         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52620         definition of GL_LINK_WARNING.
52621         * NEWS: Mention the change.
52622
52623 2008-10-18  Bruno Haible  <bruno@clisp.org>
52624
52625         Move the euidaccess() declaration to <unistd.h>.
52626         * lib/euidaccess.h: Remove file.
52627         * lib/unistd.in.h (euidaccess): New declaration.
52628         * lib/euidaccess.c: Don't include euidaccess.h.
52629         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52630         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52632         and HAVE_EUIDACCESS.
52633         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52634         (Depends-on): Add unistd.
52635         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52636         (Include): Specify <unistd.h> instead of euidaccess.h.
52637         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52638         HAVE_EUIDACCESS.
52639         * NEWS: Mention the change.
52640
52641 2008-10-18  Bruno Haible  <bruno@clisp.org>
52642
52643         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52644
52645         Move the getdomainname() declaration to <unistd.h>.
52646         * lib/getdomainname.h: Remove file.
52647         * lib/unistd.in.h (getdomainname): New declaration.
52648         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52649         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52650         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52651         HAVE_GETDOMAINNAME.
52652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52653         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52654         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52655         (Depends-on): Add unistd, extensions.
52656         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52657         (Includes): Specify <unistd.h> instead of getdomainname.h.
52658         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52659         HAVE_GETDOMAINNAME.
52660         * NEWS: Mention the change.
52661
52662 2008-10-18  Bruno Haible  <bruno@clisp.org>
52663
52664         * modules/dirent: New file.
52665         * m4/dirent_h.m4: New file.
52666         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52667         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52668         * modules/fchdir (Files): Remove lib/dirent.in.h.
52669         (Depends-on): Add dirent.
52670         (Makefile.am): Move rules to modules/dirent.
52671         * doc/posix-headers/dirent.texi: Mention the new module.
52672
52673 2008-10-18  Bruno Haible  <bruno@clisp.org>
52674
52675         Avoid -Wunused-parameter warnings in public gnulib header files.
52676         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52677         macro.
52678         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52679
52680 2008-10-18  Bruno Haible  <bruno@clisp.org>
52681
52682         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52683         * doc/glibc-functions/error.texi: Mention the module 'error'.
52684         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52685         * doc/glibc-functions/getdomainname.texi: Mention the module
52686         'getdomainname'.
52687         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52688         * doc/glibc-functions/getpagesize.texi: Mention the module
52689         'getpagesize'.
52690         * doc/glibc-functions/getusershell.texi: Mention the module
52691         'getusershell'.
52692         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52693         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52694         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52695         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52696         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52697         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52698         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52699         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52700         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52701         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52702         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52703         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52704         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52705         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52706
52707 2008-10-17  Bruno Haible  <bruno@clisp.org>
52708
52709         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52710         HP-UX and IRIX, use -0.0L.
52711         * tests/test-ceill.c (minus_zero): Likewise.
52712         * tests/test-floorl.c (minus_zero): Likewise.
52713         * tests/test-frexpl.c (minus_zero): Likewise.
52714         * tests/test-isnan.c (minus_zerol): Likewise.
52715         * tests/test-isnanl.h (minus_zero): Likewise.
52716         * tests/test-ldexpl.c (minus_zero): Likewise.
52717         * tests/test-roundl.c (minus_zero): Likewise.
52718         * tests/test-signbit.c (minus_zerol): Likewise.
52719         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52720         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52721         * tests/test-truncl.c (minus_zero): Likewise.
52722         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52723         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52724         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52725         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52726
52727 2008-10-17  Bruno Haible  <bruno@clisp.org>
52728
52729         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52730         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52731         that it gets activated only for gcc >= 3.0.
52732         * lib/dirent.in.h: Likewise.
52733         * lib/errno.in.h: Likewise.
52734         * lib/fcntl.in.h: Likewise.
52735         * lib/float.in.h: Likewise.
52736         * lib/iconv.in.h: Likewise.
52737         * lib/inttypes.in.h: Likewise.
52738         * lib/locale.in.h: Likewise.
52739         * lib/math.in.h: Likewise.
52740         * lib/netdb.in.h: Likewise.
52741         * lib/netinet_in.in.h: Likewise.
52742         * lib/search.in.h: Likewise.
52743         * lib/signal.in.h: Likewise.
52744         * lib/spawn.in.h: Likewise.
52745         * lib/stdarg.in.h: Likewise.
52746         * lib/stdint.in.h: Likewise.
52747         * lib/stdio.in.h: Likewise.
52748         * lib/stdlib.in.h: Likewise.
52749         * lib/string.in.h: Likewise.
52750         * lib/strings.in.h: Likewise.
52751         * lib/sys_file.in.h: Likewise.
52752         * lib/sys_ioctl.in.h: Likewise.
52753         * lib/sys_select.in.h: Likewise.
52754         * lib/sys_socket.in.h: Likewise.
52755         * lib/sys_stat.in.h: Likewise.
52756         * lib/sys_time.in.h: Likewise.
52757         * lib/sysexits.in.h: Likewise.
52758         * lib/time.in.h: Likewise.
52759         * lib/unistd.in.h: Likewise.
52760         * lib/wchar.in.h: Likewise.
52761         * lib/wctype.in.h: Likewise.
52762         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52763
52764 2008-10-17  Jim Meyering  <meyering@redhat.com>
52765
52766         ignore-value: don't depend on inline module
52767         * modules/ignore-value (Depends-on): Remove 'inline'.
52768         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52769         Suggestion from Bruno Haible.
52770
52771 2008-10-17  Bruno Haible  <bruno@clisp.org>
52772
52773         New implementation of condition variables for Win32.
52774         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52775         (gl_linked_waitqueue_t): New type.
52776         (gl_cond_t): Use it.
52777         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52778         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52779         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52780         (glthread_cond_init_func, glthread_cond_wait_func,
52781         glthread_cond_timedwait_func, glthread_cond_signal_func,
52782         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52783         Reimplemented on the basis of gl_linked_waitqueue_t.
52784         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52785         gl_waitqueue_t.
52786         (gl_rwlock_t): Update.
52787         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52788
52789 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52790
52791         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52792         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52793
52794 2008-10-17  Jim Meyering  <meyering@redhat.com>
52795
52796         ignore-value: new module
52797         * modules/ignore-value: New file.
52798         * lib/ignore-value.h: New file.
52799         * MODULES.html.sh (Compiler warning management): New section,
52800         just for this module.  More to come.
52801
52802 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52803
52804         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52805         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52806         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52807
52808 2008-10-16  Jim Meyering  <meyering@redhat.com>
52809
52810         openat-die.c: avoid 'no previous prototype' warning
52811         * lib/openat-die.c: Include "openat.h".
52812         Reported by Reuben Thomas <rrt@sc3d.org>.
52813
52814 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52815
52816         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52817         * lib/netdb.in.h: Fix typo.
52818         Reported by Bruno Haible  <bruno@clisp.org>
52819
52820         * lib/netdb.in.h: Include sys/socket.h for platforms without
52821         netdb.h, to get structures like hostent on MinGW.
52822         * modules/netdb (Depends-on): Add sys_socket.
52823
52824 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52825
52826         * modules/netdb, modules/netdb-tests: New file.
52827         * m4/netdb_h.m4: New file.
52828         * lib/netdb.in.h: Add, currently just an empty file pending
52829         definitions.
52830         * tests/test-netdb.c: New file.
52831         * doc/posix-headers/netdb.texi: Mention that we replace it if
52832         needed.
52833         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52834         netdb.
52835
52836 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52837
52838         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52839         with code.
52840
52841 2008-10-13  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/glthread/cond.c (glthread_cond_wait_func,
52844         glthread_cond_timedwait_func): Add a comment.
52845
52846 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52847
52848         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52849         * tests/test-select.c: Likewise,
52850
52851 2008-10-13  Bruno Haible  <bruno@clisp.org>
52852
52853         * lib/glthread/cond.c (glthread_cond_wait_func,
52854         glthread_cond_timedwait_func): Fix variable name.
52855         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52856
52857 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52858
52859         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52860         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52861         struct sockaddr.sa_len.
52862         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52863
52864 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52865
52866         * build-aux/pmccabe2html: Add css and css_url parameters.
52867
52868 2008-10-12  Bruno Haible  <bruno@clisp.org>
52869
52870         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52871         calling aclx_get.
52872         Reported by Rainer Tammer <tammer@tammer.net>.
52873
52874 2008-10-12  Bruno Haible  <bruno@clisp.org>
52875
52876         Use msvcrt aware primitives for creation/termination of Win32 threads.
52877         * lib/glthread/thread.c: Include <process.h>.
52878         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52879         (wrapper_func): Update signature.
52880         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52881
52882 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52883             Bruno Haible  <bruno@clisp.org>
52884
52885         Provide a Win32 implementation of the 'cond' module.
52886         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52887         * lib/glthread/cond.c (glthread_cond_init_func,
52888         glthread_cond_wait_func, glthread_cond_timedwait_func,
52889         glthread_cond_signal_func, glthread_cond_broadcast_func,
52890         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52891         * modules/cond (Dependencies): Add gettimeofday.
52892
52893 2008-10-11  Bruno Haible  <bruno@clisp.org>
52894
52895         Make sleep work on older versions of mingw.
52896         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52897         only whether it exists.
52898         * doc/posix-functions/sleep.texi: Mention the problem with older
52899         versions of mingw.
52900
52901 2008-10-11  Bruno Haible  <bruno@clisp.org>
52902
52903         New module 'shutdown'.
52904         * modules/shutdown: New file.
52905         * lib/sys_socket.in.h (shutdown): New declaration.
52906         * lib/winsock.c (shutdown): New function.
52907         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52908         GNULIB_SHUTDOWN.
52909         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52910         * doc/posix-functions/shutdown.texi: Document the new module.
52911
52912 2008-10-11  Jim Meyering  <meyering@redhat.com>
52913
52914         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52915
52916 2008-10-11  Bruno Haible  <bruno@clisp.org>
52917
52918         New module 'fclose'.
52919         * modules/fclose: New file.
52920         * lib/stdio.in.h (fclose): New declaration.
52921         * lib/fclose.c: New file.
52922         * m4/fclose.m4: New file.
52923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52924         REPLACE_FCLOSE.
52925         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52926         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52927         REPLACE_FCLOSE.
52928         * modules/close (Depends-on): fclose.
52929         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52930
52931 2008-10-11  Bruno Haible  <bruno@clisp.org>
52932
52933         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52934         set errno and don't call _close.
52935
52936 2008-10-10  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52939         ACL, not afterwards. Fixes test failure on Cygwin.
52940
52941 2008-10-09  Ben Pfaff  <blp@gnu.org>
52942
52943         * build-aux/announce-gen: Fix gnulib version related part of usage
52944         message.  Die with a useful error message if no tarballs are
52945         found.
52946
52947 2008-10-10  Jim Meyering  <meyering@redhat.com>
52948
52949         bootstrap: use git's --depth=N option only if it's supported
52950         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52951         recognize the --depth option.  Reported by Pádraig Brady.
52952
52953 2008-10-09  Bruno Haible  <bruno@clisp.org>
52954
52955         New module 'ioctl'.
52956         * modules/ioctl: New file.
52957         * lib/sys_socket.in.h (ioctl): Remove declaration.
52958         * lib/winsock.c: Include <sys/ioctl.h>.
52959         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52960         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52961         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52962         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52963         * doc/posix-functions/ioctl.texi: Mention the new module.
52964
52965 2008-10-09  Bruno Haible  <bruno@clisp.org>
52966
52967         New module 'sys_ioctl'.
52968         * lib/sys_ioctl.in.h: New file.
52969         * m4/sys_ioctl_h.m4: New file.
52970         * modules/sys_ioctl: New file.
52971         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52972
52973 2008-10-09  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52976         * lib/winsock.c: Include <stdarg.h>.
52977         (rpl_ioctl): Change to second argument 'int' and then varargs.
52978
52979 2008-10-09  Bruno Haible  <bruno@clisp.org>
52980
52981         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52982         when the sys_socket module is present and the system has <winsock2.h>.
52983
52984 2008-10-09  Bruno Haible  <bruno@clisp.org>
52985
52986         * doc/posix-functions/close.texi: Mention module 'close' instead of
52987         module 'sys_socket'.
52988
52989 2008-10-09  Bruno Haible  <bruno@clisp.org>
52990
52991         * doc/glibc-headers/sys_ioctl.texi: New file.
52992         * doc/gnulib.texi: Include it.
52993
52994 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52995             Bruno Haible  <bruno@clisp.org>
52996
52997         Combine the two replacements of 'close'.
52998         * lib/sys_socket.in.h (close): Define to a reminder to include
52999         <unistd.h>.
53000         (_gl_close_fd_maybe_socket): New declaration.
53001         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53002         * lib/winsock.c (close): Remove undefinition.
53003         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53004         needed for the gnulib module 'close'.
53005         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53006         define to an error symbol or to a warning, if suitable.
53007         * lib/close.c: Include <sys/socket.h>.
53008         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53009         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53010         UNISTD_H_HAVE_WINSOCK2_H.
53011         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53013         UNISTD_H_HAVE_WINSOCK2_H.
53014         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53015         (configure.ac): Set a module indicator.
53016         (Makefile.am): Substitute GNULIB_CLOSE.
53017         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53018         * modules/poll-tests (Depends-on): Add close.
53019         * modules/select-tests (Depends-on): Likewise.
53020
53021 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53022             Bruno Haible  <bruno@clisp.org>
53023
53024         New module 'close'.
53025         * modules/close: New file.
53026         * lib/unistd.in.h (close): Move declaration out of the
53027         FCHDIR_REPLACEMENT scope.
53028         (_gl_unregister_fd): New declaration.
53029         * lib/close.c: New file.
53030         * lib/fchdir.c (rpl_close): Remove function.
53031         * m4/close.m4: New file.
53032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53033         close.
53034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53035         REPLACE_CLOSE.
53036         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53037         REPLACE_CLOSE.
53038         * modules/fchdir (Depends-on): Add close.
53039
53040 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53041             Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/fcntl.in.h (open): Simplify conditionals.
53044         (_gl_register_fd): New declaration.
53045         * lib/fchdir.c (rpl_open): Remove function.
53046         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53047         also.
53048         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53050         open.
53051
53052 2008-10-09  Jim Meyering  <meyering@redhat.com>
53053
53054         GNUmakefile: use the more name-space-friendly "_version"
53055         * top/GNUmakefile (_dummy): Update.
53056         (_version): Rename from "version".
53057
53058 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53059             Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53062         rpl_close.
53063         (_gl_register_fd): New function, extracted from rpl_open.
53064         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53065         (rpl_open, rpl_opendir): Use _gl_register_fd.
53066
53067 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53068
53069         Fix organization of 'open' replacement.
53070         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53071         (gl_FUNC_OPEN): Use it.
53072         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53073
53074 2008-10-08  Bruno Haible  <bruno@clisp.org>
53075
53076         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53077
53078 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53079
53080         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53081         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53082         listen).
53083
53084 2008-10-08  Eric Blake  <ebb9@byu.net>
53085
53086         GNUmakefile: add 'make version' target
53087         * top/GNUmakefile (_curr-ver): Split version update rules...
53088         (version): ...into a target.
53089
53090 2008-10-07  Bruno Haible  <bruno@clisp.org>
53091
53092         Use a more portable replacement expression for -0.0L.
53093         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53094         instead of -0.0L. Fix m4 quotation.
53095
53096         * tests/test-signbit.c: Include <float.h>.
53097         (minus_zero): New variable.
53098         (test_signbitl): Use minus_zero instead of -zero.
53099         * modules/signbit-tests (Depends-on): Add float.
53100
53101         * tests/test-ceill.c: Include <float.h>.
53102         (zero): Remove variable.
53103         (minus_zero): New variable.
53104         (main): Use minus_zero instead of -zero.
53105         * modules/ceill-tests (Depends-on): Add float.
53106
53107         * tests/test-floorl.c: Include <float.h>.
53108         (zero): Remove variable.
53109         (minus_zero): New variable.
53110         (main): Use minus_zero instead of -zero.
53111         * modules/floorl-tests (Depends-on): Add float.
53112
53113         * tests/test-roundl.c: Include <float.h>.
53114         (zero): Remove variable.
53115         (minus_zero): New variable.
53116         (main): Use minus_zero instead of -zero.
53117         * modules/roundl-tests (Depends-on): Add float.
53118
53119         * tests/test-truncl.c: Include <float.h>.
53120         (zero): Remove variable.
53121         (minus_zero): New variable.
53122         (main): Use minus_zero instead of -zero.
53123         * modules/truncl-tests (Depends-on): Add float.
53124
53125         * tests/test-frexpl.c (zero): Remove variable.
53126         (minus_zero): New variable.
53127         (main): Use minus_zero instead of -zero.
53128         * modules/frexpl-tests (Depends-on): Add float.
53129
53130         * tests/test-isnan.c (zerol): Remove variable.
53131         (minus_zerol): New variable.
53132         (test_long_double): Use minus_zerol instead of -zerol.
53133         * modules/isnan-tests (Depends-on): Add float.
53134
53135         * tests/test-isnanl.h (zero): Remove variable.
53136         (minus_zero): New variable.
53137         (main): Use minus_zero instead of -zero.
53138         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53139         * modules/isnanl-tests (Depends-on): Add float.
53140
53141         * tests/test-ldexpl.c (zero): Remove variable.
53142         (minus_zero): New variable.
53143         (main): Use minus_zero instead of -zero.
53144         * modules/ldexpl-tests (Depends-on): Add float.
53145
53146         * tests/test-snprintf-posix.h (zerol): Remove variable.
53147         (minus_zerol): New variable.
53148         (test_function): Use minus_zerol instead of -zerol.
53149         * modules/snprintf-posix-tests (Depends-on): Add float.
53150         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53151
53152         * tests/test-sprintf-posix.h (zerol): Remove variable.
53153         (minus_zerol): New variable.
53154         (test_function): Use minus_zerol instead of -zerol.
53155         * modules/sprintf-posix-tests (Depends-on): Add float.
53156         * modules/vsprintf-posix-tests (Depends-on): Add float.
53157
53158         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53159         (minus_zerol): New variable.
53160         (test_function): Use minus_zerol instead of -zerol.
53161         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53162
53163         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53164         (minus_zerol): New variable.
53165         (test_function): Use minus_zerol instead of -zerol.
53166         * modules/vasprintf-posix-tests (Depends-on): Add float.
53167
53168 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53169
53170         * MODULES.html.sh (Support for building documentation): Mention
53171         pmccabe2html.  Sort entries.
53172
53173         Add pmccabe2html module, from gnupdf.
53174         * build-aux/pmccabe.css: New file.
53175         * build-aux/pmccabe2html: New file.
53176         * m4/pmccabe2html.m4: New file.
53177         * modules/pmccabe2html: New file.
53178
53179 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53180
53181         flock: new module
53182         * MODULES.html.sh: Add to list of modules.
53183         * lib/flock.c: flock implementation for Windows and Unix systems
53184         which have fcntl.
53185         * doc/glibc-functions/flock.texi: Update documentation.
53186         * lib/sys_file.in.h: <sys/file.h> header file.
53187         * m4/flock.m4: M4 macros.
53188         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53189         * modules/flock: flock module.
53190         * modules/flock-tests: flock tests module.
53191         * modules/sys_file: sys/file.h module.
53192         * tests/test-flock.c: test suite for flock.
53193
53194 2008-10-06  Jim Meyering  <meyering@redhat.com>
53195
53196         bootstrap: check for LT_INIT more portably still ;-)
53197         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53198         Spotted by Bruno Haible.
53199
53200 2008-10-06  Eric Blake  <ebb9@byu.net>
53201
53202         test-signbit: avoid tripping Irix cc bug on -0.0L
53203         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53204         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53205         entire testsuite consistent and avoids an Irix 6.2 bug.
53206
53207 2008-10-05  Bruno Haible  <bruno@clisp.org>
53208             Jim Meyering  <jim@meyering.net>
53209
53210         Add an option for ignoring EPIPE during close_stdout.
53211         * lib/closeout.h: Include <stdbool.h>.
53212         (close_stdout_set_ignore_EPIPE): New declaration.
53213         * lib/closeout.c: Include <stdbool.h>.
53214         (ignore_EPIPE): New variable.
53215         (close_stdout_set_ignore_EPIPE): New function.
53216         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53217         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53218         failure.
53219         * modules/closeout (Depends-on): Add stdbool.
53220
53221 2008-10-05  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/accept: New file.
53224         * modules/bind: New file.
53225         * modules/connect: New file.
53226         * modules/getpeername: New file.
53227         * modules/getsockname: New file.
53228         * modules/getsockopt: New file.
53229         * modules/listen: New file.
53230         * modules/recv: New file.
53231         * modules/recvfrom: New file.
53232         * modules/send: New file.
53233         * modules/sendto: New file.
53234         * modules/setsockopt: New file.
53235         * modules/socket: New file.
53236         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53237         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53238         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53239         the particular module is requested. Add a link warning when the
53240         particular module is not requested.
53241         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53242         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53243         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53244         the particular module is requested.
53245         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53246         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53247         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53248         * modules/sys_socket (Depends-on): Add link-warning.
53249         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53250         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53251         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53252         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53253         GL_LINK_WARNING.
53254         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53255         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53256         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53257         * doc/posix-functions/getpeername.texi: Mention the new module
53258         'getpeername'.
53259         * doc/posix-functions/getsockname.texi: Mention the new module
53260         'getsockname'.
53261         * doc/posix-functions/getsockopt.texi: Mention the new module
53262         'getsockopt'.
53263         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53264         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53265         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53266         * doc/posix-functions/send.texi: Mention the new module 'send'.
53267         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53268         * doc/posix-functions/setsockopt.texi: Mention the new module
53269         'setsockopt'.
53270         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53271         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53272         listen, connect, accept.
53273         * modules/select-tests (Depends-on): Likewise.
53274
53275 2008-10-05  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/winsock.c (strerror): Remove unused #undef.
53278         (rpl_close): Remove unused local variable.
53279
53280         * modules/sys_socket (Depends-on); Add errno.
53281
53282 2008-10-05  Bruno Haible  <bruno@clisp.org>
53283
53284         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53285         (select): Add a link warning when the 'select' module is not used.
53286         * modules/sys_select (Depends-on): Add link-warning.
53287         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53288         Suggested by Paolo Bonzini.
53289
53290 2008-10-05  Jim Meyering  <meyering@redhat.com>
53291
53292         bootstrap: check for LT_INIT more portably
53293         * build-aux/bootstrap: Avoid using grep -E, since it's not
53294         portable enough.  Suggestion from Bruno Haible.
53295
53296 2008-10-05  Bruno Haible  <bruno@clisp.org>
53297
53298         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53299         as being fixed by gnulib.
53300
53301 2008-10-05  Bruno Haible  <bruno@clisp.org>
53302
53303         * modules/select-tests: New file, mostly copied from
53304         modules/sys_select-tests.
53305         * tests/test-select.c: New file, mostly copied from
53306         tests/test-sys_select.c.
53307         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53308         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53309         (Makefile.am): Remove test_sys_select_LDADD.
53310
53311         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53312         to an undefined symbol, for an error message.
53313         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53314         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53315         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53316         winsock-select.c here.
53317         * modules/sys_select (Files): Remove lib/winsock-select.c.
53318         (Depends-on): Remove alloca.
53319         (Makefile.am): Substitute GNULIB_SELECT.
53320         * modules/select: New file.
53321         * doc/posix-functions/select.texi: Update.
53322
53323 2008-10-05  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53326         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53327         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53328         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53329         getdtablesize.
53330         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53331         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53332
53333 2008-10-05  Bruno Haible  <bruno@clisp.org>
53334
53335         * modules/getdtablesize-tests: New file.
53336         * tests/test-getdtablesize.c: New file.
53337
53338         New module 'getdtablesize'.
53339         * lib/unistd.in.h (getdtablesize): New declaration.
53340         * lib/getdtablesize.c: New file.
53341         * m4/getdtablesize.m4: New file.
53342         * modules/getdtablesize: New file.
53343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53344         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53345         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53346         HAVE_GETDTABLESIZE.
53347         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53348
53349 2008-10-05  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/sched (Makefile.am): Fix typo.
53352         Reported by Simon Josefsson.
53353
53354 2008-10-05  Jim Meyering  <meyering@redhat.com>
53355
53356         bootstrap: check for LT_INIT, too
53357         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53358         are deprecated.  Suggestion from Ralf Wildenhues.
53359
53360 2008-10-05  Bruno Haible  <bruno@clisp.org>
53361
53362         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53363         overriding them by ours.
53364         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53365
53366 2008-10-05  Jim Meyering  <meyering@redhat.com>
53367
53368         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53369         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53370         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53371
53372 2008-10-04  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/dup2 (License): Change to LGPLv2+.
53375         * modules/sleep (License): Likewise.
53376         * modules/perror (License): Likewise.
53377         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53378         Blake.
53379         * modules/signal (License): Likewise.
53380         * modules/sigprocmask (License): Likewise.
53381         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53382         Meyering.
53383
53384 2008-10-04  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53387         Reported by Rainer Tammer <tammer@tammer.net>.
53388
53389 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53390             Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53393         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53394         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53395
53396 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53397
53398         filevercmp: new module
53399         * lib/filevercmp.h: New function filevercmp comparing version strings.
53400         * lib/filevercmp.c: Implementation of filevercmp function.
53401         * modules/filevercmp: Module metadata.
53402         * tests/test-filevercmp.c: Unit test for new module.
53403         * modules/filevercmp-tests: Unit test metadata.
53404         * MODULES.html.sh: Add filevercmp module.
53405
53406 2008-10-03  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/c-ctype.h: Add comment.
53409         Reported by Jim Meyering.
53410
53411 2008-10-02  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53414
53415 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53416
53417         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53418         name of bootstrap.conf accordingly.
53419
53420 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53421
53422         * build-aux/bootstrap: Install git-merge-changelog configuration
53423         items into .gitconfig if needed.
53424
53425 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53426
53427         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53428         git repository, and initialize/update it accordingly.
53429
53430 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53431
53432         * modules/fsync-tests: New file.
53433         * tests/test-fsync.c: New file.
53434
53435         New module 'fsync'.
53436         * lib/fsync.c: New file.
53437         * m4/fsync.m4: New file.
53438         * modules/fsync: New file.
53439         * lib/unistd.in.h (fsync): New declaration.
53440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53441         GNULIB_FSYNC and HAVE_FSYNC.
53442         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53443         * MODULES.html.sh (posix_functions): Add fsync.
53444         * doc/posix-functions/fsync.texi: Mention the new module.
53445
53446 2008-10-02  Jim Meyering  <meyering@redhat.com>
53447
53448         fts.c: sync with similar code from coreutils' remove.c
53449         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53450         Guard also with "#if defined __linux__", since for now at least,
53451         this code is Linux-kernel-specific.
53452
53453 2008-10-02  Jim Meyering  <meyering@redhat.com>
53454
53455         fts: bug fixes
53456         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53457         Include <sys/vfs.h>, not <sys/statfs.h>.
53458
53459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53460         Include <sys/vfs.h>, not <sys/statfs.h>.
53461
53462 2008-10-01  Bruno Haible  <bruno@clisp.org>
53463
53464         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53466         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53467         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53468         * doc/posix-functions/posix_spawnp.texi: Likewise.
53469         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53470         whether posix_spawn actually works.
53471         * m4/pipe.m4 (gl_PIPE): Likewise.
53472         * modules/execute (Files): Add m4/posix_spawn.m4.
53473         * modules/pipe (Files): Add m4/posix_spawn.m4.
53474         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53475
53476 2008-10-01  Jim Meyering  <meyering@redhat.com>
53477
53478         remove trailing spaces
53479         * NEWS: Likewise.
53480         * lib/poll.c (poll): Likewise.
53481         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53482         * lib/winsock.c (rpl_close): Likewise.
53483         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53484         * modules/yield: Likewise.
53485         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53486         * tests/test-sys_select.c (connect_to_socket): Likewise.
53487
53488         fts.c: adjust a new interface to be more generally useful
53489         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53490         (fts_build): Adjust caller.
53491
53492 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53493
53494         * modules/cond-tests: New file.
53495         * tests/test-cond.c: New file.
53496
53497 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53498             Bruno Haible  <bruno@clisp.org>
53499
53500         * modules/cond (Dependencies): Add errno, time.
53501         * lib/glthread/cond.h: Include <time.h>.
53502         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53503         across platforms.
53504
53505 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53506             Bruno Haible  <bruno@clisp.org>
53507
53508         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53509
53510 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53511             Bruno Haible  <bruno@clisp.org>
53512
53513         * modules/tls-tests (Depends-on): Add thread, yield.
53514         (configure.ac): Remove all checks.
53515         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53516         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53517         gl_thread_self): Remove definitions. Include glthread/thread.h and
53518         glthread/yield.h instead.
53519         (test_tls): Pass an additional NULL argument to gl_thread_join.
53520
53521 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53522             Bruno Haible  <bruno@clisp.org>
53523
53524         * modules/lock-tests (Depends-on): Add thread, yield.
53525         (configure.ac): Remove all checks.
53526         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53527         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53528         gl_thread_self): Remove definitions. Include glthread/thread.h and
53529         glthread/yield.h instead.
53530         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53531         additional NULL argument to gl_thread_join.
53532
53533 2008-09-30  Bruno Haible  <bruno@clisp.org>
53534
53535         Fix the Win32 implementation of the 'thread' module.
53536         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53537         pointer type.
53538         (gl_thread_self): Invoke gl_thread_self_func.
53539         (gl_thread_self_func): New declaration.
53540         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53541         (do_init_self_key, init_self_key): New functions.
53542         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53543         Remove some fields.
53544         (running_threads, running_lock): Remove variables.
53545         (get_current_thread_handle): New function.
53546         (gl_thread_self_func, wrapper_func, glthread_create_func,
53547         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53548         simplified.
53549
53550 2008-09-30  Bruno Haible  <bruno@clisp.org>
53551
53552         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53553         files.
53554
53555 2008-09-30  Jim Meyering  <meyering@redhat.com>
53556
53557         fts.m4: correct the test for statfs.f_type
53558         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53559         when checking for statfs.f_type.
53560
53561 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53562
53563         tests: avoid some compiler warnings
53564         * tests/test-memchr.c (main): Pass NULL indirectly.
53565         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53566
53567 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
53568
53569         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53570         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53571         exactly specified dayshifts.
53572         (dayshift): New rule.
53573         (rel): Add dayshift.
53574         (relative_time_table) [tomorrow, yesterday, today, now]:
53575         Use tDAY_SHIFT in place of tDAY_UNIT.
53576         * tests/test-getdate.c: Add tests for now-disallowed countable
53577         dayshifts, e.g., "4 yesterday ago".
53578
53579 2008-09-29  Bruno Haible  <bruno@clisp.org>
53580
53581         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53582         * tests/test-posix_spawn1.in.sh: Renamed from
53583         tests/test-posix_spawn.in.sh.
53584         * tests/test-posix_spawn2.c: New file.
53585         * tests/test-posix_spawn2.in.sh: New file.
53586         * modules/posix_spawnp-tests (Files): Update.
53587         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53588
53589 2008-09-29  Bruno Haible  <bruno@clisp.org>
53590
53591         Propagate effects of putenv/setenv/unsetenv to child processes.
53592         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53593         * lib/pipe.c (create_pipe): Likewise.
53594
53595 2008-09-29  Bruno Haible  <bruno@clisp.org>
53596
53597         Enable use of shell scripts as executables in mingw.
53598         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53599         run the program as a shell script.
53600         * lib/pipe.c (create_pipe): Likewise.
53601         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53602         resulting array.
53603
53604 2008-09-29  Eric Blake  <ebb9@byu.net>
53605
53606         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53607
53608 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53609
53610         * doc/posix-functions/accept.texi: Update mingw problems.
53611         * doc/posix-functions/bind.texi: Update mingw problems.
53612         * doc/posix-functions/close.texi: Update mingw problems.
53613         * doc/posix-functions/connect.texi: Update mingw problems.
53614         * doc/posix-functions/getpeername.texi: Update mingw problems.
53615         * doc/posix-functions/getsockname.texi: Update mingw problems.
53616         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53617         * doc/posix-functions/ioctl.texi: Update mingw problems.
53618         * doc/posix-functions/listen.texi: Update mingw problems.
53619         * doc/posix-functions/recv.texi: Update mingw problems.
53620         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53621         * doc/posix-functions/select.texi: Update mingw problems.
53622         * doc/posix-functions/send.texi: Update mingw problems.
53623         * doc/posix-functions/sendto.texi: Update mingw problems.
53624         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53625         * doc/posix-functions/socket.texi: Update mingw problems.
53626
53627 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53628             Bruno Haible  <bruno@clisp.org>
53629
53630         * lib/sys_select.in.h: Include sys/time.h.
53631         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53632         * modules/sys_select: Depend on sys_time.
53633         * tests/test-sys_select.c: Test that sys/select.h defines struct
53634         timeval fully.
53635
53636 2008-09-29  Bruno Haible  <bruno@clisp.org>
53637
53638         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53639         * lib/sys_select.in.h: Likewise.
53640
53641 2008-09-29  Bruno Haible  <bruno@clisp.org>
53642
53643         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53644
53645 2008-09-29  Bruno Haible  <bruno@clisp.org>
53646
53647         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53648         Set LIBSOCKET instead of augmenting LIBS.
53649         * modules/sockets (Link): New section.
53650         * modules/sockets-tests (test_sockets_LDADD): New variable.
53651         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53652         * modules/poll-tests (test_poll_LDADD): New variable.
53653         * NEWS: Document the change.
53654
53655 2008-09-29  Bruno Haible  <bruno@clisp.org>
53656
53657         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53658         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53659         ARPA_INET_H directly.
53660         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53661
53662 2008-09-28  Bruno Haible  <bruno@clisp.org>
53663
53664         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53665         from gl_HEADER_SYS_SOCKET.
53666         (gl_HEADER_SYS_SOCKET): Invoke it.
53667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53668
53669 2008-09-28  Bruno Haible  <bruno@clisp.org>
53670
53671         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53672         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53673         Needed on OSF/1 4.0.
53674
53675 2008-09-28  Bruno Haible  <bruno@clisp.org>
53676
53677         Override open more carefully.
53678         * lib/open.c (orig_open): New function.
53679         (rpl_open): Use orig_open instead of open.
53680         * lib/fcntl.in.h: Add special invocation convention.
53681         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53682         (gl_FUNC_OPEN): Invoke it.
53683
53684         Override freopen more carefully.
53685         * lib/freopen.c (orig_freopen): New function.
53686         (rpl_freopen): Use orig_freopen instead of freopen.
53687         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53688         (gl_FUNC_FREOPEN): Invoke it.
53689
53690         Override fopen more carefully.
53691         * lib/fopen.c (orig_fopen): New function.
53692         (rpl_fopen): Use orig_fopen instead of fopen.
53693         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53694         (gl_FUNC_FOPEN): Invoke it.
53695         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53696
53697 2008-09-28  Bruno Haible  <bruno@clisp.org>
53698
53699         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53700         SIGPIPE.
53701
53702 2008-09-28  Bruno Haible  <bruno@clisp.org>
53703
53704         * tests/test-sigaction.c (handler, main): Disable the check whether
53705         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53706         glibc systems with LinuxThreads.
53707
53708 2008-09-28  Bruno Haible  <bruno@clisp.org>
53709
53710         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53711
53712         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53713         with AIX xlc.
53714         * lib/fcntl.in.h (open): Likewise.
53715         Reported by Rainer Tammer <tammer@tammer.net>.
53716
53717 2008-09-28  Bruno Haible  <bruno@clisp.org>
53718
53719         * modules/posix_spawnp-tests: New file.
53720         * tests/test-posix_spawn.c: New file.
53721         * tests/test-posix_spawn.in.sh: New file.
53722
53723         New module 'posix_spawnp'.
53724         * modules/posix_spawnp: New file.
53725         * lib/spawnp.c: New file, from GNU libc with modifications.
53726         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53727
53728         New module 'posix_spawn'.
53729         * modules/posix_spawn: New file.
53730         * lib/spawn.c: New file, from GNU libc with modifications.
53731         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53732
53733         New module 'posix_spawnattr_destroy'.
53734         * modules/posix_spawnattr_destroy: New file.
53735         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53736         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53737         module.
53738
53739         New module 'posix_spawnattr_setsigmask'.
53740         * modules/posix_spawnattr_setsigmask: New file.
53741         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53742         modifications.
53743         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53744         new module.
53745
53746         New module 'posix_spawnattr_getsigmask'.
53747         * modules/posix_spawnattr_getsigmask: New file.
53748         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53749         modifications.
53750         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53751         new module.
53752
53753         New module 'posix_spawnattr_setsigdefault'.
53754         * modules/posix_spawnattr_setsigdefault: New file.
53755         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53756         modifications.
53757         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53758         new module.
53759
53760         New module 'posix_spawnattr_getsigdefault'.
53761         * modules/posix_spawnattr_getsigdefault: New file.
53762         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53763         modifications.
53764         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53765         new module.
53766
53767         New module 'posix_spawnattr_setschedpolicy'.
53768         * modules/posix_spawnattr_setschedpolicy: New file.
53769         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53770         modifications.
53771         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53772         new module.
53773
53774         New module 'posix_spawnattr_getschedpolicy'.
53775         * modules/posix_spawnattr_getschedpolicy: New file.
53776         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53777         modifications.
53778         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53779         new module.
53780
53781         New module 'posix_spawnattr_setschedparam'.
53782         * modules/posix_spawnattr_setschedparam: New file.
53783         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53784         modifications.
53785         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53786         new module.
53787
53788         New module 'posix_spawnattr_getschedparam'.
53789         * modules/posix_spawnattr_getschedparam: New file.
53790         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53791         modifications.
53792         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53793         new module.
53794
53795         New module 'posix_spawnattr_setpgroup'.
53796         * modules/posix_spawnattr_setpgroup: New file.
53797         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53798         modifications.
53799         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53800         module.
53801
53802         New module 'posix_spawnattr_getpgroup'.
53803         * modules/posix_spawnattr_getpgroup: New file.
53804         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53805         modifications.
53806         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53807         module.
53808
53809         New module 'posix_spawnattr_setflags'.
53810         * modules/posix_spawnattr_setflags: New file.
53811         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53812         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53813         module.
53814
53815         New module 'posix_spawnattr_getflags'.
53816         * modules/posix_spawnattr_getflags: New file.
53817         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53818         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53819         module.
53820
53821         New module 'posix_spawnattr_init'.
53822         * modules/posix_spawnattr_init: New file.
53823         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53824         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53825         module.
53826
53827         New module 'posix_spawn_file_actions_destroy'.
53828         * modules/posix_spawn_file_actions_destroy: New file.
53829         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53830         modifications.
53831         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53832         the new module.
53833
53834         New module 'posix_spawn_file_actions_addopen'.
53835         * modules/posix_spawn_file_actions_addopen: New file.
53836         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53837         modifications.
53838         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53839         the new module.
53840
53841         New module 'posix_spawn_file_actions_adddup2'.
53842         * modules/posix_spawn_file_actions_adddup2: New file.
53843         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53844         modifications.
53845         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53846         the new module.
53847
53848         New module 'posix_spawn_file_actions_addclose'.
53849         * modules/posix_spawn_file_actions_addclose: New file.
53850         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53851         modifications.
53852         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53853         the new module.
53854
53855         New module 'posix_spawn_file_actions_init'.
53856         * modules/posix_spawn_file_actions_init: New file.
53857         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53858         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53859         new module.
53860
53861         New module 'posix_spawn-internal'.
53862         * modules/posix_spawn-internal: New file.
53863         * lib/spawn_int.h: New file, from GNU libc with modifications.
53864         * lib/spawni.c: New file, from GNU libc with modifications.
53865         * m4/posix_spawn.m4: New file.
53866
53867         New module 'spawn'.
53868         * modules/spawn: New file.
53869         * lib/spawn.in.h: New file, from GNU libc with modifications.
53870         * m4/spawn_h.m4: New file.
53871         * doc/posix-headers/spawn.texi: Mention the new module.
53872
53873 2008-09-28  Bruno Haible  <bruno@clisp.org>
53874
53875         * modules/sched-tests: New file.
53876         * tests/test-sched.c: New file.
53877
53878         New module 'sched'.
53879         * modules/sched: New file.
53880         * lib/sched.in.h: New file.
53881         * m4/sched_h.m4: New file.
53882         * doc/posix-headers/sched.texi: Mention the new module.
53883
53884 2008-09-27  Eric Blake  <ebb9@byu.net>
53885
53886         Fix previous patch, and tweak references to $0.
53887         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53888         (func_version, func_gnulib_dir): Don't call this program
53889         gnulib-tool.
53890         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53891         with using $0 in function.
53892         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53893         (func_fatal_error): Reuse the name the user invoked us with.
53894
53895 2008-09-27  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53898         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53899         (gl_ICONV_H): Not here.
53900         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53901         instead of assigning ICONV_H directly.
53902
53903         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53904         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53905         WCHAR_H directly.
53906
53907 2008-09-27  Bruno Haible  <bruno@clisp.org>
53908
53909         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53910         * modules/arpa_inet (Depends-on): Add link-warning.
53911         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53912         * modules/unistd (Makefile.am): Likewise.
53913
53914 2008-09-26  Bruno Haible  <bruno@clisp.org>
53915
53916         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53917         variables.
53918         (func_version): Essentially copied from gnulib-tool.
53919         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53920         func_readlink): Copied from gnulib-tool.
53921
53922 2008-09-26  Bruno Haible  <bruno@clisp.org>
53923
53924         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53925         invoking git-version-gen.
53926
53927 2008-09-26  Bruno Haible  <bruno@clisp.org>
53928
53929         * posix-modules: Update to directory names changed on 2008-01-19.
53930         Remove commas in output before splitting into words. No more need to
53931         avoid 'ftruncate' since 2007-02-19.
53932
53933 2008-09-26  Bruno Haible  <bruno@clisp.org>
53934
53935         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53936
53937 2008-09-26  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53940         * modules/fwriteerror (Depends-on): Add errno.
53941
53942 2008-09-26  Bruno Haible  <bruno@clisp.org>
53943
53944         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53945         * tests/test-vc-list-files-cvs.sh: Likewise.
53946
53947 2008-09-26  Bruno Haible  <bruno@clisp.org>
53948
53949         * doc/posix-headers/sys_resource.texi: Reorder items.
53950
53951 2008-09-26  Jim Meyering  <meyering@redhat.com>
53952
53953         fts: tweak inode comparison function
53954         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53955         inode numbers, as documented.
53956
53957         fts: sort dirent entries on inode number before traversing
53958         This avoids a quadratic, seek-related performance penalty when
53959         operating on a directory containing many entries (measurable at 10k;
53960         3.5 hours at 2 million entries with a cold cache) on certain types
53961         of file systems, including ext3 and ext4, but not tmpfs.
53962         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53963         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53964         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53965         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53966         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53967         (fts_build): Set the stat.st_ino member from D_INO.
53968         If it is likely to be useful, sort dirent entries on inode number.
53969
53970         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53971         and the struct statfs.f_type member.
53972         * modules/fts (Depends-on): Add d-ino.
53973
53974 2008-09-26  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/sigpipe-die (Depends-on): Add sigpipe.
53977
53978         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53979         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53980         and GNULIB_STDIO_H_SIGPIPE are set.
53981         * lib/stdio-write.c: New file.
53982         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53983         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53984         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53985         REPLACE_STDIO_WRITE_FUNCS.
53986         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53987         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53988         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53989         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53990         * modules/stdio (Files): Add lib/stdio-write.c.
53991         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53992         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53993         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53994         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53995         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53996         REPLACE_FPRINTF_POSIX.
53997         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53998         REPLACE_PRINTF_POSIX.
53999         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54000         REPLACE_VFPRINTF_POSIX.
54001         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54002         REPLACE_VPRINTF_POSIX.
54003         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54004         SIGPIPE issue.
54005         * doc/posix-functions/fputc.texi: Likewise.
54006         * doc/posix-functions/fputs.texi: Likewise.
54007         * doc/posix-functions/fwrite.texi: Likewise.
54008         * doc/posix-functions/printf.texi: Likewise.
54009         * doc/posix-functions/putc.texi: Likewise.
54010         * doc/posix-functions/putchar.texi: Likewise.
54011         * doc/posix-functions/puts.texi: Likewise.
54012         * doc/posix-functions/vfprintf.texi: Likewise.
54013         * doc/posix-functions/vprintf.texi: Likewise.
54014
54015         * modules/safe-write (Depends-on): Add write.
54016
54017         * modules/sigpipe-tests: New file.
54018         * tests/test-sigpipe.c: New file.
54019         * tests/test-sigpipe.sh: New file.
54020
54021         * modules/write: New file.
54022         * lib/unistd.in.h: Include <sys/types.h>.
54023         (write): New declaration.
54024         * lib/write.c: New file.
54025         * m4/write.m4: New file.
54026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54027         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54028         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54029         GNULIB_WRITE, REPLACE_WRITE.
54030         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54031         and the SIGPIPE issue.
54032
54033         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54034         (raise): New declaration.
54035         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54036         (ext_signal): New function.
54037         (rpl_raise): New function.
54038         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54039         GNULIB_SIGNAL_H_SIGPIPE.
54040         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54041         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54042
54043         * modules/sigpipe: New file.
54044         * m4/sigpipe.m4: New file.
54045
54046 2008-09-25  Derek Price  <derek@ximbiot.com>
54047             Bruno Haible  <bruno@clisp.org>
54048
54049         * gnulib-tool (func_import): Report all license incompatibilities, not
54050         just the first one.
54051
54052 2008-09-25  Bruno Haible  <bruno@clisp.org>
54053
54054         * gnulib-tool (func_import): When computing the edits, consider not
54055         only the Makefile.ams that exist but also those that will be generated.
54056
54057 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54058
54059         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54060         fixes gnulib-tool --test warning about duplicate dependency.
54061
54062 2008-09-25  Bruno Haible  <bruno@clisp.org>
54063
54064         * gnulib-tool: Don't ask the user to perform edits in the generated
54065         Makefile.ams.
54066         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54067         apply to the Makefile.am being generated.
54068         (func_emit_tests_Makefile_am): Execute edits that apply to the
54069         Makefile.am being generated.
54070         (func_import): Setup list of Makefile.am edits before emitting the
54071         Makefile.ams, not at the end.
54072         (func_create_testdir): Update.
54073         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54074
54075 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54076
54077         * gnulib-tool (func_import): Store the --tests-base option in the
54078         comment in gnulib-cache.m4.
54079
54080 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54081
54082         * NEWS: Document increased portability that sys_select now provides.
54083
54084         * lib/sys_select.in.h: Install select wrapper.
54085         * lib/sys_socket.in.h: Use more descriptive name when there is no
54086         select wrapper.
54087         * lib/winsock-select.c: New.
54088         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54089         Require gl_HEADER_SYS_SOCKET.
54090         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54091         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54092         * tests/test-sys_select.c: Add functional tests.
54093
54094 2008-09-24  Eric Blake  <ebb9@byu.net>
54095
54096         open, fopen: close fd leak in last patch
54097         * lib/open.c (rpl_open): Close fd before returning error.
54098         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54099         * doc/posix-functions/open.texi (open): Document that Irix also
54100         has the bug.
54101         * doc/posix-functions/fopen.texi (fopen): Likewise.
54102         Reported by Paolo Bonzini.
54103
54104 2008-09-24  Bruno Haible  <bruno@clisp.org>
54105
54106         Ensure that a filename ending in a slash cannot be used to access a
54107         non-directory.
54108         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54109         to check whether it's really a directory.
54110         * lib/fopen.c: Include fcntl.h, unistd.h.
54111         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54112         and fdopen().
54113         * modules/fopen (Depends-on): Add unistd.
54114         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54115         * tests/test-fopen.c (main): Likewise.
54116         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54117         * doc/posix-functions/fopen.texi: Likewise.
54118         Reported by Eric Blake.
54119
54120 2008-09-23  Eric Blake  <ebb9@byu.net>
54121
54122         c-stack: avoid compiler optimizations when provoking overflow
54123         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54124         recursion harder to optimize, to ensure a stack overflow occurs.
54125         * tests/test-c-stack.c (recurse): Likewise.
54126         Borrowed from libsigsegv.
54127
54128         c-stack: work around Irix sigaltstack bug
54129         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54130         whether sigaltstack uses wrong end of stack_t (copied in part from
54131         libsigsegv).
54132         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54133         Irix bug, without requiring an over-allocation.
54134         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54135         bug.
54136
54137         fopen: document mingw bug on directories
54138         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54139         not allowing a stream visiting a directory, even though reading
54140         from such a stream is not portable.
54141
54142 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54143
54144         * lib/poll.c: Rewrite.
54145         * modules/poll: Depend on alloca.
54146
54147 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54148
54149         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54150         instead define prototypes for a full set of wrappers.  Ensure
54151         that Cygwin does not use the compatibility code, which is only
54152         for MinGW.
54153         * lib/winsock.c: New.
54154         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54155         * modules/sys_socket: Add lib/winsock.c.
54156
54157         * modules/poll-tests: Add errno and perror.
54158         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54159
54160 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54161
54162         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54163
54164 2008-09-23  Bruno Haible  <bruno@clisp.org>
54165
54166         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54167         * doc/glibc-functions/*: Likewise.
54168
54169 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54170
54171         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54172         success.
54173
54174 2008-09-22  Eric Blake  <ebb9@byu.net>
54175             Bruno Haible  <bruno@clisp.org>
54176
54177         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54178         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54179         supply %A but mishandle pseudo-NaN.
54180         Reported by Simon Josefsson.
54181
54182 2008-09-21  Bruno Haible  <bruno@clisp.org>
54183
54184         * tests/test-lock.c (main): Tweak skip message.
54185         * tests/test-tls.c (main): Likewise.
54186
54187 2008-09-21  Bruno Haible  <bruno@clisp.org>
54188
54189         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54190         whether 'struct sigaction' has sa_sigaction here...
54191         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54192         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54193
54194 2008-09-21  Bruno Haible  <bruno@clisp.org>
54195
54196         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54197         section.
54198         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54199         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54200         the new section.
54201         (Support for obsolete systems lacking POSIX:2001): New section.
54202         (String handling <string.h>): Move strdup to the new section.
54203         Suggested by Simon Josefsson and Paolo Bonzini.
54204
54205 2008-09-21  Bruno Haible  <bruno@clisp.org>
54206
54207         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54208         exponents in %e and %g results on 'long double'. Needed for mingw's
54209         improved *printf functions.
54210         * tests/test-vasprintf-posix.c (test_function): Likewise.
54211         * tests/test-snprintf-posix.h (test_function): Likewise.
54212         * tests/test-sprintf-posix.h (test_function): Likewise.
54213         Reported by Eric Blake.
54214
54215 2008-09-21  Bruno Haible  <bruno@clisp.org>
54216
54217         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54218         * tests/test-sprintf-posix.h (test_function): Likewise.
54219
54220 2008-09-21  Bruno Haible  <bruno@clisp.org>
54221
54222         * modules/getpass (Depends-on): Add strdup-posix.
54223
54224         New module 'strdup-posix'.
54225         * modules/strdup-posix: New file.
54226         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54227         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54229         REPLACE_STRDUP.
54230         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54231         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54232         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54233         strdup-posix.
54234
54235         * modules/strdup (Depends-on): Remove malloc-posix.
54236
54237 2008-09-20  Bruno Haible  <bruno@clisp.org>
54238
54239         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54240         Wildenhues.
54241
54242 2008-09-20  Bruno Haible  <bruno@clisp.org>
54243
54244         Ensure that wint_t gets defined on IRIX 5.3.
54245         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54246         * lib/wctype.in.h (wint_t): Likewise.
54247         (__wctype_wint_t): Remove type.
54248         (isw*): Use wint_t instead of __wctype_wint_t.
54249         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54250         * modules/wchar (Files): Add m4/wint_t.m4.
54251         (Makefile.am): Substitute HAVE_WINT_T.
54252         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54253         * tests/test-wctype.c: Check that wint_t is defined.
54254         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54255         * doc/posix-headers/wctype.texi: Likewise.
54256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54257
54258 2008-09-18  Bruno Haible  <bruno@clisp.org>
54259
54260         * gnulib-tool (func_exit): Update comment.
54261
54262 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54263
54264         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54265         assumes strdup exists and does not depend on strdup to return
54266         ENOMEM on out of memory conditions.
54267
54268 2008-09-18  Bruno Haible  <bruno@clisp.org>
54269
54270         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54271         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54272         digits for the exponent.
54273
54274 2008-09-18  Jim Meyering  <meyering@redhat.com>
54275             Bruno Haible  <bruno@clisp.org>
54276
54277         * lib/vasnprintf.c (decimal_point_char): Define also if
54278         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54279
54280 2008-09-16  Bruno Haible  <bruno@clisp.org>
54281         and Eric Blake  <ebb9@byu.net>
54282
54283         vasnprintf: support Irix 5.3
54284         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54285         that mishandle long double infinity.
54286         Reported by Tom G. Christensen.
54287
54288 2008-09-16  Bruno Haible  <bruno@clisp.org>
54289
54290         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54291         Solaris 9.
54292         * doc/glibc-functions/alphasort.texi: Likewise.
54293         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54294
54295 2008-09-16  Jim Meyering  <meyering@redhat.com>
54296
54297         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54298         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54299         a umask modification leak out of a subshell.  Otherwise, the
54300         opensolaris /bin/sh would be accepted and thus cause unwarranted
54301         failures in the coreutils test suite.
54302
54303 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54304
54305         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54306         to succeed.
54307
54308 2008-09-16  Jim Meyering  <meyering@redhat.com>
54309
54310         avoid spurious test failure when library is built without ACL support
54311         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54312         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54313         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54314         * tests/test-copy-acl.sh: Likewise.
54315
54316 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54317
54318         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54319         based on character occurrence counts.
54320
54321 2008-09-15  Eric Blake  <ebb9@byu.net>
54322
54323         tests: avoid some compiler warnings
54324         * tests/test-memchr.c (main): Pass NULL indirectly.
54325         * tests/test-closein.c (main): Avoid unused variable.
54326
54327 2008-09-15  Bruno Haible  <bruno@clisp.org>
54328
54329         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54330         are missing on OpenBSD 4.0 individually.
54331         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54332
54333 2008-09-15  Bruno Haible  <bruno@clisp.org>
54334
54335         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54336         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54337         * doc/posix-functions/perror.texi: Likewise.
54338         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54339         is missing.
54340         Reported by Eric Blake.
54341
54342         * lib/errno.in.h: Use replacement values >= 2000.
54343         Reported by Eric Blake.
54344
54345 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54346
54347         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54348         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54349         limit.
54350         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54351         compareseq was aborted.
54352
54353 2008-09-14  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54356         yvec_edit_count.
54357         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54358         (fstrcmp_bounded): Simplify result computation accordingly.
54359
54360 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54361
54362         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54363         (fstrcmp): Define in terms of fstrcmp_bounded.
54364         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54365         lower_bound argument.
54366         Return quickly if the result is certainly < lower_bound.
54367         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54368
54369 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54370
54371         * lib/diffseq.h (EARLY_ABORT): New macro.
54372         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54373         evaluates to true.
54374
54375 2008-09-14  Bruno Haible  <bruno@clisp.org>
54376
54377         * modules/perror-tests: New file.
54378         * tests/test-perror.sh: New file.
54379         * tests/test-perror.c: New file.
54380
54381         New module 'perror'.
54382         * lib/stdio.in.h (perror): New declaration.
54383         * lib/perror.c: New file.
54384         * m4/perror.m4: New file.
54385         * modules/perror: New file.
54386         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54387         * doc/posix-functions/perror.texi: Mention the perror module.
54388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54389         REPLACE_PERROR.
54390         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54391         REPLACE_PERROR.
54392
54393 2008-09-14  Bruno Haible  <bruno@clisp.org>
54394
54395         * modules/stdio (Makefile.am): Reorder to match the order in
54396         lib/stdio.in.h.
54397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54398
54399 2008-09-13  Bruno Haible  <bruno@clisp.org>
54400
54401         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54402
54403 2008-09-13  Bruno Haible  <bruno@clisp.org>
54404
54405         Extend strerror to cover the added errno values.
54406         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54407         (rpl_strerror): Provide error messages for the added errno values and
54408         for the WSA* values.
54409         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54410         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54411         strerror.
54412         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54413         * modules/strerror (Depends-on): Add errno.
54414         * doc/posix-functions/strerror.texi: Document the change.
54415         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54416         and EOVERFLOW.
54417
54418 2008-09-13  Bruno Haible  <bruno@clisp.org>
54419
54420         * modules/EOVERFLOW: Remove file.
54421         * m4/eoverflow.m4: Remove file.
54422         * modules/EOVERFLOW-tests: Remove file.
54423         * tests/test-EOVERFLOW.c: Remove file.
54424         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54425         * modules/ftell (Depends-on): Likewise.
54426         * modules/getdelim (Depends-on): Likewise.
54427         * modules/getugroups (Depends-on): Likewise.
54428         * modules/poll (Depends-on): Likewise.
54429         * modules/snprintf (Depends-on): Likewise.
54430         * modules/sprintf-posix (Depends-on): Likewise.
54431         * modules/vasnprintf (Depends-on): Likewise.
54432         * modules/vasprintf (Depends-on): Likewise.
54433         * modules/vfprintf-posix (Depends-on): Likewise.
54434         * modules/vsnprintf (Depends-on): Likewise.
54435         * modules/vsprintf-posix (Depends-on): Likewise.
54436         * modules/xvasprintf (Depends-on): Likewise.
54437         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54438         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54439         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54440         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54441         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54442         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54443         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54444         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54445         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54446         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54447         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54448         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54449         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54450         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54451         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54452         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54453         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54454         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54455         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54456         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54457         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54458         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54459         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54460         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54461         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54462         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54463         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54464         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54465         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54466         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54467         * MODULES.html.sh: Remove EOVERFLOW.
54468         * NEWS: Mention the change.
54469
54470 2008-09-13  Bruno Haible  <bruno@clisp.org>
54471
54472         * modules/errno-tests: New file.
54473         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54474
54475         * lib/errno.in.h: New file.
54476         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54477         * modules/errno: New file.
54478         * doc/posix-headers/errno.texi: Update documentation.
54479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54480
54481 2008-09-13  Bruno Haible  <bruno@clisp.org>
54482
54483         * tests/test-poll.c: Use #if for native Windows, rather than testing
54484         __MSVCRT__.
54485
54486 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54487             Bruno Haible  <bruno@clisp.org>
54488
54489         * lib/glob.c: Don't include <pwd.h> on native Windows.
54490         (WINDOWS32): New macro.
54491         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54492
54493 2008-09-13  Bruno Haible  <bruno@clisp.org>
54494
54495         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54496         (ETIMEDOUT): Remove macro.
54497         (glthread_cond_timedwait_multithreaded): New declaration.
54498         (glthread_cond_timedwait): Use it.
54499         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54500         (glthread_cond_timedwait_multithreaded): New function.
54501
54502 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54503
54504         * modules/poll-tests: Do not check for io.h.
54505         * tests/test-poll.c: Check for __MSVCRT__ instead.
54506
54507 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54508
54509         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54510         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54511         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54512
54513 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54514
54515         * modules/poll-tests: New.
54516         * tests/test-poll.c: New.
54517
54518 2008-09-12  Eric Blake  <ebb9@byu.net>
54519
54520         frexp: test for NetBSD failure on -0.0
54521         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54522         not all, bugs from NetBSD 3.0 have been fixed.
54523         * doc/posix-functions/frexp.texi (frexp): Document bug.
54524         Reported by Thomas Klausner.
54525
54526         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54527         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54528         literal -0.0.
54529         Reported by Jonathan C. Patschke <jp@centtech.com>.
54530
54531 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54532
54533         * lib/glthread/cond.h: Use dummy implementation also if
54534         USE_WIN32_THREADS.
54535
54536 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54537
54538         * modules/fnmatch-posix (License): Change to LGPLv2+.
54539         * modules/fnmatch-gnu (License): Likewise.
54540
54541 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54542
54543         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54544
54545 2008-09-11  Jim Meyering  <meyering@redhat.com>
54546
54547         * users.txt: Add gtk-vnc.
54548
54549 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54550
54551         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54552         rotate amounts.
54553
54554         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54555         required for 16-bit and 8-bit rotates.
54556         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54557         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54558         UINT8_MAX instead of hard-coded constants.
54559         Suggested by Paul Eggert.
54560
54561 2008-09-07  Bruno Haible  <bruno@clisp.org>
54562
54563         * tests/test-striconveh.c (main): Check behaviour when converting from
54564         UTF-7.
54565
54566         Make striconveh work better with stateful encodings.
54567         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54568         that iconv does not increment the inptr when returning -1/EINVAL.
54569
54570 2008-09-07  Bruno Haible  <bruno@clisp.org>
54571
54572         * build-aux/config.rpath: Update according to libtool-2.2.6.
54573         * build-aux/config.libpath: Likewise.
54574
54575 2008-09-06  Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54578         * lib/freadptr.c (freadptr): Likewise.
54579         * lib/freadseek.c (freadptrinc): Likewise.
54580         Reported by Simon Josefsson.
54581
54582 2008-09-06  Bruno Haible  <bruno@clisp.org>
54583
54584         * modules/freadptr (License): Change to LGPLv2+.
54585         * modules/freadseek (License): Likewise.
54586         Suggested by Eric Blake.
54587
54588         * modules/memchr2 (License): Change to LGPLv2+.
54589         Approved by Eric Blake.
54590
54591 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54592             Bruno Haible  <bruno@clisp.org>
54593
54594         Make gnulib-tool work with native 'sed' on AIX.
54595         * gnulib-tool (sed_noop): New variable.
54596         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54597         func_add_or_update, func_create_testdir): Use it to initialize sed
54598         script variables.
54599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54600
54601 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54602             Bruno Haible  <bruno@clisp.org>
54603
54604         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54605         also works after #include directives.
54606
54607 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54608
54609         getdate.y: reject an out-of-range timezone value
54610         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54611         the range [-24...+24].  When specified with only one or two digits,
54612         * tests/test-getdate.c: Tests for the fix.
54613         * doc/getdate.texi: Document this change.
54614
54615 2008-09-03  Bruno Haible  <bruno@clisp.org>
54616
54617         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54618
54619 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54620
54621         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54622         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54623         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54624         Blake <ebb9@byu.net>.
54625
54626         * tests/test-bitrotate.c: Add more test vectors.
54627
54628 2008-09-02  Eric Blake  <ebb9@byu.net>
54629
54630         vasnprintf-posix: handle large precision via %.*d
54631         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54632         when handling it ourselves.
54633         * tests/test-vasnprintf-posix.c (test_function): Add test.
54634         * tests/test-snprintf-posix.h (test_function): Likewise.
54635         * tests/test-sprintf-posix.h (test_function): Likewise.
54636         * tests/test-vasprintf-posix.c (test_function): Likewise.
54637         Reported by Alain Guibert.
54638
54639 2008-09-01  Eric Blake  <ebb9@byu.net>
54640
54641         c-stack: make configure-time check more robust
54642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54643         successful sigaction call.
54644         Reported by Tom G. Christensen.
54645
54646 2008-09-01  Bruno Haible  <bruno@clisp.org>
54647
54648         New module 'findprog-lgpl'.
54649         * modules/findprog-lgpl: New file.
54650         * lib/findprog-lgpl.c: New file.
54651         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54652         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54653         to decide whether to use strdup or xstrdup, concatenated_filename or
54654         xconcatenated_filename.
54655
54656 2008-09-01  Bruno Haible  <bruno@clisp.org>
54657
54658         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54659         'xconcat-filename' (GPL).
54660         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54661         (License): Change to LGPLv2+.
54662         * modules/xconcat-filename: New file.
54663         * lib/concat-filename.h (concatenated_filename): Change specification.
54664         (xconcatenated_filename): New declaration.
54665         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54666         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54667         memory situations.
54668         * lib/xconcat-filename.c: New file.
54669         * NEWS: Mention the change.
54670         * lib/findprog.c: Include concat-filename.h, not filename.h.
54671         (find_in_path): Use xconcatenated_filename instead of
54672         concatenated_filename.
54673         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54674         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54675         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54676         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54677         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54678         instead of concatenated_filename.
54679         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54680         (execute_java_class): Use xconcatenated_filename instead of
54681         concatenated_filename.
54682         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54683         * modules/javacomp (Depends-on): Likewise.
54684         * modules/javaexec (Depends-on): Likewise.
54685
54686 2008-09-01  Bruno Haible  <bruno@clisp.org>
54687
54688         Split module 'filename' into 'filename' and 'concat-filename'.
54689         * modules/filename: Keep only lib/filename.h.
54690         (License): Change to LGPLv2+.
54691         * modules/concat-filename: New file, extracted from modules/filename.
54692         * lib/filename.h (concatenated_filename): Remove declaration.
54693         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54694         * lib/concat-filename.c: Include concat-filename.h.
54695         * NEWS: Mention the change.
54696
54697 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54698
54699         * lib/bitrotate.h (rotl8, rotr8): Add.
54700
54701         * modules/bitrotate (configure.ac): Need
54702         AC_REQUIRE([AC_C_INLINE]).
54703         (Description): Mention stdint.h.  Reported by Bruno Haible
54704         <bruno@clisp.org>.
54705
54706         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54707         Paolo Bonzini <bonzini@gnu.org>.
54708
54709 2008-08-31  Bruno Haible  <bruno@clisp.org>
54710
54711         Assume Solaris specific bi-arch conventions on Solaris systems.
54712         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54713         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54715         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54716         like acl_libdirstem.
54717         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54718         acl_libdirstem.
54719         * NEWS: Mention the change.
54720         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54721
54722 2008-08-31  Jim Meyering  <meyering@redhat.com>
54723
54724         * lib/strftime.h: Add comments describing the two added arguments.
54725
54726         remove duplicate #include directives
54727         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54728         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54729
54730 2008-08-31  Bruno Haible  <bruno@clisp.org>
54731
54732         New module 'sigpipe-die'.
54733         * modules/sigpipe-die: New file.
54734         * lib/sigpipe-die.h: New file.
54735         * lib/sigpipe-die.c: New file.
54736         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54737
54738 2008-08-31  Bruno Haible  <bruno@clisp.org>
54739
54740         Don't override previously installed signal handlers.
54741         * lib/fatal-signal.c (saved_sigactions): New variable.
54742         (uninstall_handlers): Reset the signal to the saved handler, not
54743         to SIG_DFL (except when ignored).
54744         (install_handlers): Save the previous handlers.
54745
54746 2008-08-30  Bruno Haible  <bruno@clisp.org>
54747
54748         * gnulib-tool (func_reset_sigpipe): New function.
54749         (func_get_automake_snippet, func_modules_transitive_closure,
54750         func_import): Invoke it before a join command that reads from stdin,
54751         to avoid "echo: write error: Broken pipe" error messages on stderr.
54752         Reported by Sam Steingold <sds@gnu.org>.
54753
54754 2008-08-30  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54757         Code copied from m4/open.m4.
54758         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54759         access and the filename ends in a slash. Code copied from lib/open.c.
54760         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54761         * tests/test-fopen.c (main): Check against bug with trailing slash.
54762
54763 2008-08-29  Bruno Haible  <bruno@clisp.org>
54764
54765         Avoid some "gcc -pedantic" warnings.
54766         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54767         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54768         * lib/dirent.in.h: Likewise.
54769         * lib/fcntl.in.h: Likewise.
54770         * lib/float.in.h: Likewise.
54771         * lib/iconv.in.h: Likewise.
54772         * lib/inttypes.in.h: Likewise.
54773         * lib/locale.in.h: Likewise.
54774         * lib/math.in.h: Likewise.
54775         * lib/netinet_in.in.h: Likewise.
54776         * lib/search.in.h: Likewise.
54777         * lib/signal.in.h: Likewise.
54778         * lib/stdarg.in.h: Likewise.
54779         * lib/stdint.in.h: Likewise.
54780         * lib/stdio.in.h: Likewise.
54781         * lib/stdlib.in.h: Likewise.
54782         * lib/string.in.h: Likewise.
54783         * lib/strings.in.h: Likewise.
54784         * lib/sys_select.in.h: Likewise.
54785         * lib/sys_socket.in.h: Likewise.
54786         * lib/sys_stat.in.h: Likewise.
54787         * lib/sys_time.in.h: Likewise.
54788         * lib/sysexits.in.h: Likewise.
54789         * lib/time.in.h: Likewise.
54790         * lib/unistd.in.h: Likewise.
54791         * lib/wchar.in.h: Likewise.
54792         * lib/wctype.in.h: Likewise.
54793         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54794         * modules/fchdir (Makefile.am): Likewise.
54795         * modules/fcntl (Makefile.am): Likewise.
54796         * modules/float (Makefile.am): Likewise.
54797         * modules/iconv_open (Makefile.am): Likewise.
54798         * modules/inttypes (Makefile.am): Likewise.
54799         * modules/locale (Makefile.am): Likewise.
54800         * modules/math (Makefile.am): Likewise.
54801         * modules/netinet_in (Makefile.am): Likewise.
54802         * modules/search (Makefile.am): Likewise.
54803         * modules/signal (Makefile.am): Likewise.
54804         * modules/stdarg (Makefile.am): Likewise.
54805         * modules/stdint (Makefile.am): Likewise.
54806         * modules/stdio (Makefile.am): Likewise.
54807         * modules/stdlib (Makefile.am): Likewise.
54808         * modules/string (Makefile.am): Likewise.
54809         * modules/strings (Makefile.am): Likewise.
54810         * modules/sys_select (Makefile.am): Likewise.
54811         * modules/sys_socket (Makefile.am): Likewise.
54812         * modules/sys_stat (Makefile.am): Likewise.
54813         * modules/sys_time (Makefile.am): Likewise.
54814         * modules/sysexits (Makefile.am): Likewise.
54815         * modules/time (Makefile.am): Likewise.
54816         * modules/unistd (Makefile.am): Likewise.
54817         * modules/wchar (Makefile.am): Likewise.
54818         * modules/wctype (Makefile.am): Likewise.
54819         Reported by Reuben Thomas <rrt@sc3d.org>.
54820
54821 2008-08-29  Bruno Haible  <bruno@clisp.org>
54822
54823         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54824         any more.
54825
54826 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54827
54828         * MODULES.html.sh (Misc): Add bitrotate.
54829
54830         * modules/bitrotate: New file.
54831
54832         * lib/bitrotate.h: New file.
54833
54834         * modules/bitrotate-tests: New file.
54835
54836         * tests/test-bitrotate.c: New file.
54837
54838         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54839         on the bitrotate module.
54840
54841         * lib/arctwo.c: Use new bitrotate module.
54842
54843 2008-08-29  Jim Meyering  <meyering@redhat.com>
54844
54845         bootstrap: merge changes from coreutils
54846         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54847         of copied files.  Remove a kludge, now that this is fixed.
54848         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54849         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54850         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54851
54852 2008-08-29  Bruno Haible  <bruno@clisp.org>
54853
54854         * MODULES.html.sh: Remove --cvs-urls option.
54855
54856 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54857
54858         maint.mk: adjust to file name change
54859         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54860
54861 2008-08-28  Jim Meyering  <meyering@redhat.com>
54862
54863         * modules/getndelim2 (License): Relicense to LGPLv2+.
54864         Approved by Richard Stallman for the version of 1995, and by
54865         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54866
54867 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54868
54869         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54870         dummy if one is not available.  Do not touch them if
54871         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54872         (getc_maybe_unlocked): New.
54873         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54874
54875 2008-08-26  Eric Blake  <ebb9@byu.net>
54876
54877         doc/INSTALL: resync from autoconf
54878         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54879         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54880         moving...
54881         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54882         * INSTALL: Regenerate.
54883         * INSTALL.ISO: New file.
54884         * INSTALL.UTF-8: Likewise.
54885
54886 2008-08-26  Jim Meyering  <meyering@redhat.com>
54887
54888         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54889         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54890         these definitions conditional, so that they may be overridden, too.
54891
54892 2008-08-26  Bruno Haible  <bruno@clisp.org>
54893
54894         Generate INSTALL file variants with prettier quotes.
54895         * doc/Makefile (INSTALL_PRELUDE): New macro.
54896         (INSTALL): Use it.
54897         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54898
54899 2008-08-26  Bruno Haible  <bruno@clisp.org>
54900
54901         Run makeinfo in an English locale.
54902         * doc/Makefile (MAKEINFO): New variable.
54903
54904 2008-08-26  Bruno Haible  <bruno@clisp.org>
54905
54906         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54907         Suggested by Eric Blake.
54908
54909 2008-08-25  Bruno Haible  <bruno@clisp.org>
54910
54911         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54912
54913 2008-08-25  Eric Blake  <ebb9@byu.net>
54914
54915         c-stack: test that stack overflow can be caught
54916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54917         that platform allows handling stack overflow; at least OS/2 EMX
54918         has sigaltstack, but crashes before transferring control to
54919         handler on stack overflow.
54920         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54921         check for HAVE_STACK_OVERFLOW_HANDLING.
54922         Reported by Elbert Pol.
54923
54924 2008-08-25  Bruno Haible  <bruno@clisp.org>
54925
54926         * doc/posix-functions/strftime.texi: Fix description of strftime
54927         module.
54928
54929 2008-08-24  Bruno Haible  <bruno@clisp.org>
54930
54931         * tests/uniwidth/test-uc_width2.c: New file.
54932         * tests/uniwidth/test-uc_width2.sh: New file.
54933         * modules/uniwidth/width-tests (Files): Add the new files.
54934         (TESTS): Add uniwidth/test-uc_width2.sh.
54935         (TESTS_ENVIRONMENT): New variable.
54936         (check_PROGRAMS): Add test-uc_width2.
54937         (test_uc_width2_SOURCES): New variable.
54938
54939         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54940         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54941         not 0x00AB.
54942         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54943
54944 2008-08-22  Eric Blake  <ebb9@byu.net>
54945
54946         test-lock, test-tls: mention why a test is skipped
54947         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54948         skipped.
54949         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54950
54951         count-one-bits: relax license
54952         * modules/count-one-bits (License): Relicense to LGPLv2+.
54953         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54954
54955 2008-08-22  Andreas Schwab  <schwab@suse.de>
54956
54957         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54958         Remove spurious space in assignment.
54959
54960 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54961
54962         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54963         Paul Eggert <eggert@CS.UCLA.EDU>.
54964
54965 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54966
54967         * modules/gettext: Add m4/threadlib.m4.
54968
54969 2008-08-19  Eric Blake  <ebb9@byu.net>
54970
54971         test-c-stack: fix compilation failure on FreeBSD 5.0
54972         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54973         headers before <sys/resource.h>.
54974         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54975         the bug.
54976         Reported by Nelson H. F. Beebe.
54977
54978         strverscmp: migrate from "strverscmp.h" to <string.h>
54979         * modules/string (Makefile.am): Add new hooks.
54980         * modules/strverscmp (Files): Remove strverscmp.h.
54981         (Depends-on): Add string.
54982         (configure.ac): Add indicator.
54983         (Include): Mention new header.
54984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54985         defaults.
54986         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54987         results.
54988         * lib/strverscmp.h: Delete.
54989         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54990         * tests/test-strverscmp.c (includes): Adjust client.
54991         * lib/check-version.c (includes): Likewise.
54992         * NEWS: Document the change.
54993
54994         strverscmp: add unit test
54995         * modules/strverscmp-tests: New file.
54996         * tests/test-strverscmp.c: Likewise.
54997
54998 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54999
55000         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55001         regarding Windows crypto stuff, from Mono.
55002
55003 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55004
55005         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55006         if present, for intel RND.  Return error on failures.
55007
55008 2008-08-18  Ben Pfaff  <blp@gnu.org>
55009
55010         gitlog-to-changelog: give better diagnostic for failed pipe-open
55011         * build-aux/gitlog-to-changelog: Improve error message: suggest
55012         that the version of Git may be too old.
55013
55014 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55015
55016         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55017         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55018
55019 2008-08-18  Bruno Haible  <bruno@clisp.org>
55020
55021         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55022         pthread_in_use().
55023
55024 2008-08-18  Bruno Haible  <bruno@clisp.org>
55025
55026         * lib/glthread/threadlib.c: Include <pthread.h>.
55027
55028 2008-08-18  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55031         glthread_recursive_lock_* macros.
55032         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55033         Fix syntax error.
55034
55035 2008-08-18  Bruno Haible  <bruno@clisp.org>
55036
55037         * lib/glthread/thread.c: Avoid forcing a context switch right after
55038         thread creation.
55039
55040 2008-08-17  Bruno Haible  <bruno@clisp.org>
55041
55042         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55043         * lib/glthread/thread.h: Provide Win32 specific implementation.
55044         * modules/thread (Files): Add lib/glthread/thread.c.
55045         (Depends-on): Add lock.
55046         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55047
55048 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55049
55050         New module 'yield'.
55051         * modules/yield: New file.
55052         * lib/glthread/yield.h: New file.
55053         * m4/yield.m4: New file.
55054         * MODULES.html.sh (Multithreading): Add yield.
55055
55056 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55057
55058         New module 'thread'.
55059         * modules/thread: New file.
55060         * lib/glthread/thread.h: New file.
55061         * m4/thread.m4: New file.
55062         * MODULES.html.sh (Multithreading): Add thread.
55063
55064 2008-08-17  Bruno Haible  <bruno@clisp.org>
55065
55066         * lib/glthread/lock.h: Include <stdlib.h> always.
55067         * lib/glthread/tls.h: Likewise.
55068         * lib/glthread/cond.h: Likewise.
55069
55070 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55071
55072         New module 'cond'.
55073         * modules/cond: New file.
55074         * lib/glthread/cond.h: New file.
55075         * lib/glthread/cond.c: New file.
55076         * m4/cond.m4: New file.
55077         * MODULES.html.sh (Multithreading): Add cond.
55078
55079 2008-08-16  Eric Blake  <ebb9@byu.net>
55080
55081         c-stack: fix regression on Irix 5.3 from 2008-06-21
55082         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55083         sa_sigaction...
55084         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55085         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55087         * modules/signal (Makefile.am): Use the value.
55088         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55089         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55090         * doc/posix-headers/signal.texi (signal.h): Document this
55091         portability issue.
55092         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55093         Reported by Tom G. Christensen.
55094
55095 2008-08-17  Bruno Haible  <bruno@clisp.org>
55096
55097         New module 'threadlib'.
55098         * modules/threadlib: New file.
55099         * lib/glthread/threadlib.c: New file, extracted from
55100         lib/glthread/lock.c.
55101         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55102         functions.
55103         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55104         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55105         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55106         macros.
55107         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55108         (gl_DISABLE_THREADS): Remove macro.
55109         * modules/lock (Files): Remove build-aux/config.rpath.
55110         (Depends-on): Remove havelib. Add threadlib.
55111         (configure.ac-early): Remove section.
55112         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55113         * modules/tls (Depends-on): Remove lock. Add threadlib.
55114         (Link): New section, copied from threadlib.
55115         * MODULES.html.sh (Multithreading): Add threadlib.
55116
55117 2008-08-14  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55120         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55121         glthread_rwlock_unlock, glthread_rwlock_destroy,
55122         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55123         glthread_recursive_lock_destroy): Define as macros always.
55124         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55125         glthread_lock_lock.
55126         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55127         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55128         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55129         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55130         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55131         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55132         (glthread_recursive_lock_lock_func): Renamed from
55133         glthread_recursive_lock_lock.
55134         (glthread_recursive_lock_unlock_func): Renamed from
55135         glthread_recursive_lock_unlock.
55136         (glthread_recursive_lock_destroy_func): Renamed from
55137         glthread_recursive_lock_destroy.
55138
55139 2008-08-14  Bruno Haible  <bruno@clisp.org>
55140
55141         * lib/glthread/lock.h: Renamed from lib/lock.h.
55142         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55143         * lib/glthread/tls.h: Renamed from lib/tls.h.
55144         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55145         * lib/fstrcmp.c: Update includes.
55146         * lib/strsignal.c: Update includes.
55147         * modules/lock (Files, Makefile.am): Update.
55148         (Include): Change to "glthread/lock.h".
55149         * modules/tls (Files, Makefile.am): Update.
55150         (Include): Change to "glthread/tls.h".
55151         * tests/test-lock.c: Update includes.
55152         * tests/test-tls.c: Update includes.
55153         * NEWS: Mention the renamed header files.
55154
55155 2008-08-11  Jim Meyering  <meyering@redhat.com>
55156
55157         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55158
55159 2008-08-11  Eric Blake  <ebb9@byu.net>
55160
55161         test-c-stack: avoid C99-ism
55162         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55163         before statement.
55164         Reported by Alain Guibert.
55165
55166 2008-08-10  Jim Meyering  <meyering@redhat.com>
55167
55168         ensure that return value of uinttostr et al are not ignored
55169         * lib/inttostr.h (__GNUC_PREREQ): Define.
55170         (__attribute_warn_unused_result__): Define.
55171         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55172
55173 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55174
55175         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55176         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55177
55178 2008-08-07  Jim Meyering  <meyering@redhat.com>
55179
55180         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55181
55182         * modules/mkstemp (License): Relicense under LGPLv2+.
55183         * modules/tempname (License): Likewise.
55184
55185 2008-08-06  Bruno Haible  <bruno@clisp.org>
55186
55187         * lib/poll.c (poll): Further micro-optimization.
55188
55189 2008-08-06  Jim Meyering  <meyering@redhat.com>
55190
55191         inet_pton.c: use locale-independent tolower
55192         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55193         (inet_pton6): Use c_tolower rather than tolower.
55194         * modules/inet_pton (Depends-on): Add c-ctype.
55195
55196 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55197
55198         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55199         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55200
55201 2008-08-06  Jim Meyering  <meyering@redhat.com>
55202
55203         * modules/inet_pton (License): Relicense under LGPLv2+.
55204
55205 2008-08-03  Bruno Haible  <bruno@clisp.org>
55206
55207         Additional non-aborting API for lock and tls.
55208         * lib/lock.h: Include <errno.h>.
55209         (glthread_lock_init): New macro/function.
55210         (gl_lock_init): Define as wrapper around glthread_lock_init.
55211         (glthread_lock_lock): New macro/function.
55212         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55213         (glthread_lock_unlock): New macro/function.
55214         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55215         (glthread_lock_destroy): New macro/function.
55216         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55217         (glthread_rwlock_init): New macro/function.
55218         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55219         (glthread_rwlock_rdlock): New macro/function.
55220         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55221         (glthread_rwlock_wrlock): New macro/function.
55222         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55223         (glthread_rwlock_unlock): New macro/function.
55224         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55225         (glthread_rwlock_destroy): New macro/function.
55226         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55227         (glthread_recursive_lock_init): New macro/function.
55228         (gl_recursive_lock_init): Define as wrapper around
55229         glthread_recursive_lock_init.
55230         (glthread_recursive_lock_lock): New macro/function.
55231         (gl_recursive_lock_lock): Define as wrapper around
55232         glthread_recursive_lock_lock.
55233         (glthread_recursive_lock_unlock): New macro/function.
55234         (gl_recursive_lock_unlock): Define as wrapper around
55235         glthread_recursive_lock_unlock.
55236         (glthread_recursive_lock_destroy): New macro/function.
55237         (gl_recursive_lock_destroy): Define as wrapper around
55238         glthread_recursive_lock_destroy.
55239         (glthread_once): New macro/function.
55240         (gl_once): Define as wrapper around glthread_once.
55241         Update function declarations.
55242         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55243         glthread_rwlock_init. Return error code.
55244         (glthread_rwlock_rdlock_multithreaded): Renamed from
55245         glthread_rwlock_rdlock. Return error code.
55246         (glthread_rwlock_wrlock_multithreaded): Renamed from
55247         glthread_rwlock_wrlock. Return error code.
55248         (glthread_rwlock_unlock_multithreaded): Renamed from
55249         glthread_rwlock_unlock. Return error code.
55250         (glthread_rwlock_destroy_multithreaded): Renamed from
55251         glthread_rwlock_destroy. Return error code.
55252         (glthread_recursive_lock_init_multithreaded): Renamed from
55253         glthread_recursive_lock_init. Return error code.
55254         (glthread_recursive_lock_lock_multithreaded): Renamed from
55255         glthread_recursive_lock_lock. Return error code.
55256         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55257         glthread_recursive_lock_unlock. Return error code.
55258         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55259         glthread_recursive_lock_destroy. Return error code.
55260         (glthread_once_call): Make static.
55261         (glthread_once_multithreaded): Renamed from glthread_once.
55262         * lib/tls.h: Include <errno.h>.
55263         (glthread_tls_key_init): New macro/function.
55264         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55265         (glthread_tls_set): New macro/function.
55266         (gl_tls_set): Define as wrapper around glthread_tls_set.
55267         (glthread_tls_key_destroy): New macro/function.
55268         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55269         Update function declarations.
55270         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55271         glthread_tls_get.
55272         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55273
55274 2008-08-04  Eric Blake  <ebb9@byu.net>
55275
55276         gnumakefile: use space, not TAB, outside of targets
55277         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55278
55279 2008-08-02  Jim Meyering  <meyering@redhat.com>
55280
55281         getdate.y: avoid locale-dependent date parsing failure
55282         In Turkish locales, getdate would fail to recognize keywords
55283         containing a lowercase "i".  The solution is not to rely on
55284         locale-sensitive case-conversion.
55285         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55286         (lookup_word): Use c_toupper in place of toupper.
55287         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55288         Reported by Vefa Bicakci <bicave@superonline.com> in
55289         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55290         * modules/getdate (Depends-on): Add c-ctype.
55291
55292 2008-08-02  Bruno Haible  <bruno@clisp.org>
55293
55294         * gnulib-tool (func_import): When updating or creating a .gitignore
55295         file, prepend each added line with a slash, and ignore leading slashes
55296         from the existing lines.
55297         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55298
55299 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55300
55301         Portability fix for GNU make 3.79.1.
55302         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55303         versions do not understand.
55304
55305 2008-08-01  Bruno Haible  <bruno@clisp.org>
55306
55307         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55308         * tests/test-isnanf.h (zero): New variable.
55309         (main): Avoid literal -0.0f.
55310         * tests/test-isnand.h (zero): New variable.
55311         (main): Avoid literal -0.0.
55312         * tests/test-isnanl.h (zero): New variable.
55313         (main): Avoid literal -0.0L.
55314         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55315         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55316         -0.0, -0.0L.
55317         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55318         (test_signbitd): Avoid literal -0.0.
55319         (test_signbitl): Avoid literal -0.0L.
55320         * tests/test-ceilf1.c (zero): New variable.
55321         (main): Avoid literal -0.0f.
55322         * tests/test-ceill.c (zero): New variable.
55323         (main): Avoid literal -0.0L.
55324         * tests/test-floorf1.c (zero): New variable.
55325         (main): Avoid literal -0.0f.
55326         * tests/test-floorl.c (zero): New variable.
55327         (main): Avoid literal -0.0L.
55328         * tests/test-roundf1.c (zero): New variable.
55329         (main): Avoid literal -0.0f.
55330         * tests/test-round1.c (zero): New variable.
55331         (main): Avoid literal -0.0.
55332         * tests/test-roundl.c (zero): New variable.
55333         (main): Avoid literal -0.0L.
55334         * tests/test-truncf1.c (zero): New variable.
55335         (main): Avoid literal -0.0f.
55336         * tests/test-trunc1.c (zero): New variable.
55337         (main): Avoid literal -0.0.
55338         * tests/test-truncl.c (zero): New variable.
55339         (main): Avoid literal -0.0L.
55340         * tests/test-frexp.c (zero): New variable.
55341         (main): Avoid literal -0.0.
55342         * tests/test-frexpl.c (zero): New variable.
55343         (main): Avoid literal -0.0L.
55344         * tests/test-ldexpl.c (zero): New variable.
55345         (main): Avoid literal -0.0L.
55346         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55347         (zerod, zerol): New variables.
55348         (test_function): Avoid literals -0.0, -0.0L.
55349         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55350         (zerod, zerol): New variables.
55351         (test_function): Avoid literals -0.0, -0.0L.
55352         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55353         (zerod, zerol): New variables.
55354         (test_function): Avoid literals -0.0, -0.0L.
55355         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55356         (zerod, zerol): New variables.
55357         (test_function): Avoid literals -0.0, -0.0L.
55358         * tests/test-strtod.c (zero): New variable.
55359         (main): Avoid literal -0.0.
55360         Reported by Jonathan C. Patschke <jp@centtech.com>.
55361
55362 2008-07-31  Jim Meyering  <meyering@redhat.com>
55363
55364         sha256.h: correct definition of SHA224_DIGEST_SIZE
55365         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55366         Reported by Paulie Pena IV <paulie4@gmail.com>.
55367         Define as 224 / 8, rather than as a literal.
55368         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55369         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55370         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55371
55372 2008-07-31  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55375         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55376         Reported by Jonathan Patschke <jp@centtech.com>.
55377
55378 2008-07-31  Bruno Haible  <bruno@clisp.org>
55379
55380         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55381         Reported by Paolo Bonzini <bonzini@gnu.org>.
55382
55383 2008-07-30  Eric Blake  <ebb9@byu.net>
55384
55385         test-strtod: allow compilation without -lm
55386         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55387         Reported by Dennis Clarke <blastwave@gmail.com>.
55388
55389 2008-07-28  Jim Meyering  <meyering@redhat.com>
55390
55391         bootstrap: work also when there are no .po files in po/
55392         * build-aux/bootstrap (update_po_files): Complete the change
55393         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55394
55395 2008-07-27  Jim Meyering  <meyering@redhat.com>
55396
55397         * users.txt: Add zile.
55398
55399 2008-07-26  Ben Pfaff  <blp@gnu.org>
55400
55401         Add missing dependencies on new m4/exponent[fdl].m4 files.
55402         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55403         * modules/isnand-nolibm: Add m4/exponentd.m4.
55404         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55405         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55406         m4/isnan[fdl].m4, because the macros actually used moved.
55407         Reported by Jim Meyering.
55408
55409 2008-07-14  Ben Pfaff  <blp@gnu.org>
55410
55411         Add isinf module.
55412         * lib/isinf.c: New file.
55413         * lib/math.in.h: Define isinf macro if we have decided to replace
55414         it.
55415         * m4/isinf.m4: New file.
55416         * m4/math_h.m4: Initialize and substitute variables for isinf
55417         module.
55418         * modules/isinf: New file.
55419         * modules/isinf-tests: New file.
55420         * modules/math: Add substitutions for new module.
55421         * tests/test-isinf.c: New file.
55422         * doc/posix-functions/isinf.texi: Mention new module.
55423         * MODULES.html.sh: Mention new module.
55424
55425 2008-07-14  Ben Pfaff  <blp@gnu.org>
55426
55427         Factor out some macros for use by additional modules.
55428         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55429         exponentf.m4.
55430         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55431         exponentd.m4.
55432         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55433         file exponentl.m4.
55434         * m4/exponentf.m4: New file.
55435         * m4/exponentd.m4: New file.
55436         * m4/exponentl.m4: New file.
55437         * modules/isnanf: Use new file m4/exponentf.m4.
55438         * modules/isnand: Use new file m4/exponentd.m4.
55439         * modules/isnanl: Use new file m4/exponentl.m4.
55440
55441 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55442
55443         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55444         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55445         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55446         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55447
55448         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55449         readlink on platforms without PATH_MAX.
55450
55451 2008-07-21  Eric Blake  <ebb9@byu.net>
55452
55453         Warn, not fail, on stale version.
55454         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55455
55456         Don't allow installation with stale devel version number.
55457         * top/GNUmakefile (_is-install-target): New macro.
55458         (_curr-ver): Forbid installation with stale version number.
55459
55460 2008-07-20  Bruno Haible  <bruno@clisp.org>
55461
55462         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55463         TESTS_ENVIRONMENT.
55464         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55465
55466 2008-07-20  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/c-stack.h (c_stack_action): Add documentation.
55469         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55470
55471 2008-07-20  Bruno Haible  <bruno@clisp.org>
55472
55473         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55474         * modules/readlink (License): Likewise.
55475
55476 2008-07-17  Eric Blake  <ebb9@byu.net>
55477
55478         * modules/c-stack (Link): Fix typo.
55479
55480         Make c-stack use libsigsegv, when available.
55481         * modules/c-stack (Depends-on): Add libsigsegv.
55482         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55483         needed.
55484         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55485         (segv_handler, overflow_handler, c_stack_action)
55486         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55487         implementation when libsigsegv is available, but only when using
55488         the library is necessary.
55489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55490         comment, explaining why XSI check fails on Linux.
55491         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55492         * tests/test-c-stack2.sh: Tweak skip message.
55493         * NEWS: Document new link-time requirements.
55494
55495 2008-07-16  Eric Blake  <ebb9@byu.net>
55496
55497         c-stack: Expose false positives when not using libsigsegv.
55498         * modules/c-stack-tests (Files): Expand test.
55499         * tests/test-c-stack.c (main): Add means to conditionally trigger
55500         non-overflow SIGSEGV.
55501         * tests/test-c-stack2.sh: New file.
55502
55503 2008-07-14  Bruno Haible  <bruno@clisp.org>
55504
55505         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55506         Reported by Eric Blake.
55507
55508 2008-07-14  Sam Steingold  <sds@gnu.org>
55509             Bruno Haible  <bruno@clisp.org>
55510
55511         New module libsigsegv.
55512         * modules/libsigsegv: New file.
55513         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55514         modifications.
55515         * MODULES.html.sh (Signal handling): New section.
55516
55517 2008-07-14  Bruno Haible  <bruno@clisp.org>
55518
55519         * modules/unictype/ctype-* (Description): Add the word "function".
55520         Improves the resulting doc in MODULES.html.
55521
55522 2008-07-12  Ben Pfaff  <blp@gnu.org>
55523
55524         Add longlong module.
55525         * modules/longlong: New file.
55526
55527 2008-07-12  Bruno Haible  <bruno@clisp.org>
55528
55529         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55530         to empty.
55531
55532 2008-07-10  Ben Pfaff  <blp@gnu.org>
55533
55534         Add isnan module.
55535         * doc/posix-functions/isnan.texi: Mention new module.
55536         * lib/math.in.h: Define isnan macro if we have decided to replace
55537         it.
55538         * m4/isnan.m4: New file.
55539         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55540         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55541         also.
55542         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55543         redundancy.
55544         * m4/math_h.m4: Initialize and substitute variables for isnan
55545         module.
55546         * modules/isnan: New file.
55547         * modules/isnan-tests: New file.
55548         * modules/math: Add substitutions for new module.
55549         * tests/test-isnan.c: New file.
55550         * MODULES.html.sh: Mention new module.
55551
55552 2008-07-10  Ben Pfaff  <blp@gnu.org>
55553
55554         Add isnanf module.
55555         * lib/isnanf.m4: New file.
55556         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55557         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55558         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55559         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55560         * modules/isnanf: New file.
55561         * modules/isnanf-tests: New file.
55562         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55563         files.
55564         * tests/test-isnanf-nolibm.c: factored most of its contents into
55565         new file tests/test-isnanf.h.
55566         * tests/test-isnanf.h: New file.
55567         * tests/test-isnanf.c: New file.
55568         * MODULES.html.sh: Mention new module.
55569         * doc/glibc-functions/isnanf.texi: Mention new module.
55570
55571 2008-07-10  Ben Pfaff  <blp@gnu.org>
55572
55573         Add isnand module.
55574         * lib/isnand.h: New file.
55575         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55576         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55577         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55578         functionality also.
55579         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55580         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55581         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55582         * modules/isnand: New file.
55583         * modules/isnand-tests: New file.
55584         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55585         files.
55586         * tests/test-isnand-nolibm.c: factored most of its contents into
55587         new file tests/test-isnand.h.
55588         * tests/test-isnand.h: New file.
55589         * tests/test-isnand.c: New file.
55590         * MODULES.html.sh: Mention new module.
55591
55592 2008-07-10  Ben Pfaff  <blp@gnu.org>
55593
55594         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55595         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55596         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55597         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55598         * modules/isnanf-nolibm: Update references to renamed files.
55599         * modules/isnand-nolibm: Likewise.
55600         * modules/isnanf-nolibm-tests: Likewise.
55601         * modules/isnand-nolibm-tests: Likewise.
55602         * lib/frexp.c: Likewise.
55603         * lib/isfinite.c: Likewise.
55604         * lib/signbitd.c: Likewise.
55605         * lib/signbitf.c: Likewise.
55606         * lib/vasnprintf.c: Likewise.
55607         * tests/test-ceilf1.c: Likewise.
55608         * tests/test-ceilf2.c: Likewise.
55609         * tests/test-floorf1.c: Likewise.
55610         * tests/test-floorf2.c: Likewise.
55611         * tests/test-frexp.c: Likewise.
55612         * tests/test-round1.c: Likewise.
55613         * tests/test-round2.c: Likewise.
55614         * tests/test-roundf1.c: Likewise.
55615         * tests/test-strtod.c: Likewise.
55616         * tests/test-trunc1.c: Likewise.
55617         * tests/test-trunc2.c: Likewise.
55618         * tests/test-truncf1.c: Likewise.
55619         * tests/test-truncf2.c: Likewise.
55620         * NEWS: Mention the renamed header files.
55621
55622 2008-07-11  Jim Meyering  <meyering@redhat.com>
55623
55624         vc-list-files: make the last-resort awk code more portable
55625         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55626         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55627         does not support it.
55628
55629 2008-07-10  Eric Blake  <ebb9@byu.net>
55630
55631         Work with tar's bootstrap.
55632         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55633         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55634         an m4 comment.
55635
55636 2008-07-09  Jim Meyering  <meyering@redhat.com>
55637
55638         posix-shell.m4: fix typo that made this test malfunction
55639         * m4/posix-shell.m4: Remove capitalization in variable name.
55640
55641 2008-07-08  Bruno Haible  <bruno@clisp.org>
55642
55643         * m4/onceonly.m4: Update comments.
55644         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55645
55646 2008-07-04  Jim Meyering  <meyering@redhat.com>
55647
55648         * users.txt: Add vc-dwim.
55649         (bison, coreutils): Use the gitweb URL.
55650
55651 2008-07-03  Jim Meyering  <meyering@redhat.com>
55652
55653         * users.txt: Add libffcall.  From Sam Steingold.
55654
55655 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55656
55657         getdate.y: do not ignore TZ with relative day, month or year offset
55658         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55659         relative-date-handling, since otherwise, the latter would clobber the
55660         sole output (an updated Start value) of the tz-handling block.
55661         * tests/test-getdate.c: Tests for the fix
55662
55663 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55664
55665         Recognize 'foo_LIBRARIES += libgnu.a'.
55666         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55667         makefile snippet has already specified an installation location,
55668         also using '+='.
55669
55670 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55671
55672         getdate.y: factor out common actions
55673         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55674         Use them in place of open-coded actions.
55675
55676 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55677
55678         Add self-test for getdate module.
55679         * modules/getdate-tests: New file.
55680         * tests/test-getdate.c: New file.
55681
55682 2008-06-29  Bruno Haible  <bruno@clisp.org>
55683
55684         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55685         .gitignore.
55686         Reported by Sylvain Beucler <beuc@beuc.net>.
55687
55688 2008-06-29  Bruno Haible  <bruno@clisp.org>
55689
55690         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55691         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55692
55693 2008-06-29  Bruno Haible  <bruno@clisp.org>
55694
55695         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55696         EXTRA_DIST.
55697         Reported by Sylvain Beucler <beuc@beuc.net>.
55698
55699 2008-06-26  Jim Meyering  <meyering@redhat.com>
55700
55701         make several modules depend on the "open" module
55702         This provides slightly increased consistency when opening-for-write
55703         the name of a non-directory spelled with a trailing slash.
55704         * modules/chdir-safer: Likewise.
55705         * modules/chown: Likewise.
55706         * modules/clean-temp: Likewise.
55707         * modules/copy-file: Likewise.
55708         * modules/fchdir: Likewise.
55709         * modules/fcntl-safer: Likewise.
55710         * modules/pipe: Likewise.
55711         * modules/utime: Likewise.
55712         Prompted by Eric Blake and Bruno Haible.
55713
55714 2008-06-24  Andreas Schwab  <schwab@suse.de>
55715
55716         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55717         literals can be used as initializers for global variables.
55718
55719 2008-06-23  Eric Blake  <ebb9@byu.net>
55720
55721         Make gnulib-cache.m4 easier to diff.
55722         * gnulib-tool (func_import): Allow newlines when reading cached
55723         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55724
55725 2008-06-23  Bruno Haible  <bruno@clisp.org>
55726
55727         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55728         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55729         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55730         m4/signalblocking.m4.
55731         (gl_PREREQ_SIGACTION): Don't invoke it.
55732         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55733         gl_PREREQ_SIG_HANDLER_H.
55734         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55735         Don't check for sigaction here.
55736
55737 2008-06-23  Bruno Haible  <bruno@clisp.org>
55738
55739         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55740         (install_handlers): Don't set the SA_RESETHAND flag.
55741
55742 2008-06-23  Bruno Haible  <bruno@clisp.org>
55743
55744         * m4/sigaction.m4: Comment fixes.
55745         * lib/signal.in.h: Likewise.
55746
55747 2008-06-23  Eric Blake  <ebb9@byu.net>
55748
55749         Fix typo.
55750         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55751
55752         Avoid SA_ namespace.
55753         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55754         Reported by Ralf Wildenhues.
55755
55756         Avoid test failure due to SA_RESTORER.
55757         * tests/test-sigaction.c (SA_MASK): New macro.
55758         (main): Avoid failing due to extension flags being set.
55759         Reported by Jim Meyering.
55760
55761         Revert use of sig-handler.h in sigprocmask.c.
55762         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55763         it requires the existence of struct sigaction.
55764         * lib/sigprocmask.c (handler_t): Restore typedef.
55765         (rpl_signal, old_handlers): Use local type.
55766
55767 2008-06-22  Bruno Haible  <bruno@clisp.org>
55768
55769         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55770         conditionally.
55771         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55772
55773 2008-06-22  Bruno Haible  <bruno@clisp.org>
55774
55775         * doc/posix-functions/siginterrupt.texi: Move note.
55776
55777         * lib/signal.in.h (SA_RESTART): New macro.
55778         * lib/sigaction.c: Update comment.
55779
55780         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55781
55782         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55783         (gl_PREREQ_SIGPROCMASK): Invoke it.
55784         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55785
55786         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55787
55788         * lib/sigprocmask.c: Update a comment.
55789
55790 2008-06-21  Eric Blake  <ebb9@byu.net>
55791
55792         Use sigaction module rather than signal().
55793         * modules/c-stack (Depends-on): Add sigaction.
55794         * modules/fatal-signal (Depends-on): Likewise.
55795         * modules/nanosleep (Depends-on): Likewise.
55796         * modules/sigprocmask (Files): Add sig-handler.h.
55797         * modules/sigaction (Files): Likewise.
55798         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55799         Eggert.
55800         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55801         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55802         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55803         (init_fatal_signals): Likewise.
55804         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55805         (siginterrupt): Delete fallback.
55806         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55807         instead.
55808         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55809         siginterrupt.
55810
55811         New module sigaction, for mingw.
55812         * modules/sigaction: New module...
55813         * modules/sigaction-tests: ...and its test.
55814         * m4/sigaction.m4: New file.
55815         * lib/sigaction.c: Likewise.
55816         * tests/test-sigaction.c: Likewise.
55817         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55818         * modules/signal (Makefile.am): Likewise.
55819         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55820         needed.
55821         * doc/posix-headers/signal.texi (signal.h): Mention provided
55822         types.
55823         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55824         that sigaction is preferable.
55825         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55826         module.
55827         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55828         sigaction.
55829
55830         Improve robustness of sigprocmask by overriding signal.
55831         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55832         is in use.
55833         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55834         (SIGKILL, SIGSTOP): Provide fallbacks.
55835         (rpl_signal): Implement.
55836         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55837         signal can be called inside handlers.
55838
55839         Fix nanosleep module on mingw.
55840         * modules/nanosleep (Depends-on): Add sys_select.
55841         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55842
55843         Fix licensing of sigprocmask.
55844         * modules/raise (License): Relicense as LGPL.
55845
55846 2008-06-21  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55849         result if it contains question marks.
55850         Reported by Michael Geng <linux@michaelgeng.de>.
55851
55852 2008-06-19  Bruno Haible  <bruno@clisp.org>
55853
55854         Fix CVS-ism.
55855         * doc/gnulib.texi: Include updated-stamp.texi.
55856         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55857         (updated-stamp.texi): New rule.
55858         (gnulib.info): Depend on it.
55859         * doc/.gitignore: Add updated-stamp.texi.
55860         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55861
55862 2008-06-19  Bruno Haible  <bruno@clisp.org>
55863
55864         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55866
55867 2008-06-19  Eric Blake  <ebb9@byu.net>
55868
55869         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55870         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55871         Reported by Stepan Kasal.
55872
55873 2008-06-18  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55876         Reported by Eric Blake.
55877
55878 2008-06-18  Eric Blake  <ebb9@byu.net>
55879
55880         Work around cygwin 1.5.25 strsignal bug.
55881         * tests/test-strsignal.c: Allow for const char *.
55882         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55883
55884 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55885
55886         * users.txt: Update URL to article and add author/date
55887         information.
55888
55889 2008-06-17  Bruno Haible  <bruno@clisp.org>
55890
55891         New macro gl_DISABLE_THREADS.
55892         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55893         if the user did not pass --enable-threads or --disable-threads option.
55894         (gl_DISABLE_THREADS): New macro.
55895         Reported by Eric Blake <ebb9@byu.net>.
55896
55897 2008-06-17  Bruno Haible  <bruno@clisp.org>
55898
55899         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55900         when the macro ignores it.
55901         Based on a patch by Eric Blake <ebb9@byu.net>.
55902
55903 2008-06-17  Bruno Haible  <bruno@clisp.org>
55904
55905         * modules/tls (License): Change to LGPLv2+.
55906         Reported by Eric Blake.
55907
55908 2008-06-17  Eric Blake  <ebb9@byu.net>
55909
55910         Simplify c-stack prerequisites.
55911         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55913         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55914         check.
55915         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55916         <sys/resource.h>.
55917
55918         Move c-stack test into testsuite.
55919         * modules/c-stack-tests: New file.
55920         * lib/c-stack.c [DEBUG]: Move test program...
55921         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55922         fail test if sigaltstack is lacking.
55923         * tests/test-c-stack.sh: New driver file.
55924
55925 2008-06-16  Eric Blake  <ebb9@byu.net>
55926
55927         Use raise module consistently.
55928         * modules/fatal-signal (Depends-on): Add raise.
55929         * modules/sigprocmask (Depends-on): Likewise.
55930         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55931         * lib/sigprocmask.c (sigprocmask): Likewise.
55932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55933         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55934
55935         Fix compliance bug in sigpending.
55936         * lib/sigprocmask.c (sigpending): Return pending array via
55937         parameter, not return value.
55938
55939 2008-06-14  Eric Blake  <ebb9@byu.net>
55940
55941         Improve obstack-printf test code.
55942         * tests/test-obstack-printf.c (test_function): Fix comment, and
55943         simplify usage of obstack_* in macros.  Add a test for coverage.
55944         Reported by Bruno Haible.
55945
55946 2008-06-14  Bruno Haible  <bruno@clisp.org>
55947
55948         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55949         array size as a constant, not as a const variable.
55950         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55951         AC_USE_SYSTEM_EXTENSIONS.
55952         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55953         Test whether the obstack_printf function actually exists.
55954         * modules/obstack-printf (Depends-on): Add extensions.
55955         (Include): Remove obstack.h.
55956         * modules/obstack-printf-posix (Depends-on): Add extensions.
55957         (Include): Remove obstack.h.
55958
55959 2008-06-13  Eric Blake  <ebb9@byu.net>
55960
55961         Add obstack-printf and obstack-printf-posix modules.
55962         * modules/obstack-printf: New file.
55963         * modules/obstack-printf-posix: Likewise.
55964         * MODULES.html.sh (Misc): Mention them.
55965         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55966         Likewise.
55967         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55968         Likewise.
55969         * modules/stdio (Makefile.am): Accomodate new modules.
55970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55971         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55972         Declare.
55973         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55974         functions.
55975         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55976         (gl_REPLACE_OBSTACK_PRINTF): New macros
55977         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55978         * tests/test-obstack-printf.c: New file.
55979         * modules/obstack-printf-tests: Likewise.
55980         * modules/obstack-printf-posix-tests: Likewise.
55981
55982 2008-06-11  Bruno Haible  <bruno@clisp.org>
55983
55984         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55985         * lib/open.c: Include errno.h.
55986         (open): Fail when attempting to write to a file that has a trailing
55987         slash.
55988         * tests/test-open.c (main): Test against trailing slash bug.
55989         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55990
55991 2008-06-10  Bruno Haible  <bruno@clisp.org>
55992
55993         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55994         for $? to work inside the trap command, with various /bin/sh-s.
55995         * tests/test-vc-list-files-cvs.sh: Likewise.
55996
55997 2008-06-10  Bruno Haible  <bruno@clisp.org>
55998
55999         * lib/acl-internal.h: Don't include gettext.h here.
56000         * lib/set-mode-acl.c: Include gettext.h here.
56001         * lib/copy-acl.c: Likewise.
56002
56003 2008-06-10  Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56006         * lib/wait-process.c (wait_subprocess): Likewise.
56007         * lib/execute.h (execute): Add termsigp argument.
56008         * lib/execute.c (execute): Likewise.
56009         * lib/csharpcomp.c (compile_csharp_using_pnet,
56010         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56011         * lib/csharpexec.c (execute_csharp_using_pnet,
56012         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56013         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56014         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56015         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56016         is_jikes_present): Update.
56017         * lib/javaexec.c (execute_java_class): Update.
56018         * lib/javaversion.c (execute_and_read_line): Update.
56019         * NEWS: Document the changes.
56020         Reported by Eric Blake.
56021
56022 2008-06-10  Eric Blake  <ebb9@byu.net>
56023
56024         Add missing include.
56025         * tests/test-strstr.c (includes): Add <signal.h>.
56026         * tests/test-strcasestr.c (includes): Likewise.
56027         * tests/test-memmem.c (includes): Likewise.
56028
56029 2008-06-10  Bruno Haible  <bruno@clisp.org>
56030
56031         * lib/wait-process.c (wait_subprocess): Add an assertion.
56032
56033 2008-06-10  Bruno Haible  <bruno@clisp.org>
56034
56035         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56036
56037 2008-06-10  Bruno Haible  <bruno@clisp.org>
56038
56039         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56040         using alarm().
56041         * tests/test-strcasestr.c (main): Likewise.
56042         * tests/test-strstr.c (main): Likewise.
56043
56044 2008-06-09  Bruno Haible  <bruno@clisp.org>
56045
56046         Work around the Solaris 10 ACE ACLs ABI change.
56047         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56048         declare if ACL_NO_TRIVIAL is present.
56049         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56050         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56051         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56052         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56053         define if ACL_NO_TRIVIAL is present.
56054         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56055         and use the current ABI.
56056         (file_has_acl): Use same #if condition as elsewhere.
56057         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56058         in use, and use the current ABI.
56059         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56060         Reported by Jim Meyering.
56061
56062 2008-06-09  Eric Blake  <ebb9@byu.net>
56063
56064         Work around environments that (stupidly) ignore SIGALRM.
56065         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56066         before using alarm().
56067         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56068         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56069         Reported by Ian Beckwith <ianb@erislabs.net>.
56070
56071         Produce autobuild blurb earlier in log.
56072         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56073
56074 2008-06-09  Jim Meyering  <meyering@redhat.com>
56075         and OndÅ™ej Vašík  <ovasik@redhat.com>
56076
56077         utimens.c: correct kernel bug work-around
56078         OndÅ™ej Vašík found that the invalid return value of 280 indicates
56079         failure, not success, and the kernel bug we're trying to work
56080         around affects not just the utimensat call, but also the fallback
56081         futimens call.
56082         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56083         not success.
56084         [HAVE_FUTIMENS]: Use the same work-around, here.
56085
56086 2008-06-09  Jim Meyering  <meyering@redhat.com>
56087
56088         add more guards around definition of ACE_-related code
56089         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56090         ALLOW and ACE_OWNER are also defined.
56091
56092 2008-06-08  Bruno Haible  <bruno@clisp.org>
56093
56094         * lib/acl-internal.h: Add me as co-author.
56095         * lib/file-has-acl.c: Likewise.
56096         * lib/set-mode-acl.c: Likewise.
56097         * lib/copy-acl.c: Likewise.
56098
56099 2008-06-08  Bruno Haible  <bruno@clisp.org>
56100
56101         Add support for AIX ACLs.
56102         * lib/acl-internal.h (acl_nontrivial): New declaration.
56103         * lib/file-has-acl.c (acl_nontrivial): New function.
56104         (file_has_acl): Add implementation using AIX 4 ACL API.
56105         * lib/set-mode-acl.c (qset_acl): Likewise.
56106         * lib/copy-acl.c (qcopy_acl): Likewise.
56107
56108 2008-06-08  Bruno Haible  <bruno@clisp.org>
56109
56110         Add support for HP-UX ACLs.
56111         * lib/acl-internal.h (acl_nontrivial): New declaration.
56112         * lib/file-has-acl.c (acl_nontrivial): New function.
56113         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56114         * lib/set-mode-acl.c (qset_acl): Likewise.
56115         * lib/copy-acl.c (qcopy_acl): Likewise.
56116
56117 2008-06-08  Bruno Haible  <bruno@clisp.org>
56118
56119         Add support for Cygwin ACLs.
56120         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56121         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56122         the chmod_or_fchmod call.
56123         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56124
56125 2008-06-08  Bruno Haible  <bruno@clisp.org>
56126
56127         Fix bug with setuid modes in Solaris 10+ code.
56128         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56129         succeeded, when the mode contains some special bits.
56130
56131 2008-06-08  Bruno Haible  <bruno@clisp.org>
56132
56133         Add support for Solaris 7..10 ACLs.
56134         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56135         declarations.
56136         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56137         functions.
56138         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56139         * lib/set-mode-acl.c (qset_acl): Likewise.
56140         * lib/copy-acl.c (qcopy_acl): Likewise.
56141
56142 2008-06-08  Bruno Haible  <bruno@clisp.org>
56143
56144         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56145         declaration.
56146         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56147         (acl_access_nontrivial): Remove MacOS X case.
56148         (file_has_acl): Use acl_extended_nontrivial.
56149         * lib/copy-acl.c (qcopy_acl): Likewise.
56150
56151 2008-06-08  Bruno Haible  <bruno@clisp.org>
56152
56153         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56154
56155 2008-06-08  Jim Meyering  <meyering@redhat.com>
56156
56157         * modules/acl (Maintainer): Add Bruno Haible.
56158
56159 2008-06-07  Bruno Haible  <bruno@clisp.org>
56160
56161         Improve support for Tru64 ACLs.
56162         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56163         ACL on OSF/1.
56164
56165 2008-06-07  Bruno Haible  <bruno@clisp.org>
56166
56167         Add support for MacOS X ACLs.
56168         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56169         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56170         * lib/set-mode-acl.c (qset_acl): Likewise.
56171         * lib/copy-acl.c (qcopy_acl): Likewise.
56172
56173 2008-06-07  Bruno Haible  <bruno@clisp.org>
56174
56175         Fix memory leak introduced on 2008-05-22.
56176         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56177         use.
56178
56179 2008-06-07  Bruno Haible  <bruno@clisp.org>
56180
56181         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56182         to construct an empty ACL.
56183
56184 2008-06-07  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56187         precisely.
56188         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56189
56190 2008-06-07  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56193         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56194
56195 2008-06-07  Bruno Haible  <bruno@clisp.org>
56196
56197         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56198         regardless of POSIX.
56199         * doc/posix-functions/_longjmp.texi: Likewise.
56200         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56201         SystemV platform in this case.
56202
56203 2008-06-06  Eric Blake  <ebb9@byu.net>
56204
56205         Document abort() bugs.
56206         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56207
56208         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56209         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56210         sigsetjmp.
56211         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56212         siglongjmp, but only as a macro.
56213         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56214         is obsolete.
56215         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56216
56217         Tweak documentation to cover cygwin argz bugs.
56218         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56219         argz bug fix; no code change needed since no cygwin releases
56220         occurred between the last fix and the bug being tested.
56221         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56222         module and recently fixed cygwin bugs.
56223         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56224         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56225         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56226         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56227         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56228         Likewise.
56229         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56230         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56231         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56232         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56233         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56234         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56235         Likewise.
56236
56237         Avoid gcc warning on cygwin.
56238         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56239         !ACL_NO_TRIVIAL]: Avoid unused variable.
56240
56241 2008-06-05  Eric Blake  <ebb9@byu.net>
56242
56243         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56244         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56245         git-version-gen fails to come up with a version.
56246         Reported by Simon Josefsson.
56247
56248 2008-06-05  Jim Meyering  <meyering@redhat.com>
56249             Paul Eggert  <eggert@cs.ucla.edu>
56250
56251         utimens.c: work around a probable Linux kernel bug
56252         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56253         appears to be a kernel bug that causes utimensat to return 280
56254         instead of 0, indicating success.
56255
56256 2008-06-04  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56259         2008-06-01 commit.
56260
56261 2008-06-04  Bruno Haible  <bruno@clisp.org>
56262
56263         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56264         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56265         (file_has_acl): Use it. Save errno afterwards.
56266         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56267
56268 2008-06-03  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56271         draft code. Simplify #ifs.
56272         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56273         Put Solaris code after POSIX-draft code. Fix comments regarding
56274         Solaris 10, HP-UX. Mention Cygwin.
56275         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56276
56277 2008-06-03  Eric Blake  <ebb9@byu.net>
56278
56279         Provide fallback for older kernels.
56280         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56281         Provide runtime fallback if kernel lacks support.
56282         Reported by Mike Frysinger.
56283
56284 2008-06-02  Bruno Haible  <bruno@clisp.org>
56285
56286         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56287         it exists.
56288
56289 2008-06-02  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56292         * lib/copy-acl.c (qcopy_acl): Update comment.
56293
56294 2008-06-02  Bruno Haible  <bruno@clisp.org>
56295
56296         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56297         like ACL APIs.
56298
56299 2008-06-02  Bruno Haible  <bruno@clisp.org>
56300
56301         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56302         * tests/test-set-mode-acl.sh: Likewise.
56303         * tests/test-copy-acl.sh: Likewise.
56304         * tests/test-copy-file.sh: Likewise.
56305
56306 2008-06-02  Bruno Haible  <bruno@clisp.org>
56307
56308         * tests/test-file-has-acl.sh: Remove unused code.
56309
56310 2008-06-01  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56313         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56314         messages.
56315         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56316
56317 2008-06-01  Bruno Haible  <bruno@clisp.org>
56318
56319         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56320         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56321         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56322         APIs.
56323         * modules/acl-tests (configure.ac): Remove tests now contained in
56324         m4/acl.m4.
56325
56326 2008-06-02  Jim Meyering  <meyering@redhat.com>
56327
56328         announce-gen: use a better key-server host name
56329         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56330         it may be more consistently reliable.  Suggested by Werner Koch
56331         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56332
56333 2008-06-01  Bruno Haible  <bruno@clisp.org>
56334
56335         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56336         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56337
56338 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56339
56340         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56341
56342 2008-06-01  Bruno Haible  <bruno@clisp.org>
56343
56344         New ACL tests.
56345         * tests/test-file-has-acl.sh: New file.
56346         * tests/test-file-has-acl.c: New file.
56347         * tests/test-set-mode-acl.sh: New file.
56348         * tests/test-set-mode-acl.c: New file.
56349         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56350         * tests/test-copy-acl.c: New file.
56351         * modules/acl-tests: New file, based on modules/copy-file-tests.
56352         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56353         (Depends-on): Add acl-tests.
56354         (configure.ac): Remove checks.
56355         (Makefile.am): Don't create test-sameacls program here any more.
56356
56357 2008-06-01  Bruno Haible  <bruno@clisp.org>
56358
56359         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56360         * tests/test-sameacls.c: Include progname.h.
56361         (main): Invoke set_program_name. Portability fixes for MacOS X,
56362         Solaris, HP-UX.
56363
56364 2008-06-01  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56367         function.
56368         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56369
56370 2008-06-01  Bruno Haible  <bruno@clisp.org>
56371
56372         * modules/rpmatch (Depends-on): Add strdup.
56373
56374 2008-06-01  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/pipe.c: Include unistd-safer.h.
56377         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56378         * modules/pipe (Depends-on): Add unistd-safer.
56379
56380 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56381
56382         * modules/autobuild (configure.ac): Call AB_INIT.
56383
56384 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56385
56386         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56387         Suggested by Bruno Haible <bruno@clisp.org>.
56388
56389 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56390
56391         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56392         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56393         <bruno@clisp.org>.
56394
56395 2008-05-29  Eric Blake  <ebb9@byu.net>
56396
56397         Prefer new POSIX 200x interfaces over futimesat.
56398         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56399         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56400         when available.
56401         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56402
56403 2008-05-28  Bruno Haible  <bruno@clisp.org>
56404
56405         * modules/stpcpy (License): Change to LGPLv2+.
56406         Requested by David Lutterkort <dlutter@redhat.com>.
56407
56408 2008-05-27  Bruno Haible  <bruno@clisp.org>
56409
56410         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56411         current mingw.
56412         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56413
56414 2008-05-27  Bruno Haible  <bruno@clisp.org>
56415
56416         * modules/iconv_open (Link): New section, from module 'iconv'.
56417         * modules/striconv (Link): Likewise.
56418         * modules/striconveh (Link): Likewise.
56419         * modules/xstriconv (Link): Likewise.
56420         * modules/unicodeio (Link): Likewise.
56421         * modules/propername (Link): Likewise.
56422         Reported by Jim Meyering.
56423
56424 2008-05-26  Jim Meyering  <meyering@redhat.com>
56425
56426         sha256: do not artificially restrict buffer length to be < 2^32
56427         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56428         uint32_t to size_t.
56429         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56430         to match.
56431
56432         avoid unaligned access errors, e.g., on sparc
56433         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56434         direct access through a possibly-unaligned uint64* pointer.
56435         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56436         direct access through a possibly-unaligned uint32* pointer.
56437         Prompted by this patch from Tom "spot" Callaway:
56438         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56439
56440         sha512.c: fix typo in comment
56441         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56442
56443 2008-05-25  Bruno Haible  <bruno@clisp.org>
56444
56445         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56446         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56447         (Makefile.am): Update lib_SOURCES.
56448
56449 2008-05-25  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56452
56453 2008-05-25  Jim Meyering  <meyering@redhat.com>
56454
56455         useless-if-before-free: freed expr may have white-space differences
56456         * build-aux/useless-if-before-free: Recognize cases in which the
56457         freed expression differs from the tested one in embedded white
56458         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56459         $1 was used, so we can't make any regexp shy.  Improved tests now
56460         detect this.
56461
56462         useless-if-before-free: accept white space in the expression.
56463         * build-aux/useless-if-before-free: For now, any white space
56464         in the expression must be identical in the free argument.
56465
56466         useless-if-before-free: efficiency tweak
56467         * build-aux/useless-if-before-free: Make the expression-matching
56468         regexp "shy".
56469         Make the *outer* regexp shy, not the expr-matching one.
56470
56471         update code-in-comment to accept cast of free arg
56472         * build-aux/useless-if-before-free: Update regexp.
56473
56474 2008-05-25  Bruno Haible  <bruno@clisp.org>
56475
56476         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56477         * modules/copy-file-tests (Files, Makefile.am): Update.
56478         * tests/test-copy-file.c (func_test_copy): Update.
56479
56480 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56481
56482         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56483
56484 2008-05-23  Bruno Haible  <bruno@clisp.org>
56485
56486         Improve support for ACLs on OSF/1.
56487         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56488         Remove fallback for unknown flavors of ACLs.
56489
56490 2008-05-22  Bruno Haible  <bruno@clisp.org>
56491
56492         Add support for ACLs on OSF/1.
56493         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56494         replacements.
56495         (acl_free_text): New macro fallback.
56496         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56497         acl_free.
56498         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56499         acl_free_text function. Require AC_C_INLINE.
56500
56501 2008-05-22  Bruno Haible  <bruno@clisp.org>
56502
56503         Make copy_acl work on MacOS X 10.5.
56504         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56505         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56506         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56507         If MODE_INSIDE_ACL, don't assume that every system has the same text
56508         representation for ACLs as FreeBSD.
56509         * lib/copy-acl.c (copy_acl): Add support for platforms with
56510         !MODE_INSIDE_ACL.
56511         * lib/file-has-acl.c (file_has_acl): Likewise.
56512         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56513         FreeBSD, MacOS X, or IRIX, respectively.
56514
56515 2008-05-22  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/acl.h: Don't include <sys/acl.h>.
56518         (GETACLCNT): Move fallback to lib/acl-internal.h.
56519         * lib/acl-internal.h: Include <sys/acl.h> here.
56520         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56521
56522 2008-05-22  Bruno Haible  <bruno@clisp.org>
56523
56524         Split off copy_acl function to separate file.
56525         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56526         * lib/acl.c (copy_acl): Moved function to separate file.
56527         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56528         * modules/acl (Files): Add lib/copy-acl.c.
56529         (Makefiles.am): Augment lib_SOURCES.
56530
56531 2008-05-22  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/copy-file-tests: New file.
56534         * tests/test-copy-file.sh: New file.
56535         * tests/test-copy-file.c: New file.
56536         * tests/test-copy-file-sameacls.c: New file.
56537
56538 2008-05-22  Eric Blake  <ebb9@byu.net>
56539
56540         Avoid gcc warning.
56541         * tests/test-memcmp.c (main): Pass NULL indirectly.
56542
56543 2008-05-21  Bruno Haible  <bruno@clisp.org>
56544
56545         Add reference doc about ACLs.
56546         * doc/acl-resources.txt: New file.
56547         * doc/acl-cygwin.txt: New file.
56548
56549 2008-05-21  Bruno Haible  <bruno@clisp.org>
56550
56551         Avoid one more warning from gcc.
56552         * lib/vasnprintf.c (IF_LINT): Update comments.
56553         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56554
56555 2008-05-21  Jim Meyering  <meyering@redhat.com>
56556
56557         avoid a warning from gcc
56558         * lib/vasnprintf.c (IF_LINT): Define.
56559         (scale10_round_decimal_long_double):
56560         Use it to avoid a "may be used uninitialized" warning.
56561         (scale10_round_decimal_double): Likewise.
56562
56563 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56564
56565         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56566         declared.
56567
56568 2008-05-20  Bruno Haible  <bruno@clisp.org>
56569
56570         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56571         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56572
56573 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56574
56575         * modules/memcmp-tests: New file.
56576         * tests/test-memcmp.c: New file.
56577
56578 2008-05-19  Bruno Haible  <bruno@clisp.org>
56579
56580         * modules/propername (Notice, configure.ac): Put quoted "..." into
56581         --keyword option.
56582         * lib/propername.h: Update comments accordingly.
56583         Reported by Eric Blake.
56584
56585 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56586
56587         * modules/getpass-gnu (Depends-on): Add fseeko.
56588
56589 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56590
56591         * modules/base64-tests: New file.
56592
56593 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56594
56595         * lib/base64.c (base64_decode_ctx): If a decode context structure
56596         was passed in use it to ignore newlines.  If a context structure
56597         was _not_ passed in, continue to treat newlines as garbage (this
56598         is the historical behavior).  Formerly base64_decode.
56599         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56600         takes a decode context structure.
56601         * lib/base64.h (base64_decode): Macro for four-argument calls.
56602         (base64_decode_alloc): Likewise.
56603         * lib/base64.c (base64_decode_ctx): If a decode context structure
56604         was passed in use it to ignore newlines.  If a context structure
56605         was _not_ passed in, continue to treat newlines as garbage (this
56606         is the historical behavior).  Formerly base64_decode.
56607         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56608         takes a decode context structure.
56609         * lib/base64.h (base64_decode): Macro for four-argument calls.
56610         (base64_decode_alloc): Likewise.
56611
56612 2008-05-19  Jim Meyering  <meyering@redhat.com>
56613
56614         avoid a warning from gcc
56615         * lib/trim.c (IF_LINT): Define.
56616         (trim2): Use it to avoid a "may be used uninitialized" warning.
56617
56618         Fix doc typo.
56619         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56620
56621 2008-05-19  Bruno Haible  <bruno@clisp.org>
56622
56623         * doc/glibc-functions/getpass.texi: Document limits of other
56624         implementations.
56625
56626 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56627             Bruno Haible <bruno@clisp.org>
56628
56629         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56630
56631 2008-05-18  Bruno Haible  <bruno@clisp.org>
56632
56633         * modules/propername: New file, from GNU gettext.
56634         * lib/propername.h: New file, from GNU gettext.
56635         * lib/propername.c: New file, from GNU gettext.
56636         * MODULES.html.sh (Internationalization functions): Add propername.
56637
56638 2008-05-16  Jim Meyering  <meyering@redhat.com>
56639             Bruno Haible  <bruno@clisp.org>
56640
56641         Avoid some warnings from "gcc -Wshadow".
56642         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56643
56644 2008-05-15  Eric Blake  <ebb9@byu.net>
56645
56646         Extend previous patch to cygwin 1.7.0.
56647         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56648         fast implementation in cygwin >= 1.7.0.
56649         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56651
56652 2008-05-15  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56655         implementation in glibc >= 2.9.
56656         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56658
56659 2008-05-15  Bruno Haible  <bruno@clisp.org>
56660
56661         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56662         (Unicode string functions): Add unilbrk/*.
56663         Reported by Karl Berry.
56664
56665 2008-05-15  Eric Blake  <ebb9@byu.net>
56666
56667         Fix violation of <stdbool.h> replacement in regex.
56668         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56669         * lib/regexec.c (re_search_internal): Likewise.
56670         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56671
56672 2008-05-15  Jim Meyering  <meyering@redhat.com>
56673
56674         avoid distracting test output when git or cvs is not found
56675         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56676         * tests/test-vc-list-files-git.sh: Likewise.
56677
56678 2008-05-15  Eric Blake  <ebb9@byu.net>
56679
56680         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56681         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56682         glibc version.
56683         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56684         * doc/posix-functions/strstr.texi (strstr): Likewise.
56685         * lib/str-two-way.h (MAX): Sychronize with glibc.
56686
56687 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56688
56689         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56690         opr.ctx_type.
56691         (calc_first): Initialize constraint field.
56692         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56693         Fix grammar.
56694         (duplicate_node): Merge constraint field for all node types.
56695         (calc_eclosure_iter): Look at constraint field for all node types.
56696         * lib/regex_internal.c (create_cd_newstate): Don't look at
56697         opr.ctx_type.
56698
56699 2008-05-14  Bruno Haible  <bruno@clisp.org>
56700
56701         Help GCC to do better code generation.
56702         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56703         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56704         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56705         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56706         Declare with attribute 'malloc' if supported.
56707
56708 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56709
56710         use "echo STR|wc -c" rather than unportable "expr length STR"
56711         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56712         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56713
56714 2008-05-14  Jim Meyering  <meyering@redhat.com>
56715
56716         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56717         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56718         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56719         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56720         via Collin Lasse.
56721
56722 2008-05-14  Eric Blake  <ebb9@byu.net>
56723
56724         Avoid quadratic growth in gl_LIBSOURCES.
56725         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56726         Suggested by Bruno Haible.
56727
56728         Test xmemdup0.
56729         * modules/xmemdup0-tests: New file.
56730         * tests/test-xmemdup0.c: Likewise.
56731
56732 2008-05-13  Eric Blake  <ebb9@byu.net>
56733
56734         Split xmemdup0 into its own module.
56735         * modules/xmemdup0: New file.
56736         * lib/xmemdup0.h: Likewise.
56737         * lib/xmemdup0.c: Likewise.
56738         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56739         * lib/xalloc.h (xmemdup0): Remove.
56740         * lib/xmalloc.c (xmemdup0): Likewise.
56741
56742 2008-05-13  Eric Blake  <ebb9@byu.net>
56743             Bruno Haible  <bruno@clisp.org>
56744
56745         Reduce number of forks required during autoconf.
56746         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56747         and gl_LIBSOURCES_DIR.
56748         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56749         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56750         m4_syscmd per file.
56751         <m4_foreach_w>: Move...
56752         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56753
56754 2008-05-13  Eric Blake  <ebb9@byu.net>
56755
56756         * gnulib-tool: Fix various comment typos.
56757
56758 2008-05-12  Bruno Haible  <bruno@clisp.org>
56759
56760         Tailor the linebreaking algorithm.
56761         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56762
56763 2008-05-12  Bruno Haible  <bruno@clisp.org>
56764
56765         Update to Unicode 5.0.0.
56766         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56767         LBP_JV, LBP_JT. Redistribute values.
56768         (unilbrk_table): Change size.
56769         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56770         Unicode TR#14 rev. 22.
56771         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56772         LBP_JV, LBP_JT. Redistribute values.
56773         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56774         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56775         Update.
56776         * lib/unilbrk/lbrkprop1.h: Regenerated.
56777         * lib/unilbrk/lbrkprop2.h: Regenerated.
56778         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56779         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56780         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56781         Likewise.
56782         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56783         Likewise.
56784         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56785         result.
56786         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56787         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56788         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56789         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56790         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56791         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56792
56793 2008-05-11  Bruno Haible  <bruno@clisp.org>
56794
56795         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56796
56797 2008-05-11  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56800         * modules/unilbrk/gen-lbrk: New file.
56801
56802 2008-05-11  Bruno Haible  <bruno@clisp.org>
56803
56804         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56805         * m4/sha512.m4 (gl_SHA512): Likewise.
56806
56807 2008-05-11  Jim Meyering  <meyering@redhat.com>
56808
56809         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56810         * modules/crypto/sha256: New file.
56811         * modules/crypto/sha512: Likewise.
56812         * lib/sha256.c: Likewise.
56813         * lib/sha256.h: Likewise.
56814         * lib/sha512.c: Likewise.
56815         * lib/sha512.h: Likewise.
56816         * lib/u64.h: Likewise.
56817         * m4/sha256.m4: Likewise.
56818         * m4/sha512.m4: Likewise.
56819         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56820
56821 2008-05-10  Bruno Haible  <bruno@clisp.org>
56822
56823         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56824         (Input/Output <stdio.h>): Add xprintf.
56825         (Signal handling <signal.h>): Add strsignal.
56826         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56827         (Core language properties): Add func.
56828         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56829         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56830         strings.
56831         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56832         (Input/output): New section.
56833         (File system functions): Add openat-die, stat-macros.
56834         (Networking functions): Add sockets.
56835         (Unicode string functions): Add unictype/*.
56836         (Support for building libraries and executables): Add gperf.
56837         (Support for building documentation): Add agpl-3.0.
56838         (Misc): Add nocrash.
56839
56840 2008-05-10  Bruno Haible  <bruno@clisp.org>
56841
56842         * modules/unictype/gen-ctype: New file.
56843
56844 2008-05-10  Jim Meyering  <meyering@redhat.com>
56845
56846         Make chdir-safer.c more efficient on a system with no symlinks.
56847         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56848         also if ELOOP is zero.  Suggested by Bruno Haible.
56849
56850         Make chdir-safer.c slightly safer.
56851         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56852         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56853
56854         Avoid compile failure on systems without ELOOP (like mingw).
56855         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56856         Reported by Bruno Haible.
56857
56858 2008-05-10  Bruno Haible  <bruno@clisp.org>
56859
56860         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56861         (is_utf8_encoding): Use a case-insensitive comparison.
56862         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56863         streq.
56864
56865 2008-05-10  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56868         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56869         * lib/unilbrk/ulc-common.h (iconv_string_length,
56870         iconv_string_keeping_offsets): Remove declarations.
56871         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56872         Don't include <iconv.h>, streq.h, xsize.h.
56873         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56874         conversion.
56875         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56876         <iconv.h>, streq.h, xsize.h.
56877         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56878         conversion.
56879         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56880         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56881         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56882         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56883
56884 2008-05-10  Bruno Haible  <bruno@clisp.org>
56885
56886         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56887         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56888
56889         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56890         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56891
56892         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56893         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56894
56895         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56896         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56897
56898         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56899         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56900
56901         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56902         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56903
56904         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56905         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56906
56907         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56908         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56909
56910 2008-05-10  Bruno Haible  <bruno@clisp.org>
56911
56912         Split up 'linebreak' module.
56913         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56914         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56915         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56916         modifications.
56917         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56918         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56919         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56920         lib/linebreak.c.
56921         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56922         lib/linebreak.c.
56923         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56924         lib/linebreak.c.
56925         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56926         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56927         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56928         lib/linebreak.c.
56929         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56930         lib/linebreak.c.
56931         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56932         lib/linebreak.c.
56933         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56934         lib/linebreak.c.
56935         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56936         lib/linebreak.c.
56937         * modules/unilbrk/base: New file.
56938         * modules/unilbrk/tables: New file.
56939         * modules/unilbrk/u8-possible-linebreaks: New file.
56940         * modules/unilbrk/u16-possible-linebreaks: New file.
56941         * modules/unilbrk/u32-possible-linebreaks: New file.
56942         * modules/unilbrk/ulc-common: New file.
56943         * modules/unilbrk/ulc-possible-linebreaks: New file.
56944         * modules/unilbrk/u8-width-linebreaks: New file.
56945         * modules/unilbrk/u16-width-linebreaks: New file.
56946         * modules/unilbrk/u32-width-linebreaks: New file.
56947         * modules/unilbrk/ulc-width-linebreaks: New file.
56948         * lib/linebreak.h: Remove file.
56949         * lib/linebreak.c: Remove file.
56950         * m4/linebreak.m4: Remove file.
56951         * modules/linebreak: Remove file.
56952         * NEWS: Mention the changes.
56953
56954 2008-05-09  Eric Blake  <ebb9@byu.net>
56955
56956         Add xmemdup0.
56957         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56958         implementation.
56959         * lib/xmalloc.c (xmemdup0): New C implementation.
56960
56961 2008-05-08  Bruno Haible  <bruno@clisp.org>
56962
56963         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56964
56965 2008-05-07  Eric Blake  <ebb9@byu.net>
56966
56967         Support cross-compilation of <wctype.h>.
56968         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56969         AC_CACHE_CHECK.
56970
56971 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56972
56973         * build-aux/vc-list-files: Add support for bzr.
56974
56975 2008-05-03  Jim Meyering  <meyering@redhat.com>
56976
56977         avoid failed assertion with tight malloc
56978         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56979
56980 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56981
56982         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56983         are needed from arpa/inet.h.
56984         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56985         Reported by Bruno Haible.
56986
56987 2008-05-02  Jim Meyering  <meyering@redhat.com>
56988
56989         avoid compilation error on FreeBSD 6
56990         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56991
56992 2008-05-01  Jim Meyering  <meyering@redhat.com>
56993
56994         useless-if-before-free: correct --help's exit status description
56995         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56996         for one or more matches, etc.  Reported by Bruno Haible.
56997
56998         vc-list-files: make the stand-alone gnulib test work
56999         * modules/vc-list-files-tests (configure.ac):
57000         Define and AC_SUBST abs_aux_dir.
57001         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57002         $(abs_top_srcdir) to each script and having each of them
57003         duplicate the work of setting PATH, set PATH here, using
57004         the new variable, abs_aux_dir instead.
57005         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57006         * tests/test-vc-list-files-git.sh: Likewise.
57007         Reported by Bruno Haible.
57008
57009 2008-05-01  Bruno Haible  <bruno@clisp.org>
57010
57011         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57012         reallocation. Rename 'done' to 'found_delimiter'.
57013
57014 2008-05-01  Jim Meyering  <meyering@redhat.com>
57015
57016         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57017         * build-aux/vc-list-files: Use `...`, not $(...).
57018
57019 2008-04-30  Jim Meyering  <meyering@redhat.com>
57020
57021         add tests for vc-list-files
57022         * modules/vc-list-files-tests: New module.
57023         * tests/test-vc-list-files-cvs.sh: New file.
57024         * tests/test-vc-list-files-git.sh: New file.
57025
57026         avoid a warning from gcc
57027         * lib/getndelim2.c (IF_LINT): Define.
57028         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57029
57030         vc-list-files: work properly with build-aux/cvsu, too
57031         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57032         to all cvs-based clauses.
57033
57034         vc-list-files: work properly in the CVS+awk case, too
57035         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57036
57037         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57038         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57039         take more than one file argument, so .  Add quotes, just in case $dir
57040         ever contains a shell meta-character.  Prompted by Soren Hansen in
57041         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57042
57043 2008-04-29  Eric Blake  <ebb9@byu.net>
57044
57045         Optimize getndelim2 to use block operations when possible.
57046         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57047         freadseek, and memchr2.
57048         * lib/getndelim2.c (getndelim2): Use them for block reads.
57049
57050 2008-04-29  Bruno Haible  <bruno@clisp.org>
57051
57052         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57053         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57054         * modules/inet_ntop (Depends-on): Add extensions.
57055         * modules/inet_pton (Depends-on): Likewise.
57056         Reported by Simon Josefsson.
57057
57058 2008-04-29  Jim Meyering  <meyering@redhat.com>
57059
57060         When the is more than one match in a block, match all of them.
57061         * build-aux/useless-if-before-free: Iterate through each block
57062         until there are no more matches.
57063
57064         Fix broken useless-if-before-free script.
57065         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57066         the expression to match cast of argument to free-like function.
57067
57068 2008-04-29  Eric Blake  <ebb9@byu.net>
57069
57070         Use new header.
57071         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57072
57073 2008-04-29  Jim Meyering  <meyering@redhat.com>
57074
57075         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57076         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57077         by gnulib to exist and to declare e.g., inet_ntop.
57078         Don't include "inet_ntop.h", now removed.
57079
57080         * m4/arpa_inet_h.m4: Remove trailing blanks.
57081
57082 2008-04-29  Eric Blake  <ebb9@byu.net>
57083
57084         Silence valgrind on safe reads beyond potential array bounds.
57085         * lib/rawmemchr.valgrind: New file.
57086         * lib/strchrnul.valgrind: Likewise.
57087         * modules/rawmemchr (Files): Distribute new file.
57088         * modules/strchrnul (Files): Likewise.
57089         Suggested by Bruno Haible.
57090
57091 2008-04-29  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57094         (inet_ntop, inet_pton): Change portability warning's wording.
57095         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57096         Invoke gl_CHECK_NEXT_HEADERS.
57097         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57098         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57099         set ARPA_INET_H.
57100         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57101         * modules/arpa_inet (Description): No longer only for systems that
57102         lack it.
57103         (Depends-on): Add include_next.
57104         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57105         HAVE_ARPA_INET_H.
57106
57107 2008-04-29  Jim Meyering  <meyering@redhat.com>
57108
57109         * modules/mkdir (License): Re-license as LGPLv2+.
57110
57111 2008-04-29  Bruno Haible  <bruno@clisp.org>
57112
57113         * modules/rawmemchr (Maintainer): Set to Eric.
57114         * modules/strchrnul (Maintainer): Likewise.
57115
57116 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57117
57118         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57119         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57120
57121         * modules/arpa_inet (arpa/inet.h): Use them.
57122
57123 2008-04-28  Eric Blake  <ebb9@byu.net>
57124
57125         Test getndelim2.
57126         * modules/getndelim2-tests: New file.
57127         * tests/test-getndelim2.c: Likewise.
57128         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57129         stream.
57130         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57131
57132         * MODULES.html.sh: Document new module.
57133
57134 2008-04-20  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/c-stack.c (die): Use raise.
57137         * modules/c-stack (Depends-on): Add raise.
57138
57139 2008-04-28  Bruno Haible  <bruno@clisp.org>
57140
57141         Expect rpmatch to be declared.
57142         * lib/yesno.c (rpmatch): Remove declaration.
57143
57144         Declare rpmatch.
57145         * lib/stdlib.in.h (rpmatch): New declaration.
57146         * lib/rpmatch.c: Include <stdlib.h> first.
57147         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57148         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57150         HAVE_RPMATCH.
57151         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57152         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57153         (Include): Set to <stdlib.h>.
57154         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57155         HAVE_RPMATCH.
57156         * NEWS: Document the change.
57157
57158 2008-04-28  Bruno Haible  <bruno@clisp.org>
57159
57160         Change rpmatch to use nl_langinfo when appropriate.
57161         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57162         (N_): New macro.
57163         (localized_pattern): New function/macro.
57164         (try): Remove match, nomatch arguments. Copy the pattern into safe
57165         memory before caching it.
57166         (rpmatch): Use localized_pattern. Add translator comments.
57167         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57168         Suggested by Eric Blake.
57169         * modules/rpmatch (Depends-on): Add stdbool.
57170
57171 2008-04-28  Eric Blake  <ebb9@byu.net>
57172
57173         Add rawmemchr module, matching glibc.
57174         * modules/string (Makefile.am): New indicator.
57175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57176         * lib/string.in.h (rawmemchr): Declare when appropriate.
57177         * modules/rawmemchr: New file.
57178         * m4/rawmemchr.m4: Likewise.
57179         * lib/rawmemchr.c: Likewise.
57180         * modules/rawmemchr-tests: Likewise.
57181         * tests/test-rawmemchr.c: Likewise.
57182         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57183         module.
57184         * modules/strchrnul (Depends-on): Add rawmemchr.
57185         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57186
57187         Whitespace cleanup.
57188         * tests/test-strchrnul.c: Reindent.
57189         * lib/strchrnul.c: Likewise.
57190
57191         Optimize and test strchrnul.
57192         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57193         * modules/strchrnul-tests: New file.
57194         * tests/test-strchrnul.c: Likewise.
57195
57196         Remove intprops dependency.
57197         * modules/memchr (Depends-on): Remove intprops.
57198         * modules/memrchr (Depends-on): Likewise.
57199         * modules/memchr2 (Depends-on): Likewise.
57200         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57201         * lib/memrchr.c (__memrchr): Likewise.
57202         * lib/memrchr2.c (memchr2): Likewise.
57203         Reported by Simon Josefsson.
57204
57205 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57206
57207         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57208         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57209
57210 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57211
57212         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57213
57214         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57215
57216         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57217
57218         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57219         declarations.
57220         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57221
57222         * m4/inet_pton.m4: Don't check for header files.
57223
57224         * m4/inet_ntop.m4: Don't check for header files.
57225
57226 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57227
57228         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57229         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57230         trigger for cygwin).
57231         Reported by Bruno Haible  <bruno@clisp.org>.
57232
57233 2008-04-28  Bruno Haible  <bruno@clisp.org>
57234
57235         * doc/posix-functions/strdup.texi: Mention mingw problem.
57236
57237 2008-04-27  Bruno Haible  <bruno@clisp.org>
57238
57239         * modules/stat-time-tests (Depends-on): Add sleep.
57240         * tests/test-stat-time.c (force_unlink): New function.
57241         (cleanup): Use it.
57242         (test_mtime): Remove the ctime related tests.
57243         (test_ctime): New function, containing the ctime related tests.
57244         (main): Call test_ctime, except on native Windows platforms.
57245
57246 2008-04-27  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/rpmatch.c (rpmatch): Add some comments.
57249         Reported by James Youngman <jay@gnu.org>.
57250
57251 2008-04-27  Bruno Haible  <bruno@clisp.org>
57252
57253         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57254         quiet NaNs.
57255
57256 2008-04-27  Bruno Haible  <bruno@clisp.org>
57257
57258         Make test-yesno.sh work on mingw.
57259         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57260         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57261         (main): Set stdin to binary mode.
57262         * modules/yesno-tests (Depends-on): Add binary-io.
57263
57264 2008-04-27  Bruno Haible  <bruno@clisp.org>
57265
57266         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57267         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57268         argument that lie outside the IEEE 854 domain.
57269         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57270         (gl_ISFINITE): Use it.
57271         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57272
57273 2008-04-27  Bruno Haible  <bruno@clisp.org>
57274
57275         Allow local renaming in config.h.
57276         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57277
57278 2008-04-27  Bruno Haible  <bruno@clisp.org>
57279
57280         * lib/memchr.c (__memchr): Change type of 'i'.
57281         * lib/memchr2.c (memchr2): Likewise.
57282
57283 2008-04-26  Eric Blake  <ebb9@byu.net>
57284         and Bruno Haible  <bruno@clisp.org>
57285
57286         Optimize and test memrchr.
57287         * modules/memrchr (Depends-on): Add intprops.
57288         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57289         * modules/memrchr-tests: New file.
57290         * tests/test-memrchr.c: New file.
57291
57292 2008-04-26  Bruno Haible  <bruno@clisp.org>
57293
57294         Add tentative support for DragonFly BSD.
57295         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57296         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57297         fp.
57298         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57299         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57300         * lib/fpurge.c (fpurge): Likewise.
57301         * lib/freadable.c (freaadable): Likewise.
57302         * lib/freadahead.c (freadahead): Likewise.
57303         * lib/freading.c (freading): Likewise.
57304         * lib/freadptr.c (freadptr): Likewise.
57305         * lib/freadseek.c (freadptrinc): Likewise.
57306         * lib/fseeko.c (fseeko): Likewise.
57307         * lib/fseterr.c (fseterr): Likewise.
57308         * lib/fwritable.c (fwritable): Likewise.
57309         * lib/fwriting.c (fwriting): Likewise.
57310
57311 2008-04-26  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/stdio-impl.h: New file.
57314         * lib/fbufmode.c: Include stdio-impl.h.
57315         (fbufmode): Use fp_, remove redundant #defines.
57316         * lib/fflush.c: Include stdio-impl.h.
57317         (clear_ungetc_buffer): Remove redundant #defines.
57318         * lib/fpurge.c: Include stdio-impl.h.
57319         (fpurge): Remove redundant #defines.
57320         * lib/freadable.c: Include stdio-impl.h.
57321         (freadable): Remove redundant #defines.
57322         * lib/freadahead.c: Include stdio-impl.h.
57323         (freadahead): Remove redundant #defines.
57324         * lib/freading.c: Include stdio-impl.h.
57325         (freading): Remove redundant #defines.
57326         * lib/freadptr.c: Include stdio-impl.h.
57327         (freadptr): Remove redundant #defines.
57328         * lib/freadseek.c: Include stdio-impl.h.
57329         (freadptrinc): Remove redundant #defines.
57330         * lib/fseeko.c: Include stdio-impl.h.
57331         (rpl_fseeko): Remove redundant #defines.
57332         * lib/fseterr.c: Include stdio-impl.h.
57333         (fseterr): Remove redundant #defines.
57334         * lib/fwritable.c: Include stdio-impl.h.
57335         (fwritable: Remove redundant #defines.
57336         * lib/fwriting.c: Include stdio-impl.h.
57337         (fwriting): Remove redundant #defines.
57338         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57339         * modules/fflush (Files): Likewise.
57340         * modules/fpurge (Files): Likewise.
57341         * modules/freadable (Files): Likewise.
57342         * modules/freadahead (Files): Likewise.
57343         * modules/freading (Files): Likewise.
57344         * modules/freadptr (Files): Likewise.
57345         * modules/freadseek (Files): Likewise.
57346         * modules/fseeko (Files): Likewise.
57347         * modules/fseterr (Files): Likewise.
57348         * modules/fwritable (Files): Likewise.
57349         * modules/fwriting (Files): Likewise.
57350
57351 2008-04-26  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57354         restore_seek_optimization, update_fpos_cache): New functions, extracted
57355         from rpl_fflush.
57356         (rpl_fflush): Use them.
57357         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57358         (gl_REPLACE_FFLUSH): Use it.
57359
57360 2008-04-26  Bruno Haible  <bruno@clisp.org>
57361
57362         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57363         on Solaris.
57364         * tests/test-xstrtoimax.sh: Likewise.
57365         * tests/test-xstrtoumax.sh: Likewise.
57366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57367
57368 2008-04-26  Bruno Haible  <bruno@clisp.org>
57369
57370         * modules/memchr-tests: New file.
57371         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57372
57373 2008-04-26  Eric Blake  <ebb9@byu.net>
57374             Bruno Haible  <bruno@clisp.org>
57375
57376         * lib/memchr.c: Include intprops.h.
57377         (__memchr): Optimize parallel detection of matching bytes. Rename local
57378         variables. Add explanatory comments.
57379
57380 2008-04-26  Bruno Haible  <bruno@clisp.org>
57381
57382         Fix module 'memchr', broken since 2000-10-28.
57383         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57384
57385 2008-04-26  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57388         comments.
57389
57390 2008-04-25  Eric Blake  <ebb9@byu.net>
57391
57392         Use native fstatat on cygwin 1.7.0.
57393         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57394         first.
57395
57396 2008-04-23  Eric Blake  <ebb9@byu.net>
57397
57398         Improve memchr2 performance.
57399         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57400         NUL bytes.
57401         * modules/memchr2 (Depends-on): Use intprops.h.
57402
57403 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57404
57405         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57406         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57407         <blp@cs.stanford.edu>.
57408
57409 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57410
57411         * lib/arpa_inet.in.h: New file.
57412
57413         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57414         (Makefile.am): Sed in substitute header file.
57415
57416         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57417         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57418
57419         * modules/inet_ntop (configure.ac): Use
57420         gl_ARPA_INET_MODULE_INDICATOR.
57421
57422         * modules/inet_pton (configure.ac): Use
57423         gl_ARPA_INET_MODULE_INDICATOR.
57424
57425 2008-04-22  Jim Meyering  <meyering@redhat.com>
57426
57427         * modules/verify (License): Re-license as LGPLv2+.
57428
57429 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57430
57431         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57432         parameter to void* as per POSIX standard (MinGW uses char*).
57433
57434 2008-04-21  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57437         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57438         Define to replacements if REPLACE_ISWCNTRL is 1.
57439         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57440         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57441         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57442         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57443         what it fixes.
57444         * doc/posix-functions/iswalpha.texi: Likewise.
57445         * doc/posix-functions/iswblank.texi: Likewise.
57446         * doc/posix-functions/iswcntrl.texi: Likewise.
57447         * doc/posix-functions/iswdigit.texi: Likewise.
57448         * doc/posix-functions/iswgraph.texi: Likewise.
57449         * doc/posix-functions/iswlower.texi: Likewise.
57450         * doc/posix-functions/iswprint.texi: Likewise.
57451         * doc/posix-functions/iswpunct.texi: Likewise.
57452         * doc/posix-functions/iswspace.texi: Likewise.
57453         * doc/posix-functions/iswupper.texi: Likewise.
57454         * doc/posix-functions/iswxdigit.texi: Likewise.
57455         Reported by Alain Guibert.
57456
57457 2008-04-21  Bruno Haible  <bruno@clisp.org>
57458
57459         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57460         Patch by Alain Guibert.
57461
57462 2008-04-21  Bruno Haible  <bruno@clisp.org>
57463
57464         Fix test failures on mingw.
57465         * tests/test-xstrtol.c (print_no_progname): New function.
57466         (main): Install it in error_print_progname hook.
57467         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57468         * tests/test-xstrtoimax.sh: Likewise.
57469         * tests/test-xstrtoumax.sh: Likewise.
57470
57471 2008-04-21  Bruno Haible  <bruno@clisp.org>
57472
57473         Fix test failure on mingw.
57474         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57475
57476 2008-04-21  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57479         Actually assign a value.
57480
57481 2008-04-20  Bruno Haible  <bruno@clisp.org>
57482
57483         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57484         take 2.
57485         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57486         'canonicalize-lgpl' module is also used.
57487         * lib/canonicalize-lgpl.c: Undo last change.
57488         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57489
57490 2008-04-20  Bruno Haible  <bruno@clisp.org>
57491
57492         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57493         config.h. Provide _mkdir based fallback for mingw.
57494         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57495         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57496         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57497         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57498         rather than defining mkdir in config.h.
57499         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57500         (gl_SYS_STAT_H_DEFAULTS): New macro.
57501         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57502         HAVE_IO_H any more.
57503         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57504         HAVE_DECL_MKDIR and HAVE_IO_H.
57505
57506 2008-04-20  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/isapipe.c: Port to native Windows platforms.
57509
57510 2008-04-20  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57513
57514 2008-04-21  Eric Blake  <ebb9@byu.net>
57515
57516         Work around preprocessors that don't handle UINTMAX_MAX.
57517         * lib/memchr2.c (memchr2): Avoid embedded #if.
57518         Reported by Alain Guibert, fix suggested by Bruno Haible.
57519
57520 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57521
57522         * doc/posix-functions/strftime.texi (strftime): Explain better
57523         Windows incompatibility.  Suggested by Micah Cowan
57524         <micah@cowan.name>.
57525
57526 2008-04-20  Bruno Haible  <bruno@clisp.org>
57527
57528         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57529         unistr/u8-mblen.
57530
57531 2008-04-20  Bruno Haible  <bruno@clisp.org>
57532
57533         Fix test failure on platforms with non-GNU iconv.
57534         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57535         (U_TO_U8): Use it, rather than u16_to_u8.
57536         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57537         units at the end of the input string.
57538         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57539
57540 2008-04-20  Bruno Haible  <bruno@clisp.org>
57541
57542         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57543         when the resulting length is 0.
57544         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57545
57546 2008-04-20  Bruno Haible  <bruno@clisp.org>
57547
57548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57549         works.
57550         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57551
57552 2008-04-20  Bruno Haible  <bruno@clisp.org>
57553
57554         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57555         * modules/tsearch-tests (configure.ac): Test for initstate function.
57556
57557 2008-04-20  Bruno Haible  <bruno@clisp.org>
57558
57559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57560         for nlink_t if missing.
57561         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57562
57563 2008-04-19  Bruno Haible  <bruno@clisp.org>
57564
57565         Work around snprintf bug on Linux libc5.
57566         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57568         gl_SNPRINTF_SIZE1.
57569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57570         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57571         that test failed.
57572         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57573         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57574         * modules/snprintf (Files): Add m4/printf.m4.
57575         * modules/vsnprintf (Files): Likewise.
57576         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57577         * doc/posix-functions/vsnprintf.texi: Likewise.
57578
57579 2008-04-19  Bruno Haible  <bruno@clisp.org>
57580
57581         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57582         from 0.0058 to less than 10^-7.
57583
57584 2008-04-19  Bruno Haible  <bruno@clisp.org>
57585
57586         Fix rounding when a precision is given.
57587         * lib/vasnprintf.c (is_borderline): New function.
57588         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57589         9...9x.
57590         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57591         %e, %g.
57592         * tests/test-vasprintf-posix.c (test_function): Likewise.
57593         * tests/test-snprintf-posix.h (test_function): Likewise.
57594         * tests/test-sprintf-posix.h (test_function): Likewise.
57595         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57596         * tests/test-printf-posix.h (test_function): Likewise.
57597         * tests/test-printf-posix.output: Update.
57598         Reported by John Darrington <john@darrington.wattle.id.au> via
57599         Ben Pfaff <blp@cs.stanford.edu>.
57600
57601 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57602
57603         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57604         Suggested by Bruno Haible <bruno@clisp.org>.
57605
57606 2008-04-17  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57609         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57610         implementation.
57611         Patch by Bruce Merry <bmerry@gmail.com>.
57612
57613 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57614
57615         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57616         doesn't work under Windows.
57617
57618 2008-04-16  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57621         New macros.
57622         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57623         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57624         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57625         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57626         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57627         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57628         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57629         macros.
57630         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57631         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57632         Northern Sotho, Uighur.
57633
57634 2008-04-16  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57637         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57638         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57639         Reported by Daniel Bergström <daniel@octocode.com>.
57640
57641 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57642             Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57645         function.
57646         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57647         New functions, mostly extracted from gl_locale_name_default.
57648         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57649
57650 2008-04-16  Eric Blake  <ebb9@byu.net>
57651
57652         Adjust strtod detection to catch glibc 2.7 bug.
57653         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57654         Reported by John Gatewood Ham.
57655
57656 2008-04-16  Bruno Haible  <bruno@clisp.org>
57657
57658         Add tentative support for Linux libc5.
57659         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57660         * lib/fpurge.c (fpurge): Likewise.
57661         * lib/freadable.c (freadable): Likewise.
57662         * lib/freadahead.c (freadahead): Likewise.
57663         * lib/freading.c (freading): Likewise.
57664         * lib/freadptr.c (freadptr): Likewise.
57665         * lib/freadseek.c (freadptrinc): Likewise.
57666         * lib/fseeko.c (rpl_fseeko): Likewise.
57667         * lib/fseterr.c (fseterr): Likewise.
57668         * lib/fwritable.c (fwritable): Likewise.
57669         * lib/fwriting.c (fwriting): Likewise.
57670         Reported by Alain Guibert <alguibert+bts@free.fr>.
57671
57672 2008-04-15  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/mathl (configure.ac): Define module indicator.
57675
57676 2008-04-15  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/logl.c (logl): Remove unused variables.
57679
57680 2008-04-15  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57683         fails.
57684
57685 2008-04-15  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/trim.c (trim2): Fix argument of isspace() macro.
57688
57689 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57690
57691         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57692         to 0.
57693         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57694
57695 2008-04-14  Bruno Haible  <bruno@clisp.org>
57696
57697         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57698         AC_LANG_PROGRAM argument.
57699         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57700         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57702         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57703         * m4/math_h.m4 (gl_MATH_H): Likewise.
57704         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57705         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57706         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57707         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57708         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57709         * m4/regex.m4 (gl_REGEX): Likewise.
57710         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57711         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57713         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57714         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57715         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57717         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57718
57719 2008-04-14  Jim Meyering  <meyering@redhat.com>
57720
57721         test-strtod: fix typos: s/abs/fabs/
57722         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57723
57724 2008-04-13  Bruno Haible  <bruno@clisp.org>
57725
57726         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57727         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57728         module is also used and while not building the reloc-wrapper.
57729
57730 2008-04-13  Bruno Haible  <bruno@clisp.org>
57731
57732         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57733
57734 2008-04-13  Bruno Haible  <bruno@clisp.org>
57735
57736         Fix AIX compilation failure introduced on 2008-04-02.
57737         * tests/test-frexp.c (exp): Undefine before redefining.
57738         * tests/test-frexpl.c (exp): Likewise.
57739
57740 2008-04-13  Bruno Haible  <bruno@clisp.org>
57741
57742         Work around a HP-UX stdio bug.
57743         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57744         * tests/test-ftello.c (main): Likewise.
57745         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57746         * doc/posix-functions/ftello.texi: Likewise.
57747
57748 2008-04-13  Bruno Haible  <bruno@clisp.org>
57749
57750         Make test-signbit pass on HP-UX/hppa.
57751         * tests/test-signbit.c (minus_zerol): New variable.
57752         (test_signbitl): Use it.
57753
57754 2008-04-13  Bruno Haible  <bruno@clisp.org>
57755
57756         Make truncl work on OSF/1 4.0.
57757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57758         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57759         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57761         HAVE_DECL_TRUNCL.
57762         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57763         HAVE_DECL_TRUNCL.
57764         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57765
57766 2008-04-13  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57769
57770 2008-04-13  Bruno Haible  <bruno@clisp.org>
57771
57772         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57773         expression, so as to avoid HP-UX 11 cc compiler bug.
57774
57775 2008-04-13  Bruno Haible  <bruno@clisp.org>
57776
57777         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57778
57779 2008-04-13  Bruno Haible  <bruno@clisp.org>
57780
57781         * lib/git-merge-changelog.c: Remove empty declaration outside of
57782         functions.
57783
57784 2008-04-13  Bruno Haible  <bruno@clisp.org>
57785
57786         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57787
57788 2008-04-13  Bruno Haible  <bruno@clisp.org>
57789
57790         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57791         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57792         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57793         also if it exists but lacks definitions of the SHUT_* macros.
57794         * modules/sys_socket (Description): Update.
57795         Reported by Elbert Pol <e.pol@chello.nl>.
57796
57797 2008-04-13  Bruno Haible  <bruno@clisp.org>
57798
57799         * lib/localcharset.c (OS2): Don't redefine if already defined.
57800         Reported by Elbert Pol <e.pol@chello.nl>.
57801
57802 2008-04-13  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/binary-io.h [__EMX__]: Include <io.h>.
57805         Reported by Elbert Pol <e.pol@chello.nl>.
57806
57807 2008-04-12  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/fpucw.h: Enable the definitions also for x86_64.
57810         Needed for NetBSD/x86_64.
57811         Reported by Thomas Klausner <tk@giga.or.at>.
57812
57813 2008-04-12  Bruno Haible  <bruno@clisp.org>
57814
57815         * tests/test-strtod.c: Include isnand.h.
57816         (main): Use isnand instead of isnan.
57817         Reported by Jim Meyering.
57818
57819 2008-04-12  Bruno Haible  <bruno@clisp.org>
57820
57821         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57822         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57823
57824 2008-04-12  Jim Meyering  <meyering@redhat.com>
57825
57826         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57827
57828 2008-04-12  Bruno Haible  <bruno@clisp.org>
57829
57830         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57831         Reported by Elbert Pol <e.pol@chello.nl>.
57832
57833 2008-04-12  Eric Blake  <ebb9@byu.net>
57834
57835         Work around Solaris 10 math.h bug.
57836         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57837         (gl_MATH_H_DEFAULTS): Set up default.
57838         * modules/math (Makefile.am): Replace new indicators.
57839         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57840         * tests/test-math.c (main): Test this.
57841         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57842         * doc/posix-headers/math.texi (math.h): Mention bug.
57843         Reported by Nelson H. F. Beebe and Jim Meyering.
57844
57845 2008-04-11  Bruno Haible  <bruno@clisp.org>
57846
57847         Adapt to future versions of Apple GCC.
57848         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57849         Reported by Peter O'Gorman <peter@pogma.com>.
57850
57851 2008-04-11  Bruno Haible  <bruno@clisp.org>
57852
57853         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57854
57855 2008-04-11  Bruno Haible  <bruno@clisp.org>
57856
57857         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57858
57859         * modules/getaddrinfo-tests (Makefile.am): Define
57860         test_getaddrinfo_LDADD.
57861
57862 2008-04-11  Bruno Haible  <bruno@clisp.org>
57863
57864         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57865         (init): Fix syntax error.
57866         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57867         is declared.
57868
57869 2008-04-11  Bruno Haible  <bruno@clisp.org>
57870
57871         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57872         * modules/glob (Depends-on): Add stdbool.
57873
57874 2008-04-11  Bruno Haible  <bruno@clisp.org>
57875
57876         * lib/trim.c: Include <string.h>.
57877
57878 2008-04-11  Eric Blake  <ebb9@byu.net>
57879
57880         Avoid compile failure on OS/2.
57881         * lib/regex_internal.h (internal_function): Disable optimization
57882         on OS/2 (__EMX__), where it caused compiler error.
57883         Reported by Elbert Pol.
57884
57885 2008-04-11  Bruno Haible  <bruno@clisp.org>
57886
57887         Flush the standard error stream before aborting. Needed on mingw.
57888         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57889         * tests/test-array_list.c (ASSERT): Likewise.
57890         * tests/test-array_oset.c (ASSERT): Likewise.
57891         * tests/test-avltree_list.c (ASSERT): Likewise.
57892         * tests/test-avltree_oset.c (ASSERT): Likewise.
57893         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57894         * tests/test-binary-io.c (ASSERT): Likewise.
57895         * tests/test-byteswap.c (ASSERT): Likewise.
57896         * tests/test-c-ctype.c (ASSERT): Likewise.
57897         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57898         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57899         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57900         * tests/test-c-strstr.c (ASSERT): Likewise.
57901         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57902         * tests/test-canonicalize.c (ASSERT): Likewise.
57903         * tests/test-carray_list.c (ASSERT): Likewise.
57904         * tests/test-ceilf1.c (ASSERT): Likewise.
57905         * tests/test-ceilf2.c (ASSERT): Likewise.
57906         * tests/test-ceill.c (ASSERT): Likewise.
57907         * tests/test-count-one-bits.c (ASSERT): Likewise.
57908         * tests/test-fbufmode.c (ASSERT): Likewise.
57909         * tests/test-fflush2.c (ASSERT): Likewise.
57910         * tests/test-floorf1.c (ASSERT): Likewise.
57911         * tests/test-floorf2.c (ASSERT): Likewise.
57912         * tests/test-floorl.c (ASSERT): Likewise.
57913         * tests/test-fopen.c (ASSERT): Likewise.
57914         * tests/test-fpending.c (ASSERT): Likewise.
57915         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57916         * tests/test-fpurge.c (ASSERT): Likewise.
57917         * tests/test-freadable.c (ASSERT): Likewise.
57918         * tests/test-freadahead.c (ASSERT): Likewise.
57919         * tests/test-freading.c (ASSERT): Likewise.
57920         * tests/test-freadptr.c (ASSERT): Likewise.
57921         * tests/test-freadptr2.c (ASSERT): Likewise.
57922         * tests/test-freadseek.c (ASSERT): Likewise.
57923         * tests/test-freopen.c (ASSERT): Likewise.
57924         * tests/test-frexp.c (ASSERT): Likewise.
57925         * tests/test-frexpl.c (ASSERT): Likewise.
57926         * tests/test-fseek.c (ASSERT): Likewise.
57927         * tests/test-fseeko.c (ASSERT): Likewise.
57928         * tests/test-fstrcmp.c (ASSERT): Likewise.
57929         * tests/test-ftell.c (ASSERT): Likewise.
57930         * tests/test-ftello.c (ASSERT): Likewise.
57931         * tests/test-func.c (ASSERT): Likewise.
57932         * tests/test-fwritable.c (ASSERT): Likewise.
57933         * tests/test-fwriting.c (ASSERT): Likewise.
57934         * tests/test-getdelim.c (ASSERT): Likewise.
57935         * tests/test-getline.c (ASSERT): Likewise.
57936         * tests/test-i-ring.c (ASSERT): Likewise.
57937         * tests/test-iconv-utf.c (ASSERT): Likewise.
57938         * tests/test-iconv.c (ASSERT): Likewise.
57939         * tests/test-isfinite.c (ASSERT): Likewise.
57940         * tests/test-isnand.c (ASSERT): Likewise.
57941         * tests/test-isnanf.c (ASSERT): Likewise.
57942         * tests/test-isnanl.h (ASSERT): Likewise.
57943         * tests/test-ldexpl.c (ASSERT): Likewise.
57944         * tests/test-linked_list.c (ASSERT): Likewise.
57945         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57946         * tests/test-localename.c (ASSERT): Likewise.
57947         * tests/test-lseek.c (ASSERT): Likewise.
57948         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57949         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57950         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57951         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57952         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57953         * tests/test-mbschr.c (ASSERT): Likewise.
57954         * tests/test-mbscspn.c (ASSERT): Likewise.
57955         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57956         * tests/test-mbspbrk.c (ASSERT): Likewise.
57957         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57958         * tests/test-mbsrchr.c (ASSERT): Likewise.
57959         * tests/test-mbsspn.c (ASSERT): Likewise.
57960         * tests/test-mbsstr1.c (ASSERT): Likewise.
57961         * tests/test-mbsstr2.c (ASSERT): Likewise.
57962         * tests/test-mbsstr3.c (ASSERT): Likewise.
57963         * tests/test-memchr2.c (ASSERT): Likewise.
57964         * tests/test-memmem.c (ASSERT): Likewise.
57965         * tests/test-open.c (ASSERT): Likewise.
57966         * tests/test-printf-frexp.c (ASSERT): Likewise.
57967         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57968         * tests/test-printf-posix.c (ASSERT): Likewise.
57969         * tests/test-quotearg.c (ASSERT): Likewise.
57970         * tests/test-rbtree_list.c (ASSERT): Likewise.
57971         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57972         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57973         * tests/test-round1.c (ASSERT): Likewise.
57974         * tests/test-roundf1.c (ASSERT): Likewise.
57975         * tests/test-roundl.c (ASSERT): Likewise.
57976         * tests/test-signbit.c (ASSERT): Likewise.
57977         * tests/test-sleep.c (ASSERT): Likewise.
57978         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57979         * tests/test-snprintf.c (ASSERT): Likewise.
57980         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57981         * tests/test-stat-time.c (ASSERT): Likewise.
57982         * tests/test-strcasestr.c (ASSERT): Likewise.
57983         * tests/test-strerror.c (ASSERT): Likewise.
57984         * tests/test-striconv.c (ASSERT): Likewise.
57985         * tests/test-striconveh.c (ASSERT): Likewise.
57986         * tests/test-striconveha.c (ASSERT): Likewise.
57987         * tests/test-strsignal.c (ASSERT): Likewise.
57988         * tests/test-strstr.c (ASSERT): Likewise.
57989         * tests/test-strtod.c (ASSERT): Likewise.
57990         * tests/test-trunc1.c (ASSERT): Likewise.
57991         * tests/test-trunc2.c (ASSERT): Likewise.
57992         * tests/test-truncf1.c (ASSERT): Likewise.
57993         * tests/test-truncf2.c (ASSERT): Likewise.
57994         * tests/test-truncl.c (ASSERT): Likewise.
57995         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57996         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57997         * tests/test-vasnprintf.c (ASSERT): Likewise.
57998         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57999         * tests/test-vasprintf.c (ASSERT): Likewise.
58000         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58001         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58002         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58003         * tests/test-vsnprintf.c (ASSERT): Likewise.
58004         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58005         * tests/test-wcwidth.c (ASSERT): Likewise.
58006         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58007         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58008         * tests/test-xvasprintf.c (ASSERT): Likewise.
58009         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58010         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58011         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58012         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58013         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58014         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58015         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58016         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58017         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58018         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58019         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58020         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58021         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58022         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58023         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58024         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58025         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58026         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58027         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58028         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58029         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58030         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58031         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58032         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58033         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58034         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58035         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58036         * tests/unictype/test-combining.c (ASSERT): Likewise.
58037         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58038         * tests/unictype/test-digit.c (ASSERT): Likewise.
58039         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58040         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58041         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58042         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58043         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58044         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58045         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58046         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58047         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58048         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58049         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58050         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58051         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58052         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58053         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58054         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58055         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58056         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58057         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58058         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58059         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58060         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58061         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58062         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58063         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58064         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58065         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58066         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58067         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58068         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58069         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58070         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58071         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58072         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58073         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58074         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58075         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58076         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58077         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58078         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58079         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58080         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58081         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58082         Reported by Eric Blake.
58083
58084 2008-04-11  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/wchar.in.h: Tweak comment.
58087
58088 2008-04-11  Bruno Haible  <bruno@clisp.org>
58089
58090         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58091         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58092         gl_COMMON.
58093         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58094
58095 2008-04-11  Bruno Haible  <bruno@clisp.org>
58096
58097         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58098
58099 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58100
58101         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58102         of attempting to use non-existing /dev/*random.  Based on patch
58103         from Adam Strzelecki <ono@java.pl> in
58104         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58105
58106 2008-04-08  Bruno Haible  <bruno@clisp.org>
58107
58108         Add tentative support for emx+gcc.
58109         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58110         * lib/fpurge.c (fpurge): Likewise.
58111         * lib/freadable.c (freadable): Likewise.
58112         * lib/freadahead.c (freadahead): Likewise.
58113         * lib/freading.c (freading): Likewise.
58114         * lib/freadptr.c (freadptr): Likewise.
58115         * lib/freadseek.c (freadptrinc): Likewise.
58116         * lib/fseeko.c (rpl_fseeko): Likewise.
58117         * lib/fseterr.c (fseterr): Likewise.
58118         * lib/fwritable.c (fwritable): Likewise.
58119         * lib/fwriting.c (fwriting): Likewise.
58120         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58121
58122 2008-04-09  Eric Blake  <ebb9@byu.net>
58123
58124         Avoid some autoconf warnings.
58125         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58126         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58127         * m4/afs.m4 (gl_AFS): Likewise.
58128         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58129         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58130         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58131         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58132         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58133         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58134         (AC_CHECK_DECLS_ONCE): Likewise.
58135         Rename file...
58136         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58137         gnulib-tool requires autoconf 2.59 or better.
58138         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58139
58140 2008-04-08  Eric Blake  <ebb9@byu.net>
58141
58142         Use 'git describe --match' if present (added in git 1.5.5).
58143         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58144         if possible.
58145
58146 2008-04-08  Bruno Haible  <bruno@clisp.org>
58147
58148         Add tentative support for OpenServer.
58149         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58150         _ptr, _cnt.
58151         * lib/fpurge.c (fpurge): Likewise.
58152         * lib/freadable.c (freadable): Likewise.
58153         * lib/freadahead.c (freadahead): Likewise.
58154         * lib/freading.c (freading): Likewise.
58155         * lib/freadptr.c (freadptr): Likewise.
58156         * lib/freadseek.c (freadptrinc): Likewise.
58157         * lib/fseeko.c (rpl_fseeko): Likewise.
58158         * lib/fseterr.c (fseterr): Likewise.
58159         * lib/fwritable.c (fwritable): Likewise.
58160         * lib/fwriting.c (fwriting): Likewise.
58161         Reported by Roger Cornelius <rac@tenzing.org> and
58162         Brian K. White <brian@aljex.com>.
58163
58164 2008-04-06  Jim Meyering  <meyering@redhat.com>
58165
58166         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58167
58168 2008-04-06  Bruno Haible  <bruno@clisp.org>
58169
58170         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58171         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58172         * tests/test-printf-posix.sh: Likewise.
58173         * tests/test-vfprintf-posix.sh: Likewise.
58174         * tests/test-vprintf-posix.sh: Likewise.
58175         * tests/test-xprintf-posix.sh: Likewise.
58176
58177 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58178
58179         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58180         hide error from 'ls', needed on OS/2.
58181         Report by Elbert Pol <elbert.pol@gmail.com>.
58182
58183 2008-04-04  Eric Blake  <ebb9@byu.net>
58184
58185         Make test-fseeko.c failures meaningful.
58186         * tests/test-fseeko.c: Print line number on failure.
58187         * tests/test-fseek.c: Likewise.
58188         Reported by Nelson H. F. Beebe.
58189
58190         Improve strtod bug detection check.
58191         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58192         required for Solaris 10.
58193         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58194
58195 2008-04-04  Bruno Haible  <bruno@clisp.org>
58196
58197         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58198         by m4/setenv.m4.
58199
58200 2008-04-03  Eric Blake  <ebb9@byu.net>
58201
58202         Ensure sane .version contents.
58203         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58204         version string.
58205         * build-aux/git-version-gen: Improve documentation.
58206
58207         Make GNU make output nicer.
58208         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58209         MAKECMDGOALS to enforce message for all command line targets.  Set
58210         srcdir for use in maint.mk.
58211
58212         Another maintainer tweak.
58213         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58214         a target that regenerates version.
58215
58216 2008-04-03  Jim Meyering  <meyering@redhat.com>
58217
58218         vc-list-files: don't cause coreutils "make po-check" failure
58219         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58220
58221 2008-04-03  Eric Blake  <ebb9@byu.net>
58222
58223         Allow VPATH usage of vc-list-files.
58224         * build-aux/vc-list-files (scriptversion): Add timestamp.
58225         (options): Add --help, --version, -C.
58226         (CVS): Support installed cvsu.
58227
58228 2008-04-02  Bruno Haible  <bruno@clisp.org>
58229
58230         Avoid some "statement with no effect" warnings from gcc.
58231         * tests/test-wctype.c (main): Explicitly ignore unused values.
58232         Reported by Jim Meyering.
58233
58234 2008-04-02  Jim Meyering  <meyering@redhat.com>
58235
58236         Avoid some warnings from "gcc -Wshadow".
58237         * tests/test-frexp.c (exp): Define to a different identifier.
58238         * tests/test-frexpl.c (exp): Likewise.
58239
58240 2008-04-03  Jim Meyering  <meyering@redhat.com>
58241
58242         bootstrap: remove dangling *.[ch] symlinks from lib
58243         * build-aux/bootstrap [dangling symlink removal]: Move find's
58244         -depth option to precede all others, to avoid a warning.
58245         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58246
58247 2008-04-02  Bruno Haible  <bruno@clisp.org>
58248
58249         Avoid some warnings from "gcc -Wshadow".
58250         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58251         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58252         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58253         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58254         Reported by Jim Meyering.
58255
58256 2008-04-01  Bruno Haible  <bruno@clisp.org>
58257
58258         Fix test to work on IRIX 6.5 with cc.
58259         * tests/test-math.c (numeric_equal): New function.
58260         (main): Use it.
58261
58262 2008-04-01  Bruno Haible  <bruno@clisp.org>
58263
58264         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58265
58266 2008-04-01  Bruno Haible  <bruno@clisp.org>
58267
58268         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58269         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58270         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58271         (Depends-on): Remove math.
58272
58273         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58274         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58275         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58276         (Depends-on): Remove math.
58277
58278         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58279         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58280         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58281         (Depends-on): Remove math.
58282         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58283         (Depends-on): Remove math.
58284
58285         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58286         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58287         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58288         (Depends-on): Remove math.
58289         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58290         (Depends-on): Remove math.
58291
58292         * tests/test-round1.c: Include nan.h.
58293         (main): Use NaNd instead of NAN.
58294         * modules/round-tests (Files): Add tests/nan.h.
58295
58296         * tests/test-trunc1.c: Include nan.h.
58297         (main): Use NaNd instead of NAN.
58298         * modules/trunc-tests (Files): Add tests/nan.h.
58299
58300         * tests/test-roundf1.c: Include nan.h.
58301         (main): Use NaNf instead of NAN.
58302         * modules/roundf-tests (Files): Add tests/nan.h.
58303
58304         * tests/test-truncf1.c: Include nan.h.
58305         (main): Use NaNf instead of NAN.
58306         * modules/truncf-tests (Files): Add tests/nan.h.
58307
58308         * tests/test-ceilf1.c: Include nan.h.
58309         (main): Use NaNf instead of NAN.
58310         * modules/ceilf-tests (Files): Add tests/nan.h.
58311
58312         * tests/test-floorf1.c: Include nan.h.
58313         (main): Use NaNf instead of NAN.
58314         * modules/floorf-tests (Files): Add tests/nan.h.
58315
58316         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58317         (main): Use NaNf instead of NAN.
58318         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58319
58320         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58321         (main): Use NaNd instead of NAN.
58322         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58323
58324         * tests/test-frexp.c: Include nan.h.
58325         (main): Use NaNd instead of NAN.
58326         * modules/frexp-tests (Files): Add tests/nan.h.
58327
58328         * lib/isnan.c: Don't include <math.h>.
58329         (FUNC): Don't use NAN macro.
58330         * modules/isnand-nolibm (Depends-on): Remove math.
58331         * modules/isnanf-nolibm (Depends-on): Remove math.
58332         * modules/isnanl (Depends-on): Remove math.
58333         * modules/isnanl-nolibm (Depends-on): Remove math.
58334
58335         * tests/nan.h: New file.
58336
58337 2008-04-01  Eric Blake  <ebb9@byu.net>
58338
58339         Fix typos.
58340         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58341         values to be the right type.
58342
58343         For now, cater to gnulib strtod inaccuracies.
58344         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58345         fractional results.  While not as nice from a QoI perspective, it
58346         is a quicker patch than correctly implementing decimal to binary
58347         rounding.
58348
58349 2008-03-31  Eric Blake  <ebb9@byu.net>
58350
58351         Guarantee a definition of NAN.
58352         * lib/math.in.h (NAN): Define if missing.
58353         * tests/test-math.c (main): Test it.
58354         * doc/posix-headers/math.texi (math.h): Document this.
58355         * lib/isnan.c (rpl_isnand): Use it.
58356         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58357         * tests/test-floorf1.c (NaN): Likewise.
58358         * tests/test-frexp.c (NaN): Likewise.
58359         * tests/test-isnand.c (NaN): Likewise.
58360         * tests/test-isnanf.c (NaN): Likewise.
58361         * tests/test-round1.c (NaN): Likewise.
58362         * tests/test-roundf1.c (NaN): Likewise.
58363         * tests/test-snprintf-posix.h (NaN): Likewise.
58364         * tests/test-sprintf-posix.h (NaN): Likewise.
58365         * tests/test-trunc1.c (NaN): Likewise.
58366         * tests/test-truncf1.c (NaN): Likewise.
58367         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58368         * tests/test-vasprintf-posix.c (NaN): Likewise.
58369         * modules/isnand-nolibm (Depends-on): Add math.
58370         * modules/isnanf-nolibm (Depends-on): Likewise.
58371         * modules/isnanl (Depends-on): Likewise.
58372         * modules/isnanl-nolibm (Depends-on): Likewise.
58373         * modules/snprintf-posix-tests (Depends-on): Likewise.
58374         * modules/sprintf-posix-tests (Depends-on): Likewise.
58375         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58376         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58377         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58378         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58379
58380 2008-03-31  Bruno Haible  <bruno@clisp.org>
58381
58382         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58383         * doc/posix-functions/strtod.texi: Likewise.
58384
58385 2008-03-31  Bruno Haible  <bruno@clisp.org>
58386
58387         * tests/test-strtod.c (main): Don't use C99 syntax.
58388
58389 2008-03-31  Bruno Haible  <bruno@clisp.org>
58390
58391         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58392         Reported by Eric Blake.
58393
58394 2008-03-31  Jim Meyering  <meyering@redhat.com>
58395
58396         Don't compare actual signbit return values.
58397         * tests/test-strtod.c (main): Rather, compare only their
58398         zero/non-zero nature.
58399
58400 2008-03-31  Eric Blake  <ebb9@byu.net>
58401
58402         More strtod documentation.
58403         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58404         failures as distinct bugs.
58405
58406 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58409         Problem reported by Erik Benada in
58410         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58411
58412 2008-03-30  Bruno Haible  <bruno@clisp.org>
58413
58414         * tests/test-strtod.c: Add comments about which assertion fails on which
58415         platform.
58416         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58417
58418 2008-03-30  Eric Blake  <ebb9@byu.net>
58419
58420         Test signbit behavior on zeros.
58421         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58422         (test_signbitd, test_signbitl): Likewise.
58423
58424         More strtod touchups.
58425         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58426         sign of negative underflow, for now.  Use .5, not .1.
58427         * doc/posix-functions/strtod.texi (strtod): Mention these
58428         limitations.
58429         Reported by Jim Meyering.
58430
58431 2008-03-30  Bruno Haible  <bruno@clisp.org>
58432
58433         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58434         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58435
58436 2008-03-30  Bruno Haible  <bruno@clisp.org>
58437
58438         Avoid failure when attempting to return empty iconv results on some
58439         platforms.
58440         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58441         allocation, don't report ENOMEM when the resulting string is empty.
58442
58443 2008-03-30  Bruno Haible  <bruno@clisp.org>
58444
58445         Fix buffer overrun.
58446         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58447         Don't consider the width for tmp_length. Check count against tmp_length
58448         before doing the padding. Ensure enough allocation during padding.
58449
58450 2008-03-30  Eric Blake  <ebb9@byu.net>
58451
58452         strtod touchups.
58453         * lib/strtod.c (strtod): Avoid compiler warnings.
58454         Reported by Jim Meyering.
58455
58456 2008-03-30  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58459         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58460         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58461         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58462         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58463         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58464         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58465         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58466
58467         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58468         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58469         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58470         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58471         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58472         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58473         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58474         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58475
58476         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58477         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58478         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58479         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58480         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58481         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58482         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58483         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58484
58485         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58486         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58487
58488         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58489         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58490
58491         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58492         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58493
58494         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58496         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58497
58498         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58499         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58500         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58501
58502         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58503         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58504         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58505
58506         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58508         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58509
58510         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58511         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58512         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58513         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58514         (Depends-on): Add EOVERFLOW.
58515         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58516         (Depends-on): Add EOVERFLOW.
58517         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58518         (Depends-on): Add EOVERFLOW.
58519         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58520         (Depends-on): Add EOVERFLOW.
58521         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58522         (Depends-on): Add EOVERFLOW.
58523         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58524         (Depends-on): Add EOVERFLOW.
58525         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58526         (Depends-on): Add EOVERFLOW.
58527         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58528         (Depends-on): Add EOVERFLOW.
58529
58530         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58532         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58533
58534         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58536         * modules/snprintf (Depends-on): Add EOVERFLOW.
58537
58538         * lib/poll.c (EOVERFLOW): Remove fallback.
58539         * modules/poll (Depends-on): Add EOVERFLOW.
58540
58541         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58542         * modules/getugroups (Depends-on): Add EOVERFLOW.
58543
58544         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58545         * modules/getdelim (Depends-on): Add EOVERFLOW.
58546
58547         * lib/ftell.c (EOVERFLOW): Remove fallback.
58548         * modules/ftell (Depends-on): Add EOVERFLOW.
58549
58550         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58552         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58553
58554         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58555
58556         * modules/EOVERFLOW-tests: New file.
58557         * tests/test-EOVERFLOW.c: New file.
58558
58559         * modules/EOVERFLOW: New file.
58560         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58561
58562 2008-03-30  Bruno Haible  <bruno@clisp.org>
58563
58564         Fix bug introduced on 2007-06-10.
58565         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58566         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58567
58568 2008-03-30  Bruno Haible  <bruno@clisp.org>
58569
58570         Improve freadseek's efficiency after ungetc.
58571         * lib/freadseek.c: Include freadahead.h.
58572         (freadptrinc): New function, extracted from freadseek.
58573         (freadseek): Use it in a loop. Use freadahead to determine the number
58574         of loop iterations.
58575         * modules/freadseek (Depends-on): Add freadahead.
58576         (configure.ac): Require AC_C_INLINE.
58577
58578 2008-03-30  Bruno Haible  <bruno@clisp.org>
58579
58580         * lib/freadseek.c (freadseek): Don't ignore the return value of
58581         freadptr.
58582
58583 2008-03-29  Eric Blake  <ebb9@byu.net>
58584
58585         Add hex float support.
58586         * modules/strtod (Depends-on): Add c-ctype.
58587         (Link): Mention POW_LIB.
58588         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58589         whitespace between 'e' and exponent.
58590         * tests/test-strtod.c (main): Enable hex float tests.
58591         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58592         now provides.
58593
58594         Document various strtod bugs, with some fixes.
58595         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58596         "-0x", "inf", "nan", and hex constants.
58597         * doc/posix-functions/atof.texi (atof): Likewise.
58598         * modules/stdlib (Makefile.am): Support strtod.
58599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58600         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58601         detect additional strtod bugs.
58602         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58603         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58604         bool where appropriate.  Parse 'inf' and 'nan'.
58605         * tests/test-strtod.c: New file.
58606         * modules/strtod (Depends-on): Add stdbool, stdlib.
58607         (configure.ac): Turn on module indicator.
58608         * modules/strtod-tests: New module.
58609
58610 2008-03-29  Eric Blake  <ebb9@byu.net>
58611
58612         Fix ftell on mingw.
58613         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58614         * modules/ftell-tests (Depends-on): Add binary-io.
58615         * modules/ftello-tests (Depends-on): Likewise.
58616         * tests/test-ftell.c (main): Enhance test to cover behavior after
58617         ungetc.  Enforce binary mode.
58618         * tests/test-ftello.c (main): Likewise.
58619
58620         Pass test-freadseek on cygwin.
58621         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58622         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58623         ungetc buffer.
58624
58625         * tests/test-fflush2.c (main): Fix typo.
58626
58627 2008-03-29  Bruno Haible  <bruno@clisp.org>
58628
58629         * tests/test-fflush2.c (main): Temporarily disable the contents of
58630         this test.
58631         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58632         Reported by Eric Blake.
58633
58634 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58635
58636         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58637         (GC_SHA224_DIGEST_SIZE): Add.
58638
58639         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58640         (gc_hash_digest_length): Likewise.
58641         (gc_hash_buffer): Likewise.
58642
58643 2008-03-25  Bruno Haible  <bruno@clisp.org>
58644
58645         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58646         detail which gettext release to use.
58647         Reported by Simon Josefsson.
58648
58649 2008-03-26  Jim Meyering  <meyering@redhat.com>
58650
58651         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58652         * modules/gnumakefile (clean-GNUmakefile): Also, use
58653         test ... && ... || : syntax rather than if-then ... fi.
58654
58655         gnumakefile: Don't double-quote-expand $(VPATH) value.
58656         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58657
58658 2008-03-24  Eric Blake  <ebb9@byu.net>
58659
58660         Alter GNUmakefile to install into top directory.
58661         * modules/maintainer-makefile: Split, and add dependency...
58662         * modules/gnumakefile: to this new module.
58663         * build-aux/GNUmakefile: Move...
58664         * top/GNUmakefile: ...here.
58665         * build-aux/maint.mk: Move...
58666         * top/maint.mk: ...here.
58667         * MODULES.html.sh (Support for maintaining...): Document new
58668         module.
58669
58670 2008-03-23  Bruno Haible  <bruno@clisp.org>
58671
58672         * gnulib-tool: New options --vc-files, --no-vc-files.
58673         (func_usage): Document them.
58674         (vc_files): New variable.
58675         (func_import): Consider vc_files.
58676         (func_create_testdir): Set vc_files to empty.
58677         Suggested by Jim Meyering and Karl Berry.
58678
58679 2008-03-23  Bruno Haible  <bruno@clisp.org>
58680
58681         Fix regex compilation error on HP-UX 11.
58682         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58683         * modules/regex (Files): Add m4/mbstate_t.m4.
58684         Reported by Ton Voon <ton.voon@altinity.com>.
58685
58686 2008-03-23  Bruno Haible  <bruno@clisp.org>
58687
58688         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58689
58690 2008-03-23  Eric Blake  <ebb9@byu.net>
58691             Bruno Haible  <bruno@clisp.org>
58692
58693         Install files from top/ in the destination directory.
58694         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58695         augmentation also for the files from top/.
58696         (func_import, func_create_testdir): Rewrite file names:
58697         top/filename -> filename.
58698
58699 2008-03-23  Bruno Haible  <bruno@clisp.org>
58700
58701         Tweak "gnulib --version" output.
58702         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58703
58704 2008-03-23  Bruno Haible  <bruno@clisp.org>
58705
58706         Tweak "gnulib --version" output.
58707         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58708         rather than contents of ChangeLog, when possible.
58709
58710 2008-03-21  Eric Blake  <ebb9@byu.net>
58711
58712         More --version tweaks.
58713         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58714         date of last ChangeLog entry.
58715
58716 2008-03-21  Jim Meyering  <meyering@redhat.com>
58717
58718         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58719
58720 2008-03-20  Eric Blake  <ebb9@byu.net>
58721
58722         VPATH fix.
58723         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58724
58725 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58726
58727         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58728         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58729
58730 2008-03-20  Eric Blake  <ebb9@byu.net>
58731
58732         Sync GNUmakefile with coreutils.
58733         * build-aux/GNUmakefile (have-Makefile): Rename...
58734         (_have-Makefile): ...to this, for namespace consideration.
58735         (GNUmakefile.cfg): Include, if present.
58736         (_autoreconf): Define a default.
58737         (_is-dist-target): New rule for rebuilds to pick up intra-release
58738         version.
58739         (maint-cfg.mk): Rename...
58740         (cfg.mk): ...to this.
58741
58742 2008-03-18  Jim Meyering  <meyering@redhat.com>
58743
58744         New script and module: mktempd
58745         * MODULES.html.sh (maint+release support): Add mktempd.
58746         * build-aux/mktempd: New file.
58747         * modules/mktempd: New file.
58748
58749 2008-03-15  Jim Meyering  <meyering@redhat.com>
58750
58751         Undo last change.
58752         * lib/sha1.c, lib/md5.c: 63 != ~63.
58753         Reported by Andreas Schwab.
58754
58755         sha1.c, md5.c: Hoist a redundant expression.
58756         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58757         "ctx->buflen" only once, before calling *_process_block.
58758         * lib/md5.c (md5_process_bytes): Likewise.
58759
58760 2008-03-14  Eric Blake  <ebb9@byu.net>
58761
58762         Bump copyright year in files generated by gnulib-tool.
58763         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58764         gnulib-tool, rather than hard-coding it.
58765
58766         Fix 'gnulib-tool --version' output to work with git.
58767         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58768         (startup): ...here.
58769         (func_version): Use it to invoke git-version-gen, rather than
58770         relying on CVS keyword expansion.  Modernize wording.
58771         (cvsdatestamp, last_checkin_date, version): Kill unused
58772         variables.
58773
58774 2008-03-12  Jim Meyering  <meyering@redhat.com>
58775
58776         Recognize optional cast of the argument to free.
58777         * build-aux/useless-if-before-free: Update regexps.
58778
58779         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58780
58781 2008-03-11  Bruno Haible  <bruno@clisp.org>
58782
58783         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58784         by a single package.
58785         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58786         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58787         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58788         Reported by Sam Steingold <sds@gnu.org>.
58789
58790 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58791
58792         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58793         repositories.
58794
58795 2008-03-11  Bruno Haible  <bruno@clisp.org>
58796
58797         Avoid conflicts between local macro definitions.
58798         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58799         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58800
58801 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58802             Bruno Haible  <bruno@clisp.org>
58803
58804         Make va_copy work with some version of xlc on AIX 5.1.
58805         * lib/stdarg.in.h: New file.
58806         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58807         On AIX, use a <stdarg.h> file substitute.
58808         * modules/stdarg (Files): Add lib/stdarg.in.h.
58809         (Depends-on): Add include_next.
58810         (Makefile.am): Build a stdarg.h substitute if requested.
58811         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58812
58813 2008-03-10  Bruno Haible  <bruno@clisp.org>
58814
58815         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58816         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58817         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58818
58819 2008-03-10  Bruno Haible  <bruno@clisp.org>
58820
58821         * modules/stdlib (Depends-on): Add include_next, remove
58822         absolute-header.
58823
58824 2008-03-09  Bruno Haible  <bruno@clisp.org>
58825
58826         * lib/freadahead.h (freadahead): Document more precisely.
58827         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58828         the sum of both buffer sizes.
58829         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58830         * NEWS: Document the change.
58831
58832 2008-03-09  Bruno Haible  <bruno@clisp.org>
58833
58834         Extend freadptr to return also the buffer size.
58835         * lib/freadptr.h (freadptr): Add sizep argument.
58836         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58837         (freadptr): Add sizep argument. Determine buffer size like freadahead
58838         does.
58839         * tests/test-freadptr.c: Don't include freadahead.h.
58840         (main): Adapt for new calling convention of freadptr.
58841         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58842         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58843         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58844         tests/test-freadptr2.sh.
58845         (Depends): Remove freadahead.
58846         (TESTS): Add test-freadptr2.sh.
58847         (check_PROGRAMS): Add test-freadptr2.
58848
58849 2008-03-09  Bruno Haible  <bruno@clisp.org>
58850
58851         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58852         Report and solution by Simon Josefsson.
58853
58854 2008-03-06  Bruno Haible  <bruno@clisp.org>
58855
58856         Make fflush after ungetc work on BSD platforms.
58857         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58858         * tests/test-fflush2.c: New file.
58859         * tests/test-fflush2.sh: New file.
58860         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58861         tests/test-fflush2.c.
58862         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58863         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58864
58865 2008-03-06  Eric Blake  <ebb9@byu.net>
58866
58867         Likewise for ftello.
58868         * modules/ftello (Dependencies): Add extensions.
58869         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58870
58871 2008-03-06  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/fseeko (Dependencies): Add extensions.
58874         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58875         Needed on glibc systems.
58876
58877 2008-03-06  Bruno Haible  <bruno@clisp.org>
58878
58879         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58880         email address.
58881         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58882
58883 2008-03-06  Bruno Haible  <bruno@clisp.org>
58884
58885         * users.txt: Add libgnupdf.
58886
58887 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58888
58889         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58890         (Header File Substitutes, Function Substitutes,
58891         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58892         (Build robot for gnulib): Fix typo.
58893
58894 2008-03-06  Bruno Haible  <bruno@clisp.org>
58895
58896         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58897         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58898
58899 2008-03-06  Bruno Haible  <bruno@clisp.org>
58900
58901         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58902         * doc/gnulib.texi: Include it.
58903
58904 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58905
58906         * modules/func (License): Change license to unlimited; there was
58907         no LGPL parts in the module anyway.
58908
58909 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58910
58911         * modules/__func__: Renamed to modules/func.
58912         * modules/__func__-tests: Renamed to modules/func-tests.
58913         * tests/test-__func__.c: Renamed to tests/test-func.c.
58914         * m4/__func__.m4: Renamed to m4/func.m4.
58915         * doc/gnulib.texi (__func__): Section renamed to func.
58916         Suggested by Eric Blake <ebb9@byu.net>.
58917
58918 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58919
58920         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58921         about __func__.  Make example self-contained.  Suggested by Eric
58922         Blake <ebb9@byu.net>.
58923
58924         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58925         Suggested by Eric Blake <ebb9@byu.net>.
58926
58927 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58928
58929         * modules/__func__: New file.
58930         * modules/__func__-tests: New file.
58931         * tests/test-__func__.c: New file.
58932         * m4/__func__.m4: New file.
58933         * doc/gnulib.texi (__func__): Document __func__ module.
58934
58935 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58936
58937         * modules/byteswap (License): Re-license as LGPLv2+.
58938
58939 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58940
58941         * doc/Makefile: Add pdf target.
58942
58943 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58944
58945         * modules/inline (License): Use 'unlimited', since there are only
58946         *.m4 files in this module.
58947
58948 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58949             Bruno Haible  <bruno@clisp.org>
58950
58951         Add support for HP C 7.1 on OpenVMS 8.3.
58952         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58953
58954 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58955
58956         Update VMS specifics.
58957         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58958
58959 2008-03-02  Jim Meyering  <meyering@redhat.com>
58960
58961         Remove the last dependency on the "free" module.
58962         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58963         Reported by Bob Proulx.
58964
58965         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58966
58967         Remove useless "if" tests before free.  Deprecate "free" module.
58968         * doc/posix-functions/free.texi: Mention that this
58969         module is no longer useful.
58970         * modules/free (Notice): Say this module is obsolete.
58971         * modules/readutmp (Depends-on): Remove free.
58972         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58973         * lib/putenv.c (putenv): Likewise.
58974         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58975         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58976         * tests/test-c-strcasestr.c (main): Likewise.
58977         * tests/test-c-strstr.c (main): Likewise.
58978         * tests/test-mbscasestr1.c (main): Likewise.
58979         * tests/test-mbscasestr2.c (main): Likewise.
58980         * tests/test-mbsstr1.c (main): Likewise.
58981         * tests/test-mbsstr2.c (main): Likewise.
58982         * tests/test-memmem.c (main): Likewise.
58983         * tests/test-strcasestr.c (main): Likewise.
58984         * tests/test-striconv.c (main): Likewise.
58985         * tests/test-striconveh.c (main): Likewise.
58986         * tests/test-striconveha.c (main): Likewise.
58987         * tests/test-strstr.c (main): Likewise.
58988
58989         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58990
58991         bootstrap: sync from coreutils again
58992         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58993
58994 2008-03-01  Jim Meyering  <meyering@redhat.com>
58995
58996         bootstrap: sync from coreutils
58997         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58998         also when the target doesn't exist.
58999
59000 2008-03-01  Eric Blake  <ebb9@byu.net>
59001
59002         Fix bugs in last patch.
59003         * lib/memchr2.c (memchr2): Fix typo.
59004         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59005         extension.
59006         Reported by Bruce Korb.
59007
59008         New module 'memchr2'.
59009         * modules/memchr2: New file.
59010         * modules/memchr2-tests: Likewise.
59011         * lib/memchr2.h: Likewise.
59012         * lib/memchr2.c: Likewise, based on memchr.c.
59013         * tests/test-memchr2.c: New test.
59014         * MODULES.html.sh (String handling): Add memchr2.
59015
59016 2008-02-29  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/freadseek-tests: New file.
59019         * tests/test-freadseek.sh: New file.
59020         * tests/test-freadseek.c: New file.
59021
59022         New module 'freadseek'.
59023         * modules/freadseek: New file.
59024         * lib/freadseek.h: New file.
59025         * lib/freadseek.c: New file.
59026         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59027
59028 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59029
59030         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59031         wydawca.
59032
59033         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59034         program_invocation_name and program_invocation_short_name are
59035         present.
59036
59037 2008-02-28  Bruno Haible  <bruno@clisp.org>
59038
59039         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59040         * tests/test-freadptr.sh: Also test non-seekable stdin.
59041
59042 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59043
59044         * build-aux/bootstrap (source_base, m4_base)
59045         (doc_base, tests_base): New variables.
59046         (gnulib_tool_options): Do not hardcode base directories, use
59047         the above variables instead.
59048
59049 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59050
59051         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59052
59053 2008-02-28  Bruno Haible  <bruno@clisp.org>
59054
59055         * modules/freadptr-tests: New file.
59056         * tests/test-freadptr.sh: New file.
59057         * tests/test-freadptr.c: New file.
59058
59059         New module 'freadptr'.
59060         * modules/freadptr: New file.
59061         * lib/freadptr.h: New file.
59062         * lib/freadptr.c: New file.
59063         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59064
59065 2008-02-26  Karl Berry  <karl@freefriends.org>
59066
59067         Sync from Libtool:
59068         * libltdl/argz.c (argz_add, argz_count): New functions.
59069         * libltdl/argz.in.h: Declare them.
59070         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59071
59072 2008-02-22  Bruno Haible  <bruno@clisp.org>
59073
59074         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59075         is a pointer type.  Needed for HP-UX 10.
59076         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59077         * doc/posix-functions/gmtime_r.texi: Likewise.
59078         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59079
59080 2008-02-24  Bruno Haible  <bruno@clisp.org>
59081
59082         * modules/environ-tests: New file.
59083         * tests/test-environ.c: New file.
59084
59085         New module 'environ'.
59086         * modules/environ: New file.
59087         * lib/unistd.in.h (environ): New declaration.
59088         * m4/environ.m4: New file.
59089         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59090         after use.
59091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59092         HAVE_DECL_ENVIRON.
59093         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59094         HAVE_DECL_ENVIRON.
59095         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59096         wrong claim that 'environ' is missing on some systems.
59097         * modules/execute (Depends-on): Add environ.
59098         * lib/execute.c (environ): Remove fallback declaration.
59099         * modules/pipe (Depends-on): Add environ.
59100         * lib/pipe.c (environ): Remove fallback declaration.
59101         * modules/setenv (Depends-on): Add environ.
59102         * lib/setenv.c (environ): Remove fallback declaration.
59103         * modules/unsetenv (Depends-on): Add environ.
59104         * lib/unsetenv.c (environ): Remove fallback declaration.
59105         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59106         m4/environ.m4.
59107         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59108         (gl_PREREQ_UNSETENV): Likewise.
59109
59110 2008-02-24  Bruno Haible  <bruno@clisp.org>
59111
59112         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59113
59114 2008-02-20  Bob Proulx  <bob@proulx.com>
59115
59116         Enable use of older two part flavor 'git describe'.
59117         * build-aux/git-version-gen: If using the older two part flavor of
59118         git version then recreate the third part now present in the
59119         newer three part flavor of git describe.
59120
59121 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59122
59123         * lib/fts.c (fts_build): Typo correction to comment.
59124
59125 2008-02-17  Bruno Haible  <bruno@clisp.org>
59126
59127         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59128         generating no-op conflicts.
59129
59130 2008-02-17  Bruno Haible  <bruno@clisp.org>
59131
59132         Speed up by 10%.
59133         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59134         result_entries, rather than an index-based loop.
59135
59136 2008-02-17  Bruno Haible  <bruno@clisp.org>
59137
59138         Speed up by 25%.
59139         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59140         'hashcode_cached'.
59141         (entry_create): New function.
59142         (entry_hashcode): Use the cached hashcode if possible.
59143         (read_changelog_file, try_split_merged_entry): Use entry_create.
59144
59145 2008-02-17  Bruno Haible  <bruno@clisp.org>
59146
59147         Speed up from O(n^2) to O(n) for long ChangeLog files.
59148         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59149         (read_changelog_file): Change implementation of entries_reversed list
59150         to rbtreehash.
59151         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59152
59153 2008-02-17  Bruno Haible  <bruno@clisp.org>
59154
59155         New option --split-merged-entry.
59156         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59157         (find_paragraph_end, try_split_merged_entry): New functions.
59158         (long_options): Add option --split-merged-entry.
59159         (usage): Document option --split-merged-entry.
59160         (main): Implement option --split-merged-entry.
59161         Reported by Eric Blake.
59162
59163 2008-02-17  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/git-merge-changelog.c: Include c-strstr.h.
59166         (main): Support the "git pull --rebase" situation.
59167         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59168         Reported by Eric Blake.
59169
59170 2008-02-16  Eric Blake  <ebb9@byu.net>
59171
59172         Avoid doubling \ in common case of "c-maybe" quoting style.
59173         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59174         eliding outer quotes.
59175         * lib/quotearg.h: Document this.
59176         * tests/test-quotearg.c (result_strings, inputs, results_g)
59177         (flag_results, locale_results): Test it by adding a new string to
59178         each test group.
59179         (compare_strings): Test new string.
59180
59181 2008-02-13  Eric Blake  <ebb9@byu.net>
59182
59183         Avoid trigraph quoting in default output.
59184         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59185         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59186         unless explicitly requested.
59187         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59188
59189 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59190
59191         Don't rely on signed integer overflowing to negative value.
59192         * lib/getugroups.c (getugroups): Include <limits.h>.
59193         Instead, compare against INT_MAX, and increment only if the test passes.
59194
59195 2008-02-13  Jim Meyering  <meyering@redhat.com>
59196         and Eric Blake  <ebb9@byu.net>
59197
59198         Avoid shadowing warning and compile errors on Linux.
59199         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59200         forwarding macros on Linux.
59201         (dcgettext): Define a stub, for Linux.
59202         (results_g, main): Avoid warnings.
59203
59204 2008-02-12  Eric Blake  <ebb9@byu.net>
59205
59206         Silence warning in last patch.
59207         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59208
59209         Quotearg part 4: add tests, fix c-maybe colon quoting.
59210         * lib/quotearg.h: Improve documentation.
59211         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59212         escapes when adding outer quotes.  When quoting trigraphs, use
59213         valid C notation.  When quoting NUL, omit extra characters if next
59214         character is not digit.  Alter prototype.
59215         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59216         callers.
59217         * modules/quotearg-tests: New module.
59218         * tests/test-quotearg.c: New test.
59219
59220 2008-02-07  Eric Blake  <ebb9@byu.net>
59221
59222         Quotearg part 3: add flag to control outer quote elision.
59223         * lib/quotearg.h (c_maybe_quoting_style): New style.
59224         (enum quoting_flags): Better documentation of flags.
59225         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59226         c-maybe style.
59227         (quotearg_buffer_restyled): Handle new flag to elide outer
59228         quotes.
59229
59230         Quotearg part 2: add flag that can control NUL elision.
59231         * lib/quotearg.h (set_quoting_flags): New prototype.
59232         * lib/quotearg.c (struct quoting_options): Add flag field.
59233         (set_quoting_flags): New function.
59234         (quotearg_buffer_restyled): Add flags parameter.
59235         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59236         (quotearg_n_options): Set the flag, since length cannot be
59237         returned.
59238         (quoting_options_from_style): Default flags correctly.
59239
59240         Quotearg part 1: more wrappers, restore quotearg_char state.
59241         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59242         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59243         (quotearg_colon_mem): New wrappers.
59244         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59245         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59246         functions.
59247         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59248         (quotearg_colon_mem): New functions.
59249
59250 2008-02-11  Bruno Haible  <bruno@clisp.org>
59251
59252         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59253         library in the current directory: it does not work with parallel make.
59254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59255
59256 2008-02-11  Bruno Haible  <bruno@clisp.org>
59257
59258         * .gitattributes: New file.
59259
59260 2008-02-11  Jim Meyering  <meyering@redhat.com>
59261
59262         useless-if-before-free: Fix reversed exit values.
59263         * build-aux/useless-if-before-free: Use correct values
59264         for EXIT_MATCH and EXIT_NO_MATCH.
59265
59266         * build-aux/useless-if-before-free: Close stdout carefully.
59267
59268 2008-02-10  Bruno Haible  <bruno@clisp.org>
59269
59270         New module 'git-merge-changelog'.
59271         * modules/git-merge-changelog: New file.
59272         * lib/git-merge-changelog.c: New file.
59273
59274 2008-02-10  Jim Meyering  <meyering@redhat.com>
59275
59276         useless-if-before-free: New option: --list (-l).
59277
59278         useless-if-before-free: Don't exit immediately upon open failure.
59279         * build-aux/useless-if-before-free: Exit 2 for errors.
59280         Upon failure to open a file, don't exit immediately.
59281         Rather, just warn and continue with any remaining files.
59282
59283 2008-02-10  Bruno Haible  <bruno@clisp.org>
59284
59285         New abstract list operation 'node_set_value'.
59286         * lib/gl_list.h (gl_list_node_set_value): New function.
59287         (struct gl_list_implementation): New field node_set_value.
59288         * lib/gl_list.c (gl_list_node_set_value): New function.
59289         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59290         (gl_array_list_implementation): Update.
59291         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59292         (gl_carray_list_implementation): Update.
59293         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59294         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59295         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59296         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59297         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59298         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59299         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59300         Update.
59301         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59302         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59303         (gl_sublist_list_implementation): Update.
59304
59305 2008-02-10  Bruno Haible  <bruno@clisp.org>
59306
59307         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59308         Needed when ELEMENT is #defined to 'some_type *'.
59309
59310 2008-02-10  Jim Meyering  <meyering@redhat.com>
59311
59312         New script and module: useless-if-before-free
59313         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59314         * build-aux/useless-if-before-free: New file.
59315         * modules/useless-if-before-free: New file.
59316
59317         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59318
59319         xstrtol_error: Fix typo.
59320         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59321         s/exit_failure/exit_status/.
59322
59323 2008-02-09  Jim Meyering  <meyering@redhat.com>
59324
59325         New script and module: gitlog-to-changelog
59326         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59327         * modules/gitlog-to-changelog: New file.
59328         * build-aux/gitlog-to-changelog: New file.
59329
59330 2008-02-08  Jim Meyering  <meyering@redhat.com>
59331
59332         Avoid two "parameter unused" warnings.
59333         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59334         Mark "st" as used.
59335
59336         Use "git COMMAND", not "git-COMMAND".
59337         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59338         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59339         * build-aux/git-version-gen: Use "git status", not "git-status".
59340
59341 2008-02-07  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59344         Avoids a crash on Windows Vista.
59345         Reported by Adam Strzelecki <ono@java.pl> via
59346         Simon Josefsson <simon@josefsson.org>.
59347
59348 2008-02-06  Bruno Haible  <bruno@clisp.org>
59349
59350         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59351         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59352         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59354         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59356         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59357         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59359         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59360         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59361         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59362         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59365         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59366         left-adjust flag.
59367         * tests/test-snprintf-posix.h (test_function): Likewise.
59368         * tests/test-sprintf-posix.h (test_function): Likewise.
59369         * tests/test-vasprintf-posix.c (test_function): Likewise.
59370         * doc/posix-functions/fprintf.texi: Update.
59371         * doc/posix-functions/printf.texi: Update.
59372         * doc/posix-functions/snprintf.texi: Update.
59373         * doc/posix-functions/sprintf.texi: Update.
59374         * doc/posix-functions/vfprintf.texi: Update.
59375         * doc/posix-functions/vprintf.texi: Update.
59376         * doc/posix-functions/vsnprintf.texi: Update.
59377         * doc/posix-functions/vsprintf.texi: Update.
59378         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59379
59380 2008-02-06  Bruno Haible  <bruno@clisp.org>
59381
59382         Fix bug introduced on 2008-01-26.
59383         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59384
59385 2008-02-06  Bruno Haible  <bruno@clisp.org>
59386
59387         Fix bug introduced on 2007-06-10.
59388         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59389         !NEED_PRINTF_FLAG_ZERO.
59390
59391 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59392
59393         getloadavg: use libperfstat on AIX5
59394         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59395
59396 2008-02-03  Bruno Haible  <bruno@clisp.org>
59397
59398         * lib/diffseq.h: Add comments about required #includes.
59399         Reported by Michael Biggs <gnulib@doubleplum.net>.
59400
59401 2008-02-01  Bruno Haible  <bruno@clisp.org>
59402
59403         * users.txt: Add gnuit.
59404
59405 2008-01-31  Bruno Haible  <bruno@clisp.org>
59406
59407         * lib/md4.c (set_uint32): Mark as inline.
59408         * lib/md5.c (set_uint32): Likewise.
59409         * lib/sha1.c (set_uint32): Likewise.
59410         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59411         * m4/md5.m4 (gl_MD5): Likewise.
59412         * m4/sha1.m4 (gl_SHA1): Likewise.
59413
59414 2008-01-31  Jim Meyering  <meyering@redhat.com>
59415
59416         Use "sizeof VAR", rather than a literal "4".
59417         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59418         * lib/md4.c (md4_read_ctx): Likewise.
59419         * lib/sha1.c (sha1_read_ctx): Likewise.
59420
59421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59422
59423         * tests/test-sha1.c: New file, based on test-md5.c.
59424
59425         * modules/crypto/sha1-tests: New file.
59426
59427 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59428
59429         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59430
59431 2008-01-31  Jim Meyering  <meyering@redhat.com>
59432
59433         Prefer "sizeof v" over the equivalent "4".
59434         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59435         * lib/md5.c (set_uint32): Likewise.
59436         * lib/sha1.c (set_uint32): Likewise.
59437
59438 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59439
59440         * lib/sha1.c (set_uint32): Mark function as static.
59441
59442 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59443
59444         md2: clarify comments to say that alignment is not required.
59445         * lib/md2.h: Remove warning about alignment in comment.
59446         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59447         never been required.
59448
59449 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59450
59451         md4: adapt alignment constraint fix from sha1.
59452         * lib/md4.c (set_uint32): New function, from sha1.c
59453         (md4_read_ctx): Use it.
59454         (md4_finish_ctx): Doc fix.
59455         * lib/md4.h: Doc fix.
59456
59457 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59458
59459         md5: adapt alignment constraint fix from sha1.
59460         * lib/md5.c (set_uint32): New function, from sha1.c
59461         (md5_read_ctx): Use it.
59462         (md5_finish_ctx): Doc fix.
59463         * lib/md5.h: Doc fix.
59464
59465 2008-01-30  Peter Palfrader  <weasel@debian.org>
59466
59467         sha1: remove the result buffer alignment constraint
59468         * lib/sha1.c (set_uint32): New function.
59469         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59470         constraint.
59471         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59472         * lib/sha1.h: Likewise.
59473
59474 2008-01-30  Andreas Schwab  <schwab@suse.de>
59475             Bruno Haible  <bruno@clisp.org>
59476
59477         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59478         correct definition of LDBL_MIN_EXP.
59479
59480 2008-01-30  Karl Berry  <karl@gnu.org>
59481
59482         * config/srclist-update: try to preserve x bit on updates.
59483         * config/srclistvars.sh: update for karl.
59484
59485 2008-01-29  Jim Meyering  <meyering@redhat.com>
59486
59487         vasnprintf.c: Avoid warning about unused label
59488         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59489         "overflow" label definition and associated code with the
59490         same cpp condition that guards the sole use of that label.
59491
59492 2008-01-26  Bruno Haible  <bruno@clisp.org>
59493
59494         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59495         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59496         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59497         * lib/isnanl-nolibm.h (isnanl): Likewise.
59498         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59499
59500 2008-01-26  Bruno Haible  <bruno@clisp.org>
59501
59502         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59503         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59504
59505 2008-01-26  Bruno Haible  <bruno@clisp.org>
59506
59507         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59508         GCC >= 4.0 built-in.
59509         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59510
59511 2008-01-26  Bruno Haible  <bruno@clisp.org>
59512
59513         Rename isnan, applicable to 'double' only, to isnand.
59514         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59515         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59516         (configure.ac): Update.
59517         (Include): Replace "isnan.h" with "isnand.h".
59518         * m4/isnand.m4: Renamed from m4/isnan.m4.
59519         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59520         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59521         instead of isnan.c.
59522         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59523         instead of HAVE_ISNAN_IN_LIBC.
59524         (isnand): Renamed from isnan.
59525         * lib/isnand.c: New file.
59526         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59527         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59528         (Makefile.am): Update.
59529         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59530         Include isnand.h instead of isnan.h.
59531         (main): Test isnand instead of isnan.
59532         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59533         isnan-nolibm.
59534         * modules/frexp (Depends-on): Likewise.
59535         * modules/frexp-tests (Depends-on): Likewise.
59536         * modules/frexp-nolibm (Depends-on): Likewise.
59537         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59538         * modules/isfinite (Depends-on): Likewise.
59539         * modules/round-tests (Depends-on): Likewise.
59540         * modules/signbit (Depends-on): Likewise.
59541         * modules/signbit-tests (Depends-on): Likewise.
59542         * modules/snprintf-posix (Depends-on): Likewise.
59543         * modules/sprintf-posix (Depends-on): Likewise.
59544         * modules/trunc-tests (Depends-on): Likewise.
59545         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59552         * modules/vasnprintf-posix (Depends-on): Likewise.
59553         * modules/vasprintf-posix (Depends-on): Likewise.
59554         * modules/vfprintf-posix (Depends-on): Likewise.
59555         * modules/vsnprintf-posix (Depends-on): Likewise.
59556         * modules/vsprintf-posix (Depends-on): Likewise.
59557         * lib/frexp.c: Include isnand.h instead of isnan.h.
59558         (ISNAN): Set to isnand instead of isnan.
59559         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59560         (gl_isfinited): Use isnand instead of isnan.
59561         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59562         (gl_signbitd): Use isnand instead of isnan.
59563         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59564         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59565         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59566         (main): Use isnand instead of isnan.
59567         * tests/test-round1.c: Include isnand.h.
59568         (main): Use isnand instead of isnan.
59569         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59570         (ISNAN): Set to isnand instead of isnan.
59571         * tests/test-trunc1.c: Include isnand.h.
59572         (main): Use isnand instead of isnan.
59573         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59574         (equal): Use isnand instead of isnan.
59575         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59576         isnand-nolibm.
59577         * NEWS: Mention the change.
59578
59579 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59580             Bruno Haible  <bruno@clisp.org>
59581
59582         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59583         the GCC builtins for signbits are present and set
59584         REPLACE_SIGNBIT_USING_GCC if so.
59585         * lib/math.in.h (signbit): Define using GCC builtins if
59586         REPLACE_SIGNBIT_USING_GCC is set.
59587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59588         REPLACE_SIGNBIT_USING_GCC.
59589         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59590
59591 2008-01-25  Jim Meyering  <meyering@redhat.com>
59592
59593         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59594         * lib/poll.c: Include <config.h>, not "config.h".
59595         * tests/test-getaddrinfo.c: Likewise.
59596
59597 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59598
59599         * modules/sockets-tests: New file.
59600
59601 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59602
59603         * modules/sockets: New module, can be used to call WSA_Startup and
59604         WSA_Cleanup when needed.
59605
59606         * lib/sockets.h, lib/sockets.c: New files.
59607
59608         * m4/sockets.m4: New file.
59609
59610         * tests/test-sockets.c: New file.
59611
59612 2008-01-19  Bruno Haible  <bruno@clisp.org>
59613
59614         * doc/posix-headers: Renamed from doc/headers.
59615         * doc/posix-functions: Renamed from doc/functions.
59616         * doc/gnulib.texi: Update.
59617
59618 2008-01-19  Bruno Haible  <bruno@clisp.org>
59619
59620         * doc/glibc-functions/strcasestr.texi: Include contents of
59621         doc/functions/strcasestr.texi, fixing the list of platforms.
59622         * doc/functions/strcasestr.texi: Remove file.
59623
59624 2008-01-19  Bruno Haible  <bruno@clisp.org>
59625
59626         * doc/glibc-functions/memmem.texi: Include contents of
59627         doc/functions/memmem.texi.
59628         * doc/functions/memmem.texi: Remove file.
59629
59630 2008-01-18  Bruno Haible  <bruno@clisp.org>
59631
59632         * doc/glibc-functions/*.texi: New files.
59633         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59634         to use the new files.
59635
59636 2008-01-17  Bruno Haible  <bruno@clisp.org>
59637
59638         * tests/test-gethostname.c (main): Fix printf statement.
59639
59640 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59641
59642         * modules/gethostname-tests: New file.
59643
59644         * tests/test-gethostname.c: New file.
59645
59646 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59647
59648         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59649         used by the UNAME case.  Reported by Bruno Haible
59650         <bruno@clisp.org>.
59651
59652 2008-01-17  Eric Blake  <ebb9@byu.net>
59653
59654         Convert c-strcasestr to be more efficient.
59655         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59656         (Depends-on): Add c-strcase, remove malloca, strnlen.
59657         * tests/test-c-strcasestr.c (main): Enhance test.
59658         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59659
59660 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59661
59662         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59663         Use it in creating po/Makevars.
59664
59665 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59666
59667         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59668         Applications that requires it should initialize libgcrypt
59669         manually.
59670
59671 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59672
59673         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59674
59675 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         Fix problem with getdate on mingw32 reported by Simon Josefsson
59678         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59679         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59680         tzname", when deciding whether to declare tzname.
59681         * lib/strftime.c (tzname): Likewise.
59682
59683 2008-01-15  Bruno Haible  <bruno@clisp.org>
59684
59685         Work around a MacOS X 10.5 bug in frexpl().
59686         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59687         * doc/functions/frexpl.texi: Document the bug.
59688         Reported by Elias Pipping <pipping@gentoo.org>.
59689
59690 2008-01-14  Eric Blake  <ebb9@byu.net>
59691
59692         Touch up previous patch.
59693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59694         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59695
59696         Convert strcasestr module to use Two-Way algorithm.
59697         * modules/strcasestr-simple: New module, based on the old
59698         strcasestr, but with Two-Way rather than KMP.
59699         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59700         * lib/string.in.h (rpl_strcasestr): Declare.
59701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59702         performance.
59703         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59704         * modules/string (Makefile.am): Support strcasestr.
59705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59706         * modules/strcasestr-tests (Depends-on): Check for alarm.
59707         * tests/test-strcasestr.c: Augment test.
59708         * lib/str-two-way.h: Clean up stray macro.
59709         * NEWS: Document new module.
59710         * MODULES.html.sh (string handling): Likewise.
59711         * doc/functions/strcasestr.texi: New file.
59712         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59713         here, since it is not a POSIX function.
59714
59715 2008-01-14  Colin Watson  <cjwatson@debian.org>
59716             Bruno Haible  <bruno@clisp.org>
59717
59718         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59719         works fine; if not, set REPLACE_STRSIGNAL.
59720         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59721         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59722         REPLACE_STRSIGNAL.
59723         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59724         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59725         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59726
59727 2008-01-14  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/strsignal (Include): Change to <string.h>.
59730
59731 2008-01-14  Colin Watson  <cjwatson@debian.org>
59732
59733         * modules/argp (Notice): Add a notice recommending to change
59734         XGETTEXT_OPTIONS.
59735         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59736
59737 2008-01-13  Colin Watson  <cjwatson@debian.org>
59738
59739         * modules/strsignal-tests: New file.
59740         * tests/test-strsignal.c: New file.
59741
59742         * lib/strsignal.c: New file, from glibc with modifications.
59743         * lib/siglist.h: New file, from glibc with modifications.
59744         * lib/string.in.h (strsignal): New declaration.
59745         * m4/strsignal.m4: New file.
59746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59747         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59748         * modules/strsignal: New file.
59749         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59750         HAVE_DECL_STRSIGNAL.
59751
59752 2008-01-13  Bruno Haible  <bruno@clisp.org>
59753
59754         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59755         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59756         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59757         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59758
59759 2008-01-13  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59762         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59763         * lib/argp.h (__attribute__): Likewise.
59764         * lib/c-stack.c (__attribute__): Likewise.
59765         * lib/error.h (__attribute__): Likewise.
59766         * lib/fts.c (__attribute__): Likewise.
59767         * lib/openat.h (__attribute__): Likewise.
59768         * lib/stdio.in.h (__attribute__): Likewise.
59769         * lib/string.in.h (__attribute__): Likewise.
59770         * lib/utimens.c (__attribute__): Likewise.
59771         * lib/vasnprintf.h (__attribute__): Likewise.
59772         * lib/xalloc.h (__attribute__): Likewise.
59773         * lib/xprintf.h (__attribute__): Likewise.
59774         * lib/xstrtol.h (__attribute__): Likewise.
59775         * lib/xvasprintf.h (__attribute__): Likewise.
59776
59777 2008-01-12  Bruno Haible  <bruno@clisp.org>
59778
59779         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59780         * doc/glibc-headers/a.out.texi: New file.
59781         * doc/glibc-headers/aliases.texi: New file.
59782         * doc/glibc-headers/alloca.texi: New file.
59783         * doc/glibc-headers/ar.texi: New file.
59784         * doc/glibc-headers/argp.texi: New file.
59785         * doc/glibc-headers/argz.texi: New file.
59786         * doc/glibc-headers/byteswap.texi: New file.
59787         * doc/glibc-headers/crypt.texi: New file.
59788         * doc/glibc-headers/endian.texi: New file.
59789         * doc/glibc-headers/envz.texi: New file.
59790         * doc/glibc-headers/err.texi: New file.
59791         * doc/glibc-headers/error.texi: New file.
59792         * doc/glibc-headers/execinfo.texi: New file.
59793         * doc/glibc-headers/fpu_control.texi: New file.
59794         * doc/glibc-headers/fstab.texi: New file.
59795         * doc/glibc-headers/fts.texi: New file.
59796         * doc/glibc-headers/getopt.texi: New file.
59797         * doc/glibc-headers/ieee754.texi: New file.
59798         * doc/glibc-headers/ifaddrs.texi: New file.
59799         * doc/glibc-headers/libintl.texi: New file.
59800         * doc/glibc-headers/mcheck.texi: New file.
59801         * doc/glibc-headers/mntent.texi: New file.
59802         * doc/glibc-headers/obstack.texi: New file.
59803         * doc/glibc-headers/paths.texi: New file.
59804         * doc/glibc-headers/printf.texi: New file.
59805         * doc/glibc-headers/pty.texi: New file.
59806         * doc/glibc-headers/resolv.texi: New file.
59807         * doc/glibc-headers/shadow.texi: New file.
59808         * doc/glibc-headers/sysexits.texi: New file.
59809         * doc/glibc-headers/ttyent.texi: New file.
59810
59811 2008-01-12  Jim Meyering  <meyering@redhat.com>
59812
59813         announce-gen: emit Gnulib's git-based version string.
59814         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59815         New option --gnulib-version=V, where V is expected to be
59816         the output of running git describe in the gnulib directory.
59817         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59818         not useful, and plan to stop publishing an xdelta file with each
59819         coreutils release.
59820
59821         * build-aux/announce-gen: Also check for lzma-compressed files.
59822
59823 2008-01-11  Bruno Haible  <bruno@clisp.org>
59824
59825         * tests/test-memmem.c (main): Increase maximum allowed time.
59826         * tests/test-strstr.c (main): Likewise.
59827
59828 2008-01-11  Bruno Haible  <bruno@clisp.org>
59829
59830         * doc/functions/memmem.texi: Add more precisions about platforms.
59831         * doc/functions/strstr.texi: Likewise.
59832
59833 2008-01-10  Eric Blake  <ebb9@byu.net>
59834
59835         * m4/strstr.m4: Delete cruft from copy-n-paste.
59836         Reported by Bruno Haible.
59837
59838 2008-01-10  Bruno Haible  <bruno@clisp.org>
59839
59840         Make c-strstr rely on strstr.
59841         * lib/c-strstr.c: Don't include str-kmp.h.
59842         (c_strstr): Define in terms of strstr.
59843         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59844         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59845
59846 2008-01-10  Bruno Haible  <bruno@clisp.org>
59847
59848         * doc/gnulib.texi (String Functions in C Locale): New section.
59849         * doc/c-ctype.texi: New file.
59850         * doc/c-strcase.texi: New file.
59851         * doc/c-strcaseeq.texi: New file.
59852         * doc/c-strcasestr.texi: New file.
59853         * doc/c-strstr.texi: New file.
59854         * doc/c-strtod.texi: New file.
59855         * doc/c-strtold.texi: New file.
59856
59857 2008-01-10  Eric Blake  <ebb9@byu.net>
59858
59859         * lib/relocatable.h: Fix a comment.
59860
59861 2008-01-10  Eric Blake  <ebb9@byu.net>
59862
59863         Share two-way algorithm.
59864         * lib/str-two-way.h: New file, merged from...
59865         * lib/memmem.c: ...here...
59866         * lib/strstr.c: ...and here.
59867         * modules/memmem (Files): Use it.
59868         * modules/strstr (Files): Likewise.
59869
59870         Avoid quadratic strstr implementations.
59871         * lib/strstr.c: New file.
59872         * m4/strstr.m4: Likewise.
59873         * modules/strstr: Likewise.
59874         * modules/strstr-tests: Likewise.
59875         * tests/test-strstr.c: Likewise.
59876         * lib/string.in.h (rpl_strstr): Declare.
59877         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59879         * modules/string (Makefile.am): Likewise.
59880         * MODULES.html.sh (string handling): Mention new module.
59881         * doc/functions/strstr.texi (strstr): Document the bug.
59882
59883 2008-01-10  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/relocatable.h (relocate): State whether result is freshly
59886         allocated or not.
59887         * lib/relocatable.c (relocate): Return a freshly allocated string
59888         instead of a pointer to a privately held string.
59889         Reported by Sylvain Beucler <beuc@gnu.org>.
59890
59891 2008-01-10  Colin Watson  <cjwatson@debian.org>
59892
59893         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59894         s/S_ISNLK/S_ISLNK/.
59895
59896 2008-01-09  Bruno Haible  <bruno@clisp.org>
59897
59898         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59899         and other files.
59900         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59901         if it's only a guess.
59902         * modules/memmem: Simplify by depending on memmem-simple.
59903
59904 2008-01-09  Bruno Haible  <bruno@clisp.org>
59905
59906         Work around OpenBSD 4.0 tdelete() bug.
59907         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59908         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59909         macros and don't redefine the enum values.
59910         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59911         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59912         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59913
59914 2008-01-09  Bruno Haible  <bruno@clisp.org>
59915
59916         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59917         (main): Don't perform the tests if setlocale did not install a UTF-8
59918         locale. Needed on OpenBSD 4.0.
59919         * modules/wcwidth-tests (Depends-on): Add localcharset.
59920
59921 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59924         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59925         * NEWS: announce this.
59926         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59927
59928 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59929         and Eric Blake  <ebb9@byu.net>
59930
59931         Add memmem-simple module.
59932         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59933         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59934         * modules/memmem-simple: New file.
59935         * modules/memmem (Description): Tweak.
59936         * MODULES.html.sh (string handling): Mention new module.
59937         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59938         addressed by memmem-simple.
59939         * NEWS: Document the difference.
59940
59941 2008-01-09  Eric Blake  <ebb9@byu.net>
59942
59943         Give gcc some memmem optimization hints.
59944         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59945         (strcasestr): Declare as pure.
59946         * modules/memmem (Maintainer): Claim my implementation.
59947
59948 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59949
59950         Support AIX 6.1 and higher.
59951         * build-aux/config.libpath: Likewise.
59952         * build-aux/config.rpath: Likewise.
59953
59954 2008-01-08  Jim Meyering  <meyering@redhat.com>
59955             Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59958         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59959         Reported by Peter Fales in
59960         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59961
59962 2008-01-08  Bruno Haible  <bruno@clisp.org>
59963
59964         * modules/unictype/category-of (Depends-on): Add
59965         unictype/category-none.
59966         * modules/unictype/category-and-tests (Depends-on): Add
59967         unictype/category-{L,N,Lu,Nd}.
59968         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59969         * modules/unictype/category-or-tests (Depends-on): Add
59970         unictype/category-{L,N}.
59971         * modules/unictype/category-name-tests (Depends-on): Add
59972         unictype/category-{Z,Nl}.
59973         Reported by Simon Josefsson.
59974
59975 2008-01-08  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59978         convention better.
59979         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59980         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59981         Reported by Peter Miller <millerp@canb.auug.org.au>.
59982
59983 2008-01-08  Eric Blake  <ebb9@byu.net>
59984
59985         Rewrite memmem to guarantee linear complexity without malloc.
59986         * lib/memmem.c (memmem): Use Two-Way rather than
59987         Knuth-Morris-Pratt, to allow O(1) space usage.
59988         (critical_factorization, two_way_short_needle)
59989         (two_way_long_needle): New functions.
59990         (knuth_morris_pratt): Delete.
59991         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59992         Add stdint.
59993         * tests/test-memmem.c (main): Add tests for periodic needle and
59994         sublinear performance.
59995         * doc/functions/memmem.texi (memmem): Document other deficiencies
59996         in cygwin and older glibc.
59997
59998 2008-01-08  Bruno Haible  <bruno@clisp.org>
59999
60000         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60001         augmentation.
60002
60003 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60004
60005         Add a configure time option: --disable-acl.
60006         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60007         AC_ARG_ENABLE(acl).
60008
60009 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60010
60011         * tests/test-localename.c: Don't include obsolete "setenv.h".
60012
60013         * modules/localename-tests (Depends-on): Need unsetenv.
60014
60015 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60016
60017         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60018
60019 2008-01-06  Colin Watson  <cjwatson@debian.org>
60020
60021         * users.txt: Add man-db.
60022
60023 2008-01-07  Bruno Haible  <bruno@clisp.org>
60024
60025         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60026         previous section name.
60027
60028 2008-01-07  Bruno Haible  <bruno@clisp.org>
60029
60030         * lib/progname.c (set_program_name): Don't strip off a leading
60031         "lt-" prefix outside a .libs directory.
60032         Suggested by Paul Eggert.
60033
60034 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60035             Bruno Haible  <bruno@clisp.org>
60036
60037         Improve memory cleanup in 'relocatable' module.
60038         * lib/relocatable.h (compute_curr_prefix): Change return type to
60039         'char *'.
60040         * lib/relocatable.c (compute_curr_prefix): Change return type to
60041         'char *'. Free curr_installdir after use.
60042         (relocate): Free curr_prefix_better after use.
60043         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60044
60045 2008-01-01  Bruno Haible  <bruno@clisp.org>
60046
60047         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60048         failure on older glibc systems.
60049         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60050
60051 2008-01-05  Eric Blake  <ebb9@byu.net>
60052
60053         Avoid quadratic system memmem.
60054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60055         Reported by Ralf Wildenhues.
60056
60057         Fix memmem test for mingw.
60058         * modules/memmem-tests (configure.ac): Check for alarm.
60059         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60060         it.
60061         * doc/functions/memmem.texi: New file.
60062         * doc/gnulib.texi (Function Substitutes): Add memmem.
60063         Reported by Bruno Haible.
60064
60065 2008-01-04  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60068         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60069         gl_HEADER_STRING_H_DEFAULTS.
60070
60071 2008-01-04  Eric Blake  <ebb9@byu.net>
60072
60073         Shorten duration of memmem test.
60074         * tests/test-memmem.c (main): Use alarm to declare failure if test
60075         is taking too long.
60076         Reported by Ralf Wildenhues.
60077
60078 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60079
60080         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60081         string, needed by strerror.
60082
60083 2008-01-03  Colin Watson  <cjwatson@debian.org>
60084             Bruno Haible  <bruno@clisp.org>
60085
60086         * doc/gnulib-tool.texi (Localization): New section.
60087
60088 2008-01-02  Bruno Haible  <bruno@clisp.org>
60089
60090         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60091         variables to 'unsigned char *' type.
60092         Reported by Paul Eggert.
60093
60094 2008-01-02  Jim Meyering  <jim@meyering.net>
60095
60096         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60097
60098 2007-12-31  Jim Meyering  <jim@meyering.net>
60099
60100         Avoid use of private FTS type name.
60101         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60102
60103 2007-12-30  Karl Berry  <karl@gnu.org>
60104
60105         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60106         work around defect in Texinfo and/or the standalone Info browser.
60107
60108 2007-12-30  Bruno Haible  <bruno@clisp.org>
60109
60110         Unify 5 copies of the KMP code.
60111         * lib/str-kmp.h: New file.
60112         * lib/c-strcasestr.c: Include str-kmp.h.
60113         (knuth_morris_pratt): Remove function.
60114         (c_strcasestr): Update.
60115         * lib/c-strstr.c: Include str-kmp.h.
60116         (knuth_morris_pratt): Remove function.
60117         (c_strcasestr): Update.
60118         * lib/mbscasestr.c: Include str-kmp.h.
60119         (knuth_morris_pratt_unibyte): Remove function.
60120         * lib/mbsstr.c: Include str-kmp.h.
60121         (knuth_morris_pratt_unibyte): Remove function.
60122         * lib/strcasestr.c: Include str-kmp.h.
60123         (knuth_morris_pratt): Remove function.
60124         (strcasestr): Update.
60125         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60126         * modules/c-strstr (Files): Likewise.
60127         * modules/mbscasestr (Files): Likewise.
60128         * modules/mbsstr (Files): Likewise.
60129         * modules/strcasestr (Files): Likewise.
60130         Suggested by Paul Eggert.
60131
60132 2007-12-30  Bruno Haible  <bruno@clisp.org>
60133
60134         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60135         defined.
60136
60137 2007-12-30  Bruno Haible  <bruno@clisp.org>
60138
60139         * lib/xmalloca.h: Include xalloc.h.
60140         (xnmalloca): New macro.
60141
60142 2007-12-30  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/malloca.h (nmalloca): New macro.
60145         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60146         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60147         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60148         knuth_morris_pratt_multibyte): Likewise.
60149         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60150         knuth_morris_pratt_multibyte): Likewise.
60151         * lib/memmem.c (knuth_morris_pratt): Likewise.
60152         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60153
60154 2007-12-25  Bruno Haible  <bruno@clisp.org>
60155
60156         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60157         * lib/glob.c: Don't include openat.h.
60158         (link_exists2_p): Add back the code that deals with the
60159         !GLOB_ALTDIRFUNC case.
60160         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60161         let it do the filename concatenation.
60162         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60163         * modules/glob (Depends-on): Remove openat.
60164
60165 2007-12-31  Bruno Haible  <bruno@clisp.org>
60166
60167         * modules/dirfd (License): Change to LGPLv2+.
60168         Approved by Jim Meyering.
60169
60170 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60173         when multiplying M by sizeof (size_t).
60174
60175 2007-12-10  Martin Lambers  <marlam@marlam.de>
60176
60177         Override getpagesize on mingw.
60178         * lib/getpagesize.c: New file.
60179         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60180         * modules/getpagesize (Files): Add lib/getpagesize.c.
60181         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60183         REPLACE_GETPAGESIZE.
60184         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60185
60186 2007-12-25  Bruno Haible  <bruno@clisp.org>
60187
60188         * modules/localcharset (Notice): New field.
60189         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60190         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60191
60192 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60193             Bruno Haible  <bruno@clisp.org>
60194
60195         Avoid using the syntax symbol() in formatted documentation.
60196         * MODULES.html.sh (func_module): When replacing symbol() with a
60197         hyperlink, remove the parentheses. Show an error if some remain.
60198         Recognize and render the '...' syntax.
60199         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60200         Rework. Add paragraph about GCC's inlining.
60201         * doc/alloca.texi: Likewise.
60202         * doc/error.texi: Remove parentheses from symbol reference.
60203         * doc/gnulib-intro.texi: Likewise.
60204         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60205         * modules/fnmatch (Description): Reword to say "the ... function".
60206         * modules/full-read (Description): Likewise.
60207         * modules/full-write (Description): Likewise.
60208         * modules/safe-read (Description): Likewise.
60209         * modules/safe-write (Description): Likewise.
60210         * modules/strchrnul (Description): Likewise.
60211         * modules/trim (Description): Likewise.
60212         * modules/error (Description): Remove parentheses from symbol
60213         references.
60214         * modules/verror (Description): Likewise.
60215         Reported by Karl Berry.
60216
60217 2007-12-25  Bruno Haible  <bruno@clisp.org>
60218
60219         Fixup after 2007-10-16 commit.
60220         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60221
60222 2007-12-24  Bruno Haible  <bruno@clisp.org>
60223
60224         Make --enable-relocatable work with DESTDIR.
60225         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60226         to compute installdir from destprog.
60227         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60228         also set the RELOC_DESTDIR variable.
60229         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60230
60231 2007-12-24  Bruno Haible  <bruno@clisp.org>
60232
60233         Fix link error due to xalloc_die().
60234         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60235         of xreadlink.
60236         * lib/relocwrapper.c: Update comments.
60237         * build-aux/install-reloc: Remove xreadlink.c from file list.
60238         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60239         xreadlink.c.
60240         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60241
60242 2007-12-24  Bruno Haible  <bruno@clisp.org>
60243
60244         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60245         * lib/setenv.h: Remove file.
60246         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60247         lib/setenv.h.
60248         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60249         (Depends-on): Add stdlib.
60250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60251         gl_FUNC_UNSETENV.
60252         (Include): Replace setenv.h with <stdlib.h>.
60253         * modules/unsetenv: New file.
60254         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60255         * lib/unsetenv.c: Include <stdlib.h> first.
60256         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60257         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60258         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60259         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60260         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60261         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60263         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60264         * doc/functions/unsetenv.texi: Update.
60265         * modules/xsetenv (Depends-on): Add unsetenv.
60266         * modules/getdate (Depends-on): Likewise.
60267         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60268         * lib/xsetenv.c: Don't include setenv.h.
60269         * lib/getdate.y: Likewise.
60270         * lib/relocwrapper.c: Likewise.
60271         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60272         (Depends-on): Add stdlib.
60273         * NEWS: Mention the changes.
60274         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60275
60276 2007-12-23  Bruno Haible  <bruno@clisp.org>
60277
60278         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60279         indentation.
60280
60281 2007-12-23  Bruno Haible  <bruno@clisp.org>
60282
60283         * lib/c-strcasestr.c: Add more comments.
60284         * lib/c-strstr.c: Likewise.
60285         * lib/mbscasestr.c: Likewise.
60286         * lib/mbsstr.c: Likewise.
60287         * lib/strcasestr.c: Likewise.
60288         * lib/memmem.c: Likewise.
60289
60290 2007-12-23  Bruno Haible  <bruno@clisp.org>
60291
60292         * tests/test-memmem.c: Include <string.h> first.
60293
60294 2007-12-22  Bruno Haible  <bruno@clisp.org>
60295
60296         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60297         the contents of $testsbase.
60298         Reported by Ralf Wildenhues.
60299
60300 2007-12-22  Bruno Haible  <bruno@clisp.org>
60301
60302         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60303         two variables local_ldadd_before, local_ldadd_last.
60304
60305 2007-12-20  Eric Blake  <ebb9@byu.net>
60306
60307         Work around circular library issue when cross-compiling.
60308         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60309         that progname.o does not need to pull in rpl_memcmp.
60310
60311 2007-12-19  Eric Blake  <ebb9@byu.net>
60312
60313         Fix memmem to avoid O(n^2) worst-case complexity.
60314         * lib/memmem.c (knuth_morris_pratt): New function.
60315         (memmem): Use it if first few naive iterations fail.
60316         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60317         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60318         * modules/memchr (License): Likewise.
60319         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60320         malloca.
60321         * tests/test-memmem.c: Rewrite, borrowing ideas from
60322         test-mbsstr1.c; the old version wouldn't even compile!
60323         * modules/memmem-tests: New file.
60324         * lib/string.in.h (rpl_memmem): Add declaration.
60325         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60327         REPLACE_MEMMEM.
60328
60329 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60332         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60333         before any system include files, and undef after them all.  This
60334         should fix a problem on VMS reported by John E. Malmberg in
60335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60336
60337 2007-12-17  Eric Blake  <ebb9@byu.net>
60338
60339         Revert addition of verify, for BSD/OS.
60340         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60341         can't handle large files, for the sake of obsolete platforms.
60342         * modules/fseeko (Depends-on): Remove verify.
60343         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60344         * doc/functions/ftello.texi (ftello): Likewise.
60345         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60346         Reported by Larry Jones.
60347
60348 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60349
60350         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60351         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60352
60353 2007-12-17  Jim Meyering  <meyering@redhat.com>
60354
60355         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60356         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60357         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60358         * modules/getcwd (Depends-on): Add openat.
60359         Reported by Petr Salinger.
60360
60361 2007-12-17  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60364         avoid a segmentation fault of the configure test on x86_64 systems.
60365
60366 2007-12-15  Jim Meyering  <meyering@redhat.com>
60367
60368         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60369
60370 2007-12-13  Eric Blake  <ebb9@byu.net>
60371
60372         Another fseek test.
60373         * tests/test-fseek.c (main): Also test ungetc handling.
60374         * tests/test-fseeko.c (main): Likewise.
60375         * modules/fseeko (Depends-on): Add verify.
60376         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60377         large.
60378         Reported by Larry Jones.
60379
60380         Fix fseeko on mingw.
60381         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60382         seek.
60383
60384         Beef up fseek tests.
60385         * tests/test-fseek.c (main): Also test eof handling.
60386         * tests/test-fseeko.c (main): Likewise.
60387         Reported by Larry Jones.
60388
60389 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60390
60391         Fix fseeko on BSD-based platforms.
60392         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60393         successful seek.
60394
60395 2007-12-12  Eric Blake  <ebb9@byu.net>
60396
60397         Allow circular dependency of separate libtests.a
60398         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60399         when use_libtests.
60400
60401 2007-12-11  Eric Blake  <ebb9@byu.net>
60402
60403         Fix bug with -0.0L in previous patch.
60404         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60405         * tests/test-isnan.c (main): Also test on zeroes.
60406         * tests/test-isnanf.c (main): Likewise.
60407         * tests/test-isnanl.h (main): Likewise.
60408
60409         Detect pseudo-denormals on x86 even when cross-compiling.
60410         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60411         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60412         invalid bit patterns that happen to satisfy ==.
60413
60414         Avoid link failures with separate libtests.a.
60415         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60416         last, to satisfy circular dependencies.
60417
60418 2007-12-11  Eric Blake  <ebb9@byu.net>
60419         and Bruno Haible  <bruno@clisp.org>
60420
60421         Fix OpenBSD 4.0 <float.h> handling of long double.
60422         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60423         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60424         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60425
60426 2007-12-11  Jim Meyering  <meyering@redhat.com>
60427
60428         * users.txt: Add libvirt.
60429
60430         Support versions of autoconf prior to 2.59c.
60431         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60432         if it is not already defined.
60433
60434 2007-12-09  Bruno Haible  <bruno@clisp.org>
60435
60436         Let 'gnulib-tool --import' collect sources needed for the tests in
60437         tests/ rather than in lib/.
60438         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60439         argument. If true, add rules to generate libtests.a, and put libtests.a
60440         into $(LDADD). Consider source files in subdirectories and set
60441         uses_subdirs.
60442         (func_emit_initmacro_start, func_emit_initmacro_end,
60443         func_emit_initmacro_done): Pass all arguments explicitly.
60444         (func_import): Determine two module lists main_modules,
60445         testsrelated_modules. Determine use_libtests. Determine two variables
60446         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60447         instead of just sed_transform_lib_file. Determine two variables
60448         main_files and testsrelated_files. Compute 'files' as the union of
60449         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60450         func_add_or_update. In the generated gnulib-comp.m4, collect the
60451         object files for tests/ in different variables than those for lib/.
60452         Substitute LIBTESTS_LIBDEPS.
60453         (func_create_testdir): Combine the uses_subdirs results from
60454         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60455
60456 2007-12-09  Bruno Haible  <bruno@clisp.org>
60457
60458         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60459         the build-aux directory.
60460
60461 2007-12-09  Bruno Haible  <bruno@clisp.org>
60462
60463         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60464         introduced on 2006-09-09.
60465
60466 2007-12-07  Jim Meyering  <meyering@redhat.com>
60467
60468         Let these macros work also with autoconf-2.59.
60469         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60470         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60472
60473 2007-12-06  Jim Meyering  <meyering@redhat.com>
60474
60475         Avoid a configure-time syntax error in gl_FUNC_ACL.
60476         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60477         function in each branch, before testing the cache variable.
60478
60479 2007-12-04  Eric Blake  <ebb9@byu.net>
60480
60481         Make scripts executable.
60482         * build-aux/config.guess: Add execute permissions.
60483         * build-aux/config.sub: Likewise.
60484         * build-aux/gendocs.sh: Likewise.
60485
60486         Fix frexp on mingw.
60487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60488         cross-compiling.
60489         * doc/functions/frexp.texi (frexp): Document the bug.
60490
60491         Make cygwin fseeko check more reliable.
60492         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60493         version numbers, rather than unrelated feature check.
60494         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60495         * doc/functions/ftello.texi (ftello): Likewise.
60496         Reported by Bruno Haible.
60497
60498         * m4/strerror.m4: Bump version number.
60499
60500 2007-12-03  Bruno Haible  <bruno@clisp.org>
60501
60502         * doc/functions/mprotect.texi: Mention the mingw problem.
60503
60504 2007-12-03  Eric Blake  <ebb9@byu.net>
60505
60506         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60507         REPLACE_STRERROR is initialized before this macro.
60508
60509 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60512         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60513         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60514         put -lsec in even for programs other than 'ls'.  This fixes a problem
60515         for gettext reported by Bruno Haible in
60516         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60517         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60518         Add support for Solaris 10.  This isn't efficient, but should get the
60519         job done for now.
60520
60521 2007-12-03  James Youngman  <jay@gnu.org>
60522
60523         * doc/regexprops-generic.texi: change "an close-group" to "a
60524         close-group" and "illegal" to "not allowed".
60525
60526 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60527
60528         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60529         pr_byname.h. Needed for the rare case when the maintainer has done
60530         "make maintainer-clean" in the source directory and then attempts a
60531         build outside the source directory.
60532         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60533         scripts_byname.h.
60534
60535 2007-12-02  Martin Lambers <marlam@marlam.de>
60536             Bruno Haible  <bruno@clisp.org>
60537
60538         * lib/getpagesize.h: Remove file.
60539         * lib/unistd.in.h: Include declaration of getpagesize here.
60540         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60541         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60542         HAVE_SYS_PARAM_H.
60543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60544         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60545         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60546         (Depends-on): Add unistd.
60547         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60548         (Include): Use <unistd.h> instead of getpagesize.h.
60549         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60550         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60551         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60552         gl_GETPAGESIZE invocation, already handled by module dependency.
60553         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60554
60555 2007-12-02  Bruno Haible  <bruno@clisp.org>
60556
60557         * modules/strings-tests: New file.
60558         * tests/test-strings.c: New file.
60559
60560         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60561         * lib/strings.in.h: New file.
60562         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60563         * m4/strings_h.m4: New file.
60564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60565         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60566         * modules/strings: New file.
60567         * modules/string (Makefile.am): Update.
60568         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60569         Reported by Karl Berry.
60570
60571 2007-12-01  Eric Blake  <ebb9@byu.net>
60572
60573         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60574         accommodate fix in cygwin 1.5.25.
60575
60576 2007-12-01  Jim Meyering  <meyering@redhat.com>
60577
60578         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60579         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60580         that would inhibit utf8-optimization of a regexp containing line-
60581         or buffer-anchors, e.g., `^', `$'.
60582
60583 2007-11-30  Bruno Haible  <bruno@clisp.org>
60584
60585         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60586         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60587         glthread_recursive_lock_init.
60588         * lib/lock.c (glthread_recursive_lock_init)
60589         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60590         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60591
60592 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60593
60594         New function qset_acl, like set_acl but with syscall semantics.
60595         * lib/acl.h (qset_acl): New decl.
60596         * lib/acl.c (qset_acl): New function.
60597         (set_acl): Use new function.  Use more-consistent diagnostics.
60598
60599 2007-11-28  Jim Meyering  <meyering@redhat.com>
60600
60601         * modules/physmem (License): Change from GPL to LGPLv2+.
60602
60603 2007-11-26  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60606         'long double' type has excess precision.
60607         Reported by Jim Meyering in
60608         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60609
60610 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60611
60612         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60613         Sync from <http://gnu.org/licenses>.
60614         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60615         with license text from same location.
60616         * doc/maintain.texi, doc/standards.texi:  Sync from
60617         <http://savannah.gnu.org/projects/gnustandards>.
60618
60619 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60620         and Jim Meyering  <meyering@redhat.com>
60621
60622         Adjust getdate' grammar to accept a slightly more regular language.
60623         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60624         Before, the former was rejected.
60625         * lib/getdate.y (digits_to_date_time): New function, factored
60626         out of ...
60627         (number): ...here.  Just call digits_to_date_time.
60628         (hybrid): New non-terminal to handle an <unsigned number,
60629         signed relative offset> sequence consistently.
60630
60631 2007-11-18  Jim Meyering  <meyering@redhat.com>
60632
60633         Pull my changes from coreutils:
60634         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60635         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60636         use of $gnulib_tool_option_extras, so that it's separated from the
60637         preceding argument.
60638
60639         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60640         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60641         parent destination directories before copying a file into place.
60642
60643 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60644
60645         bootstrap: work also with 4-argument variant of AC_INIT
60646         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60647
60648 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         Port test-getaddrinfo to Solaris.
60651         Problem reported by Bruno Haible in
60652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60653         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60654         explanation of setting 'hints'.
60655         Don't reject an implementation merely because it returns EAI_SERVICE.
60656         (EAI_SERVICE): Define to 0 if not defined.
60657
60658 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60659
60660         The license of gnu-make and posix-shell is now "GPLed build tool".
60661         * modules/gnu-make (License): Likewise.
60662         * modules/posix-shell (License): Likewise.
60663
60664         New module posix-shell, for determining a POSIX shell
60665         or perhaps something that is close enough to a POSIX shell.
60666         * m4/posix-shell.m4: New file.
60667         * modules/posix-shell: New file.
60668
60669         * MODULES.html.sh: Mention new module.
60670
60671         New module gnu-make, for determining whether we're using GNU Make.
60672         * m4/gnu-make.m4: New file.
60673         * modules/gnu-make: New file.
60674         * MODULES.html.sh: Mention new module.
60675
60676 2007-11-14  Jim Meyering  <meyering@redhat.com>
60677
60678         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60679         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60680         use this macro to create a function _definition_.
60681         Remove useless "#undef ARGMATCH_DIE".
60682
60683 2007-11-14  Bruno Haible  <bruno@clisp.org>
60684
60685         * lib/config.charset: Update for OpenBSD 4.1.
60686         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60687
60688 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         Document 64-bit #if problems in stdint.texi.
60691         * doc/headers/stdint.texi (stdint.h): Mention problems with
60692         64-bit-#if, and how to work around them.
60693
60694         Don't insist on 'long long int' support in the preprocessor.  It
60695         breaks too many things.  For example, PRIdMAX still uses a 'long
60696         long int' format with the latest Sun compiler, even though
60697         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60698         preprocessor problem.  This causes the latest coreutils to dump
60699         core on Solaris 10 sparc with the Sun C compiler.
60700         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60701         the troublesome expressions at configure-time, not at #if-time.
60702         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60703         preprocessor.
60704         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60705         compile-time C checks, done at 'configure'-time.
60706         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60707         * modules/inttypes (Makefile): Substitute the new symbols that
60708         gl_INTTYPES_H now generates.
60709         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60710
60711 2007-11-12  Bruno Haible  <bruno@clisp.org>
60712
60713         Tests for Unicode character classification functions.
60714
60715         * modules/unictype/bidicategory-byname-tests: New file.
60716         * modules/unictype/bidicategory-name-tests: New file.
60717         * modules/unictype/bidicategory-of-tests: New file.
60718         * modules/unictype/bidicategory-test-tests: New file.
60719         * modules/unictype/block-list-tests: New file.
60720         * modules/unictype/block-of-tests: New file.
60721         * modules/unictype/block-test-tests: New file.
60722         * modules/unictype/category-C-tests: New file.
60723         * modules/unictype/category-Cc-tests: New file.
60724         * modules/unictype/category-Cf-tests: New file.
60725         * modules/unictype/category-Cn-tests: New file.
60726         * modules/unictype/category-Co-tests: New file.
60727         * modules/unictype/category-Cs-tests: New file.
60728         * modules/unictype/category-L-tests: New file.
60729         * modules/unictype/category-Ll-tests: New file.
60730         * modules/unictype/category-Lm-tests: New file.
60731         * modules/unictype/category-Lo-tests: New file.
60732         * modules/unictype/category-Lt-tests: New file.
60733         * modules/unictype/category-Lu-tests: New file.
60734         * modules/unictype/category-M-tests: New file.
60735         * modules/unictype/category-Mc-tests: New file.
60736         * modules/unictype/category-Me-tests: New file.
60737         * modules/unictype/category-Mn-tests: New file.
60738         * modules/unictype/category-N-tests: New file.
60739         * modules/unictype/category-Nd-tests: New file.
60740         * modules/unictype/category-Nl-tests: New file.
60741         * modules/unictype/category-No-tests: New file.
60742         * modules/unictype/category-P-tests: New file.
60743         * modules/unictype/category-Pc-tests: New file.
60744         * modules/unictype/category-Pd-tests: New file.
60745         * modules/unictype/category-Pe-tests: New file.
60746         * modules/unictype/category-Pf-tests: New file.
60747         * modules/unictype/category-Pi-tests: New file.
60748         * modules/unictype/category-Po-tests: New file.
60749         * modules/unictype/category-Ps-tests: New file.
60750         * modules/unictype/category-S-tests: New file.
60751         * modules/unictype/category-Sc-tests: New file.
60752         * modules/unictype/category-Sk-tests: New file.
60753         * modules/unictype/category-Sm-tests: New file.
60754         * modules/unictype/category-So-tests: New file.
60755         * modules/unictype/category-Z-tests: New file.
60756         * modules/unictype/category-Zl-tests: New file.
60757         * modules/unictype/category-Zp-tests: New file.
60758         * modules/unictype/category-Zs-tests: New file.
60759         * modules/unictype/category-and-not-tests: New file.
60760         * modules/unictype/category-and-tests: New file.
60761         * modules/unictype/category-byname-tests: New file.
60762         * modules/unictype/category-name-tests: New file.
60763         * modules/unictype/category-none-tests: New file.
60764         * modules/unictype/category-of-tests: New file.
60765         * modules/unictype/category-or-tests: New file.
60766         * modules/unictype/category-test-withtable-tests: New file.
60767         * modules/unictype/combining-class-tests: New file.
60768         * modules/unictype/ctype-alnum-tests: New file.
60769         * modules/unictype/ctype-alpha-tests: New file.
60770         * modules/unictype/ctype-blank-tests: New file.
60771         * modules/unictype/ctype-cntrl-tests: New file.
60772         * modules/unictype/ctype-digit-tests: New file.
60773         * modules/unictype/ctype-graph-tests: New file.
60774         * modules/unictype/ctype-lower-tests: New file.
60775         * modules/unictype/ctype-print-tests: New file.
60776         * modules/unictype/ctype-punct-tests: New file.
60777         * modules/unictype/ctype-space-tests: New file.
60778         * modules/unictype/ctype-upper-tests: New file.
60779         * modules/unictype/ctype-xdigit-tests: New file.
60780         * modules/unictype/decimal-digit-tests: New file.
60781         * modules/unictype/digit-tests: New file.
60782         * modules/unictype/mirror-tests: New file.
60783         * modules/unictype/numeric-tests: New file.
60784         * modules/unictype/property-alphabetic-tests: New file.
60785         * modules/unictype/property-ascii-hex-digit-tests: New file.
60786         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60787         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60788         * modules/unictype/property-bidi-block-separator-tests: New file.
60789         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60790         * modules/unictype/property-bidi-common-separator-tests: New file.
60791         * modules/unictype/property-bidi-control-tests: New file.
60792         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60793         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60794         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60795         * modules/unictype/property-bidi-european-digit-tests: New file.
60796         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60797         * modules/unictype/property-bidi-left-to-right-tests: New file.
60798         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60799         * modules/unictype/property-bidi-other-neutral-tests: New file.
60800         * modules/unictype/property-bidi-pdf-tests: New file.
60801         * modules/unictype/property-bidi-segment-separator-tests: New file.
60802         * modules/unictype/property-bidi-whitespace-tests: New file.
60803         * modules/unictype/property-byname-tests: New file.
60804         * modules/unictype/property-combining-tests: New file.
60805         * modules/unictype/property-composite-tests: New file.
60806         * modules/unictype/property-currency-symbol-tests: New file.
60807         * modules/unictype/property-dash-tests: New file.
60808         * modules/unictype/property-decimal-digit-tests: New file.
60809         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60810         * modules/unictype/property-deprecated-tests: New file.
60811         * modules/unictype/property-diacritic-tests: New file.
60812         * modules/unictype/property-extender-tests: New file.
60813         * modules/unictype/property-format-control-tests: New file.
60814         * modules/unictype/property-grapheme-base-tests: New file.
60815         * modules/unictype/property-grapheme-extend-tests: New file.
60816         * modules/unictype/property-grapheme-link-tests: New file.
60817         * modules/unictype/property-hex-digit-tests: New file.
60818         * modules/unictype/property-hyphen-tests: New file.
60819         * modules/unictype/property-id-continue-tests: New file.
60820         * modules/unictype/property-id-start-tests: New file.
60821         * modules/unictype/property-ideographic-tests: New file.
60822         * modules/unictype/property-ids-binary-operator-tests: New file.
60823         * modules/unictype/property-ids-trinary-operator-tests: New file.
60824         * modules/unictype/property-ignorable-control-tests: New file.
60825         * modules/unictype/property-iso-control-tests: New file.
60826         * modules/unictype/property-join-control-tests: New file.
60827         * modules/unictype/property-left-of-pair-tests: New file.
60828         * modules/unictype/property-line-separator-tests: New file.
60829         * modules/unictype/property-logical-order-exception-tests: New file.
60830         * modules/unictype/property-lowercase-tests: New file.
60831         * modules/unictype/property-math-tests: New file.
60832         * modules/unictype/property-non-break-tests: New file.
60833         * modules/unictype/property-not-a-character-tests: New file.
60834         * modules/unictype/property-numeric-tests: New file.
60835         * modules/unictype/property-other-alphabetic-tests: New file.
60836         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60837         * modules/unictype/property-other-grapheme-extend-tests: New file.
60838         * modules/unictype/property-other-id-continue-tests: New file.
60839         * modules/unictype/property-other-id-start-tests: New file.
60840         * modules/unictype/property-other-lowercase-tests: New file.
60841         * modules/unictype/property-other-math-tests: New file.
60842         * modules/unictype/property-other-uppercase-tests: New file.
60843         * modules/unictype/property-paired-punctuation-tests: New file.
60844         * modules/unictype/property-paragraph-separator-tests: New file.
60845         * modules/unictype/property-pattern-syntax-tests: New file.
60846         * modules/unictype/property-pattern-white-space-tests: New file.
60847         * modules/unictype/property-private-use-tests: New file.
60848         * modules/unictype/property-punctuation-tests: New file.
60849         * modules/unictype/property-quotation-mark-tests: New file.
60850         * modules/unictype/property-radical-tests: New file.
60851         * modules/unictype/property-sentence-terminal-tests: New file.
60852         * modules/unictype/property-soft-dotted-tests: New file.
60853         * modules/unictype/property-space-tests: New file.
60854         * modules/unictype/property-terminal-punctuation-tests: New file.
60855         * modules/unictype/property-test-tests: New file.
60856         * modules/unictype/property-titlecase-tests: New file.
60857         * modules/unictype/property-unassigned-code-value-tests: New file.
60858         * modules/unictype/property-unified-ideograph-tests: New file.
60859         * modules/unictype/property-uppercase-tests: New file.
60860         * modules/unictype/property-variation-selector-tests: New file.
60861         * modules/unictype/property-white-space-tests: New file.
60862         * modules/unictype/property-xid-continue-tests: New file.
60863         * modules/unictype/property-xid-start-tests: New file.
60864         * modules/unictype/property-zero-width-tests: New file.
60865         * modules/unictype/scripts-tests: New file.
60866         * modules/unictype/syntax-c-ident-tests: New file.
60867         * modules/unictype/syntax-c-whitespace-tests: New file.
60868         * modules/unictype/syntax-java-ident-tests: New file.
60869         * modules/unictype/syntax-java-whitespace-tests: New file.
60870         * tests/unictype/test-bidi_byname.c: New file.
60871         * tests/unictype/test-bidi_name.c: New file.
60872         * tests/unictype/test-bidi_of.c: New file.
60873         * tests/unictype/test-bidi_test.c: New file.
60874         * tests/unictype/test-block_list.c: New file.
60875         * tests/unictype/test-block_of.c: New file.
60876         * tests/unictype/test-block_test.c: New file.
60877         * tests/unictype/test-categ_and.c: New file.
60878         * tests/unictype/test-categ_and_not.c: New file.
60879         * tests/unictype/test-categ_byname.c: New file.
60880         * tests/unictype/test-categ_name.c: New file.
60881         * tests/unictype/test-categ_none.c: New file.
60882         * tests/unictype/test-categ_of.c: New file.
60883         * tests/unictype/test-categ_or.c: New file.
60884         * tests/unictype/test-categ_test_withtable.c: New file.
60885         * tests/unictype/test-combining.c: New file.
60886         * tests/unictype/test-decdigit.c: New file.
60887         * tests/unictype/test-digit.c: New file.
60888         * tests/unictype/test-mirror.c: New file.
60889         * tests/unictype/test-numeric.c: New file.
60890         * tests/unictype/test-pr_byname.c: New file.
60891         * tests/unictype/test-pr_test.c: New file.
60892         * tests/unictype/test-predicate-part1.h: New file.
60893         * tests/unictype/test-predicate-part2.h: New file.
60894         * tests/unictype/test-scripts.c: New file.
60895         * tests/unictype/test-sy_c_ident.c: New file.
60896         * tests/unictype/test-sy_java_ident.c: New file.
60897
60898         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60899         for Unicode 5.0.0.
60900         * tests/unictype/test-categ_Cc.c: Likewise.
60901         * tests/unictype/test-categ_Cf.c: Likewise.
60902         * tests/unictype/test-categ_Cn.c: Likewise.
60903         * tests/unictype/test-categ_Co.c: Likewise.
60904         * tests/unictype/test-categ_Cs.c: Likewise.
60905         * tests/unictype/test-categ_L.c: Likewise.
60906         * tests/unictype/test-categ_Ll.c: Likewise.
60907         * tests/unictype/test-categ_Lm.c: Likewise.
60908         * tests/unictype/test-categ_Lo.c: Likewise.
60909         * tests/unictype/test-categ_Lt.c: Likewise.
60910         * tests/unictype/test-categ_Lu.c: Likewise.
60911         * tests/unictype/test-categ_M.c: Likewise.
60912         * tests/unictype/test-categ_Mc.c: Likewise.
60913         * tests/unictype/test-categ_Me.c: Likewise.
60914         * tests/unictype/test-categ_Mn.c: Likewise.
60915         * tests/unictype/test-categ_N.c: Likewise.
60916         * tests/unictype/test-categ_Nd.c: Likewise.
60917         * tests/unictype/test-categ_Nl.c: Likewise.
60918         * tests/unictype/test-categ_No.c: Likewise.
60919         * tests/unictype/test-categ_P.c: Likewise.
60920         * tests/unictype/test-categ_Pc.c: Likewise.
60921         * tests/unictype/test-categ_Pd.c: Likewise.
60922         * tests/unictype/test-categ_Pe.c: Likewise.
60923         * tests/unictype/test-categ_Pf.c: Likewise.
60924         * tests/unictype/test-categ_Pi.c: Likewise.
60925         * tests/unictype/test-categ_Po.c: Likewise.
60926         * tests/unictype/test-categ_Ps.c: Likewise.
60927         * tests/unictype/test-categ_S.c: Likewise.
60928         * tests/unictype/test-categ_Sc.c: Likewise.
60929         * tests/unictype/test-categ_Sk.c: Likewise.
60930         * tests/unictype/test-categ_Sm.c: Likewise.
60931         * tests/unictype/test-categ_So.c: Likewise.
60932         * tests/unictype/test-categ_Z.c: Likewise.
60933         * tests/unictype/test-categ_Zl.c: Likewise.
60934         * tests/unictype/test-categ_Zp.c: Likewise.
60935         * tests/unictype/test-categ_Zs.c: Likewise.
60936         * tests/unictype/test-ctype_alnum.c: Likewise.
60937         * tests/unictype/test-ctype_alpha.c: Likewise.
60938         * tests/unictype/test-ctype_blank.c: Likewise.
60939         * tests/unictype/test-ctype_cntrl.c: Likewise.
60940         * tests/unictype/test-ctype_digit.c: Likewise.
60941         * tests/unictype/test-ctype_graph.c: Likewise.
60942         * tests/unictype/test-ctype_lower.c: Likewise.
60943         * tests/unictype/test-ctype_print.c: Likewise.
60944         * tests/unictype/test-ctype_punct.c: Likewise.
60945         * tests/unictype/test-ctype_space.c: Likewise.
60946         * tests/unictype/test-ctype_upper.c: Likewise.
60947         * tests/unictype/test-ctype_xdigit.c: Likewise.
60948         * tests/unictype/test-decdigit.h: Likewise.
60949         * tests/unictype/test-digit.h: Likewise.
60950         * tests/unictype/test-numeric.h: Likewise.
60951         * tests/unictype/test-pr_alphabetic.c: Likewise.
60952         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60953         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60954         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60955         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60956         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60957         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60958         * tests/unictype/test-pr_bidi_control.c: Likewise.
60959         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60960         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60961         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60962         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60963         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60964         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60965         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60966         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60967         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60968         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60969         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60970         * tests/unictype/test-pr_combining.c: Likewise.
60971         * tests/unictype/test-pr_composite.c: Likewise.
60972         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60973         * tests/unictype/test-pr_dash.c: Likewise.
60974         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60975         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60976         * tests/unictype/test-pr_deprecated.c: Likewise.
60977         * tests/unictype/test-pr_diacritic.c: Likewise.
60978         * tests/unictype/test-pr_extender.c: Likewise.
60979         * tests/unictype/test-pr_format_control.c: Likewise.
60980         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60981         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60982         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60983         * tests/unictype/test-pr_hex_digit.c: Likewise.
60984         * tests/unictype/test-pr_hyphen.c: Likewise.
60985         * tests/unictype/test-pr_id_continue.c: Likewise.
60986         * tests/unictype/test-pr_id_start.c: Likewise.
60987         * tests/unictype/test-pr_ideographic.c: Likewise.
60988         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60989         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60990         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60991         * tests/unictype/test-pr_iso_control.c: Likewise.
60992         * tests/unictype/test-pr_join_control.c: Likewise.
60993         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60994         * tests/unictype/test-pr_line_separator.c: Likewise.
60995         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60996         * tests/unictype/test-pr_lowercase.c: Likewise.
60997         * tests/unictype/test-pr_math.c: Likewise.
60998         * tests/unictype/test-pr_non_break.c: Likewise.
60999         * tests/unictype/test-pr_not_a_character.c: Likewise.
61000         * tests/unictype/test-pr_numeric.c: Likewise.
61001         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61002         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61003         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61004         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61005         * tests/unictype/test-pr_other_id_start.c: Likewise.
61006         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61007         * tests/unictype/test-pr_other_math.c: Likewise.
61008         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61009         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61010         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61011         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61012         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61013         * tests/unictype/test-pr_private_use.c: Likewise.
61014         * tests/unictype/test-pr_punctuation.c: Likewise.
61015         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61016         * tests/unictype/test-pr_radical.c: Likewise.
61017         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61018         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61019         * tests/unictype/test-pr_space.c: Likewise.
61020         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61021         * tests/unictype/test-pr_titlecase.c: Likewise.
61022         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61023         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61024         * tests/unictype/test-pr_uppercase.c: Likewise.
61025         * tests/unictype/test-pr_variation_selector.c: Likewise.
61026         * tests/unictype/test-pr_white_space.c: Likewise.
61027         * tests/unictype/test-pr_xid_continue.c: Likewise.
61028         * tests/unictype/test-pr_xid_start.c: Likewise.
61029         * tests/unictype/test-pr_zero_width.c: Likewise.
61030         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61031         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61032
61033 2007-11-12  Bruno Haible  <bruno@clisp.org>
61034
61035         Unicode character classification functions.
61036         * lib/unictype.h: New file.
61037         * modules/unictype/base: New file.
61038         * modules/unictype/category-L: New file.
61039         * modules/unictype/category-Lu: New file.
61040         * modules/unictype/category-Ll: New file.
61041         * modules/unictype/category-Lt: New file.
61042         * modules/unictype/category-Lm: New file.
61043         * modules/unictype/category-Lo: New file.
61044         * modules/unictype/category-M: New file.
61045         * modules/unictype/category-Mn: New file.
61046         * modules/unictype/category-Mc: New file.
61047         * modules/unictype/category-Me: New file.
61048         * modules/unictype/category-N: New file.
61049         * modules/unictype/category-Nd: New file.
61050         * modules/unictype/category-Nl: New file.
61051         * modules/unictype/category-No: New file.
61052         * modules/unictype/category-P: New file.
61053         * modules/unictype/category-Pc: New file.
61054         * modules/unictype/category-Pd: New file.
61055         * modules/unictype/category-Ps: New file.
61056         * modules/unictype/category-Pe: New file.
61057         * modules/unictype/category-Pi: New file.
61058         * modules/unictype/category-Pf: New file.
61059         * modules/unictype/category-Po: New file.
61060         * modules/unictype/category-S: New file.
61061         * modules/unictype/category-Sm: New file.
61062         * modules/unictype/category-Sc: New file.
61063         * modules/unictype/category-Sk: New file.
61064         * modules/unictype/category-So: New file.
61065         * modules/unictype/category-Z: New file.
61066         * modules/unictype/category-Zs: New file.
61067         * modules/unictype/category-Zl: New file.
61068         * modules/unictype/category-Zp: New file.
61069         * modules/unictype/category-C: New file.
61070         * modules/unictype/category-Cc: New file.
61071         * modules/unictype/category-Cf: New file.
61072         * modules/unictype/category-Cs: New file.
61073         * modules/unictype/category-Co: New file.
61074         * modules/unictype/category-Cn: New file.
61075         * modules/unictype/category-or: New file.
61076         * modules/unictype/category-of: New file.
61077         * modules/unictype/category-test: New file.
61078         * modules/unictype/category-test-withtable: New file.
61079         * modules/unictype/category-byname: New file.
61080         * modules/unictype/category-none: New file.
61081         * modules/unictype/category-and: New file.
61082         * modules/unictype/category-and-not: New file.
61083         * modules/unictype/category-name: New file.
61084         * modules/unictype/combining-class: New file.
61085         * modules/unictype/category-all: New file.
61086         * modules/unictype/bidicategory-all: New file.
61087         * modules/unictype/bidicategory-byname: New file.
61088         * modules/unictype/bidicategory-name: New file.
61089         * modules/unictype/bidicategory-of: New file.
61090         * modules/unictype/bidicategory-test: New file.
61091         * modules/unictype/decimal-digit: New file.
61092         * modules/unictype/digit: New file.
61093         * modules/unictype/numeric: New file.
61094         * modules/unictype/mirror: New file.
61095         * modules/unictype/property-white-space: New file.
61096         * modules/unictype/property-alphabetic: New file.
61097         * modules/unictype/property-other-alphabetic: New file.
61098         * modules/unictype/property-not-a-character: New file.
61099         * modules/unictype/property-default-ignorable-code-point: New file.
61100         * modules/unictype/property-other-default-ignorable-code-point: New
61101         file.
61102         * modules/unictype/property-deprecated: New file.
61103         * modules/unictype/property-logical-order-exception: New file.
61104         * modules/unictype/property-variation-selector: New file.
61105         * modules/unictype/property-private-use: New file.
61106         * modules/unictype/property-unassigned-code-value: New file.
61107         * modules/unictype/property-uppercase: New file.
61108         * modules/unictype/property-other-uppercase: New file.
61109         * modules/unictype/property-lowercase: New file.
61110         * modules/unictype/property-other-lowercase: New file.
61111         * modules/unictype/property-titlecase: New file.
61112         * modules/unictype/property-soft-dotted: New file.
61113         * modules/unictype/property-id-start: New file.
61114         * modules/unictype/property-other-id-start: New file.
61115         * modules/unictype/property-id-continue: New file.
61116         * modules/unictype/property-other-id-continue: New file.
61117         * modules/unictype/property-xid-start: New file.
61118         * modules/unictype/property-xid-continue: New file.
61119         * modules/unictype/property-pattern-white-space: New file.
61120         * modules/unictype/property-pattern-syntax: New file.
61121         * modules/unictype/property-join-control: New file.
61122         * modules/unictype/property-grapheme-base: New file.
61123         * modules/unictype/property-grapheme-extend: New file.
61124         * modules/unictype/property-other-grapheme-extend: New file.
61125         * modules/unictype/property-grapheme-link: New file.
61126         * modules/unictype/property-bidi-control: New file.
61127         * modules/unictype/property-bidi-left-to-right: New file.
61128         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61129         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61130         * modules/unictype/property-bidi-european-digit: New file.
61131         * modules/unictype/property-bidi-eur-num-separator: New file.
61132         * modules/unictype/property-bidi-eur-num-terminator: New file.
61133         * modules/unictype/property-bidi-arabic-digit: New file.
61134         * modules/unictype/property-bidi-common-separator: New file.
61135         * modules/unictype/property-bidi-block-separator: New file.
61136         * modules/unictype/property-bidi-segment-separator: New file.
61137         * modules/unictype/property-bidi-whitespace: New file.
61138         * modules/unictype/property-bidi-non-spacing-mark: New file.
61139         * modules/unictype/property-bidi-boundary-neutral: New file.
61140         * modules/unictype/property-bidi-pdf: New file.
61141         * modules/unictype/property-bidi-embedding-or-override: New file.
61142         * modules/unictype/property-bidi-other-neutral: New file.
61143         * modules/unictype/property-hex-digit: New file.
61144         * modules/unictype/property-ascii-hex-digit: New file.
61145         * modules/unictype/property-ideographic: New file.
61146         * modules/unictype/property-unified-ideograph: New file.
61147         * modules/unictype/property-radical: New file.
61148         * modules/unictype/property-ids-binary-operator: New file.
61149         * modules/unictype/property-ids-trinary-operator: New file.
61150         * modules/unictype/property-zero-width: New file.
61151         * modules/unictype/property-space: New file.
61152         * modules/unictype/property-non-break: New file.
61153         * modules/unictype/property-iso-control: New file.
61154         * modules/unictype/property-format-control: New file.
61155         * modules/unictype/property-dash: New file.
61156         * modules/unictype/property-hyphen: New file.
61157         * modules/unictype/property-punctuation: New file.
61158         * modules/unictype/property-line-separator: New file.
61159         * modules/unictype/property-paragraph-separator: New file.
61160         * modules/unictype/property-quotation-mark: New file.
61161         * modules/unictype/property-sentence-terminal: New file.
61162         * modules/unictype/property-terminal-punctuation: New file.
61163         * modules/unictype/property-currency-symbol: New file.
61164         * modules/unictype/property-math: New file.
61165         * modules/unictype/property-other-math: New file.
61166         * modules/unictype/property-paired-punctuation: New file.
61167         * modules/unictype/property-left-of-pair: New file.
61168         * modules/unictype/property-combining: New file.
61169         * modules/unictype/property-composite: New file.
61170         * modules/unictype/property-decimal-digit: New file.
61171         * modules/unictype/property-numeric: New file.
61172         * modules/unictype/property-diacritic: New file.
61173         * modules/unictype/property-extender: New file.
61174         * modules/unictype/property-ignorable-control: New file.
61175         * modules/unictype/property-test: New file.
61176         * modules/unictype/property-byname: New file.
61177         * modules/unictype/property-all: New file.
61178         * modules/unictype/scripts: New file.
61179         * modules/unictype/scripts-all: New file.
61180         * modules/unictype/block-of: New file.
61181         * modules/unictype/block-test: New file.
61182         * modules/unictype/block-list: New file.
61183         * modules/unictype/block-all: New file.
61184         * modules/unictype/syntax-c-whitespace: New file.
61185         * modules/unictype/syntax-java-whitespace: New file.
61186         * modules/unictype/syntax-c-ident: New file.
61187         * modules/unictype/syntax-java-ident: New file.
61188         * modules/unictype/ctype-alnum: New file.
61189         * modules/unictype/ctype-alpha: New file.
61190         * modules/unictype/ctype-cntrl: New file.
61191         * modules/unictype/ctype-digit: New file.
61192         * modules/unictype/ctype-graph: New file.
61193         * modules/unictype/ctype-lower: New file.
61194         * modules/unictype/ctype-print: New file.
61195         * modules/unictype/ctype-punct: New file.
61196         * modules/unictype/ctype-space: New file.
61197         * modules/unictype/ctype-upper: New file.
61198         * modules/unictype/ctype-xdigit: New file.
61199         * modules/unictype/ctype-blank: New file.
61200         * lib/unictype/bidi_byname.c: New file.
61201         * lib/unictype/bidi_name.c: New file.
61202         * lib/unictype/bidi_of.c: New file.
61203         * lib/unictype/bidi_test.c: New file.
61204         * lib/unictype/bitmap.h: New file.
61205         * lib/unictype/block_test.c: New file.
61206         * lib/unictype/blocks.c: New file.
61207         * lib/unictype/categ_C.c: New file.
61208         * lib/unictype/categ_Cc.c: New file.
61209         * lib/unictype/categ_Cf.c: New file.
61210         * lib/unictype/categ_Cn.c: New file.
61211         * lib/unictype/categ_Co.c: New file.
61212         * lib/unictype/categ_Cs.c: New file.
61213         * lib/unictype/categ_L.c: New file.
61214         * lib/unictype/categ_Ll.c: New file.
61215         * lib/unictype/categ_Lm.c: New file.
61216         * lib/unictype/categ_Lo.c: New file.
61217         * lib/unictype/categ_Lt.c: New file.
61218         * lib/unictype/categ_Lu.c: New file.
61219         * lib/unictype/categ_M.c: New file.
61220         * lib/unictype/categ_Mc.c: New file.
61221         * lib/unictype/categ_Me.c: New file.
61222         * lib/unictype/categ_Mn.c: New file.
61223         * lib/unictype/categ_N.c: New file.
61224         * lib/unictype/categ_Nd.c: New file.
61225         * lib/unictype/categ_Nl.c: New file.
61226         * lib/unictype/categ_No.c: New file.
61227         * lib/unictype/categ_P.c: New file.
61228         * lib/unictype/categ_Pc.c: New file.
61229         * lib/unictype/categ_Pd.c: New file.
61230         * lib/unictype/categ_Pe.c: New file.
61231         * lib/unictype/categ_Pf.c: New file.
61232         * lib/unictype/categ_Pi.c: New file.
61233         * lib/unictype/categ_Po.c: New file.
61234         * lib/unictype/categ_Ps.c: New file.
61235         * lib/unictype/categ_S.c: New file.
61236         * lib/unictype/categ_Sc.c: New file.
61237         * lib/unictype/categ_Sk.c: New file.
61238         * lib/unictype/categ_Sm.c: New file.
61239         * lib/unictype/categ_So.c: New file.
61240         * lib/unictype/categ_Z.c: New file.
61241         * lib/unictype/categ_Zl.c: New file.
61242         * lib/unictype/categ_Zp.c: New file.
61243         * lib/unictype/categ_Zs.c: New file.
61244         * lib/unictype/categ_and.c: New file.
61245         * lib/unictype/categ_and_not.c: New file.
61246         * lib/unictype/categ_byname.c: New file.
61247         * lib/unictype/categ_name.c: New file.
61248         * lib/unictype/categ_none.c: New file.
61249         * lib/unictype/categ_of.c: New file.
61250         * lib/unictype/categ_or.c: New file.
61251         * lib/unictype/categ_test.c: New file.
61252         * lib/unictype/combining.c: New file.
61253         * lib/unictype/ctype_alnum.c: New file.
61254         * lib/unictype/ctype_alpha.c: New file.
61255         * lib/unictype/ctype_blank.c: New file.
61256         * lib/unictype/ctype_cntrl.c: New file.
61257         * lib/unictype/ctype_digit.c: New file.
61258         * lib/unictype/ctype_graph.c: New file.
61259         * lib/unictype/ctype_lower.c: New file.
61260         * lib/unictype/ctype_print.c: New file.
61261         * lib/unictype/ctype_punct.c: New file.
61262         * lib/unictype/ctype_space.c: New file.
61263         * lib/unictype/ctype_upper.c: New file.
61264         * lib/unictype/ctype_xdigit.c: New file.
61265         * lib/unictype/decdigit.c: New file.
61266         * lib/unictype/digit.c: New file.
61267         * lib/unictype/identsyntaxmap.h: New file.
61268         * lib/unictype/mirror.c: New file.
61269         * lib/unictype/numeric.c: New file.
61270         * lib/unictype/pr_alphabetic.c: New file.
61271         * lib/unictype/pr_ascii_hex_digit.c: New file.
61272         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61273         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61274         * lib/unictype/pr_bidi_block_separator.c: New file.
61275         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61276         * lib/unictype/pr_bidi_common_separator.c: New file.
61277         * lib/unictype/pr_bidi_control.c: New file.
61278         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61279         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61280         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61281         * lib/unictype/pr_bidi_european_digit.c: New file.
61282         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61283         * lib/unictype/pr_bidi_left_to_right.c: New file.
61284         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61285         * lib/unictype/pr_bidi_other_neutral.c: New file.
61286         * lib/unictype/pr_bidi_pdf.c: New file.
61287         * lib/unictype/pr_bidi_segment_separator.c: New file.
61288         * lib/unictype/pr_bidi_whitespace.c: New file.
61289         * lib/unictype/pr_byname.c: New file.
61290         * lib/unictype/pr_byname.gperf: New file.
61291         * lib/unictype/pr_combining.c: New file.
61292         * lib/unictype/pr_composite.c: New file.
61293         * lib/unictype/pr_currency_symbol.c: New file.
61294         * lib/unictype/pr_dash.c: New file.
61295         * lib/unictype/pr_decimal_digit.c: New file.
61296         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61297         * lib/unictype/pr_deprecated.c: New file.
61298         * lib/unictype/pr_diacritic.c: New file.
61299         * lib/unictype/pr_extender.c: New file.
61300         * lib/unictype/pr_format_control.c: New file.
61301         * lib/unictype/pr_grapheme_base.c: New file.
61302         * lib/unictype/pr_grapheme_extend.c: New file.
61303         * lib/unictype/pr_grapheme_link.c: New file.
61304         * lib/unictype/pr_hex_digit.c: New file.
61305         * lib/unictype/pr_hyphen.c: New file.
61306         * lib/unictype/pr_id_continue.c: New file.
61307         * lib/unictype/pr_id_start.c: New file.
61308         * lib/unictype/pr_ideographic.c: New file.
61309         * lib/unictype/pr_ids_binary_operator.c: New file.
61310         * lib/unictype/pr_ids_trinary_operator.c: New file.
61311         * lib/unictype/pr_ignorable_control.c: New file.
61312         * lib/unictype/pr_iso_control.c: New file.
61313         * lib/unictype/pr_join_control.c: New file.
61314         * lib/unictype/pr_left_of_pair.c: New file.
61315         * lib/unictype/pr_line_separator.c: New file.
61316         * lib/unictype/pr_logical_order_exception.c: New file.
61317         * lib/unictype/pr_lowercase.c: New file.
61318         * lib/unictype/pr_math.c: New file.
61319         * lib/unictype/pr_non_break.c: New file.
61320         * lib/unictype/pr_not_a_character.c: New file.
61321         * lib/unictype/pr_numeric.c: New file.
61322         * lib/unictype/pr_other_alphabetic.c: New file.
61323         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61324         * lib/unictype/pr_other_grapheme_extend.c: New file.
61325         * lib/unictype/pr_other_id_continue.c: New file.
61326         * lib/unictype/pr_other_id_start.c: New file.
61327         * lib/unictype/pr_other_lowercase.c: New file.
61328         * lib/unictype/pr_other_math.c: New file.
61329         * lib/unictype/pr_other_uppercase.c: New file.
61330         * lib/unictype/pr_paired_punctuation.c: New file.
61331         * lib/unictype/pr_paragraph_separator.c: New file.
61332         * lib/unictype/pr_pattern_syntax.c: New file.
61333         * lib/unictype/pr_pattern_white_space.c: New file.
61334         * lib/unictype/pr_private_use.c: New file.
61335         * lib/unictype/pr_punctuation.c: New file.
61336         * lib/unictype/pr_quotation_mark.c: New file.
61337         * lib/unictype/pr_radical.c: New file.
61338         * lib/unictype/pr_sentence_terminal.c: New file.
61339         * lib/unictype/pr_soft_dotted.c: New file.
61340         * lib/unictype/pr_space.c: New file.
61341         * lib/unictype/pr_terminal_punctuation.c: New file.
61342         * lib/unictype/pr_test.c: New file.
61343         * lib/unictype/pr_titlecase.c: New file.
61344         * lib/unictype/pr_unassigned_code_value.c: New file.
61345         * lib/unictype/pr_unified_ideograph.c: New file.
61346         * lib/unictype/pr_uppercase.c: New file.
61347         * lib/unictype/pr_variation_selector.c: New file.
61348         * lib/unictype/pr_white_space.c: New file.
61349         * lib/unictype/pr_xid_continue.c: New file.
61350         * lib/unictype/pr_xid_start.c: New file.
61351         * lib/unictype/pr_zero_width.c: New file.
61352         * lib/unictype/scripts.c: New file.
61353         * lib/unictype/sy_c_ident.c: New file.
61354         * lib/unictype/sy_c_whitespace.c: New file.
61355         * lib/unictype/sy_java_ident.c: New file.
61356         * lib/unictype/sy_java_whitespace.c: New file.
61357
61358         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61359         Unicode 5.0.0.
61360         * lib/unictype/blocks.h: Likewise.
61361         * lib/unictype/categ_C.h: Likewise.
61362         * lib/unictype/categ_Cc.h: Likewise.
61363         * lib/unictype/categ_Cf.h: Likewise.
61364         * lib/unictype/categ_Cn.h: Likewise.
61365         * lib/unictype/categ_Co.h: Likewise.
61366         * lib/unictype/categ_Cs.h: Likewise.
61367         * lib/unictype/categ_L.h: Likewise.
61368         * lib/unictype/categ_Ll.h: Likewise.
61369         * lib/unictype/categ_Lm.h: Likewise.
61370         * lib/unictype/categ_Lo.h: Likewise.
61371         * lib/unictype/categ_Lt.h: Likewise.
61372         * lib/unictype/categ_Lu.h: Likewise.
61373         * lib/unictype/categ_M.h: Likewise.
61374         * lib/unictype/categ_Mc.h: Likewise.
61375         * lib/unictype/categ_Me.h: Likewise.
61376         * lib/unictype/categ_Mn.h: Likewise.
61377         * lib/unictype/categ_N.h: Likewise.
61378         * lib/unictype/categ_Nd.h: Likewise.
61379         * lib/unictype/categ_Nl.h: Likewise.
61380         * lib/unictype/categ_No.h: Likewise.
61381         * lib/unictype/categ_P.h: Likewise.
61382         * lib/unictype/categ_Pc.h: Likewise.
61383         * lib/unictype/categ_Pd.h: Likewise.
61384         * lib/unictype/categ_Pe.h: Likewise.
61385         * lib/unictype/categ_Pf.h: Likewise.
61386         * lib/unictype/categ_Pi.h: Likewise.
61387         * lib/unictype/categ_Po.h: Likewise.
61388         * lib/unictype/categ_Ps.h: Likewise.
61389         * lib/unictype/categ_S.h: Likewise.
61390         * lib/unictype/categ_Sc.h: Likewise.
61391         * lib/unictype/categ_Sk.h: Likewise.
61392         * lib/unictype/categ_Sm.h: Likewise.
61393         * lib/unictype/categ_So.h: Likewise.
61394         * lib/unictype/categ_Z.h: Likewise.
61395         * lib/unictype/categ_Zl.h: Likewise.
61396         * lib/unictype/categ_Zp.h: Likewise.
61397         * lib/unictype/categ_Zs.h: Likewise.
61398         * lib/unictype/categ_of.h: Likewise.
61399         * lib/unictype/combining.h: Likewise.
61400         * lib/unictype/ctype_alnum.h: Likewise.
61401         * lib/unictype/ctype_alpha.h: Likewise.
61402         * lib/unictype/ctype_blank.h: Likewise.
61403         * lib/unictype/ctype_cntrl.h: Likewise.
61404         * lib/unictype/ctype_digit.h: Likewise.
61405         * lib/unictype/ctype_graph.h: Likewise.
61406         * lib/unictype/ctype_lower.h: Likewise.
61407         * lib/unictype/ctype_print.h: Likewise.
61408         * lib/unictype/ctype_punct.h: Likewise.
61409         * lib/unictype/ctype_space.h: Likewise.
61410         * lib/unictype/ctype_upper.h: Likewise.
61411         * lib/unictype/ctype_xdigit.h: Likewise.
61412         * lib/unictype/decdigit.h: Likewise.
61413         * lib/unictype/digit.h: Likewise.
61414         * lib/unictype/mirror.h: Likewise.
61415         * lib/unictype/numeric.h: Likewise.
61416         * lib/unictype/pr_alphabetic.h: Likewise.
61417         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61418         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61419         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61420         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61421         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61422         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61423         * lib/unictype/pr_bidi_control.h: Likewise.
61424         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61425         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61426         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61427         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61428         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61429         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61430         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61431         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61432         * lib/unictype/pr_bidi_pdf.h: Likewise.
61433         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61434         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61435         * lib/unictype/pr_combining.h: Likewise.
61436         * lib/unictype/pr_composite.h: Likewise.
61437         * lib/unictype/pr_currency_symbol.h: Likewise.
61438         * lib/unictype/pr_dash.h: Likewise.
61439         * lib/unictype/pr_decimal_digit.h: Likewise.
61440         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61441         * lib/unictype/pr_deprecated.h: Likewise.
61442         * lib/unictype/pr_diacritic.h: Likewise.
61443         * lib/unictype/pr_extender.h: Likewise.
61444         * lib/unictype/pr_format_control.h: Likewise.
61445         * lib/unictype/pr_grapheme_base.h: Likewise.
61446         * lib/unictype/pr_grapheme_extend.h: Likewise.
61447         * lib/unictype/pr_grapheme_link.h: Likewise.
61448         * lib/unictype/pr_hex_digit.h: Likewise.
61449         * lib/unictype/pr_hyphen.h: Likewise.
61450         * lib/unictype/pr_id_continue.h: Likewise.
61451         * lib/unictype/pr_id_start.h: Likewise.
61452         * lib/unictype/pr_ideographic.h: Likewise.
61453         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61454         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61455         * lib/unictype/pr_ignorable_control.h: Likewise.
61456         * lib/unictype/pr_iso_control.h: Likewise.
61457         * lib/unictype/pr_join_control.h: Likewise.
61458         * lib/unictype/pr_left_of_pair.h: Likewise.
61459         * lib/unictype/pr_line_separator.h: Likewise.
61460         * lib/unictype/pr_logical_order_exception.h: Likewise.
61461         * lib/unictype/pr_lowercase.h: Likewise.
61462         * lib/unictype/pr_math.h: Likewise.
61463         * lib/unictype/pr_non_break.h: Likewise.
61464         * lib/unictype/pr_not_a_character.h: Likewise.
61465         * lib/unictype/pr_numeric.h: Likewise.
61466         * lib/unictype/pr_other_alphabetic.h: Likewise.
61467         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61468         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61469         * lib/unictype/pr_other_id_continue.h: Likewise.
61470         * lib/unictype/pr_other_id_start.h: Likewise.
61471         * lib/unictype/pr_other_lowercase.h: Likewise.
61472         * lib/unictype/pr_other_math.h: Likewise.
61473         * lib/unictype/pr_other_uppercase.h: Likewise.
61474         * lib/unictype/pr_paired_punctuation.h: Likewise.
61475         * lib/unictype/pr_paragraph_separator.h: Likewise.
61476         * lib/unictype/pr_pattern_syntax.h: Likewise.
61477         * lib/unictype/pr_pattern_white_space.h: Likewise.
61478         * lib/unictype/pr_private_use.h: Likewise.
61479         * lib/unictype/pr_punctuation.h: Likewise.
61480         * lib/unictype/pr_quotation_mark.h: Likewise.
61481         * lib/unictype/pr_radical.h: Likewise.
61482         * lib/unictype/pr_sentence_terminal.h: Likewise.
61483         * lib/unictype/pr_soft_dotted.h: Likewise.
61484         * lib/unictype/pr_space.h: Likewise.
61485         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61486         * lib/unictype/pr_titlecase.h: Likewise.
61487         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61488         * lib/unictype/pr_unified_ideograph.h: Likewise.
61489         * lib/unictype/pr_uppercase.h: Likewise.
61490         * lib/unictype/pr_variation_selector.h: Likewise.
61491         * lib/unictype/pr_white_space.h: Likewise.
61492         * lib/unictype/pr_xid_continue.h: Likewise.
61493         * lib/unictype/pr_xid_start.h: Likewise.
61494         * lib/unictype/pr_zero_width.h: Likewise.
61495         * lib/unictype/scripts.h: Likewise.
61496         * lib/unictype/scripts_byname.gperf: Likewise.
61497         * lib/unictype/sy_c_ident.h: Likewise.
61498         * lib/unictype/sy_c_whitespace.h: Likewise.
61499         * lib/unictype/sy_java_ident.h: Likewise.
61500         * lib/unictype/sy_java_whitespace.h: Likewise.
61501
61502         * lib/unictype/Makefile: New file.
61503         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61504         glibc.
61505         * lib/unictype/3level.h: New file, copied from glibc.
61506         * lib/unictype/3levelbit.h: New file.
61507
61508 2007-11-11  Bruno Haible  <bruno@clisp.org>
61509
61510         * modules/gperf: New file.
61511         * modules/iconv_open (Depends-on): Add it.
61512         (Makefile.am): Remove the GPERF definition.
61513
61514 2007-11-11  Bruno Haible  <bruno@clisp.org>
61515
61516         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61517         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61518
61519 2007-11-11  Bruno Haible  <bruno@clisp.org>
61520
61521         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61522         (usage): Remove function.
61523
61524 2007-11-11  Bruno Haible  <bruno@clisp.org>
61525
61526         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61527         gl_FUNC_CEILF_LIBS.
61528         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61529         gl_FUNC_CEIL_LIBS.
61530         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61531         gl_FUNC_CEILL_LIBS.
61532         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61533         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61534         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61535
61536 2007-11-11  Bruno Haible  <bruno@clisp.org>
61537
61538         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61539         roundf were declared but do not exist on functions.
61540         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61541         roundl were declared but do not exist on functions.
61542         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61543         HAVE_FLOORL_AND_CEILL, respectively.
61544         Needed for Sun C on Solaris 10.
61545
61546 2007-11-11  Bruno Haible  <bruno@clisp.org>
61547
61548         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61549         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61550         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61551         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61552         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61553         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61554         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61555         HAVE_DECL_ROUNDF.
61556         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61557         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61559         of HAVE_DECL_ROUND*.
61560         * modules/math (Makefile.am): Update.
61561
61562 2007-11-10  Bruno Haible  <bruno@clisp.org>
61563
61564         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61565         ptrdiff_t as m4/intl.m4.
61566
61567 2007-11-10  Jim Meyering  <meyering@redhat.com>
61568
61569         Avoid link failure for the argmatch test.
61570         * tests/test-argmatch.c (usage): Define function to avoid a link
61571         failure: argmatch_die requires a usage function.
61572
61573 2007-11-09  Bruno Haible  <bruno@clisp.org>
61574
61575         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61576         * doc/functions/vsnprintf.texi: Likewise.
61577         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61578         with a size argument < 2.
61579
61580 2007-11-09  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61583         buffer. Fixes an inefficiency introduced on 2007-11-03.
61584
61585 2007-11-09  Bruno Haible  <bruno@clisp.org>
61586
61587         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61588         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61589
61590 2007-11-08  Jim Meyering  <meyering@redhat.com>
61591
61592         Change cache variable name prefix "jm_" to "gl_" everywhere.
61593         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61594         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61595         * m4/uptime.m4: s/gl_/jm_/
61596
61597 2007-11-07  Bruno Haible  <bruno@clisp.org>
61598
61599         Update to GNU gettext 0.17.
61600         * m4/intl.m4: Update to GNU gettext 0.17.
61601         * m4/po.m4: Likewise.
61602         * modules/gettext (Files): Remove m4/ulonglong.m4.
61603         (configure.ac): Require gettext infrastructure from version 0.17.
61604
61605 2007-11-06  Bruno Haible  <bruno@clisp.org>
61606
61607         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61608         symbolic values are not defined in a public header.
61609         * lib/freadable.c (freadable) [QNX]: Likewise.
61610         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61611         * lib/freading.c (freading) [QNX]: Likewise.
61612         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61613         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61614         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61615         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61616         Reported by Alain Magloire.
61617
61618         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61619
61620 2007-11-05  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61623         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61624         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61625         Reported by Eric Blake.
61626
61627 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61628             Bruno Haible  <bruno@clisp.org>
61629
61630         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61631         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61632         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61633         (malloc): Undefine also before including <stdlib.h>.
61634         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61635         Needed on OSF/1 4.0.
61636
61637 2007-11-05  Jim Meyering  <meyering@redhat.com>
61638
61639         git-version-gen: sync from coreutils.
61640         * build-aux/git-version-gen: Add comments.
61641         Change the first '-' to '.' in the snapshot version string,
61642         e.g., 6.9-377-08144 -> 6.9.377-08144
61643         Remove first parameter.
61644         Don't declare a version "-dirty" merely because a time
61645         stamp has changed.
61646
61647 2007-11-04  Bruno Haible  <bruno@clisp.org>
61648
61649         * lib/lock.h: Protect all macro definitions containing an 'if'
61650         statement through a "do { ... } while (0)".
61651         * lib/tls.h: Likewise.
61652
61653 2007-11-04  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61656
61657 2007-11-04  Bruno Haible  <bruno@clisp.org>
61658
61659         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61660         * modules/fprintf-posix (Depends-on): Add nocrash.
61661         * modules/snprintf-posix (Depends-on): Likewise.
61662         * modules/sprintf-posix (Depends-on): Likewise.
61663         * modules/vasnprintf-posix (Depends-on): Likewise.
61664         * modules/vasprintf-posix (Depends-on): Likewise.
61665         * modules/vfprintf-posix (Depends-on): Likewise.
61666         * modules/vsnprintf-posix (Depends-on): Likewise.
61667         * modules/vsprintf-posix (Depends-on): Likewise.
61668         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61669         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61670         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61671         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61672         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61673         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61674         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61675
61676 2007-11-04  Bruno Haible  <bruno@clisp.org>
61677
61678         * modules/nocrash: New file.
61679         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61680         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61681
61682 2007-11-04  Bruno Haible  <bruno@clisp.org>
61683
61684         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61685         precision handling.
61686         * tests/test-vasprintf-posix.c (test_function): Likewise.
61687         * tests/test-snprintf-posix.h (test_function): Likewise.
61688         * tests/test-sprintf-posix.h (test_function): Likewise.
61689
61690         Fix *printf behaviour for large precisions on mingw and BeOS.
61691         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61692         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61694         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61695         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61696         gl_PRINTF_PRECISION and test its result. Invoke
61697         gl_PREREQ_VASNPRINTF_PRECISION.
61698         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61699         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61700         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61701         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61705         * doc/functions/fprintf.texi: Update.
61706         * doc/functions/printf.texi: Update.
61707         * doc/functions/snprintf.texi: Update.
61708         * doc/functions/sprintf.texi: Update.
61709         * doc/functions/vfprintf.texi: Update.
61710         * doc/functions/vprintf.texi: Update.
61711         * doc/functions/vsnprintf.texi: Update.
61712         * doc/functions/vsprintf.texi: Update.
61713
61714 2007-11-04  Bruno Haible  <bruno@clisp.org>
61715
61716         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61717
61718 2007-11-04  Bruno Haible  <bruno@clisp.org>
61719
61720         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61721         Reported by Sylvain Beucler <beuc@gnu.org>.
61722
61723 2007-11-03  Bruno Haible  <bruno@clisp.org>
61724
61725         * tests/test-fprintf-posix2.sh: New file.
61726         * tests/test-fprintf-posix2.c: New file.
61727         * modules/fprintf-posix-tests (Files): Add them.
61728         (TESTS): Add test-fprintf-posix2.sh.
61729         (configure.ac): Check for getrlimit and setrlimit.
61730         (check_PROGRAMS): Add test-fprintf-posix2.
61731
61732         * tests/test-printf-posix2.sh: New file.
61733         * tests/test-printf-posix2.c: New file.
61734         * modules/printf-posix-tests (Files): Add them.
61735         (TESTS): Add test-printf-posix2.sh.
61736         (configure.ac): Check for getrlimit and setrlimit.
61737         (check_PROGRAMS): Add test-printf-posix2.
61738
61739         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61740         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61741         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61742         (decode_double): New function, copied from decode_long_double.
61743         (scale10_round_decimal_decoded): New function, extracted from
61744         scale10_round_decimal_long_double.
61745         (scale10_round_decimal_long_double): Use it.
61746         (scale10_round_decimal_double): New function.
61747         (floorlog10): New function.
61748         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61750         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61751         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61752         gl_PRINTF_ENOMEM and test its result. Invoke
61753         gl_PREREQ_VASNPRINTF_ENOMEM.
61754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61756         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61758         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61760         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61761         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61762         * modules/snprintf-posix (Depends-on): Likewise.
61763         * modules/sprintf-posix (Depends-on): Likewise.
61764         * modules/vasnprintf-posix (Depends-on): Likewise.
61765         * modules/vasprintf-posix (Depends-on): Likewise.
61766         * modules/vfprintf-posix (Depends-on): Likewise.
61767         * modules/vsnprintf-posix (Depends-on): Likewise.
61768         * modules/vsprintf-posix (Depends-on): Likewise.
61769         * doc/functions/fprintf.texi: Update.
61770         * doc/functions/printf.texi: Update.
61771         * doc/functions/snprintf.texi: Update.
61772         * doc/functions/sprintf.texi: Update.
61773         * doc/functions/vfprintf.texi: Update.
61774         * doc/functions/vprintf.texi: Update.
61775         * doc/functions/vsnprintf.texi: Update.
61776         * doc/functions/vsprintf.texi: Update.
61777
61778 2007-11-03  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/frexp-nolibm-tests: New file.
61781
61782         * modules/frexp-nolibm: New file.
61783         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61784
61785 2007-11-03  Bruno Haible  <bruno@clisp.org>
61786
61787         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61788         value is C99 compliant.
61789         Needed for OSF/1 5.1.
61790
61791 2007-11-03  Bruno Haible  <bruno@clisp.org>
61792
61793         Fix out-of-memory handling of vasnprintf.
61794         * lib/printf-parse.c: Include <errno.h>.
61795         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61796         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61797         is already set.
61798
61799 2007-11-02  Eric Blake  <ebb9@byu.net>
61800
61801         Fix tests on cygwin.
61802         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61803
61804 2007-11-01  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61807         warning.
61808         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61809         needed for POSIX compatibility.
61810
61811 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61814         for compatibility with GNU.
61815
61816 2007-11-01  Bruno Haible  <bruno@clisp.org>
61817
61818         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61819         (putenv): Renamed from rpl_putenv. Change argument type from
61820         'const char *' to 'char *'.
61821         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61822         of defining putenv in config.h, just set REPLACE_PUTENV.
61823         * modules/putenv (Depends-on): Add stdlib.
61824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61825         (Include): Use <stdlib.h>.
61826         * lib/stdlib.in.h (putenv): New declaration.
61827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61828         REPLACE_PUTENV.
61829         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61830         REPLACE_PUTENV.
61831         Needed for MacOS X 10.5.0.
61832         Reported by Peter O'Gorman <peter@pogma.com>.
61833
61834 2007-11-01  Jim Meyering  <meyering@redhat.com>
61835
61836         Treat an empty date string exactly like "0".
61837         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61838         if the remaining date string (to be parsed) is empty, use "0".
61839         Reported by Mischa Molhoek and discussed in this thread:
61840         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61841
61842 2007-10-31  Bruno Haible  <bruno@clisp.org>
61843
61844         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61845         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61846         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61847         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61848         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61849         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61850
61851 2007-10-31  Bruno Haible  <bruno@clisp.org>
61852
61853         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61854         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61855         (AC_TYPE_LONG_LONG_INT): Use it.
61856         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61857         it as well.
61858         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61859         to m4/longlong.m4.
61860         * modules/stdint (Files): Remove m4/ulonglong.m4.
61861         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61862         m4/ulonglong.m4.
61863         * modules/strtoumax (Files): Likewise.
61864
61865 2007-10-30  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/xvasprintf-posix: New file.
61868         Suggested by Eric Blake.
61869
61870 2007-10-30  Bruno Haible  <bruno@clisp.org>
61871
61872         * modules/xprintf-posix-tests: New file.
61873         * tests/test-xprintf-posix.sh: New file.
61874         * tests/test-xprintf-posix.c: New file.
61875         * tests/test-xfprintf-posix.c: New file.
61876
61877         * modules/xprintf-posix: New file.
61878
61879 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61880
61881         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61882         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61883         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61884
61885 2007-10-29  Bruno Haible  <bruno@clisp.org>
61886
61887         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61888         contain the special marker '_cv_'.
61889         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61890         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61891         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61892         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61893         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61894         Reported by Ralf Wildenhues.
61895
61896 2007-10-29  Bruno Haible  <bruno@clisp.org>
61897
61898         * gnulib-tool (func_import): When --lgpl is not specified, set
61899         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61900         GPLv3.
61901         Reported by Simon Josefsson.
61902
61903 2007-10-28  Bruno Haible  <bruno@clisp.org>
61904
61905         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61906         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61907         HAVE_DECL_ISFINITE.
61908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61909         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61910         HAVE_DECL_ISFINITE.
61911
61912 2007-10-28  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61915         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61916
61917 2007-10-28  Bruno Haible  <bruno@clisp.org>
61918
61919         Fix link errors with Sun C 5.0 on Solaris 10.
61920         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61921         function is declared but not present in the compiler's libm.
61922         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61923         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61924         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61925         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61926         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61927         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61928         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61930         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61931         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61932         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61933         HAVE_DECL_FLOORL.
61934
61935 2007-10-28  Bruno Haible  <bruno@clisp.org>
61936
61937         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61938         gl_FUNC_FLOORL. Cache the result.
61939         (gl_FUNC_FLOORL): Use it.
61940         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61941         gl_FUNC_CEILL. Cache the result.
61942         (gl_FUNC_CEILL): Use it.
61943
61944         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61945         gl_FUNC_FLOOR. Cache the result.
61946         (gl_FUNC_FLOOR): Use it.
61947         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61948         gl_FUNC_CEIL. Cache the result.
61949         (gl_FUNC_CEIL): Use it.
61950
61951         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61952         gl_FUNC_FLOORF. Cache the result.
61953         (gl_FUNC_FLOORF): Use it.
61954         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61955         gl_FUNC_CEILF. Cache the result.
61956         (gl_FUNC_CEILF): Use it.
61957
61958 2007-10-28  Bruno Haible  <bruno@clisp.org>
61959
61960         * gnulib-tool: Allow specifying the LGPL version number through
61961         --lgpl=2 or --lgpl=3.
61962         (func_usage): Document --lgpl with argument.
61963         Handle --lgpl=... arguments.
61964         (func_import): Recognize also gl_LGPL calls with an argument. When
61965         --lgpl=2 is used and the module's license is just LGPL, report an
61966         error. Set sed_transform_lib_file according to the lgpl variable. In
61967         the generated files, use --lgpl or gl_LGPL invocations with argument,
61968         if necessary.
61969         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61970         an LGPv2+ license.
61971         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61972         gl_LGPL macro.
61973
61974 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61975             Bruno Haible  <bruno@clisp.org>
61976
61977         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61978         (u16_uctomb_aux): Likewise.
61979         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61980         !HAVE_INLINE.
61981         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61982
61983 2007-10-28  Bruno Haible  <bruno@clisp.org>
61984
61985         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61986         Invoke AM_GETTEXT_OPTION if it exists.
61987         * modules/vasprintf: Likewise.
61988         * modules/verror: Likewise.
61989         * modules/xprintf: Likewise.
61990         * modules/xvasprintf: Likewise.
61991
61992 2007-10-27  Ben Pfaff  <blp@gnu.org>
61993
61994         * lib/math.in.h: Define isfinite macro and prototypes for
61995         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61996         implementations.
61997         * m4/math_h.m4: New substitutions for isfinite module.
61998         * lib/isfinite.c: New file.
61999         * m4/isfinite.m4: New file.
62000         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62001         * modules/isfinite: New file.
62002         * modules/isfinite-tests: New file.
62003         * tests/tests-isfinite.c: New file.
62004         * doc/functions/isfinite.texi: Mention isfinite module.
62005         * MODULES.html.sh: Mention new module.
62006
62007 2007-10-27  Ben Pfaff  <blp@gnu.org>
62008
62009         Ralf Wildenhues reported that Tru64 4.0D declares the round
62010         functions but does not have definitions.
62011         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62012         cannot be found in any library, set the output variable to
62013         "missing" instead of "".
62014         * m4/round.m4: Also use our substitute if we cannot find round in
62015         any library, even if it is declared.
62016         * m4/roundf.m4: Likewise for roundf.
62017         * m4/roundl.m4: Likewise for roundl.
62018         * lib/math.in.h: Undefine roundf, round, roundl before defining
62019         their replacements, to allow for hypothetical systems where these
62020         may be defined as macros but not available in libraries.
62021
62022 2007-10-27  Bruno Haible  <bruno@clisp.org>
62023
62024         * doc/gnulib.texi: Invoke @firstparagraphindent.
62025         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62026         changes in gnulib.
62027         (Source changes): New section.
62028
62029 2007-10-26  Bruno Haible  <bruno@clisp.org>
62030
62031         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62032         borrowed from autoconf.
62033
62034 2007-10-26  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62037         strerror returned the empty string. Needed on HP-UX 11.00.
62038
62039 2007-10-24  Micah Cowan  <micah@cowan.name>
62040
62041         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62042         * build-aux/bootstrap: Remove support for now-unnecessary option,
62043         --cvs-user, and envvars CVS_USER, CVS_RSH.
62044
62045 2007-10-24  Jim Meyering  <meyering@redhat.com>
62046
62047         Avoid diagnostics from sha1sum when there is no cached checksum.
62048         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62049         if the po.s1 file hasn't been created yet.
62050
62051         * build-aux/bootstrap: Sync from coreutils:
62052         2007-10-24  Jim Meyering  <meyering@redhat.com>
62053         Get gnulib from the git repository, not from an obsolete cvs one.
62054         * build-aux/bootstrap: Suggestion from Micah Cowan.
62055         2007-10-04  Jim Meyering  <jim@meyering.net>
62056         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62057         (update_po_files): Work also when there are no .po files in po/.
62058
62059 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * README: Append ".git" to git and cg examples.
62062         Problem reported by Benoit Sigoure.
62063
62064 2007-10-23  Micah Cowan  <micah@cowan.name>
62065
62066         * users.txt: Add wget.
62067
62068 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62069
62070         Fix linking of some unistdio tests on FreeBSD.
62071         * modules/unistdio/u16-vsnprintf-tests
62072         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62073         * modules/unistdio/u16-vsprintf-tests
62074         (test_u16_vsnprintf1_LDADD): Likewise.
62075         * modules/unistdio/u32-vsnprintf-tests
62076         (test_u32_vsnprintf1_LDADD): Likewise.
62077         * modules/unistdio/u32-vsprintf-tests
62078         (test_u32_vsprintf1_LDADD): Likewise.
62079         * modules/unistdio/u8-vsnprintf-tests
62080         (test_u8_vsnprintf1_LDADD): Likewise.
62081         * modules/unistdio/u8-vsprintf-tests
62082         (test_u8_vsprintf1_LDADD): Likewise.
62083         * modules/unistdio/ulc-vsnprintf-tests
62084         (test_ulc_vsnprintf1_LDADD): Likewise.
62085         * modules/unistdio/ulc-vsprintf-tests
62086         (test_ulc_vsprintf1_LDADD): Likewise.
62087
62088         Fix linking of some uniconv tests on FreeBSD.
62089         * modules/uniconv/u16-conv-from-enc-tests
62090         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62091         * modules/uniconv/u16-conv-to-enc-tests
62092         (test_u16_conv_to_enc_LDADD): Likewise.
62093         * modules/uniconv/u16-strconv-from-enc-tests
62094         (test_u16_strconv_from_enc_LDADD): Likewise.
62095         * modules/uniconv/u16-strconv-to-enc-tests
62096         (test_u16_strconv_to_enc_LDADD): Likewise.
62097         * modules/uniconv/u32-conv-from-enc-tests
62098         (test_u32_conv_from_enc_LDADD): Likewise.
62099         * modules/uniconv/u32-conv-to-enc-tests
62100         (test_u32_conv_to_enc_LDADD): Likewise.
62101         * modules/uniconv/u32-strconv-from-enc-tests
62102         (test_u32_strconv_from_enc_LDADD): Likewise.
62103         * modules/uniconv/u32-strconv-to-enc-tests
62104         (test_u32_strconv_to_enc_LDADD): Likewise.
62105         * modules/uniconv/u8-conv-from-enc-tests
62106         (test_u8_conv_from_enc_LDADD): Likewise.
62107         * modules/uniconv/u8-conv-to-enc-tests
62108         (test_u8_conv_to_enc_LDADD): Likewise.
62109         * modules/uniconv/u8-strconv-from-enc-tests
62110         (test_u8_strconv_from_enc_LDADD): Likewise.
62111         * modules/uniconv/u8-strconv-to-enc-tests
62112         (test_u8_strconv_to_enc_LDADD): Likewise.
62113
62114 2007-10-22  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62117         size.
62118
62119 2007-10-22  Eric Blake  <ebb9@byu.net>
62120
62121         Tweak x*printf documentation.
62122         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62123         variable name and comments.
62124         Suggested by Bruno Haible.
62125
62126 2007-10-22  Bruno Haible  <bruno@clisp.org>
62127
62128         * lib/acl.c (copy_acl): Fix file name in comment.
62129
62130 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62131
62132         Fix Tru64 problem with stdbool.h.
62133         * lib/stdbool.in.h (false, true):
62134         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62135         Don't declare as an enum in this situation; it runs afoul of Tru64.
62136         Problem reported by Steven M. Schweda in
62137         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62138
62139 2007-10-22  Eric Blake  <ebb9@byu.net>
62140
62141         Also wrap vf?printf.
62142         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62143         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62144         (xvprintf, xvfprintf): New functions.
62145
62146 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62147
62148         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62149         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62150
62151         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62152         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62153
62154 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62157         by Bruno Haible.
62158
62159 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62160
62161         * lib/getloadavg.c
62162         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62163         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62164
62165         * tests/test-i-ring.c: Work for C89.
62166
62167 2007-10-22  Bruno Haible  <bruno@clisp.org>
62168
62169         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62170         -1u, in preprocessor expression, so that we don't test for the bug
62171         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62173
62174 2007-10-22  Eric Blake  <ebb9@byu.net>
62175
62176         * tests/test-yesno.sh: Silence stderr during test.
62177
62178 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62179
62180         * modules/crypto/gc-camellia: New file.
62181
62182         * m4/gc-camellia.m4: New file.
62183
62184         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62185
62186         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62187
62188 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62189
62190         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62191         --help to stdout.  Reported by sms@antinode.org (Steven
62192         M. Schweda).
62193
62194 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62195
62196         * users.txt: Fix link to libksba.
62197
62198 2007-10-21  Ben Pfaff  <blp@gnu.org>
62199
62200         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62201         round.c roundf implementation that depends on floorf and ceilf to
62202         be tested unconditionally.
62203
62204 2007-10-21  Ben Pfaff  <blp@gnu.org>
62205
62206         * m4/check-libm-func.m4: Removed.
62207         * m4/check-math-lib.m4: New file.
62208         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62209         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62210         definition and lack of AC_LIBOBJ([roundf]).
62211         * m4/roundl.m4: Ditto, and similarly for roundl.
62212         * modules/round: Reference new m4 file.
62213         * modules/roundf: Ditto.
62214         * modules/roundl: Ditto.
62215         * tests/test-round2.c (main): Use ROUND instead of round.
62216         Bug report from Bruno Haible.
62217
62218 2007-10-21  Bruno Haible  <bruno@clisp.org>
62219
62220         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62221         context.
62222
62223 2007-10-21  Bruno Haible  <bruno@clisp.org>
62224
62225         * tests/test-wcwidth.c (main): Allow negative result for some control
62226         characters.
62227
62228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62229         Needed on OSF/1 5.1.
62230
62231 2007-10-21  Bruno Haible  <bruno@clisp.org>
62232
62233         * tests/test-floorf1.c: Include isnanf.h.
62234         (main): Use isnanf() instead of isnan().
62235         * tests/test-ceilf1.c: Include isnanf.h.
62236         (main): Use isnanf() instead of isnan().
62237         * tests/test-truncf1.c: Include isnanf.h.
62238         (main): Use isnanf() instead of isnan().
62239         * tests/test-roundf1.c: Include isnanf.h.
62240         (main): Use isnanf() instead of isnan().
62241
62242 2007-10-21  Eric Blake  <ebb9@byu.net>
62243
62244         * users.txt: Update URL for m4.
62245
62246 2007-10-21  Bruno Haible  <bruno@clisp.org>
62247
62248         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62249
62250 2007-10-21  Bruno Haible  <bruno@clisp.org>
62251
62252         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62253         Git's management files if the CVS files are not present.
62254
62255 2007-10-20  Bruno Haible  <bruno@clisp.org>
62256
62257         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62258         gcc-3.4.x.
62259
62260 2007-10-20  Ben Pfaff  <blp@gnu.org>
62261
62262         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62263         implementations.
62264         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62265         * lib/round.c: New file.
62266         * lib/roundf.c: New file.
62267         * lib/roundl.c: New file.
62268         * m4/round.m4: New file.
62269         * m4/roundf.m4: New file.
62270         * m4/roundl.m4: New file.
62271         * m4/check-libm-func-m4: New file.
62272         * modules/math: Replace round, roundf, roundl related @VARS@ in
62273         math.in.h.
62274         * modules/round: New file.
62275         * modules/round-tests: New file.
62276         * modules/roundf: New file.
62277         * modules/roundf-tests: New file.
62278         * modules/roundl: New file.
62279         * modules/roundl-tests: New file.
62280         * tests/test-round1.c: New file.
62281         * tests/test-round2.c: New file.
62282         * tests/test-roundf1.c: New file.
62283         * tests/test-roundf2.c: New file.
62284         * tests/test-roundl.c: New file.
62285         * doc/functions/round.texi: Mention round module.
62286         * doc/functions/roundf.texi: Mention roundf module.
62287         * doc/functions/roundl.texi: Mention roundl module.
62288         * MODULES.html.sh: Mention new modules.
62289         Thanks to Bruno Haible for suggestions.
62290
62291 2007-10-20  Jim Meyering  <meyering@redhat.com>
62292
62293         * lib/xprintf.c: Include <config.h> unconditionally.
62294
62295         Change xprintf's license to GPL.
62296         * modules/xprintf (License): s/LGPL/GPL/, since this module
62297         depends on modules (exit and exitfail) which are GPL.
62298         Suggestion from Bruno Haible.
62299
62300         xprintf fixes.
62301         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62302         Use a clearer diagnostic.
62303         Patch from Bruno Haible.
62304
62305 2007-10-20  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62308         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62309         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62310
62311 2007-10-20  Bruno Haible  <bruno@clisp.org>
62312
62313         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62314         precision in the comparison result > x - 1 or similar.
62315         * tests/test-ceilf2.c (correct_result_p): Likewise.
62316         * tests/test-truncf2.c (correct_result_p): Likewise.
62317         * tests/test-trunc2.c (correct_result_p): Likewise.
62318         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62319
62320 2007-10-20  Bruno Haible  <bruno@clisp.org>
62321
62322         * modules/ceil: New file.
62323         * m4/ceil.m4: New file.
62324         * doc/functions/ceil.texi: Mention the 'ceil' module.
62325
62326 2007-10-20  Bruno Haible  <bruno@clisp.org>
62327
62328         * modules/floor: New file.
62329         * m4/floor.m4: New file.
62330         * doc/functions/floor.texi: Mention the 'floor' module.
62331
62332 2007-10-20  Bruno Haible  <bruno@clisp.org>
62333
62334         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62335         of %a.
62336         * modules/floorf-tests (Depends-on): Likewise.
62337         * modules/truncf-tests (Depends-on): Likewise.
62338         * modules/trunc-tests (Depends-on): Likewise.
62339         Reported by Ben Pfaff.
62340
62341 2007-10-19  Jim Meyering  <meyering@redhat.com>
62342
62343         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62344         Don't bother testing specific errno values.  Just test ferror.
62345
62346         New module: xprintf
62347         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62348
62349 2007-10-19  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62352         syntax.
62353         * modules/javaexec (Makefile.am): Likewise.
62354         * modules/relocatable-prog (Makefile.am): Likewise.
62355         Suggested by Jim Meyering.
62356
62357 2007-10-18  Bruno Haible  <bruno@clisp.org>
62358
62359         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62360         Reported by Jim Meyering.
62361
62362 2007-10-18  Eric Blake  <ebb9@byu.net>
62363
62364         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62365
62366 2007-10-18  Bruno Haible  <bruno@clisp.org>
62367
62368         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62369         the format string into writable memory. Needed in Fortify conditions.
62370
62371 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62372             Bruno Haible  <bruno@clisp.org>
62373
62374         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62375         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62376         * modules/trim (Depends-on): Add mbchar.
62377         (configure.ac): Add gl_FUNC_MBRTOWC.
62378         (Makefile.am): Augment lib_SOURCES.
62379
62380 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         Modify glob.c to use fstatat and dirfd, to simplify it.
62383         Suggested by Eric Blake.
62384         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62385         Don't include <stdbool.h>; not used.
62386         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62387         (link_exists_p): Simplify implementation, since we can now assume
62388         dirfd and fstatat.
62389         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62390
62391 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62392
62393         * gnulib-tool (func_get_dependencies): Fix sed script to
62394         match only tests.
62395
62396 2007-10-17  Bruno Haible  <bruno@clisp.org>
62397
62398         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62399         allow locale names without encoding suffix.
62400         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62401         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62402
62403 2007-10-16  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62406         * lib/getgroups.c (getgroups): Likewise.
62407         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62408
62409 2007-10-16  Bruno Haible  <bruno@clisp.org>
62410
62411         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62412         * modules/malloc-posix (License): Likewise.
62413         * modules/realloc-posix (License): Likewise.
62414         * modules/calloc-posix (License): Likewise.
62415         * modules/intprops (License): Change from GPL to LGPL, with
62416         Paul Eggert's approval.
62417
62418 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62419
62420         Merge glibc changes into lib/glob.c.
62421
62422         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62423         2007-10-15 04:59:03 UTC.  Here are the changes:
62424
62425         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62426
62427         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62428
62429         * lib/glob.c: Add some branch prediction throughout.
62430
62431         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62432
62433         [BZ #5103]
62434         * lib/glob.c (glob): Recognize patterns starting \/.
62435
62436         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62437
62438         [BZ #3996]
62439         * lib/glob.c (attribute_hidden): Define if not defined.
62440         (glob): Unescape dirname, filename or username when needed and not
62441         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62442         is NULL.  Handle unescaped [ in pattern without closing ].
62443         Don't pass GLOB_CHECK down to recursive glob for directories.
62444         (__glob_pattern_type): New function.
62445         (__glob_pattern_p): Implement using __glob_pattern_type.
62446         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62447         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62448         Remove unreachable code.
62449
62450         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62451
62452         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62453         explain why there are no leaks.
62454
62455         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62456
62457         [BZ #3253]
62458         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62459         time, rather allocate increasingly bigger arrays of pointers, if
62460         possible with alloca, if too large with malloc.
62461
62462 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62463
62464         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62465         Problem reported by H.Merijn Brand in
62466         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62468         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62469
62470 2007-10-15  Bruno Haible  <bruno@clisp.org>
62471
62472         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62473         with explicit rpl_ prefix.
62474         * lib/fopen.c (fopen): Likewise.
62475         * lib/freopen.c (freopen): Likewise.
62476         * lib/iconv.c (iconv): Likewise.
62477         * lib/iconv_close.c (iconv_close): Likewise.
62478
62479 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62480
62481         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62482
62483 2007-10-15  Bruno Haible  <bruno@clisp.org>
62484
62485         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62486         <stddef.h> instead of <stdlib.h> since we only need NULL.
62487         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62488
62489 2007-10-15  Bruno Haible  <bruno@clisp.org>
62490
62491         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62492         Replace paragraph talking about LIBOBJS.
62493         Reported by Colin Watson <cjwatson@debian.org>.
62494
62495 2007-10-15  Bruno Haible  <bruno@clisp.org>
62496
62497         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62498         <stdlib.h> before using NULL.
62499
62500 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62501
62502         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62503         Reported by Albert Chin <china@thewrittenword.com>.
62504
62505 2007-10-14  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/iconv_open-utf-tests: New file.
62508         * tests/test-iconv-utf.c: New file.
62509
62510         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62511         * modules/iconv_open-utf: New file.
62512         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62513         (iconv, iconv_close): New declarations.
62514         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62515         be defined.
62516         (iconv_open): Add special handling of conversion between UTF-8 and
62517         UTF-{16,32}{BE,LE}.
62518         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62519         * lib/iconv_close.c: New file.
62520         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62521         gl_FUNC_ICONV_OPEN.
62522         (gl_FUNC_ICONV_OPEN): Use it.
62523         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62524         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62525         and REPLACE_ICONV_UTF.
62526         * modules/iconv_open (Depends-on): Add c-strcase.
62527         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62528         ICONV_CONST.
62529         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62530
62531 2007-10-13  Albert Chin  <china@thewrittenword.com>
62532             Bruno Haible  <bruno@clisp.org>
62533
62534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62535         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62536
62537 2007-10-13  Bruno Haible  <bruno@clisp.org>
62538
62539         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62540         defined, use the ISO C99 inline semantics.
62541         * lib/argp.h (ARGP_EI): Likewise.
62542
62543 2007-10-13  Bruno Haible  <bruno@clisp.org>
62544
62545         Handle 'inline' change in gcc 4.3.0.
62546         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62547         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62548         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62549         argp_fmtstream_point): Disable 'extern' declaration if the function
62550         definition is going to be provided inline.
62551         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62552         semantics, not the ISO C99 inline semantics.
62553         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62554         'extern' declaration if the function definition is going to be provided
62555         inline.
62556         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62557         the GNU C inline semantics, not the ISO C99 inline semantics. With
62558         GCC 4.2, avoid a warning.
62559
62560 2007-10-13  Bruno Haible  <bruno@clisp.org>
62561
62562         * lib/freading.h (freading): Enable the use of __freading for
62563         glibc >= 2.7.
62564         * lib/freading.c (freading): Likewise.
62565
62566 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62569         "warning: C99 inline functions are not supported; using GNU89".
62570
62571 2007-10-12  Bruno Haible  <bruno@clisp.org>
62572
62573         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62574         of 2.
62575         * tests/test-ceilf2.c: New file.
62576         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62577
62578         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62579         * modules/ceilf-tests: Update.
62580
62581 2007-10-12  Bruno Haible  <bruno@clisp.org>
62582
62583         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62584         of 2.
62585         * tests/test-floorf2.c: New file.
62586         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62587
62588         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62589         * modules/floorf-tests: Update.
62590
62591 2007-10-12  Bruno Haible  <bruno@clisp.org>
62592
62593         * tests/test-trunc2.c: New file.
62594         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62595
62596         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62597         * modules/trunc-tests: Update.
62598
62599 2007-10-12  Bruno Haible  <bruno@clisp.org>
62600
62601         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62602         of 2.
62603         * tests/test-truncf2.c: New file.
62604         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62605
62606         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62607         * modules/truncf-tests: Update.
62608
62609 2007-10-11  Eric Blake  <ebb9@byu.net>
62610
62611         Don't claim strerror is broken on Interix.
62612         * doc/functions/strerror.texi (strerror): Known broken systems are
62613         now Solaris 8, and not Interix.
62614         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62615         Interix on cross-compile.
62616         Reported by Martin Koeppe in
62617         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62618
62619 2007-10-11  Bruno Haible  <bruno@clisp.org>
62620
62621         * modules/i-ring-tests: New file.
62622         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62623         instead of assert.
62624
62625 2007-10-11  Bruno Haible  <bruno@clisp.org>
62626
62627         * modules/filenamecat-tests: New file.
62628         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62629         * lib/filenamecat.c: Remove test code.
62630
62631 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62634
62635         * lib/strerror.c: Include <string.h> always, to test interface,
62636         and to remove the need for the dummy.
62637         Include intprops.h to compute width instead of doing it ourselves
62638         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62639         (strerror): Define it to return NULL if there's no system strerror.
62640         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62641         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62642         ancient pre-strerror Unix systems well any more.  Saying "unknown
62643         system error" is enough.
62644         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62645         simpler strerror.c implementation.
62646         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62647         Simplify the tests to reflect the simpler strerror implementation.
62648         * modules/strerror (Depends-on): Add intprops.
62649
62650 2007-10-09  Eric Blake  <ebb9@byu.net>
62651
62652         Silence test-fpending.
62653         * modules/fpending-tests (Files): Add wrapper script.
62654         * tests/test-fpending.sh: New file.
62655
62656 2007-10-09  Bruno Haible  <bruno@clisp.org>
62657
62658         * MODULES.html.sh (func_module): Don't create a hyperlink for
62659         function names like 'printf_frexp'.
62660         (Misc): Add crc, memxor.
62661         (Characteristics of floating types): New section.
62662         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62663         isnanf-nolibm, signbit, trunc, truncf, truncl.
62664         (Enhancements for ISO C 99 functions): New subsection Input/output.
62665         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62666         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62667         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62668         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62669         (Enhancements for POSIX:2001 functions): Add chdir-long.
62670         (File system functions): Add areadlink, chdir-safer, read-file.
62671         Remove cycle-check.
62672         (File system as inode set): New section.
62673         (Date and time): Add gethrxtime.
62674         (Multithreading): Add openmp.
62675         (Internationalization functions): Add localename.
62676         (Unicode string functions): Add unistr/u*-mbsnlen.
62677         (Support for maintaining and releasing projects): Add git-version-gen.
62678         (Lone files): Remove directories.
62679
62680 2007-10-08  Ben Pfaff  <blp@gnu.org>
62681
62682         * lib/xmalloca.h: Fix typo in comment.
62683
62684 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62685
62686         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62687         when avoiding problems with integer overflow.  Use a portable test
62688         instead.
62689
62690 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62691
62692         * modules/dummy (License): Change to LGPLv2+.
62693         * modules/float (License): Likewise
62694         * modules/realloc (License): Likewise
62695         * modules/stdlib (License): Likewise
62696
62697 2007-10-07  Bruno Haible  <bruno@clisp.org>
62698
62699         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62700         * floor.c (TWO_MANT_DIG): Likewise.
62701         * ceil.c (TWO_MANT_DIG): Likewise.
62702         Reported by Ben Pfaff.
62703
62704 2007-10-07  Bruno Haible  <bruno@clisp.org>
62705
62706         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62707         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62708         * lib/frexp.c (FUNC): Likewise.
62709         * lib/printf-frexp.h (printf_frexp): Likewise.
62710         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62711         * lib/printf-frexp.c (FUNC): Likewise.
62712         Suggested by Jim Meyering.
62713
62714 2007-10-07  Jim Meyering  <meyering@redhat.com>
62715
62716         Make xnanosleep's integer overflow test more robust.
62717         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62718         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62719
62720 2007-10-07  Bruno Haible  <bruno@clisp.org>
62721
62722         * NEWS: Mention the license change.
62723
62724         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62725         abbreviations in the modules files.
62726
62727         Change copyright notice from GPLv2+ to GPLv3+.
62728         * README: Change copyright notice.
62729         * MODULES.html.sh: Likewise.
62730         * build-aux/bootstrap.conf: Likewise.
62731         * build-aux/config.libpath: Likewise.
62732         * build-aux/csharpcomp.sh.in: Likewise.
62733         * build-aux/csharpexec.sh.in: Likewise.
62734         * build-aux/install-reloc: Likewise.
62735         * build-aux/javacomp.sh.in: Likewise.
62736         * build-aux/javaexec.sh.in: Likewise.
62737         * build-aux/ldd.sh.in: Likewise.
62738         * build-aux/reloc-ldflags: Likewise.
62739         * build-aux/relocatable.sh.in: Likewise.
62740         * build-aux/x-to-1.in: Likewise.
62741         * check-module: Likewise.
62742         * config/srclistvars.sh: Likewise.
62743         * gnulib-tool: Likewise.
62744         * lib/acl-internal.h: Likewise.
62745         * lib/acl.c: Likewise.
62746         * lib/acl.h: Likewise.
62747         * lib/acl_entries.c: Likewise.
62748         * lib/areadlink-with-size.c: Likewise.
62749         * lib/areadlink.c: Likewise.
62750         * lib/areadlink.h: Likewise.
62751         * lib/argmatch.c: Likewise.
62752         * lib/argmatch.h: Likewise.
62753         * lib/argp-ba.c: Likewise.
62754         * lib/argp-eexst.c: Likewise.
62755         * lib/argp-fmtstream.c: Likewise.
62756         * lib/argp-fmtstream.h: Likewise.
62757         * lib/argp-fs-xinl.c: Likewise.
62758         * lib/argp-help.c: Likewise.
62759         * lib/argp-namefrob.h: Likewise.
62760         * lib/argp-parse.c: Likewise.
62761         * lib/argp-pin.c: Likewise.
62762         * lib/argp-pv.c: Likewise.
62763         * lib/argp-pvh.c: Likewise.
62764         * lib/argp-xinl.c: Likewise.
62765         * lib/argp.h: Likewise.
62766         * lib/at-func.c: Likewise.
62767         * lib/atanl.c: Likewise.
62768         * lib/backupfile.c: Likewise.
62769         * lib/backupfile.h: Likewise.
62770         * lib/basename.c: Likewise.
62771         * lib/binary-io.h: Likewise.
62772         * lib/byteswap.in.h: Likewise.
62773         * lib/c-stack.c: Likewise.
62774         * lib/c-stack.h: Likewise.
62775         * lib/c-strcasestr.c: Likewise.
62776         * lib/c-strcasestr.h: Likewise.
62777         * lib/c-strstr.c: Likewise.
62778         * lib/c-strstr.h: Likewise.
62779         * lib/c-strtod.c: Likewise.
62780         * lib/calloc.c: Likewise.
62781         * lib/canon-host.c: Likewise.
62782         * lib/canon-host.h: Likewise.
62783         * lib/canonicalize-lgpl.c: Likewise.
62784         * lib/canonicalize.c: Likewise.
62785         * lib/canonicalize.h: Likewise.
62786         * lib/ceil.c: Likewise.
62787         * lib/ceilf.c: Likewise.
62788         * lib/ceill.c: Likewise.
62789         * lib/chdir-long.c: Likewise.
62790         * lib/chdir-long.h: Likewise.
62791         * lib/chdir-safer.c: Likewise.
62792         * lib/chdir-safer.h: Likewise.
62793         * lib/chown.c: Likewise.
62794         * lib/classpath.c: Likewise.
62795         * lib/classpath.h: Likewise.
62796         * lib/clean-temp.c: Likewise.
62797         * lib/clean-temp.h: Likewise.
62798         * lib/cloexec.c: Likewise.
62799         * lib/close-stream.c: Likewise.
62800         * lib/closein.c: Likewise.
62801         * lib/closein.h: Likewise.
62802         * lib/closeout.c: Likewise.
62803         * lib/closeout.h: Likewise.
62804         * lib/concat-filename.c: Likewise.
62805         * lib/copy-file.c: Likewise.
62806         * lib/copy-file.h: Likewise.
62807         * lib/count-one-bits.h: Likewise.
62808         * lib/crc.c: Likewise.
62809         * lib/crc.h: Likewise.
62810         * lib/creat-safer.c: Likewise.
62811         * lib/csharpcomp.c: Likewise.
62812         * lib/csharpcomp.h: Likewise.
62813         * lib/csharpexec.c: Likewise.
62814         * lib/csharpexec.h: Likewise.
62815         * lib/cycle-check.c: Likewise.
62816         * lib/cycle-check.h: Likewise.
62817         * lib/diacrit.c: Likewise.
62818         * lib/diacrit.h: Likewise.
62819         * lib/diffseq.h: Likewise.
62820         * lib/dirchownmod.c: Likewise.
62821         * lib/dirent.in.h: Likewise.
62822         * lib/dirfd.c: Likewise.
62823         * lib/dirfd.h: Likewise.
62824         * lib/dirname.c: Likewise.
62825         * lib/dirname.h: Likewise.
62826         * lib/dummy.c: Likewise.
62827         * lib/dup-safer.c: Likewise.
62828         * lib/dup2.c: Likewise.
62829         * lib/eealloc.h: Likewise.
62830         * lib/error.c: Likewise.
62831         * lib/error.h: Likewise.
62832         * lib/euidaccess.c: Likewise.
62833         * lib/exclude.c: Likewise.
62834         * lib/exclude.h: Likewise.
62835         * lib/execute.c: Likewise.
62836         * lib/execute.h: Likewise.
62837         * lib/exitfail.c: Likewise.
62838         * lib/exitfail.h: Likewise.
62839         * lib/expl.c: Likewise.
62840         * lib/fatal-signal.c: Likewise.
62841         * lib/fatal-signal.h: Likewise.
62842         * lib/fbufmode.c: Likewise.
62843         * lib/fbufmode.h: Likewise.
62844         * lib/fchdir.c: Likewise.
62845         * lib/fchmodat.c: Likewise.
62846         * lib/fchownat.c: Likewise.
62847         * lib/fcntl--.h: Likewise.
62848         * lib/fcntl-safer.h: Likewise.
62849         * lib/fcntl.in.h: Likewise.
62850         * lib/fd-safer.c: Likewise.
62851         * lib/fflush.c: Likewise.
62852         * lib/file-has-acl.c: Likewise.
62853         * lib/file-set.c: Likewise.
62854         * lib/file-type.c: Likewise.
62855         * lib/file-type.h: Likewise.
62856         * lib/fileblocks.c: Likewise.
62857         * lib/filemode.c: Likewise.
62858         * lib/filemode.h: Likewise.
62859         * lib/filename.h: Likewise.
62860         * lib/filenamecat.c: Likewise.
62861         * lib/filenamecat.h: Likewise.
62862         * lib/findprog.c: Likewise.
62863         * lib/findprog.h: Likewise.
62864         * lib/float.in.h: Likewise.
62865         * lib/floor.c: Likewise.
62866         * lib/floorf.c: Likewise.
62867         * lib/floorl.c: Likewise.
62868         * lib/fopen-safer.c: Likewise.
62869         * lib/fopen.c: Likewise.
62870         * lib/fpending.c: Likewise.
62871         * lib/fpending.h: Likewise.
62872         * lib/fprintf.c: Likewise.
62873         * lib/fprintftime.h: Likewise.
62874         * lib/fpucw.h: Likewise.
62875         * lib/fpurge.c: Likewise.
62876         * lib/fpurge.h: Likewise.
62877         * lib/freadable.c: Likewise.
62878         * lib/freadable.h: Likewise.
62879         * lib/freadahead.c: Likewise.
62880         * lib/freadahead.h: Likewise.
62881         * lib/freading.c: Likewise.
62882         * lib/freading.h: Likewise.
62883         * lib/free.c: Likewise.
62884         * lib/freopen.c: Likewise.
62885         * lib/frexp.c: Likewise.
62886         * lib/frexpl.c: Likewise.
62887         * lib/fseek.c: Likewise.
62888         * lib/fseterr.c: Likewise.
62889         * lib/fseterr.h: Likewise.
62890         * lib/fstatat.c: Likewise.
62891         * lib/fstrcmp.c: Likewise.
62892         * lib/fstrcmp.h: Likewise.
62893         * lib/fsusage.c: Likewise.
62894         * lib/fsusage.h: Likewise.
62895         * lib/ftell.c: Likewise.
62896         * lib/ftello.c: Likewise.
62897         * lib/fts-cycle.c: Likewise.
62898         * lib/fts.c: Likewise.
62899         * lib/fts_.h: Likewise.
62900         * lib/full-read.c: Likewise.
62901         * lib/full-read.h: Likewise.
62902         * lib/full-write.c: Likewise.
62903         * lib/full-write.h: Likewise.
62904         * lib/fwritable.c: Likewise.
62905         * lib/fwritable.h: Likewise.
62906         * lib/fwriteerror.c: Likewise.
62907         * lib/fwriteerror.h: Likewise.
62908         * lib/fwriting.c: Likewise.
62909         * lib/fwriting.h: Likewise.
62910         * lib/gcd.c: Likewise.
62911         * lib/gcd.h: Likewise.
62912         * lib/getcwd.c: Likewise.
62913         * lib/getdate.h: Likewise.
62914         * lib/getdate.y: Likewise.
62915         * lib/getdomainname.c: Likewise.
62916         * lib/getdomainname.h: Likewise.
62917         * lib/getgroups.c: Likewise.
62918         * lib/gethostname.c: Likewise.
62919         * lib/gethrxtime.c: Likewise.
62920         * lib/gethrxtime.h: Likewise.
62921         * lib/getloadavg.c: Likewise.
62922         * lib/getndelim2.c: Likewise.
62923         * lib/getndelim2.h: Likewise.
62924         * lib/getnline.c: Likewise.
62925         * lib/getnline.h: Likewise.
62926         * lib/getopt.c: Likewise.
62927         * lib/getopt.in.h: Likewise.
62928         * lib/getopt1.c: Likewise.
62929         * lib/getopt_int.h: Likewise.
62930         * lib/getpagesize.h: Likewise.
62931         * lib/getsubopt.c: Likewise.
62932         * lib/gettime.c: Likewise.
62933         * lib/getugroups.c: Likewise.
62934         * lib/getugroups.h: Likewise.
62935         * lib/getusershell.c: Likewise.
62936         * lib/gl_anyavltree_list1.h: Likewise.
62937         * lib/gl_anyavltree_list2.h: Likewise.
62938         * lib/gl_anyhash_list1.h: Likewise.
62939         * lib/gl_anyhash_list2.h: Likewise.
62940         * lib/gl_anylinked_list1.h: Likewise.
62941         * lib/gl_anylinked_list2.h: Likewise.
62942         * lib/gl_anyrbtree_list1.h: Likewise.
62943         * lib/gl_anyrbtree_list2.h: Likewise.
62944         * lib/gl_anytree_list1.h: Likewise.
62945         * lib/gl_anytree_list2.h: Likewise.
62946         * lib/gl_anytree_oset.h: Likewise.
62947         * lib/gl_anytreehash_list1.h: Likewise.
62948         * lib/gl_anytreehash_list2.h: Likewise.
62949         * lib/gl_array_list.c: Likewise.
62950         * lib/gl_array_list.h: Likewise.
62951         * lib/gl_array_oset.c: Likewise.
62952         * lib/gl_array_oset.h: Likewise.
62953         * lib/gl_avltree_list.c: Likewise.
62954         * lib/gl_avltree_list.h: Likewise.
62955         * lib/gl_avltree_oset.c: Likewise.
62956         * lib/gl_avltree_oset.h: Likewise.
62957         * lib/gl_avltreehash_list.c: Likewise.
62958         * lib/gl_avltreehash_list.h: Likewise.
62959         * lib/gl_carray_list.c: Likewise.
62960         * lib/gl_carray_list.h: Likewise.
62961         * lib/gl_linked_list.c: Likewise.
62962         * lib/gl_linked_list.h: Likewise.
62963         * lib/gl_linkedhash_list.c: Likewise.
62964         * lib/gl_linkedhash_list.h: Likewise.
62965         * lib/gl_list.c: Likewise.
62966         * lib/gl_list.h: Likewise.
62967         * lib/gl_oset.c: Likewise.
62968         * lib/gl_oset.h: Likewise.
62969         * lib/gl_rbtree_list.c: Likewise.
62970         * lib/gl_rbtree_list.h: Likewise.
62971         * lib/gl_rbtree_oset.c: Likewise.
62972         * lib/gl_rbtree_oset.h: Likewise.
62973         * lib/gl_rbtreehash_list.c: Likewise.
62974         * lib/gl_rbtreehash_list.h: Likewise.
62975         * lib/gl_sublist.c: Likewise.
62976         * lib/gl_sublist.h: Likewise.
62977         * lib/group-member.c: Likewise.
62978         * lib/group-member.h: Likewise.
62979         * lib/hard-locale.c: Likewise.
62980         * lib/hard-locale.h: Likewise.
62981         * lib/hash-pjw.c: Likewise.
62982         * lib/hash-pjw.h: Likewise.
62983         * lib/hash-triple.c: Likewise.
62984         * lib/hash.c: Likewise.
62985         * lib/hash.h: Likewise.
62986         * lib/human.c: Likewise.
62987         * lib/human.h: Likewise.
62988         * lib/i-ring.c: Likewise.
62989         * lib/i-ring.h: Likewise.
62990         * lib/idcache.c: Likewise.
62991         * lib/imaxabs.c: Likewise.
62992         * lib/imaxdiv.c: Likewise.
62993         * lib/inet_pton.c: Likewise.
62994         * lib/inet_pton.h: Likewise.
62995         * lib/intprops.h: Likewise.
62996         * lib/inttostr.c: Likewise.
62997         * lib/inttostr.h: Likewise.
62998         * lib/inttypes.in.h: Likewise.
62999         * lib/isapipe.c: Likewise.
63000         * lib/isdir.c: Likewise.
63001         * lib/isnan.c: Likewise.
63002         * lib/isnan.h: Likewise.
63003         * lib/isnanf.c: Likewise.
63004         * lib/isnanf.h: Likewise.
63005         * lib/isnanl-nolibm.h: Likewise.
63006         * lib/isnanl.c: Likewise.
63007         * lib/isnanl.h: Likewise.
63008         * lib/javacomp.c: Likewise.
63009         * lib/javacomp.h: Likewise.
63010         * lib/javaexec.c: Likewise.
63011         * lib/javaexec.h: Likewise.
63012         * lib/javaversion.c: Likewise.
63013         * lib/javaversion.h: Likewise.
63014         * lib/javaversion.java: Likewise.
63015         * lib/lbrkprop.h: Likewise.
63016         * lib/lchmod.h: Likewise.
63017         * lib/lchown.c: Likewise.
63018         * lib/ldexpl.c: Likewise.
63019         * lib/linebreak.c: Likewise.
63020         * lib/linebreak.h: Likewise.
63021         * lib/linebuffer.c: Likewise.
63022         * lib/linebuffer.h: Likewise.
63023         * lib/locale.in.h: Likewise.
63024         * lib/logl.c: Likewise.
63025         * lib/long-options.c: Likewise.
63026         * lib/long-options.h: Likewise.
63027         * lib/lstat.c: Likewise.
63028         * lib/lstat.h: Likewise.
63029         * lib/math.in.h: Likewise.
63030         * lib/mbchar.c: Likewise.
63031         * lib/mbchar.h: Likewise.
63032         * lib/mbfile.h: Likewise.
63033         * lib/mbiter.h: Likewise.
63034         * lib/mbscasecmp.c: Likewise.
63035         * lib/mbscasestr.c: Likewise.
63036         * lib/mbschr.c: Likewise.
63037         * lib/mbscspn.c: Likewise.
63038         * lib/mbslen.c: Likewise.
63039         * lib/mbsncasecmp.c: Likewise.
63040         * lib/mbsnlen.c: Likewise.
63041         * lib/mbspbrk.c: Likewise.
63042         * lib/mbspcasecmp.c: Likewise.
63043         * lib/mbsrchr.c: Likewise.
63044         * lib/mbssep.c: Likewise.
63045         * lib/mbsspn.c: Likewise.
63046         * lib/mbsstr.c: Likewise.
63047         * lib/mbstok_r.c: Likewise.
63048         * lib/mbswidth.c: Likewise.
63049         * lib/mbswidth.h: Likewise.
63050         * lib/mbuiter.h: Likewise.
63051         * lib/memcasecmp.c: Likewise.
63052         * lib/memcasecmp.h: Likewise.
63053         * lib/memchr.c: Likewise.
63054         * lib/memcmp.c: Likewise.
63055         * lib/memcoll.c: Likewise.
63056         * lib/memcoll.h: Likewise.
63057         * lib/memcpy.c: Likewise.
63058         * lib/memrchr.c: Likewise.
63059         * lib/mkancesdirs.c: Likewise.
63060         * lib/mkdir-p.c: Likewise.
63061         * lib/mkdir-p.h: Likewise.
63062         * lib/mkdir.c: Likewise.
63063         * lib/mkdirat.c: Likewise.
63064         * lib/mkdtemp.c: Likewise.
63065         * lib/mkstemp-safer.c: Likewise.
63066         * lib/mkstemp.c: Likewise.
63067         * lib/modechange.c: Likewise.
63068         * lib/modechange.h: Likewise.
63069         * lib/mountlist.c: Likewise.
63070         * lib/mountlist.h: Likewise.
63071         * lib/mpsort.c: Likewise.
63072         * lib/nanosleep.c: Likewise.
63073         * lib/obstack.c: Likewise.
63074         * lib/obstack.h: Likewise.
63075         * lib/open-safer.c: Likewise.
63076         * lib/open.c: Likewise.
63077         * lib/openat-die.c: Likewise.
63078         * lib/openat-priv.h: Likewise.
63079         * lib/openat-proc.c: Likewise.
63080         * lib/openat.c: Likewise.
63081         * lib/openat.h: Likewise.
63082         * lib/pagealign_alloc.c: Likewise.
63083         * lib/pagealign_alloc.h: Likewise.
63084         * lib/physmem.c: Likewise.
63085         * lib/physmem.h: Likewise.
63086         * lib/pipe-safer.c: Likewise.
63087         * lib/pipe.c: Likewise.
63088         * lib/pipe.h: Likewise.
63089         * lib/posixtm.c: Likewise.
63090         * lib/posixtm.h: Likewise.
63091         * lib/posixver.c: Likewise.
63092         * lib/printf-frexp.c: Likewise.
63093         * lib/printf-frexp.h: Likewise.
63094         * lib/printf-frexpl.c: Likewise.
63095         * lib/printf-frexpl.h: Likewise.
63096         * lib/printf.c: Likewise.
63097         * lib/progname.c: Likewise.
63098         * lib/progname.h: Likewise.
63099         * lib/progreloc.c: Likewise.
63100         * lib/putenv.c: Likewise.
63101         * lib/quote.c: Likewise.
63102         * lib/quote.h: Likewise.
63103         * lib/quotearg.c: Likewise.
63104         * lib/quotearg.h: Likewise.
63105         * lib/raise.c: Likewise.
63106         * lib/readline.c: Likewise.
63107         * lib/readline.h: Likewise.
63108         * lib/readlink.c: Likewise.
63109         * lib/readtokens.c: Likewise.
63110         * lib/readtokens.h: Likewise.
63111         * lib/readtokens0.c: Likewise.
63112         * lib/readtokens0.h: Likewise.
63113         * lib/readutmp.c: Likewise.
63114         * lib/readutmp.h: Likewise.
63115         * lib/realloc.c: Likewise.
63116         * lib/relocwrapper.c: Likewise.
63117         * lib/rename-dest-slash.c: Likewise.
63118         * lib/rename.c: Likewise.
63119         * lib/rmdir.c: Likewise.
63120         * lib/rpmatch.c: Likewise.
63121         * lib/safe-read.c: Likewise.
63122         * lib/safe-read.h: Likewise.
63123         * lib/safe-write.c: Likewise.
63124         * lib/safe-write.h: Likewise.
63125         * lib/same-inode.h: Likewise.
63126         * lib/same.c: Likewise.
63127         * lib/same.h: Likewise.
63128         * lib/save-cwd.c: Likewise.
63129         * lib/save-cwd.h: Likewise.
63130         * lib/savedir.c: Likewise.
63131         * lib/savedir.h: Likewise.
63132         * lib/savewd.c: Likewise.
63133         * lib/savewd.h: Likewise.
63134         * lib/search.in.h: Likewise.
63135         * lib/setenv.c: Likewise.
63136         * lib/setenv.h: Likewise.
63137         * lib/settime.c: Likewise.
63138         * lib/sh-quote.c: Likewise.
63139         * lib/sh-quote.h: Likewise.
63140         * lib/sig2str.c: Likewise.
63141         * lib/sig2str.h: Likewise.
63142         * lib/signal.in.h: Likewise.
63143         * lib/signbitd.c: Likewise.
63144         * lib/signbitf.c: Likewise.
63145         * lib/signbitl.c: Likewise.
63146         * lib/sigprocmask.c: Likewise.
63147         * lib/sincosl.c: Likewise.
63148         * lib/sleep.c: Likewise.
63149         * lib/sprintf.c: Likewise.
63150         * lib/sqrtl.c: Likewise.
63151         * lib/stat-time.h: Likewise.
63152         * lib/stdio--.h: Likewise.
63153         * lib/stdio-safer.h: Likewise.
63154         * lib/stdlib--.h: Likewise.
63155         * lib/stdlib-safer.h: Likewise.
63156         * lib/stdlib.in.h: Likewise.
63157         * lib/stpcpy.c: Likewise.
63158         * lib/stpncpy.c: Likewise.
63159         * lib/strchrnul.c: Likewise.
63160         * lib/strcspn.c: Likewise.
63161         * lib/strerror.c: Likewise.
63162         * lib/strftime.c: Likewise.
63163         * lib/strftime.h: Likewise.
63164         * lib/striconveh.c: Likewise.
63165         * lib/striconveh.h: Likewise.
63166         * lib/striconveha.c: Likewise.
63167         * lib/striconveha.h: Likewise.
63168         * lib/stripslash.c: Likewise.
63169         * lib/strnlen1.c: Likewise.
63170         * lib/strnlen1.h: Likewise.
63171         * lib/strtod.c: Likewise.
63172         * lib/strtoimax.c: Likewise.
63173         * lib/strtok_r.c: Likewise.
63174         * lib/strtol.c: Likewise.
63175         * lib/strtoll.c: Likewise.
63176         * lib/strtoul.c: Likewise.
63177         * lib/strtoull.c: Likewise.
63178         * lib/sysexits.in.h: Likewise.
63179         * lib/tempname.c: Likewise.
63180         * lib/tempname.h: Likewise.
63181         * lib/timespec.h: Likewise.
63182         * lib/tls.c: Likewise.
63183         * lib/tls.h: Likewise.
63184         * lib/tmpdir.c: Likewise.
63185         * lib/tmpdir.h: Likewise.
63186         * lib/tmpfile-safer.c: Likewise.
63187         * lib/tmpfile.c: Likewise.
63188         * lib/trigl.c: Likewise.
63189         * lib/trigl.h: Likewise.
63190         * lib/trim.c: Likewise.
63191         * lib/trim.h: Likewise.
63192         * lib/trunc.c: Likewise.
63193         * lib/truncf.c: Likewise.
63194         * lib/truncl.c: Likewise.
63195         * lib/tsearch.c: Likewise.
63196         * lib/unicodeio.c: Likewise.
63197         * lib/unicodeio.h: Likewise.
63198         * lib/unistd--.h: Likewise.
63199         * lib/unistd-safer.h: Likewise.
63200         * lib/unistdio/ulc-fprintf.c: Likewise.
63201         * lib/unistdio/ulc-vfprintf.c: Likewise.
63202         * lib/unlinkdir.c: Likewise.
63203         * lib/unlinkdir.h: Likewise.
63204         * lib/unlocked-io.h: Likewise.
63205         * lib/unsetenv.c: Likewise.
63206         * lib/userspec.c: Likewise.
63207         * lib/utime.c: Likewise.
63208         * lib/utimecmp.c: Likewise.
63209         * lib/utimecmp.h: Likewise.
63210         * lib/utimens.c: Likewise.
63211         * lib/verify.h: Likewise.
63212         * lib/verror.c: Likewise.
63213         * lib/verror.h: Likewise.
63214         * lib/version-etc-fsf.c: Likewise.
63215         * lib/version-etc.c: Likewise.
63216         * lib/version-etc.h: Likewise.
63217         * lib/vfprintf.c: Likewise.
63218         * lib/vprintf.c: Likewise.
63219         * lib/vsprintf.c: Likewise.
63220         * lib/w32spawn.h: Likewise.
63221         * lib/wait-process.c: Likewise.
63222         * lib/wait-process.h: Likewise.
63223         * lib/wcwidth.c: Likewise.
63224         * lib/write-any-file.c: Likewise.
63225         * lib/xalloc-die.c: Likewise.
63226         * lib/xalloc.h: Likewise.
63227         * lib/xasprintf.c: Likewise.
63228         * lib/xgetcwd.c: Likewise.
63229         * lib/xgetcwd.h: Likewise.
63230         * lib/xgetdomainname.c: Likewise.
63231         * lib/xgetdomainname.h: Likewise.
63232         * lib/xgethostname.c: Likewise.
63233         * lib/xmalloc.c: Likewise.
63234         * lib/xmalloca.c: Likewise.
63235         * lib/xmalloca.h: Likewise.
63236         * lib/xmemcoll.c: Likewise.
63237         * lib/xnanosleep.c: Likewise.
63238         * lib/xreadlink.c: Likewise.
63239         * lib/xreadlink.h: Likewise.
63240         * lib/xsetenv.c: Likewise.
63241         * lib/xsetenv.h: Likewise.
63242         * lib/xstriconv.c: Likewise.
63243         * lib/xstriconv.h: Likewise.
63244         * lib/xstrndup.c: Likewise.
63245         * lib/xstrndup.h: Likewise.
63246         * lib/xstrtod.c: Likewise.
63247         * lib/xstrtod.h: Likewise.
63248         * lib/xstrtol-error.c: Likewise.
63249         * lib/xstrtol.c: Likewise.
63250         * lib/xstrtol.h: Likewise.
63251         * lib/xtime.h: Likewise.
63252         * lib/xvasprintf.c: Likewise.
63253         * lib/xvasprintf.h: Likewise.
63254         * lib/yesno.c: Likewise.
63255         * lib/yesno.h: Likewise.
63256         * posix-modules: Likewise.
63257         * tests/test-alloca-opt.c: Likewise.
63258         * tests/test-arcfour.c: Likewise.
63259         * tests/test-arctwo.c: Likewise.
63260         * tests/test-argmatch.c: Likewise.
63261         * tests/test-argp-2.sh: Likewise.
63262         * tests/test-argp.c: Likewise.
63263         * tests/test-arpa_inet.c: Likewise.
63264         * tests/test-array_list.c: Likewise.
63265         * tests/test-array_oset.c: Likewise.
63266         * tests/test-atexit.c: Likewise.
63267         * tests/test-avltree_list.c: Likewise.
63268         * tests/test-avltree_oset.c: Likewise.
63269         * tests/test-avltreehash_list.c: Likewise.
63270         * tests/test-base64.c: Likewise.
63271         * tests/test-binary-io.c: Likewise.
63272         * tests/test-byteswap.c: Likewise.
63273         * tests/test-c-ctype.c: Likewise.
63274         * tests/test-c-strcasecmp.c: Likewise.
63275         * tests/test-c-strcasestr.c: Likewise.
63276         * tests/test-c-strncasecmp.c: Likewise.
63277         * tests/test-c-strstr.c: Likewise.
63278         * tests/test-canonicalize-lgpl.c: Likewise.
63279         * tests/test-canonicalize.c: Likewise.
63280         * tests/test-carray_list.c: Likewise.
63281         * tests/test-ceilf.c: Likewise.
63282         * tests/test-ceill.c: Likewise.
63283         * tests/test-count-one-bits.c: Likewise.
63284         * tests/test-crc.c: Likewise.
63285         * tests/test-dirname.c: Likewise.
63286         * tests/test-fbufmode.c: Likewise.
63287         * tests/test-fcntl.c: Likewise.
63288         * tests/test-fflush.c: Likewise.
63289         * tests/test-floorf.c: Likewise.
63290         * tests/test-floorl.c: Likewise.
63291         * tests/test-fopen.c: Likewise.
63292         * tests/test-fprintf-posix.c: Likewise.
63293         * tests/test-fprintf-posix.h: Likewise.
63294         * tests/test-fpurge.c: Likewise.
63295         * tests/test-freadable.c: Likewise.
63296         * tests/test-freadahead.c: Likewise.
63297         * tests/test-freading.c: Likewise.
63298         * tests/test-freopen.c: Likewise.
63299         * tests/test-frexp.c: Likewise.
63300         * tests/test-frexpl.c: Likewise.
63301         * tests/test-fseek.c: Likewise.
63302         * tests/test-fseeko.c: Likewise.
63303         * tests/test-fseterr.c: Likewise.
63304         * tests/test-fstrcmp.c: Likewise.
63305         * tests/test-ftell.c: Likewise.
63306         * tests/test-ftello.c: Likewise.
63307         * tests/test-fwritable.c: Likewise.
63308         * tests/test-fwriting.c: Likewise.
63309         * tests/test-getaddrinfo.c: Likewise.
63310         * tests/test-getpass.c: Likewise.
63311         * tests/test-gettimeofday.c: Likewise.
63312         * tests/test-hmac-md5.c: Likewise.
63313         * tests/test-hmac-sha1.c: Likewise.
63314         * tests/test-iconv.c: Likewise.
63315         * tests/test-iconvme.c: Likewise.
63316         * tests/test-inttypes.c: Likewise.
63317         * tests/test-isnan.c: Likewise.
63318         * tests/test-isnanf.c: Likewise.
63319         * tests/test-isnanl-nolibm.c: Likewise.
63320         * tests/test-isnanl.c: Likewise.
63321         * tests/test-isnanl.h: Likewise.
63322         * tests/test-ldexpl.c: Likewise.
63323         * tests/test-linked_list.c: Likewise.
63324         * tests/test-linkedhash_list.c: Likewise.
63325         * tests/test-locale.c: Likewise.
63326         * tests/test-localename.c: Likewise.
63327         * tests/test-lock.c: Likewise.
63328         * tests/test-lseek.c: Likewise.
63329         * tests/test-malloca.c: Likewise.
63330         * tests/test-math.c: Likewise.
63331         * tests/test-mbscasecmp.c: Likewise.
63332         * tests/test-mbscasestr1.c: Likewise.
63333         * tests/test-mbscasestr2.c: Likewise.
63334         * tests/test-mbscasestr3.c: Likewise.
63335         * tests/test-mbscasestr4.c: Likewise.
63336         * tests/test-mbschr.c: Likewise.
63337         * tests/test-mbscspn.c: Likewise.
63338         * tests/test-mbsncasecmp.c: Likewise.
63339         * tests/test-mbspbrk.c: Likewise.
63340         * tests/test-mbspcasecmp.c: Likewise.
63341         * tests/test-mbsrchr.c: Likewise.
63342         * tests/test-mbsspn.c: Likewise.
63343         * tests/test-mbsstr1.c: Likewise.
63344         * tests/test-mbsstr2.c: Likewise.
63345         * tests/test-mbsstr3.c: Likewise.
63346         * tests/test-md5.c: Likewise.
63347         * tests/test-memmem.c: Likewise.
63348         * tests/test-netinet_in.c: Likewise.
63349         * tests/test-open.c: Likewise.
63350         * tests/test-printf-frexp.c: Likewise.
63351         * tests/test-printf-frexpl.c: Likewise.
63352         * tests/test-printf-posix.c: Likewise.
63353         * tests/test-printf-posix.h: Likewise.
63354         * tests/test-rbtree_list.c: Likewise.
63355         * tests/test-rbtree_oset.c: Likewise.
63356         * tests/test-rbtreehash_list.c: Likewise.
63357         * tests/test-read-file.c: Likewise.
63358         * tests/test-rijndael.c: Likewise.
63359         * tests/test-search.c: Likewise.
63360         * tests/test-signbit.c: Likewise.
63361         * tests/test-sleep.c: Likewise.
63362         * tests/test-snprintf-posix.c: Likewise.
63363         * tests/test-snprintf-posix.h: Likewise.
63364         * tests/test-snprintf.c: Likewise.
63365         * tests/test-sprintf-posix.c: Likewise.
63366         * tests/test-sprintf-posix.h: Likewise.
63367         * tests/test-stat-time.c: Likewise.
63368         * tests/test-stdbool.c: Likewise.
63369         * tests/test-stdint.c: Likewise.
63370         * tests/test-stdio.c: Likewise.
63371         * tests/test-stdlib.c: Likewise.
63372         * tests/test-stpncpy.c: Likewise.
63373         * tests/test-strcasestr.c: Likewise.
63374         * tests/test-striconv.c: Likewise.
63375         * tests/test-striconveh.c: Likewise.
63376         * tests/test-striconveha.c: Likewise.
63377         * tests/test-string.c: Likewise.
63378         * tests/test-sys_select.c: Likewise.
63379         * tests/test-sys_socket.c: Likewise.
63380         * tests/test-sys_stat.c: Likewise.
63381         * tests/test-sys_time.c: Likewise.
63382         * tests/test-sysexits.c: Likewise.
63383         * tests/test-time.c: Likewise.
63384         * tests/test-tls.c: Likewise.
63385         * tests/test-trunc.c: Likewise.
63386         * tests/test-truncf.c: Likewise.
63387         * tests/test-truncl.c: Likewise.
63388         * tests/test-unistd.c: Likewise.
63389         * tests/test-vasnprintf-posix.c: Likewise.
63390         * tests/test-vasnprintf-posix2.c: Likewise.
63391         * tests/test-vasnprintf.c: Likewise.
63392         * tests/test-vasprintf-posix.c: Likewise.
63393         * tests/test-vasprintf.c: Likewise.
63394         * tests/test-verify.c: Likewise.
63395         * tests/test-vfprintf-posix.c: Likewise.
63396         * tests/test-vprintf-posix.c: Likewise.
63397         * tests/test-vsnprintf-posix.c: Likewise.
63398         * tests/test-vsnprintf.c: Likewise.
63399         * tests/test-vsprintf-posix.c: Likewise.
63400         * tests/test-wchar.c: Likewise.
63401         * tests/test-wctype.c: Likewise.
63402         * tests/test-wcwidth.c: Likewise.
63403         * tests/test-xstrtol.c: Likewise.
63404         * tests/test-xvasprintf.c: Likewise.
63405         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63406         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63407         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63408         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63409         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63410         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63411         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63412         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63413         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63414         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63415         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63416         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63417         * tests/uniname/test-uninames.c: Likewise.
63418         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63419         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63420         * tests/unistdio/test-u16-printf1.h: Likewise.
63421         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63422         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63423         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63424         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63425         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63426         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63427         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63428         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63429         * tests/unistdio/test-u32-printf1.h: Likewise.
63430         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63431         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63432         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63433         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63434         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63435         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63436         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63437         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63438         * tests/unistdio/test-u8-printf1.h: Likewise.
63439         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63440         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63441         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63442         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63443         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63444         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63445         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63446         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63447         * tests/unistdio/test-ulc-printf1.h: Likewise.
63448         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63449         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63450         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63451         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63452         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63453         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63454         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63455         * tests/uniwidth/test-u16-width.c: Likewise.
63456         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63457         * tests/uniwidth/test-u32-width.c: Likewise.
63458         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63459         * tests/uniwidth/test-u8-width.c: Likewise.
63460         * tests/uniwidth/test-uc_width.c: Likewise.
63461         * config/srclist-update: Likewise.
63462         (fixlicense): Update to GPLv3+.
63463
63464         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63465         * tests/test-tsearch.c: Change copyright notice.
63466
63467         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63468         * lib/c-strcaseeq.h: Change copyright notice.
63469         * lib/streq.h: Likewise.
63470         * lib/uniconv.h: Likewise.
63471         * lib/uniconv/u-conv-from-enc.h: Likewise.
63472         * lib/uniconv/u-conv-to-enc.h: Likewise.
63473         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63474         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63475         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63476         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63477         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63478         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63479         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63480         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63481         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63482         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63483         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63484         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63485         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63486         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63487         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63488         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63489         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63490         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63491         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63492         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63493         * lib/uniname.h: Likewise.
63494         * lib/uniname/uniname.c: Likewise.
63495         * lib/unistdio.h: Likewise.
63496         * lib/unistdio/u-asnprintf.h: Likewise.
63497         * lib/unistdio/u-asprintf.h: Likewise.
63498         * lib/unistdio/u-printf-args.c: Likewise.
63499         * lib/unistdio/u-printf-args.h: Likewise.
63500         * lib/unistdio/u-printf-parse.h: Likewise.
63501         * lib/unistdio/u-snprintf.h: Likewise.
63502         * lib/unistdio/u-sprintf.h: Likewise.
63503         * lib/unistdio/u-vasprintf.h: Likewise.
63504         * lib/unistdio/u-vsnprintf.h: Likewise.
63505         * lib/unistdio/u-vsprintf.h: Likewise.
63506         * lib/unistdio/u16-asnprintf.c: Likewise.
63507         * lib/unistdio/u16-asprintf.c: Likewise.
63508         * lib/unistdio/u16-printf-parse.c: Likewise.
63509         * lib/unistdio/u16-snprintf.c: Likewise.
63510         * lib/unistdio/u16-sprintf.c: Likewise.
63511         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63512         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63513         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63514         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63515         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63516         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63517         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63518         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63519         * lib/unistdio/u16-vasnprintf.c: Likewise.
63520         * lib/unistdio/u16-vasprintf.c: Likewise.
63521         * lib/unistdio/u16-vsnprintf.c: Likewise.
63522         * lib/unistdio/u16-vsprintf.c: Likewise.
63523         * lib/unistdio/u32-asnprintf.c: Likewise.
63524         * lib/unistdio/u32-asprintf.c: Likewise.
63525         * lib/unistdio/u32-printf-parse.c: Likewise.
63526         * lib/unistdio/u32-snprintf.c: Likewise.
63527         * lib/unistdio/u32-sprintf.c: Likewise.
63528         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63529         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63530         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63531         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63532         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63533         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63534         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63535         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63536         * lib/unistdio/u32-vasnprintf.c: Likewise.
63537         * lib/unistdio/u32-vasprintf.c: Likewise.
63538         * lib/unistdio/u32-vsnprintf.c: Likewise.
63539         * lib/unistdio/u32-vsprintf.c: Likewise.
63540         * lib/unistdio/u8-asnprintf.c: Likewise.
63541         * lib/unistdio/u8-asprintf.c: Likewise.
63542         * lib/unistdio/u8-printf-parse.c: Likewise.
63543         * lib/unistdio/u8-snprintf.c: Likewise.
63544         * lib/unistdio/u8-sprintf.c: Likewise.
63545         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63546         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63547         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63548         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63549         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63550         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63551         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63552         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63553         * lib/unistdio/u8-vasnprintf.c: Likewise.
63554         * lib/unistdio/u8-vasprintf.c: Likewise.
63555         * lib/unistdio/u8-vsnprintf.c: Likewise.
63556         * lib/unistdio/u8-vsprintf.c: Likewise.
63557         * lib/unistdio/ulc-asnprintf.c: Likewise.
63558         * lib/unistdio/ulc-asprintf.c: Likewise.
63559         * lib/unistdio/ulc-printf-parse.c: Likewise.
63560         * lib/unistdio/ulc-snprintf.c: Likewise.
63561         * lib/unistdio/ulc-sprintf.c: Likewise.
63562         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63563         * lib/unistdio/ulc-vasprintf.c: Likewise.
63564         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63565         * lib/unistdio/ulc-vsprintf.c: Likewise.
63566         * lib/unistr.h: Likewise.
63567         * lib/unistr/u-cpy-alloc.h: Likewise.
63568         * lib/unistr/u-cpy.h: Likewise.
63569         * lib/unistr/u-endswith.h: Likewise.
63570         * lib/unistr/u-move.h: Likewise.
63571         * lib/unistr/u-set.h: Likewise.
63572         * lib/unistr/u-startswith.h: Likewise.
63573         * lib/unistr/u-stpcpy.h: Likewise.
63574         * lib/unistr/u-stpncpy.h: Likewise.
63575         * lib/unistr/u-strcat.h: Likewise.
63576         * lib/unistr/u-strcpy.h: Likewise.
63577         * lib/unistr/u-strcspn.h: Likewise.
63578         * lib/unistr/u-strdup.h: Likewise.
63579         * lib/unistr/u-strlen.h: Likewise.
63580         * lib/unistr/u-strncat.h: Likewise.
63581         * lib/unistr/u-strncpy.h: Likewise.
63582         * lib/unistr/u-strnlen.h: Likewise.
63583         * lib/unistr/u-strpbrk.h: Likewise.
63584         * lib/unistr/u-strspn.h: Likewise.
63585         * lib/unistr/u-strstr.h: Likewise.
63586         * lib/unistr/u-strtok.h: Likewise.
63587         * lib/unistr/u16-check.c: Likewise.
63588         * lib/unistr/u16-chr.c: Likewise.
63589         * lib/unistr/u16-cmp.c: Likewise.
63590         * lib/unistr/u16-cpy-alloc.c: Likewise.
63591         * lib/unistr/u16-cpy.c: Likewise.
63592         * lib/unistr/u16-endswith.c: Likewise.
63593         * lib/unistr/u16-mblen.c: Likewise.
63594         * lib/unistr/u16-mbsnlen.c: Likewise.
63595         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63596         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63597         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63598         * lib/unistr/u16-mbtouc.c: Likewise.
63599         * lib/unistr/u16-mbtoucr.c: Likewise.
63600         * lib/unistr/u16-move.c: Likewise.
63601         * lib/unistr/u16-next.c: Likewise.
63602         * lib/unistr/u16-prev.c: Likewise.
63603         * lib/unistr/u16-set.c: Likewise.
63604         * lib/unistr/u16-startswith.c: Likewise.
63605         * lib/unistr/u16-stpcpy.c: Likewise.
63606         * lib/unistr/u16-stpncpy.c: Likewise.
63607         * lib/unistr/u16-strcat.c: Likewise.
63608         * lib/unistr/u16-strchr.c: Likewise.
63609         * lib/unistr/u16-strcmp.c: Likewise.
63610         * lib/unistr/u16-strcpy.c: Likewise.
63611         * lib/unistr/u16-strcspn.c: Likewise.
63612         * lib/unistr/u16-strdup.c: Likewise.
63613         * lib/unistr/u16-strlen.c: Likewise.
63614         * lib/unistr/u16-strmblen.c: Likewise.
63615         * lib/unistr/u16-strmbtouc.c: Likewise.
63616         * lib/unistr/u16-strncat.c: Likewise.
63617         * lib/unistr/u16-strncmp.c: Likewise.
63618         * lib/unistr/u16-strncpy.c: Likewise.
63619         * lib/unistr/u16-strnlen.c: Likewise.
63620         * lib/unistr/u16-strpbrk.c: Likewise.
63621         * lib/unistr/u16-strrchr.c: Likewise.
63622         * lib/unistr/u16-strspn.c: Likewise.
63623         * lib/unistr/u16-strstr.c: Likewise.
63624         * lib/unistr/u16-strtok.c: Likewise.
63625         * lib/unistr/u16-to-u32.c: Likewise.
63626         * lib/unistr/u16-to-u8.c: Likewise.
63627         * lib/unistr/u16-uctomb-aux.c: Likewise.
63628         * lib/unistr/u16-uctomb.c: Likewise.
63629         * lib/unistr/u32-check.c: Likewise.
63630         * lib/unistr/u32-chr.c: Likewise.
63631         * lib/unistr/u32-cmp.c: Likewise.
63632         * lib/unistr/u32-cpy-alloc.c: Likewise.
63633         * lib/unistr/u32-cpy.c: Likewise.
63634         * lib/unistr/u32-endswith.c: Likewise.
63635         * lib/unistr/u32-mblen.c: Likewise.
63636         * lib/unistr/u32-mbsnlen.c: Likewise.
63637         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63638         * lib/unistr/u32-mbtouc.c: Likewise.
63639         * lib/unistr/u32-mbtoucr.c: Likewise.
63640         * lib/unistr/u32-move.c: Likewise.
63641         * lib/unistr/u32-next.c: Likewise.
63642         * lib/unistr/u32-prev.c: Likewise.
63643         * lib/unistr/u32-set.c: Likewise.
63644         * lib/unistr/u32-startswith.c: Likewise.
63645         * lib/unistr/u32-stpcpy.c: Likewise.
63646         * lib/unistr/u32-stpncpy.c: Likewise.
63647         * lib/unistr/u32-strcat.c: Likewise.
63648         * lib/unistr/u32-strchr.c: Likewise.
63649         * lib/unistr/u32-strcmp.c: Likewise.
63650         * lib/unistr/u32-strcpy.c: Likewise.
63651         * lib/unistr/u32-strcspn.c: Likewise.
63652         * lib/unistr/u32-strdup.c: Likewise.
63653         * lib/unistr/u32-strlen.c: Likewise.
63654         * lib/unistr/u32-strmblen.c: Likewise.
63655         * lib/unistr/u32-strmbtouc.c: Likewise.
63656         * lib/unistr/u32-strncat.c: Likewise.
63657         * lib/unistr/u32-strncmp.c: Likewise.
63658         * lib/unistr/u32-strncpy.c: Likewise.
63659         * lib/unistr/u32-strnlen.c: Likewise.
63660         * lib/unistr/u32-strpbrk.c: Likewise.
63661         * lib/unistr/u32-strrchr.c: Likewise.
63662         * lib/unistr/u32-strspn.c: Likewise.
63663         * lib/unistr/u32-strstr.c: Likewise.
63664         * lib/unistr/u32-strtok.c: Likewise.
63665         * lib/unistr/u32-to-u16.c: Likewise.
63666         * lib/unistr/u32-to-u8.c: Likewise.
63667         * lib/unistr/u32-uctomb.c: Likewise.
63668         * lib/unistr/u8-check.c: Likewise.
63669         * lib/unistr/u8-chr.c: Likewise.
63670         * lib/unistr/u8-cmp.c: Likewise.
63671         * lib/unistr/u8-cpy-alloc.c: Likewise.
63672         * lib/unistr/u8-cpy.c: Likewise.
63673         * lib/unistr/u8-endswith.c: Likewise.
63674         * lib/unistr/u8-mblen.c: Likewise.
63675         * lib/unistr/u8-mbsnlen.c: Likewise.
63676         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63677         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63678         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63679         * lib/unistr/u8-mbtouc.c: Likewise.
63680         * lib/unistr/u8-mbtoucr.c: Likewise.
63681         * lib/unistr/u8-move.c: Likewise.
63682         * lib/unistr/u8-next.c: Likewise.
63683         * lib/unistr/u8-prev.c: Likewise.
63684         * lib/unistr/u8-set.c: Likewise.
63685         * lib/unistr/u8-startswith.c: Likewise.
63686         * lib/unistr/u8-stpcpy.c: Likewise.
63687         * lib/unistr/u8-stpncpy.c: Likewise.
63688         * lib/unistr/u8-strcat.c: Likewise.
63689         * lib/unistr/u8-strchr.c: Likewise.
63690         * lib/unistr/u8-strcmp.c: Likewise.
63691         * lib/unistr/u8-strcpy.c: Likewise.
63692         * lib/unistr/u8-strcspn.c: Likewise.
63693         * lib/unistr/u8-strdup.c: Likewise.
63694         * lib/unistr/u8-strlen.c: Likewise.
63695         * lib/unistr/u8-strmblen.c: Likewise.
63696         * lib/unistr/u8-strmbtouc.c: Likewise.
63697         * lib/unistr/u8-strncat.c: Likewise.
63698         * lib/unistr/u8-strncmp.c: Likewise.
63699         * lib/unistr/u8-strncpy.c: Likewise.
63700         * lib/unistr/u8-strnlen.c: Likewise.
63701         * lib/unistr/u8-strpbrk.c: Likewise.
63702         * lib/unistr/u8-strrchr.c: Likewise.
63703         * lib/unistr/u8-strspn.c: Likewise.
63704         * lib/unistr/u8-strstr.c: Likewise.
63705         * lib/unistr/u8-strtok.c: Likewise.
63706         * lib/unistr/u8-to-u16.c: Likewise.
63707         * lib/unistr/u8-to-u32.c: Likewise.
63708         * lib/unistr/u8-uctomb-aux.c: Likewise.
63709         * lib/unistr/u8-uctomb.c: Likewise.
63710         * lib/unitypes.h: Likewise.
63711         * lib/uniwidth.h: Likewise.
63712         * lib/uniwidth/cjk.h: Likewise.
63713         * lib/uniwidth/u16-strwidth.c: Likewise.
63714         * lib/uniwidth/u16-width.c: Likewise.
63715         * lib/uniwidth/u32-strwidth.c: Likewise.
63716         * lib/uniwidth/u32-width.c: Likewise.
63717         * lib/uniwidth/u8-strwidth.c: Likewise.
63718         * lib/uniwidth/u8-width.c: Likewise.
63719         * lib/uniwidth/width.c: Likewise.
63720
63721 2007-10-07  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63724         The file is still under LGPL (see modules/inttypes).
63725
63726 2007-10-06  Bruno Haible  <bruno@clisp.org>
63727
63728         * modules/trunc (Dependencies): Add 'extensions'.
63729         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63730         Reported by Ben Pfaff <blp@gnu.org>.
63731
63732 2007-10-06  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/freopen-tests: New file.
63735         * tests/test-freopen.c: New file.
63736
63737         * modules/fopen-tests: New file.
63738         * tests/test-fopen.c: New file.
63739
63740         * modules/fopen: New file.
63741         * lib/fopen.c: New file.
63742         * m4/fopen.m4: New file.
63743         * modules/freopen: New file.
63744         * lib/freopen.c: New file.
63745         * m4/freopen.m4: New file.
63746         * lib/stdio.in.h (fopen, freopen): New declarations.
63747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63748         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63749         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63750         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63751         * doc/functions/fopen.texi: Mention the 'fopen' module.
63752         * doc/functions/freopen.texi: Mention the 'freopen' module.
63753
63754 2007-10-06  Bruno Haible  <bruno@clisp.org>
63755
63756         * modules/open-tests: New file.
63757         * tests/test-open.c: New file.
63758
63759         * modules/open: New file.
63760         * lib/open.c: New file.
63761         * m4/open.m4: New file.
63762         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63763         lib/open.c does.
63764         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63765         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63766         macros.
63767         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63768         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63769         REPLACE_OPEN.
63770         * doc/functions/open.texi: Mention the 'open' module.
63771
63772 2007-10-04  Bruno Haible  <bruno@clisp.org>
63773
63774         * modules/ceill-tests: New file.
63775         * tests/test-ceill.c: New file.
63776
63777         * modules/ceill: New file.
63778         * lib/ceill.c: Replace entire file.
63779         * m4/ceill.m4: New file.
63780         * lib/math.in.h (ceill): Replace declaration.
63781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63782         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63783         * doc/functions/ceill.texi: Mention the 'ceill' module.
63784         * modules/mathl (Files): Remove lib/ceill.c.
63785         (Depends-on): Add ceill.
63786
63787 2007-10-04  Bruno Haible  <bruno@clisp.org>
63788
63789         * modules/ceilf-tests: New file.
63790         * tests/test-ceilf.c: New file.
63791
63792         * modules/ceilf: New file.
63793         * lib/ceil.c: New file.
63794         * lib/ceilf.c: New file.
63795         * m4/ceilf.m4: New file.
63796         * lib/math.in.h (ceilf): New declaration.
63797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63798         HAVE_DECL_CEILF.
63799         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63800         HAVE_DECL_CEILF.
63801         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63802
63803 2007-10-04  Bruno Haible  <bruno@clisp.org>
63804
63805         * modules/floorl-tests: New file.
63806         * tests/test-floorl.c: New file.
63807
63808         * modules/floorl: New file.
63809         * lib/floorl.c: Replace entire file.
63810         * m4/floorl.m4: New file.
63811         * lib/math.in.h (floorl): Replace declaration.
63812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63813         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63814         * doc/functions/floorl.texi: Mention the 'floorl' module.
63815         * modules/mathl (Files): Remove lib/floorl.c.
63816         (Depends-on): Add floorl.
63817
63818 2007-10-04  Bruno Haible  <bruno@clisp.org>
63819
63820         * modules/floorf-tests: New file.
63821         * tests/test-floorf.c: New file.
63822
63823         * modules/floorf: New file.
63824         * lib/floor.c: New file.
63825         * lib/floorf.c: New file.
63826         * m4/floorf.m4: New file.
63827         * lib/math.in.h (floorf): New declaration.
63828         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63829         HAVE_DECL_FLOORF.
63830         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63831         HAVE_DECL_FLOORF.
63832         * doc/functions/floorf.texi: Mention the 'floorf' module.
63833
63834 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63835             Bruno Haible  <bruno@clisp.org>
63836
63837         Advertise for the Git server instead of the CVS server.
63838         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63839         repository instead of the CVS one.
63840         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63841         about all VCS systems generically.
63842         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63843
63844 2007-10-04  Bruno Haible  <bruno@clisp.org>
63845
63846         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63847         means.
63848         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63849
63850 2007-10-04  Bruno Haible  <bruno@clisp.org>
63851
63852         * modules/truncl-tests: New file.
63853         * tests/test-truncl.c: New file.
63854
63855         * modules/truncl: New file.
63856         * lib/truncl.c: New file.
63857         * m4/truncl.m4: New file.
63858         * lib/math.in.h (truncl): New declaration.
63859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63860         HAVE_DECL_TRUNCL.
63861         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63862         HAVE_DECL_TRUNCL.
63863         * doc/functions/truncl.texi: Mention the 'truncl' module.
63864
63865 2007-10-04  Bruno Haible  <bruno@clisp.org>
63866
63867         * modules/truncf-tests: New file.
63868         * tests/test-truncf.c: New file.
63869
63870         * modules/truncf: New file.
63871         * lib/trunc.c: Make paramerizable through USE_* macros.
63872         * lib/truncf.c: New file.
63873         * m4/truncf.m4: New file.
63874         * lib/math.in.h (truncf): New declaration.
63875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63876         HAVE_DECL_TRUNCF.
63877         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63878         HAVE_DECL_TRUNCF.
63879         * doc/functions/truncf.texi: Mention the 'truncf' module.
63880
63881 2007-10-03  Bruno Haible  <bruno@clisp.org>
63882
63883         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63884         augmentation also for tests modules.
63885         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63886         * modules/atexit-tests (Makefile.am): Likewise.
63887         * modules/binary-io-tests (Makefile.am): Likewise.
63888         * modules/c-strcase-tests (Makefile.am): Likewise.
63889         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63890         * modules/canonicalize-tests (Makefile.am): Likewise.
63891         * modules/closein-tests (Makefile.am): Likewise.
63892         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63893         * modules/freadahead-tests (Makefile.am): Likewise.
63894         * modules/fseek-tests (Makefile.am): Likewise.
63895         * modules/fseeko-tests (Makefile.am): Likewise.
63896         * modules/ftell-tests (Makefile.am): Likewise.
63897         * modules/ftello-tests (Makefile.am): Likewise.
63898         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63899         * modules/isnanl-tests (Makefile.am): Likewise.
63900         * modules/lseek-tests (Makefile.am): Likewise.
63901         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63902         * modules/mbscasestr-tests (Makefile.am): Likewise.
63903         * modules/mbschr-tests (Makefile.am): Likewise.
63904         * modules/mbscspn-tests (Makefile.am): Likewise.
63905         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63906         * modules/mbspbrk-tests (Makefile.am): Likewise.
63907         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63908         * modules/mbsrchr-tests (Makefile.am): Likewise.
63909         * modules/mbsspn-tests (Makefile.am): Likewise.
63910         * modules/mbsstr-tests (Makefile.am): Likewise.
63911         * modules/printf-posix-tests (Makefile.am): Likewise.
63912         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63913         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63914         * modules/tsearch-tests (Makefile.am): Likewise.
63915         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63916         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63917         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63918         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63919         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63920         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63921         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63922         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63923         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63924         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63925         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63926         * modules/xstrtol-tests (Makefile.am): Likewise.
63927         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63928         * modules/yesno-tests (Makefile.am): Likewise.
63929
63930 2007-10-03  Bruno Haible  <bruno@clisp.org>
63931
63932         * modules/trunc-tests: New file.
63933         * tests/test-trunc.c: New file.
63934
63935         * modules/trunc: New file.
63936         * lib/trunc.c: New file.
63937         * m4/trunc.m4: New file.
63938         * lib/math.in.h (trunc): New declaration.
63939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63940         HAVE_DECL_TRUNC.
63941         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63942         HAVE_DECL_TRUNC.
63943         * doc/functions/trunc.texi: Mention the 'trunc' module.
63944
63945 2007-10-03  Bruno Haible  <bruno@clisp.org>
63946
63947         * tests/test-fpending.c: New file, mostly copied
63948         from coreutils/lib/t-fpending.c.
63949         * modules/fpending-tests: New file.
63950
63951 2007-10-03  Bruno Haible  <bruno@clisp.org>
63952
63953         Port the stdio extensions to QNX (untested).
63954         * lib/fseterr.c (fseterr): Add support for QNX.
63955         * lib/fbufmode.c (fbufmode): Likewise.
63956         * lib/freadable.c (freadable): Likewise.
63957         * lib/fwritable.c (fwritable): Likewise.
63958         * lib/freading.c (freading): Likewise.
63959         * lib/fwriting.c (fwriting): Likewise.
63960         * lib/freadahead.c (freadahed): Likewise.
63961         * lib/fpurge.c (fpurge): Likewise.
63962         * lib/fseeko.c (rpl_fseeko): Likewise.
63963
63964 2007-10-03  Bruno Haible  <bruno@clisp.org>
63965             Jim Meyering  <jim@meyering.net>
63966             Eric Blake  <ebb9@byu.net>
63967
63968         * doc/relocatable.texi: Use @command instead of @program.
63969
63970 2007-10-02  Jim Meyering  <jim@meyering.net>
63971
63972         Perform one more "_.h" -> ".in.h" substitution.
63973         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63974         instead of unistd_.h here, too.
63975
63976 2007-10-01  Bruno Haible  <bruno@clisp.org>
63977
63978         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63979         Needed for the alloca-opt module.
63980
63981 2007-09-30  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63984         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63985         alloca_.h.
63986         * lib/argz.in.h: Renamed from lib/argz_.h.
63987         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63988         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63989         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63990         byteswap_.h.
63991         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63992         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63993         dirent_.h.
63994         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63995         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63996         fcntl_.h.
63997         * lib/float.in.h: Renamed from lib/float_.h.
63998         * modules/float (Files, Makefile.am): Use float.in.h instead of
63999         float_.h.
64000         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64001         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64002         fnmatch_.h.
64003         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64004         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64005         getopt_.h.
64006         * lib/glob.in.h: Renamed from lib/glob_.h.
64007         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64008         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64009         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64010         iconv_.h.
64011         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64012         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64013         inttypes_.h.
64014         * lib/locale.in.h: Renamed from lib/locale_.h.
64015         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64016         locale_.h.
64017         * lib/math.in.h: Renamed from lib/math_.h.
64018         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64019         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64020         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64021         of netinet_in_.h. Add dependency.
64022         * lib/poll.in.h: Renamed from lib/poll_.h.
64023         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64024         * lib/search.in.h: Renamed from lib/search_.h.
64025         * modules/search (Files, Makefile.am): Use search.in.h instead of
64026         search_.h.
64027         * lib/signal.in.h: Renamed from lib/signal_.h.
64028         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64029         _signal.h.
64030         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64031         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64032         stdbool_.h.
64033         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64034         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64035         stdint_.h.
64036         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64037         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64038         stdio_.h.
64039         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64040         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64041         stdlib_.h.
64042         * lib/string.in.h: Renamed from lib/string_.h.
64043         * modules/string (Files, Makefile.am): Use string.in.h instead of
64044         string_.h.
64045         * doc/gnulib-tool.texi (Initial import): Update.
64046         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64047         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64048         of sys_select_.h. Add dependency.
64049         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64050         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64051         of sys_socket_.h.
64052         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64053         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64054         sys_stat_.h.
64055         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64056         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64057         sys_time_.h.
64058         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64059         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64060         sysexits_.h.
64061         * lib/time.in.h: Renamed from lib/time_.h.
64062         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64063         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64064         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64065         unistd_.h.
64066         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64067         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64068         wchar_.h.
64069         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64070         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64071         wctype_.h.
64072         * build-aux/bootstrap (slurp): Update.
64073         * lib/.cppi-disable: Update.
64074
64075 2007-09-30  Bruno Haible  <bruno@clisp.org>
64076
64077         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64078         Needed on BeOS.
64079
64080 2007-09-30  Bruno Haible  <bruno@clisp.org>
64081
64082         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64083
64084 2007-09-29  Bruno Haible  <bruno@clisp.org>
64085
64086         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64087
64088 2007-09-29  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64091         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64092         * build-aux/install-reloc: Compile also areadlink.c.
64093         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64094
64095 2007-09-29  Bruno Haible  <bruno@clisp.org>
64096
64097         * gnulib-tool (func_emit_initmacro_done): Indentation.
64098
64099 2007-09-29  Bruno Haible  <bruno@clisp.org>
64100
64101         * README: Add CVS checkout update instructions.
64102         Info from Bob Proulx <bob@proulx.com>.
64103
64104 2007-09-28  Eric Blake  <ebb9@byu.net>
64105
64106         Provide move-if-change.
64107         * build-aux/move-if-change: New file, based on best practice
64108         rather than any canonical upstream location.
64109
64110 2007-09-28  Jim Meyering  <jim@meyering.net>
64111
64112         Fix canonicalize loop-detection corner case.
64113         Do not attempt to stat the symlink values stored via seen_triple.
64114         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64115         on linux-2.6.18, (but not 2.6.22).
64116         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64117         triple_compare.  The former compares dev,ino,filename, while the latter
64118         would actually stat dirname(filename) when dev and ino were equal.
64119         * lib/hash-triple.c: Install <string.h>.
64120         (STREQ): Define.
64121         (triple_compare_ino_str): New function.
64122         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64123
64124 2007-09-28  Eric Blake  <ebb9@byu.net>
64125
64126         Enforce that AC_REPLACE_FUNCS files exist.
64127         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64128         override check for typos.
64129
64130         Fix test-closein on Solaris 10.
64131         * tests/test-closein.c (main): Don't assume stdin can be inherited
64132         closed on all systems.
64133         * tests/test-closein.sh: Likewise.
64134         Reported by Piotr Tarnowski.
64135
64136 2007-09-28  Jim Meyering  <jim@meyering.net>
64137
64138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64139
64140 2007-09-27  Jim Meyering  <jim@meyering.net>
64141
64142         canonicalize: Avoid a false-positive cycle failure.
64143         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64144         Sort.  Remove cycle-check.
64145         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64146         not cycle-check.h.
64147         (seen_triple): New function.
64148         (canonicalize_filename_mode): Use it instead of cycle-check.
64149         * tests/test-canonicalize.c: Add a test for this bug.
64150         * tests/test-canonicalize.sh: Set up and run the test.
64151
64152         New module, file-set, from coreutils.
64153         * modules/file-set: Define it.
64154         * lib/file-set.c, lib/file-set.h: Implement.
64155
64156         New module, hash-triple, from coreutils.
64157         * modules/hash-triple: Define it.
64158         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64159
64160 2007-09-25  Eric Blake  <ebb9@byu.net>
64161
64162         Fix strerror on Interix.
64163         * lib/string_.h (strerror): Declare replacement.
64164         * doc/functions/strerror.texi (strerror): Document the Interix
64165         shortcoming.
64166         * modules/string (Makefile.am): Support new hooks.
64167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64168         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64169         gl_FUNC_STRERROR_SEPARATE.
64170         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64171         * lib/strerror.c (rpl_strerror): Provide replacement.
64172         * modules/strerror (Depends-on): Add string.
64173         (configure.ac): Detect use of module.
64174         * tests/test-strerror.c: New file.
64175         * modules/strerror-tests: New test module.
64176         * modules/argp (Depends-on): Add strerror.
64177         * modules/error (Depends-on): Likewise.
64178         Reported by Martin Koeppe.
64179
64180 2007-09-24  Bruno Haible  <bruno@clisp.org>
64181
64182         * README: Update git instructions.
64183
64184 2007-09-24  Eric Blake  <ebb9@byu.net>
64185
64186         Revert fpending breakage from 2007-09-08.
64187         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64188         __fpending.c.
64189
64190 2007-09-24  Jim Meyering  <jim@meyering.net>
64191
64192         filenamecat.c: Add a test.
64193         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64194         showing how the function works when DIR is the empty string.
64195
64196 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64197
64198         * tests/test-canonicalize.sh: Turn on executable bit.
64199
64200 2007-09-19  Eric Blake  <ebb9@byu.net>
64201
64202         * README: Update CVS instructions.
64203
64204 2007-09-18  Bruno Haible  <bruno@clisp.org>
64205
64206         * modules/areadlink: New file.
64207         * lib/areadlink.h (areadlink): New declaration.
64208         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64209
64210 2007-09-17  Jim Meyering  <jim@meyering.net>
64211
64212         * lib/savewd.c (ESTALE) [!defined]: Define.
64213         Reported to be required on Interix by Martin Koeppe.
64214
64215 2007-09-17  Bruno Haible  <bruno@clisp.org>
64216
64217         * gnulib-tool (func_version): Use $version.
64218
64219 2007-09-16  Bruno Haible  <bruno@clisp.org>
64220
64221         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64222         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64223         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64224         Reported by Greg Schafer <gschafer@zip.com.au>.
64225
64226 2007-09-15  Bruno Haible  <bruno@clisp.org>
64227
64228         * gnulib-tool (sed): Try a little harder to make bash understand the
64229         alias.
64230         Reported by Bruce Korb <bruce.korb@gmail.com>.
64231
64232 2007-09-13  Eric Blake  <ebb9@byu.net>
64233
64234         * ChangeLog: Remove conflict markers.
64235
64236 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64237
64238         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64239         Reported by Bruno Haible <bruno@clisp.org>.
64240
64241 2007-09-12  Bruno Haible  <bruno@clisp.org>
64242
64243         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64244         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64245         is not defined.
64246
64247 2007-09-12  Eric Blake  <ebb9@byu.net>
64248
64249         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64250         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64251         Autoconf definition.
64252         * modules/euidaccess (Depends-on): Add extensions, for
64253         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64254         * modules/fnmatch (Depends-on): Likewise.
64255         * modules/getaddrinfo (Depends-on): Likewise.
64256         * modules/getdelim (Depends-on): Likewise.
64257         * modules/getline (Depends-on): Likewise.
64258         * modules/getsubopt (Depends-on): Likewise.
64259         * modules/gettext (Depends-on): Likewise.
64260         * modules/group-member (Depends-on): Likewise.
64261         * modules/mbchar (Depends-on): Likewise.
64262         * modules/memmem (Depends-on): Likewise.
64263         * modules/mempcpy (Depends-on): Likewise.
64264         * modules/memrchr (Depends-on): Likewise.
64265         * modules/pagealign_alloc (Depends-on): Likewise.
64266         * modules/readutmp (Depends-on): Likewise.
64267         * modules/stpcpy (Depends-on): Likewise.
64268         * modules/stpncpy (Depends-on): Likewise.
64269         * modules/strchrnul (Depends-on): Likewise.
64270         * modules/strndup (Depends-on): Likewise.
64271         * modules/strsep (Depends-on): Likewise.
64272         * modules/strverscmp (Depends-on): Likewise.
64273         * modules/vasprintf (Depends-on): Likewise.
64274         * modules/wcwidth (Depends-on): Likewise.
64275         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64276         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64277         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64278         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64279         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64280         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64281         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64282         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64283         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64284         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64286         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64287         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64288         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64289         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64290         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64291         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64292         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64295         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64296         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64297         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64298         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64299         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64301         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64302         so that lock.m4 can be used in gettext without extensions module.
64303
64304 2007-09-11  Bruno Haible  <bruno@clisp.org>
64305
64306         * m4/isc-posix.m4: Remove file.
64307         Suggested by Eric Blake.
64308
64309 2007-09-11  Eric Blake  <ebb9@byu.net>
64310
64311         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64312
64313 2007-09-10  Bruno Haible  <bruno@clisp.org>
64314
64315         * posix-modules: Fix typo in error message.
64316         Reported by Matt <mkraai@beckman.com>.
64317
64318 2007-09-09  Bruno Haible  <bruno@clisp.org>
64319
64320         * doc/functions/getdelim.texi: Update list of platforms lacking the
64321         function.
64322         * doc/functions/getline.texi: Likewise.
64323
64324 2007-09-09  Jim Meyering  <jim@meyering.net>
64325
64326         * lib/hash.c (hash_initialize): Detect calloc failure.
64327         Reported by Bruno Haible.
64328
64329 2007-09-09  Bruno Haible  <bruno@clisp.org>
64330
64331         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64332         malloc or realloc fails.
64333
64334 2007-09-09  Bruno Haible  <bruno@clisp.org>
64335
64336         * modules/getcwd (Depends-on): Add malloc-posix.
64337         * modules/glob (Depends-on): Likewise.
64338         * modules/putenv (Depends-on): Likewise.
64339         * modules/strdup (Depends-on): Likewise.
64340         * modules/getdelim (Depends-on): Add realloc-posix.
64341         * modules/read-file (Depends-on): Likewise.
64342
64343 2007-09-09  Bruno Haible  <bruno@clisp.org>
64344
64345         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64346         (gl_FUNC_MALLOC_POSIX): Require it.
64347         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64348         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64349         * modules/realloc (Files): Add m4/malloc.m4.
64350         * modules/calloc (Files): Likewise.
64351
64352 2007-09-09  Bruno Haible  <bruno@clisp.org>
64353
64354         * modules/malloc-posix: New file.
64355         * modules/malloc (Depends-on): Add malloc-posix.
64356         * lib/malloc.c: Include errno.h.
64357         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64358         and a POSIX-compatible malloc into a single function. Set ENOMEM
64359         when returning NULL.
64360         * m4/malloc.m4: New file.
64361         * doc/functions/malloc.texi: Mention the malloc-posix module.
64362         * lib/stdlib_.h (malloc): New declaration.
64363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64364         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64365         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64366         and HAVE_MALLOC_POSIX.
64367
64368 2007-09-09  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/realloc-posix: New file.
64371         * modules/realloc (Depends-on): Add realloc-posix.
64372         * lib/realloc.c: Include errno.h.
64373         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64374         and a POSIX-compatible realloc into a single function. Set ENOMEM
64375         when returning NULL.
64376         * m4/realloc.m4: New file.
64377         * doc/functions/realloc.texi: Mention the realloc-posix module.
64378         * lib/stdlib_.h (realloc): New declaration.
64379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64380         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64381         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64382         and HAVE_REALLOC_POSIX.
64383
64384 2007-09-09  Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/calloc-posix: New file.
64387         * modules/calloc (Depends-on): Add calloc-posix.
64388         * lib/calloc.c: Include errno.h.
64389         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64390         and a POSIX-compatible calloc into a single function. Set ENOMEM
64391         when returning NULL.
64392         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64393         * doc/functions/calloc.texi: Mention the calloc-posix module.
64394         * lib/stdlib_.h (calloc): New declaration.
64395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64396         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64397         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64398         and HAVE_CALLOC_POSIX.
64399
64400 2007-09-09  Bruno Haible  <bruno@clisp.org>
64401
64402         Allow for modules to show an arbitrary notice.
64403         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64404         * gnulib-tool: New option --extract-notice.
64405         (func_usage): Document it.
64406         (sed_extract_prog): Update.
64407         (func_get_notice): New function.
64408         (func_modules_notice): New function.
64409         (func_import, func_create_testdir): Invoke it.
64410         Suggested by Jim Meyering.
64411
64412 2007-09-09  Bruno Haible  <bruno@clisp.org>
64413
64414         * gnulib-tool: New options --verbose, --quiet.
64415         (func_usage): Document them.
64416         (verbose): New variable.
64417         (func_execute_command): New function.
64418         (func_import): Don't show the module list and the file list if
64419         $verbose < 0.
64420         (func_create_testdir): Likewise. Use func_execute_command.
64421         (func_create_megatestdir): Use func_execute_command.
64422
64423 2007-09-08  Bruno Haible  <bruno@clisp.org>
64424
64425         * gnulib-tool (func_import): Prefer rsync over wget when available,
64426         for fetching the PO files.
64427
64428 2007-09-08  Bruno Haible  <bruno@clisp.org>
64429
64430         * posix-modules: New file. Portions copied from gnulib-tool.
64431         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64432
64433 2007-09-08  Jim Meyering  <jim@meyering.net>
64434
64435         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64436         * lib/fpending.h: Rename from __fpending.h.
64437         * lib/fpending.c: Rename from __fpending.c.
64438         Include "fpending.h", not "__fpending.h".
64439         * lib/__fpending.h, lib/__fpending.c: Remove files.
64440         * modules/fpending (Files): Reflect new file names.
64441         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64442
64443 2007-09-08  Bruno Haible  <bruno@clisp.org>
64444
64445         * m4/inttypes-h.m4: Remove stub file.
64446
64447 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64448
64449         * doc/headers/stdint.texi: Discuss #include_next issue.
64450
64451 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64452
64453         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64454
64455 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64456
64457         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64458         in variable name.
64459
64460 2007-09-03  Jim Meyering  <jim@meyering.net>
64461
64462         New module: git-version-gen.
64463         * modules/git-version-gen: New file.
64464
64465         Import changes from coreutils for bootstrap script.
64466
64467         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64468
64469         bootstrap: uses rsync to download the .po files
64470         * build-aux/bootstrap (po_download_command_format): New global.
64471         (download_po_files): Use rsync.
64472         (update_po_files): Don't remove .po files after download,
64473         so future rsync runs can take advantage of the copies.
64474
64475         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64476
64477         Solve the unnecessary-.po-file-regeneration problem once and for all.
64478         * build-aux/bootstrap (download_po_files): New function, renamed from
64479         get_translations.  Now, downloads, but doesn't update LINGUAS.
64480         (update_po_files): New function.
64481
64482         bootstrap: Ignore more.
64483         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64484         uniwidth to e.g., lib/.gitignore.
64485         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64486
64487         * build-aux/bootstrap: New setting: vc_ignore.
64488         (insert_sorted_if_absent): Create $file if absent.
64489         Adapt to new, possibly empty, list: $vc_ignore.
64490
64491         bootstrap: generate more ignorable names
64492         * build-aux/bootstrap (slurp): When generating ignorable names,
64493         also map .sin to .sed, .gperf to .c, and .y to .c.
64494
64495 2007-09-03  Jim Meyering  <jim@meyering.net>
64496
64497         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64498         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64499
64500 2007-09-02  Bruno Haible  <bruno@clisp.org>
64501
64502         Fix mis-recognition of 'mcs' on QNX 6.
64503         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64504         output contains the string "Mono".
64505         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64506         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64507
64508 2007-09-01  Bruno Haible  <bruno@clisp.org>
64509
64510         Fix collision between uniwidth/* and linebreak modules.
64511         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64512         u32_width): Remove declarations.
64513         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64514         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64515         streq3, streq2, streq1, streq0): Remove functions.
64516         (STREQ): Remove macro.
64517         (is_cjk_encoding): Remove function.
64518         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64519         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64520         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64521         * NEWS: Document the change.
64522
64523 2007-09-01  Bruno Haible  <bruno@clisp.org>
64524
64525         * lib/streq.h: Add double-inclusion guard.
64526
64527 2007-09-01  Karl Berry  <karl@gnu.org>
64528
64529         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64530
64531 2007-08-28  Jim Meyering  <jim@meyering.net>
64532
64533         Rename mreadlink_with_size to areadlink_with_size.
64534         * NEWS: Document the change.
64535         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64536         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64537         * lib/mreadlink.h: Rename this to...
64538         * lib/areadlink.h: ...this.
64539         * modules/mreadlink-with-size: Rename this to...
64540         * modules/areadlink-with-size: ...this.
64541         * lib/canonicalize.c: Reflect the renaming.
64542         * modules/canonicalize: Likewise.
64543
64544 2007-08-26  Bruno Haible  <bruno@clisp.org>
64545
64546         * gnulib-tool (func_import): When deciding which files to remove,
64547         consider also dangling symbolic links.
64548         Reported by Eric Blake.
64549
64550 2007-08-26  Bruno Haible  <bruno@clisp.org>
64551
64552         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64553
64554 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64555
64556         * lib/readline.c: Don't include getline.h, the prototype is now
64557         found in stdio.h.
64558
64559 2007-08-23  Jim Meyering  <jim@meyering.net>
64560
64561         Getdelim touchup.
64562         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64563         around the funlockfile call, since funlockfile never sets errno.
64564         Don't set errno upon failed realloc.
64565
64566 2007-08-22  Eric Blake  <ebb9@byu.net>
64567
64568         Getline touchups.
64569         * lib/getdelim.c (getdelim): Revert regression that required *n to
64570         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64572         getdelim, rather than whether implementation is missing.
64573         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64574         * lib/stdio_.h (getline): Also declare if replacement is
64575         required.
64576         * doc/functions/getdelim.texi: New file.
64577         * doc/functions/getline.texi: Likewise.
64578         * doc/gnulib.texi (Function Substitutes): Add new files.
64579         Reported by Bruno Haible.
64580
64581 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64582
64583         * users.txt: Add Guile.
64584
64585 2007-08-22  Eric Blake  <ebb9@byu.net>
64586
64587         * tests/test-getdelim.c (main): Use remove, not unlink.
64588         * tests/test-getline.c (main): Likewise.
64589
64590         Move getline and getdelim into stdio.h, per POSIX 200x.
64591         * modules/getline (Files): Remove getline.h.
64592         (Depends-on): Add stdio.
64593         (configure.ac): Add module indicator.
64594         * modules/getdelim (Files): Remove getdelim.h.
64595         (Depends-on): Add stdio.
64596         (configure.ac): Add module indicator.
64597         * modules/stdio (Makefile.am): Work with new indicators.
64598         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64599         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64600         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64601         * lib/getdelim.h: Delete.
64602         * lib/getline.h: Delete.
64603         * lib/stdio_.h (getdelim, getline): Declare.
64604         * modules/getdelim-tests: New module.
64605         * modules/getline-tests: Likewise.
64606         * tests/test-getdelim.c: New file.
64607         * tests/test-getline.c: Likewise.
64608         * NEWS: Document the change.
64609         * lib/getline.c: Update choice of header.
64610         * lib/csharpcomp.c: Likewise.
64611         * lib/getpass.c: Likewise.
64612         * lib/javacomp.c: Likewise.
64613         * lib/javaversion.c: Likewise.
64614         * lib/yesno.c: Likewise.
64615         * lib/getdelim.c: Likewise.
64616         (getdelim): Set errno on failure, and avoid memory leak.
64617
64618 2007-08-19  Bruno Haible  <bruno@clisp.org>
64619
64620         * modules/closein (Depends-on): Add freadahead.
64621         * lib/closein.c: Include freadahead.h.
64622         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64623         is zero.
64624
64625 2007-08-19  Bruno Haible  <bruno@clisp.org>
64626
64627         * modules/freadahead-tests: New file.
64628         * tests/test-freadahead.sh: New file.
64629         * tests/test-freadahead.c: New file.
64630
64631         * modules/freadahead: New file.
64632         * lib/freadahead.h: New file.
64633         * lib/freadahead.c: New file.
64634         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64635         fbufmode, fpurge, freadable, fwritable.
64636
64637 2007-08-19  Eric Blake  <ebb9@byu.net>
64638
64639         Test yesno in combination with closein.
64640         * lib/yesno.c (yesno): Document use of stdin.
64641         * modules/yesno-tests (Files): New module.
64642         * tests/test-yesno.c (main): New file.
64643         * tests/test-yesno.sh: Likewise.
64644
64645 2007-08-19  Bruno Haible  <bruno@clisp.org>
64646
64647         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64648         * lib/fseeko.c (rpl_fseeko): Likewise.
64649         * lib/fseterr.c (fseterr): Likewise.
64650
64651 2007-08-19  Bruno Haible  <bruno@clisp.org>
64652
64653         * tests/test-lseek.c (main): Disable a test for BeOS.
64654         * doc/functions/lseek.texi: Document the BeOS bug.
64655
64656 2007-08-19  Bruno Haible  <bruno@clisp.org>
64657             Eric Blake  <ebb9@byu.net>
64658
64659         * lib/lseek.c: Include <sys/stat.h>.
64660         (rpl_lseek): Add workaround code also for Unix platforms.
64661         Needed for BeOS.
64662         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64663         * doc/functions/lseek.texi: Document BeOS definiency.
64664
64665 2007-08-18  Bruno Haible  <bruno@clisp.org>
64666
64667         * modules/fstrcmp-tests: New file.
64668         * tests/test-fstrcmp.c: New file.
64669
64670 2007-08-18  Bruno Haible  <bruno@clisp.org>
64671
64672         * modules/fstrcmp: New file, from GNU gettext with modifications.
64673         * lib/fstrcmp.h: New file, from GNU gettext.
64674         * lib/fstrcmp.c: New file, from GNU gettext.
64675         * MODULES.html.sh (String handling): Add fstrcmp.
64676
64677 2007-08-18  Bruno Haible  <bruno@clisp.org>
64678
64679         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64680         'bool'.
64681         (diag, compareseq): Remove const from the ctxt argument.
64682         (USE_HEURISTIC): Undefine at the end.
64683
64684 2007-08-18  Jim Meyering  <jim@meyering.net>
64685
64686         New file: lib/idcache.h
64687         * NEWS: Mention the addition.
64688         * modules/idcache (Files): Add lib/idcache.h
64689         * lib/idcache.c: Include "idcache.h".
64690         Don't include <sys/types.h>.
64691         Add a FIXME comment.
64692         Move file-scoped "static" declarations to the top.
64693         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64694
64695 2007-08-17  Bruno Haible  <bruno@clisp.org>
64696         and Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         * MODULES.html.sh: Add diffseq.
64699         * modules/diffseq: New file.
64700         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64701         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64702
64703 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64704
64705         Import changes from coreutils for bootstrap script.
64706
64707         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * build-aux/bootstrap (slurp): Work even in environments where
64710         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64711         current code does not slurp files whose names start with ".", and
64712         this looks like it might be a troublesome area.
64713
64714         2007-07-11  Jim Meyering  <jim@meyering.net>
64715
64716         If there's a GPL vN copyright comment, require that N == 3.
64717
64718         2007-07-08  Jim Meyering  <jim@meyering.net>
64719
64720         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64721         * build-aux/bootstrap (mam_template): Move definition out of loop.
64722
64723         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64724
64725         * build-aux/bootstrap (symlink_to_dir): Rename function from
64726         symlink_to_gnulib.  Add a directory parameter.  Update all
64727         callers.
64728         (cp_mark_as_generated): Also check for -- and link to -- files in
64729         gl/.
64730
64731         2007-07-08  Jim Meyering  <jim@meyering.net>
64732
64733         Adapt to deeper hierarchy in gnulib.
64734         * build-aux/bootstrap (symlink_to_dir): If the destination
64735         directory doesn't exist, create it. This is required at least for
64736         "lib/uniwidth/cjk.h".
64737
64738         2007-05-15  Jim Meyering  <jim@meyering.net>
64739
64740         * build-aux/bootstrap: Now that generated Makefile.am files
64741         are no longer under version control, they must be created at
64742         bootstrap time.
64743
64744 2007-08-14  Ben Pfaff  <blp@gnu.org>
64745
64746         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64747
64748 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64751         given the changes below.
64752         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64753         even on hosts that have padding bits beyond the supported 64.
64754
64755 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64758         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64759         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64760         depends on it.
64761         (xstrtol_error): Remove.
64762         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64763         but with a different signature.
64764         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64765         * lib/xstrtol-error.c: Include exitfail.h.
64766         (xstrtol_fatal): New function, with a different signature from the
64767         old xstrtol_error, so that the caller need not worry about passing
64768         in an exit status, or about storage management of the option argument.
64769         (xstrtol_error): Now a static function.  Redo signature to
64770         implement xstrtol_fatal.  Output the correct number of hyphens in
64771         front of the option so that the caller need not worry about
64772         storage management.
64773         (N_): New macro.
64774         (_): Remove; not used now.
64775         * modules/xstrtol: Depend on getopt.
64776         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64777         of old STRTOL_FATAL_ERROR macro.
64778         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64779         of test program.
64780         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64781         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64782
64783 2007-08-08  Eric Blake  <ebb9@byu.net>
64784
64785         * lib/xstrtol-error.c: Add missing include.
64786
64787         Move xstrtol messages into gnulib domain, when --pobase is used.
64788         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64789         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64790         * modules/xstrtol (Files): Distribute new file.
64791         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64792         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64793         * tests/test-xstrtol.c: ...into new file.
64794         * tests/test-xstrtoul.c: Also test xstrtoul.
64795         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64796         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64797         * tests/test-xstrtol.sh: Drive the tests.
64798         * tests/test-xstrtoimax.sh: Likewise.
64799         * tests/test-xstrtoumax.sh: Likewise.
64800         * modules/xstrtol-tests: New module.
64801         * modules/xstrtoimax-tests: Likewise.
64802         * modules/xstrtoumax-tests: Likewise.
64803
64804 2007-08-08  Jim Meyering  <jim@meyering.net>
64805
64806         New function: mfile_name_concat.
64807         * lib/filenamecat.c (mfile_name_concat): New function, just like
64808         file_name_concat, but return NULL upon failure rather than exiting
64809         with a diagnostic.
64810         * lib/filenamecat.h: Declare it.
64811
64812 2007-08-07  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64815         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64816         warning from gcc.
64817         Reported by Eric Blake.
64818
64819 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64820
64821         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64822         * modules/crypto/arcfour (License): Likewise.
64823         * modules/crypto/des-tests (License): Likewise.
64824         * modules/crypto/gc-arctwo-tests (License): Likewise.
64825         * modules/crypto/gc-des-tests (License): Likewise.
64826         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64827         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64828         * modules/crypto/gc-md2-tests (License): Likewise.
64829         * modules/crypto/gc-md4-tests (License): Likewise.
64830         * modules/crypto/gc-md5-tests (License): Likewise.
64831         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64832         * modules/crypto/gc-rijndael-tests (License): Likewise.
64833         * modules/crypto/gc-sha1-tests (License): Likewise.
64834         * modules/crypto/gc-tests (License): Likewise.
64835         * modules/crypto/hmac-md5 (License): Likewise.
64836         * modules/crypto/hmac-sha1 (License): Likewise.
64837         * modules/crypto/md2-tests (License): Likewise.
64838         * modules/crypto/md4-tests (License): Likewise.
64839         * modules/crypto/md5 (License): Likewise.
64840         * modules/crypto/rijndael (License): Likewise.
64841         * modules/crypto/sha1 (License): Likewise.
64842         * modules/memxor (License): Likewise.
64843
64844 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64845         and Bruno Haible  <bruno@clisp.org>
64846
64847         * NEWS: Describe interface changes to human, xstrtol.
64848         * lib/human.h: Include <xstrtol.h>.
64849         (human_options): Return enum strtol_error, not int.  Remove
64850         bool arg; take int * instead.
64851         * lib/human.c: Don't include "gettext.h".
64852         (_): Remove; no longer used.
64853         Don't include <xstrtol.h>, since human.h does it.
64854         (human_options): Adjust to abovementioned interface changes.
64855         Do not report error to stderr; that's now the caller's
64856         responsibility.
64857         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64858         interface change.
64859         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64860         Str, Argument_type_string.  All uses changed.  Put " argument"
64861         in diagnostics to make them clearer.  Change wording of suffix
64862         message for clarity.
64863         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64864         Argument_type_string.
64865         (STRTOL_FATAL_WARN): Remove; no longer used.
64866         * modules/human (Depends-on): Remove gettext-h.
64867
64868 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64869
64870         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64871
64872 2007-07-31  Bruno Haible  <bruno@clisp.org>
64873
64874         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64875         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64876         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64877
64878 2007-07-31  Bruno Haible  <bruno@clisp.org>
64879
64880         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64881         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64882
64883 2007-07-30  Bruno Haible  <bruno@clisp.org>
64884
64885         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64886         * modules/c-ctype (License): Likewise.
64887         * modules/c-strcase (License): Likewise.
64888         * modules/check-version (License): Likewise.
64889         * modules/iconv (License): Likewise.
64890         * modules/iconv_open (License): Likewise.
64891         * modules/read-file (License): Likewise.
64892         * modules/striconv (License): Likewise.
64893         * modules/strverscmp (License): Likewise.
64894         * modules/vasprintf (License): Likewise.
64895         * modules/crypto/des (License): Likewise.
64896         * modules/crypto/gc (License): Likewise.
64897         * modules/crypto/gc-arcfour (License): Likewise.
64898         * modules/crypto/gc-arctwo (License): Likewise.
64899         * modules/crypto/gc-des (License): Likewise.
64900         * modules/crypto/gc-hmac-md5 (License): Likewise.
64901         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64902         * modules/crypto/gc-md2 (License): Likewise.
64903         * modules/crypto/gc-md4 (License): Likewise.
64904         * modules/crypto/gc-md5 (License): Likewise.
64905         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64906         * modules/crypto/gc-random (License): Likewise.
64907         * modules/crypto/gc-rijndael (License): Likewise.
64908         * modules/crypto/gc-sha1 (License): Likewise.
64909         * modules/crypto/md2 (License): Likewise.
64910         * modules/crypto/md4 (License): Likewise.
64911
64912 2007-07-30  Jim Meyering  <jim@meyering.net>
64913
64914         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64915         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64916         it has valid stat data.  This bug would cause du not to count the
64917         sizes of inaccessible directories.
64918         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64919         in <http://bugzilla.redhat.com/250077>.
64920
64921 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64922             Bruno Haible  <bruno@clisp.org>
64923
64924         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64925         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64926         #include_next, gives a diagnostic about it, but reports no error in
64927         the exit code.
64928         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64929
64930 2007-07-24  Ben Pfaff  <blp@gnu.org>
64931
64932         Improve name: "count-one-bits" is better than "popcount".
64933         * MODULES.html.sh: Update name.
64934         * lib/popcount.h: Renamed lib/count-one-bits.h.
64935         (popcount): Renamed count_one_bits.
64936         (popcountl): Renamed count_one_bits_l.
64937         (popcountll): Renamed count_one_bits_ll.
64938         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64939         * modules/popcount: Renamed module/count-one-bits.
64940         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64941         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64942
64943 2007-07-23  Ben Pfaff  <blp@gnu.org>
64944
64945         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64946         better code generation, and add U to large constants to avoid
64947         warnings, in non-GCC case.
64948         Suggested by Bruno Haible.
64949
64950 2007-07-23  Ben Pfaff  <blp@gnu.org>
64951
64952         * lib/popcount.h: Use verify_true instead of if...abort.
64953         * modules/popcount: Depend on verify module.
64954         Suggested by Jim Meyering.
64955
64956 2007-07-23  Bruno Haible  <bruno@clisp.org>
64957
64958         * gnulib-tool (func_import): Create a .cvsignore file also when the
64959         directory is not yet in CVS but the toplevel directory is. When
64960         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64961         Reported by Karl Berry.
64962
64963 2007-07-22  Ben Pfaff  <blp@gnu.org>
64964
64965         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64966         case.
64967         Suggested by Eric Blake.
64968
64969 2007-07-22  Ben Pfaff  <blp@gnu.org>
64970
64971         New module: popcount.
64972         * MODULES.html.sh: Add popcount.
64973         * modules/popcount: New file.
64974         * modules/popcount-tests: New file.
64975         * tests/test-popcount.c: New file.
64976         * lib/popcount.h: New file.
64977         * m4/popcount.m4: New file.
64978
64979 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * build-aux/announce-gen: Update to GPLv3.
64982
64983         * build-aux/config.guess: Update from config.
64984
64985 2007-07-21  Bruno Haible  <bruno@clisp.org>
64986
64987         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64988         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64989
64990 2007-07-20  Jim Meyering  <jim@meyering.net>
64991
64992         * check-module: Diagnose a self-dependency.
64993
64994 2007-07-19  Bruno Haible  <bruno@clisp.org>
64995
64996         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64997         empty.
64998         Reported by Eric Blake.
64999
65000 2007-07-18  Bruno Haible  <bruno@clisp.org>
65001
65002         * gnulib-tool: New options --po-base, --po-domain.
65003         (func_usage): Document them.
65004         (pobase, po_domain): New variables.
65005         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65006         DEFAULT_TEXT_DOMAIN.
65007         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65008         (func_import): Consider pobase and po_domain. Create a po/ directory.
65009         (func_create_testdir): Set pobase and po_domain to empty.
65010         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65011         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65012
65013 2007-07-18  Bruno Haible  <bruno@clisp.org>
65014
65015         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65016         EXTRA_DIST augmentation for files in build-aux/.
65017
65018 2007-07-16  Bruno Haible  <bruno@clisp.org>
65019
65020         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65021         * modules/getdelim (License): Likewise.
65022
65023 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65024
65025         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65026         * modules/d-type (License): Likewise.
65027         * modules/extensions (License): Likewise.
65028         * modules/fnmatch (License): Likewise.
65029         * modules/fseeko (License): Likewise.
65030         * modules/getaddrinfo (License): Likewise.
65031         * modules/getline (License): Likewise.
65032         * modules/getlogin_r (License): Likewise.
65033         * modules/getpass (License): Likewise.
65034         * modules/gettimeofday (License): Likewise.
65035         * modules/glob (License): Likewise.
65036         * modules/inet_ntop (License): Likewise.
65037         * modules/malloc (License): Likewise.
65038         * modules/malloca (License): Likewise.
65039         * modules/memmem (License): Likewise.
65040         * modules/mempcpy (License): Likewise.
65041         * modules/memset (License): Likewise.
65042         * modules/minmax (License): Likewise.
65043         * modules/mktime (License): Likewise.
65044         * modules/netinet_in (License): Likewise.
65045         * modules/pathmax (License): Likewise.
65046         * modules/poll (License): Likewise.
65047         * modules/regex (License): Likewise.
65048         * modules/snprintf (License): Likewise.
65049         * modules/stdbool (License): Likewise.
65050         * modules/stdint (License): Likewise.
65051         * modules/stdio (License): Likewise.
65052         * modules/strcase (License): Likewise.
65053         * modules/strcasestr (License): Likewise.
65054         * modules/strdup (License): Likewise.
65055         * modules/string (License): Likewise.
65056         * modules/strndup (License): Likewise.
65057         * modules/strnlen (License): Likewise.
65058         * modules/strpbrk (License): Likewise.
65059         * modules/strptime (License): Likewise.
65060         * modules/strsep (License): Likewise.
65061         * modules/sys_select (License): Likewise.
65062         * modules/sys_socket (License): Likewise.
65063         * modules/sys_stat (License): Likewise.
65064         * modules/sys_time (License): Likewise.
65065         * modules/time (License): Likewise.
65066         * modules/time_r (License): Likewise.
65067         * modules/timegm (License): Likewise.
65068         * modules/unistd (License): Likewise.
65069         * modules/vsnprintf (License): Likewise.
65070         * modules/wctype (License): Likewise.
65071
65072 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65073
65074         * modules/argz (License): LGPLv2+.
65075
65076 2007-07-15  Karl Berry  <karl@gnu.org>
65077
65078         * doc/gnulib.texi: revise node structure per new fdl.texi.
65079
65080 2007-07-14  Bruno Haible  <bruno@clisp.org>
65081
65082         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65083         the output file.
65084         * lib/uniname/uninames.h: Regenerated.
65085
65086 2007-07-14  Karl Berry  <karl@gnu.org>
65087
65088         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65089         omitting sectioning and index commands.
65090
65091 2007-07-13  Bruno Haible  <bruno@clisp.org>
65092
65093         New gnulib-tool option --more-symlinks.
65094         * gnulib-tool (func_usage): Document --more-symlinks.
65095         (do_copyrights): New variable.
65096         Recognize option --more-symlinks.
65097         (func_import): Don't add a copyright notice transform to
65098         sed_transform_lib_file if do_copyrights is empty.
65099
65100 2007-07-13  Bruno Haible  <bruno@clisp.org>
65101
65102         * lib/vasnprintf.c (decimal_point_char): Define also if
65103         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65104         && !NEED_PRINTF_DIRECTIVE_A.
65105         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65106         Gary V. Vaughan <gary@gnu.org>.
65107
65108 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65109
65110         * lib/inttypes_.h: Undo previous change, since it was fixed
65111         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65112
65113 2007-07-13  Bruno Haible  <bruno@clisp.org>
65114
65115         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65116         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65117
65118 2007-07-13  Jim Meyering  <jim@meyering.net>
65119
65120         df: Don't fail for Tru64's "file-on-file mount".
65121         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65122         so we fall through and use statfs instead.  Details here:
65123         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65124         Reported by Albert Chin.
65125
65126 2007-07-13  Bruno Haible  <bruno@clisp.org>
65127
65128         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65129         * modules/configmake (License): Likewise.
65130         * modules/gettext (License): Likewise.
65131         * modules/gettext-h (License): Likewise.
65132         * modules/include_next (License): Likewise.
65133         * modules/link-warning (License): Likewise.
65134         * modules/localcharset (License): Likewise.
65135         * modules/localename (License): Likewise.
65136         * modules/lock (License): Likewise.
65137         * modules/relocatable-lib-lgpl (License): Likewise.
65138         * modules/size_max (License): Likewise.
65139         * modules/vasnprintf (License): Likewise.
65140         * modules/wchar (License): Likewise.
65141         * modules/xsize (License): Likewise.
65142
65143 2007-07-13  Bruno Haible  <bruno@clisp.org>
65144
65145         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65146         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65147
65148 2007-07-12  Bruno Haible  <bruno@clisp.org>
65149
65150         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65151         in the modules files.
65152
65153 2007-07-11  Karl Berry  <karl@gnu.org>
65154
65155         * MODULES.html.sh (func_module): use
65156          sed -e '\|^'"${includefile}"'$|d'
65157          instead of /.../d, to avoid errors on $includefile's containing /.
65158
65159 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65160
65161         * gnulib-tool (func_import): Avoid duplication of --avoid
65162         statements
65163         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65164         names to `_' in variable names.
65165
65166 2007-07-10  Eric Blake  <ebb9@byu.net>
65167
65168         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65169         * NEWS: Document this change.
65170
65171 2007-07-08  Bruno Haible  <bruno@clisp.org>
65172
65173         Update to Unicode 5.0.
65174         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65175         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65176         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65177         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65178         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65179         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65180         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65181         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65182         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65183         U+10A3F, U+1D242..U+1D244.
65184         (nonspacing_table_ind): Update.
65185         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65186         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65187
65188 2007-07-08  Bruno Haible  <bruno@clisp.org>
65189
65190         Update to Unicode 5.0.
65191         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65192         code transform. Extend the name index field of unicode_name_to_code and
65193         unicode_code_to_name from 16 to 24 bits.
65194         * lib/uniname/uniname.c (unicode_character_name,
65195         unicode_name_character): Add the range 0x12xxx to the code transform.
65196         * lib/uniname/uninames.h: Regenerated.
65197         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65198
65199 2007-07-07  Bruno Haible  <bruno@clisp.org>
65200
65201         * modules/wcwidth-tests: New file.
65202         * tests/test-wcwidth.c: New file.
65203
65204         Work around MacOS X wcwidth() bug.
65205         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65206         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65207         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65208         original wcwidth in non-UTF-8 locales.
65209         * modules/wcwidth (Depends-on): Add localcharset, streq,
65210         uniwidth/width.
65211         * doc/functions/wcwidth.texi: Update.
65212
65213 2007-07-07  Bruno Haible  <bruno@clisp.org>
65214
65215         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65216         (wcwidth): New declaration.
65217         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65218         macros.
65219         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65220         here. Prepare for creating <wchar.h> unconditionally.
65221         * modules/wchar (Depends-on): Add link-warning.
65222         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65223         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65224         * lib/wcwidth.h: Remove file.
65225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65226         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65227         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65228         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65229         (Include): Replace wcwidth.h with <wchar.h>.
65230         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65231         * lib/mbchar.h: Don't include wcwidth.h.
65232         * lib/mbswidth.c: Likewise.
65233         * NEWS: Mention the change.
65234
65235 2007-07-07  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65238         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65239         definition with an external declaration.
65240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65241         defined as a function. Remove AC_C_INLINE requirement.
65242         * modules/wcwidth (Files): Add lib/wcwidth.c.
65243         (Makefile.am): Remove redundant statement.
65244
65245 2007-07-07  Bruno Haible  <bruno@clisp.org>
65246
65247         * MODULES.html.sh (Unicode string functions): Add the new modules.
65248
65249         * tests/uniwidth/test-u32-strwidth.c: New file.
65250         * modules/uniwidth/u32-strwidth-tests: New file.
65251
65252         * lib/uniwidth/u32-strwidth.c: New file.
65253         * modules/uniwidth/u32-strwidth: New file.
65254
65255         * tests/uniwidth/test-u16-strwidth.c: New file.
65256         * modules/uniwidth/u16-strwidth-tests: New file.
65257
65258         * lib/uniwidth/u16-strwidth.c: New file.
65259         * modules/uniwidth/u16-strwidth: New file.
65260
65261         * tests/uniwidth/test-u8-strwidth.c: New file.
65262         * modules/uniwidth/u8-strwidth-tests: New file.
65263
65264         * lib/uniwidth/u8-strwidth.c: New file.
65265         * modules/uniwidth/u8-strwidth: New file.
65266
65267         * tests/uniwidth/test-u32-width.c: New file.
65268         * modules/uniwidth/u32-width-tests: New file.
65269
65270         * lib/uniwidth/u32-width.c: New file.
65271         * modules/uniwidth/u32-width: New file.
65272
65273         * tests/uniwidth/test-u16-width.c: New file.
65274         * modules/uniwidth/u16-width-tests: New file.
65275
65276         * lib/uniwidth/u16-width.c: New file.
65277         * modules/uniwidth/u16-width: New file.
65278
65279         * tests/uniwidth/test-u8-width.c: New file.
65280         * modules/uniwidth/u8-width-tests: New file.
65281
65282         * lib/uniwidth/u8-width.c: New file.
65283         * modules/uniwidth/u8-width: New file.
65284
65285         * tests/uniwidth/test-uc_width.c: New file.
65286         * modules/uniwidth/width-tests: New file.
65287
65288         * lib/uniwidth/width.c: New file, from GNU libiconv.
65289         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65290         * modules/uniwidth/width: New file.
65291
65292         * lib/uniwidth.h: New file, from GNU libiconv.
65293         * modules/uniwidth/base: New file.
65294
65295 2007-07-07  Bruno Haible  <bruno@clisp.org>
65296
65297         * lib/uniname.h: New file, from GNU gettext.
65298         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65299         * lib/uniname/uninames.h: New file, from GNU gettext.
65300         * lib/uniname/uniname.c: New file, from GNU gettext.
65301         * tests/uniname/test-uninames.sh: New file.
65302         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65303         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65304         * modules/uniname/base: New file.
65305         * modules/uniname/uniname: New file.
65306         * modules/uniname/uniname-tests: New file.
65307         * MODULES.html.sh (Unicode string functions): Add the new modules.
65308
65309 2007-07-06  Bruno Haible  <bruno@clisp.org>
65310
65311         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65312
65313 2007-07-06  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65316         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65317         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65318         include <sys/time.h>.
65319         Reported by Eric Blake.
65320
65321 2007-07-06  Eric Blake  <ebb9@byu.net>
65322
65323         Fix testing canonicalize on cygwin.
65324         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65325         Revert patch from 2007-06-19.
65326         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65327         canonicalize module is also in use.
65328         * tests/test-canonicalize.c: New file.
65329         * tests/test-canonicalize.sh: Likewise.
65330         * modules/canonicalize-tests: Likewise.
65331
65332 2007-07-06  Jim Meyering  <jim@meyering.net>
65333
65334         * lib/getugroups.c (getugroups): Detect getgrent failure.
65335         Adjust comment to reflect reality: this function may return -1.
65336
65337 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65338
65339         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65340         the new TP address.
65341         (usage): Fix typo
65342         (gnulib_mk): New variable.
65343
65344 2007-07-05  Jim Meyering  <jim@meyering.net>
65345
65346         Don't let endgrent clobber errno, no matter how improbable.
65347         * lib/getugroups.c (getugroups): Save and restore errno around
65348         endgrent call.
65349
65350         Close the group DB even when failing with 2^31 or more members.
65351         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65352
65353 2007-07-04  Jim Meyering  <jim@meyering.net>
65354
65355         * lib/getugroups.h: New file.
65356         * lib/getugroups.c: Include "getugroups.h".
65357         Remove uses of "register" keyword.
65358         Move local variable, "cp", down into scope where used.
65359         Give "username" parameter the "const" attribute.
65360         * modules/getugroups (Files): Add lib/getugroups.h
65361
65362 2007-07-04  Karl Berry  <karl@gnu.org>
65363
65364         * MODULES.html.sh (func_all_modules): Complete rename of
65365         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65366
65367 2007-07-02  Bruno Haible  <bruno@clisp.org>
65368
65369         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65370         mode, when inttypes.h comes from gnulib.
65371         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65372
65373 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65374
65375         * NEWS: Mention lgpl module name change.
65376
65377         * modules/lgpl-2.1: Renamed from lgpl.
65378
65379         * NEWS: Mention gpl module name change.
65380
65381         * modules/gpl-3.0: New file, based on gpl-2.0.
65382
65383         * modules/gpl-2.0: Renamed from gpl.
65384
65385         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65386         doc/gpl-2.0.texi.
65387
65388 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65391         #define __STDC_LIMIT_MACROS temporarily while including
65392         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65393         Problem reported by Joel E. Denny in
65394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65395
65396 2007-07-01  Bruno Haible  <bruno@clisp.org>
65397
65398         * lib/unistdio.h: New file.
65399         * lib/unistdio/u-asnprintf.h: New file.
65400         * lib/unistdio/u-asprintf.h: New file.
65401         * lib/unistdio/u-printf-args.c: New file.
65402         * lib/unistdio/u-printf-args.h: New file.
65403         * lib/unistdio/u-printf-parse.h: New file.
65404         * lib/unistdio/u-snprintf.h: New file.
65405         * lib/unistdio/u-sprintf.h: New file.
65406         * lib/unistdio/u-vasprintf.h: New file.
65407         * lib/unistdio/u-vsnprintf.h: New file.
65408         * lib/unistdio/u-vsprintf.h: New file.
65409         * lib/unistdio/ulc-asnprintf.c: New file.
65410         * lib/unistdio/ulc-asprintf.c: New file.
65411         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65412         * lib/unistdio/ulc-printf-parse.c: New file.
65413         * lib/unistdio/ulc-snprintf.c: New file.
65414         * lib/unistdio/ulc-sprintf.c: New file.
65415         * lib/unistdio/ulc-vasnprintf.c: New file.
65416         * lib/unistdio/ulc-vasprintf.c: New file.
65417         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65418         * lib/unistdio/ulc-vsnprintf.c: New file.
65419         * lib/unistdio/ulc-vsprintf.c: New file.
65420         * lib/unistdio/u8-asnprintf.c: New file.
65421         * lib/unistdio/u8-asprintf.c: New file.
65422         * lib/unistdio/u8-printf-parse.c: New file.
65423         * lib/unistdio/u8-snprintf.c: New file.
65424         * lib/unistdio/u8-sprintf.c: New file.
65425         * lib/unistdio/u8-vasnprintf.c: New file.
65426         * lib/unistdio/u8-vasprintf.c: New file.
65427         * lib/unistdio/u8-vsnprintf.c: New file.
65428         * lib/unistdio/u8-vsprintf.c: New file.
65429         * lib/unistdio/u8-u8-asnprintf.c: New file.
65430         * lib/unistdio/u8-u8-asprintf.c: New file.
65431         * lib/unistdio/u8-u8-snprintf.c: New file.
65432         * lib/unistdio/u8-u8-sprintf.c: New file.
65433         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65434         * lib/unistdio/u8-u8-vasprintf.c: New file.
65435         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65436         * lib/unistdio/u8-u8-vsprintf.c: New file.
65437         * lib/unistdio/u16-asnprintf.c: New file.
65438         * lib/unistdio/u16-asprintf.c: New file.
65439         * lib/unistdio/u16-printf-parse.c: New file.
65440         * lib/unistdio/u16-snprintf.c: New file.
65441         * lib/unistdio/u16-sprintf.c: New file.
65442         * lib/unistdio/u16-vasnprintf.c: New file.
65443         * lib/unistdio/u16-vasprintf.c: New file.
65444         * lib/unistdio/u16-vsnprintf.c: New file.
65445         * lib/unistdio/u16-vsprintf.c: New file.
65446         * lib/unistdio/u16-u16-asnprintf.c: New file.
65447         * lib/unistdio/u16-u16-asprintf.c: New file.
65448         * lib/unistdio/u16-u16-snprintf.c: New file.
65449         * lib/unistdio/u16-u16-sprintf.c: New file.
65450         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65451         * lib/unistdio/u16-u16-vasprintf.c: New file.
65452         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65453         * lib/unistdio/u16-u16-vsprintf.c: New file.
65454         * lib/unistdio/u32-asnprintf.c: New file.
65455         * lib/unistdio/u32-asprintf.c: New file.
65456         * lib/unistdio/u32-printf-parse.c: New file.
65457         * lib/unistdio/u32-snprintf.c: New file.
65458         * lib/unistdio/u32-sprintf.c: New file.
65459         * lib/unistdio/u32-vasnprintf.c: New file.
65460         * lib/unistdio/u32-vasprintf.c: New file.
65461         * lib/unistdio/u32-vsnprintf.c: New file.
65462         * lib/unistdio/u32-vsprintf.c: New file.
65463         * lib/unistdio/u32-u32-asnprintf.c: New file.
65464         * lib/unistdio/u32-u32-asprintf.c: New file.
65465         * lib/unistdio/u32-u32-snprintf.c: New file.
65466         * lib/unistdio/u32-u32-sprintf.c: New file.
65467         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65468         * lib/unistdio/u32-u32-vasprintf.c: New file.
65469         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65470         * lib/unistdio/u32-u32-vsprintf.c: New file.
65471         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65472         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65473         * tests/unistdio/test-ulc-printf1.h: New file.
65474         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65475         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65476         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65477         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65478         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65479         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65480         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65481         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65482         * tests/unistdio/test-u8-asnprintf1.c: New file.
65483         * tests/unistdio/test-u8-asnprintf1.h: New file.
65484         * tests/unistdio/test-u8-printf1.h: New file.
65485         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65486         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65487         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65488         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65489         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65490         * tests/unistdio/test-u8-vasprintf1.c: New file.
65491         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65492         * tests/unistdio/test-u8-vsprintf1.c: New file.
65493         * tests/unistdio/test-u16-asnprintf1.c: New file.
65494         * tests/unistdio/test-u16-asnprintf1.h: New file.
65495         * tests/unistdio/test-u16-printf1.h: New file.
65496         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65497         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65498         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65499         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65500         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65501         * tests/unistdio/test-u16-vasprintf1.c: New file.
65502         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65503         * tests/unistdio/test-u16-vsprintf1.c: New file.
65504         * tests/unistdio/test-u32-asnprintf1.c: New file.
65505         * tests/unistdio/test-u32-asnprintf1.h: New file.
65506         * tests/unistdio/test-u32-printf1.h: New file.
65507         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65508         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65509         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65510         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65511         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65512         * tests/unistdio/test-u32-vasprintf1.c: New file.
65513         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65514         * tests/unistdio/test-u32-vsprintf1.c: New file.
65515         * modules/unistdio/base: New file.
65516         * modules/unistdio/u-printf-args: New file.
65517         * modules/unistdio/ulc-asnprintf: New file.
65518         * modules/unistdio/ulc-asprintf: New file.
65519         * modules/unistdio/ulc-fprintf: New file.
65520         * modules/unistdio/ulc-printf-parse: New file.
65521         * modules/unistdio/ulc-snprintf: New file.
65522         * modules/unistdio/ulc-sprintf: New file.
65523         * modules/unistdio/ulc-vasnprintf: New file.
65524         * modules/unistdio/ulc-vasprintf: New file.
65525         * modules/unistdio/ulc-vfprintf: New file.
65526         * modules/unistdio/ulc-vsnprintf: New file.
65527         * modules/unistdio/ulc-vsprintf: New file.
65528         * modules/unistdio/u8-asnprintf: New file.
65529         * modules/unistdio/u8-asprintf: New file.
65530         * modules/unistdio/u8-printf-parse: New file.
65531         * modules/unistdio/u8-snprintf: New file.
65532         * modules/unistdio/u8-sprintf: New file.
65533         * modules/unistdio/u8-vasnprintf: New file.
65534         * modules/unistdio/u8-vasprintf: New file.
65535         * modules/unistdio/u8-vsnprintf: New file.
65536         * modules/unistdio/u8-vsprintf: New file.
65537         * modules/unistdio/u8-u8-asnprintf: New file.
65538         * modules/unistdio/u8-u8-asprintf: New file.
65539         * modules/unistdio/u8-u8-snprintf: New file.
65540         * modules/unistdio/u8-u8-sprintf: New file.
65541         * modules/unistdio/u8-u8-vasnprintf: New file.
65542         * modules/unistdio/u8-u8-vasprintf: New file.
65543         * modules/unistdio/u8-u8-vsnprintf: New file.
65544         * modules/unistdio/u8-u8-vsprintf: New file.
65545         * modules/unistdio/u16-asnprintf: New file.
65546         * modules/unistdio/u16-asprintf: New file.
65547         * modules/unistdio/u16-printf-parse: New file.
65548         * modules/unistdio/u16-snprintf: New file.
65549         * modules/unistdio/u16-sprintf: New file.
65550         * modules/unistdio/u16-vasnprintf: New file.
65551         * modules/unistdio/u16-vasprintf: New file.
65552         * modules/unistdio/u16-vsnprintf: New file.
65553         * modules/unistdio/u16-vsprintf: New file.
65554         * modules/unistdio/u16-u16-asnprintf: New file.
65555         * modules/unistdio/u16-u16-asprintf: New file.
65556         * modules/unistdio/u16-u16-snprintf: New file.
65557         * modules/unistdio/u16-u16-sprintf: New file.
65558         * modules/unistdio/u16-u16-vasnprintf: New file.
65559         * modules/unistdio/u16-u16-vasprintf: New file.
65560         * modules/unistdio/u16-u16-vsnprintf: New file.
65561         * modules/unistdio/u16-u16-vsprintf: New file.
65562         * modules/unistdio/u32-asnprintf: New file.
65563         * modules/unistdio/u32-asprintf: New file.
65564         * modules/unistdio/u32-printf-parse: New file.
65565         * modules/unistdio/u32-snprintf: New file.
65566         * modules/unistdio/u32-sprintf: New file.
65567         * modules/unistdio/u32-vasnprintf: New file.
65568         * modules/unistdio/u32-vasprintf: New file.
65569         * modules/unistdio/u32-vsnprintf: New file.
65570         * modules/unistdio/u32-vsprintf: New file.
65571         * modules/unistdio/u32-u32-asnprintf: New file.
65572         * modules/unistdio/u32-u32-asprintf: New file.
65573         * modules/unistdio/u32-u32-snprintf: New file.
65574         * modules/unistdio/u32-u32-sprintf: New file.
65575         * modules/unistdio/u32-u32-vasnprintf: New file.
65576         * modules/unistdio/u32-u32-vasprintf: New file.
65577         * modules/unistdio/u32-u32-vsnprintf: New file.
65578         * modules/unistdio/u32-u32-vsprintf: New file.
65579         * modules/unistdio/ulc-asnprintf-tests: New file.
65580         * modules/unistdio/ulc-vasnprintf-tests: New file.
65581         * modules/unistdio/ulc-vasprintf-tests: New file.
65582         * modules/unistdio/ulc-vsnprintf-tests: New file.
65583         * modules/unistdio/ulc-vsprintf-tests: New file.
65584         * modules/unistdio/u8-asnprintf-tests: New file.
65585         * modules/unistdio/u8-vasnprintf-tests: New file.
65586         * modules/unistdio/u8-vasprintf-tests: New file.
65587         * modules/unistdio/u8-vsnprintf-tests: New file.
65588         * modules/unistdio/u8-vsprintf-tests: New file.
65589         * modules/unistdio/u16-asnprintf-tests: New file.
65590         * modules/unistdio/u16-vasnprintf-tests: New file.
65591         * modules/unistdio/u16-vasprintf-tests: New file.
65592         * modules/unistdio/u16-vsnprintf-tests: New file.
65593         * modules/unistdio/u16-vsprintf-tests: New file.
65594         * modules/unistdio/u32-asnprintf-tests: New file.
65595         * modules/unistdio/u32-vasnprintf-tests: New file.
65596         * modules/unistdio/u32-vasprintf-tests: New file.
65597         * modules/unistdio/u32-vsnprintf-tests: New file.
65598         * modules/unistdio/u32-vsprintf-tests: New file.
65599         * MODULES.html.sh (Unicode string functions): Add the new modules.
65600
65601 2007-07-01  Bruno Haible  <bruno@clisp.org>
65602
65603         * lib/sprintf.c (sprintf): Limit the available length estimation,
65604         to avoid address wraparound.
65605         * lib/vsprintf.c (vsprintf): Likewise.
65606         * modules/sprintf-posix (Dependencies): Add stdint.
65607         * modules/vsprintf-posix (Dependencies): Likewise.
65608
65609 2007-07-01  Bruno Haible  <bruno@clisp.org>
65610
65611         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65612         Windows PATH as well. Conservative double-quoting. Comments.
65613
65614 2007-07-01  Bruno Haible  <bruno@clisp.org>
65615             Eric Blake  <ebb9@byu.net>
65616             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65617
65618         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65619         empty components in $PATH, denoting '.'.
65620
65621 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65622
65623         * gnulib-tool: Fix indentation.
65624         (func_create_megatestdir): Likewise.
65625         Report by Bruno Haible.
65626
65627 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65628
65629         Sync from Automake.
65630         * build-aux/gnupload: Fix shell portability issues with for loops.
65631         Report by Karl Berry.
65632
65633 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65634
65635         * build-aux/maint.mk (POURL): Use translationproject.org.
65636
65637 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65638             Bruno Haible  <bruno@clisp.org>
65639
65640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65641         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65642         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65643         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65644         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65645
65646 2007-06-27  Bruno Haible  <bruno@clisp.org>
65647
65648         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65649         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65650
65651 2007-06-26  Karl Berry  <karl@gnu.org>
65652
65653         * MODULES.html.sh: remove xreadlink-with-size.
65654
65655 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65658         method that I hope also handles the double-include problem noted
65659         by Bruno Haible in
65660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65661
65662 2007-06-23  Bruno Haible  <bruno@clisp.org>
65663
65664         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65665         Don't let the 'mostlyclean' target fail if the last subdirectory could
65666         not be removed.
65667         Reported by Karl Berry.
65668
65669 2007-06-23  Bruno Haible  <bruno@clisp.org>
65670
65671         * gnulib-tool (echo): Add a speedier workaround for ksh.
65672         * tests/test-echo.sh: Likewise.
65673
65674 2007-06-23  Bruno Haible  <bruno@clisp.org>
65675
65676         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65677         * tests/test-echo.sh: Likewise.
65678
65679 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65680
65681         * gnulib-tool (IFS): Initialize early, so we don't set it to
65682         empty later.
65683         (self_abspathname): Rewrite algorithm to set it, reindent.
65684         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65685         (func_create_megatestdir): Merge some sed scripts.
65686
65687 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65688
65689         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65690         exposed by Sun Studio 11 cc on Solaris 8.
65691
65692 2007-06-22  Bruno Haible  <bruno@clisp.org>
65693
65694         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65695         backslashes.
65696         * tests/test-echo.sh: New file.
65697
65698 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65699
65700         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65701         simplify `sed_replace_build_aux' scripts, they are portable but
65702         echoing them with `echo' is not.
65703         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65704
65705 2007-06-21  Karl Berry  <karl@gnu.org>
65706
65707         * config/srclist.txt: guess we can't handle the licenses via
65708         srclist at the moment.
65709
65710 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * MODULES.html.sh: Add include_next.
65713         * modules/include_next: New file.
65714
65715 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65718         INCLUDE_NEXT.
65719         (gl_CHECK_NEXT_HEADERS): New macro.
65720         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65721         the obsolescent gl_ABSOLUTE_HEADER.
65722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65723         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65724         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65725         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65726         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65727         * m4/math_h.m4 (gl_MATH_H): Likewise.
65728         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65729         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65730         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65731         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65732         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65733         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65734         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65735         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65736         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65738         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65739         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65740         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65741         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65742         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65743         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65744         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65745         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65746         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65747         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65748         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65749         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65750         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65751         * lib/float_.h: Likewise.
65752         * lib/inttypes_.h: Likewise.
65753         * lib/math_.h: Likewise.
65754         * lib/search_.h: Likewise.
65755         * lib/signal_.h: Likewise.
65756         * lib/stdint_.h: Likewise.
65757         * lib/stdio_.h: Likewise.
65758         * lib/stdlib_.h: Likewise.
65759         * lib/string_.h: Likewise.
65760         * lib/sys_stat_.h: Likewise.
65761         * lib/sys_time_.h: Likewise.
65762         * lib/time_.h: Likewise.
65763         * lib/unistd_.h: Likewise.
65764         * lib/wchar_.h: Likewise.
65765         * lib/wctype_.h: Likewise.
65766         * lib/dirent_.h: Likewise.
65767         * lib/iconv_.h: Likewise.
65768         * lib/locale_.h: Likewise.
65769         * lib/netinet_in_.h: Likewise.
65770         * lib/sys_select_.h: Likewise.
65771         * lib/sys_socket_.h: Likewise.
65772         * lib/sysexits_.h: Likewise.
65773         * modules/fcntl (Depends-on): Depend on include_next, not
65774         absolute_header.
65775         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65776         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65777         * modules/fchdir: Likewise.
65778         * modules/float: Likewise.
65779         * modules/iconv_open: Likewise.
65780         * modules/inttypes: Likewise.
65781         * modules/locale: Likewise.
65782         * modules/math: Likewise.
65783         * modules/netinet_in: Likewise.
65784         * modules/search: Likewise.
65785         * modules/signal: Likewise.
65786         * modules/stdint: Likewise.
65787         * modules/stdio: Likewise.
65788         * modules/stdlib: Likewise.
65789         * modules/string: Likewise.
65790         * modules/sys_select: Likewise.
65791         * modules/sys_socket: Likewise.
65792         * modules/sys_stat: Likewise.
65793         * modules/sys_time: Likewise.
65794         * modules/sysexits: Likewise.
65795         * modules/time: Likewise.
65796         * modules/unistd: Likewise.
65797         * modules/wchar: Likewise.
65798         * modules/wctype: Likewise.
65799         * modules/sys_stat: Change maintainer to "all".
65800         * modules/unistd: Likewise.
65801
65802 2007-06-20  Karl Berry  <karl@gnu.org>
65803
65804         * config/srclist.txt: track www changes in license files.
65805
65806 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65807
65808         * build-aux/bootstrap: Remove stray dot.
65809         Make sure build_aux settings are honored when linking
65810         gnulib_extra_files.
65811
65812 2007-06-19  Eric Blake  <ebb9@byu.net>
65813
65814         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65815         Allow compilation on cygwin.
65816
65817 2007-06-19  Jim Meyering  <jim@meyering.net>
65818
65819         xreadlink-with-size: Remove module.  No longer used.
65820         Ex-callers now use xreadlink or mreadlink-with-size.
65821         * modules/xreadlink-with-size: Remove module.
65822         * lib/xreadlink-with-size.c: Remove file.
65823         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65824         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65825         just before the function definition *is* accurate.
65826
65827         Eliminate one way canonicalize_filename_mode could exit.
65828         * lib/canonicalize.c (canonicalize_filename_mode):
65829         Use mreadlink_with_size, not xreadlink_with_size.
65830
65831 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65832
65833         Detect porting problems to FreeBSD/arm, which has time_t wider than
65834         long int.  Original problem reported for GNU diff by Xin Li in
65835         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65836         * modules/getdate (Depends-on): Add intprops, verify.
65837         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65838         is an integer type no wider than long int.
65839
65840 2007-06-18  Jim Meyering  <jim@meyering.net>
65841
65842         New module: mreadlink-with-size.
65843         * MODULES.html.sh: Add mreadlink-with-size.
65844         * modules/mreadlink-with-size: New module
65845         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65846         not xreadlink-with-size.
65847         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65848
65849 2007-06-16  Bruno Haible  <bruno@clisp.org>
65850
65851         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65852         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65853         Reported by Gary V. Vaughan <gary@gnu.org>.
65854
65855 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65856
65857         Revamp lchown so that it lives in unistd.h where it belongs.
65858         * lib/lchown.h: Remove.
65859         * lib/dirchownmod.c: Don't include lib/lchown.h.
65860         * lib/fchownat.c: Likewise.
65861         * lib/openat.c: Likewise.
65862         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65863         does not follow symlinks.
65864         (EOPNOTSUPP): Define if not defined.
65865         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65866         is defined to 0.
65867         (lchown): New decl.
65868         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65869         Do not check for lchown decl.
65870         Set REPLACE_LCHOWN.
65871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65872         REPLACE_LCHOWN.
65873         * modules/chown: Make it clear it follows symlinks.
65874         * modules/lchown: Make it clear it doesn't follow symlinks.
65875         (Files): Remove lib/lchown.h
65876         (Depends-on): Add unistd.
65877         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65878         (Include): Include <unistd.h>, not "lchown.h".
65879         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65880         REPLACE_LCHOWN.
65881
65882 2007-06-15  Jim Meyering  <jim@meyering.net>
65883
65884         Change license (GPL to LGPL) of fsusage and dependents.
65885         * modules/fsusage (License): Change to LGPL.
65886         * modules/full-read (License): Likewise.
65887         * modules/full-write (License): Likewise.
65888         * modules/safe-read (License): Likewise.
65889         * modules/safe-write (License): Likewise.
65890
65891 2007-06-14  Ben Pfaff  <blp@gnu.org>
65892
65893         Missing part of allocsa -> malloca transition.
65894         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65895         gl_MALLOCA.
65896
65897 2007-06-12  Bruno Haible  <bruno@clisp.org>
65898
65899         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65900         to ia64, x86_64, i386.
65901         Reported by Eric Blake.
65902
65903 2007-06-12  Bruno Haible  <bruno@clisp.org>
65904
65905         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65906         cross-compiling to x86_64.
65907
65908 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65909
65910         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65911         glitch reported by Ralf Wildenhues in
65912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65913
65914         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65915         Vin Shelton.
65916
65917 2007-06-11  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65920         replacement string.
65921         Reported by Eric Blake.
65922
65923 2007-06-10  Bruno Haible  <bruno@clisp.org>
65924
65925         Prepare vasnprintf code for use with Unicode strings.
65926         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65927         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65928         TYPE_U32_STRING.
65929         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65930         a_u32_string variants.
65931         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65932         * lib/printf-args.c: Don't include config.h and the specification
65933         header if PRINTF_FETCHARGS is already defined.
65934         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65935         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65936         TYPE_U16_STRING, TYPE_U32_STRING.
65937         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65938         u16_directive, u16_directives, u32_directive, u32_directives): New
65939         types.
65940         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65941         New declarations.
65942         * lib/printf-parse.c: Don't include config.h and the specification
65943         header if PRINTF_PARSE is already defined. Eliminate the set of
65944         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65945         them now. Include c-ctype.h.
65946         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65947         directive and CHAR_T_ONLY_ASCII.
65948         * lib/vasnprintf.c: Don't include config.h and the specification header
65949         if VASNPRINTF is already defined.
65950         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65951         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65952         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65953         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65954         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65955         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65956         code accordingly.
65957         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65958         pad_ourselves also in this case, with the 'c' and 's' directives, and
65959         with a different notion of "width".
65960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65961
65962 2007-06-10  Bruno Haible  <bruno@clisp.org>
65963
65964         * modules/unistr/u32-mbsnlen: New file.
65965         * lib/unistr/u32-mbsnlen.c: New file.
65966
65967         * modules/unistr/u16-mbsnlen: New file.
65968         * lib/unistr/u16-mbsnlen.c: New file.
65969
65970         * modules/unistr/u8-mbsnlen: New file.
65971         * lib/unistr/u8-mbsnlen.c: New file.
65972
65973         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65974         declarations.
65975
65976 2007-06-10  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/string_.h (mbsnlen): New declaration.
65979         * lib/mbsnlen.c: New file.
65980         * m4/mbsnlen.m4: New file.
65981         * modules/mbsnlen: New file.
65982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65983         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65984         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65985
65986 2007-06-10  Bruno Haible  <bruno@clisp.org>
65987
65988         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65989
65990 2007-06-10  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65993         * lib/mbuiter.h: Likewise.
65994
65995 2007-06-10  Bruno Haible  <bruno@clisp.org>
65996
65997         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65998         declaration.
65999
66000 2007-06-10  Karl Berry  <karl@gnu.org>
66001
66002         * config/srclist.txt: remove gettext entries, Bruno prefers
66003         to update individually.
66004
66005 2007-06-10  Bruno Haible  <bruno@clisp.org>
66006
66007         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66008         'maxlen'. Ensure only length + width bytes are allocated, not
66009         length + 1 + width.
66010
66011 2007-06-09  Bruno Haible  <bruno@clisp.org>
66012
66013         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66014         (CHAR_T): Remove macro.
66015         (VASNPRINTF): Update.
66016
66017 2007-06-09  Bruno Haible  <bruno@clisp.org>
66018
66019         * MODULES.html.sh (Unicode string functions): Add the new modules.
66020
66021         * modules/uniconv/u32-conv-to-enc: New file.
66022         * lib/uniconv/u32-conv-to-enc.c: New file.
66023         * modules/uniconv/u32-conv-to-enc-tests: New file.
66024         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66025
66026         * modules/uniconv/u16-conv-to-enc: New file.
66027         * lib/uniconv/u16-conv-to-enc.c: New file.
66028         * lib/uniconv/u-conv-to-enc.h: New file.
66029         * modules/uniconv/u16-conv-to-enc-tests: New file.
66030         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66031
66032         * modules/uniconv/u8-conv-to-enc: New file.
66033         * lib/uniconv/u8-conv-to-enc.c: New file.
66034         * modules/uniconv/u8-conv-to-enc-tests: New file.
66035         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66036
66037         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66038         u32_conv_to_encoding): New declarations.
66039
66040 2007-06-09  Bruno Haible  <bruno@clisp.org>
66041
66042         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66043
66044 2007-06-09  Bruno Haible  <bruno@clisp.org>
66045
66046         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66047         * modules/malloca: Renamed from modules/allocsa, updated.
66048         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66049         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66050         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66051         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66052         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66053         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66054         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66055         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66056         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66057         * modules/c-strcasestr (Depends-on): Update.
66058         * lib/c-strcasestr.c: Update.
66059         * modules/c-strstr (Depends-on): Update.
66060         * lib/c-strstr.c: Update.
66061         * modules/canonicalize-lgpl (Depends-on): Update.
66062         * lib/canonicalize-lgpl.c: Update.
66063         * modules/clean-temp (Depends-on): Update.
66064         * lib/clean-temp.c: Update.
66065         * modules/csharpcomp (Depends-on): Update.
66066         * lib/csharpcomp.c: Update.
66067         * modules/csharpexec (Depends-on): Update.
66068         * lib/csharpexec.c: Update.
66069         * modules/javacomp (Depends-on): Update.
66070         * lib/javacomp.c: Update.
66071         * modules/javaexec (Depends-on): Update.
66072         * lib/javaexec.c: Update.
66073         * modules/mbscasestr (Depends-on): Update.
66074         * lib/mbscasestr.c: Update.
66075         * modules/mbsstr (Depends-on): Update.
66076         * lib/mbsstr.c: Update.
66077         * modules/setenv (Depends-on): Update.
66078         * lib/setenv.c: Update.
66079         * modules/strcasestr (Depends-on): Update.
66080         * lib/strcasestr.c: Update.
66081         * modules/striconveha (Depends-on): Update.
66082         * lib/striconveha.c: Update.
66083         * modules/relocatable-prog-wrapper (Files): Update.
66084         * lib/relocwrapper.c: Update.
66085         * build-aux/install-reloc: Update.
66086         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66087
66088 2007-06-08  Bruno Haible  <bruno@clisp.org>
66089
66090         Port to uClibc.
66091         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66092         * lib/fpurge.c (fpurge): Likewise.
66093         * lib/freading.c (freading): Likewise.
66094         * lib/fseeko.c (rpl_fseeko): Likewise.
66095         * lib/fseterr.c (fseterr): Likewise.
66096         * lib/fwriting.c (fwriting): Likewise.
66097         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66098
66099 2007-06-08  Bruno Haible  <bruno@clisp.org>
66100
66101         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66102         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66103         * modules/gettext (Files): Add m4/intlmacosx.m4.
66104
66105 2007-06-07  Bruno Haible  <bruno@clisp.org>
66106
66107         * modules/localename-tests: New file.
66108         * tests/test-localename.c: New file.
66109
66110         New module 'localename'.
66111         * lib/localename.h: New file.
66112         * lib/localename.c: New file, from GNU gettext.
66113         * m4/localename.m4: New file.
66114         * modules/localename: New file.
66115
66116 2007-06-07  Bruno Haible  <bruno@clisp.org>
66117
66118         Work around the lack of <wchar.h> on some builds of uClibc.
66119         * doc/headers/wchar.texi: Update.
66120         * lib/wchar_.h: Include <wchar.h> only if it exists.
66121         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66122         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66123         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66124         doesn't exist.
66125         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66126         * modules/mbfile (Depends-on): Add wchar.
66127         * modules/mbiter (Depends-on): Likewise.
66128         * modules/mbuiter (Depends-on): Likewise.
66129         Reported by Simon Josefsson.
66130
66131 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         Work around problem reported by Steven M. Schweda in
66134         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66135         Tru64 5.1B with the Compaq compiler environment installed declares
66136         an 'isblank' function but does not define it in the C library.
66137         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66138         * lib/regex_internal.h (isblank): Likewise.
66139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66141
66142 2007-06-05  Bruno Haible  <bruno@clisp.org>
66143
66144         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66145         ia64.
66146         * modules/printf-safe: New file.
66147         * modules/fprintf-posix (Depends-on): Add printf-safe.
66148         * modules/printf-posix (Depends-on): Likewise.
66149         * modules/snprintf-posix (Depends-on): Likewise.
66150         * modules/sprintf-posix (Depends-on): Likewise.
66151         * modules/vasnprintf-posix (Depends-on): Likewise.
66152         * modules/vasprintf-posix (Depends-on): Likewise.
66153         * modules/vfprintf-posix (Depends-on): Likewise.
66154         * modules/vprintf-posix (Depends-on): Likewise.
66155         * modules/vsnprintf-posix (Depends-on): Likewise.
66156         * modules/vsprintf-posix (Depends-on): Likewise.
66157         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66158         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66159         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66160         "no" on i386, x86_64, ia64.
66161         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66162         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66163         on i386, x86_64, ia64.
66164         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66165         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66166         on i386, x86_64, ia64.
66167         * tests/test-vasnprintf-posix.c: Include float.h.
66168         (LDBL80_WORDS): New macro.
66169         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66170         on i386, x86_64, ia64.
66171         * tests/test-vasprintf-posix.c: Include float.h.
66172         (LDBL80_WORDS): New macro.
66173         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66174         on i386, x86_64, ia64.
66175         * tests/test-snprintf-posix.c: Include float.h.
66176         * tests/test-sprintf-posix.c: Likewise.
66177         * tests/test-vsnprintf-posix.c: Likewise.
66178         * tests/test-vsprintf-posix.c: Likewise.
66179
66180 2007-06-05  Bruno Haible  <bruno@clisp.org>
66181
66182         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66183         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66184         non-IEEE numbers on i386, x86_64, ia64.
66185         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66186         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66187         * tests/test-isnanl.h: Include float.h.
66188         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66189
66190 2007-06-05  Bruno Haible  <bruno@clisp.org>
66191
66192         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66193         also the %a / %A. Handle the %a / %A code before this extra handling.
66194
66195 2007-06-05  Bruno Haible  <bruno@clisp.org>
66196
66197         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66198         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66199
66200 2007-06-05  Bruno Haible  <bruno@clisp.org>
66201
66202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66203         typo in variable name.
66204
66205 2007-06-05  Eric Blake  <ebb9@byu.net>
66206
66207         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66208         Reported by Simon Josefsson.
66209
66210 2007-06-04  Bruno Haible  <bruno@clisp.org>
66211
66212         Avoid test failures on some PowerPC platforms.
66213         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66214         Define differently for PowerPC.
66215         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66216         Reported by Gary V. Vaughan <gary@gnu.org>.
66217
66218 2007-06-02  Bruno Haible  <bruno@clisp.org>
66219
66220         Fix test-stdint failure on FreeBSD/ia64.
66221         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66222         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66223         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66224         * doc/headers/stdint.texi: Update.
66225
66226 2007-06-01  Bruno Haible  <bruno@clisp.org>
66227
66228         * tests/test-binary-io.c (main): Pass a third argument to open().
66229         Reported by Gary V. Vaughan <gary@gnu.org>.
66230
66231 2007-06-01  Bruno Haible  <bruno@clisp.org>
66232
66233         * doc/functions/frexpl.texi: Update for mingw.
66234
66235 2007-06-01  Bruno Haible  <bruno@clisp.org>
66236
66237         * tests/test-lseek.c (main): Disable test of errno for invalid third
66238         argument.
66239         * doc/functions/lseek.texi: Update.
66240         Reported by Gary V. Vaughan <gary@gnu.org>.
66241
66242 2007-05-28  Bruno Haible  <bruno@clisp.org>
66243
66244         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66245
66246 2007-05-31  Eric Blake  <ebb9@byu.net>
66247
66248         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66249         cross compiling.
66250
66251 2007-05-30  Eric Blake  <ebb9@byu.net>
66252         and Bruno Haible  <bruno@clisp.org>
66253
66254         Work around mingw test failures exposed by m4-1.4.9b.
66255         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66256         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66257         moment.
66258
66259 2007-05-30  Bruno Haible  <bruno@clisp.org>
66260
66261         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66262         assuming that they are closed. Needed on HP-UX 11.
66263
66264 2007-05-29  Bruno Haible  <bruno@clisp.org>
66265
66266         Fix a problem with #include_next.
66267         * lib/dirent_.h: Split the double-inclusion guard.
66268         * lib/fcntl_.h: Likewise.
66269         * lib/float_.h: Likewise.
66270         * lib/iconv_.h: Likewise.
66271         * lib/inttypes_.h: Likewise.
66272         * lib/locale_.h: Likewise.
66273         * lib/math_.h: Likewise.
66274         * lib/netinet_in_.h: Likewise.
66275         * lib/search_.h: Likewise.
66276         * lib/signal_.h: Likewise.
66277         * lib/stdint_.h: Likewise.
66278         * lib/stdio_.h: Likewise.
66279         * lib/stdlib_.h: Likewise.
66280         * lib/string_.h: Likewise.
66281         * lib/sys_select_.h: Likewise.
66282         * lib/sys_socket_.h: Likewise.
66283         * lib/sys_stat_.h: Likewise.
66284         * lib/sys_time_.h: Likewise.
66285         * lib/sysexits_.h: Likewise.
66286         * lib/time_.h: Likewise.
66287         * lib/unistd_.h: Likewise.
66288         * lib/wchar_.h: Likewise.
66289         * lib/wctype_.h: Likewise.
66290
66291 2007-05-29  Bruno Haible  <bruno@clisp.org>
66292
66293         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66294         for the moment.
66295
66296 2007-05-29  Bruno Haible  <bruno@clisp.org>
66297
66298         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66299         invocation.
66300         Reported by Eric Blake.
66301
66302 2007-05-29  Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66305         compiling case.
66306
66307 2007-05-29  Eric Blake  <ebb9@byu.net>
66308             Bruno Haible  <bruno@clisp.org>
66309
66310         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66311         cross compiles.
66312
66313 2007-05-28  Eric Blake  <ebb9@byu.net>
66314
66315         * modules/closein-tests (test_closein_LDADD): Support test on
66316         cygwin with libtool.
66317
66318 2007-05-28  Bruno Haible  <bruno@clisp.org>
66319
66320         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66321         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66322         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66323         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66324         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66325         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66326         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66327         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66328         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66329
66330 2007-05-28  Eric Blake  <ebb9@byu.net>
66331
66332         Unconditionally include <config.h> in unit tests.
66333         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66334         * tests/test-allocsa.c, tests/test-arcfour.c,
66335         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66336         tests/test-array_list.c, tests/test-array_oset.c,
66337         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66338         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66339         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66340         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66341         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66342         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66343         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66344         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66345         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66346         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66347         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66348         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66349         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66350         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66351         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66352         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66353         test-md5.c, test-memmem.c, test-printf-posix.c,
66354         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66355         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66356         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66357         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66358         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66359         test-vasnprintf-posix2.c, test-vasnprintf.c,
66360         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66361         test-vfprintf-posix.c, test-vprintf-posix.c,
66362         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66363         test-xvasprintf.c: Likewise.
66364
66365 2007-05-28  Bruno Haible  <bruno@clisp.org>
66366
66367         * gnulib-tool (func_import): Remember the --with-tests command-line
66368         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66369         Reported by Eric Blake.
66370
66371 2007-05-28  Bruno Haible  <bruno@clisp.org>
66372
66373         * modules/ftell-tests: New file.
66374         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66375         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66376
66377         * lib/ftell.c: New file.
66378         * modules/ftell: New file.
66379         * m4/ftell.m4: New file.
66380         * doc/functions/ftell.texi: Update.
66381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66382         REPLACE_FTELL.
66383         * lib/stdio_.h (rpl_ftell): New declaration.
66384         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66385         REPLACE_FTELL.
66386
66387 2007-05-28  Eric Blake  <ebb9@byu.net>
66388
66389         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66390
66391 2007-05-28  Bruno Haible  <bruno@clisp.org>
66392
66393         * modules/fseek-tests: New file.
66394         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66395         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66396
66397         * lib/fseek.c: New file.
66398         * modules/fseek: New file.
66399         * m4/fseek.m4: New file.
66400         * doc/functions/fseek.texi: Update.
66401         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66402         REPLACE_FSEEK.
66403         * lib/stdio_.h (rpl_fseek): New declaration.
66404         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66405         REPLACE_FSEEK.
66406
66407 2007-05-28  Bruno Haible  <bruno@clisp.org>
66408
66409         * lib/stdio_.h (fflush): More comments.
66410
66411 2007-05-28  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66414         runtime test.
66415
66416 2007-05-28  Eric Blake  <ebb9@byu.net>
66417
66418         Improve lseek module.
66419         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66420         * lib/unistd_.h (lseek): Scale back link warning message.
66421         * tests/test-lseek.c: Beef up test.
66422         * tests/test-lseek.sh: Exercise more facets of lseek.
66423         Reported by Bruno Haible.
66424
66425 2007-05-28  Bruno Haible  <bruno@clisp.org>
66426
66427         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66428         to define.
66429
66430 2007-05-27  Bruno Haible  <bruno@clisp.org>
66431
66432         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66433
66434 2007-05-27  Bruno Haible  <bruno@clisp.org>
66435
66436         * modules/openmp: New file.
66437         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66438         Noah Misch.
66439
66440 2007-05-26  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/chdir-long (Depends-on): Add fchdir.
66443         * modules/chdir-safer (Depends-on): Likewise.
66444         * modules/fts (Depends-on): Likewise.
66445         * modules/fts-lgpl (Depends-on): Likewise.
66446         * modules/openat (Depends-on): Likewise.
66447         * modules/savewd (Depends-on): Likewise.
66448
66449 2007-05-24  Eric Blake  <ebb9@byu.net>
66450
66451         Fix lseek on mingw.
66452         * modules/lseek: New module.
66453         * m4/lseek.m4: New file.
66454         * lib/lseek.c: New file.
66455         * modules/lseek-tests: New file.
66456         * tests/test-lseek.c: New file.
66457         * tests/test-lseek.sh: New file.
66458         * MODULES.html.sh: Document lseek module.
66459         * modules/fflush (Depends-on): Add lseek, fseeko.
66460         * modules/fseeko (Depends-on): Likewise.
66461         * modules/ftello (Depends-on): Likewise.
66462         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66463         broken.
66464         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66465         broken.
66466         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66467         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66468         * lib/ftello.c (rpl_ftello): Likewise.
66469         * tests/test-fseeko.c (main): Test this.
66470         * tests/test-fseeko.sh: Likewise.
66471         * tests/test-ftello.c (main): Likewise.
66472         * tests/test-ftello.sh: Likewise.
66473         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66474         implies replacing fseek.
66475         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66476         HAVE_FTELLO.
66477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66478         * modules/unistd (Makefile.am): Likewise.
66479         * lib/unistd_.h (lseek): Declare a replacement.
66480         * doc/functions/lseek.texi (lseek): Document this fix.
66481         * doc/functions/fseek.texi (fseek): Likewise.
66482         * doc/functions/ftell.texi (ftell): Likewise.
66483
66484 2007-05-24  Bruno Haible  <bruno@clisp.org>
66485
66486         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66487         in the printed representation of a NaN.
66488         * tests/test-vasprintf-posix.c (test_function): Likewise.
66489         * tests/test-snprintf-posix.h (test_function): Likewise.
66490         * tests/test-sprintf-posix.h (test_function): Likewise.
66491         Reported by Eric Blake.
66492
66493 2007-05-23  Eric Blake  <ebb9@byu.net>
66494
66495         Fix fseeko/ftello on cygwin 1.5.24.
66496         * doc/functions/fseeko.texi (fseeko): Document the fix.
66497         * doc/functions/ftello.texi (ftello): Document the fix.
66498         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66499         * doc/functions/stdout.text (stdout): New file.
66500         * doc/functions/stderr.text (stderr): New file.
66501         * doc/gnulib.texi (Function Substitutes): Use new files.
66502         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66503         prior to 1.7.0.
66504         * tests/test-ftello.c (main): Likewise for ftello.
66505         * tests/test-fseeko.sh: New file.
66506         * tests/test-ftello.sh: New file.
66507         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66508         with seekable stdin.
66509         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66511         (gl_REPLACE_FSEEKO): New macro.
66512         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66513         * modules/fseeko (Files): Distribute fseeko.c.
66514         * modules/ftello (Files): Distribute ftello.c.
66515         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66516         mode.
66517         * lib/ftello.c (rpl_ftello): New file.
66518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66519         fseeko, ftello.
66520         (gl_STDIN_LARGE_OFFSET): New macro.
66521         * modules/stdio (Makefile.am): Perform the replacement.
66522         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66523
66524 2007-05-23  Bruno Haible  <bruno@clisp.org>
66525
66526         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66527         GNULIB_POSIXCHECK is defined.
66528
66529 2007-05-21  Bruno Haible  <bruno@clisp.org>
66530
66531         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66532         Check also the output for NaN arguments. When cross-compiling, guess
66533         no on IRIX.
66534         * lib/vasnprintf.c: Update comments.
66535         * tests/test-vasnprintf-posix.c (strisnan): New function.
66536         (test_function): Use it.
66537         * tests/test-vasprintf-posix.c (strisnan): New function.
66538         (test_function): Use it.
66539         * tests/test-snprintf-posix.h (strisnan): New function.
66540         (test_function): Use it.
66541         * tests/test-sprintf-posix.h (strisnan): New function.
66542         (test_function): Use it.
66543         Reported by Eric Blake.
66544
66545 2007-05-20  Bruno Haible  <bruno@clisp.org>
66546
66547         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66548         numbers that fails on BeOS.
66549         * doc/functions/frexpl.texi: Update.
66550
66551 2007-05-20  Jim Meyering  <jim@meyering.net>
66552
66553         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66554         forced upon us by glibc-2.6.
66555
66556 2007-05-20  Bruno Haible  <bruno@clisp.org>
66557
66558         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66559         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66560         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66561         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66562         NEED_PRINTF_INFINITE.
66563         (is_infinitel): New function.
66564         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66566         gl_PREREQ_VASNPRINTF_INFINITE.
66567         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66569         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66570         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66571         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66572         gl_PREREQ_VASNPRINTF_INFINITE.
66573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66580         * doc/functions/fprintf.texi: Update.
66581         * doc/functions/printf.texi: Update.
66582         * doc/functions/snprintf.texi: Update.
66583         * doc/functions/sprintf.texi: Update.
66584         * doc/functions/vfprintf.texi: Update.
66585         * doc/functions/vprintf.texi: Update.
66586         * doc/functions/vsnprintf.texi: Update.
66587         * doc/functions/vsprintf.texi: Update.
66588
66589 2007-05-20  Bruno Haible  <bruno@clisp.org>
66590
66591         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66592         was not found in libc.
66593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66594
66595 2007-05-20  Bruno Haible  <bruno@clisp.org>
66596
66597         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66598         printed as "-nan" instead of "nan".
66599         * tests/test-vasprintf-posix.c (test_function): Likewise.
66600         * tests/test-snprintf-posix.h (test_function): Likewise.
66601         * tests/test-sprintf-posix.h (test_function): Likewise.
66602         Needed for HP-UX 11.
66603
66604 2007-05-20  Jim Meyering  <jim@meyering.net>
66605
66606         Fix buggy test for the fchownat-deref bug.
66607         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66608         symlink required for the run-test.  Without it, this test would
66609         always declare that fchownat doesn't work, and client code would
66610         unnecessarily use the replacement function with fixed libc.
66611         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66612         Reported by Greg Schafer.
66613
66614 2007-05-19  Bruno Haible  <bruno@clisp.org>
66615
66616         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66617         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66618         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66619         Needed for IRIX 6.5 and Solaris 2.5.1.
66620
66621 2007-05-19  Bruno Haible  <bruno@clisp.org>
66622
66623         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66624         (test_function): Skip tests involving -0.0 on platforms where
66625         -0.0 = 0.0.
66626         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66627         (test_function): Skip tests involving -0.0 on platforms where
66628         -0.0 = 0.0.
66629         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66630         (test_function): Skip tests involving -0.0 on platforms where
66631         -0.0 = 0.0.
66632         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66633         (test_function): Skip tests involving -0.0 on platforms where
66634         -0.0 = 0.0.
66635         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66636         tests.
66637         * tests/test-printf-posix.h (test_function): Likewise.
66638         * tests/test-printf-posix.output: Remove all -0.0 related results.
66639         Needed for IRIX 6.5.
66640
66641 2007-05-19  Bruno Haible  <bruno@clisp.org>
66642
66643         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66644         printed as "nan0x7fffffff" instead of "nan".
66645         * tests/test-vasprintf-posix.c (test_function): Likewise.
66646         * tests/test-snprintf-posix.h (test_function): Likewise.
66647         * tests/test-sprintf-posix.h (test_function): Likewise.
66648         * tests/test-fprintf-posix.h (NaN): Remove macro.
66649         (test_function): Remove all NaN related tests.
66650         * tests/test-printf-posix.h (NaN): Remove macro.
66651         (test_function): Remove all NaN related tests.
66652         * tests/test-printf-posix.output: Remove all NaN related results.
66653         Needed for IRIX 6.5.
66654
66655 2007-05-19  Bruno Haible  <bruno@clisp.org>
66656
66657         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66658         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66659
66660 2007-05-19  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/float_.h: New file.
66663         * m4/float_h.m4: New file.
66664         * modules/float: New file.
66665         * modules/isnanl (Dependencies): Add float.
66666         * modules/isnanl-nolibm (Dependencies): Likewise.
66667         * modules/mathl (Dependencies): Likewise.
66668         * modules/printf-frexpl (Dependencies): Likewise.
66669         * modules/signbit (Dependencies): Likewise.
66670         * modules/vasnprintf (Dependencies): Likewise.
66671         * doc/headers/float.texi: Update.
66672
66673 2007-05-19  Jim Meyering  <jim@meyering.net>
66674
66675         * lib/utimens.c (gl_futimens): Rename from futimens,
66676         now that glibc-2.6 declares futimens.
66677         * lib/utimens.h: Likewise.
66678
66679 2007-05-19  Bruno Haible  <bruno@clisp.org>
66680
66681         Avoid test failures on mingw.
66682         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66683         * tests/test-printf-posix.sh: Likewise.
66684         * tests/test-vfprintf-posix.sh: Likewise.
66685         * tests/test-vprintf-posix.sh: Likewise.
66686
66687 2007-05-19  Bruno Haible  <bruno@clisp.org>
66688
66689         Fix *printf result for NaN, Inf, -0.0 on mingw.
66690         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66691         * lib/vasnprintf.c: Include math.h and isnan.h.
66692         (is_infinite_or_zero): New function.
66693         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66694         values in the %f, %F, %e, %E, %g, %G directives.
66695         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66697         gl_PRINTF_INFINITE and test its result. Invoke
66698         gl_PREREQ_VASNPRINTF_INFINITE.
66699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66706         * doc/functions/fprintf.texi: Update.
66707         * doc/functions/printf.texi: Update.
66708         * doc/functions/snprintf.texi: Update.
66709         * doc/functions/sprintf.texi: Update.
66710         * doc/functions/vfprintf.texi: Update.
66711         * doc/functions/vprintf.texi: Update.
66712         * doc/functions/vsnprintf.texi: Update.
66713         * doc/functions/vsprintf.texi: Update.
66714
66715 2007-05-19  Bruno Haible  <bruno@clisp.org>
66716
66717         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66718         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66719         Instead of multiplying with 10^k, set extra_zeroes to k.
66720         (scale10_round_long_double): Remove function.
66721
66722 2007-05-18  Bruno Haible  <bruno@clisp.org>
66723
66724         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66725         introduced on 2007-05-06.
66726
66727 2007-05-18  Bruno Haible  <bruno@clisp.org>
66728
66729         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66730         %g directives.
66731         * tests/test-vasprintf-posix.c (test_function): Likewise.
66732         * tests/test-snprintf-posix.h (test_function): Likewise.
66733         * tests/test-sprintf-posix.h (test_function): Likewise.
66734
66735 2007-05-18  Bruno Haible  <bruno@clisp.org>
66736
66737         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66738         (strmatch): New function.
66739         (test_function): Test the %f directive on numbers of various exponents.
66740         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66741         (strmatch): New function.
66742         (test_function): Test the %f directive on numbers of various exponents.
66743         * tests/test-snprintf-posix.h (strmatch): New function.
66744         (test_function): Test the %f directive on numbers of various exponents.
66745         * tests/test-sprintf-posix.h (strmatch): New function.
66746         (test_function): Test the %f directive on numbers of various exponents.
66747         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66748         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66749         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66750         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66751
66752 2007-05-18  Bruno Haible  <bruno@clisp.org>
66753
66754         Add support for 'long double' number output.
66755         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66756         * lib/vasnprintf.c: Include math.h and float+.h.
66757         (mp_limb_t): New type.
66758         (GMP_LIMB_BITS): New macro.
66759         (mp_twolimb_t): New type.
66760         (GMP_TWOLIMB_BITS): New macro.
66761         (mpn_t): New type.
66762         (multiply, divide, convert_to_decimal, decode_long_double,
66763         scale10_round_long_double, scale10_round_decimal_long_double,
66764         floorlog10l): New functions.
66765         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66766         for the %f, %F, %e, %E, %g, %G directives.
66767         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66768         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66769         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66770         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66771         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66772         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66773         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66774         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66775         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66777         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66778         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66779         * modules/snprintf-posix (Depends-on): Likewise.
66780         * modules/sprintf-posix (Depends-on): Likewise.
66781         * modules/vasnprintf-posix (Depends-on): Likewise.
66782         * modules/vasprintf-posix (Depends-on): Likewise.
66783         * modules/vfprintf-posix (Depends-on): Likewise.
66784         * modules/vsnprintf-posix (Depends-on): Likewise.
66785         * modules/vsprintf-posix (Depends-on): Likewise.
66786         * modules/vasnprintf (Files): Add lib/float+.h.
66787         * doc/functions/fprintf.texi: Update.
66788         * doc/functions/printf.texi: Update.
66789         * doc/functions/snprintf.texi: Update.
66790         * doc/functions/sprintf.texi: Update.
66791         * doc/functions/vfprintf.texi: Update.
66792         * doc/functions/vprintf.texi: Update.
66793         * doc/functions/vsnprintf.texi: Update.
66794         * doc/functions/vsprintf.texi: Update.
66795
66796 2007-05-18  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66799
66800 2007-05-18  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66803         for printing 64-bit integers. Needed for mingw.
66804
66805 2007-05-18  Bruno Haible  <bruno@clisp.org>
66806
66807         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66808         gl_FUNC_FREXPL_WORKS.
66809         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66810
66811 2007-05-18  Bruno Haible  <bruno@clisp.org>
66812
66813         * modules/frexpl-nolibm-tests: New file.
66814
66815         * modules/frexpl-nolibm: New file.
66816         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66817
66818 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66819
66820         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66821         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66822         GCC 4.2, which otherwise issues a lot of warnings.
66823         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66824         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66825         Likewise.
66826         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66827         * modules/iconv_open (iconv.h): Likewise.
66828         * modules/locale (locale.h): Likewise.
66829         * modules/netinet_in (netinet/in.h): Likewise.
66830         * modules/sys_select (sys_select.h): Likewise.
66831         * modules/sys_socket (sys/socket.h): Likewise.
66832         * modules/sys_stat (sys/stat.h): Likewise.
66833         * modules/sysexits (sysexits.h): Likewise.
66834         * modules/unistd (unistd.h): Likewise.
66835
66836 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66837
66838         * modules/closein-tests (Makefile.am): Distribute
66839         `test-closein.sh'.
66840
66841 2007-05-17  Bruno Haible  <bruno@clisp.org>
66842
66843         * tests/test-printf-posix.output: Renamed from
66844         tests/test-fprintf-posix.out.
66845         * modules/fprintf-posix-tests: Update.
66846         * modules/printf-posix-tests: Update.
66847         * modules/vfprintf-posix-tests: Update.
66848         * modules/vprintf-posix-tests: Update.
66849         * tests/test-fprintf-posix.sh: Update.
66850         * tests/test-printf-posix.sh: Update.
66851         * tests/test-vfprintf-posix.sh: Update.
66852         * tests/test-vprintf-posix.sh: Update.
66853         Reported by Ralf Wildenhues.
66854
66855 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66858         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66859         GCC 4.2, which otherwise issues a lot of warnings.
66860         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66861         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66862         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66863         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66864         it should no longer be needed.
66865         * lib/string_.h: Likewise.
66866         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66867         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66868         * modules/inttypes (inttypes.h): Likewise.
66869         * modules/math (math.h): Likewise.
66870         * modules/search (search.h): Likewise.
66871         * modules/signal (signal.h): Likewise.
66872         * modules/stdint (stdint.h): Likewise.
66873         * modules/stdio (stdio.h): Likewise.
66874         * modules/stdlib (stdlib.h): Likewise.
66875         * modules/string (string.h): Likewise.
66876         * modules/sys_time (sys/time.h): Likewise.
66877         * modules/time (time.h): Likewise.
66878         * modules/wchar (wchar.h): Likewise.
66879         * modules/wctype (wtype.h): Likewise.
66880
66881 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66882
66883         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66884
66885 2007-05-13  Bruno Haible  <bruno@clisp.org>
66886
66887         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66888         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66889         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66890         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66891         (gl_PREREQ_STRTOK_R): Don't require it here.
66892
66893 2007-05-13  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66896         when used in C++ mode.
66897
66898 2007-05-12  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/linebuffer.h: Tweak doc.
66901         * lib/linebuffer.c: Likewise.
66902
66903 2007-05-12  James Youngman  <jay@gnu.org>
66904
66905         * lib/linebuffer.c (readlinebuffer_delim): New function,
66906         like readlinebuffer, but use a caller-specified delimiter.
66907         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66908         as the delimiter.
66909         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66910
66911 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66912
66913         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66914         * modules/openat (Files): Remove openat-die.c.
66915         (Depends-on): Add openat-die.
66916         * modules/openat-die: New module.
66917
66918 2007-05-06  Bruno Haible  <bruno@clisp.org>
66919
66920         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66921         Update with info about Cygwin.
66922         * doc/functions/fprintf.texi: Update.
66923         * doc/functions/printf.texi: Update.
66924         * doc/functions/snprintf.texi: Update.
66925         * doc/functions/sprintf.texi: Update.
66926         * doc/functions/vfprintf.texi: Update.
66927         * doc/functions/vprintf.texi: Update.
66928         * doc/functions/vsnprintf.texi: Update.
66929         * doc/functions/vsprintf.texi: Update.
66930         Reported by Eric Blake.
66931
66932 2007-05-06  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66935         padding ourselves for the floating-point directives.
66936         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66939         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66940         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66941         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66945         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66946         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66948         * tests/test-snprintf-posix.h (test_function): Also check the width
66949         and some flags in the %f directive.
66950         * tests/test-sprintf-posix.h (test_function): Likewise.
66951         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66952         * tests/test-vasprintf-posix.c (test_function): Likewise.
66953         * doc/functions/fprintf.texi: Update.
66954         * doc/functions/printf.texi: Update.
66955         * doc/functions/snprintf.texi: Update.
66956         * doc/functions/sprintf.texi: Update.
66957         * doc/functions/vfprintf.texi: Update.
66958         * doc/functions/vprintf.texi: Update.
66959         * doc/functions/vsnprintf.texi: Update.
66960         * doc/functions/vsprintf.texi: Update.
66961
66962 2007-05-06  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66965         pass the ' flag character to sprintf or snprintf.
66966         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66968         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66969         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66970         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66971         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66972         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66973         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66975         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66978         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66979         flag.
66980         * tests/test-sprintf-posix.h (test_function): Likewise.
66981         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66982         * tests/test-vasprintf-posix.c (test_function): Likewise.
66983         * doc/functions/fprintf.texi: Update.
66984         * doc/functions/printf.texi: Update.
66985         * doc/functions/snprintf.texi: Update.
66986         * doc/functions/sprintf.texi: Update.
66987         * doc/functions/vfprintf.texi: Update.
66988         * doc/functions/vprintf.texi: Update.
66989         * doc/functions/vsnprintf.texi: Update.
66990         * doc/functions/vsprintf.texi: Update.
66991
66992 2007-05-01  Bruno Haible  <bruno@clisp.org>
66993
66994         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66995
66996 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66997
66998         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66999         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67000
67001 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67002
67003         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67004         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67005         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67006
67007 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67008
67009         * lib/argp-help.c (struct hol_entry): New member `ord'.
67010         (HOL_ENTRY_PTRCMP): Use ord for comparison
67011         (hol_sort): Initialize ord.
67012
67013 2007-05-01  Bruno Haible  <bruno@clisp.org>
67014
67015         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67016         Reported by Eric Blake.
67017         * doc/gnulib.texi (Function Substitutes): Update.
67018
67019 2007-05-01  Bruno Haible  <bruno@clisp.org>
67020
67021         * doc/functions.texi: Remove file, now redundant through
67022         doc/functions/*.texi.
67023
67024 2007-05-01  Bruno Haible  <bruno@clisp.org>
67025
67026         * modules/argp (Depends-on): Add sleep.
67027
67028 2007-05-01  Bruno Haible  <bruno@clisp.org>
67029
67030         * modules/sleep-tests: New file.
67031         * tests/test-sleep.c: New file.
67032
67033         * modules/sleep: New file.
67034         * lib/sleep.c: New file.
67035         * m4/sleep.m4: New file.
67036         * lib/unistd_.h (sleep): New declaration.
67037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67038         HAVE_SLEEP.
67039         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67040         * doc/functions/sleep.texi: Document the sleep module.
67041
67042 2007-05-01  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/sigprocmask.h: Remove file.
67045         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67046         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67047         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67048         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67049         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67050         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67051         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67052         HAVE_SIGSET_T as a shell variable.
67053         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67054         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67055         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67056         (Depends-on): Add signal. Remove verify.
67057         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67058         (Include): Mention <signal.h> instead of sigprocmask.h.
67059         * NEWS: Mention the change.
67060         * lib/fatal-signal.c: Don't include sigprocmask.h.
67061
67062 2007-05-01  Bruno Haible  <bruno@clisp.org>
67063
67064         * modules/signal: New file.
67065         * lib/signal_.h: New file.
67066         * m4/signal_h.m4: New file.
67067
67068 2007-05-01  Bruno Haible  <bruno@clisp.org>
67069
67070         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67071         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67072         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67073         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67074
67075 2007-05-01  Bruno Haible  <bruno@clisp.org>
67076
67077         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67078         configure time.
67079         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67080         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67081         * modules/sys_stat (Makefile.am): Substitute their values into
67082         sys/stat.h.
67083
67084 2007-05-01  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67087         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67088         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67089
67090 2007-05-01  Bruno Haible  <bruno@clisp.org>
67091
67092         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67093         'assert' module here.
67094
67095 2007-05-01  Bruno Haible  <bruno@clisp.org>
67096
67097         * doc/functions/*.texi: New files.
67098         * doc/functions/google-ranking.txt: New file.
67099         * doc/gnulib.texi (Function Substitutes): New chapter.
67100         (ctime, inet_ntoa): Remove sections.
67101         * doc/ctime.texi: Remove file.
67102         * doc/inet_ntoa.texi: Remove file.
67103         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67104         dependencies.
67105         (%.info): New rule, specifying a --reference-limit.
67106
67107 2007-05-01  Bruno Haible  <bruno@clisp.org>
67108
67109         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67110
67111 2007-05-01  Bruno Haible  <bruno@clisp.org>
67112
67113         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67114         the portability of 'mkdir' to mingw systems.
67115
67116 2007-05-01  Bruno Haible  <bruno@clisp.org>
67117
67118         * doc/headers/google-ranking.txt: New file.
67119
67120 2007-04-30  Eric Blake  <ebb9@byu.net>
67121
67122         Prefer fseeko to fseek.
67123         * modules/getpass (Depends-on): Add fseeko.
67124         * lib/getpass.c (getpass): Use fseeko, not fseek.
67125
67126 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67127
67128         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67129         assumes the sorting is stable, while most qsort implementations
67130         are not.  Use argument addresses to ensure they never compare as
67131         equal.
67132
67133         * tests/test-argp-2.sh (usage-indent test): Fix output
67134         (func_compare): Restore diff options
67135         * tests/test-argp.c: Restore #include "progname.h"
67136
67137 2007-04-29  Bruno Haible  <bruno@clisp.org>
67138
67139         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67141         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67143         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67144         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67145         (TESTS, check_PROGRAMS): Add test-snprintf.
67146         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67147         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67148         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67149         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67150         assertions that fail on HP-UX, OSF/1, or IRIX.
67151         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67152
67153 2007-04-29  Bruno Haible  <bruno@clisp.org>
67154
67155         * MODULES.html.sh (posix_functions): Remove 'contents'.
67156
67157 2007-04-29  Karl Berry  <karl@gnu.org>
67158
67159         * config/srclist.txt (gendocs_template_min): new entry.
67160
67161 2007-04-29  Bruno Haible  <bruno@clisp.org>
67162
67163         Work around fpurge bug on BSD systems.
67164         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67165         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67166         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67167         fpurge to rpl_fpurge if the system already has this function.
67168         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67169         the case where the system already has this function. Correct invariants
67170         on BSD systems.
67171         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67172         BSD systems.
67173
67174 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67175
67176         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67177         proposed by Sven Verdoolaege.
67178
67179         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67180         options.
67181         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67182         (usage and help tests): Update
67183
67184 2007-04-29  Bruno Haible  <bruno@clisp.org>
67185
67186         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67187         Print more information in case of failure. Disable a test on BeOS.
67188
67189 2007-04-29  Bruno Haible  <bruno@clisp.org>
67190
67191         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67192         This helps debugging on systems on which no gdb is available.
67193
67194 2007-04-29  Bruno Haible  <bruno@clisp.org>
67195
67196         * lib/freading.h: Improve comments.
67197         * lib/fwriting.h: Likewise.
67198         * tests/test-freading.c (main): Don't check freading immediately after
67199         repositioning. Needed for glibc.
67200
67201 2007-04-29  Bruno Haible  <bruno@clisp.org>
67202
67203         * lib/freading.c (freading): Trivial simplification.
67204
67205 2007-04-28  Bruno Haible  <bruno@clisp.org>
67206
67207         * tests/test-fwriting.c (main): Also test the interaction between
67208         fflush and fwriting.
67209         * modules/fwriting-tests (Depends-on): Add fflush.
67210
67211         * tests/test-freading.c (main): Also test the interaction between
67212         fflush and freading.
67213         * modules/freading-tests (Depends-on): Add fflush.
67214
67215 2007-04-28  Bruno Haible  <bruno@clisp.org>
67216
67217         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67218         fseeko and ftello.
67219         Suggested by Eric Blake.
67220
67221 2007-04-28  Jim Meyering  <jim@meyering.net>
67222
67223         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67224         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67225         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67226
67227 2007-04-27  Eric Blake  <ebb9@byu.net>
67228
67229         * doc/headers/assert.texi (assert.h): Document assert module use.
67230
67231 2007-04-27  Bruno Haible  <bruno@clisp.org>
67232
67233         * doc/headers/*.texi: New files.
67234         * doc/gnulib.texi (Header File Substitutes): New chapter.
67235         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67236         dependencies.
67237         (standards.info ,standards.html, standards.dvi): Update dependencies.
67238         (mostlyclean, clean): New targets.
67239
67240 2007-04-27  Bruno Haible  <bruno@clisp.org>
67241
67242         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67243         * modules/sysexits (Files, Makefile.am): Update.
67244
67245         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67246         * modules/sys_socket (Files, Makefile.am): Update.
67247
67248         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67249         * modules/sys_stat (Files, Makefile.am): Update.
67250
67251 2007-04-27  Eric Blake  <ebb9@byu.net>
67252
67253         * lib/freading.h: Improve comments.
67254         * lib/fwriting.h: Likewise.
67255         * lib/fflush.c: Likewise.
67256
67257         Fix closein for mingw.
67258         * modules/closein-tests: Add tests for closein.
67259         * tests/test-closein.c: New file.
67260         * tests/test-closein.sh: Likewise.
67261         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67262         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67263
67264 2007-04-27  Bruno Haible  <bruno@clisp.org>
67265
67266         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67267         version is < 6.
67268         * lib/math_.h [__DECC]: Likewise.
67269         * lib/stdio_.h [__DECC]: Likewise.
67270         * lib/stdlib_.h [__DECC]: Likewise.
67271         * lib/string_.h [__DECC]: Likewise.
67272         * lib/time_.h [__DECC]: Likewise.
67273         * lib/wchar_.h [__DECC]: Likewise.
67274         * lib/wctype_.h [__DECC]: Likewise.
67275
67276 2007-04-27  Bruno Haible  <bruno@clisp.org>
67277
67278         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67279
67280 2007-04-27  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/fflush.c: Add comments.
67283         * modules/fpurge-tests (Depends-on): Add fflush.
67284         * modules/freadable-tests (Depends-on): Likewise.
67285         * modules/fwritable-tests (Depends-on): Likewise.
67286
67287 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67288
67289         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67290         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67291         Report by Bruno Haible <bruno@clisp.org>.
67292
67293 2007-04-26  Eric Blake  <ebb9@byu.net>
67294
67295         Fix fflush on mingw.
67296         * modules/fflush (Depends-on): Add freading.
67297         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67298         but unread data.
67299
67300 2007-04-26  Eric Blake  <ebb9@byu.net>
67301         and Bruno Haible  <bruno@clisp.org>
67302
67303         Implement freading and fwriting.
67304         * lib/freading.c: New file.
67305         * lib/freading.h: Likewise.
67306         * m4/freading.m4: Likewise.
67307         * modules/freading: Likewise.
67308         * modules/freading-tests: Likewise.
67309         * tests/test-freading.c: Likewise.
67310         * lib/fwriting.c: New file.
67311         * lib/fwriting.h: Likewise.
67312         * m4/fwriting.m4: Likewise.
67313         * modules/fwriting: Likewise.
67314         * modules/fwriting-tests: Likewise.
67315         * tests/test-fwriting.c: Likewise.
67316         * MODULES.html.sh (File stream based Input/Output): Mention them.
67317
67318 2007-04-26  Bruno Haible  <bruno@clisp.org>
67319
67320         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67321         'long' when we assume it.
67322         Suggested by Eric Blake.
67323
67324 2007-04-26  Bruno Haible  <bruno@clisp.org>
67325
67326         Ensure fseeko, ftello are declared on glibc systems.
67327         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67328         * modules/fseeko (configure.ac-early): Likewise.
67329         * modules/ftello (configure.ac-early): Likewise.
67330         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67331         AC_FUNC_FSEEKO for this.
67332         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67333         (gl_CHECK_FSEEKO): Remove macro.
67334
67335 2007-04-26  Bruno Haible  <bruno@clisp.org>
67336
67337         * tests/test-fflush.c (main): Also check the ftell result after
67338         fflush and fseek/fseeko.
67339         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67340         file descriptor position cache in the stream.
67341         * lib/fseeko.c (rpl_fseeko): Likewise.
67342
67343 2007-04-26  Bruno Haible  <bruno@clisp.org>
67344
67345         * modules/fflush-tests (Depends-on): Add fseeko.
67346
67347 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67348             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67349
67350         * lib/argz_.h: ensure error_t definition is obtained in same
67351         mechanism system argz.h would have.
67352         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67353         argz facilities are known bad.  Err on the side of caution if
67354         cross-compiling.
67355
67356 2007-04-25  Eric Blake  <ebb9@byu.net>
67357
67358         * lib/fpurge.c (includes): Use stdlib.h for free.
67359         * tests/test-fflush.c (main): Also test fflush-fseeko.
67360
67361 2007-04-25  Bruno Haible  <bruno@clisp.org>
67362
67363         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67364         * lib/fseeko.c: New file.
67365         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67366         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67367         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67368         gl_FUNC_FSEEKO.
67369         (gl_FUNC_FSEEKO): Invoke it.
67370         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67371         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67372         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67373
67374 2007-04-25  Bruno Haible  <bruno@clisp.org>
67375
67376         * modules/fflush (Depends-on): Add ftello.
67377
67378 2007-04-25  Bruno Haible  <bruno@clisp.org>
67379
67380         * modules/ftello-tests: New file.
67381         * tests/test-ftello.c: New file.
67382
67383         * modules/ftello: New file.
67384         * m4/ftello.m4: New file.
67385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67386         HAVE_FTELLO.
67387         * lib/stdio_.h (ftello): New declaration.
67388         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67389         HAVE_FTELLO.
67390
67391 2007-04-25  Bruno Haible  <bruno@clisp.org>
67392
67393         * modules/fseeko-tests: New file.
67394         * tests/test-fseeko.c: New file.
67395
67396         * modules/fseeko: New file.
67397         * m4/fseeko.m4: New file.
67398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67399         HAVE_FSEEKO.
67400         * lib/stdio_.h (fseeko): New declaration.
67401         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67402         HAVE_FSEEKO.
67403
67404 2007-04-25  Bruno Haible  <bruno@clisp.org>
67405
67406         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67407
67408 2007-04-25  Bruno Haible  <bruno@clisp.org>
67409
67410         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67411         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67412         * tests/test-unistd.c: Likewise.
67413         * tests/test-fcntl.c: Likewise.
67414
67415 2007-04-23  Eric Blake  <ebb9@byu.net>
67416
67417         * lib/fflush.c: Fix missing include.
67418         Reported by Bruno Haible.
67419
67420 2007-04-23  Bruno Haible  <bruno@clisp.org>
67421
67422         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67423         Reported by Eric Blake.
67424
67425 2007-04-23  Bruno Haible  <bruno@clisp.org>
67426
67427         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67428
67429 2007-04-23  Bruno Haible  <bruno@clisp.org>
67430
67431         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67432
67433 2007-04-23  Bruno Haible  <bruno@clisp.org>
67434
67435         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67436         Needed on HP-UX 11.
67437
67438 2007-04-16  Eric Blake  <ebb9@byu.net>
67439
67440         Make fflush rely on fpurge.
67441         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67442         open coding all variants.
67443         * modules/fflush (Depends-on): Add fpurge and unistd.
67444         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67445         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67446
67447         Fix --with-tests compilation on cygwin.
67448         * modules/argmatch-tests (Makefile.am): List gnulib library first
67449         in LDADD.
67450         * modules/argp-tests (Makefile.am): Likewise.
67451         * modules/array-list-tests (Makefile.am): Likewise.
67452         * modules/array-oset-tests (Makefile.am): Likewise.
67453         * modules/avltree-list-tests (Makefile.am): Likewise.
67454         * modules/avltree-oset-tests (Makefile.am): Likewise.
67455         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67456         * modules/carray-list-tests (Makefile.am): Likewise.
67457         * modules/dirname-tests (Makefile.am): Likewise.
67458         * modules/frexp-tests (Makefile.am): Likewise.
67459         * modules/isnanl-tests (Makefile.am): Likewise.
67460         * modules/linked-list-tests (Makefile.am): Likewise.
67461         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67462         * modules/lock-tests (Makefile.am): Likewise.
67463         * modules/rbtree-list-tests (Makefile.am): Likewise.
67464         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67465         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67466         * modules/tls-tests (Makefile.am): Likewise.
67467         * modules/tsearch-tests (Makefile.am): Likewise.
67468         * modules/xvasprintf-tests (Makefile.am): Likewise.
67469
67470         Fix fpurge for cygwin.
67471         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67472         value.
67473         * modules/fpurge-tests (Depends-on): Clean up trash.
67474
67475 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67476
67477         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67478
67479         * m4/autobuild.m4: Re-indent.
67480
67481 2007-04-13  Bruno Haible  <bruno@clisp.org>
67482
67483         * modules/fpurge-tests: New file.
67484         * tests/test-fpurge.c: New file.
67485
67486         * modules/fpurge: New file.
67487         * lib/fpurge.h: New file.
67488         * lib/fpurge.c: New file.
67489         * m4/fpurge.m4: New file.
67490
67491 2007-04-13  Bruno Haible  <bruno@clisp.org>
67492
67493         * modules/fbufmode-tests: New file.
67494         * tests/test-fbufmode.c: New file.
67495
67496         * modules/fbufmode: New file.
67497         * lib/fbufmode.h: New file.
67498         * lib/fbufmode.c: New file.
67499         * m4/fbufmode.m4: New file.
67500
67501 2007-04-13  Bruno Haible  <bruno@clisp.org>
67502
67503         * modules/fwritable-tests: New file.
67504         * tests/test-fwritable.c: New file.
67505
67506         * modules/fwritable: New file.
67507         * lib/fwritable.h: New file.
67508         * lib/fwritable.c: New file.
67509         * m4/fwritable.m4: New file.
67510
67511 2007-04-13  Bruno Haible  <bruno@clisp.org>
67512
67513         * modules/freadable-tests: New file.
67514         * tests/test-freadable.c: New file.
67515
67516         * modules/freadable: New file.
67517         * lib/freadable.h: New file.
67518         * lib/freadable.c: New file.
67519         * m4/freadable.m4: New file.
67520
67521 2007-04-13  Bruno Haible  <bruno@clisp.org>
67522
67523         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67524         MOSTLYCLEANFILES.
67525
67526 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67529         gzip bootstrap.conf to avoid dragging in i18n machinery.
67530         (gnulib_tool_option): Use it.
67531
67532 2007-04-13  Bruno Haible  <bruno@clisp.org>
67533
67534         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67535         %F directives.
67536         * tests/test-vasprintf-posix.c (test_function): Likewise.
67537         * tests/test-snprintf-posix.h (test_function): Likewise.
67538         * tests/test-sprintf-posix.h (test_function): Likewise.
67539         * tests/test-fprintf-posix.h (test_function): Likewise.
67540         * tests/test-printf-posix.h (test_function): Likewise.
67541         * tests/test-fprintf-posix.out: Likewise.
67542
67543 2007-04-13  Bruno Haible  <bruno@clisp.org>
67544
67545         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67546         * modules/tls-tests (configure.ac): Likewise.
67547         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67548
67549 2007-04-13  Bruno Haible  <bruno@clisp.org>
67550
67551         * lib/tls.c (glthread_tls_get): Fix return type.
67552         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67553
67554 2007-04-12  Eric Blake  <ebb9@byu.net>
67555
67556         * modules/gettime (Depends-on): Remove gettime.
67557         Reported by Dmitry V. Levin.
67558
67559 2007-04-12  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/fflush (Include): Mention <stdio.h>.
67562         * modules/strtoimax (Include): Mention <inttypes.h>.
67563         * modules/strtoumax (Include): Likewise.
67564
67565 2007-04-12  Eric Blake  <ebb9@byu.net>
67566
67567         * .cvsignore: New file.
67568         * .gitignore: Likewise.
67569
67570 2007-04-12  Bruno Haible  <bruno@clisp.org>
67571
67572         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67573         not before, since $(LDADD) often contains libgnu.a.
67574         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67575         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67576         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67577         Needed on Cygwin.
67578
67579 2007-04-12  Eric Blake  <ebb9@byu.net>
67580
67581         Work around glibc's failure to flush stdin on fclose.
67582         * lib/closein.c (close_stdin): Flush stdin before closing.
67583
67584         Work around glibc's failure to reset seekable stdin on exit.
67585         * modules/closein: New module.
67586         * lib/closein.c: New file.
67587         * lib/closein.h: Likewise.
67588         * m4/closein.m4: Likewise.
67589         * MODULES.html.sh (File stream based Input/Output): Document it.
67590
67591 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67592
67593         * gnulib-tool: Rename generated 'autobuild' script to
67594         'do-autobuild' in --create-megatestdir output.
67595
67596         * doc/gnulib.texi (Build robot for gnulib): Fix.
67597
67598 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67599
67600         * modules/sysexits (Depends-on): Add absolute-header.
67601
67602 2007-04-12  Eric Blake  <ebb9@byu.net>
67603
67604         No need to preserve errno on success.
67605         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67606         Reported by Bruno Haible.
67607
67608 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67609
67610         * MODULES.html.sh (Support for maintaining and releasing
67611         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67612
67613 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67614
67615         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67616
67617 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67618
67619         * modules/autobuild: New module.
67620
67621         * m4/autobuild.m4: New file.
67622
67623 2007-04-11  Bruno Haible  <bruno@clisp.org>
67624
67625         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67626         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67630         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67631         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67633         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67634         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67636         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67637         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67639         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67640         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67642         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67643         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67645         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67646         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67647         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67648         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67649         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67651         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67652         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67653         Reported by Eric Blake.
67654
67655 2007-04-11  Bruno Haible  <bruno@clisp.org>
67656
67657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67658
67659 2007-04-10  Bruno Haible  <bruno@clisp.org>
67660
67661         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67662         for NaN and Infinity. Needed on FreeBSD 6.1.
67663         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67664         regarding results for "%010a" of Infinity and NaN.
67665         * tests/test-vasprintf-posix.c (test_function): Likewise.
67666         * tests/test-snprintf-posix.h (test_function): Likewise.
67667         * tests/test-sprintf-posix.h (test_function): Likewise.
67668         * tests/test-fprintf-posix.h (test_function): Likewise.
67669         * tests/test-printf-posix.h (test_function): Likewise.
67670         * tests/test-fprintf-posix.out: Likewise.
67671
67672 2007-04-10  Bruno Haible  <bruno@clisp.org>
67673
67674         * modules/locale-tests: New file.
67675         * tests/test-locale.c: New file.
67676
67677         * modules/locale: New file.
67678         * lib/locale_.h: New file.
67679         * m4/locale_h.m4: New file.
67680
67681 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67682             Bruno Haible  <bruno@clisp.org>
67683
67684         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67685         be determined, test for availability of the copysignf, copysign,
67686         copysignl functions.
67687         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67688         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67689         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67690
67691 2007-04-09  Eric Blake  <ebb9@byu.net>
67692
67693         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67694         * modules/stdio (Makefile.am): Support fflush.
67695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67696         * modules/fflush: New file.
67697         * lib/fflush.c: Likewise.
67698         * m4/fflush.m4: Likewise.
67699         * modules/fflush-tests: New test.
67700         * tests/test-fflush.c: Likewise.
67701         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67702
67703 2007-04-06  Bruno Haible  <bruno@clisp.org>
67704
67705         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67706         (VASNPRINTF): Use signbit for faster determination whether to print a
67707         minus sign.
67708         * modules/vasnprintf (Files): Remove lib/float+.h.
67709         * modules/fprintf-posix (Depends-on): Add signbit.
67710         * modules/snprintf-posix (Depends-on): Likewise.
67711         * modules/sprintf-posix (Depends-on): Likewise.
67712         * modules/vasnprintf-posix (Depends-on): Likewise.
67713         * modules/vasprintf-posix (Depends-on): Likewise.
67714         * modules/vfprintf-posix (Depends-on): Likewise.
67715         * modules/vsnprintf-posix (Depends-on): Likewise.
67716         * modules/vsprintf-posix (Depends-on): Likewise.
67717
67718 2007-04-06  Bruno Haible  <bruno@clisp.org>
67719
67720         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67721         * tests/test-frexpl.c (main): Likewise.
67722         * tests/test-ldexpl.c (main): Likewise.
67723         * modules/frexp-tests (Depends-on): Add signbit.
67724         * modules/frexpl-tests (Depdends-on): Likewise.
67725         * modules/ldexpl-tests (Depdends-on): Likewise.
67726
67727 2007-04-06  Bruno Haible  <bruno@clisp.org>
67728
67729         * modules/signbit-tests: New file.
67730         * tests/test-signbit.c: New file.
67731
67732         * modules/signbit: New file.
67733         * lib/signbitf.c: New file.
67734         * lib/signbitd.c: New file.
67735         * lib/signbitl.c: New file.
67736         * m4/signbit.m4: New file.
67737         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67738         (signbit): New macro.
67739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67740         REPLACE_SIGNBIT.
67741         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67742         REPLACE_FREXPL into math.h.
67743
67744 2007-04-06  Bruno Haible  <bruno@clisp.org>
67745
67746         * modules/isnanf-nolibm-tests: New file.
67747         * tests/test-isnanf.c: New file.
67748
67749         * modules/isnanf-nolibm: New file.
67750         * lib/isnanf.h: New file.
67751         * lib/isnanf.c: New file.
67752         * lib/isnan.c: Consider the USE_FLOAT macro.
67753         * m4/isnanf.m4: New file.
67754
67755 2007-04-06  Bruno Haible  <bruno@clisp.org>
67756
67757         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67758         (Link): New section.
67759
67760         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67761
67762 2007-04-06  Bruno Haible  <bruno@clisp.org>
67763
67764         Assume the 'long double' type.
67765         * m4/longdouble.m4: Remove file.
67766         * config/srclist.txt: Don't mention longdouble.m4.
67767         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67768         * lib/float+.h: Likewise.
67769         * lib/frexp.c: Likewise.
67770         * lib/printf-args.h: Likewise.
67771         * lib/printf-args.c: Likewise.
67772         * lib/printf-frexp.c: Likewise.
67773         * lib/printf-parse.c: Likewise.
67774         * lib/vasnprintf.c: Likewise.
67775         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67776         * m4/intl.m4: Likewise.
67777         * m4/isnanl.m4: Likewise.
67778         * m4/printf.m4: Likewise.
67779         * m4/printf-frexpl.m4: Likewise.
67780         * m4/vasnprintf.m4: Likewise.
67781         * modules/allocsa (Files): Remove m4/longdouble.m4.
67782         * modules/gettext (Files): Likewise.
67783         * modules/relocatable-prog-wrapper (Files): Likewise.
67784         * modules/vasnprintf (Files): Likewise.
67785         * modules/isnanl (Files): Likewise.
67786         (Include): Simplify.
67787         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67788         (Include): Simplify.
67789         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67790         (Include): Simplify.
67791         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67793         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67795         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67796         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67797         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67798         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67799         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67800         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67801         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67802         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67803         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67804         * tests/test-isnanl.c: Likewise.
67805         * tests/test-snprintf-posix.h: Likewise.
67806         * tests/test-sprintf-posix.h: Likewise.
67807         * tests/test-vasnprintf-posix.c: Likewise.
67808         * tests/test-vasnprintf-posix2.c: Likewise.
67809         * tests/test-vasprintf-posix.c: Likewise.
67810
67811 2007-04-06  Bruno Haible  <bruno@clisp.org>
67812
67813         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67814         * lib/math_.h [__DECC]: Include the overridden include file through
67815         #include_next, outside the double-inclusion guard.
67816         * lib/stdio_.h [__DECC]: Likewise.
67817         * lib/stdlib_.h [__DECC]: Likewise.
67818         * lib/string_.h [__DECC]: Likewise.
67819         * lib/time_.h [__DECC]: Likewise.
67820         * lib/wchar_.h [__DECC]: Likewise.
67821         * lib/wctype_.h [__DECC]: Likewise.
67822         * lib/inttypes_.h [__DECC]: Likewise.
67823         Reported by Albert Chin <china@thewrittenword.com> in
67824         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67825
67826 2007-04-04  Eric Blake  <ebb9@byu.net>
67827
67828         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67829         1.5.x.
67830
67831 2007-04-04  Bruno Haible  <bruno@clisp.org>
67832
67833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67834         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67835
67836 2007-04-04  Bruno Haible  <bruno@clisp.org>
67837
67838         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67839         results for "%010a" of Infinity and NaN.
67840         * tests/test-vasprintf-posix.c (test_function): Likewise.
67841         * tests/test-snprintf-posix.h (test_function): Likewise.
67842         * tests/test-sprintf-posix.h (test_function): Likewise.
67843         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67844         * tests/test-printf-posix.h (test_function): Likewise.
67845         * tests/test-fprintf-posix.out: Update.
67846         Needed for FreeBSD 6.1.
67847
67848 2007-04-04  Bruno Haible  <bruno@clisp.org>
67849
67850         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67851         directly used by the gnulib modules nor by gnulib-tool.
67852
67853 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67854
67855         * DEPENDENCIES: Give overall description of version dependency
67856         desirability.  Use more-typical names for apps.
67857         Add shell, coreutils, diffutils, grep, tar, gzip.
67858
67859 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67860
67861         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67862
67863 2007-04-04  Karl Berry  <karl@gnu.org>
67864
67865         * MODULES.html.sh (func_module): missing '.
67866
67867 2007-04-03  Bruno Haible  <bruno@clisp.org>
67868
67869         * modules/argmatch-tests (Makefile.am): New variable
67870         test_argmatch_LDADD.
67871         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67872         * modules/array-list-tests (Makefile.am): New variable
67873         test_array_list_LDADD.
67874         * modules/array-oset-tests (Makefile.am): New variable
67875         test_array_oset_LDADD.
67876         * modules/avltree-list-tests (Makefile.am): New variable
67877         test_avltree_list_LDADD.
67878         * modules/avltree-oset-tests (Makefile.am): New variable
67879         test_avltree_oset_LDADD.
67880         * modules/avltreehash-list-tests (Makefile.am): New variable
67881         test_avltreehash_list_LDADD.
67882         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67883         test_canonicalize_lgpl_LDADD.
67884         * modules/carray-list-tests (Makefile.am): New variable
67885         test_carray_list_LDADD.
67886         * modules/dirname-tests (Makefile.am): New variable
67887         test_dirname_LDADD.
67888         * modules/linked-list-tests (Makefile.am): New variable
67889         test_linked_list_LDADD.
67890         * modules/linkedhash-list-tests (Makefile.am): New variable
67891         test_linkedhash_list_LDADD.
67892         * modules/rbtree-list-tests (Makefile.am): New variable
67893         test_rbtree_list_LDADD.
67894         * modules/rbtree-oset-tests (Makefile.am): New variable
67895         test_rbtree_oset_LDADD.
67896         * modules/rbtreehash-list-tests (Makefile.am): New variable
67897         test_rbtreehash_list_LDADD.
67898         * modules/xvasprintf-tests (Makefile.am): New variable
67899         test_xvasprintf_LDADD.
67900         Reported by Eric Blake.
67901
67902 2007-04-03  Eric Blake  <ebb9@byu.net>
67903
67904         * DEPENDENCIES: Weaken m4 requirements.
67905
67906 2007-04-03  Bruno Haible  <bruno@clisp.org>
67907
67908         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67909         * modules/isnanl-tests (configure.ac): Likewise.
67910
67911 2007-04-03  Ben Pfaff  <blp@gnu.org>
67912
67913         * modules/iconv_open: Add $(srcdir)/ to source directory
67914         references in Makefile fragments that call gperf, to fix VPATH
67915         builds.
67916
67917 2007-04-03  Bruno Haible  <bruno@clisp.org>
67918
67919         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67920         * lib/ldexpl.c: Undo last change.
67921
67922 2007-04-03  Bruno Haible  <bruno@clisp.org>
67923
67924         * modules/printf-frexpl (Depends-on): Undo last change.
67925         (Files): Add m4/ldexpl.m4.
67926
67927 2007-04-03  Bruno Haible  <bruno@clisp.org>
67928
67929         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67930         * modules/isnanl (Link): New section.
67931
67932         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67933         * modules/frexp (Link): New section.
67934
67935         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67936         * modules/frexpl (Link): New section.
67937
67938         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67939         * modules/ldexpl (Link): New section.
67940
67941 2007-04-03  Bruno Haible  <bruno@clisp.org>
67942
67943         * modules/TEMPLATE-EXTENDED: New file.
67944         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67945
67946 2007-04-03  Bruno Haible  <bruno@clisp.org>
67947
67948         * DEPENDENCIES: New file.
67949         Suggested by Simon Josefsson.
67950
67951 2007-04-03  Bruno Haible  <bruno@clisp.org>
67952
67953         * doc/gnulib.texi: Escape @.
67954
67955 2007-04-03  James Youngman  <jay@gnu.org>
67956         and Paul Eggert  <eggert@cs.ucla.edu>
67957
67958         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67959         birthtime on all systems that have birthtime, not just those which
67960         use st_birthtimensec rather than st_birthtim.  Putting zero in
67961         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67962         that the birth time is not available for files on an NFS mount.
67963
67964 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67965
67966         * modules/memxor: Move back from crypto/, suggested by Bruno.
67967         * modules/crypto/hmac-sha1: Fix memxor dependency.
67968
67969         * modules/crypto/gc: Moved from ../.
67970
67971 2007-04-02  Eric Blake  <ebb9@byu.net>
67972
67973         * lib/ldexpl.c (includes): Avoid libm.
67974
67975         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67976
67977 2007-04-02  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67980         on IRIX.
67981
67982 2007-04-02  Bruno Haible  <bruno@clisp.org>
67983
67984         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67985         x86 or x86_64 platforms running MacOS X.
67986         Reported by Ryan Schmidt <@ryandesign.com>.
67987
67988 2007-04-02  Bruno Haible  <bruno@clisp.org>
67989
67990         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67991         i386.
67992
67993 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67994
67995         * modules/crypto/arcfour: Moved from ../.
67996         * modules/crypto/arcfour-tests: Moved from ../.
67997         * modules/crypto/arctwo: Moved from ../.
67998         * modules/crypto/arctwo-tests: Moved from ../.
67999         * modules/crypto/des: Moved from ../.
68000         * modules/crypto/des-tests: Moved from ../.
68001         * modules/crypto/gc-arcfour: Moved from ../.
68002         * modules/crypto/gc-arcfour-tests: Moved from ../.
68003         * modules/crypto/gc-arctwo: Moved from ../.
68004         * modules/crypto/gc-arctwo-tests: Moved from ../.
68005         * modules/crypto/gc-des: Moved from ../.
68006         * modules/crypto/gc-des-tests: Moved from ../.
68007         * modules/crypto/gc-hmac-md5: Moved from ../.
68008         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68009         * modules/crypto/gc-hmac-sha1: Moved from ../.
68010         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68011         * modules/crypto/gc-md2: Moved from ../.
68012         * modules/crypto/gc-md2-tests: Moved from ../.
68013         * modules/crypto/gc-md4: Moved from ../.
68014         * modules/crypto/gc-md4-tests: Moved from ../.
68015         * modules/crypto/gc-md5: Moved from ../.
68016         * modules/crypto/gc-md5-tests: Moved from ../.
68017         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68018         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68019         * modules/crypto/gc-random: Moved from ../.
68020         * modules/crypto/gc-rijndael: Moved from ../.
68021         * modules/crypto/gc-rijndael-tests: Moved from ../.
68022         * modules/crypto/gc-sha1: Moved from ../.
68023         * modules/crypto/gc-sha1-tests: Moved from ../.
68024         * modules/crypto/gc-tests: Moved from ../.
68025         * modules/crypto/hmac-md5: Moved from ../.
68026         * modules/crypto/hmac-md5-tests: Moved from ../.
68027         * modules/crypto/hmac-sha1: Moved from ../.
68028         * modules/crypto/hmac-sha1-tests: Moved from ../.
68029         * modules/crypto/md2: Moved from ../.
68030         * modules/crypto/md2-tests: Moved from ../.
68031         * modules/crypto/md4: Moved from ../.
68032         * modules/crypto/md4-tests: Moved from ../.
68033         * modules/crypto/md5: Moved from ../.
68034         * modules/crypto/md5-tests: Moved from ../.
68035         * modules/crypto/memxor: Moved from ../.
68036         * modules/crypto/rijndael: Moved from ../.
68037         * modules/crypto/rijndael-tests: Moved from ../.
68038         * modules/crypto/sha1: Moved from ../.
68039
68040 2007-03-30  James Youngman  <jay@gnu.org>
68041
68042         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68043         rename() to change the ctime of a file (because ctime is unaffected
68044         by rename on jfs2 on AIX 5.1).
68045         (main): Start by doing cleanup, in case a previous run failed leaving
68046         test files behind.
68047
68048 2007-03-31  Bruno Haible  <bruno@clisp.org>
68049
68050         Support old proprietary implementations of iconv.
68051         * modules/iconv_open: New file.
68052         * lib/iconv_.h: New file.
68053         * m4/iconv_h.m4: New file.
68054         * lib/iconv_open.c: New file.
68055         * lib/iconv_open-aix.gperf: New file.
68056         * lib/iconv_open-hpux.gperf: New file.
68057         * lib/iconv_open-irix.gperf: New file.
68058         * lib/iconv_open-osf.gperf: New file.
68059         * m4/iconv_open.m4: New file.
68060         * modules/linebreak (Depends-on): Add iconv_open.
68061         * modules/striconv (Depends-on): Likewise.
68062         * modules/striconveh (Depends-on): Likewise.
68063         * modules/unicodeio (Depends-on): Likewise.
68064         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68065         (iconv_t)(-1).
68066         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68067         conversion if cd is (iconv_t)(-1).
68068         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68069         is not possible.
68070
68071 2007-03-31  Bruno Haible  <bruno@clisp.org>
68072
68073         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68074         work on Solaris either. Protect also second use of "autodetect_jp".
68075
68076 2007-03-31  Bruno Haible  <bruno@clisp.org>
68077
68078         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68079         the function is not present.
68080
68081 2007-03-31  Bruno Haible  <bruno@clisp.org>
68082
68083         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68084         the function is not present.
68085
68086 2007-03-31  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68089         a bug in HP-UX iconv_open().
68090
68091 2007-03-31  Bruno Haible  <bruno@clisp.org>
68092
68093         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68094         (Mathematics <math.h>): New section, add fpieee.
68095         (Input/output <stdio.h>): Add fseterr.
68096         (Mathematics <math.h>): New section, add printf-frexp.
68097         (Container data structures): Add sublist.
68098         (Core language properties): Add fpucw, inline.
68099         (Functions for greatest-width integer types <inttypes.h>): Add
68100         imaxabs, imaxdiv, inttypes.
68101         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68102         isnanl-nolibm, ldexp.
68103         (Mathematics <math.h>): New section, add printf-frexpl.
68104         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68105         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68106         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68107         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68108         (Unicode string functions): Add unistr/u*-mbtoucr.
68109         (Java): Add javacomp-script, javaexec-script.
68110         (C#): Add csharpcomp-script, csharpexec-script.
68111         (Support for building libraries and executables): Add havelib,
68112         relocatable-*.
68113         (Support for maintaining and releasing projects): Renamed from
68114         'Support for maintaining and release projects'. Add announce-gen.
68115
68116 2007-03-31  Bruno Haible  <bruno@clisp.org>
68117
68118         * README: Talk primarily about git.
68119         (git and CVS): Renamed from CVS.
68120         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68121         gnulib is available through git.
68122         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68123
68124 2007-03-30  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68127         * lib/poll_.h: Likewise.
68128         * lib/stat_.h: Likewise.
68129         * lib/sys_time_.h: Likewise.
68130         * lib/sysexit_.h: Likewise.
68131         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68132         * lib/stdbool_.h: Likewise.
68133         * lib/byteswap_.h: Add double-inclusion guard.
68134
68135 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68136
68137         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68138
68139 2007-03-30  Karl Berry  <karl@gnu.org>
68140
68141         * config/srclist-update: double space after USA in the license
68142         substitution, since that's how it's usually (?) written.
68143
68144 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68145
68146         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68147         reported by Bruno Haible.
68148
68149 2007-03-29  Bruno Haible  <bruno@clisp.org>
68150
68151         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68152         a bug in AIX iconv().
68153
68154 2007-03-29  Bruno Haible  <bruno@clisp.org>
68155
68156         * modules/ldexpl-tests: New file.
68157         * tests/test-ldexpl.c: New file.
68158
68159 2007-03-29  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/ldexpl.c: Include fpucw.h.
68162         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68163         multiplication.
68164         * modules/ldexpl (Depends-on): Add fpucw.
68165
68166 2007-03-29  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/ldexpl: New file.
68169         * m4/ldexpl.m4: New file.
68170         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68171         set.
68172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68173         REPLACE_LDEXPL.
68174         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68175         REPLACE_LDEXPL.
68176         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68177         gl_FUNC_LDEXPL_WORKS.
68178         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68179         * modules/mathl (Files): Remove lib/ldexpl.c.
68180         (Depends-on): Add ldexpl.
68181
68182 2007-03-29  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68185
68186 2007-03-29  Bruno Haible  <bruno@clisp.org>
68187
68188         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68189         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68190         and possibly also HP-UX.
68191         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68192         work on AIX, IRIX, HP-UX, OSF/1.
68193         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68194         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68195         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68196         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68197         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68198         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68199
68200 2007-03-29  Bruno Haible  <bruno@clisp.org>
68201
68202         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68203
68204 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68205
68206         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68207         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68208
68209 2007-03-29  Eric Blake  <ebb9@byu.net>
68210
68211         * lib/acl-internal.h: Remove redundant include.
68212         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68213         Cygwin when a file is locked.
68214
68215 2007-03-29  Bruno Haible  <bruno@clisp.org>
68216
68217         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68218         file.
68219         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68220
68221 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68224         try to remove a parent directory if the child couldn't be removed
68225         (except for the first rmdir, which could fail because the child
68226         doesn't exist).  Problem reported by Jeff Blaine in
68227         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68228
68229 2007-03-28  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/striconveh.c (utf8conv_carefully): New function.
68232         (mem_cd_iconveh_internal): Invoke it.
68233
68234 2007-03-28  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68237         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68238         input.
68239         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68240         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68241         unistr/u8-uctomb.
68242
68243 2007-03-28  Bruno Haible  <bruno@clisp.org>
68244
68245         * modules/unistr/u8-mbtoucr: New file.
68246         * lib/unistr/u8-mbtoucr.c: New file.
68247         * modules/unistr/u16-mbtoucr: New file.
68248         * lib/unistr/u16-mbtoucr.c: New file.
68249         * modules/unistr/u16-mbtoucr: New file.
68250         * lib/unistr/u16-mbtoucr.c: New file.
68251         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68252
68253 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68254             Bruno Haible  <bruno@clisp.org>
68255
68256         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68257         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68258         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68259
68260         * m4/stdio_h.m4: Add stubs for vasprintf too.
68261
68262         * modules/stdio: Support vasprintf in sed command.
68263
68264         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68265         vasprintf.h.  Add stdio module indicator.
68266
68267         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68268         vasprintf.h.
68269
68270         * lib/vasprintf.h: File removed.
68271
68272         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68273         * lib/vasprintf.c: Ditto.
68274         * lib/xvasprintf.c: Ditto.
68275         * tests/test-vasprintf-posix.c: Ditto.
68276         * tests/test-vasprintf.c: Ditto.
68277
68278 2007-03-27  Bruno Haible  <bruno@clisp.org>
68279
68280         Make vasnprintf multithread-safe.
68281         * lib/vasnprintf.c (decimal_point_char): New function.
68282         (VASNPRINTF): Use it.
68283         Suggested by Simon Josefsson.
68284
68285 2007-03-27  Eric Blake  <ebb9@byu.net>
68286
68287         Support sub-second birthtime on cygwin.
68288         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68289         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68290         (get_stat_birthtime): Also work with st_birthtim.
68291
68292 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68293
68294         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68295         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68296         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68297         (get_stat_birthtime_ns): Simplify compile-time tests.
68298         (get_stat_birthtime): Change the API to look like
68299         get_stat_mtime etc., except return a negative tv_nsec on error.
68300         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68301         Don't check for "spare" fields.
68302         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68303         or for struct stat.st_birthtime, as these tests aren't used.
68304         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68305
68306 2007-03-27  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/stat-time.h: Include <sys/stat.h>.
68309
68310 2007-03-27  James Youngman  <jay@gnu.org>
68311
68312         * lib/stat-time.h (get_stat_birthtime): New function for
68313           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68314         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68315           and its variants.
68316         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68317         * modules/stat-time-test: New file.
68318         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68319
68320 2007-03-26  Bruno Haible  <bruno@clisp.org>
68321
68322         Better support of signalling NaNs.
68323         * lib/atanl.c: Include isnanl.h.
68324         (atanl): Perform test for NaN at the beginning of the function and
68325         through a call to isnanl.
68326         * lib/cosl.c: Include isnanl.h.
68327         (cosl): Perform test for NaN at the beginning of the function and
68328         through a call to isnanl.
68329         * lib/ldexpl.c: Include isnanl.h.
68330         (ldexpl): Perform test for NaN through a call to isnanl.
68331         * lib/logl.c: Include isnanl.h.
68332         (logl): Perform test for NaN at the beginning of the function and
68333         through a call to isnanl.
68334         * lib/sinl.c: Include isnanl.h.
68335         (sinl): Perform test for NaN at the beginning of the function and
68336         through a call to isnanl.
68337         * lib/sqrtl.c: Include isnanl.h.
68338         (sqrtl): Perform test for NaN at the beginning of the function and
68339         through a call to isnanl.
68340         * lib/tanl.c: Include isnanl.h.
68341         (tanl): Perform test for NaN at the beginning of the function and
68342         through a call to isnanl.
68343         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68344         * modules/mathl (Depends-on): Add isnanl.
68345
68346 2007-03-26  Eric Blake  <ebb9@byu.net>
68347
68348         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68349         regression in logic sense of previous patch.
68350
68351 2007-03-26  Bruno Haible  <bruno@clisp.org>
68352
68353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68354         unportable shell command "if ! ...".
68355         Reported by Ralf Wildenhues.
68356
68357 2007-03-25  Bruno Haible  <bruno@clisp.org>
68358
68359         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68360         <sysexits.h> file, and only add EX_CONFIG.
68361         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68362         absolute file name and whether it is sufficient. Substitute also
68363         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68364         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68365         ABSOLUTE_SYSEXITS_H into sysexits.h.
68366
68367 2007-03-25  Bruno Haible  <bruno@clisp.org>
68368
68369         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68370         hints is NULL.
68371
68372 2007-03-25  Bruno Haible  <bruno@clisp.org>
68373
68374         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68375         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68376
68377 2007-03-25  Bruno Haible  <bruno@clisp.org>
68378
68379         * lib/vasnprintf.c: Include langinfo.h.
68380         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68381         multithread-safe.
68382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68383         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68384         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68385         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68386         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68387         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68391         Reported by Simon Josefsson.
68392
68393 2007-03-25  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68396         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68397         * modules/vasnprintf (Depends-on): Add stdint.
68398
68399 2007-03-25  Bruno Haible  <bruno@clisp.org>
68400
68401         * modules/fpieee: New file.
68402         * m4/fpieee.m4: New file.
68403         * modules/isnan-nolibm (Depends-on): Add fpieee.
68404         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68405         * modules/isnanl (Depends-on): Add fpieee.
68406
68407 2007-03-25  Bruno Haible  <bruno@clisp.org>
68408
68409         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68410
68411 2007-03-25  Bruno Haible  <bruno@clisp.org>
68412
68413         Avoid test failures on IRIX 6.5.
68414         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68415         (main): Use it.
68416         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68417         macros.
68418         (main): Use them.
68419
68420 2007-03-25  Bruno Haible  <bruno@clisp.org>
68421
68422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68423         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68424         exists but doesn't work.
68425         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68426         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68428         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68429         math.h.
68430
68431 2007-03-25  Bruno Haible  <bruno@clisp.org>
68432
68433         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68434         returns inf. Needed on IRIX 6.5.
68435
68436 2007-03-25  Bruno Haible  <bruno@clisp.org>
68437
68438         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68439         (main): Use isnanl instead of x != x idiom.
68440         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68441
68442         * tests/test-frexp.c: Include isnan.h.
68443         (main): Use isnan instead of x != x idiom.
68444         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68445
68446 2007-03-25  Bruno Haible  <bruno@clisp.org>
68447
68448         * tests/test-frexp.c (NaN): New function/macro.
68449         (main): Use it instead of 0.0 / 0.0.
68450         * tests/test-isnan.c (NaN): New function/macro.
68451         (main): Use it instead of 0.0 / 0.0.
68452         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68453         (test_function): Use it instead of 0.0 / 0.0.
68454         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68455         (test_function): Use it instead of 0.0 / 0.0.
68456         * tests/test-snprintf-posix.h (NaN): New function/macro.
68457         (test_function): Use it instead of 0.0 / 0.0.
68458         * tests/test-sprintf-posix.h (NaN): New function/macro.
68459         (test_function): Use it instead of 0.0 / 0.0.
68460         * tests/test-fprintf-posix.h (NaN): New function/macro.
68461         (test_function): Use it instead of 0.0 / 0.0.
68462         * tests/test-printf-posix.h (NaN): New function/macro.
68463         (test_function): Use it instead of 0.0 / 0.0.
68464
68465         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68466
68467 2007-03-25  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68470
68471 2007-03-25  Bruno Haible  <bruno@clisp.org>
68472
68473         * lib/regexec.c (merge_state_with_log): Make static.
68474
68475 2007-03-25  Bruno Haible  <bruno@clisp.org>
68476
68477         * lib/trigl.c (kernel_rem_pio2): Make static.
68478
68479 2007-03-25  Bruno Haible  <bruno@clisp.org>
68480
68481         * lib/sincosl.c (sincosl_table): Make static.
68482
68483 2007-03-25  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68486         if the compiler does not support C99.
68487
68488 2007-03-25  Bruno Haible  <bruno@clisp.org>
68489
68490         * modules/time (Makefile.am): Ensure all rule action lines start with a
68491         tab.
68492
68493 2007-03-24  Bruno Haible  <bruno@clisp.org>
68494
68495         * modules/tsearch-tests: New file.
68496         * tests/test-tsearch.sh: New file.
68497         * tests/test-tsearch.c: New file, mostly copied from glibc.
68498
68499         * modules/search-tests: New file.
68500         * tests/test-search.c: New file.
68501
68502         * modules/search: New file.
68503         * lib/search_.h: New file, incorporating lib/tsearch.h.
68504         * m4/search_h.m4: New file.
68505         * lib/tsearch.h: Remove file.
68506         * lib/tsearch.c: Include search.h instead of tsearch.h.
68507         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68508         HAVE_TSEARCH.
68509         * modules/tsearch (Files): Remove lib/tsearch.h.
68510         (Depends-on): Add search.
68511         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68512         (Include): Change tsearch.h into search.h.
68513
68514 2007-03-24  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/fpucw: New file.
68517         * lib/fpucw.h: New file.
68518         * lib/frexp.c: Include fpucw.h.
68519         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68520         (FUNC): Use them.
68521         * lib/printf-frexp.c: Include fpucw.h.
68522         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68523         (FUNC): Use them.
68524         * lib/vasnprintf.c: Include fpucw.h.
68525         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68526         'long double' calculations.
68527         * tests/test-frexpl.c: Include fpucw.h.
68528         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68529         * tests/test-printf-frexpl.c: Include fpucw.h.
68530         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68531         * modules/frexpl (Depends-on): Add fpucw.
68532         * modules/printf-frexpl (Depends-on): Likewise.
68533         * modules/fprintf-posix (Depends-on): Likewise.
68534         * modules/snprintf-posix (Depends-on): Likewise.
68535         * modules/sprintf-posix (Depends-on): Likewise.
68536         * modules/vasnprintf-posix (Depends-on): Likewise.
68537         * modules/vasprintf-posix (Depends-on): Likewise.
68538         * modules/vfprintf-posix (Depends-on): Likewise.
68539         * modules/vsnprintf-posix (Depends-on): Likewise.
68540         * modules/vsprintf-posix (Depends-on): Likewise.
68541         * modules/frexpl-tests (Depends-on): Likewise.
68542         * modules/printf-frexpl-tests (Depends-on): Likewise.
68543
68544 2007-03-24  Bruno Haible  <bruno@clisp.org>
68545
68546         * lib/float+.h: New file.
68547         * lib/isnan.c: Include float+.h.
68548         (SIZE): New macro.
68549         (FUNC): Compare only SIZE bytes of the value.
68550         * lib/vasnprintf.c: Include float+.h.
68551         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68552         SIZEOF_LDBL or SIZEOF_DBL bytes.
68553         * modules/isnan-nolibm (Files): Add lib/float+.h.
68554         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68555         * modules/isnanl (Files): Add lib/float+.h.
68556         * modules/vasnprintf (Files): Add lib/float+.h.
68557
68558 2007-03-24  Bruno Haible  <bruno@clisp.org>
68559
68560         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68561         include isnanl-nolibm.h.
68562
68563 2007-03-24  Bruno Haible  <bruno@clisp.org>
68564
68565         * tests/test-read-file.c (main): Don't produce spurious output for
68566         expected situations. Make the test fail if it encountered unexpected
68567         results.
68568
68569 2007-03-24  Bruno Haible  <bruno@clisp.org>
68570
68571         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68572         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68573
68574 2007-03-24  Bruno Haible  <bruno@clisp.org>
68575
68576         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68577
68578 2007-03-24  Bruno Haible  <bruno@clisp.org>
68579
68580         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68581         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68582
68583         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68584         * modules/utf8-ucs4: Turn into a symbolic link to module
68585         unistr/u8-mbtouc.
68586
68587         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68588         utf8-ucs4-unsafe.
68589         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68590         unistr/u8-mbtouc-unsafe.
68591
68592         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68593         * modules/utf16-ucs4: Turn into a symbolic link to module
68594         unistr/u16-mbtouc.
68595
68596         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68597         utf16-ucs4-unsafe.
68598         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68599         unistr/u16-mbtouc-unsafe.
68600
68601         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68602         * modules/ucs4-utf8: Turn into a symbolic link to module
68603         unistr/u8-ubtomb.
68604
68605         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68606         * modules/ucs4-utf16: Turn into a symbolic link to module
68607         unistr/u16-ubtomb.
68608
68609 2007-03-24  Bruno Haible  <bruno@clisp.org>
68610
68611         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68612         Enable the function only if HAVE_INLINE.
68613         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68614         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68615         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68616         Enable the function only if HAVE_INLINE.
68617         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68618         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68619         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68620         Enable the function only if HAVE_INLINE.
68621         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68622         Enable the function only if HAVE_INLINE.
68623         * modules/utf8-ucs4: Update.
68624         * modules/utf8-ucs4-unsafe: Update.
68625         * modules/utf16-ucs4: Update.
68626         * modules/utf16-ucs4-unsafe: Update.
68627         * modules/ucs4-utf8: Update.
68628         * modules/ucs4-utf16: Update.
68629
68630 2007-03-24  Bruno Haible  <bruno@clisp.org>
68631
68632         * lib/utf8-ucs4.h: Remove file.
68633         * lib/utf8-ucs4-unsafe.h: Remove file.
68634         * lib/utf16-ucs4.h: Remove file.
68635         * lib/utf16-ucs4-unsafe.h: Remove file.
68636         * lib/ucs4-utf8.h: Remove file.
68637         * lib/ucs4-utf16.h: Remove file.
68638         * lib/unistr.h: Include their previous contents.
68639         * m4/utf-ucs4.m4: Remove file.
68640         * m4/ucs4-utf.m4: Remove file.
68641         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68642         (Depends-on): Add unistr/base.
68643         (configure.ac): Remove gl_UTF_UCS4.
68644         (Makefile.am): Update.
68645         (Include): Change to unistr.h.
68646         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68647         (Depends-on): Add unistr/base.
68648         (configure.ac): Remove gl_UTF_UCS4.
68649         (Makefile.am): Update.
68650         (Include): Change to unistr.h.
68651         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68652         (Depends-on): Add unistr/base.
68653         (configure.ac): Remove gl_UTF_UCS4.
68654         (Makefile.am): Update.
68655         (Include): Change to unistr.h.
68656         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68657         (Depends-on): Add unistr/base.
68658         (configure.ac): Remove gl_UTF_UCS4.
68659         (Makefile.am): Update.
68660         (Include): Change to unistr.h.
68661         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68662         (Depends-on): Add unistr/base.
68663         (configure.ac): Remove gl_UCS4_UTF.
68664         (Makefile.am): Update.
68665         (Include): Change to unistr.h.
68666         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68667         (Depends-on): Add unistr/base.
68668         (configure.ac): Remove gl_UCS4_UTF.
68669         (Makefile.am): Update.
68670         (Include): Change to unistr.h.
68671         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68672         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68673         utf8-ucs4-unsafe.h.
68674         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68675         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68676         utf16-ucs4-unsafe.h.
68677         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68678         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68679         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68680         * lib/unistr/u8-strchr.c: Likewise.
68681         * lib/unistr/u8-strrchr.c: Likewise.
68682         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68683         * lib/unistr/u16-strchr.c: Likewise.
68684         * lib/unistr/u16-strrchr.c: Likewise.
68685         * lib/striconveh.c: Update.
68686         * lib/linebreak.c: Update.
68687
68688 2007-03-24  Bruno Haible  <bruno@clisp.org>
68689
68690         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68691         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68692
68693 2007-03-22  Bruno Haible  <bruno@clisp.org>
68694
68695         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68696
68697 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * MODULES.html.sh (File system functions): New module write-any-file.
68700         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68701         * m4/write-any-file.m4: New files.
68702
68703 2007-03-23  Eric Blake  <ebb9@byu.net>
68704
68705         * gnulib-tool: Rearrange space-tab sequences, since some editors
68706         like to eat them.
68707
68708 2007-03-23  Eric Blake  <ebb9@byu.net>
68709
68710         * lib/version-etc.c (version_etc_va): Update license wording to
68711         be more concise.  Recommended by Richard Stallman.
68712
68713 2007-03-22  Bruno Haible  <bruno@clisp.org>
68714
68715         * lib/poll.c (MSG_PEEK): New fallback definition.
68716
68717 2007-03-22  Bruno Haible  <bruno@clisp.org>
68718
68719         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68720         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68721         (main): Update.
68722         Fixes a compilation error on BeOS.
68723
68724 2007-03-22  Bruno Haible  <bruno@clisp.org>
68725
68726         * modules/frexpl-tests: New file.
68727         * tests/test-frexpl.c: New file.
68728
68729         * modules/frexpl: New file.
68730         * m4/frexpl.m4: New file.
68731         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68732         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68734         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68735         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68736         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68737
68738 2007-03-22  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/frexpl.c: Share code with lib/frexp.c.
68741         * modules/mathl (Files): Add lib/frexp.c.
68742         (Depends-on): Add isnanl-nolibm.
68743
68744 2007-03-22  Bruno Haible  <bruno@clisp.org>
68745
68746         * modules/printf-frexp (Files): Add m4/frexp.m4.
68747         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68748         only if the found frexp function actually works.
68749
68750 2007-03-22  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/frexp.c: Remove older implementation that uses divisions.
68753
68754 2007-03-21  Bruno Haible  <bruno@clisp.org>
68755
68756         * modules/frexp-tests: New file.
68757         * tests/test-frexp.c: New file.
68758
68759         * modules/frexp: New file.
68760         * lib/frexp.c: New file.
68761         * m4/frexp.m4: New file.
68762         * lib/math_.h (frexp): New declaration.
68763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68764         REPLACE_FREXP.
68765         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68766
68767 2007-03-21  Bruno Haible  <bruno@clisp.org>
68768
68769         * modules/isnanl-tests: New file.
68770         * tests/test-isnanl.c: New file.
68771
68772         * modules/isnanl: New file.
68773         * lib/isnanl.h: New file.
68774         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68775         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68776         gl_FUNC_ISNANL_WORKS.
68777         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68778         New macros.
68779
68780 2007-03-21  Bruno Haible  <bruno@clisp.org>
68781
68782         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68783         lib/isnanl.h.
68784         (Include): Update.
68785         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68786         * lib/vasnprintf.c: Update.
68787         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68788         tests/test-isnanl.h, remove tests/test-isnanl.c.
68789         (Makefile.am): Update.
68790         * tests/test-isnanl-nolibm.c: New file.
68791         * tests/test-isnanl.h: New file.
68792         * tests/test-isnanl.c: Remove file.
68793
68794 2007-03-21  Jim Meyering  <jim@meyering.net>
68795
68796         When trying to open ".", treat ESTALE like EACCES.
68797         * lib/savewd.c (savewd_save): Resort to forking not just upon
68798         failure with EACCES, but also when errno is ESTALE.
68799
68800 2007-03-20  Bruno Haible  <bruno@clisp.org>
68801
68802         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68803         Needed on AIX 5.1. Reported by Matthew Woehlke.
68804
68805 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68806
68807         Suggestions by Bruno Haible:
68808         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68809         our own.
68810         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68811         * modules/acl (Depends-on): Add gettext.
68812
68813 2007-03-19  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/iconvme: Remove file.
68816         * lib/iconvme.h: Remove file.
68817         * lib/iconvme.c: Remove file.
68818         * m4/iconvme.m4: Remove file.
68819
68820 2007-03-19  Bruno Haible  <bruno@clisp.org>
68821
68822         * doc/relocatable-maint.texi: Break long shell script line.
68823         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68824
68825 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68826
68827         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68828         handle file_has_acl.
68829         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68830         * lib/acl.c: Move header inclusions and related macro defns into
68831         lib/acl-internal.h.
68832         (S_ISLNK): Remove defn, since that's now done for us.
68833         (file_has_acl): Move to lib/file-has-acl.c.
68834         Call acl_trivial if available.  This is the crucial part of the fix.
68835         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68836         shared within the library.  Rewrite a bit, partly to make it compatible
68837         with the GNU coding style.
68838         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68839         Remove unnecessary double-quotes.
68840         Don't test for acl_to_text; the build will catch that.
68841         Replace acl_entries if it doesn't exist and it is needed.
68842         Check for -lsec and acl_trivial (as used on Solaris 10).
68843         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68844         lib/file-has-acl.c.
68845         (Depends-on): Add sys_stat, for S_ISLNK.
68846
68847 2007-03-19  Ben Pfaff  <blp@gnu.org>
68848
68849         * doc/gnulib.texi: Fix typos.
68850         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68851
68852 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68855         If size is zero here, buf must be zero.
68856
68857 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68858
68859         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68860         <bruno@clisp.org>.
68861
68862 2007-03-18  Bruno Haible  <bruno@clisp.org>
68863
68864         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68865         Suggested by Eric Blake.
68866
68867 2007-03-18  Ben Pfaff  <blp@gnu.org>
68868
68869         * doc/relocatable.texi: Recommend using as prefix a directory
68870         that does not exist and will never be created.  Based on
68871         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68872         and others.
68873
68874 2007-03-17  Bruno Haible  <bruno@clisp.org>
68875
68876         * lib/fchownat.c: Include lchown.h.
68877
68878 2007-03-17  Bruno Haible  <bruno@clisp.org>
68879
68880         Fix endless loop when the given allocated size was > INT_MAX.
68881         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68882         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68883         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68884         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68885         * lib/sprintf.c (sprintf): Likewise.
68886
68887 2007-03-17  Bruno Haible  <bruno@clisp.org>
68888
68889         * tests/test-argp-2.sh (func_compare): Output a context diff.
68890
68891 2007-03-17  Bruno Haible  <bruno@clisp.org>
68892
68893         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68894         locale's decimal-point character.
68895
68896 2007-03-17  Bruno Haible  <bruno@clisp.org>
68897
68898         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68899         before comparing it. Needed because on some platforms (e.g. x86) a
68900         'long double' occupies less bytes than sizeof (long double).
68901
68902 2007-03-17  Bruno Haible  <bruno@clisp.org>
68903
68904         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68905         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68906         * tests/test-getaddrinfo.c (simple): Likewise.
68907         * tests/test-read-file.c (main): Likewise.
68908
68909 2007-03-17  Bruno Haible  <bruno@clisp.org>
68910
68911         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68912
68913 2007-03-17  Bruno Haible  <bruno@clisp.org>
68914
68915         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68916         unused variable.
68917
68918 2007-03-17  Bruno Haible  <bruno@clisp.org>
68919
68920         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68921         * tests/test-c-strncasecmp.c: Likewise.
68922
68923 2007-03-17  Bruno Haible  <bruno@clisp.org>
68924
68925         * modules/stdlib (Depends-on): Add unistd.
68926         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68927         Needed for MacOS X 10.3.
68928
68929 2007-03-17  Bruno Haible  <bruno@clisp.org>
68930
68931         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68932
68933 2007-03-17  Bruno Haible  <bruno@clisp.org>
68934
68935         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68936
68937 2007-03-17  Bruno Haible  <bruno@clisp.org>
68938
68939         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68940         to reflect files copied from gnulib (with or without modifications).
68941         Suggested by Jim Meyering.
68942
68943 2007-03-17  Eric Blake  <ebb9@byu.net>
68944
68945         * NEWS: Document stdlib change from 2007-02-18.
68946
68947 2007-03-17  Jim Meyering  <jim@meyering.net>
68948
68949         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68950         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68951         someone uses a name containing shell meta-characters.
68952         Reported by Alfred M. Szmidt.
68953
68954         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68955
68956 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68957
68958         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68959         and copy gettext configuration files only if configure.ac contains
68960         a use of AM_GNU_GETTEXT_VERSION.
68961
68962 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68963
68964         * build-aux/bootstrap (gnulib_name): New variable.
68965         (gnulib_tool_options): Use it.
68966
68967 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68968
68969         * tests/test-des.c: Use new namespace.
68970
68971 2007-03-15  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68974         Reported by James Youngman <jay@gnu.org>.
68975
68976 2007-03-15  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68979         declared prototype. Needed with cc on OSF/1 5.1.
68980
68981 2007-03-15  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68984         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68985         (struct gl_list_implementation): Add dispose_fn argument to the
68986         'create_empty', 'create' methods.
68987         (struct gl_list_impl_base): Add field 'dispose_fn'.
68988         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68989         argument.
68990         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68991         dispose_fn argument.
68992         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68993         dispose_fn on the dropped values.
68994         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68995         dispose_fn argument.
68996         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68997         dropped values.
68998         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68999         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69000         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69001         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69002         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69003         argument.
69004         (gl_tree_list_free): Call dispose_fn on the dropped values.
69005         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69006         the dropped values.
69007         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69008         Add dispose_fn argument.
69009         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69010         Call dispose_fn on the dropped values.
69011         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69012         Add dispose_fn argument.
69013         (gl_sublist_create): Initialize the 'dispose_fn' field.
69014         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69015         * tests/test-array_list.c (main): Update.
69016         * tests/test-carray_list.c (main): Update.
69017         * tests/test-avltree_list.c (main): Update.
69018         * tests/test-rbtree_list.c (main): Update.
69019         * tests/test-avltreehash_list.c (main): Update.
69020         * tests/test-rbtreehash_list.c (main): Update.
69021         * tests/test-linked_list.c (main): Update.
69022         * tests/test-linkedhash_list.c (main): Update.
69023         * tests/test-array_oset.c (main): Update.
69024
69025 2007-03-15  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69028         (gl_oset_create_empty): Add dispose_fn argument.
69029         (struct gl_oset_implementation): Add dispose_fn argument to
69030         'create_empty' method.
69031         (struct gl_oset_impl_base): Add dispose_fn field.
69032         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69033         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69034         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69035         values.
69036         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69037         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69038         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69039         dropped value.
69040         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69041         dropped value.
69042         * tests/test-array_oset.c (main): Update.
69043         * tests/test-avltree_oset.c (main): Update.
69044         * tests/test-rbtree_oset.c (main): Update.
69045         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69046
69047 2007-03-13  Bruno Haible  <bruno@clisp.org>
69048
69049         * tests/test-stdbool.c (i): Update after last patch.
69050
69051 2007-03-12  Bruno Haible  <bruno@clisp.org>
69052
69053         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69054         the iswprint macro. Needed on Solaris 2.5.1.
69055
69056 2007-03-12  Bruno Haible  <bruno@clisp.org>
69057
69058         * tests/test-printf-frexp.c (main): Declare x as volatile.
69059
69060 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69061
69062         * doc/gnulib.texi (Build robot for gnulib): New section.
69063
69064 2007-03-12  Jim Meyering  <jim@meyering.net>
69065
69066         * build-aux/bootstrap: New file.
69067         * build-aux/bootstrap.conf: New file, from coreutils.
69068
69069 2007-03-11  Bruno Haible  <bruno@clisp.org>
69070
69071         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69072
69073 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69074
69075         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69076         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69077         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69078
69079 2007-03-11  Bruno Haible  <bruno@clisp.org>
69080
69081         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69082         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69083
69084 2007-03-11  Bruno Haible  <bruno@clisp.org>
69085
69086         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69087         formula. Needed for SunPRO C 5.0.
69088
69089 2007-03-11  Bruno Haible  <bruno@clisp.org>
69090
69091         * modules/long-options (Depends-on): Add getopt.
69092
69093 2007-03-11  Bruno Haible  <bruno@clisp.org>
69094
69095         * modules/modechange (Depends-on): Add stdbool.
69096
69097 2007-03-11  Bruno Haible  <bruno@clisp.org>
69098
69099         * modules/i-ring (Depends-on): Add stdbool.
69100
69101 2007-03-11  Bruno Haible  <bruno@clisp.org>
69102
69103         * modules/gc-des (Depends-on): Add stdbool.
69104
69105 2007-03-11  Bruno Haible  <bruno@clisp.org>
69106
69107         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69108
69109 2007-03-11  Bruno Haible  <bruno@clisp.org>
69110
69111         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69112
69113 2007-03-11  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69116
69117 2007-03-11  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/vasnprintf.c (sprintf): Undefine.
69120
69121 2007-03-11  Bruno Haible  <bruno@clisp.org>
69122
69123         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69124         initializers in SunPRO C and Compaq C compilers.
69125
69126 2007-03-11  Bruno Haible  <bruno@clisp.org>
69127
69128         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69129         decrementing code ANSI C compliant.
69130
69131 2007-03-11  Bruno Haible  <bruno@clisp.org>
69132
69133         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69134         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69135
69136 2007-03-11  Bruno Haible  <bruno@clisp.org>
69137
69138         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69139         <stdbool.h> substitute doesn't pass.
69140
69141 2007-03-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69144
69145 2007-03-11  Bruno Haible  <bruno@clisp.org>
69146
69147         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69148         script, for submission to autobuild.josefsson.org.
69149
69150 2007-03-10  Bruno Haible  <bruno@clisp.org>
69151
69152         * modules/canonicalize-lgpl-tests: New file.
69153         * tests/test-canonicalize-lgpl.sh: New file.
69154         * tests/test-canonicalize-lgpl.c: New file.
69155
69156         * modules/c-strcase-tests: New file.
69157         * tests/test-c-strcase.sh: New file.
69158         * tests/test-c-strcasecmp.c: New file.
69159         * tests/test-c-strncasecmp.c: New file.
69160
69161         * modules/atexit-tests: New file.
69162         * tests/test-atexit.sh: New file.
69163         * tests/test-atexit.c: New file.
69164
69165 2007-03-10  Bruno Haible  <bruno@clisp.org>
69166
69167         * tests/test-binary-io.sh: Use temporary filenames that are not so
69168         likely to clash with those of other tests (in a parallel make).
69169         * tests/test-binary-io.c: Likewise.
69170
69171 2007-03-10  Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69174         fallback; use #error instead.
69175         Suggested by Simon Josefsson.
69176
69177 2007-03-10  Bruno Haible  <bruno@clisp.org>
69178
69179         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69180         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69181         first and the last.
69182
69183 2007-03-10  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69186
69187 2007-03-10  Bruno Haible  <bruno@clisp.org>
69188
69189         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69190         "make distcheck".
69191         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69192         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69193         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69194
69195 2007-03-10  Bruno Haible  <bruno@clisp.org>
69196
69197         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69198         variable.
69199         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69200         variable.
69201
69202 2007-03-09  Eric Blake  <ebb9@byu.net>
69203         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69204
69205         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69206         types are not being provided by gnulib.
69207         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69208         types are supported.
69209
69210 2007-03-10  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/stdio_.h (__attribute__): New macro.
69213         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69214         vsprintf): Specify __attribute__ __format__ for GCC.
69215         Suggested by Eric Blake.
69216
69217 2007-03-09  Bruno Haible  <bruno@clisp.org>
69218
69219         * modules/printf-posix-tests: New file.
69220         * tests/test-printf-posix.sh: New file.
69221         * tests/test-printf-posix.c: New file.
69222
69223         * modules/printf-posix: New file.
69224         * lib/printf.c: New file.
69225         * m4/printf-posix-rpl.m4: New file.
69226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69227         REPLACE_PRINTF.
69228         * lib/stdio_.h (printf): New declaration.
69229         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69230         ____strfmon____): New macros.
69231         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69232         REPLACE_PRINTF.
69233
69234 2007-03-09  Bruno Haible  <bruno@clisp.org>
69235
69236         * tests/test-vasnprintf-posix2.sh: New file.
69237         * tests/test-vasnprintf-posix2.c: New file.
69238         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69239         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69240         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69241
69242         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69243         a locale dependent decimal point, rather than always '.'.
69244
69245 2007-03-09  Eric Blake  <ebb9@byu.net>
69246
69247         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69248         spite of platforms like Tandem/NSK that define it to -1.
69249
69250 2007-03-08  Bruno Haible  <bruno@clisp.org>
69251
69252         * modules/vprintf-posix-tests: New file.
69253         * tests/test-vprintf-posix.sh: New file.
69254         * tests/test-vprintf-posix.c: New file.
69255         * tests/test-printf-posix.h: New file.
69256
69257         * modules/vprintf-posix: New file.
69258         * lib/vprintf.c: New file.
69259         * m4/vprintf-posix.m4: New file.
69260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69261         REPLACE_VPRINTF.
69262         * lib/stdio_.h (vprintf): New declaration.
69263         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69264         REPLACE_VPRINTF.
69265
69266 2007-03-08  Bruno Haible  <bruno@clisp.org>
69267
69268         * modules/fprintf-posix-tests: New file.
69269         * tests/test-fprintf-posix.sh: New file.
69270         * tests/test-fprintf-posix.c: New file.
69271
69272         * modules/fprintf-posix: New file.
69273         * lib/fprintf.c: New file.
69274         * m4/fprintf-posix.m4: New file.
69275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69276         REPLACE_FPRINTF.
69277         * lib/stdio_.h (fprintf): New declaration.
69278         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69279         REPLACE_FPRINTF.
69280
69281 2007-03-08  Bruno Haible  <bruno@clisp.org>
69282
69283         * modules/vfprintf-posix-tests: New file.
69284         * tests/test-vfprintf-posix.sh: New file.
69285         * tests/test-vfprintf-posix.c: New file.
69286         * tests/test-fprintf-posix.h: New file.
69287         * tests/test-fprintf-posix.out: New file.
69288
69289         * modules/vfprintf-posix: New file.
69290         * lib/vfprintf.c: New file.
69291         * m4/vfprintf-posix.m4: New file.
69292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69293         REPLACE_VFPRINTF.
69294         * lib/stdio_.h (vfprintf): New declaration.
69295         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69296         REPLACE_VFPRINTF.
69297
69298 2007-03-08  Bruno Haible  <bruno@clisp.org>
69299
69300         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69301
69302 2007-03-08  Bruno Haible  <bruno@clisp.org>
69303
69304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69305         instead of 'expr' invocations.
69306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69307         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69311         Suggested by Paul Eggert.
69312
69313 2007-03-08  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/fseterr-tests: New file.
69316         * tests/test-fseterr.c: New file.
69317
69318         * modules/fseterr: New file.
69319         * lib/fseterr.h: New file.
69320         * lib/fseterr.c: New file.
69321
69322 2007-03-08  Bruno Haible  <bruno@clisp.org>
69323
69324         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69325         * lib/getopt_.h: Likewise.
69326         * lib/mbswidth.h: Likewise.
69327         * lib/setenv.h: Likewise.
69328         * lib/vasnprintf.h: Likewise.
69329         * lib/vasprintf.h: Likewise.
69330         * lib/verror.h: Likewise.
69331         * lib/xsetenv.h: Likewise.
69332         * lib/xvasprintf.h: Likewise.
69333
69334 2007-03-08  Jim Meyering  <jim@meyering.net>
69335
69336         * users.txt: Add parted.
69337
69338         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69339
69340 2007-03-07  Bruno Haible  <bruno@clisp.org>
69341
69342         * m4/printf.m4: Make the shell script snippets copy&pastable.
69343
69344 2007-03-02  Bruno Haible  <bruno@clisp.org>
69345
69346         * lib/netinet_in_.h: New file.
69347         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69348         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69349         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69350         (Depends-on): Add absolute-header.
69351         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69352         into netinet/in.h.
69353
69354 2007-03-03  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/sys_select_.h: New file.
69357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69358         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69359         * modules/sys_select (Files): Add lib/sys_select_.h.
69360         (Depends-on): Add absolute-header.
69361         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69362         into sys/select.h.
69363
69364 2007-03-02  Bruno Haible  <bruno@clisp.org>
69365
69366         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69367         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69368         values.
69369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69370         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69371         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69372         * modules/sys_socket (Depends-on): Add absolute-header.
69373         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69374         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69375         (Include): Remove requirement of inclusion of <sys/types.h>.
69376
69377 2007-03-02  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/byteswap_.h (bswap_32): Fix formula.
69380
69381 2007-03-06  Bruno Haible  <bruno@clisp.org>
69382
69383         * modules/sprintf-posix-tests: New file.
69384         * tests/test-sprintf-posix.c: New file.
69385
69386         * modules/sprintf-posix: New file.
69387         * lib/sprintf.c: New file.
69388         * m4/sprintf-posix.m4: New file.
69389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69390         REPLACE_SPRINTF.
69391         * lib/stdio_.h (sprintf): New declaration.
69392         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69393         REPLACE_SPRINTF.
69394
69395 2007-03-06  Bruno Haible  <bruno@clisp.org>
69396
69397         * modules/vsprintf-posix-tests: New file.
69398         * tests/test-vsprintf-posix.c: New file.
69399         * tests/test-sprintf-posix.h: New file.
69400
69401         * modules/vsprintf-posix: New file.
69402         * lib/vsprintf.c: New file.
69403         * m4/vsprintf-posix.m4: New file.
69404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69405         REPLACE_VSPRINTF.
69406         * lib/stdio_.h (vsprintf): New declaration.
69407         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69408         REPLACE_VSPRINTF.
69409
69410 2007-03-06  Bruno Haible  <bruno@clisp.org>
69411
69412         * modules/vsnprintf (Depend-on): Remove minmax.
69413
69414 2007-03-06  Bruno Haible  <bruno@clisp.org>
69415
69416         * modules/snprintf-posix-tests: New file.
69417         * tests/test-snprintf-posix.c: New file.
69418
69419         * modules/snprintf-posix: New file.
69420         * m4/snprintf-posix.m4: New file.
69421         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69422         gl_FUNC_SNPRINTF.
69423         (gl_FUNC_SNPRINTF): Invoke it.
69424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69425         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69426         is set.
69427         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69428
69429 2007-03-06  Bruno Haible  <bruno@clisp.org>
69430
69431         * modules/vsnprintf-posix-tests: New file.
69432         * tests/test-vsnprintf-posix.c: New file.
69433         * tests/test-snprintf-posix.h: New file.
69434
69435         * modules/vsnprintf-posix: New file.
69436         * m4/vsnprintf-posix.m4: New file.
69437         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69438         gl_FUNC_VSNPRINTF.
69439         (gl_FUNC_VSNPRINTF): Invoke it.
69440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69441         * lib/stdio_.h (vsnprintf): Define as a replacement if
69442         REPLACE_VSNPRINTF is set.
69443         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69444
69445 2007-03-06  Bruno Haible  <bruno@clisp.org>
69446
69447         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69449
69450 2007-03-06  Bruno Haible  <bruno@clisp.org>
69451
69452         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69453         (asinl): Declare also if HAVE_DECL_ASINL is set.
69454         (atanl): Declare also if HAVE_DECL_ATANL is set.
69455         (ceill): Declare also if HAVE_DECL_CEILL is set.
69456         (cosl): Declare also if HAVE_DECL_COSL is set.
69457         (expl): Declare also if HAVE_DECL_EXPL is set.
69458         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69459         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69460         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69461         (logl): Declare also if HAVE_DECL_LOGL is set.
69462         (sinl): Declare also if HAVE_DECL_SINL is set.
69463         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69464         (tanl): Declare also if HAVE_DECL_TANL is set.
69465         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69468         declaration of frexpl, ldexpl.
69469         * modules/printf-frexpl (Depends-on): Add math.
69470         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69471
69472 2007-03-05  Bruno Haible  <bruno@clisp.org>
69473
69474         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69475         frexpl and ldexpl are declared.
69476         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69477
69478 2007-03-05  Bruno Haible  <bruno@clisp.org>
69479
69480         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69481         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69482
69483 2007-03-05  Bruno Haible  <bruno@clisp.org>
69484
69485         * lib/stdio_.h: Include <stddef.h>.
69486
69487 2007-03-05  Bruno Haible  <bruno@clisp.org>
69488
69489         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69490
69491 2007-03-05  Bruno Haible  <bruno@clisp.org>
69492
69493         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69494         NetBSD 4, from Ralf Wildenhues.
69495
69496 2007-03-04  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/vasprintf.h: Update #if logic for the case when the functions
69499         exist but are overridden.
69500
69501 2007-03-04  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69504         implementations: glibc-2.4 and MacOS X 10.3.
69505         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69506         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69507         * tests/test-vasprintf-posix.c (test_function): Likewise.
69508
69509 2007-03-04  Bruno Haible  <bruno@clisp.org>
69510
69511         * modules/vasprintf-posix-tests: New file.
69512         * tests/test-vasprintf-posix.c: New file.
69513
69514         * modules/vasprintf-posix: New file.
69515         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69516         defined.
69517         * m4/vasprintf-posix.m4: New file.
69518         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69519         gl_FUNC_VASPRINTF.
69520         (gl_FUNC_VASPRINTF): Invoke it.
69521         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69522         here.
69523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69524
69525 2007-03-04  Bruno Haible  <bruno@clisp.org>
69526
69527         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69528         REPLACE_GETTIMEOFDAY.
69529         * modules/sys_time (Makefile.am): Likewise.
69530         * m4/sys_time_h.m4: Likewise.
69531         * m4/gettimeofday.m4: Likewise.
69532
69533 2007-03-04  Bruno Haible  <bruno@clisp.org>
69534
69535         * modules/vasnprintf-posix-tests: New file.
69536         * tests/test-vasnprintf-posix.c: New file.
69537
69538         * modules/vasnprintf-posix: New file.
69539         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69540         printf-frexpl.h.
69541         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69542         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69543         REPLACE_VASNPRINTF is defined.
69544         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69545         gl_FUNC_VASNPRINTF.
69546         (gl_FUNC_VASNPRINTF): Invoke it.
69547         * m4/vasnprintf-posix.m4: New file.
69548         * m4/printf.m4: New file.
69549
69550 2007-03-04  Bruno Haible  <bruno@clisp.org>
69551
69552         Compile progreloc.c only if --enable-relocatable is specified.
69553         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69554         if --enable-relocatable was specified.
69555         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69556         lib_SOURCES.
69557
69558 2007-03-04  Jim Meyering  <jim@meyering.net>
69559
69560         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69561         Use it consistently, rather than enumerating errno constants.
69562
69563 2007-03-04  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/xvasprintf-tests: New file.
69566         * tests/test-xvasprintf.c: New file.
69567
69568         * modules/vasprintf-tests: New file.
69569         * tests/test-vasprintf.c: New file.
69570
69571         * modules/vasnprintf-tests: New file.
69572         * tests/test-vasnprintf.c: New file.
69573
69574         * modules/vsnprintf-tests: New file.
69575         * tests/test-vsnprintf.c: New file.
69576
69577         * modules/snprintf-tests: New file.
69578         * tests/test-snprintf.c: New file.
69579
69580 2007-03-04  Bruno Haible  <bruno@clisp.org>
69581
69582         Compile relocatable.c only if --enable-relocatable is specified.
69583         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69584         gl_RELOCATABLE_LIBRARY.
69585         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69586         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69587         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69588         gl_RELOCATABLE_LIBRARY.
69589         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69590         (Makefile.am): Remove lib_SOURCES.
69591         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69592         gl_RELOCATABLE_LIBRARY.
69593         (Makefile.am): Remove lib_SOURCES.
69594         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69595         always.
69596         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69597         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69598
69599 2007-03-04  Bruno Haible  <bruno@clisp.org>
69600
69601         * modules/argmatch-tests: New file.
69602         * tests/test-argmatch.c: New file.
69603
69604         * tests/test-allocsa.c (main): Halve the number of loop runs.
69605
69606         * modules/alloca-opt-tests: New file.
69607         * tests/test-alloca-opt.c: New file.
69608
69609 2007-03-04  Jim Meyering  <jim@meyering.net>
69610
69611         Work around difference between Linux ACLs and Solaris 10 ZFS.
69612         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69613         for EINVAL.
69614
69615 2007-03-03  Bruno Haible  <bruno@clisp.org>
69616
69617         * modules/relocatable-prog (Depends-on): Add back progreloc's
69618         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69619
69620 2007-03-03  Bruno Haible  <bruno@clisp.org>
69621
69622         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69623         * modules/relocatable-lib: New file.
69624
69625 2007-03-03  Bruno Haible  <bruno@clisp.org>
69626
69627         * modules/relocatable-prog: Renamed from modules/relocatable.
69628         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69629
69630 2007-03-03  Bruno Haible  <bruno@clisp.org>
69631
69632         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69633         m4/relocatable-lib.m4.
69634         (Depends-on): Remove 'relocatable'.
69635         (configure.ac): Add gl_RELOCATABLE_NOP.
69636
69637 2007-03-03  Bruno Haible  <bruno@clisp.org>
69638
69639         * modules/relocatable-prog-wrapper: New file.
69640         * modules/relocatable (Depends-on): Add it. Remove all other
69641         dependencies except progname.
69642         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69643
69644         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69645         (gl_FUNC_STRERROR): Nop.
69646         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69647
69648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69649         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69650
69651         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69652         (gl_FUNC_READLINK): Update.
69653
69654         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69655
69656 2007-03-03  Bruno Haible  <bruno@clisp.org>
69657
69658         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69659         * modules/xreadlink (Depends-on): Add unistd.
69660         * modules/xreadlink-with-size (Depends-on): Likewise.
69661
69662 2007-03-03  Bruno Haible  <bruno@clisp.org>
69663
69664         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69665         extracted from gt_FUNC_SETENV.
69666         (gt_FUNC_SETENV): Remove macro.
69667         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69668         remove gt_FUNC_SETENV.
69669
69670 2007-03-03  Bruno Haible  <bruno@clisp.org>
69671
69672         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69673         ENABLE_RELOCATABLE here.
69674         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69675
69676 2007-03-03  Bruno Haible  <bruno@clisp.org>
69677
69678         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69679         * tests/test-rbtreehash_list.c: Include progname.h.
69680         (main): Call set_program_name.
69681
69682         * modules/rbtree-oset-tests (Depends-on): Add progname.
69683         * tests/test-rbtree_oset.c: Include progname.h.
69684         (main): Call set_program_name.
69685
69686         * modules/rbtree-list-tests (Depends-on): Add progname.
69687         * tests/test-rbtree_list.c: Include progname.h.
69688         (main): Call set_program_name.
69689
69690         * modules/linked-list-tests (Depends-on): Add progname.
69691         * tests/test-linked_list.c: Include progname.h.
69692         (main): Call set_program_name.
69693
69694 2007-03-03  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69697         All uses of __restrict changed to _Restrict_.
69698         * lib/glob_.h (__restrict): Remove macro.
69699
69700 2007-03-02  Bruno Haible  <bruno@clisp.org>
69701
69702         * modules/gettext (configure.ac): Require gettext infrastructure
69703         from version 0.16.1.
69704
69705 2007-03-02  Bruno Haible  <bruno@clisp.org>
69706
69707         * modules/linkedhash-list-tests (Depends-on): Add progname.
69708         * tests/test-linkedhash_list.c: Include progname.h.
69709         (main): Call set_program_name.
69710
69711         * modules/carray-list-tests (Depends-on): Add progname.
69712         * tests/test-carray_list.c: Include progname.h.
69713         (main): Call set_program_name.
69714
69715         * modules/avltreehash-list-tests (Depends-on): Add progname.
69716         * tests/test-avltreehash_list.c: Include progname.h.
69717         (main): Call set_program_name.
69718
69719         * modules/avltree-oset-tests (Depends-on): Add progname.
69720         * tests/test-avltree_oset.c: Include progname.h.
69721         (main): Call set_program_name.
69722
69723         * modules/avltree-list-tests (Depends-on): Add progname.
69724         * tests/test-avltree_list.c: Include progname.h.
69725         (main): Call set_program_name.
69726
69727         * modules/array-oset-tests (Depends-on): Add progname.
69728         * tests/test-array_oset.c: Include progname.h.
69729         (main): Call set_program_name.
69730
69731         * modules/array-list-tests (Depends-on): Add progname.
69732         * tests/test-array_list.c: Include progname.h.
69733         (main): Call set_program_name.
69734
69735         * modules/argp-tests (Depends-on): Add progname.
69736         * tests/test-argp.c: Include argp.h first. Include progname.h.
69737         (main): Call set_program_name.
69738
69739 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * doc/gnulib-tool.texi (Initial import): Reword description of
69742         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69743         limited effect even if defined after the first system include.
69744
69745 2007-03-01  Bruno Haible  <bruno@clisp.org>
69746
69747         * build-aux/config.libpath: Update to libtool-1.5.22.
69748         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69749
69750 2007-03-01  Bruno Haible  <bruno@clisp.org>
69751
69752         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69753         foo_CFLAGS.
69754         Reported by Ralf Wildenhues.
69755
69756 2007-03-01  Bruno Haible  <bruno@clisp.org>
69757
69758         * build-aux/install-reloc: Remove object files left over by some
69759         compilers.
69760         Reported by Ralf Wildenhues.
69761
69762 2007-03-01  Bruno Haible  <bruno@clisp.org>
69763
69764         * build-aux/install-reloc: Break long lines.
69765
69766 2007-03-01  Bruno Haible  <bruno@clisp.org>
69767
69768         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69769         Reported by Ralf Wildenhues.
69770
69771 2007-03-01  Bruno Haible  <bruno@clisp.org>
69772
69773         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69774         include ordering constraints.
69775
69776 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69780         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69781         as another example.
69782         * lib/time_.h: Fix misspelling.
69783         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69784         Require gl_HEADER_TIME_H_DEFAULTS.
69785         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69786         * m4/time_r.m4 (gl_TIME_R): Likewise.
69787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69788
69789 2007-03-01  Bruno Haible  <bruno@clisp.org>
69790
69791         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69792         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69793
69794 2007-03-01  Jim Meyering  <jim@meyering.net>
69795
69796         * modules/xreadlink (Maintainer): Add my name.
69797         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69798
69799 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69800             Bruno Haible  <bruno@clisp.org>
69801
69802         * build-aux/install-reloc: Compile also c-ctype.c.
69803         * build-aux/relocatable.sh.in: New file.
69804         * doc/relocatable.texi: New file.
69805         * doc/relocatable-maint.texi: New file.
69806         * doc/gnulib.texi: Include relocatable-maint.texi.
69807         * lib/progreloc.c: Include unistd.h unconditionally.
69808         * lib/relocwrapper.c: Include unistd.h unconditionally.
69809         Include c-ctype.h.
69810         (add_dotbin): Use c_tolower.
69811         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69812         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69813         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69814         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69815         to m4/relocatable-lib.m4.
69816         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69817         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69818         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69819         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69820         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69821         * modules/relocatable: New file.
69822         * modules/relocatable-lib: New file.
69823         * modules/relocatable-script: New file.
69824
69825 2007-02-28  Bruno Haible  <bruno@clisp.org>
69826
69827         Import --enable-relocatable infrastructure.
69828         * build-aux/config.libpath: New file, from GNU gettext.
69829         * build-aux/install-reloc: New file, from GNU gettext.
69830         * build-aux/reloc-ldflags: New file, from GNU gettext.
69831         * lib/relocatable.h: New file, from GNU gettext.
69832         * lib/relocatable.c: New file, from GNU gettext.
69833         * lib/relocwrapper.c: New file, from GNU gettext.
69834         * m4/relocatable.m4: New file, from GNU gettext.
69835
69836 2007-02-28  Bruno Haible  <bruno@clisp.org>
69837
69838         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69839
69840         * modules/xreadlink: New file, from GNU gettext with modifications.
69841         * lib/xreadlink.c: New file, from GNU gettext.
69842         * lib/xreadlink.h: Add comments.
69843         (xreadlink): New declaration.
69844
69845         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69846         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69847         lib/xreadlink-with-size.c.
69848         (configure.ac): Remove gl_XREADLINK invocation.
69849         (Makefile.am): Augment lib_SOURCES.
69850         * m4/xreadlink.m4: Remove file.
69851         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69852         (xreadlink_with_size): Renamed from xreadink.
69853         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69854         * modules/canonicalize (Depends-on): Replace xreadlink with
69855         xreadlink-with-size.
69856         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69857
69858 2007-02-25  Jim Meyering  <jim@meyering.net>
69859
69860         * build-aux/announce-gen: When complaining about excess arguments,
69861         list them.
69862
69863 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * README: Document signed integer overflow situation more
69866         accurately.
69867
69868 2007-02-25  Bruno Haible  <bruno@clisp.org>
69869
69870         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69871         'a' or 'A' conversion.
69872
69873 2007-02-25  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/filename: Renamed from modules/pathname.
69876         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69877         lib/concatpath.c with lib/concat-filename.c.
69878         (Makefile.am): Update.
69879         (Include): Replace pathname.h with filename.h.
69880         * lib/filename.h: Renamed from lib/pathname.h.
69881         (concatenated_filename): Renamed from concatenated_pathname.
69882         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69883         (concatenated_filename): Renamed from concatenated_pathname.
69884         * lib/findprog.c: Include filename.h instead of pathname.h.
69885         (find_in_path): Update.
69886         * lib/javacomp.c: Include filename.h instead of pathname.h.
69887         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69888         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69889         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69890         is_oldgcj_14_13_usable, is_javac_usable): Update.
69891         * lib/javaexec.c: Include filename.h instead of pathname.h.
69892         (execute_java_class): Update.
69893         * modules/findprog: Update.
69894         * modules/javacomp: Update.
69895         * modules/javaexec: Update.
69896         * MODULES.html.sh (File system functions): Add 'filename', remove
69897         'pathname'.
69898
69899 2007-02-25  Bruno Haible  <bruno@clisp.org>
69900
69901         * modules/printf-frexpl-tests: New file.
69902         * tests/test-printf-frexpl.c: New file.
69903
69904         * modules/printf-frexpl: New file.
69905         * lib/printf-frexpl.h: New file.
69906         * lib/printf-frexpl.c: New file.
69907         * m4/printf-frexpl.m4: New file.
69908
69909 2007-02-25  Bruno Haible  <bruno@clisp.org>
69910
69911         * modules/printf-frexp-tests: New file.
69912         * tests/test-printf-frexp.c: New file.
69913
69914         * modules/printf-frexp: New file.
69915         * lib/printf-frexp.h: New file.
69916         * lib/printf-frexp.c: New file.
69917         * m4/printf-frexp.m4: New file.
69918
69919 2007-02-25  Bruno Haible  <bruno@clisp.org>
69920
69921         Assume automake >= 1.10 for the tests.
69922         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69923         * modules/arctwo-tests: Likewise.
69924         * modules/argp-tests: Likewise.
69925         * modules/avltree-list-tests: Likewise.
69926         * modules/avltree-oset-tests: Likewise.
69927         * modules/avltreehash-list-tests: Likewise.
69928         * modules/carray-list-tests: Likewise.
69929         * modules/crc-tests: Likewise.
69930         * modules/des-tests: Likewise.
69931         * modules/gc-arcfour-tests: Likewise.
69932         * modules/gc-arctwo-tests: Likewise.
69933         * modules/gc-des-tests: Likewise.
69934         * modules/gc-hmac-md5-tests: Likewise.
69935         * modules/gc-hmac-sha1-tests: Likewise.
69936         * modules/gc-md2-tests: Likewise.
69937         * modules/gc-md4-tests: Likewise.
69938         * modules/gc-md5-tests: Likewise.
69939         * modules/gc-pbkdf2-sha1-tests: Likewise.
69940         * modules/gc-rijndael-tests: Likewise.
69941         * modules/gc-sha1-tests: Likewise.
69942         * modules/gc-tests: Likewise.
69943         * modules/getaddrinfo-tests: Likewise.
69944         * modules/hmac-md5-tests: Likewise.
69945         * modules/hmac-sha1-tests: Likewise.
69946         * modules/linked-list-tests: Likewise.
69947         * modules/linkedhash-list-tests: Likewise.
69948         * modules/lock-tests: Likewise.
69949         * modules/md2-tests: Likewise.
69950         * modules/md4-tests: Likewise.
69951         * modules/md5-tests: Likewise.
69952         * modules/rbtree-list-tests: Likewise.
69953         * modules/rbtree-oset-tests: Likewise.
69954         * modules/rbtreehash-list-tests: Likewise.
69955         * modules/read-file-tests: Likewise.
69956         * modules/rijndael-tests: Likewise.
69957         * modules/stdint-tests: Likewise.
69958         * modules/tls-tests: Likewise.
69959
69960 2007-02-24  Bruno Haible  <bruno@clisp.org>
69961
69962         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69963         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69964         function; instead check whether isnan with a double argument links.
69965         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69966         function; instead check whether isnan with a 'long double' argument
69967         links.
69968         Reported by Eric Blake <ebb9@byu.net>.
69969
69970 2007-02-24  Bruno Haible  <bruno@clisp.org>
69971
69972         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69973         defined.
69974         * lib/isnanl.c: Remove all code. Just include isnan.c.
69975         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69976
69977 2007-02-25  Jim Meyering  <jim@meyering.net>
69978
69979         Avoid conflicting types for 'unsetenv' on FreeBSD.
69980         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69981         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69982         in stdlib.h.
69983
69984 2007-02-24  Bruno Haible  <bruno@clisp.org>
69985
69986         * modules/isnanl-nolibm-tests: New file.
69987         * tests/test-isnanl.c: New file.
69988
69989         * modules/isnanl-nolibm: New file.
69990         * lib/isnanl.h: New file.
69991         * lib/isnanl.c: New file.
69992         * m4/isnanl.m4: New file.
69993
69994 2007-02-24  Bruno Haible  <bruno@clisp.org>
69995
69996         * modules/isnan-nolibm-tests: New file.
69997         * tests/test-isnan.c: New file.
69998
69999         * modules/isnan-nolibm: New file.
70000         * lib/isnan.h: New file.
70001         * lib/isnan.c: New file.
70002         * m4/isnan.m4: New file.
70003
70004 2007-02-24  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70007         assume that an exponent fits in 20 bits.
70008
70009 2007-02-24  Jim Meyering  <jim@meyering.net>
70010
70011         * m4/regex.m4: Update the description of the configure-time option,
70012         --without-included-regex, to state accurately what the defaults are,
70013         and perhaps to give people an idea why using this option is risky.
70014
70015 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70016
70017         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70018         loops on small arguments.  This attempts to avoid the problem
70019         Bruno Haible reported for AIX 4.3.2 in
70020         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70021
70022 2007-02-23  Bruno Haible  <bruno@clisp.org>
70023
70024         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70025         Needed for help2man.
70026
70027 2007-02-23  Karl Berry  <karl@gnu.org>
70028
70029         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70030         exists, foo.h should be cvs-ignored, not committed.
70031
70032 2007-02-23  Eric Blake  <ebb9@byu.net>
70033
70034         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70035         * lib/stat-time.h (includes): Likewise.
70036         * lib/utimecmp.c (includes): Likewise.
70037         * lib/utimens.h (includes): Likewise.
70038         * lib/getdate.y (includes): Also include "timespec.h" for use
70039         internal to the module.
70040         * modules/utimens (Depends-on): Revert yesterday's patch.
70041         * modules/nanosleep (Depends-on): Add missing dependency.
70042
70043 2007-02-22  Bruno Haible  <bruno@clisp.org>
70044
70045         * lib/glob.c: Don't include getlogin_r.h.
70046
70047 2007-02-22  Jim Meyering  <jim@meyering.net>
70048
70049         * modules/utimens (Depends-on): Add timespec, required for
70050         utimens.h's inclusion of timespec.h.
70051
70052 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70055         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70056         Schwab in
70057         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70058         I'll try to think of a better way to fix the Solaris problem.
70059
70060         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70061         like glibc; on Solaris 10, it fails with errno == EINVAL.
70062         POSIX says the behavior is unspecified if the first argument is NULL,
70063         so play it safe and never pass NULL to the system getcwd.
70064
70065 2007-02-21  Jim Meyering  <jim@meyering.net>
70066
70067         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70068         of gettimeofday.  It would conflict with the one now always
70069         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70070         an IRIX 6.5 build failure.
70071
70072 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         Minor fixups to port to Solaris 10 with Sun C 5.8.
70075         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70076         * modules/getcwd (Depends-on): Add dirfd.
70077         * lib/putenv.c (putenv): #undef it.
70078         (rpl_putenv): New decl.
70079         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70080
70081 2007-02-20  Bruno Haible  <bruno@clisp.org>
70082
70083         * modules/stdio-tests: New file.
70084         * tests/test-stdio.c: New file.
70085
70086         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70087         (Depends-on): Add stdio.
70088         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70089         (Include): Use <stdio.h> instead of vsnprintf.h.
70090         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70091         HAVE_DECL_VSNPRINTF.
70092         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70093
70094         * modules/snprintf (Files): Remove lib/snprintf.h.
70095         (Depends-on): Add stdio.
70096         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70097         (Include): Use <stdio.h> instead of snprintf.h.
70098         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70099         HAVE_DECL_SNPRINTF.
70100         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70101         * lib/getaddrinfo.c: Likewise.
70102
70103         * modules/stdio: New file.
70104         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70105         * lib/snprintf.h: Remove file.
70106         * lib/vsnprintf.h: Remove file.
70107         * lib/.cppi-disable: Remove snprintf.h.
70108         * m4/stdio_h.m4: New file.
70109         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70110
70111 2007-02-20  Jim Meyering  <jim@meyering.net>
70112
70113         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70114         used by e.g., mingw.  From Bruno Haible.
70115
70116 2007-02-19  Bruno Haible  <bruno@clisp.org>
70117
70118         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70119         warnings.
70120         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70121
70122 2007-02-19  Bruno Haible  <bruno@clisp.org>
70123
70124         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70125         from mingw users.
70126
70127 2007-02-19  Bruno Haible  <bruno@clisp.org>
70128
70129         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70130         warnings.
70131         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70132
70133 2007-02-19  Jim Meyering  <jim@meyering.net>
70134
70135         Don't use FD after a successful "fdopendir (fd)".
70136         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70137         Reset it by calling dirfd on the just-obtained DIR*.
70138
70139         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70140         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70141
70142 2007-02-18  Bruno Haible  <bruno@clisp.org>
70143
70144         * lib/readlink.c: Include <unistd.h>.
70145         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70146         HAVE_READLINK.
70147         * modules/readlink (Depends-on): Add unistd.
70148         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70149         (Include): Add <unistd.h>.
70150
70151         * lib/getlogin_r.h: Remove file.
70152         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70153         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70154         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70155         HAVE_DECL_GETLOGIN_R.
70156         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70158         (Include): Use <unistd.h> instead of getlogin_r.h.
70159
70160         * lib/getcwd.h: Remove file.
70161         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70162         * lib/xgetcwd.c: Likewise.
70163         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70164         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70165         * modules/getcwd (Files): Remove lib/getcwd.h.
70166         (Depends-on): Add unistd.
70167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70168         (Include): Use <unistd.h> instad of getcwd.h.
70169
70170         * lib/ftruncate.c: Include <unistd.h> first.
70171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70172         Set HAVE_FTRUNCATE.
70173         * modules/ftruncate (Depends-on): Add unistd.
70174         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70175
70176         * lib/fchdir.c: Include <unistd.h> first.
70177         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70179         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70180         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70181         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70182
70183         * lib/dup2.c: Include <unistd.h> first.
70184         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70185         HAVE_DUP2.
70186         * modules/dup2 (Depends-on): Add unistd.
70187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70188
70189         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70190         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70191         REPLACE_CHOWN. Don't define chown as a macro here.
70192         * modules/chown (Depends-on): Add unistd.
70193         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70194
70195         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70196         Add definition for GL_LINK_WARNING.
70197         (chown, dup2): New declarations.
70198         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70199         link warning.
70200         (ftruncate): New declaration.
70201         (getcwd): New declaration, taken from old getcwd.h.
70202         (getlogin_r): New declaration, taken from old getlogin_r.h.
70203         (readlink): New declaration.
70204         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70205         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70206         (gl_PREREQ_UNISTD): Remove macro.
70207         (gl_UNISTD_MODULE_INDICATOR): New macro.
70208         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70209         many new variables. Don't set UNISTD_H.
70210         * modules/unistd (Description): Change.
70211         (Depends-on): Add link-warning.
70212         (configure.ac): Update.
70213         (Makefile.am): Create unistd.h always. Substitute many new variables
70214         into it.
70215
70216 2007-02-18  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70219         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70220         HAVE_GETSUBOPT.
70221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70222         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70223         * lib/getsubopt.h: Remove file.
70224         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70225         (Depends-on): Add stdlib.
70226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70227         (Includes): Use <stdlib.h> instead of getsubopt.h.
70228         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70229         Set HAVE_GETSUBOPT.
70230         * lib/getsubopt.c: Don't include getsubopt.h.
70231
70232 2007-02-18  Bruno Haible  <bruno@clisp.org>
70233
70234         * modules/fchdir (Depends-on): Add dup2.
70235
70236 2007-02-18  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/stdlib_.h: Handle glibc's special invocation convention
70239         specially.
70240
70241 2007-02-18  Bruno Haible  <bruno@clisp.org>
70242
70243         * modules/stdlib-tests: New file.
70244         * tests/test-stdlib.c: New file.
70245
70246         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70247         (Depends-on): Add stdlib.
70248         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70249         (Includes): Use <stdlib.h> instead of mkstemp.h.
70250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70251         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70252         * lib/mkstemp.c: Don't include mkstemp.h.
70253         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70254         * lib/stdlib--.h: Don't include mkstemp.h.
70255
70256         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70257         (Depends-on): Add stdlib.
70258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70259         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70260         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70261         HAVE_MKDTEMP.
70262         * lib/mkdtemp.c: Don't include mkdtemp.h.
70263         * lib/clean-temp.c: Don't include mkdtemp.h.
70264
70265         * modules/exit (Files): Remove lib/exit.h.
70266         (Depends-on): Add stdlib.
70267         (Makefile.am): Remove lib_SOURCES.
70268         (Include): Use <stdlib.h> instead of exit.h.
70269         * lib/argmatch.c: Don't include exit.h.
70270         * lib/execute.c: Likewise.
70271         * lib/pagealign_alloc.c: Likewise.
70272         * lib/pipe.c: Likewise.
70273         * lib/wait-process.c: Likewise.
70274         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70275         * lib/exitfail.c: Likewise.
70276         * lib/savewd.c: Likewise.
70277         * lib/xsetenv.c: Likewise.
70278
70279         * modules/stdlib: New file.
70280         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70281         and extra comments about mkstemp().
70282         * lib/exit.h: Remove file.
70283         * lib/mkdtemp.h: Remove file.
70284         * lib/mkstemp.h: Remove file.
70285         * m4/stdlib_h.m4: New file.
70286         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70287
70288 2007-02-18  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/math-tests: New file.
70291         * tests/test-math.c: New file.
70292
70293         * modules/math: New file.
70294         * modules/mathl (Files): Remove lib/mathl.h.
70295         (Depends-on): Add math.
70296         (Makefile.am): Don't mention mathl.h.
70297         (Include): Use <math.h> instead of mathl.h.
70298         * lib/math_.h: New file.
70299         * lib/mathl.h: Remove file.
70300         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70301         mathl.h.
70302         * lib/asinl.c: Likewise.
70303         * lib/atanl.c: Likewise.
70304         * lib/ceill.c: Likewise.
70305         * lib/cosl.c: Likewise.
70306         * lib/expl.c: Likewise.
70307         * lib/floorl.c: Likewise.
70308         * lib/frexpl.c: Likewise.
70309         * lib/ldexpl.c: Likewise.
70310         * lib/logl.c: Likewise.
70311         * lib/sincosl.c: Likewise.
70312         * lib/sinl.c: Likewise.
70313         * lib/sqrtl.c: Likewise.
70314         * lib/tanl.c: Likewise.
70315         * lib/trigl.c: Likewise.
70316         * m4/math_h.m4: New file.
70317         * MODULES.html.sh (Mathematics): Add math.
70318
70319 2007-02-17  Bruno Haible  <bruno@clisp.org>
70320
70321         * modules/wctype-tests: New file.
70322         * tests/test-wctype.c: New file.
70323
70324         * modules/wchar-tests: New file.
70325         * tests/test-wchar.c: New file.
70326
70327         * modules/unistd-tests: New file.
70328         * tests/test-unistd.c: New file.
70329
70330         * modules/time-tests: New file.
70331         * tests/test-time.c: New file.
70332
70333         * modules/sysexits-tests: New file.
70334         * tests/test-sysexits.c: New file.
70335
70336         * modules/sys_time-tests: New file.
70337         * tests/test-sys_time.c: New file.
70338
70339         * modules/sys_stat-tests: New file.
70340         * tests/test-sys_stat.c: New file.
70341
70342         * modules/sys_socket-tests: New file.
70343         * tests/test-sys_socket.c: New file.
70344
70345         * modules/sys_select-tests: New file.
70346         * tests/test-sys_select.c: New file.
70347
70348         * modules/string-tests: New file.
70349         * tests/test-string.c: New file.
70350
70351         * modules/stdbool-tests: New file.
70352         * tests/test-stdbool.c: New file.
70353
70354         * modules/netinet_in-tests: New file.
70355         * tests/test-netinet_in.c: New file.
70356
70357         * modules/inttypes-tests: New file.
70358         * tests/test-inttypes.c: New file.
70359
70360         * modules/fcntl-tests: New file.
70361         * tests/test-fcntl.c: New file.
70362
70363         * modules/byteswap-tests: New file.
70364         * tests/test-byteswap.c: New file.
70365
70366         * modules/arpa_inet-tests: New file.
70367         * tests/test-arpa_inet.c: New file.
70368
70369 2007-02-17  Bruno Haible  <bruno@clisp.org>
70370
70371         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70372         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70373         if the corresponding module is not enabled. Emit link warnings if
70374         the function is used nevertheless.
70375         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70376         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70377         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70378         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70379         * modules/inttypes (Depends-on): Add link-warning.
70380         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70381         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70382         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70383         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70384         * modules/imaxdiv (configure.ac): Likewise.
70385         * modules/strtoimax (configure.ac): Likewise.
70386         * modules/strtoumax (configure.ac): Likewise.
70387
70388 2007-02-17  Bruno Haible  <bruno@clisp.org>
70389
70390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70391         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70392         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70393         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70394
70395 2007-02-17  Bruno Haible  <bruno@clisp.org>
70396
70397         * modules/link-warning: New file.
70398         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70399         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70400         * modules/string (Depends-on): Add link-warning.
70401         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70402         string.h.
70403         * MODULES.html.sh (Support for building libraries and executables): Add
70404         link-warning.
70405
70406 2007-02-17  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70409         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70410         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70411         long lines.
70412
70413 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70414             Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/tmpfile: New file.
70417         * lib/tmpfile.c: New file.
70418         * m4/tmpfile.m4: New file.
70419         * MODULES.html.sh (func_all_modules): New section "Input/output".
70420
70421 2007-02-15  Bruno Haible  <bruno@clisp.org>
70422
70423         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70424         (supports_delete_on_close): New function.
70425         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70426
70427 2007-02-14  Bruno Haible  <bruno@clisp.org>
70428
70429         * modules/mbspcasecmp-tests: New file.
70430         * tests/test-mbspcasecmp.sh: New file.
70431         * tests/test-mbspcasecmp.c: New file.
70432
70433         New module mbspcasecmp.
70434         * modules/mbspcasecmp: New file.
70435         * lib/mbspcasecmp.c: New file.
70436         * lib/string_.h (strncasecmp): Change warning message.
70437         (mbspcasecmp): New declaration.
70438         * m4/mbspcasecmp.m4: New file.
70439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70440         GNULIB_MBSPCASECMP.
70441         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70442         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70443
70444 2007-02-14  Bruno Haible  <bruno@clisp.org>
70445
70446         * modules/mbsncasecmp-tests: New file.
70447         * tests/test-mbsncasecmp.sh: New file.
70448         * tests/test-mbsncasecmp.c: New file.
70449
70450         New module mbsncasecmp.
70451         * modules/mbsncasecmp: New file.
70452         * lib/mbsncasecmp.c: New file.
70453         * lib/string_.h (mbsncasecmp): New declaration.
70454         * m4/mbsncasecmp.m4: New file.
70455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70456         GNULIB_MBSNCASECMP.
70457         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70458         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70459
70460 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70461
70462         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70463         Verify that it doesn't overlap with our flags.
70464         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70465         do not have the desired effect in multibyte locales; instead, use
70466         mbscasecmp.
70467         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70468         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70469         we don't require GNU fnmatch ourselves (if our users require it, they
70470         should do so explicitly).
70471
70472         Fix regex code so it doesn't rely on strcasecmp.
70473         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70474         Otherwise, include gnulib's langinfo.h.
70475         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70476         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70477         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70478         * modules/regex (FILES): Remove m4/codeset.m4.
70479         (Depends-on): Add localcharset.  Remove strcase.
70480
70481 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70482
70483         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70484         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70485
70486 2007-02-13  Bruno Haible  <bruno@clisp.org>
70487
70488         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70489         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70490
70491 2007-02-12  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70494         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70495         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70496         time warning rather than a link error.
70497
70498 2007-02-12  Bruno Haible  <bruno@clisp.org>
70499
70500         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70501         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70502         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70503
70504 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70507         args, not 2.
70508
70509 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70510
70511         New module 'time', so that apps can include <time.h> as per
70512         POSIX and GNU instead of separate include files like time_r.h
70513         and timegm.h.  This implementation tries out a simpler approach
70514         for replacing decls in standard include files (as compared to
70515         the string module), somewhat as an experiment.
70516
70517         * config/srclist.txt: Comment out mktime.c for now.
70518         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70519         since it doesn't apply any more.  Use generic wording instead.
70520         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70521         'time'.
70522         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70523         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70524         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70525         Don't include <sys/types.h>; no longer needed since we assume C89.
70526         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70527         * lib/strftime.c: Likewise.
70528         * lib/time_r.c: Likewise.
70529         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70530         * lib/nanosleep.c: Include <time.h> first, to check interface.
70531         * lib/strptime.c: Likewise.
70532         * lib/time_r.c: Likewise.
70533         * lib/timegm.c: Likewise.
70534         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70535         needed.
70536         * lib/timegm.c: Don't include timegm.h; no longer needed.
70537         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70538         time.h now handles any problems in that area.
70539         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70540         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70541         that time.h defines struct timespec.
70542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70543         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70544         handles that.
70545         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70546         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70547         needed.  Set REPLACE_LOCALTIME.
70548         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70549         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70550         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70551         nanosleep; time_h.m4 now does that.  Don't require
70552         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70553         module handles this now.
70554         * modules/getdate (Depends-on): Remove timespec.  Add time.
70555         * modules/nanosleep (Depends-on): Likewise.
70556         * modules/stat-time (Depends-on): Likewise.
70557         * modules/nanosleep (Include): Include time.h, not timespec.h.
70558         * modules/strptime (Files): Remove lib/strptime.h.
70559         (Depends-on): Add extensions, time.
70560         (Include): Include time.h, not strptime.h.
70561         * modules/time_r (Files): Remove lib/time_r.h.
70562         (Depends-on): Add time.
70563         (Include): Include time.h, not time_r.h.
70564         * modules/timegm: Likewise.
70565         * modules/timespec (Description): Now does timespec-related decls
70566         of our own, instead of struct timespec itself.
70567         (Depends-on): Add time; remove extensions.
70568         (Maintainer): Add self.
70569         * modules/utimecmp (Depends-on): Add time; remove timespec.
70570         * modules/utimens (Depends-on): Likewise.
70571         * modules/xnanosleep (Depends-on): Likewise.
70572
70573 2007-02-11  Bruno Haible  <bruno@clisp.org>
70574
70575         * lib/c-strstr.c: Include allocsa.h.
70576         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70577         * lib/c-strcasestr.c: Include allocsa.h.
70578         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70579         * lib/strcasestr.c: Include allocsa.h.
70580         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70581         * lib/mbsstr.c: Include allocsa.h.
70582         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70583         allocsa/freesa instead of malloc/free.
70584         * lib/mbscasestr.c: Include allocsa.h.
70585         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70586         allocsa/freesa instead of malloc/free.
70587         * modules/c-strstr (Depends-on): Add allocsa.
70588         * modules/c-strcasestr (Depends-on): Likewise.
70589         * modules/strcasestr (Depends-on): Likewise.
70590         * modules/mbsstr (Depends-on): Likewise.
70591         * modules/mbscasestr (Depends-on): Likewise.
70592
70593 2007-02-11  Bruno Haible  <bruno@clisp.org>
70594
70595         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70596
70597         * modules/mbsspn-tests: New file.
70598         * tests/test-mbsspn.sh: New file.
70599         * tests/test-mbsspn.c: New file.
70600
70601 2007-02-11  Bruno Haible  <bruno@clisp.org>
70602
70603         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70604
70605         * modules/mbspbrk-tests: New file.
70606         * tests/test-mbspbrk.sh: New file.
70607         * tests/test-mbspbrk.c: New file.
70608
70609 2007-02-11  Bruno Haible  <bruno@clisp.org>
70610
70611         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70612         unneeded cast.
70613
70614         * modules/mbscspn-tests: New file.
70615         * tests/test-mbscspn.sh: New file.
70616         * tests/test-mbscspn.c: New file.
70617
70618 2007-02-11  Bruno Haible  <bruno@clisp.org>
70619
70620         * modules/mbscasecmp-tests: New file.
70621         * tests/test-mbscasecmp.sh: New file.
70622         * tests/test-mbscasecmp.c: New file.
70623
70624 2007-02-11  Bruno Haible  <bruno@clisp.org>
70625
70626         Ensure O(n) worst-case complexity of mbscasestr.
70627         * lib/mbscasestr.c: Include stdbool.h.
70628         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70629         functions.
70630         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70631         the bookkeeping indicates that it's worth it.
70632         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70633
70634         * modules/mbscasestr-tests: New file.
70635         * tests/test-mbscasestr1.c: New file.
70636         * tests/test-mbscasestr2.sh: New file.
70637         * tests/test-mbscasestr2.c: New file.
70638         * tests/test-mbscasestr3.sh: New file.
70639         * tests/test-mbscasestr3.c: New file.
70640         * tests/test-mbscasestr4.sh: New file.
70641         * tests/test-mbscasestr4.c: New file.
70642         * m4/locale-tr.m4: New file.
70643
70644 2007-02-11  Bruno Haible  <bruno@clisp.org>
70645
70646         Ensure O(n) worst-case complexity of mbsstr.
70647         * lib/mbsstr.c: Include stdbool.h.
70648         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70649         functions.
70650         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70651         bookkeeping indicates that it's worth it.
70652         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70653
70654         * modules/mbsstr-tests: New file.
70655         * tests/test-mbsstr1.c: New file.
70656         * tests/test-mbsstr2.sh: New file.
70657         * tests/test-mbsstr2.c: New file.
70658         * tests/test-mbsstr3.sh: New file.
70659         * tests/test-mbsstr3.c: New file.
70660         * m4/locale-fr.m4: New file.
70661
70662 2007-02-11  Bruno Haible  <bruno@clisp.org>
70663
70664         * lib/mbsrchr.c (mbsrchr): Fix bug.
70665
70666         * modules/mbsrchr-tests: New file.
70667         * tests/test-mbsrchr.sh: New file.
70668         * tests/test-mbsrchr.c: New file.
70669
70670 2007-02-11  Bruno Haible  <bruno@clisp.org>
70671
70672         * lib/mbschr.c (mbschr): Fix bug.
70673
70674         * modules/mbschr-tests: New file.
70675         * tests/test-mbschr.sh: New file.
70676         * tests/test-mbschr.c: New file.
70677         * m4/locale-zh.m4: New file.
70678
70679 2007-02-11  Bruno Haible  <bruno@clisp.org>
70680
70681         Support for copying multibyte string iterators.
70682         * lib/mbiter.h: Include <string.h>.
70683         (mbiter_multi_copy): New function.
70684         (mbi_copy): New macro.
70685         * lib/mbuiter.h: Include <string.h>.
70686         (mbuiter_multi_copy): New function.
70687         (mbui_copy): New macro.
70688
70689 2007-02-11  Bruno Haible  <bruno@clisp.org>
70690
70691         New module mbslen.
70692         * modules/mbslen: New file.
70693         * lib/mbslen.c: New file.
70694         * lib/string_.h (mbslen): New declaration.
70695         * m4/mbslen.m4: New file.
70696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70697         GNULIB_MBSLEN.
70698         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70699         * MODULES.html.sh (Internationalization functions): Add mbslen.
70700
70701 2007-02-11  Bruno Haible  <bruno@clisp.org>
70702
70703         Ensure O(n) worst-case complexity of strcasestr substitute.
70704         * lib/strcasestr.c: Include stdbool.h.
70705         (knuth_morris_pratt): New function.
70706         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70707         bookkeeping indicates that it's worth it.
70708         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70709
70710         * modules/strcasestr-tests: New file.
70711         * tests/test-strcasestr.c: New file.
70712
70713 2007-02-11  Bruno Haible  <bruno@clisp.org>
70714
70715         Ensure O(n) worst-case complexity of c_strcasestr.
70716         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70717         (knuth_morris_pratt): New function.
70718         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70719         the bookkeeping indicates that it's worth it.
70720         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70721
70722         * modules/c-strcasestr-tests: New file.
70723         * tests/test-c-strcasestr.c: New file.
70724
70725 2007-02-11  Bruno Haible  <bruno@clisp.org>
70726
70727         Ensure O(n) worst-case complexity of c_strstr.
70728         * lib/c-strstr.c: Include stdbool.h, string.h.
70729         (knuth_morris_pratt): New function.
70730         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70731         bookkeeping indicates that it's worth it.
70732         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70733
70734         * lib/c-strstr.c: Complete rewrite for maintainability.
70735
70736         * modules/c-strstr-tests: New file.
70737         * tests/test-c-strstr.c: New file.
70738
70739 2007-02-11  Bruno Haible  <bruno@clisp.org>
70740
70741         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70742         5.2.1 and earlier, whereby \055 was treated just like the range
70743         delimiter '-'.
70744         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70745
70746 2007-02-08  Bruno Haible  <bruno@clisp.org>
70747
70748         * modules/regex (Depends-on): Add stdbool.
70749         Reported by Dalibor Topic <robilad@kaffe.org>.
70750
70751 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70754         Prefer returning from main to exiting from it.
70755         Remove unnecessary parens after sizeof.
70756
70757 2007-02-05  Bruno Haible  <bruno@clisp.org>
70758
70759         New module mbssep.
70760         * modules/mbssep: New file.
70761         * lib/mbssep.c: New file.
70762         * lib/string_.h (strsep): Add a conditional link warning.
70763         (mbssep): New declaration.
70764         * m4/mbssep.m4: New file.
70765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70766         GNULIB_MBSSEP.
70767         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70768         * MODULES.html.sh (Internationalization functions): Add mbssep.
70769
70770 2007-02-05  Bruno Haible  <bruno@clisp.org>
70771
70772         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70773         Optimize search in case of 1 delimiter.
70774
70775 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70776
70777         * lib/acl.h: Include sys/types.h before sys/acl.h.
70778
70779 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70780
70781         Merge upstream fix for glibc bugzilla #3957:
70782
70783         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70784
70785         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70786         bit for RE_HAT_LISTS_NOT_NEWLINE.
70787         (build_charclass_op): Remove bogus comment.
70788
70789 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70790
70791         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70792
70793 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70796         * lib/memmem.c [!defined _LIBC]: Include config.h.
70797
70798 2007-02-04  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70801         warning message.
70802
70803 2007-02-04  Bruno Haible  <bruno@clisp.org>
70804
70805         New module mbstok_r.
70806         * modules/mbstok_r: New file.
70807         * lib/mbstok_r.c: New file.
70808         * lib/string_.h (strtok_r): Change argument names to match the
70809         comments. Add a conditional link warning.
70810         (mbstok_r): New declaration.
70811         * m4/mbstok_r.m4: New file.
70812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70813         GNULIB_MBSTOK_R.
70814         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70815         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70816
70817 2007-02-04  Bruno Haible  <bruno@clisp.org>
70818
70819         New module mbsspn.
70820         * modules/mbsspn: New file.
70821         * lib/mbsspn.c: New file.
70822         * lib/string_.h (strspn): Add a conditional link warning.
70823         (mbsspn): New declaration.
70824         * m4/mbsspn.m4: New file.
70825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70826         GNULIB_MBSSPN.
70827         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70828         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70829
70830 2007-02-04  Bruno Haible  <bruno@clisp.org>
70831
70832         New module mbspbrk.
70833         * modules/mbspbrk: New file.
70834         * lib/mbspbrk.c: New file.
70835         * lib/string_.h (strpbrk): Add a conditional link warning.
70836         (mbspbrk): New declaration.
70837         * m4/mbspbrk.m4: New file.
70838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70839         GNULIB_MBSPBRK.
70840         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70841         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70842
70843 2007-02-04  Bruno Haible  <bruno@clisp.org>
70844
70845         New module mbscspn.
70846         * modules/mbscspn: New file.
70847         * lib/mbscspn.c: New file.
70848         * lib/string_.h (strcspn): Add a conditional link warning.
70849         (mbscspn): New declaration.
70850         * m4/mbscspn.m4: New file.
70851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70852         GNULIB_MBSCSPN.
70853         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70854         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70855
70856 2007-02-04  Bruno Haible  <bruno@clisp.org>
70857
70858         New module mbscasestr, reduced goal of strcasestr.
70859         * modules/mbscasestr: New file.
70860         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70861         (mbscasestr): Renamed from strcasestr.
70862         * lib/strcasestr.c: Don't include mbuiter.h.
70863         (strcasestr): Remove support for multibyte locales.
70864         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70865         Change the conditional link warning.
70866         (mbscasestr): New declaration.
70867         * m4/mbscasestr.m4: New file.
70868         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70869         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70870         REPLACE_STRCASESTR.
70871         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70873         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70874         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70875         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70876         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70877         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70878         (Depends-on): Remove mbuiter.
70879         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70880
70881 2007-02-04  Bruno Haible  <bruno@clisp.org>
70882
70883         Simplify handling of strncasecmp.
70884         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70885         the conditional link warning.
70886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70887         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70888         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70889         * modules/strcase (configure.ac): Don't invoke
70890         gl_STRING_MODULE_INDICATOR.
70891         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70892
70893 2007-02-04  Bruno Haible  <bruno@clisp.org>
70894
70895         New module mbscasecmp, reduced goal of strcasecmp.
70896         * modules/mbscasecmp: New file.
70897         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70898         (mbscasecmp): Renamed from strcasecmp.
70899         * lib/strcasecmp.c: Don't include mbuiter.h.
70900         (strcasecmp): Remove support for multibyte locales.
70901         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70902         Change the conditional link warning.
70903         (mbscasecmp): New declaration.
70904         * m4/mbscasecmp.m4: New file.
70905         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70906         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70907         REPLACE_STRCASECMP.
70908         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70909         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70910         GNULIB_MBSCASECMP.
70911         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70912         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70913         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70914         (Depends-on): Remove mbuiter.
70915         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70916
70917 2007-02-04  Bruno Haible  <bruno@clisp.org>
70918
70919         New module mbsstr. Remove module strstr.
70920         * modules/mbsstr: New file.
70921         * modules/strstr: Remove file.
70922         * lib/mbsstr.c: Renamed from lib/strstr.c.
70923         (mbsstr): Renamed from strstr.
70924         * lib/string_.h (strstr): Remove declaration. Change the conditional
70925         link warning.
70926         (mbsstr): New declaration.
70927         * m4/mbsstr.m4: New file.
70928         * m4/strstr.m4: Remove file.
70929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70930         REPLACE_STRSTR.
70931         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70932         Don't initialize GNULIB_STRSTR.
70933         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70934         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70935         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70936         (Support for systems lacking ANSI C 89): Remove strstr.
70937
70938 2007-02-04  Bruno Haible  <bruno@clisp.org>
70939
70940         New module mbsrchr.
70941         * modules/mbsrchr: New file.
70942         * lib/mbsrchr.c: New file.
70943         * lib/string_.h (strrchr): Add a conditional link warning.
70944         (mbsrchr): New declaration.
70945         * m4/mbsrchr.m4: New file.
70946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70947         GNULIB_MBSRCHR.
70948         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70949         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70950
70951 2007-02-04  Bruno Haible  <bruno@clisp.org>
70952
70953         New module mbschr.
70954         * modules/mbschr: New file.
70955         * lib/mbschr.c: New file.
70956         * lib/string_.h (strchr): Add a conditional link warning.
70957         (mbschr): New declaration.
70958         * m4/mbschr.m4: New file.
70959         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70960         GNULIB_MBSCHR.
70961         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70962         * MODULES.html.sh (Internationalization functions): Add mbschr.
70963
70964 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70967
70968         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70969
70970 2007-02-04  Bruno Haible  <bruno@clisp.org>
70971
70972         New module description section 'configure.ac-early'.
70973         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70974         (func_get_autoconf_early_snippet): New function.
70975         (func_import, func_create_testdir): Use it. Remove special cases for
70976         modules 'extensions' and 'lock'.
70977         * modules/extensions (configure.ac-early): Require
70978         gl_USE_SYSTEM_EXTENSIONS.
70979         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70980
70981 2007-02-04  Bruno Haible  <bruno@clisp.org>
70982
70983         Make use of gcj-4.3's -fsource and -ftarget option.
70984         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70985         and if so try the options -fsource and -ftarget.
70986         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70987         source_version, ftarget_option, target_version arguments.
70988         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70989         (is_envjavac_oldgcj_14_14_usable): Renamed from
70990         is_envjavac_gcj_14_14_usable.
70991         (is_envjavac_oldgcj_14_13_usable): Renamed from
70992         is_envjavac_gcj_14_13_usable.
70993         (is_gcj_present): Update.
70994         (is_gcj_43, is_gcj43_usable): New functions.
70995         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70996         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70997         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70998         try the options -fsource and -ftarget.
70999
71000 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71003         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71004         larger value.
71005
71006 2007-02-03  Jim Meyering  <jim@meyering.net>
71007
71008         Give tools a better chance to allocate space for very large buffers.
71009         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71010
71011         Make pwd and readlink work also when run with an unreadable parent dir
71012         on systems with openat support.
71013         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71014         provided getcwd function, even when we have openat support.
71015         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71016
71017 2007-02-02  Bruno Haible  <bruno@clisp.org>
71018
71019         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71020         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71021         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71022         portability problems if one of these functions is only used on specific
71023         platforms.
71024         Reported by Paul Eggert.
71025
71026 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71029         is causing more trouble than it's curing.
71030         * lib/regex_internal.h (__mempcpy): Remove.
71031         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71032         (and make the code a tad smaller to boot).
71033         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71034
71035 2007-02-02  Jim Meyering  <jim@meyering.net>
71036
71037         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71038         section, not in the Makefile.am: one.
71039
71040 2007-02-02  Eric Blake  <ebb9@byu.net>
71041
71042         * lib/strchrnul.c: Always include config.h first.
71043
71044         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71045         gnulib strstr is not necessary here.
71046
71047 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71048
71049         * m4/socklen.m4: Fix typo.
71050
71051 2007-02-02  Eric Blake  <ebb9@byu.net>
71052
71053         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71054         * modules/netinet_in (Makefile.am): Likewise.
71055
71056 2007-02-01  Bruno Haible  <bruno@clisp.org>
71057
71058         * lib/string_.h (GL_LINK_WARNING): New macro.
71059         (strcasecmp, strstr, strcasestr): If provided by the system,
71060         conditionally define as a macro that leads to a warning instead of to
71061         an error.
71062         (strncasecmp): Conditionally define as a macro that leads to a warning.
71063
71064 2007-02-01  Karl Berry  <karl@gnu.org>
71065
71066         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71067
71068 2007-02-01  Bruno Haible  <bruno@clisp.org>
71069
71070         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71071         renamings.
71072
71073 2007-02-01  Eric Blake  <ebb9@byu.net>
71074
71075         * modules/regex (Depends-on): Revert dependence on mempcpy.
71076         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71077         module's definition of mempcpy.
71078         Reported by Paul Eggert.
71079
71080 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71083         the symbol XYZ before redefining it.  This fixes a problem with
71084         programs that don't use XYZ, when compiled on systems that define
71085         XYZ to something else.
71086
71087 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71088
71089         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71090         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71091         writeable to group or other and (2) is intended to have a special
71092         mode bit that is set or cleared.  In such a case, the directory
71093         should be neither group- nor other-writeable until the special
71094         mode bits are right.
71095
71096 2007-01-31  Eric Blake  <ebb9@byu.net>
71097
71098         * modules/mountlist (Depends-on): Add strstr.
71099
71100         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71101         bug.
71102         * modules/string (Makefile.am): Remove redundant replacement.
71103         * modules/regex (Depends-on): Add mempcpy.
71104
71105 2007-01-31  Bruno Haible  <bruno@clisp.org>
71106
71107         New module description field 'Link'.
71108         * gnulib-tool (func_usage): Document --extract-link-directive.
71109         (sed_extract_prog): Recognize 'Link' directive.
71110         (func_get_link_directive): New function.
71111         (func_import): Show summary of link directives.
71112         Handle --extract-link-directive option.
71113         * modules/acl (Link): New section.
71114         * modules/clock-time (Link): New section.
71115         * modules/euidaccess (Link): New section.
71116         * modules/gettext (Link): New section.
71117         * modules/iconv (Link): New section.
71118         * modules/lock (Link): New section.
71119         * modules/nanosleep (Link): New section.
71120         * modules/readline (Link): New section.
71121
71122 2007-01-27  Bruno Haible  <bruno@clisp.org>
71123
71124         Enforce the use of gnulib modules for unportable <string.h> functions.
71125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71126         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71127         (gl_HEADER_STRING_H_BODY): Require it.
71128         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71129         the symbol XYZ to one that gives a link error.
71130         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71131         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71132         * modules/mempcpy (configure.ac): Likewise.
71133         * modules/memrchr (configure.ac): Likewise.
71134         * modules/stpcpy (configure.ac): Likewise.
71135         * modules/stpncpy (configure.ac): Likewise.
71136         * modules/strcase (configure.ac): Likewise.
71137         * modules/strcasestr (configure.ac): Likewise.
71138         * modules/strchrnul (configure.ac): Likewise.
71139         * modules/strdup (configure.ac): Likewise.
71140         * modules/strndup (configure.ac): Likewise.
71141         * modules/strnlen (configure.ac): Likewise.
71142         * modules/strpbrk (configure.ac): Likewise.
71143         * modules/strsep (configure.ac): Likewise.
71144         * modules/strstr (configure.ac): Likewise.
71145         * modules/strtok_r (configure.ac): Likewise.
71146
71147 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71148
71149         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71150
71151 2007-01-30  Jim Meyering  <jim@meyering.net>
71152
71153         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71154
71155 2007-01-29  Bruno Haible  <bruno@clisp.org>
71156
71157         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71158         * lib/execute.c: Likewise.
71159         * lib/pipe.c: Likewise.
71160         * lib/printf-args.h: Likewise.
71161         * lib/printf-args.c: Likewise.
71162         * lib/printf-parse.c: Likewise.
71163         * lib/vasnprintf.c: Likewise.
71164
71165 2007-01-29  Eric Blake  <ebb9@byu.net>
71166
71167         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71168         declaration.
71169
71170 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * lib/strptime.h (strptime): Use 'restrict' for args where
71173         POSIX requires this.
71174         * lib/strptime.c (strptime): Likewise.
71175         Change license notice from LGPL to GPL, since gnulib-tool will
71176         change this as needed.
71177         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71178         defined.
71179         Include "strptime.h" first, to check interface.
71180         Do not #undef _LIBC and _NL_CURRENT.
71181         Do not include <stdlib.h>; no longer needed.
71182         Include "time_r.h" and declare ptime_locale_status
71183         only if _LIBC is not defined.
71184         (__P): Remove unused macro.
71185         (match_string): Bring back glibc version, but use it only if _LIBC
71186         is defined.
71187         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71188         Remove unnecessary assertion and abort() call.
71189         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71190         * m4/strptime.m4: Fix serial number comment.
71191         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71192         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71193         (Depends-on): Add time_r.
71194
71195 2007-01-29  Bruno Haible  <bruno@clisp.org>
71196
71197         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71198         strptime.
71199         * modules/strptime (Depends-on): Add stdbool.
71200         * lib/strptime.h: Include <time.h> always. Add comments.
71201
71202 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71203
71204         * modules/strptime: New file.
71205         * lib/strptime.h: New file.
71206         * lib/strptime.c: New file.
71207         * m4/strptime.m4: New file.
71208
71209 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         * MODULES.html.sh: New module mpsort.
71212         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71213
71214         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71215         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71217         All uses changed.
71218         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71219         All uses changed.
71220         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71221         to _Restrict_.
71222         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71223         the parameter matches the prototype.
71224
71225 2007-01-28  Jim Meyering  <jim@meyering.net>
71226
71227         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71228         sys/time.h here, reverting that part of the previous patch:
71229         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71230
71231 2007-01-28  Bruno Haible  <bruno@clisp.org>
71232
71233         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71234         value of $(SYS_TIME_H).
71235         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71236         remove it conditionally, too. [added by Jim Meyering]
71237         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71238         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71239         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71240         GETTIMEOFDAY_REPLACEMENT to 1.
71241
71242 2007-01-28  Bruno Haible  <bruno@clisp.org>
71243
71244         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71245         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71247         Set UNISTD_H instead of UNISTD_H2.
71248         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71249
71250 2007-01-28  Bruno Haible  <bruno@clisp.org>
71251
71252         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71253         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71254
71255 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71256
71257         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71258         (func_create_testdir): Ensure C locale for `grep' and `tr'
71259         character ranges.
71260         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71261         ACLOCAL_AMFLAGS parsing state machine.
71262
71263 2007-01-27  Bruno Haible  <bruno@clisp.org>
71264
71265         * modules/unistr/base: Update.
71266
71267 2007-01-27  Bruno Haible  <bruno@clisp.org>
71268
71269         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71270         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71271         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71272         modules/unistr/u32-mbtouc.
71273         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71274         * lib/unistr.h: Update.
71275         * lib/linebreak.c: Update.
71276         * modules/unistr/u32-mbtouc: Renamed from
71277         modules/unistr/u32-mbtouc-safe.
71278         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71279         * lib/unistr.h: Update.
71280         * lib/unistr/u32-to-u8.c: Update.
71281         * lib/unistr/u32-to-u16.c: Update.
71282
71283 2007-01-27  Bruno Haible  <bruno@clisp.org>
71284
71285         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71286         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71287         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71288         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71289         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71290         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71291         modules/unistr/u16-mbtouc.
71292         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71293         * lib/unistr.h: Update.
71294         * lib/linebreak.c: Update.
71295         * modules/linebreak: Update.
71296         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71297         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71298         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71299         * modules/unistr/u16-mbtouc: Renamed from
71300         modules/unistr/u16-mbtouc-safe.
71301         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71302         * lib/unistr.h: Update.
71303         * lib/unistr/u16-to-u8.c: Update.
71304         * modules/unistr/u16-to-u8: Update.
71305         * lib/unistr/u16-to-u32.c: Update.
71306         * modules/unistr/u16-to-u32: Update.
71307
71308 2007-01-27  Bruno Haible  <bruno@clisp.org>
71309
71310         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71311         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71312         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71313         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71314         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71315         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71316         modules/unistr/u8-mbtouc.
71317         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71318         * lib/unistr.h: Update.
71319         * lib/striconveh.c: Update.
71320         * modules/striconveh: Update.
71321         * lib/linebreak.c: Update.
71322         * modules/linebreak: Update.
71323         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71324         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71325         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71326         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71327         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71328         * lib/unistr.h: Update.
71329         * lib/striconveh.c: Update.
71330         * modules/striconveh: Update.
71331         * lib/unistr/u8-to-u16.c: Update.
71332         * modules/unistr/u8-to-u16: Update.
71333         * lib/unistr/u8-to-u32.c: Update.
71334         * modules/unistr/u8-to-u32: Update.
71335
71336 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71337
71338         Sync from Libtool.
71339         * lib/argz.c: Do not include strings.h nor memory.h, include
71340         string.h unconditionally.  Patch by Simon Josefsson.
71341
71342 2007-01-27  Bruno Haible  <bruno@clisp.org>
71343
71344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71345         from gl_HEADER_STRING_H_BODY.
71346         (gl_HEADER_STRING_H_BODY): Require it.
71347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71348         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71350         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71351         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71352         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71354         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71355         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71356         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71357         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71358         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71359         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71360         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71361         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71362
71363 2007-01-27  Bruno Haible  <bruno@clisp.org>
71364
71365         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71366         check_PROGRAMS into noinst_PROGRAMS.
71367         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71368         check_PROGRAMS in this case.
71369         (func_import): Set for_test to false.
71370         (func_create_testdir): Set for_test to true.
71371
71372 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71373             Bruno Haible  <bruno@clisp.org>
71374
71375         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71376         (Depends-on): Add string.
71377         (Includes): Use <string.h> instead of strcasestr.h.
71378         * modules/string (Makefile.am): Also substitute the value of
71379         REPLACE_STRCASESTR.
71380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71381         assume strcasestr is declared in <string.h> not <strings.h>. Also
71382         set REPLACE_STRCASESTR.
71383         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71384         REPLACE_STRCASESTR.
71385         * lib/strcasestr.h: Remove file.
71386         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71387         * lib/string_.h (strcasestr): New declaration.
71388
71389 2007-01-27  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/string_.h: Use 'extern'.
71392
71393 2007-01-27  Jim Meyering  <jim@meyering.net>
71394
71395         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71396         of set-but-not-used local, "q".
71397
71398         * lib/mempcpy.c: Include <config.h> before <string.h>.
71399         This fixes a compilation error on HP-UX, due to the system's
71400         "restrict"-using mempcpy prototype.
71401
71402 2007-01-26  Bruno Haible  <bruno@clisp.org>
71403
71404         Small optimization.
71405         * lib/javacomp.c: Include c-strstr.h.
71406          (is_envjavac_gcj): Use c_strstr instead of strstr.
71407         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71408
71409 2007-01-26  Bruno Haible  <bruno@clisp.org>
71410
71411         * MODULES.html.sh (Unicode string functions): Add the new modules.
71412
71413         * modules/uniconv/u32-strconv-to-locale: New file.
71414         * lib/uniconv/u32-strconv-to-locale.c: New file.
71415
71416         * modules/uniconv/u16-strconv-to-locale: New file.
71417         * lib/uniconv/u16-strconv-to-locale.c: New file.
71418
71419         * modules/uniconv/u8-strconv-to-locale: New file.
71420         * lib/uniconv/u8-strconv-to-locale.c: New file.
71421
71422         * modules/uniconv/u32-strconv-from-locale: New file.
71423         * lib/uniconv/u32-strconv-from-locale.c: New file.
71424
71425         * modules/uniconv/u16-strconv-from-locale: New file.
71426         * lib/uniconv/u16-strconv-from-locale.c: New file.
71427
71428         * modules/uniconv/u8-strconv-from-locale: New file.
71429         * lib/uniconv/u8-strconv-from-locale.c: New file.
71430
71431         * modules/uniconv/u32-strconv-to-enc: New file.
71432         * lib/uniconv/u32-strconv-to-enc.c: New file.
71433         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71434         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71435
71436         * modules/uniconv/u16-strconv-to-enc: New file.
71437         * lib/uniconv/u16-strconv-to-enc.c: New file.
71438         * lib/uniconv/u-strconv-to-enc.h: New file.
71439         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71440         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71441
71442         * modules/uniconv/u8-strconv-to-enc: New file.
71443         * lib/uniconv/u8-strconv-to-enc.c: New file.
71444         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71445         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71446
71447         * modules/uniconv/u32-strconv-from-enc: New file.
71448         * lib/uniconv/u32-strconv-from-enc.c: New file.
71449         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71450         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71451
71452         * modules/uniconv/u16-strconv-from-enc: New file.
71453         * lib/uniconv/u16-strconv-from-enc.c: New file.
71454         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71455         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71456
71457         * modules/uniconv/u8-strconv-from-enc: New file.
71458         * lib/uniconv/u8-strconv-from-enc.c: New file.
71459         * lib/uniconv/u-strconv-from-enc.h: New file.
71460         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71461         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71462
71463         * modules/uniconv/u32-conv-from-enc: New file.
71464         * lib/uniconv/u32-conv-from-enc.c: New file.
71465         * modules/uniconv/u32-conv-from-enc-tests: New file.
71466         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71467
71468         * modules/uniconv/u16-conv-from-enc: New file.
71469         * lib/uniconv/u16-conv-from-enc.c: New file.
71470         * lib/uniconv/u-conv-from-enc.h: New file.
71471         * modules/uniconv/u16-conv-from-enc-tests: New file.
71472         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71473
71474         * modules/uniconv/u8-conv-from-enc: New file.
71475         * lib/uniconv/u8-conv-from-enc.c: New file.
71476         * modules/uniconv/u8-conv-from-enc-tests: New file.
71477         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71478
71479         * modules/uniconv/base: New file.
71480         * lib/uniconv.h: New file.
71481
71482 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * doc/gnulib-tool.texi (Initial import): Update to match current
71485         behavior with strdup module.
71486         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71487         * lib/memmem.h: Remove; all uses removed.  This is now done
71488         by <string.h>.
71489         * lib/mempcpy.h: Likewise.
71490         * lib/memrchr.h: Likewise.
71491         * lib/stpcpy.h: Likewise.
71492         * lib/stpncpy.h: Likewise.
71493         * lib/strcase.h: Likewise.
71494         * lib/strchrnul.h: Likewise.
71495         * lib/strdup.h: Likewise.
71496         * lib/strndup.h: Likewise.
71497         * lib/strnlen.h: Likewise.
71498         * lib/strpbrk.h: Likewise.
71499         * lib/strsep.h: Likewise.
71500         * lib/strstr.h: Likewise.
71501         * lib/strtok_r.h: Likewise.
71502         * lib/string_.h: New file.
71503         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71504         Rely on <string.h> instead.
71505         * lib/canon-host.c: Likewise.
71506         * lib/chdir-long.c: Likewise.
71507         * lib/concatpath.c: Likewise.
71508         * lib/exclude.c: Likewise.
71509         * lib/fchdir.c: Likewise.
71510         * lib/getaddrinfo.c: Likewise.
71511         * lib/getcwd.c: Likewise.
71512         * lib/getsubopt.c: Likewise.
71513         * lib/glob.c: Likewise.
71514         * lib/hard-locale.c: Likewise.
71515         * lib/iconvme.c: Likewise.
71516         * lib/javacomp.c: Likewise.
71517         * lib/mempcpy.c: Likewise.
71518         * lib/memrchr.c: Likewise.
71519         * lib/regex_internal.h: Likewise.
71520         * lib/stpncpy.c: Likewise.
71521         * lib/strcasecmp.c: Likewise.
71522         * lib/strchrnul.c: Likewise.
71523         * lib/strdup.c: Likewise.
71524         * lib/striconv.c: Likewise.
71525         * lib/striconveh.c: Likewise.
71526         * lib/striconveha.c: Likewise.
71527         * lib/strncasecmp.c: Likewise.
71528         * lib/strndup.c: Likewise.
71529         * lib/strnlen.c: Likewise.
71530         * lib/strsep.c: Likewise.
71531         * lib/strstr.c: Likewise.
71532         * lib/strtok_r.c: Likewise.
71533         * lib/userspec.c: Likewise.
71534         * lib/w32spawn.h: Likewise.
71535         * lib/xstrndup.c: Likewise.
71536         * lib/mountlist.c (strstr): Remove decl.
71537         * m4/string_h.m4: New file.
71538         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71540         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71541         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71542         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71543         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71544         Set REPLACE_STRCASECMP if necessary.
71545         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71546         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71547         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71548         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71549         HAVE_DECL_STRDUP if necessary.
71550         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71551         since gl_FUNC_STRNDUP does that now.
71552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71553         Check for decl here...
71554         (gl_PREREQ_STRNLEN): ... not here.
71555         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71556         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71557         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71558         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71559         necessary.
71560         * modules/string: New file.
71561         * modules/memmem (Files): Remove special-purpose include file.
71562         (Depends-on): Add string.
71563         (Include): Include <string.h>, not the removed file.
71564         * modules/mempcpy: Likewise.
71565         * modules/memrchr: Likewise.
71566         * modules/stpcpy: Likewise.
71567         * modules/stpncpy: Likewise.
71568         * modules/strcase: Likewise.
71569         * modules/strchrnul: Likewise.
71570         * modules/strdup: Likewise.
71571         * modules/strndup: Likewise.
71572         * modules/strnlen: Likewise.
71573         * modules/strpbrk: Likewise.
71574         * modules/strsep: Likewise.
71575         * modules/strstr: Likewise.
71576         * modules/strtok_r: Likewise.
71577         * tests/test-dirname.c: Don't include "strdup.h", since
71578         <string.h> now suffices.
71579         * tests/test-memmem.c: Don't include "memmem.h", since
71580         <string.h> now suffices.
71581
71582 2007-01-25  Bruno Haible  <bruno@clisp.org>
71583
71584         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71585         *resultp is 0.
71586
71587         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71588         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71589         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71590         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71591
71592         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71593         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71594         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71595         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71596         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71597         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71598
71599 2007-01-24  Bruno Haible  <bruno@clisp.org>
71600
71601         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71603         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71604         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71605         gl_FUNC_FTS_CORE.
71606         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71607         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71608         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71609         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71610         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71611         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71612         gl_FUNC_FCHOWNAT.
71613         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71614         gl_FUNC_STRFTIME.
71615         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71616         Reported by Ralf Wildenhues.
71617
71618 2007-01-24  Bruno Haible  <bruno@clisp.org>
71619
71620         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71621         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71622         gl_GETADDRINFO.
71623         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71624         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71625         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71626
71627 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71630         Don't use 'exit'; just return from 'main'.
71631         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71632
71633         * lib/fnmatch_.h: Readjust white space and comments to match
71634         glibc, to avoid spurious diffs.
71635
71636 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71639         2004-12-01 change by Jakub Jelinek, since this code won't compile
71640         if !LIBC.  Problem reported by Bob Proulx.
71641
71642 2007-01-23  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/striconveh.c: Include c-strcaseeq.h.
71645         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71646         * modules/striconveh (Depends-on): Add c-strcaseeq.
71647
71648 2007-01-23  Bruno Haible  <bruno@clisp.org>
71649
71650         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71651
71652         * modules/c-strcaseeq: New file.
71653         * lib/c-strcaseeq.h: New file.
71654
71655         * modules/streq: New file.
71656         * lib/streq.h: New file.
71657
71658 2007-01-23  Bruno Haible  <bruno@clisp.org>
71659
71660         * modules/striconveha-tests: New file.
71661         * tests/test-striconveha.c: New file.
71662
71663         * lib/striconveha.h: Include <stdbool.h>.
71664         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71665         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71666         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71667         (mem_iconveha): New function.
71668         (str_iconveha_notranslit): Renamed from str_iconveha.
71669         (str_iconveha): New function.
71670         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71671         c-strcase.
71672
71673 2007-01-23  Bruno Haible  <bruno@clisp.org>
71674
71675         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71676         encodings without forgiving before trying any encoding with handler.
71677         (str_iconveha): Try all encodings without forgiving before trying any
71678         encoding with handler.
71679
71680 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71681
71682         Import the following changes from libc.
71683
71684         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71685
71686         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71687
71688         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71689
71690         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71691         normal_bracket label.
71692
71693         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71694
71695         [BZ #361]
71696         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71697         to normal_bracket after fetching the next character.
71698
71699 2007-01-22  Bruno Haible  <bruno@clisp.org>
71700
71701         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71702         argument.
71703         * lib/striconveh.c (iconv_carefully_1): New function.
71704         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71705         argument.
71706         (str_cd_iconveh): Update.
71707         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71708         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71709         * tests/test-striconveh.c (MAGIC): New macro.
71710         (new_offsets): New function.
71711         (main): Test call with and without offsets.
71712
71713 2007-01-22  Bruno Haible  <bruno@clisp.org>
71714
71715         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71716         * modules/sys_select (Makefile.am): Likewise.
71717         * modules/sys_socket (Makefile.am): Likewise.
71718         * modules/sys_time (Makefile.am): Likewise.
71719
71720 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71721
71722         * modules/gettimeofday (License): Change from GPL to LGPL, since
71723         gettimeofday is a library function.
71724
71725 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71726
71727         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71728
71729 2007-01-21  Bruno Haible  <bruno@clisp.org>
71730
71731         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71732
71733 2007-01-21  Bruno Haible  <bruno@clisp.org>
71734
71735         * modules/striconveha: New file.
71736         * lib/striconveha.h: New file.
71737         * lib/striconveha.c: New file.
71738         * MODULES.html.sh (Internationalization functions): Add striconveha.
71739         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71740         string.
71741         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71742
71743 2007-01-21  Bruno Haible  <bruno@clisp.org>
71744
71745         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71746         * lib/striconveh.c (str_iconveh): Likewise.
71747
71748 2007-01-21  Bruno Haible  <bruno@clisp.org>
71749
71750         * lib/striconveh.h (mem_iconveh): New declaration.
71751         * lib/striconveh.c (mem_iconveh): New function.
71752         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71753
71754 2007-01-21  Bruno Haible  <bruno@clisp.org>
71755
71756         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71757
71758         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71759         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71760         original result buffer.
71761         (str_cd_iconveh): Update.
71762         * tests/test-striconveh.c (main): Update.
71763
71764         * lib/striconv.h (mem_cd_iconv): Change specification.
71765         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71766         result buffer.
71767         (str_cd_iconv): Update.
71768         * tests/test-striconv.c (main): Update.
71769
71770 2007-01-21  Bruno Haible  <bruno@clisp.org>
71771
71772         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71773
71774 2007-01-20  Jim Meyering  <jim@meyering.net>
71775
71776         * lib/userspec.c (parse_with_separator): If a user or group string
71777         starts with "+", skip the corresponding name-to-ID look-up, since
71778         such a look-up must fail: user and group names may not include "+".
71779
71780 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71783         since we now assume the sys_time module.
71784         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71785         check for sys/time.h; no longer needed.
71786         * modules/poll (Depends-on): Depend on sys_time.
71787
71788 2007-01-18  Bruno Haible  <bruno@clisp.org>
71789
71790         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71792
71793         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71794         gettimeofday.
71795
71796         * tests/test-gettimeofday.c: Include <time.h>.
71797         (dummy): Remove variable.
71798
71799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71800         gl_HEADER_SYS_TIME_H.
71801         (gl_HEADER_SYS_TIME_H): New macro.
71802
71803         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71804         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71806         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71807         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71809         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71810         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71811         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71812         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71813         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71814
71815         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71816         last change; it caused a compilation error when cross-compiling to
71817         Cygwin.
71818
71819 2007-01-18  Jim Meyering  <jim@meyering.net>
71820
71821         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71822         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71823         than the race-prone "test -d sys || mkdir sys".
71824         (configure.ac): Use AC_PROG_MKDIR_P.
71825         * modules/sys_select: Likewise.
71826         * modules/sys_socket: Likewise.
71827         * modules/sys_time: Likewise.
71828
71829 2007-01-18  Eric Blake  <ebb9@byu.net>
71830
71831         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71832         replace gettimeofday.
71833         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71834         name, to avoid infinite recursion.
71835
71836 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71839         module sys_time.
71840         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71841         assume timespec.h defines struct timeval.
71842         * lib/settime.c: Likewise.
71843         * lib/utimens.c: Likewise.
71844         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71845         since we now assume the gettimeofday module.
71846         * lib/tempname.c (__gen_tempname): Likewise.
71847         * lib/gettimeofday.h: Remove.
71848         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71849         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71850         Include <time.h>, for 'time()'.
71851         (localtime_buffer_addr): Also use this workaround if
71852         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71853         to simplify the uses.  All uses changed.
71854         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71855         that #undef is inside {}, and 'const' follows type name consistently.
71856         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71857         (gettimeofday): Do not use the maximum possible value for
71858         tv->tv_usec, since that might break usages other than ls.c.
71859         Instead, we'll leave ls.c alone.  This undoes today's patch
71860         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71861         we've never observed the problem but might as well keep the
71862         canary.
71863         * lib/nanosleep.c: Include timespec.h first, for interface check.
71864         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71865         now assume the sys_time module.
71866         * lib/tempname.c: Likewise.
71867         * lib/timespec.h: Likewise.
71868         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71869         needed.
71870         * lib/strftime.c: Likewise.
71871         * lib/timespec.h: Likewise.
71872         * lib/posixtm.c: Include posixtm.h first, for interface check.
71873         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71874         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71875         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71876         * lib/sys_time_.h: New file.
71877         * lib/timespec.h (struct timespec): Use long int, not long.
71878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71879         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71880         Remove obsolescent call to AC_HEADER_TIME.
71881         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71882         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71883         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71884         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71885         Likewise.
71886         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71887         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71889         into the sys_time module.  Check for gettimeofday just once.
71890         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71891         for gettimeofday signature to just check the signature.  Merely
71892         compile it, since linking doesn't test signature.  Improve test for
71893         whether gettimeofday.o is actually needed.
71894         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71895         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71896         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71897         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71898         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71899         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71900         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71901         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71902         than worrying about sys/time.h.
71903         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71904         Don't bother worrying about TIME_WITH_SYS_TIME.
71905         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71906         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71907         * m4/sys_time_h.m4: New file.
71908         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71909         Don't include sys/time.h.  Return from main rather than exiting.
71910         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71911         all uses changed.
71912         * modules/gethrxtime (Depends-on): Add sys_time.
71913         * modules/gettime (Depends-on): Likewise.
71914         * modules/gettimeofday (Depends-on): Likewise.
71915         * modules/nanosleep (Depends-on): Likewise.
71916         * modules/settime (Depends-on): Likewise.
71917         * modules/tempname (Depends-on): Likewise.
71918         * modules/utimens (Depends-on): Likewise.
71919         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71920         (Include): Change back to <sys/time.h>.
71921         (Maintainer): Add self.
71922         * modules/sys_time: New file.
71923         * modules/tempname (Depends-on): Add gettimeofday.
71924         * tests/test-gettimeofday.c: Include <sys/time.h>
71925         rather than gettimeofday.h.
71926
71927 2007-01-17  Bruno Haible  <bruno@clisp.org>
71928
71929         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71930         the license default to GPL.
71931         (func_create_testdir): Don't complain if a module is LGPL and its
71932         tests module depends on GPLed modules.
71933
71934 2007-01-17  Bruno Haible  <bruno@clisp.org>
71935
71936         * lib/gettimeofday.c (gettimeofday): Add code for the case
71937         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71938         maximum possible value for tv->tv_usec, rather than the minimum one.
71939
71940 2005-10-08  Martin Lambers  <marlam@marlam.de>
71941 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71942 2007-01-16  Bruno Haible  <bruno@clisp.org>
71943
71944         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71945         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71946         gl_FUNC_GETTIMEOFDAY.
71947         (Include): Add gettimeofday.h.
71948         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71949         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71950         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71951         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71952         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71953         * lib/gettimeofday.h: New file.
71954         * lib/gettimeofday.c: Include <sys/timeb.h>.
71955         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71956         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71957         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71958         fall back on time().
71959
71960         * tests/test-gettimeofday.c: New file.
71961         * modules/gettimeofday-tests: New file.
71962
71963 2007-01-16  Eric Blake  <ebb9@byu.net>
71964
71965         * modules/fnmatch (Depends-on): Depend on wchar.
71966         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71967         * m4/fnmatch.m4: Likewise.
71968         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71969         * m4/mbchar.m4: Likewise.
71970         * modules/mbswidth (Depends-on): Depend on wchar.
71971         * lib/mbswidth.c: Assume <wchar.h>.
71972         * m4/mbswidth.m4: Likewise.
71973         * modules/quotearg (Depends-on): Depend on wchar.
71974         * lib/quotearg.c: Assume <wchar.h>.
71975         * m4/quotearg.m4: Likewise.
71976         * modules/regex (Depends-on): Depend on wchar.
71977         * lib/regex_internal.h: Assume <wchar.h>.
71978         * m4/regex.m4: Likewise.
71979         * modules/stdint (Depends-on): Depend on wchar.
71980         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71981         * m4/stdint.m4: Likewise.
71982         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71983         * modules/strftime (Depends-on): Depend on wchar.
71984         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71985         * modules/strtol (Depends-on): Depend on wchar.
71986         * lib/strtol.c: Assume <wchar.h>.
71987         * modules/wcwidth (Depends-on): Depend on wchar.
71988         * lib/wcwidth.h: Assume <wchar.h>.
71989         * m4/wcwidth.m4: Likewise.
71990
71991 2007-01-16  Bruno Haible  <bruno@clisp.org>
71992
71993         * modules/csharpexec-script: New, created from...
71994         * modules/csharpexec: ... this.
71995
71996 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71997
71998         * modules/javaexec-script: New, created from...
71999         * modules/javaexec: ... this.
72000
72001 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72002
72003         * modules/poll (Dependencies): Add sys_select.
72004
72005 2007-01-15  Jim Meyering  <jim@meyering.net>
72006
72007         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72008         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72009         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72010         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72011
72012 2007-01-15  Bruno Haible  <bruno@clisp.org>
72013
72014         * modules/striconveh: New file.
72015         * lib/striconveh.h: New file.
72016         * lib/striconveh.c: New file.
72017         * MODULES.html.sh (Internationalization functions): Add striconveh.
72018
72019         * modules/striconveh-tests: New file.
72020         * tests/test-striconveh.c: New file.
72021
72022 2007-01-15  Bruno Haible  <bruno@clisp.org>
72023
72024         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72025         not from GNU libiconv or GNU libc.
72026
72027 2007-01-15  Bruno Haible  <bruno@clisp.org>
72028
72029         * doc/gnulib-intro.texi (Copyright): Explain the different license
72030         terms for module descriptions, autoconf macros, tests, documentation.
72031
72032 2007-01-14  Bruno Haible  <bruno@clisp.org>
72033
72034         * modules/striconv-tests: New file.
72035         * tests/test-striconv.c: New file.
72036
72037 2007-01-14  Bruno Haible  <bruno@clisp.org>
72038
72039         * modules/iconv-tests: New file.
72040         * tests/test-iconv.c: New file.
72041
72042 2007-01-14  Bruno Haible  <bruno@clisp.org>
72043
72044         * gnulib-tool (func_get_license): For test modules, use the license of
72045         the main module.
72046
72047 2007-01-14  Bruno Haible  <bruno@clisp.org>
72048
72049         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72050         if iconv is found to exist.
72051
72052 2007-01-14  Bruno Haible  <bruno@clisp.org>
72053
72054         * modules/c-ctype-tests: New file.
72055         * tests/test-c-ctype.c: New file.
72056
72057 2007-01-14  Bruno Haible  <bruno@clisp.org>
72058
72059         * modules/binary-io-tests: New file.
72060         * tests/test-binary-io.sh: New file.
72061         * tests/test-binary-io.c: New file.
72062
72063 2007-01-14  Bruno Haible  <bruno@clisp.org>
72064
72065         * modules/array-oset-tests: New file.
72066         * tests/test-array_oset.c: New file.
72067
72068 2007-01-14  Bruno Haible  <bruno@clisp.org>
72069
72070         * modules/array-list-tests: New file.
72071         * tests/test-array_list.c: New file.
72072
72073 2007-01-14  Bruno Haible  <bruno@clisp.org>
72074
72075         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72076         and make.
72077         Reported by Simon Josefsson in
72078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72079
72080 2007-01-14  Bruno Haible  <bruno@clisp.org>
72081
72082         * modules/allocsa-tests: New file.
72083         * tests/test-allocsa.c: New file.
72084
72085 2007-01-14  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/fchdir (Depends-on): Add absolute-header.
72088         * modules/unistd (Depends-on): Likewise.
72089
72090 2006-12-30  Bruno Haible  <bruno@clisp.org>
72091
72092         * modules/fchdir: New file.
72093         * modules/unistd (Files): Add lib/unistd_.h.
72094         (Makefile.am): Generate unistd.h from unistd_.h.
72095         * lib/fchdir.c: New file.
72096         * lib/dirent_.h: New file.
72097         * lib/unistd_.h: New file.
72098         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72099         * m4/fchdir.m4: New file.
72100         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72101         (gl_HEADER_UNISTD): Invoke it.
72102         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72103         function.
72104         * lib/backupfile.c (opendir, closedir): Undefine.
72105         * lib/chown.c (open, close): Undefine.
72106         * lib/clean-temp.c (open, close): Undefine.
72107         * lib/copy-file.c (open, close): Undefine.
72108         * lib/execute.c (open, close): Undefine.
72109         * lib/fsusage.c (open, close): Undefine.
72110         * lib/gc-gnulib.c (open, close): Undefine.
72111         * lib/getcwd.c (opendir, closedir): Undefine.
72112         * lib/glob.c (opendir, closedir): Undefine.
72113         * lib/javacomp.c (open, close): Undefine.
72114         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72115         * lib/openat-proc.c (open, close): Undefine.
72116         * lib/pagealign_alloc.c (open, close): Undefine.
72117         * lib/pipe.c (open, close): Undefine.
72118         * lib/progreloc.c (open, close): Undefine.
72119         * lib/savedir.c (opendir, closedir): Undefine.
72120         * lib/utime.c (open, close): Undefine.
72121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72122
72123 2007-01-10  Bruno Haible  <bruno@clisp.org>
72124
72125         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72126
72127 2007-01-12  Eric Blake  <ebb9@byu.net>
72128
72129         Provide a robust <wchar.h>.  Further simplifications are now
72130         possible in other modules, but not included here.
72131         * modules/wchar: New module.
72132         * m4/wchar.m4: New file.
72133         * lib/wchar_.h: Likewise.
72134         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72135         of the new module.
72136         * MODULES.html.sh (Extended multibyte and wide character utilities):
72137         New section.
72138
72139 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72140
72141         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72142         to a reasonable default for memory allocation.
72143         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72144         file system that reports garbage st_size values for symlinks.
72145         Problem reported by Liyang Hu.
72146
72147 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72148
72149         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72150         Emacs .#* auto-save files).
72151
72152 2007-01-11  Bruno Haible  <bruno@clisp.org>
72153
72154         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72155         directory.
72156
72157 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72158
72159         Use @...@ consistently in lib/wctype_.h.
72160         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72161         on it being set to 1 or 0.
72162         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72163         go back to AC_SUBSTing it.
72164         * modules/wctype (Makefile.am): Undo previous change.
72165
72166 2007-01-10  Eric Blake  <ebb9@byu.net>
72167
72168         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72169         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72170         * modules/wctype (Makefile.am): Likewise.
72171         Reported by Chris McGuire.
72172
72173 2007-01-10  Jim Meyering  <jim@meyering.net>
72174
72175         fts.c: a small readability/maintainability improvement
72176         * lib/fts.c (fts_read): Make this code slightly more readable and
72177         maintainable by hoisting the "sp->fts_cur = p" assignments to
72178         immediately follow the statements that set P.  Derived from
72179         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72180
72181 2007-01-10  Eric Blake  <ebb9@byu.net>
72182
72183         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72184         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72186         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72187         Reported by Chris McGuire.
72188
72189 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72190
72191         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72192         in sed script.
72193
72194 2007-01-09  Bruno Haible  <bruno@clisp.org>
72195
72196         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72197         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72198         variables.
72199         (func_module): Use them.
72200
72201 2007-01-09  Bruno Haible  <bruno@clisp.org>
72202
72203         * modules/unistr/base: New file.
72204         * lib/unistr.h: New file.
72205
72206         * modules/unistr/u8-to-u16: New file.
72207         * lib/unistr/u8-to-u16.c: New file.
72208
72209         * modules/unistr/u8-to-u32: New file.
72210         * lib/unistr/u8-to-u32.c: New file.
72211
72212         * modules/unistr/u16-to-u8: New file.
72213         * lib/unistr/u16-to-u8.c: New file.
72214
72215         * modules/unistr/u16-to-u32: New file.
72216         * lib/unistr/u16-to-u32.c: New file.
72217
72218         * modules/unistr/u32-to-u8: New file.
72219         * lib/unistr/u32-to-u8.c: New file.
72220
72221         * modules/unistr/u32-to-u16: New file.
72222         * lib/unistr/u32-to-u16.c: New file.
72223
72224         * modules/unistr/u8-check: New file.
72225         * modules/unistr/u16-check: New file.
72226         * modules/unistr/u32-check: New file.
72227         * lib/unistr/u8-check.c: New file.
72228         * lib/unistr/u16-check.c: New file.
72229         * lib/unistr/u32-check.c: New file.
72230
72231         * modules/unistr/u8-chr: New file.
72232         * modules/unistr/u16-chr: New file.
72233         * modules/unistr/u32-chr: New file.
72234         * lib/unistr/u8-chr.c: New file.
72235         * lib/unistr/u16-chr.c: New file.
72236         * lib/unistr/u32-chr.c: New file.
72237
72238         * modules/unistr/u8-cmp: New file.
72239         * modules/unistr/u16-cmp: New file.
72240         * modules/unistr/u32-cmp: New file.
72241         * lib/unistr/u8-cmp.c: New file.
72242         * lib/unistr/u16-cmp.c: New file.
72243         * lib/unistr/u32-cmp.c: New file.
72244
72245         * modules/unistr/u8-cpy: New file.
72246         * modules/unistr/u16-cpy: New file.
72247         * modules/unistr/u32-cpy: New file.
72248         * lib/unistr/u8-cpy.c: New file.
72249         * lib/unistr/u16-cpy.c: New file.
72250         * lib/unistr/u32-cpy.c: New file.
72251         * lib/unistr/u-cpy.h: New file.
72252
72253         * modules/unistr/u8-cpy-alloc: New file.
72254         * modules/unistr/u16-cpy-alloc: New file.
72255         * modules/unistr/u32-cpy-alloc: New file.
72256         * lib/unistr/u8-cpy-alloc.c: New file.
72257         * lib/unistr/u16-cpy-alloc.c: New file.
72258         * lib/unistr/u32-cpy-alloc.c: New file.
72259         * lib/unistr/u-cpy-alloc.h: New file.
72260
72261         * modules/unistr/u8-endswith: New file.
72262         * modules/unistr/u16-endswith: New file.
72263         * modules/unistr/u32-endswith: New file.
72264         * lib/unistr/u8-endswith.c: New file.
72265         * lib/unistr/u16-endswith.c: New file.
72266         * lib/unistr/u32-endswith.c: New file.
72267         * lib/unistr/u-endswith.h: New file.
72268
72269         * modules/unistr/u8-mblen: New file.
72270         * modules/unistr/u16-mblen: New file.
72271         * modules/unistr/u32-mblen: New file.
72272         * lib/unistr/u8-mblen.c: New file.
72273         * lib/unistr/u16-mblen.c: New file.
72274         * lib/unistr/u32-mblen.c: New file.
72275
72276         * modules/unistr/u8-mbtouc: New file.
72277         * modules/unistr/u16-mbtouc: New file.
72278         * modules/unistr/u32-mbtouc: New file.
72279         * lib/unistr/u8-mbtouc.c: New file.
72280         * lib/unistr/u16-mbtouc.c: New file.
72281         * lib/unistr/u32-mbtouc.c: New file.
72282
72283         * modules/unistr/u8-mbtouc-safe: New file.
72284         * modules/unistr/u16-mbtouc-safe: New file.
72285         * modules/unistr/u32-mbtouc-safe: New file.
72286         * lib/unistr/u8-mbtouc-safe.c: New file.
72287         * lib/unistr/u16-mbtouc-safe.c: New file.
72288         * lib/unistr/u32-mbtouc-safe.c: New file.
72289
72290         * modules/unistr/u8-move: New file.
72291         * modules/unistr/u16-move: New file.
72292         * modules/unistr/u32-move: New file.
72293         * lib/unistr/u8-move.c: New file.
72294         * lib/unistr/u16-move.c: New file.
72295         * lib/unistr/u32-move.c: New file.
72296         * lib/unistr/u-move.h: New file.
72297
72298         * modules/unistr/u8-next: New file.
72299         * modules/unistr/u16-next: New file.
72300         * modules/unistr/u32-next: New file.
72301         * lib/unistr/u8-next.c: New file.
72302         * lib/unistr/u16-next.c: New file.
72303         * lib/unistr/u32-next.c: New file.
72304
72305         * modules/unistr/u8-prev: New file.
72306         * modules/unistr/u16-prev: New file.
72307         * modules/unistr/u32-prev: New file.
72308         * lib/unistr/u8-prev.c: New file.
72309         * lib/unistr/u16-prev.c: New file.
72310         * lib/unistr/u32-prev.c: New file.
72311
72312         * modules/unistr/u8-set: New file.
72313         * modules/unistr/u16-set: New file.
72314         * modules/unistr/u32-set: New file.
72315         * lib/unistr/u8-set.c: New file.
72316         * lib/unistr/u16-set.c: New file.
72317         * lib/unistr/u32-set.c: New file.
72318         * lib/unistr/u-set.h: New file.
72319
72320         * modules/unistr/u8-startswith: New file.
72321         * modules/unistr/u16-startswith: New file.
72322         * modules/unistr/u32-startswith: New file.
72323         * lib/unistr/u8-startswith.c: New file.
72324         * lib/unistr/u16-startswith.c: New file.
72325         * lib/unistr/u32-startswith.c: New file.
72326         * lib/unistr/u-startswith.h: New file.
72327
72328         * modules/unistr/u8-stpcpy: New file.
72329         * modules/unistr/u16-stpcpy: New file.
72330         * modules/unistr/u32-stpcpy: New file.
72331         * lib/unistr/u8-stpcpy.c: New file.
72332         * lib/unistr/u16-stpcpy.c: New file.
72333         * lib/unistr/u32-stpcpy.c: New file.
72334         * lib/unistr/u-stpcpy.h: New file.
72335
72336         * modules/unistr/u8-stpncpy: New file.
72337         * modules/unistr/u16-stpncpy: New file.
72338         * modules/unistr/u32-stpncpy: New file.
72339         * lib/unistr/u8-stpncpy.c: New file.
72340         * lib/unistr/u16-stpncpy.c: New file.
72341         * lib/unistr/u32-stpncpy.c: New file.
72342         * lib/unistr/u-stpncpy.h: New file.
72343
72344         * modules/unistr/u8-strcat: New file.
72345         * modules/unistr/u16-strcat: New file.
72346         * modules/unistr/u32-strcat: New file.
72347         * lib/unistr/u8-strcat.c: New file.
72348         * lib/unistr/u16-strcat.c: New file.
72349         * lib/unistr/u32-strcat.c: New file.
72350         * lib/unistr/u-strcat.h: New file.
72351
72352         * modules/unistr/u8-strchr: New file.
72353         * modules/unistr/u16-strchr: New file.
72354         * modules/unistr/u32-strchr: New file.
72355         * lib/unistr/u8-strchr.c: New file.
72356         * lib/unistr/u16-strchr.c: New file.
72357         * lib/unistr/u32-strchr.c: New file.
72358
72359         * modules/unistr/u8-strcmp: New file.
72360         * modules/unistr/u16-strcmp: New file.
72361         * modules/unistr/u32-strcmp: New file.
72362         * lib/unistr/u8-strcmp.c: New file.
72363         * lib/unistr/u16-strcmp.c: New file.
72364         * lib/unistr/u32-strcmp.c: New file.
72365
72366         * modules/unistr/u8-strcpy: New file.
72367         * modules/unistr/u16-strcpy: New file.
72368         * modules/unistr/u32-strcpy: New file.
72369         * lib/unistr/u8-strcpy.c: New file.
72370         * lib/unistr/u16-strcpy.c: New file.
72371         * lib/unistr/u32-strcpy.c: New file.
72372         * lib/unistr/u-strcpy.h: New file.
72373
72374         * modules/unistr/u8-strcspn: New file.
72375         * modules/unistr/u16-strcspn: New file.
72376         * modules/unistr/u32-strcspn: New file.
72377         * lib/unistr/u8-strcspn.c: New file.
72378         * lib/unistr/u16-strcspn.c: New file.
72379         * lib/unistr/u32-strcspn.c: New file.
72380         * lib/unistr/u-strcspn.h: New file.
72381
72382         * modules/unistr/u8-strdup: New file.
72383         * modules/unistr/u16-strdup: New file.
72384         * modules/unistr/u32-strdup: New file.
72385         * lib/unistr/u8-strdup.c: New file.
72386         * lib/unistr/u16-strdup.c: New file.
72387         * lib/unistr/u32-strdup.c: New file.
72388         * lib/unistr/u-strdup.h: New file.
72389
72390         * modules/unistr/u8-strlen: New file.
72391         * modules/unistr/u16-strlen: New file.
72392         * modules/unistr/u32-strlen: New file.
72393         * lib/unistr/u8-strlen.c: New file.
72394         * lib/unistr/u16-strlen.c: New file.
72395         * lib/unistr/u32-strlen.c: New file.
72396         * lib/unistr/u-strlen.h: New file.
72397
72398         * modules/unistr/u8-strmblen: New file.
72399         * modules/unistr/u16-strmblen: New file.
72400         * modules/unistr/u32-strmblen: New file.
72401         * lib/unistr/u8-strmblen.c: New file.
72402         * lib/unistr/u16-strmblen.c: New file.
72403         * lib/unistr/u32-strmblen.c: New file.
72404
72405         * modules/unistr/u8-strmbtouc: New file.
72406         * modules/unistr/u16-strmbtouc: New file.
72407         * modules/unistr/u32-strmbtouc: New file.
72408         * lib/unistr/u8-strmbtouc.c: New file.
72409         * lib/unistr/u16-strmbtouc.c: New file.
72410         * lib/unistr/u32-strmbtouc.c: New file.
72411
72412         * modules/unistr/u8-strncat: New file.
72413         * modules/unistr/u16-strncat: New file.
72414         * modules/unistr/u32-strncat: New file.
72415         * lib/unistr/u8-strncat.c: New file.
72416         * lib/unistr/u16-strncat.c: New file.
72417         * lib/unistr/u32-strncat.c: New file.
72418         * lib/unistr/u-strncat.h: New file.
72419
72420         * modules/unistr/u8-strncmp: New file.
72421         * modules/unistr/u16-strncmp: New file.
72422         * modules/unistr/u32-strncmp: New file.
72423         * lib/unistr/u8-strncmp.c: New file.
72424         * lib/unistr/u16-strncmp.c: New file.
72425         * lib/unistr/u32-strncmp.c: New file.
72426
72427         * modules/unistr/u8-strncpy: New file.
72428         * modules/unistr/u16-strncpy: New file.
72429         * modules/unistr/u32-strncpy: New file.
72430         * lib/unistr/u8-strncpy.c: New file.
72431         * lib/unistr/u16-strncpy.c: New file.
72432         * lib/unistr/u32-strncpy.c: New file.
72433         * lib/unistr/u-strncpy.h: New file.
72434
72435         * modules/unistr/u8-strnlen: New file.
72436         * modules/unistr/u16-strnlen: New file.
72437         * modules/unistr/u32-strnlen: New file.
72438         * lib/unistr/u8-strnlen.c: New file.
72439         * lib/unistr/u16-strnlen.c: New file.
72440         * lib/unistr/u32-strnlen.c: New file.
72441         * lib/unistr/u-strnlen.h: New file.
72442
72443         * modules/unistr/u8-strpbrk: New file.
72444         * modules/unistr/u16-strpbrk: New file.
72445         * modules/unistr/u32-strpbrk: New file.
72446         * lib/unistr/u8-strpbrk.c: New file.
72447         * lib/unistr/u16-strpbrk.c: New file.
72448         * lib/unistr/u32-strpbrk.c: New file.
72449         * lib/unistr/u-strpbrk.h: New file.
72450
72451         * modules/unistr/u8-strrchr: New file.
72452         * modules/unistr/u16-strrchr: New file.
72453         * modules/unistr/u32-strrchr: New file.
72454         * lib/unistr/u8-strrchr.c: New file.
72455         * lib/unistr/u16-strrchr.c: New file.
72456         * lib/unistr/u32-strrchr.c: New file.
72457
72458         * modules/unistr/u8-strspn: New file.
72459         * modules/unistr/u16-strspn: New file.
72460         * modules/unistr/u32-strspn: New file.
72461         * lib/unistr/u8-strspn.c: New file.
72462         * lib/unistr/u16-strspn.c: New file.
72463         * lib/unistr/u32-strspn.c: New file.
72464         * lib/unistr/u-strspn.h: New file.
72465
72466         * modules/unistr/u8-strstr: New file.
72467         * modules/unistr/u16-strstr: New file.
72468         * modules/unistr/u32-strstr: New file.
72469         * lib/unistr/u8-strstr.c: New file.
72470         * lib/unistr/u16-strstr.c: New file.
72471         * lib/unistr/u32-strstr.c: New file.
72472         * lib/unistr/u-strstr.h: New file.
72473
72474         * modules/unistr/u8-strtok: New file.
72475         * modules/unistr/u16-strtok: New file.
72476         * modules/unistr/u32-strtok: New file.
72477         * lib/unistr/u8-strtok.c: New file.
72478         * lib/unistr/u16-strtok.c: New file.
72479         * lib/unistr/u32-strtok.c: New file.
72480         * lib/unistr/u-strtok.h: New file.
72481
72482         * modules/unistr/u8-uctomb: New file.
72483         * modules/unistr/u16-uctomb: New file.
72484         * modules/unistr/u32-uctomb: New file.
72485         * lib/unistr/u8-uctomb.c: New file.
72486         * lib/unistr/u16-uctomb.c: New file.
72487         * lib/unistr/u32-uctomb.c: New file.
72488
72489         * MODULES.html.sh (Unicode string functions): Add the new modules.
72490
72491 2007-01-08  Bruno Haible  <bruno@clisp.org>
72492
72493         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72494         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72495         subdirectories.
72496
72497 2007-01-08  Karl Berry  <karl@gnu.org>
72498
72499         * doc/error.texi: mention that main() fns must set program_name
72500         when progname is used.
72501
72502 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72505         WCTYPE_H is empty, for the benefit of builds from non-distclean
72506         directories.  Problem reported by Eric Blake in
72507         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72508
72509 2007-01-08  Bruno Haible  <bruno@clisp.org>
72510
72511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72512         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72513         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72514         PROVIDE_CANONICALIZE_FILENAME_MODE.
72515         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72516
72517 2007-01-08  Bruno Haible  <bruno@clisp.org>
72518
72519         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72520         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72521         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72522         * lib/fts.c: Likewise.
72523         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72524
72525 2006-12-25  Bruno Haible  <bruno@clisp.org>
72526
72527         * modules/utf8-ucs4-safe: New file.
72528         * lib/utf8-ucs4-safe.h: New file.
72529         * lib/unistr/utf8-ucs4-safe.c: New file.
72530
72531         * modules/utf16-ucs4-safe: New file.
72532         * lib/utf16-ucs4-safe.h: New file.
72533         * lib/unistr/utf16-ucs4-safe.c: New file.
72534
72535         * MODULES.html.sh (Unicode string functions): Add the new modules.
72536
72537 2007-01-08  Bruno Haible  <bruno@clisp.org>
72538
72539         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72540         (Depends-on): Add unitypes.
72541         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72542         (u8_mbtouc_aux): Move out to separate file.
72543         (u8_mbtouc): Use ucs4_t, uint8_t types.
72544         * lib/unistr/utf8-ucs4.c: New file.
72545
72546         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72547         (Depends-on): Add unitypes.
72548         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72549         (u16_mbtouc_aux): Move out to separate file.
72550         (u16_mbtouc): Use ucs4_t, uint16_t types.
72551         * lib/unistr/utf16-ucs4.c: New file.
72552
72553         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72554         (Depends-on): Add unitypes.
72555         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72556         (u8_uctomb_aux): Move out to separate file.
72557         (u8_uctomb): Use ucs4_t, uint8_t types.
72558         * lib/unistr/ucs4-utf8.c: New file.
72559
72560         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72561         (Depends-on): Add unitypes.
72562         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72563         (u16_uctomb_aux): Move out to separate file.
72564         (u16_uctomb): Use ucs4_t, uint16_t types.
72565         * lib/unistr/ucs4-utf16.c: New file.
72566
72567 2006-12-25  Bruno Haible  <bruno@clisp.org>
72568
72569         * modules/unitypes: New file.
72570         * lib/unitypes.h: New file.
72571         * MODULES.html.sh (func_all_modules): New section "Unicode string
72572         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72573         this section. Add unitypes.
72574
72575 2007-01-08  Bruno Haible  <bruno@clisp.org>
72576
72577         Avoid variable names that conflict with those from libtool.
72578         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72579         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72580         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72581         library_names_spec to acl_library_names_spec, hardcode_* to
72582         acl_hardcode_*.
72583         Reported by Ralf Wildenhues.
72584
72585 2007-01-08  Bruno Haible  <bruno@clisp.org>
72586
72587         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72588         definition.
72589         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72590         definition.
72591         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72592         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72593         definition.
72594         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72595         definition.
72596         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72597         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72598         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72599         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72600         definition.
72601         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72602         definition.
72603         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72604         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72605         GC_USE_<algorithm>.
72606         * lib/gc-libgcrypt.c: Likewise.
72607         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72608         * modules/gc-arctwo (configure.ac): Likewise.
72609         * modules/gc-des (configure.ac): Likewise.
72610         * modules/gc-hmac-md5 (configure.ac): Likewise.
72611         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72612         * modules/gc-md2 (configure.ac): Likewise.
72613         * modules/gc-md4 (configure.ac): Likewise.
72614         * modules/gc-md5 (configure.ac): Likewise.
72615         * modules/gc-random (configure.ac): Likewise.
72616         * modules/gc-rijndael (configure.ac): Likewise.
72617         * modules/gc-sha1 (configure.ac): Likewise.
72618
72619 2007-01-08  Bruno Haible  <bruno@clisp.org>
72620
72621         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72622         macro definition.
72623         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72624         definition.
72625         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72626         definition.
72627         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72628         * modules/fcntl-safer (configure.ac): Likewise.
72629         * modules/fopen-safer (configure.ac): Likewise.
72630         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72631         GNULIB_FWRITEERROR macro definition.
72632
72633 2007-01-08  Bruno Haible  <bruno@clisp.org>
72634
72635         * m4/gnulib-common.m4: New file.
72636         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72637         (func_get_filelist): Add m4/gnulib-common.m4.
72638
72639 2007-01-08  Bruno Haible  <bruno@clisp.org>
72640
72641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72642         command.
72643
72644 2007-01-08  Jim Meyering  <jim@meyering.net>
72645
72646         Use a more robust test for a "can't happen" condition.
72647         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72648         narrowed the st_size value.  Presuming the "can't happen" condition
72649         is true, that narrowing could conceivably convert an invalid st_size
72650         value into a valid one.  Instead, use a change based on Matthew
72651         Woehlke's original patch.
72652
72653         Slight readability improvement: use an assert-like macro
72654         in place of literal "abort ()" uses.
72655         * lib/fts.c (fts_assert): Define.
72656         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72657         Use this macro instead of a bare 'abort'.
72658
72659 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72660
72661         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72662         simply work around them.
72663         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72664         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72665         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72666         declaring.
72667         Don't bother to define as macros, since the standard doesn't require it.
72668         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72669         longer worry about IRIX 5.3.
72670         (HAVE_WCTYPE_CTMP_BUG): Remove.
72671
72672 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72675         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72676         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72677         Problems reported by Georg Schwarz for IRIX 5.3.
72678
72679         * gnulib-tool (autoconf_minversion): Take the maximum version number
72680         found, not the minimum.  Problem reported by James Youngman.
72681
72682 2007-01-03  Karl Berry  <karl@gnu.org>
72683
72684         * doc/error.texi: new file, explaining interaction with progname.
72685         * doc/gnulib.texi: include it.  Update copyright.
72686
72687 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72688
72689         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72690         AC_CANONICAL_HOST, to improve autobuild outputs.
72691
72692 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72693             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72694
72695         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72696         sockets, server sockets, and other file descriptors.  Count errors
72697         to compute the return value.  Reorder the code a bit to be easier
72698         to follow.  Don't set event bits that were not requested (except
72699         POLLERR and POLLHUP).
72700
72701 2007-01-01  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72704
72705 2007-01-03  Jim Meyering  <jim@meyering.net>
72706
72707         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72708
72709 2007-01-02  Bruno Haible  <bruno@clisp.org>
72710
72711         * modules/settime (Include): Require timespec.h.
72712         * modules/nanosleep (Include): Likewise.
72713
72714 2007-01-01  Bruno Haible  <bruno@clisp.org>
72715
72716         * gnulib-tool (func_emit_copyright_notice): Bump year.
72717         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72718
72719 2007-01-01  Bruno Haible  <bruno@clisp.org>
72720
72721         Improve support for OpenBSD.
72722         * build-aux/config.rpath (libname_spec): Export.
72723         (library_names_spec): New variable. Export.
72724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72725         library_names_spec from the config.rpath output. Locate shared library
72726         through the name pattern in library_names_spec.
72727
72728 2007-01-01  Eric Blake  <ebb9@byu.net>
72729
72730         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72731
72732 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72735         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72736         assume the C locale, and avoid an "eval" that could cause trouble.
72737         Problem with SORT reported by Bob Proulx.
72738
72739         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72740         Define.  Trivial patch from Henning Nielsen Lund, originally
72741         sent to bug-grep@gnu.org today.
72742
72743 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72746         struct stat.  Problem reported by Henning Nielsen Lund.
72747         * lib/acl.c: Include acl.h first, to check interface.  Don't
72748         bother to include sys/types.h and sys/stat.h again.
72749
72750 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         Import the following change from libc; problem reported by
72753         Sven Verdoolaege.
72754
72755         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72756
72757         [BZ #1373]
72758         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72759
72760 2006-12-28  Jim Meyering  <jim@meyering.net>
72761
72762         * build-aux/announce-gen: Do not assume that the package
72763         builds any of tar.gz, tar.bz2, and .xdelta files.
72764         Suggestion from Simon Josefsson.
72765
72766 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72767
72768         * modules/announce-gen: New file.
72769
72770 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72773         handles its gotchas now.
72774         * lib/mbswidth.c: Likewise.
72775         * lib/wcwidth.h: Likewise.
72776         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72777         and iswcntrl; the wctype module does this stuff now.
72778         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72780         * modules/mbchar (Depends-on): Add wctype.
72781         * modules/mbswidth (Depends-on): Likewise.
72782         * modules/wcwidth (Depends-on): Likewise.
72783
72784 2006-12-27  Eric Blake  <ebb9@byu.net>
72785
72786         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72787         module uses more than what <wctype.h> is required to provide.
72788
72789 2006-12-26  Eric Blake  <ebb9@byu.net>
72790
72791         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72792
72793 2006-12-26  Eric Blake  <ebb9@byu.net>
72794
72795         * modules/absolute-header: New module.
72796         * modules/fcntl (Depends-on): Depend on it.
72797         * modules/inttypes (Depends-on): Likewise.
72798         * modules/stdint (Depends-on): Likewise.
72799         * modules/sys_stat (Depends-on): Likewise.
72800         * modules/wctype (Depends-on): Likewise.
72801         * MODULES.html.sh (Support for building libraries and
72802         executables): Document it.
72803
72804 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * gnulib-tool (SED): Remove, undoing previous change.
72807         The problem was that it broke coreutils on Solaris, because
72808         "sed --posix" leaked into a makefile.
72809         (sed): New alias, if 'alias' and GNU sed.
72810
72811 2006-12-24  Jim Meyering  <jim@meyering.net>
72812
72813         Work around an fchownat bug in glibc-2.4:
72814         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72815         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72816         in spite of the -P option.
72817         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72818         New macros.
72819         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72820         * modules/openat (Files): Add lib/fchownat.c.
72821         * lib/openat.c (fchownat): Don't define here.  Move to...
72822         * lib/fchownat.c: ...this new file.
72823
72824 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         Fix bug reported by Bruno Haible in
72827         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72828         where quotearg.c didn't compile on Mac OS X 10.2 because it
72829         lacks <wchar.h> and wint_t.
72830         * lib/wctype_.h (__wctype_wint_t): New type.
72831         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72832         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72833         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72834         Arg is now of type __wctype_wint_t, not wint_t.
72835         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72836         substitute HAVE_WINT_T.
72837         * modules/wctype (Files): Add m4/wint_t.m4.
72838         (wctype.h): Substitute HAVE_WINT_T.
72839
72840 2006-12-23  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72843
72844 2006-12-23  Bruno Haible  <bruno@clisp.org>
72845
72846         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72847         S_ISLNK.
72848         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72849         mingw.
72850
72851 2006-12-22  Bruno Haible  <bruno@clisp.org>
72852
72853         * lib/copy-file.c: Include acl.h.
72854         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72855         Close the file descriptors only after being done with copy_acl.
72856         * modules/copy-file (Depends-on): Add acl.
72857
72858 2006-12-22  Bruno Haible  <bruno@clisp.org>
72859
72860         * gnulib-tool (SED): New variable.
72861         Use $SED instead of sed everywhere.
72862
72863 2006-12-22  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/no-c++: New file.
72866         * m4/no-c++.m4: New file.
72867         * MODULES.html.sh (Support for building libraries and executables):
72868         Add no-c++.
72869
72870 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72873         Include <limits.h>, and use its INT_MAX to rewrite the
72874         j loop so that it does not overflow 'int'.  Problem reported by
72875         Ralf Wildenhues in
72876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72877         Play it safe by shifting left by 1 rather than multiplying by 2,
72878         as GCC is less likely to optimize this away when the value
72879         is signed (when it assumes overflow leads to undefined behavior).
72880         Also, don't assume time_t uses two's complement.
72881
72882 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72883
72884         * MODULES.html.sh: New module wctype.
72885         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72886         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72887         <wctype.h>, since the new wctype module should fix this.
72888         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72889         the wctype module should arrange for it.
72890         * lib/regex_internal.h: Likewise.
72891         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72892         since the wctype module should handle this now.
72893         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72894         * modules/fnmatch (Depends-on): Add wctype.
72895         * modules/quotearg (Depends-on): Likewise.
72896         * modules/regex (Depends-on): Likewise.
72897
72898 2006-12-19  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72901         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72902
72903 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72904
72905         * modules/savewd (Depends-on): Fix dependency on fcntl.
72906
72907 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72910         conforms to C99, rather than relying on the user's environment
72911         setting of STDINT_H.
72912
72913 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72914         and Eric Blake  <ebb9@byu.net>
72915
72916         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72917         This is more consistent with the other defines here.
72918         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72919         Port to z/OS.  Problem reported by Paul Gilmartin.
72920         Change local vars to use gl_ prefix rather than ac_.
72921         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72922         with other defines.
72923         * modules/double-slash-root: New module.
72924         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72925         (Depends-on): Add double-slash-root.
72926         * MODULES.html.sh (File system functions): Mention new module.
72927
72928 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72929
72930         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72931         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72932         This is for the benefit of gzip, which doesn't do i18n.
72933
72934 2006-12-12  Jim Meyering  <jim@meyering.net>
72935
72936         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72937         Reported by Andreas Schwab <schwab@suse.de>.
72938
72939 2006-12-12  Bruno Haible  <bruno@clisp.org>
72940
72941         Merge these changes.
72942         2006-09-05  Bruno Haible  <bruno@clisp.org>
72943         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72944         iconv_alloc succeeded.
72945         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72946         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72947         test for " && dest " at the end - dest is always != NULL there. Call
72948         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72949         with 2xNULL arguments, also to flush the state storage. Handle the
72950         IRIX iconv behaviour. Realloc the final result, to throw away unused
72951         memory.
72952
72953 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72954
72955         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72956         and fchmodat unconditionally, since glibc 2.4 has them.
72957         Problem reported by Arkadiusz Miskiewicz.
72958
72959 2006-12-10  Bruno Haible  <bruno@clisp.org>
72960
72961         * gnulib-tool (func_import): Show the include files only for those
72962         modules that are copied and specified.
72963         Reported by Karl Berry.
72964
72965 2006-12-08  Jim Meyering  <jim@meyering.net>
72966
72967         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72968         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72969
72970         * build-aux/announce-gen: Add two new options, both optional:
72971         --bootstrap-tools=TOOL_LIST
72972               a comma-separated list of tools, e.g.,
72973               autoconf,automake,bison,gnulib
72974         --gnulib-snapshot-date=DATE
72975               if gnulib is in the bootstrap tool list,
72976               then report this as the snapshot date.
72977               If not specified, use the current date/time.
72978               If you specify a date here, be sure it's UTC.
72979
72980 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72981
72982         * tests/test-argp-2.sh: Fix test to match actual output.
72983         (func_compare): Fix sed script to be portable.
72984
72985 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72986
72987         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72988         workaround for this case.  It is not autoconfigured now; offhand
72989         it's hard to see how to autoconfigure it.
72990
72991 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72992
72993         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72994         a directory that is about to be chowned.  Such a directory's
72995         initial file permissions should permit the owner only and this
72996         should not be changed until after the chown, since the group and
72997         other bits would be incorrect if they granted permission before
72998         the chown.
72999
73000         Fix porting problem for iswctype reported by Georg Schwarz in:
73001         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73002         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73003         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73005         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73006
73007 2006-12-03  Jim Meyering  <jim@meyering.net>
73008
73009         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73010         p->fts_statp may not yet be defined.
73011         (fts_read): Instead, set it in the caller, once p->fts_statp is
73012         sure to be defined, and corresponds to a top-level directory.
73013         This bug made du -x fail.  Here's the coreutils test case:
73014         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73015         Reported by Mike Frysinger.
73016
73017 2006-12-01  Jim Meyering  <jim@meyering.net>
73018
73019         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73020         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73021         Reported by Simon Josefsson.
73022
73023 2006-11-30  Jim Meyering  <jim@meyering.net>
73024
73025         * m4/warning.m4: Use the all-permissive copyright notice
73026         recommended by RMS (rather than LGPL).
73027         * m4/vararrays.m4: Likewise.
73028         * m4/flexmember.m4: Likewise.
73029
73030 2006-11-29  Bruno Haible  <bruno@clisp.org>
73031
73032         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73033         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73034         using +=.
73035         Reported by Simon Josefsson <simon@josefsson.org>.
73036
73037 2006-11-28  James Youngman <jay@gnu.org>
73038
73039         * README: Advise users that they might find the bug-gnulib@gnu.org
73040         and autotools-announce@gnu.org mailing lists useful.
73041
73042 2006-11-28  Bruno Haible  <bruno@clisp.org>
73043
73044         * m4/ptrdiff_max.m4: Remove file.
73045
73046 2006-11-21  Bruno Haible  <bruno@clisp.org>
73047
73048         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73049         _AC_COMPUTE_INT.
73050         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73051         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73052         _AC_COMPUTE_INT.
73053         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73054         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73055         _AC_COMPUTE_INT.
73056         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73057
73058 2006-11-28  Jim Meyering  <jim@meyering.net>
73059
73060         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73061         warning from "gcc -Wshadow" about shadowing the builtin.
73062
73063 2006-11-27  Bruno Haible  <bruno@clisp.org>
73064
73065         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73066         _AC_COMPUTE_INT.
73067         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73068
73069 2006-11-27  Bruno Haible  <bruno@clisp.org>
73070             Paul Eggert  <eggert@cs.ucla.edu>
73071
73072         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73073
73074 2006-11-26  Bruno Haible  <bruno@clisp.org>
73075
73076         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73077         noinst_LTLIBRARIES.
73078
73079 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73080             Bruno Haible  <bruno@clisp.org>
73081
73082         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73083         if compiling with "gcc -ansi".
73084
73085 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         Fix some incompatibilities with gcc -ansi -pedantic.
73088         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73089         if compiling pedantically with GCC, unless it's C99 or later.
73090         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73091         it mishandles gcc -ansi -pedantic as well.
73092         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73093         if gcc -pedantic.
73094         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73095         initializers for struct if -pedantic, unless it's C99 or later.
73096
73097 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73098
73099         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73100         Don't close an fd more than once. Identical atimes indicate
73101         success, not failure.
73102
73103 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73104
73105         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73106
73107 2006-11-23  Jim Meyering  <jim@meyering.net>
73108
73109         * build-aux/announce-gen: New file.  From coreutils.
73110
73111 2006-11-22  Jim Meyering  <jim@meyering.net>
73112
73113         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73114         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73115         (fts_read): Use a temporary to narrow the overused st_size member
73116         before using it in a switch statement.  Reported by Matthew Woehlke.
73117
73118         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73120
73121 2006-11-20  Bruno Haible  <bruno@clisp.org>
73122
73123         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73124         changequote instead of pairs of brackets.
73125         Reported by Andreas Schwab <schwab@suse.de>.
73126
73127 2006-11-21  Jim Meyering  <jim@meyering.net>
73128
73129         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73130         so as to remain compatible with older compilers.
73131         Patch from Michael Deutschmann.
73132
73133 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         * MODULES.html.sh (File system functions): Add openat.
73136
73137         * lib/openat.h (rpl_fstatat): New macro, if
73138         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73139         (fstatat): Define to rpl_fstatat under the same conditions,
73140         unless COMPILING_FSTATAT.
73141         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73142         seems to have the bug.
73143         * lib/fstatat.c: New file.
73144         * modules/openat (Files): Add it.
73145
73146 2006-11-20  Bruno Haible  <bruno@clisp.org>
73147
73148         * Makefile: New file.
73149
73150 2006-11-20  Jim Meyering  <jim@meyering.net>
73151
73152         The beginnings of syntax-related checks for gnulib.
73153         * lib/Makefile: New file.
73154         * lib/t-idcache: New script.  Ensure that the two halves of
73155         idcache.c stay in sync.
73156
73157         * lib/idcache.c: Adjust comments in user- and group- portions to
73158         be more accurate, and to be consistent with one another.
73159
73160 2006-11-20  Jim Meyering  <jim@meyering.net>
73161
73162         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73163         continue using the flexible array member (thus, this module performs
73164         half as many malloc calls), with the addition that...
73165         (getgroup, getuser): Consistently record a non-match via an empty
73166         "name" string, and map an empty string match to a NULL return value.
73167         * modules/idcache (Depends-on): Re-add flexmember.
73168
73169         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73170         (getuidbyname, getgroup, getgidbyname): Likewise.
73171
73172         Use cleaner syntax: NULL rather than 0.
73173         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73174
73175 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73178         It mishandled the case where the group was missing.
73179         Problem reported by Greg Schafer.
73180         * modules/idcache: Likewise.
73181
73182 2006-11-18  Jim Meyering  <jim@meyering.net>
73183
73184         * check-module (%exempt_header): Add exception for some
73185         conditionally-included headers.
73186
73187         * modules/i-ring (Depends-on): Add verify.
73188         (License): Change to LGPL.
73189
73190 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73193         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73194         and inttostr.h.  Use snprintf rather than uinttostr, so that
73195         LGPLed code doesn't depend on GPLed.
73196
73197 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * modules/inline (License): Change from GPL to LGPL.
73200
73201 2006-11-17  Jim Meyering  <jim@meyering.net>
73202
73203         * modules/d-type (License): Switch to LGPL.
73204
73205 2006-11-15  Bruno Haible  <bruno@clisp.org>
73206
73207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73208
73209 2006-11-15  Eric Blake  <ebb9@byu.net>
73210
73211         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73212         the module dependency.
73213
73214 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73215             Bruno Haible  <bruno@clisp.org>
73216
73217         * gnulib-tool (func_create_testdir): Add license consistency check.
73218
73219 2006-11-15  Eric Blake  <ebb9@byu.net>
73220
73221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73222         random "(cached)" in configure output.
73223
73224 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73225
73226         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73227         test for conforming inttypes.h is both announced and cached.
73228
73229         * MODULES.html.sh (seen_modules, seen_files): New variables.
73230         (func_module): Rewrite to use a few less gnulib-tool and sed
73231         invocations.  Avoid a couple of quadratic algorithms for ...
73232         (missed_modules, missed_files): ... these, with ...
73233         (func_append, func_tmpdir): ... these new functions, from
73234         gnulib-tool.  Analogously, install traps for cleanup.
73235
73236         * tests/test-gc.c (main): Remove unused variables.
73237         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73238
73239 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * modules/inttostr (License): Change to LGPL.
73242
73243 2006-11-14  Eric Blake  <ebb9@byu.net>
73244
73245         * modules/tempname (License): Change to LGPL.
73246
73247 2006-11-14  Eric Blake  <ebb9@byu.net>
73248
73249         * doc/functions.texi (Function Portability): *printf functions on
73250         Cygwin now understand all POSIX size specifiers.
73251
73252 2006-11-14  Bruno Haible  <bruno@clisp.org>
73253
73254         * modules/c-ctype (License): Change to LGPL.
73255
73256 2006-11-12  Bruno Haible  <bruno@clisp.org>
73257
73258         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73259         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73260         for GNOME libraries, for which the include files are installed in
73261         subdirectories of $prefix/include.
73262
73263 2006-11-12  Bruno Haible  <bruno@clisp.org>
73264
73265         * m4/lib-link.m4: Require at least autoconf-2.54.
73266         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73267         name to underscores for the --with option.
73268
73269 2006-11-13  Bruno Haible  <bruno@clisp.org>
73270
73271         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73272         the tests directory.
73273         Reported by Ralf Wildenhues.
73274
73275 2006-11-13  Bruno Haible  <bruno@clisp.org>
73276
73277         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73278         (func_emit_initmacro_end): Undo the override here.
73279         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73280         Works around the famous automake error in coreutils.
73281
73282 2006-11-13  Eric Blake  <ebb9@byu.net>
73283
73284         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73285         element, not its node.
73286
73287 2006-11-12  Bruno Haible  <bruno@clisp.org>
73288
73289         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73290         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73291
73292 2006-11-12  Bruno Haible  <bruno@clisp.org>
73293
73294         * gnulib-tool: New option --local-symlink.
73295         (func_usage): Document it.
73296         (lsymbolic): New variable.
73297         (func_import, func_create_testdir): If --symlink was not specified,
73298         test whether --local-symlink was specified and the file comes from
73299         the local_gnulib_dir.
73300
73301 2006-11-12  Bruno Haible  <bruno@clisp.org>
73302
73303         * gnulib-tool (func_ln): New function.
73304         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73305
73306 2006-11-12  Bruno Haible  <bruno@clisp.org>
73307
73308         Finish support for source files in subdirectories.
73309         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73310         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73311         AUTOMAKE_OPTIONS.
73312         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73313
73314 2006-11-12  Bruno Haible  <bruno@clisp.org>
73315
73316         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73317         EXTRA_lib_SOURCES augmentation.
73318         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73319
73320 2006-11-12  Jim Meyering  <jim@meyering.net>
73321
73322         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73323         file descriptors.  This also averts a failure on systems with
73324         native openat support when a traversed directory lacks "x" access.
73325         * lib/fts_.h: Include "i-ring.h"
73326         (struct FTS) [fts_fd_ring]: New member.
73327         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73328         (FCHDIR): Add parentheses.
73329         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73330         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73331         When descending, rather than simply closing the previous
73332         fts_cwd_fd value, push that file descriptor onto the ring.
73333         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73334         (fts_open): Initialize the new fd_ring member.
73335         (fts_close): Clear the ring.
73336         (fts_safe_changedir): When possible, use our new fd_ring to skip
73337         the diropen and fstat and dev/ino comparison that would normally
73338         accompany a virtual `chdir ("..")'.
73339
73340         * modules/fts (Depends-on): Add i-ring.
73341         * modules/i-ring: New module.
73342         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73343         * m4/i-ring.m4: New file.
73344
73345 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73346
73347         * gnulib-tool (func_create_testdir): Fix replacement of
73348         `build-aux' in configure.ac.  Run autotools in gltests
73349         subdirectory.
73350         (func_create_testdir, func_create_megatestdir, test): There is
73351         no need for '--force' in most autotool invocations in a new
73352         tree.  Actually fail the whole test if any of the tools, or the
73353         configure or make stages fail.
73354
73355         Sync from Automake.
73356         * build-aux/gnupload: Revert last change.  Add pointer to upload
73357         instructions of the GNU Maintenance Instructions.
73358         Suggestion by Karl Berry.
73359
73360 2006-11-10  Jim Meyering  <jim@meyering.net>
73361
73362         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73363
73364 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73365
73366         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73367         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73368         (bind_textdomain_codeset) [! ENABLE_NLS]:
73369         Evaluate all the arguments.  That way, callers get compatible behavior
73370         if the arguments have side effects.  Also, it avoids some GCC
73371         diagnostics in some cases; Joel E. Denny reported problems when Bison
73372         was configured with --enable-gcc-warnigs.
73373
73374 2006-11-10  Jim Meyering  <jim@meyering.net>
73375
73376         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73377         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73378         account.
73379
73380 2006-11-10  Jim Meyering  <jim@meyering.net>
73381
73382         * modules/inline: New file/module.
73383         * modules/xalloc (Files): Remove m4/inline.m4.
73384         (Depends-on): Add inline, instead.
73385         * modules/oset: Likewise.
73386         * modules/list: Likewise.
73387
73388 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73389
73390         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73391         Problem reported by Matthew Woehlke.
73392
73393 2006-11-09  Bruno Haible  <bruno@clisp.org>
73394
73395         * lib/tempname.c (gen_tempname): Remove variant that invokes
73396         __gen_tempname.
73397         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73398         __gen_tempname.
73399
73400 2006-11-08  Bruno Haible  <bruno@clisp.org>
73401
73402         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73403         to 'yes' instead of 'cross-compiling'.
73404
73405 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * lib/quotearg.h (quotearg_free): New decl.
73408         * lib/quotearg.c (quotearg_free): New function.
73409         (slot0, nslots, slotvec0, slotvec):
73410         Now file-scope so that quotearg_free can get at them.
73411
73412 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73413
73414         Sync from Automake.
73415         * build-aux/gnupload: Add missing 'gnu' to example URL.
73416         Report by Karl Berry.
73417
73418 2006-11-08  Bruno Haible  <bruno@clisp.org>
73419
73420         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73421         Suggested by Paul Eggert.
73422
73423 2006-11-08  Jim Meyering  <jim@meyering.net>
73424
73425         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73426         It's already included if !_LIBC.
73427         (fts_safe_changedir): Add a comment.
73428
73429 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73432         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73433         Matthew Woehlke.
73434
73435         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73436         definitions up, to avoid colliding with change below.
73437         (static_inline) [HAVE_INLINE]: New macro.
73438         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73439         Provide extern decls when !HAVE_INLINE.  Do not define unless
73440         static_inline is defined, either by us or by xmalloc.c.  Use
73441         static_inline rather than static inline.
73442         (XCALLOC): Optimize sizeof(T) = 1 case.
73443         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73444
73445 2006-11-07  Bruno Haible  <bruno@clisp.org>
73446
73447         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73448         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73449         AC_C_INLINE.
73450         * modules/xalloc (Files): Add m4/inline.m4.
73451
73452 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73453
73454         * README: Fix typo.
73455         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73456         (Miscellanous Notes): ...from this.
73457
73458 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73461         Mention that offsetof should be used instead of sizeof.
73462         From Bruno Haible.
73463
73464 2006-11-07  Bruno Haible  <bruno@clisp.org>
73465
73466         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73467
73468 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73471         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73472         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73473         (gl_tree_add_before, gl_tree_add_after):
73474         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73475         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73476         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73477         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73478         (gl_linked_add_after, gl_linked_add_at): Likewise.
73479         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73480         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73481         (gl_tree_add_before, gl_tree_add_after): Likewise.
73482         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73483         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73484         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73485
73486 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73487
73488         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73489
73490 2006-11-06  Bruno Haible  <bruno@clisp.org>
73491
73492         * m4/inline.m4: New file.
73493         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73494         * modules/list (Files): Add m4/inline.m4.
73495         * modules/oset (Files): Likewise.
73496
73497 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * lib/idcache.c: Include <stddef.h>, for offsetof.
73500         (struct userid.name): Change from char * to a flexible array member.
73501         All uses changed.
73502         * modules/idcache (Depends-on): Add flexmember.
73503
73504         * MODULES.html.sh (Core language properties): New module flexmember.
73505         * modules/flexmember, m4/flexmember.m4: New files.
73506
73507         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73508         inline functions that are identical with the old xnmalloc_inline,
73509         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73510         that we can avoid some unnecessary integer multiplications and
73511         divisions in the common case where the element size is known at
73512         compile time.
73513         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73514         needed.
73515         (xnboundedmalloc): Remove.
73516         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73517         arguments, for consistency with rest of this header.
73518         (xcharalloc): Rewrite using XNMALLOC.
73519         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73520         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73521         versions have been moved to lib/xalloc.h and renamed to be the
73522         non-*_inline versions.
73523         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73524         and xnrealloc functions, since those functions are now inline and
73525         now call us.
73526         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73527         renaming described above.
73528         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73529         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73530         captures the dependency in AC_C_INLINE.
73531
73532         New module canonicalize-lgpl, proposed by Charles Wilson in
73533         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73534         with a few small changes afterwards.
73535         * MODULES.html.sh (File system functions): New module
73536         canonicalize-lgpl.
73537         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73538         and canonicalize_file_name.
73539         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73540         * modules/canonicalize-lgpl: New files.
73541
73542 2006-11-05  Bruno Haible  <bruno@clisp.org>
73543
73544         * gnulib-tool (func_import, func_create_testdir): Create directories
73545         also for files in subdirectories of lib/.
73546
73547 2006-11-05  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73550         ANSI C compliant.
73551
73552 2006-11-03  Bruno Haible  <bruno@clisp.org>
73553
73554         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73555         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73556         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73557         (xnboundedmalloc): New inline function.
73558         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73559         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73560         xmalloc.
73561         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73562         xmalloc.
73563         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73564         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73565         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73566         xmalloc.
73567         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73568         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73569         xmalloc.
73570         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73571         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73572         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73573         xmalloc.
73574         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73575         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73576         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73577         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73578         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73579         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73580         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73581
73582 2006-11-03  Bruno Haible  <bruno@clisp.org>
73583
73584         * lib/c-ctype.h [C++]: Define functions without name mangling.
73585         * lib/fwriteerror.h [C++]: Likewise.
73586         * lib/gcd.h [C++]: Likewise.
73587         * lib/linebreak.h [C++]: Likewise.
73588
73589 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73590
73591         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73592         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73593         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73595         Check for functions and headers just once.
73596         Check for declaration of canonicalize_file_name.
73597         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73598
73599 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73600
73601         * gnulib-tool (func_import): Fix typo in actioncmd.
73602
73603 2006-11-02  Bruno Haible  <bruno@clisp.org>
73604
73605         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73606         newline sequence in the Makefile.am snippet as a space, like "make"
73607         does.
73608         Reported by Roger Persson <perrog@gmail.com>.
73609
73610 2006-11-01  Bruno Haible  <bruno@clisp.org>
73611
73612         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73613         already declared in <string.h>.
73614         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73615
73616 2006-11-01  Bruno Haible  <bruno@clisp.org>
73617
73618         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73619         * lib/strcase.h: Include <string.h>.
73620         (strcasecmp): Define to rpl_strcasecmp here.
73621
73622 2006-11-01  Bruno Haible  <bruno@clisp.org>
73623
73624         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73625
73626 2006-11-01  Eric Blake  <ebb9@byu.net>
73627
73628         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73629
73630         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73631
73632 2006-10-29  Bruno Haible  <bruno@clisp.org>
73633
73634         Make it compile in C++ mode.
73635         * lib/full-write.c (full_rw): Add a cast.
73636
73637 2006-11-01  Bruno Haible  <bruno@clisp.org>
73638
73639         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73640         be POSIX compliant.
73641         Reported by Roger Persson <perrog@gmail.com>.
73642
73643 2006-11-01  Eric Blake  <ebb9@byu.net>
73644
73645         * lib/getopt_.h: Fix comments.
73646
73647 2006-10-31  Eric Blake  <ebb9@byu.net>
73648
73649         * modules/tmpdir (Depends-on): Add sys_stat.
73650         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73651         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73652         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73653         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73654         tempname.
73655
73656 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73657
73658         Avoid some C++ diagnostics reported by Bruno Haible.
73659         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73660         xmalloc.
73661         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73662         (struct slotvec): Move to top level.
73663         (quotearg_n_options): Rewrite to avoid xmalloc.
73664         * lib/xalloc.h (xcharalloc): New function.
73665         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73666         [defined __cplusplus]: Add function template that provides result
73667         type propagation.  This part of the change is from Bruno Haible.
73668
73669 2006-10-29  Bruno Haible  <bruno@clisp.org>
73670
73671         Make it compile in C++ mode.
73672         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73673         * lib/strnlen1.c (strnlen1): Cast memchr result.
73674         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73675         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73676         (create_temp_dir): Rename local variable 'template'.
73677         (compile_csharp_using_sscli): Add cast.
73678         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73679         * lib/findprog.c (find_in_path): Likewise.
73680         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73681         * lib/wait-process.c (register_slave_subprocess): Likewise.
73682
73683 2006-10-22  Bruno Haible  <bruno@clisp.org>
73684
73685         * modules/tsearch: New file.
73686         * lib/tsearch.h: New file.
73687         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73688         * m4/tsearch.m4: New file.
73689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73690
73691 2006-10-29  Eric Blake  <ebb9@byu.net>
73692
73693         * lib/arcfour.c: Assume config.h.
73694         * lib/arctwo.c: Likewise.
73695         * lib/base64.c: Likewise.
73696         * lib/check-version.c: Likewise.
73697         * lib/crc.c: Likewise.
73698         * lib/des.c: Likewise.
73699         * lib/gc-gnulib.c: Likewise.
73700         * lib/gc-libgcrypt.c: Likewise.
73701         * lib/gc-pbkdf2-sha1.c: Likewise.
73702         * lib/getaddrinfo.c: Likewise.
73703         * lib/getdelim.c: Likewise.
73704         * lib/getline.c: Likewise.
73705         * lib/hmac-md5.c: Likewise.
73706         * lib/hmac-sha1.c: Likewise.
73707         * lib/iconvme.c: Likewise.
73708         * lib/md2.c: Likewise.
73709         * lib/md4.c: Likewise.
73710         * lib/memxor.c: Likewise.
73711         * lib/read-file.c: Likewise.
73712         * lib/readline.c: Likewise.
73713         * lib/rijndael-alg-fst.c: Likewise.
73714         * lib/rijndael-api-fst.c: Likewise.
73715         * lib/xgetdomainname.c: Likewise.
73716
73717 2006-10-28  Eric Blake  <ebb9@byu.net>
73718
73719         * lib/xstrndup.c: Assume config.h.
73720
73721 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73724         stat-macros.h is now for our own macros, whereas stat_h is for
73725         macros in the <sys/stat.h> name space.
73726         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73727         (STAT_MACROS_H): Remove.
73728         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73729         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73730         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73731         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73732         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73733         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73734         Move these macros to ...
73735         * lib/stat_.h: here.  Don't include stat-macros.h.
73736         * lib/canonicalize.c: Don't include stat-macros.h.
73737         * lib/chown.c: Likewise.
73738         * lib/euidaccess.c: Likewise.
73739         * lib/file-type.c: Likewise.
73740         * lib/filemode.c: Likewise.
73741         * lib/glob.c: Likewise.
73742         * lib/isapipe.c: Likewise.
73743         * lib/lchown.c: Likewise.
73744         * lib/lstat.c: Likewise.
73745         * lib/mkdir-p.c: Likewise.
73746         * lib/rmdir.c: Likewise.
73747         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73749         unless mkdir isn't declared, to speed up 'configure'.
73750         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73751         would define all the S_* symbols.
73752         * modules/canonicalize (Depends-on):
73753         Depend on sys_stat, not stat-macros.
73754         * modules/chown: Likewise.
73755         * modules/euidaccess: Likewise.
73756         * modules/filemode: Likewise.
73757         * modules/file-type: Likewise.
73758         * modules/glob: Likewise.
73759         * modules/isapipe: Likewise.
73760         * modules/lchown: Likewise.
73761         * modules/lstat: Likewise.
73762         * modules/mkancesdirs: Likewise.
73763         * modules/rmdir: Likewise.
73764         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73765         * modules/modechange: Likewise.
73766         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73767         (configure.ac): Remove gl_STAT_MACROS.
73768         * modules/sys_stat (Depends-on): Remove stat-macros.
73769
73770 2006-10-27  Bruno Haible  <bruno@clisp.org>
73771
73772         * m4/signed.m4: Remove file.
73773         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73774         invocation.
73775         * modules/vasnprintf (Files): Remove m4/signed.m4.
73776
73777 2006-10-27  Bruno Haible  <bruno@clisp.org>
73778
73779         Update to GNU gettext 0.16.
73780         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73781         m4/inttypes-h.m4, m4/signed.m4.
73782         * m4/gettext.m4: Update to GNU gettext 0.16.
73783         * m4/intl.m4: New file, from GNU gettext.
73784         * m4/intldir.m4: New file, from GNU gettext.
73785         * config/srclist.txt: Update
73786
73787 2006-10-27  Eric Blake  <ebb9@byu.net>
73788
73789         * MODULES.html.sh: Document tempname.
73790         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73791         dependencies.
73792         (Files): Move lib/tempname.c...
73793         * modules/tempname: ...to this new module.
73794         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73795         (gl_PREREQ_TEMPNAME): Move...
73796         * m4/tempname.m4: ...to this new file.
73797         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73798         * modules/sys_stat (Depends-on): Add stat-macros.
73799         * lib/stat_.h (includes): Pick up stat macros.
73800         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73801         if stat macros are broken.
73802         * lib/tempname.c (includes): No need to include "stat-macros.h".
73803         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73804         (direxists, __path_search) [!_LIBC]: Don't compile these in
73805         gnulib; the tmpdir module covers that.
73806         * lib/tempname.h: New file.
73807
73808 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73809
73810         * COPYING: Explain how gnulib-tool converts licence headers.
73811         Almost all wording by Eric Blake.
73812
73813 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73814
73815         * lib/mbchar.h (is_basic_table): Make read-only.
73816         * lib/mbchar.c (is_basic_table): Likewise.
73817         Reported by John Darrington.
73818
73819 2006-10-25  Bruno Haible  <bruno@clisp.org>
73820
73821         * lib/progname.h (set_program_name): Undefine before defining.
73822
73823 2006-10-25  Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73826         false for non-gcc C++ compilers.
73827         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73828
73829 2006-10-24  Bruno Haible  <bruno@clisp.org>
73830
73831         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73832         iconv implementations like Irix iconv.
73833
73834 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * modules/vararrays: New file.
73837         * m4/vararrays.m4: New file, taken from diffutils.
73838         * MODULES.html.sh: New module vararrays.
73839
73840 2006-10-24  Karl Berry  <karl@gnu.org>
73841
73842         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73843         Don't call GNU Unix.
73844
73845 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73846
73847         * users.txt: Add Libtool.
73848
73849         Sync from Libtool:
73850
73851         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73854         to gnulib's policy of including config.h unconditionally.
73855
73856 2006-10-24  Bruno Haible  <bruno@clisp.org>
73857
73858         * modules/wcwidth (Files): Add m4/wint_t.m4.
73859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73860         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73861
73862 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73863
73864         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73865         to pacify GCC with some -W flags enabled.  Problem reported by
73866         Bruno Haible.
73867
73868 2006-10-24  Jim Meyering  <jim@meyering.net>
73869
73870         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73871         Reported by Karl Berry.
73872
73873 2006-10-23  Bruno Haible  <bruno@clisp.org>
73874
73875         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73876
73877 2006-10-24  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/gl_list.h: Use C comment style, not C++ comment style.
73880
73881 2006-10-23  Eric Blake  <ebb9@byu.net>
73882
73883         * lib/getaddrinfo.c (includes): Add missing include.
73884
73885 2006-10-23  Bruno Haible  <bruno@clisp.org>
73886             Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         Ability to rename obstack_free.
73889         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73890         obstack_free.
73891         (obstack_free): Invoke the __obstack_free macro.
73892         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73893
73894 2006-10-23  Bruno Haible  <bruno@clisp.org>
73895             Paul Eggert  <eggert@cs.ucla.edu>
73896
73897         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73898         __argc, __argv from the declaration. (They are defined as macros on
73899         mingw.)
73900
73901 2006-10-22  Bruno Haible  <bruno@clisp.org>
73902
73903         * doc/gnulib-intro.texi: New file.
73904         * doc/gnulib.texi: Include it.
73905
73906 2006-10-21  Bruno Haible  <bruno@clisp.org>
73907
73908         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73909         "Introduction", "Miscellanous Notes", "Particular Modules".
73910
73911 2006-10-21  Bruno Haible  <bruno@clisp.org>
73912
73913         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73914         Change mostlyclean-local rule to avoid sh syntax error from bash
73915         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73916
73917 2006-10-23  Jim Meyering  <jim@meyering.net>
73918
73919         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73920         in place of snprintf.
73921
73922         * modules/inttostr (Files): Add lib/uinttostr.c.
73923         * lib/uinttostr.c (inttostr): New file/function.
73924         * lib/inttostr.h (uinttostr): Declare.
73925         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73926         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73927         Add uinttostr.
73928         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73929
73930 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73931
73932         * lib/canonicalize.c (ELOOP): Define if not already defined.
73933         Problem reported by Bruno Haible in
73934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73935
73936 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73939         Problem reported by Perry Smith and Ville Laurikari.
73940
73941         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73942         uses.
73943
73944 2006-10-19  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73947         for mingw.
73948
73949 2006-10-19  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73952         Needed for mingw.
73953
73954 2006-10-19  Bruno Haible  <bruno@clisp.org>
73955
73956         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73957
73958 2006-10-19  Bruno Haible  <bruno@clisp.org>
73959
73960         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73961         it.
73962
73963 2006-10-19  Bruno Haible  <bruno@clisp.org>
73964
73965         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73966         invocation.
73967
73968 2006-10-19  Bruno Haible  <bruno@clisp.org>
73969
73970         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73971         mountlist by default.
73972
73973 2006-10-16  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/c-strstr.c: Include c-strstr.h.
73976
73977 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73978
73979         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73980         in a slash.
73981
73982 2006-10-18  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/lock.h [C++]: Wrap definitions in extern "C".
73985
73986 2006-10-18  Bruno Haible  <bruno@clisp.org>
73987
73988         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73989         gl_LIBOBJS list.
73990
73991 2006-10-18  Bruno Haible  <bruno@clisp.org>
73992
73993         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73994
73995 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73996
73997         * lib/xstrtol.h: Include gettext.h.
73998         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73999         Problem reported by Eric Blake.
74000         * modules/xstrtol (Depends-on): Add gettext-h.
74001
74002 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74003
74004         * lib/strftime.c (advance): New macro.
74005         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74006         incomplete type, so you can't add 0 to it.  Problem and patch
74007         reported by Eelco Dolstra for dietlibc.
74008
74009 2006-10-18  Jim Meyering  <jim@meyering.net>
74010
74011         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74012         type for a local, and rename it: s/up/user_proc/.
74013
74014 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74015
74016         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74017         READ_UTMP_USER_PROCESS.
74018         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74019
74020 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74021
74022         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74023         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74024
74025 2006-10-17  Eric Blake  <ebb9@byu.net>
74026
74027         * lib/sigprocmask.c (sigprocmask): Fix typo.
74028
74029         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74030
74031         * modules/clean-temp (Makefile.am): Don't add to make output...
74032         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74033         config.h.
74034
74035 2006-10-17  Bruno Haible  <bruno@clisp.org>
74036
74037         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74038         differently if DEFAULT_TEXT_DOMAIN is set.
74039
74040 2006-10-16  Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/clean-temp.c: Include fwriteerror.h.
74043
74044 2006-10-16  Bruno Haible  <bruno@clisp.org>
74045
74046         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74047
74048 2006-10-16  Bruno Haible  <bruno@clisp.org>
74049
74050         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74051         * lib/sigprocmask.h: Include <sys/types.h>.
74052         (sigset_t): Use the system's definition if present.
74053
74054 2006-10-17  Eric Blake  <ebb9@byu.net>
74055
74056         * lib/xvasprintf.c (includes): Assume config.h.
74057         * lib/xasprintf.c (includes): Likewise.
74058
74059 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74062         at least as wide as intmax_t.
74063
74064 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74065
74066         (Imported from Automake.)
74067         * build-aux/gnupload: Update to version 1.1 of directive file.
74068
74069 2006-10-16  Eric Blake  <ebb9@byu.net>
74070
74071         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74072         match Automake 1.10a.
74073
74074 2006-10-14  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/sigprocmask: New file.
74077         * lib/sigprocmask.h: New file.
74078         * lib/sigprocmask.c: New file.
74079         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74080         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74081         request sigprocmask.o.
74082         (gl_PREREQ_SIGPROCMASK): New macro.
74083         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74084         (Depends-on): Add sigprocmask.
74085         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74086         gt_SIGNALBLOCKING. Test for 'raise' only once.
74087         * lib/fatal-signal.c: Include sigprocmask.h.
74088         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74089         unblock_fatal_signals): Define always.
74090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74091         sigprocmask.
74092
74093 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74094
74095         Sync from Automake.
74096         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74097         which incorrectly sets the mode of an existing destination
74098         directory.  In some cases the unpatched install-sh could do the
74099         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74100         system.  We hope this is rare in practice, but it's clearly worth
74101         fixing.  Problem reported by Alex Unleashed in
74102         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74103         Also, don't bother to check for -m bugs unless we're using -m;
74104         suggested by Stepan Kasal.
74105
74106 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74107
74108         Sync from Automake.
74109         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74110         `-c' flag, so they appear at the same position as in %FASTDEP%
74111         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74112         which ignores unknown options only after the first non-option.
74113         Bug report against M4 by Nelson H. F. Beebe.
74114
74115 2006-10-13  Jim Meyering  <jim@meyering.net>
74116
74117         Fix a bug in yesterday's change.
74118         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74119         p->fts_statp->st_dev would be used uninitialized.
74120         Ensures that we always call fts_stat on the very first entry.
74121         Miklos Szeredi reported that find -xdev stopped working.
74122
74123 2006-10-12  Bruno Haible  <bruno@clisp.org>
74124
74125         * gnulib-tool (func_get_automake_snippet): Append an automatically
74126         computed EXTRA_DIST augmentation.
74127         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74128         * modules/alloca-opt (Makefile.am): Likewise.
74129         * modules/allocsa (Makefile.am): Likewise.
74130         * modules/arcfour (Makefile.am): Likewise.
74131         * modules/arctwo (Makefile.am): Likewise.
74132         * modules/argmatch (Makefile.am): Likewise.
74133         * modules/argz (Makefile.am): Likewise.
74134         * modules/atexit (Makefile.am): Likewise.
74135         * modules/backupfile (Makefile.am): Likewise.
74136         * modules/byteswap (Makefile.am): Likewise.
74137         * modules/c-strtod (Makefile.am): Likewise.
74138         * modules/c-strtold (Makefile.am): Likewise.
74139         * modules/calloc (Makefile.am): Likewise.
74140         * modules/canon-host (Makefile.am): Likewise.
74141         * modules/canonicalize (Makefile.am): Likewise.
74142         * modules/chdir-long (Makefile.am): Likewise.
74143         * modules/chdir-safer (Makefile.am): Likewise.
74144         * modules/check-version (Makefile.am): Likewise.
74145         * modules/chown (Makefile.am): Likewise.
74146         * modules/cloexec (Makefile.am): Likewise.
74147         * modules/close-stream (Makefile.am): Likewise.
74148         * modules/closeout (Makefile.am): Likewise.
74149         * modules/crc (Makefile.am): Likewise.
74150         * modules/csharpexec (Makefile.am): Likewise.
74151         * modules/cycle-check (Makefile.am): Likewise.
74152         * modules/des (Makefile.am): Likewise.
74153         * modules/dev-ino (Makefile.am): Likewise.
74154         * modules/dirfd (Makefile.am): Likewise.
74155         * modules/dirname (Makefile.am): Likewise.
74156         * modules/dup2 (Makefile.am): Likewise.
74157         * modules/eealloc (Makefile.am): Likewise.
74158         * modules/error (Makefile.am): Likewise.
74159         * modules/euidaccess (Makefile.am): Likewise.
74160         * modules/exclude (Makefile.am): Likewise.
74161         * modules/exitfail (Makefile.am): Likewise.
74162         * modules/fcntl-safer (Makefile.am): Likewise.
74163         * modules/fcntl (Makefile.am): Likewise.
74164         * modules/file-type (Makefile.am): Likewise.
74165         * modules/fileblocks (Makefile.am): Likewise.
74166         * modules/filemode (Makefile.am): Likewise.
74167         * modules/filenamecat (Makefile.am): Likewise.
74168         * modules/fnmatch (Makefile.am): Likewise.
74169         * modules/fopen-safer (Makefile.am): Likewise.
74170         * modules/fpending (Makefile.am): Likewise.
74171         * modules/fprintftime (Makefile.am): Likewise.
74172         * modules/free (Makefile.am): Likewise.
74173         * modules/fsusage (Makefile.am): Likewise.
74174         * modules/ftruncate (Makefile.am): Likewise.
74175         * modules/fts (Makefile.am): Likewise.
74176         * modules/gc-arcfour (Makefile.am): Likewise.
74177         * modules/gc-des (Makefile.am): Likewise.
74178         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74179         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74180         * modules/gc-md4 (Makefile.am): Likewise.
74181         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74182         * modules/gc-sha1 (Makefile.am): Likewise.
74183         * modules/gc (Makefile.am): Likewise.
74184         * modules/getaddrinfo (Makefile.am): Likewise.
74185         * modules/getcwd (Makefile.am): Likewise.
74186         * modules/getdelim (Makefile.am): Likewise.
74187         * modules/getdomainname (Makefile.am): Likewise.
74188         * modules/getgroups (Makefile.am): Likewise.
74189         * modules/gethostname (Makefile.am): Likewise.
74190         * modules/gethrxtime (Makefile.am): Likewise.
74191         * modules/getline (Makefile.am): Likewise.
74192         * modules/getloadavg (Makefile.am): Likewise.
74193         * modules/getlogin_r (Makefile.am): Likewise.
74194         * modules/getndelim2 (Makefile.am): Likewise.
74195         * modules/getopt (Makefile.am): Likewise.
74196         * modules/getpagesize (Makefile.am): Likewise.
74197         * modules/getpass-gnu (Makefile.am): Likewise.
74198         * modules/getpass (Makefile.am): Likewise.
74199         * modules/getsubopt (Makefile.am): Likewise.
74200         * modules/gettime (Makefile.am): Likewise.
74201         * modules/gettimeofday (Makefile.am): Likewise.
74202         * modules/getugroups (Makefile.am): Likewise.
74203         * modules/getusershell (Makefile.am): Likewise.
74204         * modules/glob (Makefile.am): Likewise.
74205         * modules/group-member (Makefile.am): Likewise.
74206         * modules/hard-locale (Makefile.am): Likewise.
74207         * modules/hash (Makefile.am): Likewise.
74208         * modules/hmac-md5 (Makefile.am): Likewise.
74209         * modules/hmac-sha1 (Makefile.am): Likewise.
74210         * modules/human (Makefile.am): Likewise.
74211         * modules/idcache (Makefile.am): Likewise.
74212         * modules/imaxabs (Makefile.am): Likewise.
74213         * modules/imaxdiv (Makefile.am): Likewise.
74214         * modules/inet_ntop (Makefile.am): Likewise.
74215         * modules/inet_pton (Makefile.am): Likewise.
74216         * modules/intprops (Makefile.am): Likewise.
74217         * modules/inttostr (Makefile.am): Likewise.
74218         * modules/inttypes (Makefile.am): Likewise.
74219         * modules/isapipe (Makefile.am): Likewise.
74220         * modules/javaversion (Makefile.am): Likewise.
74221         * modules/lchmod (Makefile.am): Likewise.
74222         * modules/lchown (Makefile.am): Likewise.
74223         * modules/localcharset (Makefile.am): Likewise.
74224         * modules/long-options (Makefile.am): Likewise.
74225         * modules/lstat (Makefile.am): Likewise.
74226         * modules/malloc (Makefile.am): Likewise.
74227         * modules/mathl (Makefile.am): Likewise.
74228         * modules/mbchar (Makefile.am): Likewise.
74229         * modules/md2 (Makefile.am): Likewise.
74230         * modules/md4 (Makefile.am): Likewise.
74231         * modules/md5 (Makefile.am): Likewise.
74232         * modules/memcasecmp (Makefile.am): Likewise.
74233         * modules/memchr (Makefile.am): Likewise.
74234         * modules/memcmp (Makefile.am): Likewise.
74235         * modules/memcoll (Makefile.am): Likewise.
74236         * modules/memcpy (Makefile.am): Likewise.
74237         * modules/memmem (Makefile.am): Likewise.
74238         * modules/memmove (Makefile.am): Likewise.
74239         * modules/mempcpy (Makefile.am): Likewise.
74240         * modules/memrchr (Makefile.am): Likewise.
74241         * modules/memset (Makefile.am): Likewise.
74242         * modules/memxor (Makefile.am): Likewise.
74243         * modules/mkancesdirs (Makefile.am): Likewise.
74244         * modules/mkdir-p (Makefile.am): Likewise.
74245         * modules/mkdir (Makefile.am): Likewise.
74246         * modules/mkdtemp (Makefile.am): Likewise.
74247         * modules/mkstemp (Makefile.am): Likewise.
74248         * modules/mktime (Makefile.am): Likewise.
74249         * modules/modechange (Makefile.am): Likewise.
74250         * modules/mountlist (Makefile.am): Likewise.
74251         * modules/nanosleep (Makefile.am): Likewise.
74252         * modules/obstack (Makefile.am): Likewise.
74253         * modules/openat (Makefile.am): Likewise.
74254         * modules/pagealign_alloc (Makefile.am): Likewise.
74255         * modules/pathmax (Makefile.am): Likewise.
74256         * modules/physmem (Makefile.am): Likewise.
74257         * modules/poll (Makefile.am): Likewise.
74258         * modules/posixtm (Makefile.am): Likewise.
74259         * modules/posixver (Makefile.am): Likewise.
74260         * modules/putenv (Makefile.am): Likewise.
74261         * modules/quote (Makefile.am): Likewise.
74262         * modules/quotearg (Makefile.am): Likewise.
74263         * modules/raise (Makefile.am): Likewise.
74264         * modules/read-file (Makefile.am): Likewise.
74265         * modules/readline (Makefile.am): Likewise.
74266         * modules/readlink (Makefile.am): Likewise.
74267         * modules/readtokens (Makefile.am): Likewise.
74268         * modules/readutmp (Makefile.am): Likewise.
74269         * modules/realloc (Makefile.am): Likewise.
74270         * modules/regex (Makefile.am): Likewise.
74271         * modules/rename-dest-slash (Makefile.am): Likewise.
74272         * modules/rename (Makefile.am): Likewise.
74273         * modules/rijndael (Makefile.am): Likewise.
74274         * modules/rmdir (Makefile.am): Likewise.
74275         * modules/rpmatch (Makefile.am): Likewise.
74276         * modules/safe-read (Makefile.am): Likewise.
74277         * modules/safe-write (Makefile.am): Likewise.
74278         * modules/same-inode (Makefile.am): Likewise.
74279         * modules/same (Makefile.am): Likewise.
74280         * modules/save-cwd (Makefile.am): Likewise.
74281         * modules/savedir (Makefile.am): Likewise.
74282         * modules/setenv (Makefile.am): Likewise.
74283         * modules/settime (Makefile.am): Likewise.
74284         * modules/sha1 (Makefile.am): Likewise.
74285         * modules/sig2str (Makefile.am): Likewise.
74286         * modules/snprintf (Makefile.am): Likewise.
74287         * modules/stat-macros (Makefile.am): Likewise.
74288         * modules/stat-time (Makefile.am): Likewise.
74289         * modules/stdbool (Makefile.am): Likewise.
74290         * modules/stdint (Makefile.am): Likewise.
74291         * modules/stdlib-safer (Makefile.am): Likewise.
74292         * modules/stpcpy (Makefile.am): Likewise.
74293         * modules/stpncpy (Makefile.am): Likewise.
74294         * modules/strcase (Makefile.am): Likewise.
74295         * modules/strcasestr (Makefile.am): Likewise.
74296         * modules/strchrnul (Makefile.am): Likewise.
74297         * modules/strcspn (Makefile.am): Likewise.
74298         * modules/strdup (Makefile.am): Likewise.
74299         * modules/strerror (Makefile.am): Likewise.
74300         * modules/strftime (Makefile.am): Likewise.
74301         * modules/strndup (Makefile.am): Likewise.
74302         * modules/strnlen (Makefile.am): Likewise.
74303         * modules/strpbrk (Makefile.am): Likewise.
74304         * modules/strsep (Makefile.am): Likewise.
74305         * modules/strstr (Makefile.am): Likewise.
74306         * modules/strtod (Makefile.am): Likewise.
74307         * modules/strtoimax (Makefile.am): Likewise.
74308         * modules/strtok_r (Makefile.am): Likewise.
74309         * modules/strtol (Makefile.am): Likewise.
74310         * modules/strtoll (Makefile.am): Likewise.
74311         * modules/strtoul (Makefile.am): Likewise.
74312         * modules/strtoull (Makefile.am): Likewise.
74313         * modules/strtoumax (Makefile.am): Likewise.
74314         * modules/strverscmp (Makefile.am): Likewise.
74315         * modules/sys_socket (Makefile.am): Likewise.
74316         * modules/sys_stat (Makefile.am): Likewise.
74317         * modules/sysexits (Makefile.am): Likewise.
74318         * modules/time_r (Makefile.am): Likewise.
74319         * modules/timegm (Makefile.am): Likewise.
74320         * modules/timespec (Makefile.am): Likewise.
74321         * modules/tmpfile-safer (Makefile.am): Likewise.
74322         * modules/trim (Makefile.am): Likewise.
74323         * modules/unistd-safer (Makefile.am): Likewise.
74324         * modules/unlinkdir (Makefile.am): Likewise.
74325         * modules/unlocked-io (Makefile.am): Likewise.
74326         * modules/userspec (Makefile.am): Likewise.
74327         * modules/utime (Makefile.am): Likewise.
74328         * modules/utimecmp (Makefile.am): Likewise.
74329         * modules/utimens (Makefile.am): Likewise.
74330         * modules/vasnprintf (Makefile.am): Likewise.
74331         * modules/vasprintf (Makefile.am): Likewise.
74332         * modules/vsnprintf (Makefile.am): Likewise.
74333         * modules/xalloc (Makefile.am): Likewise.
74334         * modules/xgetcwd (Makefile.am): Likewise.
74335         * modules/xnanosleep (Makefile.am): Likewise.
74336         * modules/xreadlink (Makefile.am): Likewise.
74337         * modules/xstrtod (Makefile.am): Likewise.
74338         * modules/xstrtol (Makefile.am): Likewise.
74339         * modules/xstrtold (Makefile.am): Likewise.
74340         * modules/yesno (Makefile.am): Likewise.
74341         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74342
74343 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * modules/error (Makefile.am): Distribute files through
74346         EXTRA_DIST, not lib_SOURCES.
74347
74348 2006-10-12  Eric Blake  <ebb9@byu.net>
74349
74350         * modules/error (Makefile.am): Distribute files in /lib.
74351         * modules/obstack (Makefile.am): Likewise.
74352
74353 2006-10-12  Bruno Haible  <bruno@clisp.org>
74354
74355         * modules/acl (Makefile.am): Distribute all files in lib/ through
74356         EXTRA_DIST.
74357         * modules/arcfour (Makefile.am): Likewise.
74358         * modules/arctwo (Makefile.am): Likewise.
74359         * modules/argmatch (Makefile.am): Likewise.
74360         * modules/argz (Makefile.am): Likewise.
74361         * modules/atexit (Makefile.am): Likewise.
74362         * modules/backupfile (Makefile.am): Likewise.
74363         * modules/c-strtod (Makefile.am): Likewise.
74364         * modules/c-strtold (Makefile.am): Likewise.
74365         * modules/calloc (Makefile.am): Likewise.
74366         * modules/canon-host (Makefile.am): Likewise.
74367         * modules/canonicalize (Makefile.am): Likewise.
74368         * modules/chdir-long (Makefile.am): Likewise.
74369         * modules/chdir-safer (Makefile.am): Likewise.
74370         * modules/check-version (Makefile.am): Likewise.
74371         * modules/chown (Makefile.am): Likewise.
74372         * modules/cloexec (Makefile.am): Likewise.
74373         * modules/close-stream (Makefile.am): Likewise.
74374         * modules/closeout (Makefile.am): Likewise.
74375         * modules/crc (Makefile.am): Likewise.
74376         * modules/cycle-check (Makefile.am): Likewise.
74377         * modules/des (Makefile.am): Likewise.
74378         * modules/dirfd (Makefile.am): Likewise.
74379         * modules/dirname (Makefile.am): Likewise.
74380         * modules/dup2 (Makefile.am): Likewise.
74381         * modules/euidaccess (Makefile.am): Likewise.
74382         * modules/exclude (Makefile.am): Likewise.
74383         * modules/exitfail (Makefile.am): Likewise.
74384         * modules/fcntl-safer (Makefile.am): Likewise.
74385         * modules/file-type (Makefile.am): Likewise.
74386         * modules/fileblocks (Makefile.am): Likewise.
74387         * modules/filemode (Makefile.am): Likewise.
74388         * modules/filenamecat (Makefile.am): Likewise.
74389         * modules/fnmatch (Makefile.am): Likewise.
74390         * modules/fopen-safer (Makefile.am): Likewise.
74391         * modules/fpending (Makefile.am): Likewise.
74392         * modules/fprintftime (Makefile.am): Likewise.
74393         * modules/free (Makefile.am): Likewise.
74394         * modules/fsusage (Makefile.am): Likewise.
74395         * modules/ftruncate (Makefile.am): Likewise.
74396         * modules/fts (Makefile.am): Likewise.
74397         * modules/gc (Makefile.am): Likewise.
74398         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74399         * modules/getaddrinfo (Makefile.am): Likewise.
74400         * modules/getcwd (Makefile.am): Likewise.
74401         * modules/getdelim (Makefile.am): Likewise.
74402         * modules/getdomainname (Makefile.am): Likewise.
74403         * modules/getgroups (Makefile.am): Likewise.
74404         * modules/gethostname (Makefile.am): Likewise.
74405         * modules/gethrxtime (Makefile.am): Likewise.
74406         * modules/getline (Makefile.am): Likewise.
74407         * modules/getloadavg (Makefile.am): Likewise.
74408         * modules/getlogin_r (Makefile.am): Likewise.
74409         * modules/getopt (Makefile.am): Likewise.
74410         * modules/getpass (Makefile.am): Likewise.
74411         * modules/getpass-gnu (Makefile.am): Likewise.
74412         * modules/getsubopt (Makefile.am): Likewise.
74413         * modules/gettime (Makefile.am): Likewise.
74414         * modules/gettimeofday (Makefile.am): Likewise.
74415         * modules/getugroups (Makefile.am): Likewise.
74416         * modules/getusershell (Makefile.am): Likewise.
74417         * modules/glob (Makefile.am): Likewise.
74418         * modules/group-member (Makefile.am): Likewise.
74419         * modules/hard-locale (Makefile.am): Likewise.
74420         * modules/hash (Makefile.am): Likewise.
74421         * modules/hmac-md5 (Makefile.am): Likewise.
74422         * modules/hmac-sha1 (Makefile.am): Likewise.
74423         * modules/human (Makefile.am): Likewise.
74424         * modules/idcache (Makefile.am): Likewise.
74425         * modules/imaxabs (Makefile.am): Likewise.
74426         * modules/imaxdiv (Makefile.am): Likewise.
74427         * modules/inet_ntop (Makefile.am): Likewise.
74428         * modules/inet_pton (Makefile.am): Likewise.
74429         * modules/inttostr (Makefile.am): Likewise.
74430         * modules/isapipe (Makefile.am): Likewise.
74431         * modules/lchown (Makefile.am): Likewise.
74432         * modules/long-options (Makefile.am): Likewise.
74433         * modules/lstat (Makefile.am): Likewise.
74434         * modules/malloc (Makefile.am): Likewise.
74435         * modules/mathl (Makefile.am): Likewise.
74436         * modules/mbchar (Makefile.am): Likewise.
74437         * modules/md2 (Makefile.am): Likewise.
74438         * modules/md4 (Makefile.am): Likewise.
74439         * modules/md5 (Makefile.am): Likewise.
74440         * modules/memcasecmp (Makefile.am): Likewise.
74441         * modules/memchr (Makefile.am): Likewise.
74442         * modules/memcmp (Makefile.am): Likewise.
74443         * modules/memcoll (Makefile.am): Likewise.
74444         * modules/memcpy (Makefile.am): Likewise.
74445         * modules/memmem (Makefile.am): Likewise.
74446         * modules/memmove (Makefile.am): Likewise.
74447         * modules/mempcpy (Makefile.am): Likewise.
74448         * modules/memrchr (Makefile.am): Likewise.
74449         * modules/memset (Makefile.am): Likewise.
74450         * modules/memxor (Makefile.am): Likewise.
74451         * modules/mkancesdirs (Makefile.am): Likewise.
74452         * modules/mkdir (Makefile.am): Likewise.
74453         * modules/mkdir-p (Makefile.am): Likewise.
74454         * modules/mkdtemp (Makefile.am): Likewise.
74455         * modules/mkstemp (Makefile.am): Likewise.
74456         * modules/mktime (Makefile.am): Likewise.
74457         * modules/modechange (Makefile.am): Likewise.
74458         * modules/mountlist (Makefile.am): Likewise.
74459         * modules/nanosleep (Makefile.am): Likewise.
74460         * modules/openat (Makefile.am): Likewise.
74461         * modules/pagealign_alloc (Makefile.am): Likewise.
74462         * modules/physmem (Makefile.am): Likewise.
74463         * modules/poll (Makefile.am): Likewise.
74464         * modules/posixtm (Makefile.am): Likewise.
74465         * modules/posixver (Makefile.am): Likewise.
74466         * modules/putenv (Makefile.am): Likewise.
74467         * modules/quote (Makefile.am): Likewise.
74468         * modules/quotearg (Makefile.am): Likewise.
74469         * modules/raise (Makefile.am): Likewise.
74470         * modules/read-file (Makefile.am): Likewise.
74471         * modules/readline (Makefile.am): Likewise.
74472         * modules/readlink (Makefile.am): Likewise.
74473         * modules/readtokens (Makefile.am): Likewise.
74474         * modules/readutmp (Makefile.am): Likewise.
74475         * modules/realloc (Makefile.am): Likewise.
74476         * modules/regex (Makefile.am): Likewise.
74477         * modules/rename (Makefile.am): Likewise.
74478         * modules/rename-dest-slash (Makefile.am): Likewise.
74479         * modules/rijndael (Makefile.am): Likewise.
74480         * modules/rmdir (Makefile.am): Likewise.
74481         * modules/rpmatch (Makefile.am): Likewise.
74482         * modules/safe-read (Makefile.am): Likewise.
74483         * modules/safe-write (Makefile.am): Likewise.
74484         * modules/same (Makefile.am): Likewise.
74485         * modules/save-cwd (Makefile.am): Likewise.
74486         * modules/savedir (Makefile.am): Likewise.
74487         * modules/setenv (Makefile.am): Likewise.
74488         * modules/settime (Makefile.am): Likewise.
74489         * modules/sha1 (Makefile.am): Likewise.
74490         * modules/sig2str (Makefile.am): Likewise.
74491         * modules/snprintf (Makefile.am): Likewise.
74492         * modules/stdlib-safer (Makefile.am): Likewise.
74493         * modules/stpcpy (Makefile.am): Likewise.
74494         * modules/stpncpy (Makefile.am): Likewise.
74495         * modules/strcase (Makefile.am): Likewise.
74496         * modules/strcasestr (Makefile.am): Likewise.
74497         * modules/strchrnul (Makefile.am): Likewise.
74498         * modules/strcspn (Makefile.am): Likewise.
74499         * modules/strdup (Makefile.am): Likewise.
74500         * modules/strerror (Makefile.am): Likewise.
74501         * modules/strftime (Makefile.am): Likewise.
74502         * modules/strndup (Makefile.am): Likewise.
74503         * modules/strnlen (Makefile.am): Likewise.
74504         * modules/strpbrk (Makefile.am): Likewise.
74505         * modules/strsep (Makefile.am): Likewise.
74506         * modules/strstr (Makefile.am): Likewise.
74507         * modules/strtod (Makefile.am): Likewise.
74508         * modules/strtoimax (Makefile.am): Likewise.
74509         * modules/strtok_r (Makefile.am): Likewise.
74510         * modules/strtol (Makefile.am): Likewise.
74511         * modules/strtoll (Makefile.am): Likewise.
74512         * modules/strtoul (Makefile.am): Likewise.
74513         * modules/strtoull (Makefile.am): Likewise.
74514         * modules/strtoumax (Makefile.am): Likewise.
74515         * modules/strverscmp (Makefile.am): Likewise.
74516         * modules/time_r (Makefile.am): Likewise.
74517         * modules/timegm (Makefile.am): Likewise.
74518         * modules/tmpfile-safer (Makefile.am): Likewise.
74519         * modules/unistd-safer (Makefile.am): Likewise.
74520         * modules/unlinkdir (Makefile.am): Likewise.
74521         * modules/userspec (Makefile.am): Likewise.
74522         * modules/utime (Makefile.am): Likewise.
74523         * modules/utimecmp (Makefile.am): Likewise.
74524         * modules/utimens (Makefile.am): Likewise.
74525         * modules/vasnprintf (Makefile.am): Likewise.
74526         * modules/vasprintf (Makefile.am): Likewise.
74527         * modules/vsnprintf (Makefile.am): Likewise.
74528         * modules/xalloc (Makefile.am): Likewise.
74529         * modules/xgetcwd (Makefile.am): Likewise.
74530         * modules/xnanosleep (Makefile.am): Likewise.
74531         * modules/xreadlink (Makefile.am): Likewise.
74532         * modules/xstrtod (Makefile.am): Likewise.
74533         * modules/xstrtol (Makefile.am): Likewise.
74534         * modules/xstrtold (Makefile.am): Likewise.
74535         * modules/yesno (Makefile.am): Likewise.
74536
74537 2006-10-12  Jim Meyering  <jim@meyering.net>
74538
74539         * m4/getloadavg.m4: Revert the change below.
74540
74541         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74542         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74543         fail with a symlink, which is what coreutils' ./bootstrap now
74544         creates by default.
74545
74546 2006-10-12  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74549         mingw.
74550         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74551         MSVC and mingw explicitly.
74552
74553 2006-10-11  Simon Josefsson  <jas@extundo.com>
74554             Bruno Haible  <bruno@clisp.org>
74555
74556         Add support for multiple gnulib-tool invocations in the scope of a
74557         single configure.ac file.
74558         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74559         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74560         with the same contents as the _LIBADD variable.
74561         (func_emit_initmacro_start, func_emit_initmacro_end,
74562         func_emit_initmacro_done): New functions.
74563         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74564         gl_LIBOBJS and gl_LTLIBOBJS.
74565
74566 2006-10-11  Bruno Haible  <bruno@clisp.org>
74567
74568         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74569         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74570         autoreconf. Instead, invoke autopoint explicitly but move back the
74571         *.m4 files from gnulib.
74572
74573 2006-10-11  Bruno Haible  <bruno@clisp.org>
74574
74575         * gnulib-tool (func_usage): Make module names after --create-testdir
74576         optional.
74577         (func_create_testdir): If no module was specified, use nearly all
74578         modules.
74579
74580 2006-10-12  Jim Meyering  <jim@meyering.net>
74581
74582         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74583         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74584         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74585         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74586         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74587         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74588         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74589         (fts_set_stat_required): New function.
74590         (fts_open): Defer the calls to fts_stat, if possible or requested.
74591         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74592         into fts_stat itself.
74593         (fts_read): Perform any required (deferred) fts_stat call.
74594         (fts_build): Likewise, for the directory we're about to open and read.
74595         In the readdir loop, carefully decide whether each entry will require
74596         an eventual call to fts_stat, using dirent.d_type info if available.
74597         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74598         a command line argument into this function.  Update all callers.
74599         Map a return value of FTS_DOT to FTS_D for a command line argument.
74600         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74601         Thanks to Miklos Szeredi for his tenacity and for the initial
74602         bug report about "find" failing on a FUSE-based file system.
74603
74604         * lib/fts.c (fts_open): Use consistent indentation.
74605
74606 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74607
74608         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74609         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74610         reported by Jim Meyering.  All uses of cache variables renamed
74611         to match Autoconf's.
74612         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74613         the other one.
74614
74615         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74616         Fix misspelling in diagnostic.
74617
74618 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74621         defined.  Problem reported by Matthew Woehlke.
74622
74623         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74624         Add support for Tandem NonStop R series.
74625         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74626         Use new macro.
74627
74628         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74629         (has_trailing_slash): Omit size arg; all callers changed.
74630         Omit 'inline', since it doesn't help performance and we'd
74631         need to configure it.
74632         Don't count //, ///, etc. as having a trailing slash.
74633         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74634         (rpl_rename_dest_slash): On failure, use rename's errno rather
74635         than (in some cases) an incorrect or junk errno.
74636         Simplify code by removing need to compute length; this does
74637         cause it to make two passes instead of one over the file name,
74638         but it's worth it.
74639
74640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74641         change, since Autoconf's version may no longer be appropriate now
74642         that we are using CVS Autoconf's version.  Add support for Tandem.
74643
74644 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74645             Bruno Haible  <bruno@clisp.org>
74646
74647         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74648         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74649         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74650         gl_AC_TYPE_LONG_LONG.
74651
74652         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74653         instead of HAVE_LONG_LONG.
74654         * lib/printf-args.c (printf_fetchargs): Likewise.
74655         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74656         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74657         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74658         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74659         gl_AC_TYPE_LONG_LONG.
74660
74661 2006-10-11  Bruno Haible  <bruno@clisp.org>
74662
74663         * m4/longlong.m4: Add comments.
74664         * m4/ulonglong.m4: Likewise.
74665
74666 2006-10-10  Bruno Haible  <bruno@clisp.org>
74667
74668         Make it possible to #define stpcpy, strdup to aliases.
74669         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74670         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74671
74672 2006-10-10  Bruno Haible  <bruno@clisp.org>
74673
74674         Make it possible to #define gcd to an alias.
74675         * lib/gcd.c: Include config.h.
74676
74677 2006-10-10  Bruno Haible  <bruno@clisp.org>
74678
74679         Make it possible to #define c_isascii to an alias.
74680         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74681         defined. Undefine the macros before defining them, to avoid gcc
74682         warnings.
74683         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74684         define NO_C_CTYPE_MACROS early.
74685
74686 2006-10-10  Bruno Haible  <bruno@clisp.org>
74687
74688         Make it possible to #define set_program_name to an alias.
74689         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74690         ENABLE_RELOCATABLE early.
74691
74692 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74695         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74696         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74697         More generally, don't assume that 64-bit signed int is available
74698         if unsigned int is, and vice versa.
74699         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74700         unsigned symbols, not on their signed counterparts.
74701         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74702         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74703         (UINT64_C, UINTMAX_C):
74704         Likewise.
74705         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74706         unsigned counterparts.
74707         (Have_long_long, Unsigned): New macros.
74708         (Int): Renamed from INT.
74709         (strtoimax): Use the new macros.
74710         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74711         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74712         * modules/inttypes (inttypes.h): Substitute
74713         HAVE_UNSIGNED_LONG_LONG_INT.
74714         * modules/stdint (stdint.h): Likewise.
74715         (Files): Add m4/ulonglong.m4.
74716
74717 2006-10-10  Bruno Haible  <bruno@clisp.org>
74718
74719         Fix a gcc -Wshadow warning.
74720         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74721         to 'bucket'.
74722         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74723         gl_linked_indexof_from_to): Likewise.
74724         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74725         Likewise.
74726         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74727         Likewise.
74728         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74729         Reported by Eric Blake.
74730
74731 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74734         for NetBSD.  Problem reported by Bruno Haible.
74735
74736 2006-10-09  Jim Meyering  <jim@meyering.net>
74737
74738         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74739         Patch from Bruno Haible.
74740
74741 2006-10-09  Jim Meyering  <jim@meyering.net>
74742
74743         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74744         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74745         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74746
74747 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         Don't include <config.h> twice; this doesn't work in some cases,
74750         e.g., when config.h has "#define intmax_t long long int" and
74751         we include <config.h>, <inttypes.h>, <config.h> in that order.
74752         Problem reported by Matthew Woehlke in:
74753         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74754         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74755         * lib/fts-cycle.c: Don't include config.h.
74756         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74757         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74758         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74759         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74760         inttypes.h.
74761         * lib/xstrtoumax.c: Likewise.
74762         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74763         __strtol and the like, so that this module is more like its siblings.
74764         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74765         Remove; no longer needed now that we assume gnulib inttypes.h.
74766
74767 2006-10-08  Bruno Haible  <bruno@clisp.org>
74768
74769         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74770         option.
74771
74772 2006-10-07  Jim Meyering  <jim@meyering.net>
74773
74774         * modules/inttypes (inttypes.h): Revert what seems to have been
74775         an inadvertent part of today's change: use "|", not "/" in the
74776         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74777
74778 2006-10-07  Bruno Haible  <bruno@clisp.org>
74779
74780         * modules/sublist: New file.
74781
74782 2006-10-07  Bruno Haible  <bruno@clisp.org>
74783
74784         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74785         * modules/argz (argz.h): Likewise.
74786         * modules/arpa_inet (arpa/inet.h): Likewise.
74787         * modules/byteswap (byteswap.h): Likewise.
74788         * modules/configmake (configmake.h): Likewise.
74789         * modules/fcntl (fcntl.h): Likewise.
74790         * modules/fnmatch (fnmatch.h): Likewise.
74791         * modules/getopt (getopt.h): Likewise.
74792         * modules/glob (glob.h): Likewise.
74793         * modules/inttypes (inttypes.h): Likewise.
74794         * modules/netinet_in (netinet/in.h): Likewise.
74795         * modules/poll (poll.h): Likewise.
74796         * modules/stdbool (stdbool.h): Likewise.
74797         * modules/stdint (stdint.h): Likewise.
74798         * modules/sys_select (sys/select.h): Likewise.
74799         * modules/sys_socket (sys/socket.h): Likewise.
74800         * modules/sys_stat (sys/stat.h): Likewise.
74801         * modules/sysexits (sysexits.h): Likewise.
74802         * modules/unistd (unistd.h): Likewise.
74803         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74804         Add a "DO NOT EDIT" comment to the generated file.
74805         (func_import): Likewise for gnulib-comp.m4.
74806
74807 2006-10-07  Bruno Haible  <bruno@clisp.org>
74808
74809         * lib/gl_sublist.h: New file.
74810         * lib/gl_sublist.c: New file.
74811
74812 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74815         name (relative to the original working directory) and the file
74816         name component (relative to the temporary working directory).  All
74817         callers changed.
74818         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74819         * lib/mkdir-p.c (make_dir_parents): Likewise.
74820         * lib/mkdir-p.h (make_dir_parents): Likewise.
74821
74822 2006-10-06  Eric Blake  <ebb9@byu.net>
74823
74824         Define several macros for use by the clean-temp module.
74825         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74826         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74827         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74828
74829         * lib/clean-temp.h (close_stream_temp): New declaration.
74830         * lib/clean-temp.c (includes): Pull in headers according to what
74831         other modules are in use.
74832         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74833
74834 2006-10-06  Bruno Haible  <bruno@clisp.org>
74835
74836         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74837         instead of fopen, fwriteerror.
74838
74839 2006-10-06  Bruno Haible  <bruno@clisp.org>
74840
74841         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74842         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74843         int.
74844         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74845         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74846         Return an error indicator.
74847         Suggested by Eric Blake.
74848
74849 2006-10-06  Bruno Haible  <bruno@clisp.org>
74850
74851         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74852         Reported by Eric Blake.
74853
74854 2006-10-06  Bruno Haible  <bruno@clisp.org>
74855
74856         * modules/closeout (Description): Mention stderr too.
74857
74858 2006-10-06  Bruno Haible  <bruno@clisp.org>
74859         and Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * lib/closeout.c (close_stdout): Also close stderr.
74862         * lib/closeout.h: Update comment.
74863
74864 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74867         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74868         * lib/dirchownmod.c: Include lchown.h.
74869         * lib/lchown.c: Don't include files that lchown.h now includes.
74870         Don't declare chown, since lchown.h now does that.
74871         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74872         (lchown): Define to rpl_chown if lchown is declared but
74873         does not exist.  Declare using a prototype if lchown is not
74874         declared.  Add a copyright notice.
74875         * lib/mkstemp.h: Include <unistd.h>.
74876         * lib/openat.c: Include lchown.h.
74877
74878         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74879         we now test for that separately.
74880         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74881         rather than O_NOFOLLOW, when testing whether it's possible to
74882         avoid a race condition reliably.
74883         * lib/savewd.c (savewd_chdir): Likewise.
74884
74885         Remove macros that are no longer needed now that stdint.h is
74886         reliable.
74887         * lib/fsusage.c (UINTMAX_MAX): Remove.
74888         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74889         * lib/utimecmp.c (SIZE_MAX): Remove.
74890
74891         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74892
74893         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74894         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74895         O_NOATIME works.
74896
74897 2006-10-05  Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/gl_list.h (gl_sortedlist_search_from_to,
74900         gl_sortedlist_indexof_from_to): New declarations.
74901         (gl_list_implementation): New fields sortedlist_search_from_to,
74902         sortedlist_indexof_from_to.
74903         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74904         inline functions.
74905         * lib/gl_list.c (gl_sortedlist_search_from_to,
74906         gl_sortedlist_indexof_from_to): New functions.
74907         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74908         function.
74909         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74910         (gl_array_sortedlist_search_from_to): New function.
74911         (gl_array_list_implementation): Update.
74912         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74913         function.
74914         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74915         (gl_carray_sortedlist_search_from_to): New function.
74916         (gl_carray_list_implementation): Update.
74917         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74918         gl_linked_sortedlist_indexof_from_to): New functions.
74919         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74920         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74921         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74922         gl_tree_sortedlist_indexof_from_to): New functions.
74923         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74924         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74925         Update.
74926         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74927         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74928         Update.
74929
74930 2006-10-05  Bruno Haible  <bruno@clisp.org>
74931
74932         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74933         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74934         (struct gl_list_implementation): Add fields search_from_to,
74935         indexof_from_to. Remove fields search, indexof.
74936         (gl_list_search): Use the search_from_to method.
74937         (gl_list_search_from, gl_list_search_from_to): New functions.
74938         (gl_list_indexof): Use the indexof_from_to method.
74939         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74940         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74941         (gl_list_search_from, gl_list_search_from_to): New functions.
74942         (gl_list_indexof): Use the indexof_from_to method.
74943         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74944         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74945         gl_array_indexof. Add start_index, end_index arguments.
74946         (gl_array_search_from_to): Renamed from gl_array_search. Add
74947         start_index, end_index arguments.
74948         (gl_array_remove, gl_array_list_implementation): Update.
74949         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74950         gl_carray_indexof. Add start_index, end_index arguments.
74951         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74952         start_index, end_index arguments.
74953         (gl_carray_remove, gl_carray_list_implementation): Update.
74954         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74955         gl_linked_search. Add start_index, end_index arguments.
74956         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74957         start_index, end_index arguments.
74958         (gl_linked_remove): Update.
74959         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74960         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74961         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74962         field to 'size_t'.
74963         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74964         gl_tree_search. Add start_index, end_index arguments.
74965         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74966         start_index, end_index arguments.
74967         (gl_tree_remove): Update.
74968         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74969         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74970         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74971         function.
74972         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74973         gl_tree_search. Add start_index, end_index arguments.
74974         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74975         start_index, end_index arguments.
74976         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74977         Update.
74978         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74979
74980 2006-10-05  Bruno Haible  <bruno@clisp.org>
74981
74982         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74983
74984         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74985         fwriteerror_temp): New declarations.
74986         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74987         (descriptors): New variable.
74988         (cleanup): First, close the descriptors.
74989         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74990         fclose_temp, fwriteerror_temp): New functions.
74991
74992 2006-10-04  Jim Meyering  <jim@meyering.net>
74993
74994         * lib/fts.c (fts_open): Tiny comment change.
74995
74996 2006-10-04  Bruno Haible  <bruno@clisp.org>
74997
74998         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74999         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75000         gl_LOCK_BODY.
75001         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75002         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75003         gl_LOCK_EARLY_BODY.
75004         (gl_LOCK): Require gl_LOCK_BODY.
75005
75006 2006-10-04  Bruno Haible  <bruno@clisp.org>
75007
75008         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75009         (gl_oset_search_atleast): New declaration.
75010         (struct gl_oset_implementation): Add field 'search_atleast'.
75011         (gl_oset_search_atleast): New inline function.
75012         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75013         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75014         (gl_array_oset_implementation): Update.
75015         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75016         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75017         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75018
75019 2006-10-04  Bruno Haible  <bruno@clisp.org>
75020
75021         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75022
75023 2006-10-03  Bruno Haible  <bruno@clisp.org>
75024
75025         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75026         from gl_avltreehash_list_implementation.
75027
75028 2006-10-03  Bruno Haible  <bruno@clisp.org>
75029
75030         * lib/gl_oset.c (gl_oset_add): Fix return type.
75031
75032 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75033
75034         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75035
75036 2006-10-02  Eric Blake  <ebb9@byu.net>
75037
75038         * modules/strnlen (Depends-on): Add extensions.
75039
75040 2006-10-02  Eric Blake  <ebb9@byu.net>
75041
75042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75043         definition in 2.60+.
75044
75045 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75046
75047         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75048         checks.
75049
75050 2006-10-02  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75053         to the AUTOMAKE_OPTIONS.
75054         Reported by Jim Meyering.
75055
75056 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         Work around bug in Solaris 10 /proc file system:
75059         /proc/self/fd/NNN/.. isn't the parent directory of
75060         the directory whose file descriptor is NNN.  This needs to
75061         be worked around at run time, not compile time, since a
75062         program might be built on Solaris 8, where things work, and
75063         run on Solaris 10.
75064         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75065         to use the following interface instead:
75066         (OPENAT_BUFFER_SIZE): New macro.
75067         (openat_proc_name): New function.
75068         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75069         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75070         Likewise.
75071         * lib/openat-proc.c: New file.
75072         * modules/openat (Files): Add lib/openat-proc.c.
75073         (Depends-on): Add same-inode, stdbool.
75074         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75075
75076 2006-09-29  Bruno Haible  <bruno@clisp.org>
75077
75078         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75079         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75080         argument. Set stdout_closed before testing for ferror, not after.
75081         (fwriteerror, fwriteerror_no_ebadf): New functions.
75082
75083 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75084
75085         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75086
75087 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75088
75089         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75090         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75091
75092 2006-09-28  Jim Meyering  <jim@meyering.net>
75093
75094         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75095         Include <unistd.h>.
75096
75097 2006-09-28  Bruno Haible  <bruno@clisp.org>
75098
75099         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75100         * modules/linkedhash-list (Depends-on): Likewise.
75101         * modules/rbtreehash-list (Depends-on): Likewise.
75102
75103 2006-09-28  Bruno Haible  <bruno@clisp.org>
75104
75105         * lib/strndup.h: Simplify the redefinition of strndup.
75106         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75107         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75108
75109 2006-09-28  Bruno Haible  <bruno@clisp.org>
75110
75111         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75112         * lib/gl_linkedhash_list.c: Likewise.
75113         * lib/gl_rbtreehash_list.c: Likewise.
75114
75115 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75118         getaddrinfo.
75119
75120         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75121         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75122         it causes <stdio_ext.h> to cause a compile-time error.
75123         Problem reported by Nelson H. F. Beebe.
75124         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75125         of HAVE_DECL___PENDING.
75126
75127         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75129         declaration.
75130
75131 2006-09-27  Jim Meyering  <jim@meyering.net>
75132
75133         This file could end up with a definition for a function
75134         named __strndup, rather than rpl_strndup on a system with
75135         incomplete weak_alias support.
75136         * lib/strndup.c (strndup): Rename from __strndup.
75137         Remove #defines that used to map __strndup to strndup.
75138         Don't use K&R prototypes.
75139         Remove LIBC-related code, since this file is not sync'd with glibc.
75140         * lib/strndup.h: Revamp, accordingly.
75141         * m4/strndup.m4: Modernize.
75142
75143 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * modules/savewd (Depends-on): Add 'raise'.
75146         * lib/savewd.c: Include <signal.h>, for 'raise'.
75147
75148 2006-09-26  Jim Meyering  <jim@meyering.net>
75149
75150         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75151         when we detect Darwin 8.7.0's acl_get_file bug.
75152         Rearrange to perform the new (below) run-test while $LIBS
75153         contains any acl-related library.  Set USE_ACL at the end.
75154         (gl_ACL_GET_FILE): New function.
75155
75156 2006-09-26  Eric Blake  <ebb9@byu.net>
75157
75158         * lib/verror.c: Include <config.h> unconditionally.
75159
75160 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75161
75162         * modules/clock-time (Maintainer): Add self.
75163         * modules/getlogin_r (Depends-on): Add extensions.
75164
75165 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75166
75167         * modules/clock-time: New module.
75168         * modules/nanosleep (Depends-on): Add clock-time.
75169         * modules/gethrxtime (Depends-on): Likewise.
75170         * modules/gettime (Depends-on): Likewise.
75171         * modules/settime (Depends-on): Likewise.
75172
75173         * modules/fts-lgpl: Depend on openat.
75174         * modules/mkancesdirs: Depend on savewd.
75175         * modules/mkdir-p: Likewise.
75176
75177 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75178
75179         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75180
75181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75182         `gl_have_arbitrary_file_name_length_limit' to
75183         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75184         actually works between configure runs.
75185
75186 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75187             Bruno Haible  <bruno@clisp.org>
75188
75189         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75190
75191 2006-09-25  Jim Meyering  <jim@meyering.net>
75192
75193         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75194         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75195
75196 2006-09-25  Eric Blake  <ebb9@byu.net>
75197
75198         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75199         exec's in 2006-09-18 patch when shuffling fds.
75200
75201 2006-09-25  Bruno Haible  <bruno@clisp.org>
75202
75203         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75204         Reported by Jim Meyering.
75205
75206 2006-09-24  Jim Meyering  <jim@meyering.net>
75207
75208         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75209         compare a pointer against a literal "0".  That caused failures with
75210         at least HP-UX's hpcc.
75211
75212 2006-09-22  Simon Josefsson  <jas@extundo.com>
75213
75214         * modules/gc-sha1:
75215         * modules/gc-md4:
75216         * modules/gc-hmac-sha1:
75217         * modules/gc-hmac-md5:
75218         * modules/gc-des:
75219         * modules/gc-arcfour: Distribute more files.
75220
75221 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75222
75223         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75224         (gl_linked_iterator_from_to): Initialize struct completely.
75225         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75226         (gl_tree_iterator_from_to): Likewise
75227         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75228         * lib/gl_array_list.c [lint] (gl_array_iterator)
75229         (gl_array_iterator_from_to): Likewise.
75230         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75231         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75232         (gl_carray_iterator_from_to): Likewise.
75233
75234         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75235         * lib/md4.c (md4_process_block): Remove unused variable.
75236         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75237         parentheses for clarity.
75238
75239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75240
75241         * modules/bison-i18n (Depends-on): Add gettext.
75242
75243 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75244
75245         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75246         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75247         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75248         also add missing comma that caused broken test.
75249         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75250         stdlib.h, for `abort'.
75251         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75252         variables.
75253         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75254         include unistd.h if present, for `rmdir'.
75255         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75256         variables.
75257         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75258         in the process include standard headers for prototypes.
75259         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75260         gets declared on GNU/Linux.
75261         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75262         unistd.h, for `rmdir'.
75263         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75264
75265         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75266         always true.
75267         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75268
75269         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75270
75271 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75272
75273         * gnulib-tool (func_version): Create output all at once.  This
75274         may help avoid triggering unnecessary SIGPIPEs, and at any
75275         rate it doesn't hurt.
75276
75277 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75278             Bruno Haible  <bruno@clisp.org>
75279
75280         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75281         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75282         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75283
75284         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75285         (gl_FUNC_VASPRINTF): Invoke it.
75286
75287 2006-09-22  Bruno Haible  <bruno@clisp.org>
75288
75289         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75290         getloadavg.c as first argument.
75291
75292 2006-09-22  Bruno Haible  <bruno@clisp.org>
75293
75294         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75295         at the beginning of the gl_INIT macro.
75296         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75297         gl_GETLOADAVG.
75298
75299 2006-09-22  Bruno Haible  <bruno@clisp.org>
75300
75301         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75302         module.
75303         Suggested by Ralf Wildenhues.
75304
75305 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         Import this patch from libc:
75308
75309         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75310
75311         * lib/regex_internal.c (re_string_reconstruct): Handle
75312         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75313         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75314         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75315         re_string_context_at.
75316
75317         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75318         now requires it.
75319         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75320         gl_REGEX now does it for us.
75321         (gl_REGEX): Add test taken from
75322         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75323
75324         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75325         Check that large offsets work.  Modernize Autoconf usages.
75326         Prefer "yes" to mean a good thing rather than a bad.
75327         Don't put "#define mkstemp" in config.h, as this might interfere
75328         with standard system headers that "#define mkstemp mkstemp64".
75329
75330         * modules/mkstemp (Depends-on): Add extensions, so that
75331         mkstemp is visible on some platforms.
75332         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75333         (Include): Change to "mkstemp.h" from <stdlib.h>.
75334         (Files): Add mkstemp.h.
75335
75336         * lib/mkstemp.h: New file, since some standard headers
75337         #define mkstemp.
75338         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75339         Include "mkstemp.h".
75340         Make the _LIBC code resemble glibc original more,
75341         e.g., use K&R style.
75342         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75343         (mkstemp): Remove, since mkstemp.h does this for us.
75344         * lib/stdlib--.h: Include mkstemp.h.
75345
75346         Import this patch from libc:
75347
75348         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75349
75350         * lib/tempname.c (__gen_tempname): Change attempts_min
75351         into a macro.  Use preprocessor to decide how to initialize
75352         attempts [Coverity CID 67].
75353
75354 2006-09-20  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/mkdtemp.c: Import from libc.
75357         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75358                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75359                 attempts_min into a macro.  Use preprocessor to decide how to
75360                 initialize attempts [Coverity CID 67].
75361         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75362                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75363                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75364
75365 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75366
75367         * gnulib-tool (func_exit): New function, to allow to pass the
75368         exit status portably through the trap.  Use everywhere.
75369         (--help, --version): Signal a write error.
75370         (trap): catch SIGPIPE, for write errors.
75371         Exit at the end of the trap, with the correct exit status.
75372
75373 2006-09-19  Karl Berry  <karl@gnu.org>
75374
75375         * doc/gnulib.texi: note about the license texinfo files.
75376
75377 2006-09-19  Eric Blake  <ebb9@byu.net>
75378
75379         * gnulib-tool: Avoid space-tab.
75380
75381 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75382
75383         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75384         that prevented coreutils 6.1 from building.  Problem reported
75385         by Petter Reinholdtsen.
75386
75387 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * gnulib-tool (avoidlist): Fix typo that broke options like
75390         --avoid=lock that are used by coreutils bootstrap.
75391
75392 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75393
75394         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75395         more systematically.
75396
75397 2006-09-18  Jim Meyering  <jim@meyering.net>
75398
75399         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75400
75401 2006-09-18  Bruno Haible  <bruno@clisp.org>
75402
75403         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75404
75405 2006-09-18  Bruno Haible  <bruno@clisp.org>
75406
75407         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75408         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75409         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75410         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75411         * m4/gettext.m4: Require autoconf >= 2.52.
75412         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75413         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75414         of gl_cv_header_inttypes_h.
75415
75416 2006-09-18  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/javaversion.c: Include configmake.h.
75419
75420 2006-09-18  Bruno Haible  <bruno@clisp.org>
75421
75422         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75423         avoid that the while loops be executed in a subshell.
75424
75425 2006-09-18  Bruno Haible  <bruno@clisp.org>
75426
75427         * MODULES.html.sh (func_module): Break long lines.
75428         Suggested by Bruce Korb <bkorb@gnu.org>.
75429
75430 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75431
75432         Speed up by a factor of 1.12.
75433         * gnulib-tool (nl): New variable.
75434         (func_import): Rewrite include directive extraction to only read each
75435         directive once.
75436
75437 2006-09-17  Bruno Haible  <bruno@clisp.org>
75438
75439         * modules/javaversion (Makefile.am): Remove DEFS setting.
75440         (Depends-on): Add configmake, for PKGDATADIR definition.
75441
75442 2006-09-17  Bruno Haible  <bruno@clisp.org>
75443
75444         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75445
75446 2006-09-17  Bruno Haible  <bruno@clisp.org>
75447
75448         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75449         (func_modules_transitive_closure, func_modules_add_dummy,
75450         func_modules_to_filelist, func_import, func_create_testdir,
75451         func_create_megatestdir, ...): Use it wherever possible.
75452         Suggested by Ralf Wildenhues.
75453
75454 2006-09-16  Karl Berry  <karl@gnu.org>
75455
75456         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75457         to avoid sectioning errors.
75458         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75459         [ifinfo]: blank line after @center-ed titles.
75460         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75461         Spell FSF address consistently with others.
75462         (These changes approved by rms.)
75463
75464 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75465
75466         Speed up by a factor of 1.61.
75467         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75468         already checked module names again.
75469
75470 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75471
75472         Speed up by a factor of 1.13.
75473         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75474         for new_files, and the input to func_add_or_update.
75475
75476 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75477
75478         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75479         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75480
75481 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * modules/mkancesdirs (Depends-on): Add fcntl.
75484         * modules/savewd: New file.
75485         * MODULES.html.sh (File system functions): Add savewd.
75486
75487         * modules/configmake (Makefile.am): Add support for the
75488         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75489
75490 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * m4/savewd.m4: New file.
75493
75494 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75495
75496         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75497         (dirchownmod): New arg FD.  All callers changed.
75498         Use FD rather than opening the directory ourself, as opening is
75499         now the caller's responsibility.
75500         * lib/dirchownmod.h: Likewise.
75501         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75502         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75503         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75504         (test_dir): Remove.
75505         (mkancesdirs): Return length of prefix of FILE that has already
75506         been made, or -2 if there is a child doing the work.  Redo
75507         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75508         ".", and treat ".." specially since it might stray back into
75509         already-created areas.  Use a subprocess if necessary.  New arg
75510         WD; all users changed.  MAKE_DIR function should now return 1
75511         if it creates a directory that is not readable.  Return -2 if
75512         a child process is spun off.
75513         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75514         Adjust signature to match code.
75515         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75516         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75517         all users changed.
75518         * lib/savewd.c, lib/savewd.h: New files.
75519
75520 2006-09-15  Jim Meyering  <jim@meyering.net>
75521
75522         * modules/rename-dest-slash: New module.
75523         * MODULES.html.sh (posix_compat): Add it here.
75524
75525         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75526
75527 2006-09-15  Jim Meyering  <jim@meyering.net>
75528
75529         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75530         file.
75531
75532         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75533
75534 2006-09-15  Jim Meyering  <jim@meyering.net>
75535
75536         * lib/rename-dest-slash.c (has_trailing_slash): Use
75537         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75538         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75539         test before testing whether SRC is a directory.
75540         Suggestions from Bruno Haible.
75541
75542         Avoid a warning about an unused variable.
75543         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75544         into the #ifdef block where it's used.
75545
75546         * lib/rename-dest-slash.c: New file.
75547
75548 2006-09-14  Bruno Haible  <bruno@clisp.org>
75549
75550         * lib/allocsa.c: Include <config.h> unconditionally.
75551         * lib/asnprintf.c: Likewise.
75552         * lib/asprintf.c: Likewise.
75553         * lib/c-strcasecmp.c: Likewise.
75554         * lib/c-strcasestr.c: Likewise.
75555         * lib/c-strncasecmp.c: Likewise.
75556         * lib/c-strstr.c: Likewise.
75557         * lib/classpath.c: Likewise.
75558         * lib/clean-temp.c: Likewise.
75559         * lib/concatpath.c: Likewise.
75560         * lib/copy-file.c: Likewise.
75561         * lib/csharpcomp.c: Likewise.
75562         * lib/csharpexec.c: Likewise.
75563         * lib/execute.c: Likewise.
75564         * lib/fatal-signal.c: Likewise.
75565         * lib/findprog.c: Likewise.
75566         * lib/fwriteerror.c: Likewise.
75567         * lib/gl_array_list.c: Likewise.
75568         * lib/gl_array_oset.c: Likewise.
75569         * lib/gl_avltree_list.c: Likewise.
75570         * lib/gl_avltree_oset.c: Likewise.
75571         * lib/gl_avltreehash_list.c: Likewise.
75572         * lib/gl_carray_list.c: Likewise.
75573         * lib/gl_linked_list.c: Likewise.
75574         * lib/gl_linkedhash_list.c: Likewise.
75575         * lib/gl_list.c: Likewise.
75576         * lib/gl_oset.c: Likewise.
75577         * lib/gl_rbtree_list.c: Likewise.
75578         * lib/gl_rbtree_oset.c: Likewise.
75579         * lib/gl_rbtreehash_list.c: Likewise.
75580         * lib/imaxabs.c: Likewise.
75581         * lib/imaxdiv.c: Likewise.
75582         * lib/javacomp.c: Likewise.
75583         * lib/javaexec.c: Likewise.
75584         * lib/javaversion.c: Likewise.
75585         * lib/linebreak.c: Likewise.
75586         * lib/localcharset.c: Likewise.
75587         * lib/lock.c: Likewise.
75588         * lib/mbchar.c: Likewise.
75589         * lib/mbswidth.c: Likewise.
75590         * lib/mkdtemp.c: Likewise.
75591         * lib/pipe.c: Likewise.
75592         * lib/printf-args.c: Likewise.
75593         * lib/printf-parse.c: Likewise.
75594         * lib/progname.c: Likewise.
75595         * lib/progreloc.c: Likewise.
75596         * lib/readlink.c: Likewise.
75597         * lib/sh-quote.c: Likewise.
75598         * lib/stpcpy.c: Likewise.
75599         * lib/stpncpy.c: Likewise.
75600         * lib/strcasecmp.c: Likewise.
75601         * lib/strcasestr.c: Likewise.
75602         * lib/strcspn.c: Likewise.
75603         * lib/striconv.c: Likewise.
75604         * lib/strncasecmp.c: Likewise.
75605         * lib/strnlen1.c: Likewise.
75606         * lib/strstr.c: Likewise.
75607         * lib/strtok_r.c: Likewise.
75608         * lib/tls.c: Likewise.
75609         * lib/tmpdir.c: Likewise.
75610         * lib/unicodeio.c: Likewise.
75611         * lib/unsetenv.c: Likewise.
75612         * lib/vasnprintf.c: Likewise.
75613         * lib/vasprintf.c: Likewise.
75614         * lib/wait-process.c: Likewise.
75615         * lib/xallocsa.c: Likewise.
75616         * lib/xsetenv.c: Likewise.
75617         * lib/xstriconv.c: Likewise.
75618
75619 2006-09-13  Simon Josefsson  <jas@extundo.com>
75620
75621         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75622         that internally, suggested by Ralf Wildenhues
75623         <Ralf.Wildenhues@gmx.de>.
75624
75625 2006-09-13  Simon Josefsson  <jas@extundo.com>
75626
75627         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75628         @LIBOBJS@.
75629         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75630
75631 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75632
75633         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75634         longer worry about uses that don't define HAVE_CONFIG_H.
75635         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75636         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75637         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75638         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75639         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75640         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75641         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75642         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75643         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75644         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75645         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75646         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75647         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75648         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75649         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75650         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75651         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75652         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75653         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75654         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75655         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75656         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75657         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75658         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75659         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75660         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75661         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75662         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75663         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75664         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75665         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75666         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75667         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75668         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75669         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75670         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75671         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75672         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75673         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75674         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75675         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75676         Likewise.
75677
75678 2006-09-13  Eric Blake  <ebb9@byu.net>
75679
75680         * lib/getopt.c: Fix typo in last commit.
75681
75682 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75683
75684         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75685         dgettext.
75686
75687 2006-09-12  Jim Meyering  <jim@meyering.net>
75688
75689         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75690         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75691         Reported by Nelson H. F. Beebe.
75692
75693 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75694
75695         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75696         program_invocation_name and program_invocation_short_name are
75697         initialized.
75698         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75699         and program_invocation_short_name to argp.h, so they are visible
75700         to user programs.
75701         * lib/argp.h: Likewise
75702
75703 2006-09-10  Bruno Haible  <bruno@clisp.org>
75704
75705         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75706         m4/inttypes_h.m4, m4/uintmax_t.m4.
75707
75708 2006-09-10  Bruno Haible  <bruno@clisp.org>
75709
75710         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75711         gl_AC_TYPE_UINTMAX_T.
75712
75713 2006-09-10  Bruno Haible  <bruno@clisp.org>
75714
75715         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75716
75717 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75718
75719         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75720         convention.  Text proposed by Bruno Haible.
75721         (struct argp_option): Document the use of N_() wrappers.
75722
75723         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75724         '\v', and translate the two parts separately, instead of feeding
75725         the whole string to gettext.  This allows to exclude
75726         '\v' from the strings visible to the translator by writing doc
75727         strings as N_("..") "\v" N_("..").
75728
75729 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * config/srclist.txt: Undo latest change; the bug was fixed.
75732
75733 2006-09-09  Bruno Haible  <bruno@clisp.org>
75734
75735         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75736         assignments if building a library without libtool.
75737         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75738         in func_emit_lib_Makefile_am.
75739         (func_import): When building a static library libfoo.a, arrange to
75740         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75741         (func_create_testdir): Likewise.
75742         * modules/gc (configure.ac, Makefile.am): If building statically,
75743         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75744         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75745         * modules/striconv (configure.ac, Makefile.am): Likewise.
75746         Based on a suggestion by Ralf Wildenhues.
75747
75748 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75749
75750         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75751         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75752         Also:
75753
75754         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75755         Add year_2050_test to catch glibc bug 2821
75756         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75757
75758         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75759         Prefer #ifdef to #if.
75760
75761         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75762         Return from 'main' instead of calling 'exit'.
75763
75764 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75767         returned the maximum time_t value rather than (time_t) -1.
75768         Problem originally reported by William Bardwell
75769         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75770
75771         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75772         Moved to here ...
75773         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75774         ... from here.
75775
75776 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75779         2821 is fixed.
75780
75781 2006-09-08  Jim Meyering  <jim@meyering.net>
75782
75783         Don't make generated files read-only.  That would bother too many
75784         people.  However, do retain the ability to work when targets are
75785         read-only: remove the destination and temporary files before writing
75786         them (when generated via sed or echo), or by using the -f option for
75787         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75788         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75789         * modules/byteswap, modules/configmake, modules/fcntl:
75790         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75791         * modules/localcharset, modules/netinet_in, modules/poll:
75792         * modules/stdbool, modules/stdint, modules/sys_select:
75793         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75794
75795 2006-09-08  Jim Meyering  <jim@meyering.net>
75796
75797         Avoid new build failure on FreeBSD 6.0.
75798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75799         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75800         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75801
75802 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75803
75804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75805
75806 2006-09-07  Jim Meyering  <jim@meyering.net>
75807
75808         Fix global typo in last change: use chmod u-w, not chmod u-x.
75809         Spotted by Paul Eggert and Bruce Korb.
75810         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75811         * modules/byteswap, modules/configmake, modules/fcntl:
75812         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75813         * modules/localcharset, modules/netinet_in, modules/poll:
75814         * modules/stdbool, modules/stdint, modules/sys_select:
75815         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75816
75817 2006-09-06  Jim Meyering  <jim@meyering.net>
75818
75819         Make generated files be read-only.
75820         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75821         Ensure that each generated file is now read-only.
75822         * modules/argz: Likewise.
75823         * modules/arpa_inet: Likewise.
75824         * modules/byteswap: Likewise.
75825         * modules/configmake: Likewise.
75826         * modules/fcntl: Likewise.
75827         * modules/fnmatch: Likewise.
75828         * modules/getopt: Likewise.
75829         * modules/glob: Likewise.
75830         * modules/inttypes: Likewise.
75831         * modules/netinet_in: Likewise.
75832         * modules/poll: Likewise.
75833         * modules/stdbool: Likewise.
75834         * modules/stdint: Likewise.
75835         * modules/sys_select: Likewise.
75836         * modules/sys_socket: Likewise.
75837         * modules/sys_stat: Likewise.
75838         * modules/sysexits: Likewise.
75839         * modules/localcharset: Same as above, but continue using temporary
75840         file named "t-$@" (why different?) rather than the "$@-t" used
75841         everywhere else.
75842
75843         * modules/sysexits (Makefile.am): Replace literal occurrences
75844         of "sysexit.h" more readable, and more consistent, "$@".
75845
75846 2006-09-06  Bruno Haible  <bruno@clisp.org>
75847
75848         * modules/striconv: New file.
75849         * modules/xstriconv: New file.
75850         * MODULES.html.sh (Internationalization functions): Add striconv,
75851         xstriconv.
75852
75853 2006-09-06  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75856         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75857         not using libtool correctly.
75858
75859 2006-09-06  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/striconv.h: New file.
75862         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75863         iconvstring.c.
75864         * lib/xstriconv.h: New file.
75865         * lib/xstriconv.c: New file.
75866
75867 2006-09-06  Bruno Haible  <bruno@clisp.org>
75868
75869         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75870         lib_..._LDFLAGS.
75871
75872 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75873
75874         * lib/argz_.h: Sync from Libtool.
75875
75876         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75877                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75878
75879         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75880
75881 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75882
75883         * modules/trim: New file.
75884
75885 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75886
75887         * lib/trim.h: New file.
75888         * lib/trim.c: New file.
75889
75890 2006-09-05  Bruno Haible  <bruno@clisp.org>
75891
75892         * MODULES.html.sh (String handling): Add trim.
75893
75894 2006-09-04  Karl Berry  <karl@gnu.org>
75895
75896         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75897         until next release.
75898
75899 2006-09-03  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75902         correctly.
75903
75904 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75907         not gl_GETLOADAVG.  Omit unneeded semicolons.
75908         Problems reported by Ralf Wildenhues in
75909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75910         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75911         at the end, which is the usual gnulib style.
75912
75913         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75914         of doing all the work ourselves.
75915         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75916         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75917
75918 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75921         Problem reported by Ralf Wildenhues in
75922         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75923
75924         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75925         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75926
75927 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75930         yesterday's patch by changing test -n to test -z.
75931
75932 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75935         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75936         the former is now obsolescent.
75937
75938         * modules/chdir-long (Depends-on): Add fcntl.
75939
75940 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75943         obsolescent, and programs should use gnulib instead.
75944         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75945         but with prefixes changed.
75946
75947 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75950         or stdbool.h, because they might not exist while configuring.
75951
75952         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75953         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75954         does that for us.
75955         (O_DIRECTORY): Remove.
75956
75957 2006-08-31  Eric Blake  <ebb9@byu.net>
75958
75959         * gnulib-tool: Don't let emacs change spaces to TAB.
75960
75961 2006-08-31  Bruno Haible  <bruno@clisp.org>
75962
75963         * gnulib-tool: When calling func_import more than once, do it in a
75964         subshell.
75965         Reported by Eric Blake <ebb9@byu.net>.
75966
75967 2006-08-31  Bruno Haible  <bruno@clisp.org>
75968
75969         * gnulib-tool (nl): Remove variable.
75970         (sed_transform_lib_file): Use more robust test for config-h module.
75971         (func_import): Fix typo in 2006-08-25 patch.
75972
75973 2006-08-31  Bruno Haible  <bruno@clisp.org>
75974
75975         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75976         specified, augment Makefile.am variables instead of assigning them.
75977
75978 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         Work around a bug in both the Linux and SunOS 64-bit kernels:
75981         nanosleep mishandles sleeps for longer than 2**31 seconds.
75982         Problem reported by Frank v Waveren in
75983         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75984         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75985         Check for nanosleep bug.
75986         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75987
75988 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         Work around a bug in both the Linux and SunOS 64-bit kernels:
75991         nanosleep mishandles sleeps for longer than 2**31 seconds.
75992         Problem reported by Frank v Waveren in
75993         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75994         * lib/nanosleep.c (BILLION): New constant.
75995         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75996         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75997         implementation.
75998
75999 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * modules/nanosleep (Depends-on): Add gettime.
76002
76003 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76004         and Simon Josefsson  <jas@extundo.com>
76005         and Oskar Liljeblad  <oskar@osk.mine.nu>
76006
76007         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76008         * gnulib-tool (func_import): New license type 'unmodifiable license
76009         text'.
76010         * modules/fdl: Use it.  Longer description.
76011         * module/gpl, module/lgpl: New files.
76012
76013 2006-08-30  Jim Meyering  <jim@meyering.net>
76014
76015         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76016         shadowing the parameter.
76017
76018 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76019
76020         Sync from Libtool:
76021
76022         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76023
76024         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76025         sharing with gnulib.  Report by Eric Blake.
76026
76027 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * modules/isapipe: New file.
76030         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76031
76032 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * modules/configmake (Makefile.am): Add a comment, and omit
76035         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76036         by Bruno Haible.
76037
76038 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * m4/isapipe.m4: New file.
76041
76042 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76043
76044         * lib/isapipe.c, lib/isapipe.h: New files.
76045
76046 2006-08-29  Jim Meyering  <jim@meyering.net>
76047
76048         * modules/configmake (Makefile.am): Make configmake.h depend on
76049         Makefile.  Otherwise, a stale configmake.h could hang around.
76050
76051 2006-08-29  Eric Blake  <ebb9@byu.net>
76052
76053         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76054         resolution of upstream bug 3044.
76055
76056 2006-08-29  Bruno Haible  <bruno@clisp.org>
76057
76058         * modules/localcharset (Depends-on): Add configmake.
76059         (Makefile.am): Remove setting of LIBDIR through DEFS.
76060
76061 2006-08-29  Bruno Haible  <bruno@clisp.org>
76062
76063         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76064         defined.
76065
76066 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76067
76068         * modules/fcntl: New file.
76069         * modules/chdir-safer (Depends-on): Add fcntl.
76070         * modules/fts: Likewise.
76071         * modules/mkdir-p: Likewise.
76072
76073         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76074         This undoes the most recent change, since we're now addressing the
76075         problem in a different way.
76076
76077         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76078         into output, since the output might be called Makefile.am even
76079         if $makefile_name is something different.
76080         (func_import): Use $makefile_am rather than
76081         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76082         empty.
76083
76084         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76085
76086 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76089         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76090         recent change to stdint.m4, since we're now addressing the problem in a
76091         different way.
76092
76093 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * m4/fcntl_h.m4: New file.
76096
76097 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76098
76099         * lib/fcntl_.h: New file.
76100         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76101         the fcntl module.
76102         * lib/dirchownmod.c: Likewise.
76103         * lib/fts.c: Likewise.
76104
76105         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76106         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76107         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76108         just before including <inttypes.h>, to avoid circular inclusion.
76109
76110 2006-08-28  Jim Meyering  <jim@meyering.net>
76111
76112         * doc/visibility.texi: Actually read and correct the grammar of the
76113         sentence affected by yesterday's change.
76114
76115 2006-08-28  Eric Blake  <ebb9@byu.net>
76116
76117         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76118         needs wrapper.
76119
76120 2006-08-28  Eric Blake  <ebb9@byu.net>
76121
76122         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76123
76124 2006-08-28  Eric Blake  <ebb9@byu.net>
76125
76126         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76127
76128 2006-08-28  Bruno Haible  <bruno@clisp.org>
76129
76130         * modules/c-strstr: New file, from GNU gettext.
76131         * MODULES.html.sh (String handling): Add c-strstr.
76132
76133 2006-08-28  Bruno Haible  <bruno@clisp.org>
76134
76135         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76136         macros.
76137         Reported by Eric Blake.
76138
76139 2006-08-28  Bruno Haible  <bruno@clisp.org>
76140
76141         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76142         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76143         * lib/vasprintf.c: Include errno.h, limits.h.
76144         (EOVERFLOW): New fallback definition.
76145         (vasprintf): Test here whether the string length is > INT_MAX.
76146         * lib/vsnprintf.c: Include errno.h, limits.h.
76147         (EOVERFLOW): New fallback definition.
76148         (vsnprintf): Fix bug when generated string was too long for the buffer.
76149         Test here whether the string length is > INT_MAX.
76150
76151 2006-08-28  Bruno Haible  <bruno@clisp.org>
76152
76153         * lib/inttypes_.h (SCNX*): Remove definitions.
76154         Reported by Eric Blake.
76155
76156 2006-08-28  Bruno Haible  <bruno@clisp.org>
76157
76158         * lib/c-strstr.h: New file, from GNU gettext.
76159         * lib/c-strstr.c: New file, from GNU gettext.
76160
76161 2006-08-28  Bruno Haible  <bruno@clisp.org>
76162
76163         * gnulib-tool: Reorder some statements.
76164
76165 2006-08-28  Bruno Haible  <bruno@clisp.org>
76166
76167         * gnulib-tool: New option --makefile-name.
76168         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76169         $makefile_name.
76170         (func_import): Write $makefile_name to the cache file, and read it from
76171         there unless explicitly specified. Use $makefile_name as file name
76172         instead of Makefile.am. Adjust the recommendations accordingly.
76173
76174 2006-08-28  Bruno Haible  <bruno@clisp.org>
76175
76176         * gnulib-tool (func_verify_module): Check against misapplying patch.
76177
76178 2006-08-28  Bruno Haible  <bruno@clisp.org>
76179
76180         * gnulib-tool (func_relativize, func_relconcat): New functions.
76181         Give an error if --local-dir is given with --update.
76182         Remove trailing slashes from $local_gnulib_dir.
76183         (func_import): Store the relativized $local_gnulib_dir in
76184         gnulib-cache.m4, and read it from there if not specified explicitly.
76185
76186 2006-08-28  Bruno Haible  <bruno@clisp.org>
76187
76188         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76189         is the current directory. Respect also $local_gnulib_dir.
76190
76191 2006-08-28  Bruno Haible  <bruno@clisp.org>
76192             Simon Josefsson  <jas@extundo.com>
76193
76194         BeOS portability.
76195         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76196
76197 2006-08-27  Jim Meyering  <jim@meyering.net>
76198
76199         * doc/visibility.texi: Remove duplicate word: "pointer".
76200
76201 2006-08-26  Bruno Haible  <bruno@clisp.org>
76202
76203         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76204         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76205         (Makefile.am): Create inttypes.h from inttypes_.h.
76206         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76207
76208         * modules/imaxabs: New file.
76209
76210         * modules/imaxdiv: New file.
76211
76212 2006-08-26  Bruno Haible  <bruno@clisp.org>
76213
76214         * m4/inttypes.m4: New file.
76215         * m4/_inttypes_h.m4: Remove file.
76216         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76217         PRI_MACROS_BROKEN.
76218         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76219
76220         * m4/imaxabs.m4: New file.
76221
76222         * m4/imaxdiv.m4: New file.
76223
76224 2006-08-26  Bruno Haible  <bruno@clisp.org>
76225
76226         * lib/inttypes_.h: New file.
76227         * lib/inttypes.h: Remove file.
76228         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76229
76230         * lib/imaxabs.c: New file.
76231
76232         * lib/imaxdiv.c: New file.
76233
76234 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76235
76236         New config-h module, so that "make" output needn't be cluttered
76237         by -DHAVE_CONFIG_H.
76238         * MODULES.html.sh (Support for building libraries and executables):
76239         Add config-h.
76240         * modules/config-h: New file.
76241         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76242         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76243         the config-h module is used.
76244
76245         New configmake module, so that "make" output needn't be cluttered
76246         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76247         * MODULES.html.sh (Support for building libraries and executables):
76248         Add configmake.
76249         * modules/configmake: New file.
76250
76251 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         * m4/config-h.m4: New file.
76254
76255 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * config/srclist.txt: Add elisp-comp.
76258
76259 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * MODULES.html.sh (Support for building libraries and executables):
76262         Add elisp-comp.
76263         * build-aux/elisp-comp: New file.
76264         * modules/elisp-comp: New file.
76265
76266 2006-08-24  Bruno Haible  <bruno@clisp.org>
76267
76268         * gnulib-tool (func_create_testdir): Use non-default values of
76269         sourcebase and m4base.
76270
76271 2006-08-24  Bruno Haible  <bruno@clisp.org>
76272
76273         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76274         HTML structure.
76275
76276 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * modules/openat (Depends-on): Add lchown.
76279
76280 2006-08-23  Bruno Haible  <bruno@clisp.org>
76281
76282         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76283         of gl_LOCK_EARLY instead of gl_LOCK.
76284
76285 2006-08-23  Bruno Haible  <bruno@clisp.org>
76286
76287         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76288         on OSF/1 to no.
76289         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76290
76291 2006-08-23  Bruno Haible  <bruno@clisp.org>
76292
76293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76294         as unusable.
76295
76296         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76297         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76298         (gl_LOCK): New macro.
76299
76300 2006-08-22  Simon Josefsson  <jas@extundo.com>
76301
76302         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76303         to md5 module.
76304
76305 2006-08-22  Simon Josefsson  <jas@extundo.com>
76306
76307         * MODULES.html.sh: Add "Support for maintaining and release
76308         projects".
76309
76310         * build-aux/gnupload: New file, from coreutils.
76311
76312 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76313
76314         Avoid the need for AC_LIBSOURCES in m4 macros.
76315         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76316         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76317         * modules/check-version (EXTRA_DIST): Add check-version.h.
76318         * modules/crc (EXTRA_DIST): Add crc.h.
76319         * modules/des (EXTRA_DIST): Add des.h.
76320         * modules/gc (EXTRA_DIST): Add gc.h.
76321         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76322         * modules/getline (EXTRA_DIST): Add getline.h.
76323         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76324         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76325         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76326         * modules/md2 (EXTRA_DIST): Add md2.h.
76327         * modules/md4 (EXTRA_DIST): Add md4.h.
76328         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76329         * modules/read-file (EXTRA_DIST): Add read-file.h.
76330         * modules/readline (EXTRA_DIST): Add readline.h.
76331         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76332         rijndael-api-fst.h.
76333
76334 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         * m4/rijndael.m4 (gl_ARCFOUR):
76337         * m4/arctwo.m4 (gl_ARCTWO):
76338         * m4/check-version.m4 (gl_CHECK_VERSION):
76339         * m4/crc.m4 (gl_CRC):
76340         * m4/des.m4 (gl_DES):
76341         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76342         * m4/gc.m4 (gl_GC):
76343         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76344         * m4/getline.m4 (gl_FUNC_GETLINE):
76345         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76346         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76347         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76348         * m4/md2.m4 (gl_MD2):
76349         * m4/md4.m4 (gl_MD4):
76350         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76351         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76352         * m4/readline.m4 (gl_FUNC_READLINE):
76353         * m4/rijndael.m4 (gl_RIJNDAEL):
76354         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76355         to get the necessary .h files and whatnot.
76356
76357 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76358
76359         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76360         gnulib rather than the other way around.
76361         * config/srclistvars.sh (COREUTILS): Remove.
76362
76363 2006-08-22  Jim Meyering  <jim@meyering.net>
76364
76365         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76366
76367         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76368
76369 2006-08-22  Eric Blake  <ebb9@byu.net>
76370
76371         * modules/regexprops-generic: New file.
76372         * MODULES.html.sh (Support for building documentation): List it.
76373
76374 2006-08-22  Eric Blake  <ebb9@byu.net>
76375
76376         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76377         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76378         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76379         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76380
76381 2006-08-22  Bruno Haible  <bruno@clisp.org>
76382
76383         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76384         and lib_LTLIBRARIES like the other lib_* variables.
76385
76386 2006-08-22  Bruno Haible  <bruno@clisp.org>
76387
76388         * build-aux/x-to-1.in: New file, from GNU gettext.
76389
76390 2006-08-22  Bruno Haible  <bruno@clisp.org>
76391
76392         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76393         <utmpx.h> exists.
76394
76395 2006-08-22  Bruno Haible  <bruno@clisp.org>
76396
76397         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76398         <utmpx.h> exists.
76399
76400 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         BeOS portability.
76403         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76404         exist.
76405         Problem reported by Bruno Haible.
76406
76407 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         Avoid the need for AC_LIBSOURCES in m4 macros.
76410         * modules/acl (EXTRA_DIST): Add acl.h.
76411         * modules/argmatch (Files): Add m4/argmatch.m4.
76412         (configure.ac): Add gl_ARGMATCH.
76413         (EXTRA_DIST): Renamed from lib_SOURCES, for
76414         consistency with the other modules.  Remove argmatch.c.
76415         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76416         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76417         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76418         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76419         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76420         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76421         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76422         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76423         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76424         * modules/closeout (EXTRA_DIST): Add closeout.h.
76425         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76426         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76427         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76428         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76429         dirname.h; remove basename.c and stripslash.c.
76430         * modules/exclude (EXTRA_DIST): Add exclude.h.
76431         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76432         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76433         * modules/file-type (EXTRA_DIST): Add file-type.h.
76434         * modules/filemode (EXTRA_DIST): Add filemode.h.
76435         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76436         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76437         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76438         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76439         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76440         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76441         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76442         * modules/getdate (EXTRA_DIST): Add getdate.c.
76443         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76444         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76445         * modules/getpass (EXTRA_DIST): Add getpass.h.
76446         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76447         * modules/group-member (EXTRA_DIST): Add group-member.h.
76448         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76449         * modules/hash (EXTRA_DIST): Add hash.h.
76450         * modules/human (EXTRA_DIST): Add human.h.
76451         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76452         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76453         * modules/lchown (EXTRA_DIST): Add lchown.h.
76454         * modules/long-options (EXTRA_DIST): Add long-options.h.
76455         * modules/lstat (EXTRA_DIST): Add lstat.h.
76456         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76457         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76458         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76459         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76460         * modules/memxor (EXTRA_DIST): Add memxor.h.
76461         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76462         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76463         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76464         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76465         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76466         * modules/physmem (EXTRA_DIST): Add physmem.h.
76467         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76468         * modules/posixver (EXTRA_DIST): Add posixver.h.
76469         * modules/quote (EXTRA_DIST): Add quote.h.
76470         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76471         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76472         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76473         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76474         regex_internal.h regexec.c.
76475         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76476         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76477         * modules/same (EXTRA_DIST): Add same.h.
76478         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76479         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76480         * modules/savedir (EXTRA_DIST): Add savedir.h.
76481         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76482         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76483         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76484         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76485         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76486         * modules/strdup (EXTRA_DIST): Add strdup.h.
76487         * modules/strftime (EXTRA_DIST): Add strftime.h.
76488         * modules/strndup (EXTRA_DIST): Add strndup.h.
76489         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76490         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76491         * modules/time_r (EXTRA_DIST): Add time_r.h.
76492         * modules/timespec (EXTRA_DIST): Add timespec.h.
76493         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76494         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76495         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76496         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76497         * modules/userspec (EXTRA_DIST): Add userspec.h.
76498         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76499         * modules/utimens (EXTRA_DIST): Add utimens.h.
76500         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76501         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76502         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76503         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76504         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76505         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76506         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76507         * modules/yesno (EXTRA_DIST): Add yesno.h.
76508
76509 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76510
76511         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76512
76513         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76514         * m4/dev-ino.m4, same-inode.m4: Remove.
76515
76516         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76517         * m4/acl.m4 (AC_FUNC_ACL):
76518         * m4/backupfile.m4 (gl_BACKUPFILE):
76519         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76520         * m4/canon-host.m4 (gl_CANON_HOST):
76521         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76522         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76523         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76524         * m4/cloexec.m4 (gl_CLOEXEC):
76525         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76526         * m4/closeout.m4 (gl_CLOSEOUT):
76527         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76528         * m4/dirname.m4 (gl_DIRNAME):
76529         * m4/exclude.m4 (gl_EXCLUDE):
76530         * m4/exitfail.m4 (gl_EXITFAIL):
76531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76532         * m4/file-type.m4 (gl_FILE_TYPE):
76533         * m4/filemode.m4 (gl_FILEMODE):
76534         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76535         * m4/fpending.m4 (gl_FUNC_FPENDING):
76536         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76537         * m4/fts.m4 (gl_FUNC_FTS):
76538         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76539         * m4/getdate.m4 (gl_GETDATE):
76540         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76541         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76542         * m4/getpass.m4 (gl_FUNC_GETPASS):
76543         * m4/gettime.m4 (gl_GETTIME):
76544         * m4/getugroups.m4 (gl_GETUGROUPS):
76545         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76546         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76547         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76548         * m4/hash.m4 (gl_HASH):
76549         * m4/idcache.m4 (gl_IDCACHE):
76550         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76551         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76552         * m4/long-options.m4 (gl_LONG_OPTIONS):
76553         * m4/lstat.m4 (gl_FUNC_LSTAT):
76554         * m4/md5.m4 (gl_MD5):
76555         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76556         * m4/memcoll.m4 (gl_MEMCOLL):
76557         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76558         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76559         * m4/memxor.m4 (gl_MEMXOR):
76560         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76561         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76562         * m4/modechange.m4 (gl_MODECHANGE):
76563         * m4/mountlist.m4 (gl_MOUNTLIST):
76564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76565         * m4/openat.m4 (gl_FUNC_OPENAT):
76566         * m4/pathmax.m4 (gl_PATHMAX):
76567         * m4/physmem.m4 (gl_PHYSMEM):
76568         * m4/posixtm.m4 (gl_POSIXTM):
76569         * m4/posixver.m4 (gl_POSIXVER):
76570         * m4/quote.m4 (gl_QUOTE):
76571         * m4/quotearg.m4 (gl_QUOTEARG):
76572         * m4/readtokens.m4 (gl_READTOKENS):
76573         * m4/readutmp.m4 (gl_READUTMP):
76574         * m4/regex.m4 (gl_REGEX):
76575         * m4/safe-read.m4 (gl_SAFE_READ):
76576         * m4/safe-write.m4 (gl_SAFE_WRITE):
76577         * m4/same.m4 (gl_SAME):
76578         * m4/save-cwd.m4 (gl_SAVE_CWD):
76579         * m4/savedir.m4 (gl_SAVEDIR):
76580         * m4/settime.m4 (gl_SETTIME):
76581         * m4/sha1.m4 (gl_SHA1):
76582         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76583         * m4/stat-macros.m4 (gl_STAT_MACROS):
76584         * m4/stat-time.m4 (gl_STAT_TIME):
76585         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76586         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76587         * m4/strdup.m4 (gl_FUNC_STRDUP):
76588         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76589         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76590         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76591         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76592         * m4/time_r.m4 (gl_TIME_R):
76593         * m4/timespec.m4 (gl_TIMESPEC):
76594         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76595         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76596         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76597         * m4/userspec.m4 (gl_USERSPEC):
76598         * m4/utimecmp.m4 (gl_UTIMECMP):
76599         * m4/utimens.m4 (gl_UTIMENS):
76600         * m4/xalloc.m4 (gl_XALLOC):
76601         * m4/xgetcwd.m4 (gl_XGETCWD):
76602         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76603         * m4/xreadlink.m4 (gl_XREADLINK):
76604         * m4/xstrtod.m4 (gl_XSTRTOD):
76605         * m4/yesno.m4 (gl_YESNO):
76606         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76607         to get the necessary .h files and whatnot.
76608
76609 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76610             Bruno Haible  <bruno@clisp.org>
76611
76612         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76613         /bin/sh understanding of '!' conditional negation.
76614
76615 2006-08-21  Jim Meyering  <jim@meyering.net>
76616
76617         * modules/openat (Depends-on): Really alphabetize.
76618
76619         * modules/acl (Depends-on): Add error and quote.
76620
76621         * check-module (find_included_lib_files): Add at-func.c to the
76622         ok-to-include-more-than-once white list.
76623
76624         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76625
76626 2006-08-21  Bruno Haible  <bruno@clisp.org>
76627
76628         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76629         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76630         Reported by Martin Lambers <marlam@marlam.de>.
76631
76632 2006-08-21  Bruno Haible  <bruno@clisp.org>
76633
76634         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76635         specify an installation location, don't emit a noinst_LIBRARIES or
76636         noinst_LTLIBRARIES assignment.
76637
76638 2006-08-21  Bruno Haible  <bruno@clisp.org>
76639
76640         BeOS portability.
76641         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76642         BeOS has mbrtowc() but no <wctype.h>.
76643
76644 2006-08-21  Bruno Haible  <bruno@clisp.org>
76645
76646         BeOS portability.
76647         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76648         exist.
76649
76650 2006-08-21  Bruno Haible  <bruno@clisp.org>
76651
76652         BeOS portability.
76653         * lib/mbchar.h: Include <wctype.h> only if it exists.
76654
76655 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         Remove files that are no longer needed by their respective modules.
76658         * m4/obstack.m4: Remove.
76659         * m4/strerror_r.m4: Remove.
76660         * m4/uint32_t.m4: Remove.
76661         * m4/uintptr_t.m4: Remove.
76662         * m4/ullong_max.m4: Remove.
76663         * m4/xstrtoimax.m4: Remove.
76664         * m4/xstrtoumax.m4: Remove.
76665
76666         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76667         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76668         dependencies now capture this.
76669
76670         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76671         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76672         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76673         * m4/human.m4 (gl_HUMAN): Likewise.
76674         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76675         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76676
76677         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76678
76679         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76680         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76681         stdint.
76682         * m4/human.m4 (gl_HUMAN): Likewise.
76683         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76684         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76685         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76686         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76687         * m4/xstrtol (gl_XSTRTOL): Likewise.
76688
76689         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76690         AC_TYPE_LONG_LONG_INT.
76691         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76692         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76693         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76694         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76695
76696         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76697         on stdbool.
76698
76699         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76700         (gl_PREREQ_XSTRTOUL): Remove.
76701
76702         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76703
76704         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76705         mode.
76706
76707 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76708
76709         Add and change modules to make it easier for coreutils to use
76710         gnulib-tool.
76711         * modules/backupfile (Files): Remove m4/d-ino.m4.
76712         (Depends-on): Add d-ino.
76713         * modules/cycle-check (Depends-on): Add stdint.
76714         (lib_SOURCES): Add cycle-check.h.
76715         * modules/d-ino: New module.
76716         * modules/d-type: New module.
76717         * modules/error (Files): Remove m4/strerror_r.m4.
76718         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76719         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76720         m4/inttypes_h.m4, m4/uintmax_t.m4.
76721         (Depends-on): Add stdint.
76722         (lib_SOURCES): Add fsusage.h.
76723         * modules/getcwd (Files): Remove d-ino.m4.
76724         (Depends-on): Add d-ino.
76725         * modules/getndelim2 (Depends-on): Add stdint.
76726         * modules/glob (Files): Remove m4/d-type.m4.
76727         (Depends-on): Add d-type.
76728         * modules/host-os: New module.
76729         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76730         m4/inttypes_h.m4, m4/uintmax_t.m4.
76731         * Depends-on: Add stdint.
76732         (lib_SOURCES): Add human.h.
76733         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76734         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76735         m4/uintmax_t.m4, m4/ulonglong.m4.
76736         (Depends-on): Add stdint.
76737         (EXTRA_DIST): Add inttostr.h.
76738         * modules/lchmod: New module.
76739         * modules/link-follow: New module.
76740         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76741         (Depends-on): Add lchmod.
76742         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76743         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76744         (Depends-on): Add stdint.
76745         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76746         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76747         (Depends-on): Add stdint.
76748         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76749         * modules/perl: New module.
76750         * modules/regex (Depends-on): Add stdint.
76751         * modules/rmdir-errno: New module.
76752         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76753         m4/intmax_t.m4.
76754         (Depends-on): Add stdint.
76755         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76756         m4/uintmax_t.m4.
76757         (Depends-on): Add stdint.
76758         * modules/unlink-busy: New module.
76759         * modules/utimecmp (Depends-on): Add stdint.
76760         * modules/uptime: New module.
76761         * modules/winsz-ioctl: New module.
76762         * modules/winsz-termios: New module.
76763         * modules/xnanosleep (Depends-on): Add nanosleep.
76764         * modules/ullong_max: Remove.
76765         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76766         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76767         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76768         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76769         (Depends-on): Add inttypes.
76770         (lib_SOURCES): Add xstrtol.h.
76771         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76772         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76773         * MODULES.html.sh: Move 'assert' into the assert section.
76774         Move 'dummy' into the linking section.
76775         Remove ullong_max.
76776         Add section for compatibility checks for POSIX:2001 functions,
76777         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76778         winsz-ioctl, and winsz-termios into it.
76779         Add lchmod.
76780         Add top-level Misc section and put host-os, perl, and uptime
76781         into it.
76782
76783 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76784
76785         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76786         now assume the stdint module.  Do not include inttypes.h.
76787         * lib/fsusage.h: Likewise.
76788         * lib/getndelim2.c: Likewise.
76789         * lib/human.h: Likewise.
76790         * lib/inttostr.h: Likewise.
76791         * lib/obstack.c: Likewise.
76792         * lib/regex_internal.h: Likewise.
76793         * lib/tempname.c: Likewise.
76794         * lib/utimecmp.c: Likewise.
76795         * lib/xstrtol.h: Likewise.
76796
76797         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76798
76799         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76800         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76801         * lib/xtime.h: Likewise.
76802
76803 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         * modules/openat (Files): Add lib/fchmodat.c.
76806         Fixes problem reported by Jay Youngman.
76807
76808 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76811         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76812
76813 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76814             Bruno Haible  <bruno@clisp.org>
76815
76816         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76817         and is a script that invokes bison. Tighten the code. Add comments.
76818
76819 2006-08-18  Jim Meyering  <jim@meyering.net>
76820
76821         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76822         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76823         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76824         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76825
76826 2006-08-18  Bruno Haible  <bruno@clisp.org>
76827
76828         * modules/bison-i18n: New file.
76829         * MODULES.html.sh (Internationalization functions): Add it.
76830
76831 2006-08-18  Bruno Haible  <bruno@clisp.org>
76832
76833         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76834         sys/statvfs.h. When getmntinfo was found, check its declaration and
76835         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76836
76837 2006-08-18  Bruno Haible  <bruno@clisp.org>
76838
76839         * m4/bison-i18n.m4: New file, from bison.
76840
76841 2006-08-18  Bruno Haible  <bruno@clisp.org>
76842
76843         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76844         (ME_DUMMY): Treat "kernfs" as a dummy.
76845         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76846
76847 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         Update from coreutils.
76850
76851         2006-08-15  Jim Meyering  <jim@meyering.net>
76852
76853         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76854
76855         2006-01-17  Jim Meyering  <jim@meyering.net>
76856
76857         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76858
76859         2006-01-11  Jim Meyering  <jim@meyering.net>
76860
76861         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76862         Check for the lchmod function.
76863
76864 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         Update from coreutils.
76867
76868         * lib/__fpending.h: Add copyright notice.
76869         * lib/fprintftime.h: Likewise.
76870         * lib/savedir.c: Use (C) in copyright notice.
76871         * lib/savedir.h: Likewise.
76872
76873         2006-08-15  Jim Meyering  <jim@meyering.net>
76874
76875         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76876         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76877         in support of the EXPECTED_ERRNO macro.
76878         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76879         definitions.  Instead, define the appropriate symbols and include
76880         "at-func.c".
76881         * lib/mkdirat.c (mkdirat): Likewise.
76882         * lib/fchmodat.c (fchmodat): Likewise.
76883         (ENOSYS): Remove definition.
76884         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76885         it.  Don't include "unistd--.h" -- it wasn't ever used.
76886
76887         2006-01-17  Jim Meyering  <jim@meyering.net>
76888
76889         Rewrite fts.c not to change the current working directory,
76890         by using openat, fstatat, fdopendir, etc..
76891
76892         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76893         (HAVE_OPENAT_SUPPORT): Define.
76894         [_LIBC] (fchdir): Don't undef or define; no longer used.
76895         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76896         Now, this `function' always succeeds, and consumes its file descriptor
76897         parameter -- so callers must not close such FDs.  Update callers.
76898         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76899         (diropen): Add parameter, SP.  Adjust all callers.
76900         Implement using diropen_fd, rather than open.
76901         (fts_open): Initialize new member, fts_cwd_fd.
76902         Remove fts_rft-setting code.
76903         (fts_close): Close fts_cwd_fd, if necessary.
76904         (__opendir2): Define in terms of opendir or opendirat,
76905         depending on whether the FST_NOCHDIR flag is set.
76906         (fts_build): Since fts_safe_changedir consumes its FD, and since
76907         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76908         and close the dup'd file descriptor upon failure.
76909         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76910         (fts_safe_changedir): Tweak semantics to reflect that this function
76911         now calls cwd_advance_fd and hence consumes its FD argument.
76912         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76913         [struct FTS] (fts_rft): Remove now-unused member.
76914         [struct FTS] (fts_cycle.state): Improve comment.
76915
76916         * lib/openat.c (openat_needs_fchdir): New function.
76917         * lib/openat.h (openat_needs_fchdir): Declare it.
76918
76919 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76922         Problem and fix reported by Pádraig Brady in
76923         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76924
76925 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76928
76929 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * lib/memcoll.c (memcoll): Optimize for the common case where the
76932         arguments are bytewise equal.
76933
76934 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * doc/regexprops-generic.texi: Add a copyright notice.
76937
76938 2006-08-15  Bruno Haible  <bruno@clisp.org>
76939
76940         * modules/tmpdir (License): Change to LGPL.
76941
76942 2006-08-15  Bruno Haible  <bruno@clisp.org>
76943
76944         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76945         module.
76946
76947 2006-08-14  Simon Josefsson  <jas@extundo.com>
76948
76949         * config/srclist.txt: Add gnupload.
76950
76951 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         Change copyright notice from LGPL 2 to GPL 2, since that's the
76954         standard form used in the gnulib repository.
76955         * tests/test-lock.c: Likewise.
76956         * tests/test-stdint.c: Likewise.
76957         * tests/test-tls.c: Likewise.
76958
76959         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76960         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76961         Add copyright notice.
76962
76963         * check-module: Add copyright notice.  Output a copyright
76964         notice if "--version" is specified.
76965         * modules/COPYING: New file.
76966         * tests/test-getaddrinfo.c: Add copyright notice.
76967         * tests/test-verify.c: Likewise.
76968
76969 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         Change copyright notice from LGPL 2 to GPL 2, since that's the
76972         standard form used in the gnulib repository.
76973         * lib/lock.c: LGPL -> GPL.
76974         * lib/lock.h: Likewise.
76975         * lib/strnlen1.c: Likewise.
76976         * lib/strnlen1.h: Likewise.
76977         * lib/tls.c: Likewise.
76978         * lib/tls.h: Likewise.
76979         * lib/tmpdir.c: Likewise.
76980
76981         * lib/TODO: Remove; this belongs only in coreutils.
76982
76983 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76984
76985         Add copyright notices to long-enough files that lack them, since
76986         otherwise the files aren't clearly free.  Use the same notice that
76987         getdate.texi already uses.
76988         * doc/alloca-opt.texi: Add copyright notice.
76989         * doc/alloca.texi: Likewise.
76990         * doc/ctime.texi: Likewise.
76991         * doc/functions.texi: Likewise.
76992         * doc/gcd.texi: Likewise.
76993         * doc/gnulib-tool.texi: Likewise.
76994         * doc/inet_ntoa.texi: Likewise.
76995         * doc/visibility.texi: Likewise.
76996
76997         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76998         * doc/quote.texi: Add copyright notice.
76999
77000         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77001         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77002         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77003         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77004         is now obsolete, and give a pointer to the Sun list.
77005         Add copyright notice.
77006
77007 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77008
77009         * config/srclistvars.sh: Add copyright notice.
77010
77011 2006-08-14  Eric Blake  <ebb9@byu.net>
77012
77013         Import the following change from libc:
77014
77015         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77016
77017         Upstream bug 2997.
77018         * lib/misc/error.c: Add space between program name and message if file
77019         name is missing.
77020
77021 2006-08-12  Karl Berry  <karl@gnu.org>
77022
77023         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77024         remove, these originate in gnulib now.
77025
77026 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77027
77028         * doc/Makefile (standards.info standards.html standards.dvi):
77029         Also depend on make-stds.texi.
77030
77031 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77034         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77035
77036         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77037         in wchar_t.  Problem reported by Eric Blake.
77038
77039         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77040         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77041         Also, help the compiler to keep LEN in a register.
77042
77043 2006-08-11  Eric Blake  <ebb9@byu.net>
77044
77045         * users.txt: Sort.  Add tar.
77046
77047 2006-08-11  Bruno Haible  <bruno@clisp.org>
77048
77049         * users.txt: New file.
77050
77051 2006-08-11  Bruno Haible  <bruno@clisp.org>
77052
77053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77054         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77055
77056 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77057
77058         * modules/snprintf (Depends-on): Remove minmax.
77059         (Maintainer): Add self and Bruno.
77060
77061 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77064         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77065         (EOVERFLOW): Define if the system does not.
77066         Do not include "minmax.h"; it wasn't used.
77067         (snprintf): Don't assume size_t promotes to an unsigned type.
77068         Fix bug when generated string was too long for the buffer: the
77069         buffer's contents are supposed to be the initial prefix of the
77070         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77071         exceeds INT_MAX; do the check ourselves.
77072
77073         Import the following changes from libc:
77074
77075         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77076
77077         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77078         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77079         set wc to the byte which couldn't be converted.
77080         (re_string_reconstruct): Don't clear valid_raw_len before calling
77081         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77082         tip_context using re_string_context_at.
77083
77084         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77085
77086         * lib/posix/regex.h: g++ still cannot handled [restrict].
77087
77088         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77089
77090         * lib/posix/regex.h: Remove special handling for VMS.
77091
77092 2006-08-10  Jim Meyering  <jim@meyering.net>
77093
77094         * modules/same-inode: New module.
77095         * modules/dev-ino: New module.
77096         * modules/cycle-check: Depend on these modules, rather than simply
77097         including their .h files.
77098         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77099         required via m4/cycle-check.m4.
77100         * modules/same: Depend on new same-inode module, rather than
77101         including same-inode.h.
77102         * modules/chdir-safer: New file.
77103
77104         * modules/chown (Depends-on): Add stat-macros.
77105
77106 2006-08-10  Jim Meyering  <jim@meyering.net>
77107
77108         * m4/cycle-check.m4: New file.
77109         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77110         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77111
77112 2006-08-10  Eric Blake  <ebb9@byu.net>
77113
77114         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77115         in from original proposal.
77116
77117 2006-08-10  Eric Blake  <ebb9@byu.net>
77118         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77119
77120         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77121         namespace.
77122
77123 2006-08-10  Bruno Haible  <bruno@clisp.org>
77124
77125         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77126         as well.
77127
77128 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         Sync from coreutils.
77131
77132         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77133
77134         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77135         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77136
77137 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * modules/restrict: Remove; no longer needed now that we assume
77140         Autoconf 2.59 or later.
77141         * MODULES.html.sh: Remove 'restrict'.
77142         * modules/argp (Depends-on): Remove 'restrict'.
77143         * modules/base64 (Depends-on): Likewise.
77144         * modules/gc (Depends-on): Likewise.
77145         * modules/getaddrinfo (Depends-on): Likewise.
77146         * modules/glob (Depends-on): Likewise.
77147         * modules/inet_ntop (Depends-on): Likewise.
77148         * modules/inet_pton (Depends-on): Likewise.
77149         * modules/memxor (Depends-on): Likewise.
77150         * modules/regex (Depends-on): Likewise.
77151         * modules/strtok_r (Depends-on): Likewise.
77152         * modules/time_r (Depends-on): Likewise.
77153
77154 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77157         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77158         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77159         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77160         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77161         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77162         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77163         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77164
77165         Merge from coreutils.
77166         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77167         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77168         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77169         * m4/time_r.m4 (gl_TIME_R): Likewise.
77170
77171 2006-08-09  Karl Berry  <karl@gnu.org>
77172
77173         * config/srclist.txt: no more gettext-tools, per Bruno.
77174
77175 2006-08-08  Eric Blake  <ebb9@byu.net>
77176
77177         * modules/verror: New module.
77178         * MODULES.html.sh: Document it.
77179
77180 2006-08-08  Eric Blake  <ebb9@byu.net>
77181
77182         * lib/verror.h, lib/verror.c: New files.
77183
77184 2006-08-08  Eric Blake  <ebb9@byu.net>
77185
77186         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77187         verror_at_line output complies with GNU Coding Standards even when
77188         file is NULL.
77189
77190 2006-08-07  Bruno Haible  <bruno@clisp.org>
77191
77192         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77193         versions of AIX.
77194         Reported by Ralf Wildenhues.
77195
77196 2006-08-07  Bruno Haible  <bruno@clisp.org>
77197
77198         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77199         in an AC_DEFUN. Needed so that the autoconf snippets can use
77200         AC_REQUIRE.
77201
77202 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77203
77204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77205         Initialize pkgdata_DATA.
77206         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77207         overriding it.
77208
77209 2006-08-06  Eric Blake  <ebb9@byu.net>
77210
77211         * lib/error.h: Fold in some upstream changes from glibc.
77212         * lib/error.c: Likewise.
77213
77214 2006-08-04  Bruno Haible  <bruno@clisp.org>
77215
77216         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77217         Make the mostlyclean-local rule depend on mostlyclean-generic.
77218         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77219
77220 2006-07-31  Bruno Haible  <bruno@clisp.org>
77221
77222         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77223         <stdlib.h>, <string.h>.
77224
77225 2006-07-30  Bruno Haible  <bruno@clisp.org>
77226
77227         * modules/readlink (License): Change to LGPL.
77228
77229 2006-07-30  Bruno Haible  <bruno@clisp.org>
77230
77231         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77232         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77233         set PKGDATADIR to point to it.
77234
77235 2006-07-30  Bruno Haible  <bruno@clisp.org>
77236
77237         * modules/csharpexec (configure.ac): Comment out macro invocation.
77238         * modules/javaexec (configure.ac): Likewise.
77239         * modules/javacomp-script (configure.ac): Likewise.
77240
77241         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77242
77243 2006-07-30  Bruno Haible  <bruno@clisp.org>
77244
77245         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77246         linked-list.
77247
77248 2006-07-30  Bruno Haible  <bruno@clisp.org>
77249
77250         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77251
77252 2006-07-30  Bruno Haible  <bruno@clisp.org>
77253
77254         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77255         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77256         get removed.
77257
77258 2006-07-29  Bruno Haible  <bruno@clisp.org>
77259
77260         Make it possible for gnulib-tool to work with locally modified or
77261         augmented gnulib repositories.
77262         * gnulib-tool (func_usage): Document --local-dir option.
77263         (local_gnulib_dir): New variable.
77264         Handle --local-dir option.
77265         (func_lookup_file): New function.
77266         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77267         (func_get_description, func_get_filelist, func_get_description,
77268         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77269         func_get_automake_snippet, func_get_include_directive,
77270         func_get_license, func_get_maintainer): Use func_lookup_file.
77271         (func_import, func_create_testdir): Use func_lookup_file.
77272
77273 2006-07-29  Bruno Haible  <bruno@clisp.org>
77274
77275         * modules/setenv (Depends-on): Add unistd.
77276
77277 2006-07-29  Bruno Haible  <bruno@clisp.org>
77278
77279         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77280
77281 2006-07-29  Bruno Haible  <bruno@clisp.org>
77282
77283         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77284
77285 2006-07-29  Bruno Haible  <bruno@clisp.org>
77286
77287         * gnulib-tool (import, update): If there is no Makefile.am, look at
77288         aclocal.m4, instead of bailing out.
77289
77290 2006-07-29  Bruno Haible  <bruno@clisp.org>
77291
77292         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77293         Categorize the options by when they are useful.
77294
77295 2006-07-29  Bruno Haible  <bruno@clisp.org>
77296
77297         * gnulib-tool (func_usage): Document option --no-libtool.
77298         Handle option --no-libtool.
77299         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77300         for changed semantics of $libtool variable.
77301         (func_import): Likewise. If libtool is not used, show this through
77302         an option --no-libtool.
77303         (func_create_testdir): Update.
77304
77305 2006-07-29  Bruno Haible  <bruno@clisp.org>
77306
77307         * gnulib-tool (func_import): Extend error message about missing
77308         --doc-base.
77309
77310 2006-07-29  Bruno Haible  <bruno@clisp.org>
77311
77312         * gnulib-tool (func_import): Don't create the $docbase directory if
77313         there is no file to store there.
77314
77315 2006-07-29  Bruno Haible  <bruno@clisp.org>
77316
77317         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77318         relevant, look for configure.ac there, not in the current directory.
77319         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77320
77321 2006-07-29  Bruno Haible  <bruno@clisp.org>
77322
77323         * gnulib-tool (SORT): New variable.
77324         (func_usage): Undocument --assume-autoconf option.
77325         Remove --assume-autoconf option handling.
77326         (autoconf_minversion): Determine from the contents of configure.ac.
77327         (func_import): Remove autoconf_minversion handling.
77328         Suggested by Eric Blake.
77329
77330 2006-07-29  Bruno Haible  <bruno@clisp.org>
77331
77332         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77333
77334 2006-07-29  Bruno Haible  <bruno@clisp.org>
77335
77336         * config/srclist.txt (*setenv.[ch]): Remove rules.
77337
77338 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77339
77340         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77341
77342 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77343
77344         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77345         arpa/inet.h.
77346
77347 2006-07-28  Simon Josefsson  <jas@extundo.com>
77348
77349         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77350         * modules/inet_pton (Depends-on): Likewise.
77351
77352 2006-07-28  Simon Josefsson  <jas@extundo.com>
77353
77354         * m4/netinet_in_h.m4: New file.
77355
77356 2006-07-28  Simon Josefsson  <jas@extundo.com>
77357
77358         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77359         #include's.
77360
77361 2006-07-28  Simon Josefsson  <jas@extundo.com>
77362
77363         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77364         #include's.
77365
77366 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77369         setgid on directories only if they set these bits.
77370         * lib/modechange.h: Remove obsolete comment about masks.
77371
77372 2006-07-28  Eric Blake  <ebb9@byu.net>
77373
77374         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77375         macro expansion.
77376
77377 2006-07-28  Bruno Haible  <bruno@clisp.org>
77378
77379         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77380
77381 2006-07-28  Bruno Haible  <bruno@clisp.org>
77382
77383         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77384
77385 2006-07-28  Bruno Haible  <bruno@clisp.org>
77386
77387         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77388         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77389         Define fallbacks.
77390         Avoids link error on FreeBSD 4.x.
77391         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77392
77393         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77394         encoding.
77395         * lib/mbswidth.c (iswcntrl): Likewise.
77396
77397 2006-07-27  Bruno Haible  <bruno@clisp.org>
77398
77399         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77400         test.
77401
77402 2006-07-27  Bruno Haible  <bruno@clisp.org>
77403
77404         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77405         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77406         defined.
77407
77408 2006-07-26  Eric Blake  <ebb9@byu.net>
77409
77410         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77411
77412 2006-07-26  Eric Blake  <ebb9@byu.net>
77413
77414         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77415         like mingw that lack mkstemp.
77416         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77417         avoid compilation warning on mingw.
77418
77419 2006-07-26  Bruno Haible  <bruno@clisp.org>
77420
77421         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77422         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77423         INT_FAST*_MIN, INTPTR_MIN.
77424
77425 2006-07-25  Bruno Haible  <bruno@clisp.org>
77426
77427         * modules/version-etc (Depends-on): Add stdarg.
77428
77429 2006-07-25  Bruno Haible  <bruno@clisp.org>
77430
77431         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77432         complex commands.
77433
77434 2006-07-25  Bruno Haible  <bruno@clisp.org>
77435
77436         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77437         defined in <stdarg.h> or config.h.
77438
77439 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77442         (gl_STDIO_SAFER): Remove.
77443
77444 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * MODULES.html.sh (File stream based Input/Output):
77447         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77448         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77449         * modules/fopen-safer, modules/tmpfile-safer: New files.
77450         * modules/stdio-safer: Remove.
77451
77452 2006-07-24  Bruno Haible  <bruno@clisp.org>
77453
77454         * modules/tmpdir: New file.
77455         * MODULES.html.sh (File system functions): Add it.
77456
77457 2006-07-24  Bruno Haible  <bruno@clisp.org>
77458
77459         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77460         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77461
77462 2006-07-24  Bruno Haible  <bruno@clisp.org>
77463
77464         * modules/clean-temp: New file.
77465
77466 2006-07-24  Bruno Haible  <bruno@clisp.org>
77467
77468         * m4/tmpdir.m4: New file, from GNU gettext.
77469
77470 2006-07-24  Bruno Haible  <bruno@clisp.org>
77471
77472         * lib/tmpdir.h: New file, from GNU gettext.
77473         * lib/tmpdir.c: New file, from GNU gettext.
77474
77475 2006-07-24  Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/clean-temp.h: New file, from GNU gettext.
77478         * lib/clean-temp.c: New file, from GNU gettext.
77479
77480 2006-07-23  Eric Blake  <ebb9@byu.net>
77481
77482         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77483         (Depends-on): Add binary-io.
77484
77485 2006-07-23  Eric Blake  <ebb9@byu.net>
77486
77487         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77488
77489 2006-07-23  Eric Blake  <ebb9@byu.net>
77490
77491         * lib/tmpfile-safer.c: New file.
77492         * lib/stdio-safer.h (fopen_safer): Add prototype.
77493         * lib/stdio--.h (tmpfile): Make safer.
77494
77495 2006-07-23  Bruno Haible  <bruno@clisp.org>
77496
77497         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77498         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77499         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77500         gl_linked_remove_at): Use it.
77501
77502 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77503         and Simon Josefsson <jas@extundo.com>
77504
77505         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77506
77507         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77508
77509 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * modules/close-stream: New file.
77512         * modules/closeout (Description): Make it clear that it exits
77513         with a diagnostic on error.
77514         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77515         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77516
77517 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * m4/close-stream.m4: New file.
77520
77521 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * lib/close-stream.c, lib/close-stream.h: New files.
77524
77525 2006-07-22  Bruno Haible  <bruno@clisp.org>
77526
77527         Merge from GNU gettext 0.15.
77528
77529         2006-05-01  Bruno Haible  <bruno@clisp.org>
77530
77531                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77532
77533         2006-07-22  Bruno Haible  <bruno@clisp.org>
77534
77535                 * modules/javaversion: New file.
77536                 * MODULES.html.sh (Java): Add javaversion.
77537
77538         2006-03-12  Bruno Haible  <bruno@clisp.org>
77539
77540                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77541
77542         2005-12-04  Bruno Haible  <bruno@clisp.org>
77543
77544                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77545                 (untested).
77546
77547         2006-06-21  Bruno Haible  <bruno@clisp.org>
77548
77549                 Avoid warnings from recent versions of mcs.
77550                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77551                 -o, -L, -r any more. Use options documented since mcs-1.0
77552                 instead. Similarly for -g.
77553
77554         2005-12-04  Bruno Haible  <bruno@clisp.org>
77555
77556                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77557                 .resources, not .resource.
77558
77559         2005-07-09  Bruno Haible  <bruno@clisp.org>
77560
77561                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77562                 add a .dll suffix.
77563                 Reported by Mark Junker <mjscod@gmx.de>.
77564
77565         2006-07-22  Bruno Haible  <bruno@clisp.org>
77566
77567                 * modules/gettext: Upgrade to gettext-0.15.
77568                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77569                 m4/visibility.m4.
77570                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77571
77572 2006-07-22  Bruno Haible  <bruno@clisp.org>
77573
77574         Merge from GNU gettext 0.15.
77575
77576         2006-03-25  Bruno Haible  <bruno@clisp.org>
77577
77578                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77579
77580         2006-07-21  Bruno Haible  <bruno@clisp.org>
77581
77582                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77583                 "1.1".
77584
77585         2006-05-09  Bruno Haible  <bruno@clisp.org>
77586
77587                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77588                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77589                 for the conftestver execution.
77590
77591         2006-05-01  Bruno Haible  <bruno@clisp.org>
77592
77593                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77594                 optional target-version argument. Verify that the compiler
77595                 groks source of the specified source-version, or add -source
77596                 option as necessary. Verify that the compiler produces
77597                 bytecode in the specified target-version, or add -target and
77598                 -source options as necessary. Make the result of the test
77599                 available as variable CONF_JAVAC. Also log error output in
77600                 config.log.
77601
77602         2006-03-11  Bruno Haible  <bruno@clisp.org>
77603
77604                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77605
77606         2006-05-09  Bruno Haible  <bruno@clisp.org>
77607
77608                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77609                 CLASSPATH_SEPARATOR to a semicolon.
77610
77611         2006-03-12  Bruno Haible  <bruno@clisp.org>
77612
77613                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77614                 available as variable CONF_JAVA, for subsequent autoconf
77615                 tests. Also log error output in config.log.
77616
77617         2006-07-19  Bruno Haible  <bruno@clisp.org>
77618
77619                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77620                 that getline works on glibc2 systems. Needed to avoid trouble
77621                 in relocatable.c.
77622                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77623
77624         2005-12-04  Bruno Haible  <bruno@clisp.org>
77625
77626                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77627                 launcher (untested).
77628
77629         2005-12-04  Bruno Haible  <bruno@clisp.org>
77630
77631                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77632
77633         2006-07-22  Bruno Haible  <bruno@clisp.org>
77634
77635                 * gettext.m4: Update from GNU gettext-0.15.
77636                 * nls.m4: Likewise.
77637                 * po.m4: Likewise.
77638                 * inttypes-pri.m4: Likewise.
77639                 * inttypes-h.m4: Renamed from inttypes.m4.
77640                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77641
77642 2006-07-22  Bruno Haible  <bruno@clisp.org>
77643
77644         Merge from GNU gettext 0.15.
77645
77646         2005-07-05  Bruno Haible  <bruno@clisp.org>
77647
77648                 * printf-args.c (printf_fetchargs): Work around broken
77649                 definition of wint_t on mingw.
77650
77651         2005-02-12  Bruno Haible  <bruno@clisp.org>
77652
77653                 * xallocsa.h: Add extern "C" for C++.
77654
77655         2006-05-17  Bruno Haible  <bruno@clisp.org>
77656
77657                 Cygwin portability.
77658                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77659
77660         2006-04-30  Bruno Haible  <bruno@clisp.org>
77661
77662                 * progreloc.c: Include <mach-o/dyld.h> if available.
77663                 (find_executable): Use _NSGetExecutablePath when possible.
77664
77665         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77666
77667                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77668                 function.
77669
77670         2005-12-29  Bruno Haible  <bruno@clisp.org>
77671
77672                 * progreloc.c (set_program_name_and_installdir): Fix
77673                 compilation error.
77674
77675         2005-12-04  Bruno Haible  <bruno@clisp.org>
77676
77677                 Cygwin portability.
77678                 * progreloc.c: Include <windows.h> also on Cygwin.
77679                 (find_executable): Add support for Cygwin.
77680                 (set_program_name_and_installdir): Handle also platforms with
77681                 nonempty EXEEXT.
77682
77683         2006-07-11  Bruno Haible  <bruno@clisp.org>
77684
77685                 * javacomp.c: Fix a comment.
77686                 Reported by Jim Meyering.
77687
77688         2006-04-30  Bruno Haible  <bruno@clisp.org>
77689
77690                 * javacomp.h (compile_java_class): Add source_version,
77691                 target_version arguments.
77692                 * javacomp.c: Rewritten to choose only a compiler that
77693                 respects the specified source_version and target_version.
77694
77695         2006-06-27  Bruno Haible  <bruno@clisp.org>
77696
77697                 Assume correct S_ISDIR macro.
77698                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77699
77700         2006-07-22  Bruno Haible  <bruno@clisp.org>
77701
77702                 * javaversion.h: New file, from GNU gettext.
77703                 * javaversion.c: New file, from GNU gettext.
77704                 * javaversion.java: New file, from GNU gettext.
77705                 * javaversion.class: New file, from GNU gettext.
77706
77707         2006-05-17  Bruno Haible  <bruno@clisp.org>
77708
77709                 Cygwin portability.
77710                 * javaexec.c (execute_java_class): Test for jview program
77711                 also on Cygwin.
77712
77713         2006-04-09  Bruno Haible  <bruno@clisp.org>
77714
77715                 * fatal-signal.c: Don't include string.h.
77716                 (at_fatal_signal): Use a copying loop instead of memcpy.
77717
77718         2005-12-04  Bruno Haible  <bruno@clisp.org>
77719
77720                 * csharpexec.c: Add support for 'clix' launcher (untested).
77721                 (execute_csharp_using_sscli): New function.
77722                 (execute_csharp_program): Call it.
77723
77724         2006-06-21  Bruno Haible  <bruno@clisp.org>
77725
77726                 Avoid warnings from recent versions of mcs.
77727                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77728                 -o, -L, -r any more. Use options documented since mcs-1.0
77729                 instead. Similarly for -g.
77730
77731         2005-07-09  Bruno Haible  <bruno@clisp.org>
77732
77733                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77734                 add a .dll suffix.
77735                 Reported by Mark Junker <mjscod@gmx.de>.
77736
77737         2006-06-17  Bruno Haible  <bruno@clisp.org>
77738
77739                 * config.charset: Update for NetBSD 3.0.
77740
77741         2006-05-17  Bruno Haible  <bruno@clisp.org>
77742
77743                 Cygwin portability.
77744                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77745
77746         2006-05-16  Bruno Haible  <bruno@clisp.org>
77747
77748                 * localcharset.c [CYGWIN]: Include <windows.h>.
77749                 (get_charset_aliases): For Cygwin, return the same CPxxx
77750                 aliases list as under WIN32.
77751                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77752                 the environment variables. Fall back to GetACP().
77753
77754         2006-04-05  Bruno Haible  <bruno@clisp.org>
77755
77756                 * config.charset: Update Juan Manuel Guerrero's address.
77757
77758         2005-02-12  Bruno Haible  <bruno@clisp.org>
77759
77760                 * allocsa.h: Add extern "C" for C++.
77761
77762         2005-02-10  Bruno Haible  <bruno@clisp.org>
77763
77764                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77765                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77766
77767         2006-07-22  Bruno Haible  <bruno@clisp.org>
77768
77769                 * gettext.h: Update to GNU gettext-0.15.
77770
77771 2006-07-22  Bruno Haible  <bruno@clisp.org>
77772
77773         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77774         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77775         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77776
77777 2006-07-21  Eric Blake  <ebb9@byu.net>
77778
77779         * modules/stdlib-safer: New file.
77780         * MODULES.html.sh (File stream based Input/Output): Add
77781         stdlib-safer.
77782
77783 2006-07-21  Eric Blake  <ebb9@byu.net>
77784
77785         * lib/stdlib-safer.h: New file from coreutils, required by
77786         stdlib--.h.
77787
77788 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77791
77792 2006-07-20  Bruno Haible  <bruno@clisp.org>
77793
77794         * gnulib-tool: Recognize new option --assume-autoconf.
77795         (autoconf_minversion): New variable.
77796         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77797
77798 2006-07-20  Bruno Haible  <bruno@clisp.org>
77799
77800         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77801
77802 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77803
77804         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77805         Reindent and repaginate.
77806
77807 2006-07-19  Derek Price  <derek@ximbiot.com>
77808
77809         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77810         Correct grammar.
77811
77812 2006-07-17  Bruno Haible  <bruno@clisp.org>
77813
77814         * modules/list: New file.
77815         * modules/array-list: New file.
77816         * modules/carray-list, modules/carray-list-tests: New files.
77817         * modules/linked-list, modules/linked-list-tests: New files.
77818         * modules/avltree-list, modules/avltree-list-tests: New files.
77819         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77820         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77821         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77822         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77823         * modules/oset: New file.
77824         * modules/array-oset: New file.
77825         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77826         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77827         * tests/test-carray_list.c: New file.
77828         * tests/test-linked_list.c: New file.
77829         * tests/test-avltree_list.c: New file.
77830         * tests/test-rbtree_list.c: New file.
77831         * tests/test-linkedhash_list.c: New file.
77832         * tests/test-avltreehash_list.c: New file.
77833         * tests/test-rbtreehash_list.c: New file.
77834         * tests/test-avltree_oset.c: New file.
77835         * tests/test-rbtree_oset.c: New file.
77836         * MODULES.html.sh (Container data structures): New section.
77837
77838 2006-07-17  Bruno Haible  <bruno@clisp.org>
77839
77840         * m4/gl_list.m4: New file.
77841
77842 2006-07-17  Bruno Haible  <bruno@clisp.org>
77843
77844         * lib/gl_list.h: New file.
77845         * lib/gl_list.c: New file.
77846         * lib/gl_array_list.h: New file.
77847         * lib/gl_array_list.c: New file.
77848         * lib/gl_carray_list.h: New file.
77849         * lib/gl_carray_list.c: New file.
77850         * lib/gl_linked_list.h: New file.
77851         * lib/gl_linked_list.c: New file.
77852         * lib/gl_anylinked_list1.h: New file.
77853         * lib/gl_anylinked_list2.h: New file.
77854         * lib/gl_avltree_list.h: New file.
77855         * lib/gl_avltree_list.c: New file.
77856         * lib/gl_anyavltree_list1.h: New file.
77857         * lib/gl_anyavltree_list2.h: New file.
77858         * lib/gl_rbtree_list.h: New file.
77859         * lib/gl_rbtree_list.c: New file.
77860         * lib/gl_anyrbtree_list1.h: New file.
77861         * lib/gl_anyrbtree_list2.h: New file.
77862         * lib/gl_anytree_list1.h: New file.
77863         * lib/gl_anytree_list2.h: New file.
77864         * lib/gl_linkedhash_list.h: New file.
77865         * lib/gl_linkedhash_list.c: New file.
77866         * lib/gl_anyhash_list1.h: New file.
77867         * lib/gl_anyhash_list2.h: New file.
77868         * lib/gl_avltreehash_list.h: New file.
77869         * lib/gl_avltreehash_list.c: New file.
77870         * lib/gl_rbtreehash_list.h: New file.
77871         * lib/gl_rbtreehash_list.c: New file.
77872         * lib/gl_anytreehash_list1.h: New file.
77873         * lib/gl_anytreehash_list2.h: New file.
77874
77875         * lib/gl_oset.h: New file.
77876         * lib/gl_oset.c: New file.
77877         * lib/gl_array_oset.h: New file.
77878         * lib/gl_array_oset.c: New file.
77879         * lib/gl_avltree_oset.h: New file.
77880         * lib/gl_avltree_oset.c: New file.
77881         * lib/gl_rbtree_oset.h: New file.
77882         * lib/gl_rbtree_oset.c: New file.
77883         * lib/gl_anytree_oset.h: New file.
77884
77885 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * m4/mkancesdirs.m4: New file.
77888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77889         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77890         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77891         it.
77892
77893 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77894
77895         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77896         * lib/mkancesdirs.h: New files.
77897         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77898         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77899         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77900         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77901         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77902         callers changed.  Revamp internals significantly, by not
77903         attempting to create directories that are temporarily more
77904         permissive than the final results.  Do not attempt to use
77905         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77906         This removes some race conditions, fixes some bugs, and simplifies
77907         things.  Use new dirchownmod function to do owner and mode changes.
77908         * lib/mkdir-p.h: Likewise.
77909         * lib/modechange.c (octal_to_mode): New function.
77910         (struct mode_change): New member mentioned.
77911         (make_node_op_equals): New arg mentioned.  All callers changed.
77912         (mode_compile): Keep track of which mode bits the user has explicitly
77913         mentioned.
77914         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77915         New arg PMODE_BITS, to keep track of which mode bits the user
77916         mentioned; it treats S_ISUID and S_ISGID speciall.
77917         All callers changed.
77918         * lib/modechange.h: Likewise.
77919
77920 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77921
77922         * MODULES.html.sh: Add mkancestors.
77923         * modules/mkancesdirs: New module.
77924         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77925         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77926         The chdir-safer and afs files are now orphans; I'll remove them
77927         unless someone speaks up.
77928         Add lib/dirchownmod.c, lib/dirchownmod.h.
77929         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77930         Add lchown, mkancesdirs.
77931         (Maintainer): Add self.
77932
77933 2006-07-15  Karl Berry  <karl@gnu.org>
77934
77935         * gnulib-tool: help message wording/arrangement.
77936
77937 2006-07-14  Simon Josefsson  <jas@extundo.com>
77938
77939         * doc/gnulib.texi (Libtool and Windows): New section.
77940
77941 2006-07-12  Simon Josefsson  <jas@extundo.com>
77942
77943         * modules/gendocs (License): Fix license, approved by Karl.
77944
77945 2006-07-12  Eric Blake  <ebb9@byu.net>
77946
77947         * MODULES.html.sh: Add gendocs.
77948
77949 2006-07-11  Eric Blake  <ebb9@byu.net>
77950
77951         * modules/fdl: New module, to install doc/fdl.texi.
77952         * MODULES.html.sh: Add new section for documentation modules.
77953         * gnulib-tool: Avoid space-tab.
77954         (--doc-base): New option, to manage files from doc.
77955
77956 2006-07-11  Eric Blake  <ebb9@byu.net>
77957
77958         * m4/absolute-header.m4: Fix comments to match recent change.
77959
77960 2006-07-11  Eric Blake  <ebb9@byu.net>
77961
77962         * gnulib-tool: List --doc-base before --tests-base.
77963
77964 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77965
77966         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77967
77968 2006-07-11  Bruno Haible  <bruno@clisp.org>
77969
77970         * README: Mention where to put documentation.
77971
77972 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77973
77974         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77975
77976 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77979         to stdint.m4.
77980
77981 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77982
77983         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77984         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77985         "no/such/file/stdint.h" when there is no such file, so that
77986         the resulting C code can be parsed by dodgy compilers.
77987         Problems reported by Bob Proulx.
77988
77989 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77990
77991         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77992         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77993         macros into the GNU _D_EXACT_NAMLEN.
77994         * lib/savedir.c:  Likewise.
77995         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77996
77997 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77998         and Paul Eggert  <eggert@cs.ucla.edu>
77999
78000         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78001         * m4/savedir.m4:
78002         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78003         macros into the GNU _D_EXACT_NAMLEN.
78004
78005 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78006
78007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78008         around the absolute name, to work around a problem with the HP-UX
78009         11.23 native C compiler, reported by Bob Proulx.
78010
78011 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78012
78013         * doc/maintain.texi, make-stds.texi: Sync from
78014         <http://savannah.gnu.org/projects/gnustandards>.
78015
78016 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78019
78020 2006-07-09  Jim Meyering  <jim@meyering.net>
78021
78022         * m4/glob.m4: Remove a doubled word in a comment.
78023
78024 2006-07-09  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/argp-pv.c: Remove a doubled word in a comment.
78027         * lib/check-version.c (check_version): Likewise.
78028         * lib/javacomp.c (compile_java_class): Likewise.
78029
78030 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78033         for the benefit of people using Autoconf 2.60.  If you want to
78034         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78035         (or m4/onceonly.m4, if pre-2.57) manually.
78036
78037 2006-07-08  Jim Meyering  <jim@meyering.net>
78038
78039         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78040         comment.
78041         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78042         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78043         comment.
78044
78045 2006-07-08  Jim Meyering  <jim@meyering.net>
78046
78047         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78048
78049 2006-07-07  Simon Josefsson  <jas@extundo.com>
78050
78051         * tests/test-crc.c: Change expected crc value, the test vector
78052         were probably computed using the old broken crc.c?
78053
78054 2006-07-06  Simon Josefsson  <jas@extundo.com>
78055
78056         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78057         now the canonical place for the M4 file).
78058
78059         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78060         from the sys_socket dependency now.
78061
78062         * modules/inet_pton (Files): Ditto.
78063
78064         * modules/inet_ntop (Files): Ditto.
78065
78066 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78067
78068         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78069         not gl_PREREQ_GETUSERSHELL.
78070
78071 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78072
78073         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78074         with only one argument, for Autoconf 2.60.
78075         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78076         expand to nothing, so add a shell command to avoid syntax error.
78077         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78078
78079 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78080
78081         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78082
78083 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78084
78085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78086         no longer needed.  Check for isblank decl.
78087         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78088         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78089         of existence.
78090
78091 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78092
78093         * lib/getloadavg.c: Use __VMS, not VMS.
78094         * lib/getopt.c: Likewise.
78095         * lib/getpagesize.h: Likewise.
78096         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78097         and probably does not work.
78098
78099 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         * lib/.cppi-disable: Add wcwidth.
78102         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78103         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78104         (ISGRAPH): Remove.  All uses changed to isgraph.
78105         (FOLD) [!defined _LIBC]: Remove special case.
78106         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78107         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78108         HAVE_ISBLANK.
78109         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78110         case.
78111
78112 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78113
78114         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78115         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78116         brackets.  Other minor changes to suppress some compiler
78117         warnings.
78118
78119 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78120         and Paul Eggert  <eggert@cs.ucla.edu>
78121
78122         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78123         of invoking obsolescent AC_HEADER_DIRENT macro.
78124         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78125         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78126         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78128         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78129         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78130         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78131         * m4/readdir.m4: Remove; no longer needed.
78132
78133 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78134         and Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78137         Don't worry about this obsolete case any more.
78138         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78139         directories.
78140         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78141         worry about this obsolete case any more.
78142         * lib/fts.c: Likewise.
78143         * lib/getcwd.c: Likewise.
78144         * lib/glob.h: Likewise.
78145         * lib/savedir.c: Likewise.
78146
78147 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78150         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78151         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78152         needed.
78153         All uses removed.
78154         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78155         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78156         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78157         needed.
78158         * m4/getdate.m4 (gl_GETDATE): Likewise.
78159         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78160         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78161         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78162         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78163         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78164         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78165         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78166         needed.
78167
78168 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * lib/memcasecmp.c: Include <limits.h>.
78171         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78172         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78173         Don't assume isdigit succeeds only on '0' through '9'.
78174
78175 2006-07-05  Eric Blake  <ebb9@byu.net>
78176
78177         * modules/getaddrinfo (Depends-on): Add snprintf.
78178
78179 2006-07-05  Eric Blake  <ebb9@byu.net>
78180
78181         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78182         to avoid 'header present but could not be compiled' on cygwin.
78183
78184 2006-07-05  Eric Blake  <ebb9@byu.net>
78185
78186         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78187         missing from netdb.h.
78188         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78189
78190 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78191
78192         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78193         no longer needed.
78194         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78195         * m4/getdate.m4 (gl_GETDATE): Likewise.
78196         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78197         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78198         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78199         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78200         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78201
78202 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78203
78204         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78205         All uses of is_space replaced by isspace.
78206         * lib/exit.h: Don't talk about STDC_HEADERS.
78207         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78208         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78209         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78210         replaced by isprint etc.
78211         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78212         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78213         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78214         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78215         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78216         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78217
78218 2006-07-05  Bruno Haible  <bruno@clisp.org>
78219
78220         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78221         the function exists, before testing against AIX.
78222         Reported by Martin Lambers <marlam@marlam.de>.
78223
78224 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78227         From Mark D. Baushke.
78228
78229 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78232         to the absolute name, not just one, to bypass Sun C 5.8's
78233         "warning: #include of /usr/include/... may be non-portable".
78234
78235 2006-07-04  Eric Blake  <ebb9@byu.net>
78236
78237         * modules/dirname-tests: New test module.
78238         * tests/test-dirname.c: New file, replacing dirname.c
78239         TEST_DIRNAME section that was recently deleted.
78240
78241 2006-07-04  Bruno Haible  <bruno@clisp.org>
78242
78243         Assume ANSI C header files and <ctype.h> functions.
78244         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78245         (mbsnwidth): Use isprint, iscntrl instead.
78246
78247 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         Merge from coreutils.
78250         * MODULES.html.sh: Add xstrtold.
78251         * modules/xstrtold: New file.
78252         * modules/cycle-check (Files): Add lib/same-inode.h.
78253         * modules/dirname (Files): Add m4/double-slash-root.m4.
78254         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78255         * modules/mkdir-p (Files): Add lib/same-inode.h.
78256         * modules/same (Files): Add lib/same-inode.h.
78257
78258 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78261         This is to keep the terminology clean; POSIX talks about
78262         "absolute pathnames", not "full pathnames", but the GNU
78263         Coding Standards say to use "path" for something else;
78264         so use "absolute" to keep both sides happy.
78265         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78266         Set gl_absolute_header, not gl_full_header_path.
78267         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78268         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78269         All uses changed.
78270
78271         Merge from coreutils.
78272
78273         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78276         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78277         want to require the building of c-strtod.o.
78278         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78279         needs -lm directly.
78280         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78281
78282         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78283
78284         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78285         --as-needed option if available.  Problem reported by Albert Chin in
78286         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78287         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78288         cc merely issues a bunch of annoying warnings for --as-needed
78289         (this problem was reported by Bob Proulx).  Also, try linking with
78290         -lm to detect a bug in binutils 2.16 (this problem was reported
78291         by Ralf Wildenhues).
78292
78293         2006-06-18  Jim Meyering  <jim@meyering.net>
78294
78295         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78296         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78297         macro.
78298         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78299         also check for glibc-2.4's abort-inducing bug.
78300
78301         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78302         Low-probability clean-up should be to use rmdir to get rid of
78303         the just-created directory, not unlink.
78304
78305         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78306         configure fail, and request a bug report to inform us about it.
78307         Add a comment that, barring reports to the contrary, in 2007 we'll
78308         assume ftruncate is universally available.
78309
78310         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78311
78312         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78313
78314         2006-03-12  Jim Meyering  <jim@meyering.net>
78315
78316         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78317         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78318         * m4/same.m4 (gl_SAME): Likewise.
78319         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78320
78321         2006-03-11  Eric Blake  <ebb9@byu.net>
78322
78323         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78324         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78325         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78326         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78327
78328 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78331         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78332         reported by Mark D. Baushke, one in
78333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78334
78335         Merge from coreutils.
78336
78337         * lib/.cppi-disable: Add stdint_.h.
78338         * lib/.cvsignore: Add stdint.h.
78339
78340         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78341
78342         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78343         both double and long double versions.
78344         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78345         * lib/xstrtold.c: New file.
78346         * lib/xstrtod.h (xstrtold): New decl.
78347
78348         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * lib/filemode.c (setst): Remove.
78351         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78352         (arguably) clearer, and the generated code is a bit smaller on my
78353         Debian GNU/Linux stable x86 host.
78354
78355         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78358         Assume that filemode.h includes sys/types.h and sys/stat.h.
78359         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78360         (ftypelet): Reorder to put common cases first, for efficiency.
78361         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78362         to do 'M'.
78363         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78364         of 10, for compatibility with FreeBSD.  All callers changed.
78365         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78366         types that can't be deduced solely from st_mode.  First arg is now a
78367         const pointer.
78368         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78369         (strmode): Renamed from mode_string.
78370         (filemodestring): New decl.
78371         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78372         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78373         needed.
78374         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78375
78376         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78379         fsusage.h now does that.  Include fsusage.h first, to test interface.
78380         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78381         at most one method (the old code could have generated decls that
78382         didn't conform to C89, not that this was ever exercised).
78383         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78384
78385         2006-03-19  Jim Meyering  <jim@meyering.net>
78386
78387         Work even in a chroot where d_ino values for entries in "/"
78388         don't match the stat.st_ino values for the same names.
78389         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78390         number, iterate through all entries again, using lstat instead.
78391         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78392         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78393
78394         * lib/getcwd.c (__getcwd): Clarify a comment.
78395         Use memcpy in place of a call to strcpy.
78396
78397         2006-03-12  Jim Meyering  <jim@meyering.net>
78398
78399         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78400         matches that of the current directory (which we're about to chdir ".."
78401         out of), then save the dev-ino of the parent, instead.
78402
78403         * lib/same-inode.h (SAME_INODE): New file/macro.
78404         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78405         Include "same-inode.h", instead.
78406         * lib/same.c: Likewise.
78407         * lib/cycle-check.h: Include "same-inode.h".
78408         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78409         * lib/cycle-check.c (SAME_INODE): Remove definition.
78410         * lib/root-dev-ino.h: Include "same-inode.h".
78411
78412         2006-03-11  Eric Blake  <ebb9@byu.net>
78413
78414         * lib/same.c (same_name): s/base_name/last_component/
78415         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78416         * lib/filenamecat.c (file_name_concat): Likewise.
78417
78418         2006-03-11  Eric Blake  <ebb9@byu.net>,
78419                     Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78422         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78423         drive prefix.
78424         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78425         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78426         (last_component): New method.
78427         * lib/dirname.c (dir_len): Determine when drive letters need a
78428         subsequent slash.  Preserve // when it is special.
78429         (dir_name): Don't append dot when drive letter is absolute.
78430         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78431         * lib/basename.c (base_name): New semantics - malloc the result.
78432         Preserve // when it is special.  Preserve relative files that look
78433         like drive letters.
78434         (base_len): Preserve // when it is special.
78435         (last_component): New method, similar to old base_name semantics.
78436         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78437         base_name.  Strip redundant slashes from ///.
78438
78439 2006-07-03  Jim Meyering  <jim@meyering.net>
78440
78441         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78442         macro is used before the first cycle_check call.
78443
78444 2006-07-03  Eric Blake  <ebb9@byu.net>
78445
78446         * modules/dirname (Depends-on): Add xstrndup.
78447
78448 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78451         test cases, so that config.log is a bit easier to follow.
78452
78453 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78456         both are 64 bits, since this seems to be the tradition, and this
78457         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78458         we ever run into a host that prefers long long to long in this
78459         case, we'll need another configure-time test.  Problem reported by
78460         Jim Meyering.
78461
78462 2006-07-02  Eric Blake  <ebb9@byu.net>
78463
78464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78465
78466 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * modules/inttypes (Depends-on): No longer depends on stdint.
78469         * modules/stdint (Description): Say more about assumptions.
78470         Say that the fast types might differ.  Say macros are used.
78471         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78472         (Makefile.am): Revise list of substituted symbols to match
78473         new stdint.m4.
78474         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78475         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78476         * tests/test-stdint.c (verify_same_types)
78477         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78478         the code conforms to C99/C89.
78479         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78480         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78481
78482 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78483
78484         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78485         but fix a bug, by requiring at least 64 bits.
78486         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78487         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78488         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78489         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78490
78491         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78492         changes.  Make 2.59 a prerequisite.  Check and substitute for
78493         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78494         inttypes.h.  Do not use special include files; just use the
78495         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78496         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78497         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78498         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78499         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78500         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78501         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78502         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78503         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78504         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78505         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78506         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78507         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78508         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78509         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78510         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78511         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78512         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78513         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78514         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78515         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78516         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78517         not check for things that C99 does not require, e.g., int8_t.  If
78518         a test isn't needed unless <stdint.h> isn't working, and is
78519         unlikely to be needed for any other reason, then don't do it
78520         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78521         size_t, since we assume C89 freestanding at least.  Do not check
78522         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78523         the right thing even if the types are not defined.  Instead use:
78524         (gl_STDINT_TYPE_PROPERTIES): New macro.
78525         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78526         testing whether <sys/types.h> clashes, as Autoconf does this for
78527         us now.  All uses removed.
78528         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78529         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78530         (gl_CHECK_TYPE_SAME):
78531         Remove; no longer needed.
78532         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78533         exists, since we'll return 0 anyway in that case.
78534         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78535
78536 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78537
78538         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78539         possible collision with system files.
78540         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78541         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78542         WCHAR_MIN and WCHAR_MAX in this case.
78543         (<stddef.h>): Do not include; no longer needed.
78544         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78545         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78546         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78547         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78548         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78549         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78550         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78551         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78552         !defined(__c99))]: Include in this case too, since it's harmless
78553         now.
78554         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78555         dangerous to do so.
78556         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78557         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78558         (_STDINT_MIN, _STDINT_MAX): New macros.
78559         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78560         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78561         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78562         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78563         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78564         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78565         macros, not typedefs; this simplifies things quite a bit.
78566         Use long int for all types narrower than int64_t.
78567         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78568         Define in terms of long long int or int64_t or long int,
78569         not int64_t or int32_t.  This saves some compile-time testing.
78570         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78571         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78572         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78573         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78574         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78575         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78576         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78577         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78578         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78579         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78580         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78581         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78582         undef any previous version and define our own version, for
78583         simplicity and consistency with the new macros for types.
78584         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78585         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78586         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78587         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78588         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78589         @WINT_T_SUFFIX@ to keep things simple here.
78590         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78591         Simplify by assuming typical 8/16/32/64 host, since we're
78592         already doing that elsewhere anyway.
78593         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78594         and assume long long int is 64 bits if available.  This
78595         speeds up 'configure'.
78596
78597 2006-07-01  Eric Blake  <ebb9@byu.net>
78598
78599         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78600         Reported by Andreas Buening.
78601
78602 2006-07-01  Eric Blake  <ebb9@byu.net>
78603
78604         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78605
78606 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78607
78608         * lib/getaddrinfo.c: fixed typo
78609
78610 2006-06-29  Jim Meyering  <jim@meyering.net>
78611
78612         * modules/strftime (Maintainer): Add my name, since with the
78613         FPRINTFTIME changes strftime.c has forked from glibc.
78614
78615 2006-06-29  Eric Blake  <ebb9@byu.net>
78616
78617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78618
78619 2006-06-29  Eric Blake  <ebb9@byu.net>
78620
78621         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78622
78623 2006-06-29  Eric Blake  <ebb9@byu.net>
78624
78625         * lib/stat_.h: New file.
78626
78627 2006-06-29  Eric Blake  <ebb9@byu.net>
78628
78629         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78630         unused static function.
78631
78632 2006-06-29  Eric Blake  <ebb9@byu.net>
78633
78634         * doc/functions.texi (Function Portability): Document missing lstat
78635         on mingw.
78636
78637 2006-06-29  Eric Blake  <ebb9@byu.net>
78638
78639         * MODULES.html.sh: Add sys_stat.
78640         * modules/sys_stat: New module.
78641         * modules/mkstemp (Depends-on): Add sys_stat.
78642
78643 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78644
78645         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78646
78647 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78648
78649         * m4/c-bs-a.m4: Removed.
78650
78651 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78652
78653         * lib/strftime.c: Assume strftime() exists.
78654
78655 2006-06-29  Derek Price  <derek@ximbiot.com>
78656
78657         * modules/c-bs-a: Removed - \a is C89.
78658         * MODULES.html.sh: Remove c-bs-a.
78659
78660 2006-06-29  Bruno Haible  <bruno@clisp.org>
78661
78662         * modules/wcwidth (License): Change to LGPL.
78663
78664 2006-06-28  Simon Josefsson  <jas@extundo.com>
78665
78666         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78667         on _WIN32.
78668
78669         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78670         getnameinfo.
78671
78672 2006-06-28  Simon Josefsson  <jas@extundo.com>
78673
78674         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78675
78676 2006-06-28  Simon Josefsson  <jas@extundo.com>
78677
78678         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78679         functions there.  It will succeed on Windows XP, but on Windows
78680         2000 and (presumably) earlier, it will fail, and use the internal
78681         re-implementation.
78682         (use_win32_p): New function.
78683         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78684         Support AI_NUMERICSERV to disable getservbyname.
78685         (getnameinfo): New function, only supports
78686         NI_NUMERICHOST|NI_NUMERICSERV for now.
78687
78688         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78689         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78690         getnameinfo.
78691
78692 2006-06-28  Eric Blake  <ebb9@byu.net>
78693
78694         * modules/wcwidth: New file.
78695         * modules/mbchar (Depends-on): Add wcwidth.
78696         * modules/mbswidth (Depends-on): Add wcwidth.
78697         * MODULES.html.sh: Add wcwidth.
78698
78699 2006-06-28  Eric Blake  <ebb9@byu.net>
78700
78701         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78703
78704 2006-06-28  Eric Blake  <ebb9@byu.net>
78705
78706         * lib/xvasprintf.h: Fix comments.
78707
78708 2006-06-28  Eric Blake  <ebb9@byu.net>
78709
78710         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78711         * lib/mbswidth.c (wcwidth): Move from here...
78712         * lib/wcwidth.h: ...to this new file.
78713
78714 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78715
78716         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78717
78718         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78719         it's obsolete.
78720         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78721
78722 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78723
78724         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78725         Autoconf 2.60 says this stuff was obsolete.
78726
78727 2006-06-28  Bruno Haible  <bruno@clisp.org>
78728
78729         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78730
78731 2006-06-28  Bruno Haible  <bruno@clisp.org>
78732
78733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78734         gt_TYPE_WCHAR_T.
78735
78736 2006-06-28  Bruno Haible  <bruno@clisp.org>
78737
78738         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78739         declaration for wcwidth.
78740         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78741
78742 2006-06-28  Bruno Haible  <bruno@clisp.org>
78743
78744         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78745         (mkdir): Define using _mkdir.
78746
78747 2006-06-28  Bruno Haible  <bruno@clisp.org>
78748
78749         * lib/getaddrinfo.h: Fix POSIX URL.
78750         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78751         _WIN32.
78752         (use_win32_p): Make static.
78753         (getaddrinfo): Reject service name if it is empty or does not consist
78754         solely of decimal digits, or if its value is > 65535.
78755         (getnameinfo): Remove useless casts.
78756
78757 2006-06-27  Simon Josefsson  <jas@extundo.com>
78758
78759         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78760         Eggert and Martin Lambers.
78761
78762 2006-06-27  Simon Josefsson  <jas@extundo.com>
78763
78764         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78765         Eggert and Martin Lambers.
78766
78767 2006-06-27  Bruno Haible  <bruno@clisp.org>
78768
78769         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78770         result to 0, not to empty.
78771         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78772
78773 2006-06-27  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78776
78777 2006-06-26  Simon Josefsson  <jas@extundo.com>
78778
78779         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78780         present.
78781
78782 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78785         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78787
78788 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78789
78790         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78791
78792 2006-06-26  Bruno Haible  <bruno@clisp.org>
78793
78794         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78795
78796 2006-06-26  Bruno Haible  <bruno@clisp.org>
78797
78798         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78799
78800 2006-06-26  Bruno Haible  <bruno@clisp.org>
78801
78802         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78803         SGI C compiler in pre-C99 mode.
78804         Suggested by Mark D. Baushke and Larry Jones.
78805
78806 2006-06-26  Bruno Haible  <bruno@clisp.org>
78807
78808         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78809         WCHAR_MAX.
78810         Reported by Mark D. Baushke and Larry Jones.
78811
78812 2006-06-26  Bruno Haible  <bruno@clisp.org>
78813
78814         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78815         in pre-C99 mode.
78816         Suggested by Mark D. Baushke and Larry Jones.
78817
78818 2006-06-23  Simon Josefsson  <jas@extundo.com>
78819             Bruno Haible  <bruno@clisp.org>
78820
78821         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78822         Emit mostlyclean-local rule.
78823         (func_emit_tests_Makefile_am): Likewise.
78824         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78825
78826 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78827
78828         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78829
78830 2006-06-23  Bruno Haible  <bruno@clisp.org>
78831
78832         * tests/test-stdint.c: Update to match ISO C 99 Technical
78833         Corrigendum 1.
78834
78835 2006-06-23  Bruno Haible  <bruno@clisp.org>
78836
78837         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78838
78839 2006-06-23  Bruno Haible  <bruno@clisp.org>
78840
78841         * lib/stdint_.h: Treat IRIX like OpenBSD.
78842
78843 2006-06-23  Bruno Haible  <bruno@clisp.org>
78844
78845         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78846         ISO C 99 Technical Corrigendum 1.
78847
78848 2006-06-22  Simon Josefsson  <jas@extundo.com>
78849
78850         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78851         MinGW.
78852
78853 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78856         needed.  Some compiler complained about some of them.  Problem reported
78857         by Larry Jones in
78858         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78859
78860 2006-06-21  Simon Josefsson  <jas@extundo.com>
78861
78862         * tests/test-getaddrinfo.c: New file.
78863
78864         * modules/getaddrinfo-tests: New file.
78865
78866         * MODULES.html.sh: Add inet_pton.
78867
78868         * modules/inet_pton: New file.
78869
78870 2006-06-21  Simon Josefsson  <jas@extundo.com>
78871
78872         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78873         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78874         of using the (limited) gnulib implementation on Windows XP.
78875
78876         * m4/inet_pton.m4: New file.
78877
78878 2006-06-21  Simon Josefsson  <jas@extundo.com>
78879
78880         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78881         variable.
78882
78883         * lib/socket_.h: Don't define WINVER.
78884
78885         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78886         slightly modified to work in gnulib.
78887
78888 2006-06-21  Simon Josefsson  <jas@extundo.com>
78889
78890         * doc/gnulib.texi (Windows sockets): Add.
78891
78892 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * lib/read-file.c (fread_file): Start with buffer allocation of
78895         0 bytes rather than 1 byte; this simplifies the code.
78896         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78897         code to free buffer and save/restore errno.
78898         (internal_read_file): Remove unused local.
78899
78900 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78903         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78904         Problem reported by Denis Excoffier in
78905         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78906
78907 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78908
78909         * modules/sys_socket, modules/socklen: Include sys/types since
78910         FreeBSD 4.x's sys/socket.h needs it.
78911
78912 2006-06-19  Simon Josefsson  <jas@extundo.com>
78913
78914         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78915
78916 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78919
78920 2006-06-19  Bruno Haible  <bruno@clisp.org>
78921
78922         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78923         and FULL_PATH_INTTYPES_H in angle brackets.
78924         Reported by Mark D. Baushke <mdb@gnu.org>.
78925
78926 2006-06-17  Eric Blake  <ebb9@byu.net>
78927
78928         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78929         errno.
78930
78931 2006-06-17  Bruno Haible  <bruno@clisp.org>
78932
78933         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78934         <sys/inttypes.h>.
78935
78936 2006-06-17  Bruno Haible  <bruno@clisp.org>
78937
78938         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78939         whether errno is declared. Assume <errno.h> declares errno.
78940
78941 2006-06-17  Bruno Haible  <bruno@clisp.org>
78942
78943         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78944
78945 2006-06-17  Bruno Haible  <bruno@clisp.org>
78946
78947         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78948         problem on Solaris 2.5.1.
78949
78950 2006-06-16  Eric Blake  <ebb9@byu.net>
78951
78952         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78953         * lib/unicodeio.c [!defined errno]: Likewise.
78954         * lib/strtol.c [!defined errno]: Likewise.
78955         * lib/strtod.c [!defined errno]: Likewise.
78956
78957 2006-06-15  Eric Blake  <ebb9@byu.net>
78958
78959         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78960
78961 2006-06-15  Eric Blake  <ebb9@byu.net>
78962
78963         * config/srclist.txt (ssize_t.m4): Lose sync.
78964
78965 2006-06-15  Bruno Haible  <bruno@clisp.org>
78966
78967         * modules/stdint (Files): Include m4/full-header-path.m4,
78968         m4/size_max.m4, m4/wchar_t.m4.
78969         (Makefile.am): Many more substitutions.
78970         * modules/stdint-tests: New file.
78971         * tests/test-stdint.c: New file.
78972
78973 2006-06-15  Bruno Haible  <bruno@clisp.org>
78974
78975         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78976         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78977         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78978         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78979         gl_CHECK_TYPE_SAME): New macros.
78980
78981 2006-06-15  Bruno Haible  <bruno@clisp.org>
78982
78983         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78984
78985 2006-06-15  Bruno Haible  <bruno@clisp.org>
78986
78987         * lib/stdint_.h: Rewritten to be fully auto-configured.
78988         Fixes bug on HP-UX/IA64.
78989
78990 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * lib/getdate.y (__attribute__): Don't define if already defined.
78993         Problem reported by Larry Jones.
78994         * lib/utimens.c (__attribute__): Likewise.
78995
78996 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78999         reported by Andreas Schwab.
79000
79001 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79002             Bruno Haible  <bruno@clisp.org>
79003
79004         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79005         check for the declaration of strnlen and a run test that exposes the
79006         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79007         rpl_strndup.
79008
79009 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79010             Bruno Haible  <bruno@clisp.org>
79011
79012         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79013
79014 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79015
79016         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79017         compile test, for Tru64 4.0D.
79018
79019 2006-05-28  Karl Berry  <karl@gnu.org>
79020
79021         * config/srclist.txt (printf-args.c): lose sync.
79022
79023 2006-05-26  Martin Lambers  <marlam@marlam.de>
79024
79025         * lib/getpass.c: Updates the test for the native W32 API, and adds
79026         missing includes, thus fixing compilation warnings.
79027
79028 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79029
79030         * lib/exclude.c (exclude_fnmatch): New function.
79031         (excluded_file_name): Call exclude_fnmatch.
79032         * lib/exclude.h (excluded_file_name): New prototype
79033
79034 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79035
79036         * lib/tempname.c (small_open, large_open): New macros.
79037         (__open, __open64) [!_LIBC]: Remove.
79038         (__gen_tempname): Use small_open and large_open instead of __open
79039         and __open64.  This fixes a portability bug on HP-UX 11.11i
79040         reported by Simon Wing-Tang in
79041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79042
79043 2006-05-24  Bruno Haible  <bruno@clisp.org>
79044
79045         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79046         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79047         Reported by Thorsten Maerz <torte@netztorte.de> via
79048         Aaron Stone <aaron@serendipity.cx>.
79049
79050 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79053         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79054         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79055         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79056         not really conditional on the cache.
79057         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79058
79059 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79060
79061         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79062         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79063         (my_usleep): Don't mishandle maximum value.
79064
79065 2006-05-19  Jim Meyering  <jim@meyering.net>
79066
79067         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79068
79069 2006-05-17  Bruno Haible  <bruno@clisp.org>
79070
79071         Cygwin portability.
79072         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79073
79074 2006-05-17  Bruno Haible  <bruno@clisp.org>
79075
79076         * lib/stdint_.h: Fix recognition of Cygwin.
79077
79078 2006-05-15  Bruno Haible  <bruno@clisp.org>
79079
79080         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79081         on libtool patch by Ralf Wildenhues.
79082
79083 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79086         test for C99 conformance; (bool) 0.5 is an integer constant
79087         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79088         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79089
79090 2006-05-11  Simon Josefsson  <jas@extundo.com>
79091
79092         * m4/xvasprintf.m4: Fix obvious typo.
79093
79094 2006-05-11  Jim Meyering  <jim@meyering.net>
79095
79096         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79097         James Lemley.
79098
79099 2006-05-10  Simon Josefsson  <jas@extundo.com>
79100
79101         * lib/md4.c: Typo fix, update copyright years.
79102         (K1, K2): Don't use L because it turn computations into 64-bit on
79103         64-bit platforms.
79104
79105 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79108         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79109         unwanted sign propagation, e.g., on hosts with 64-bit int.
79110         There still are some problems with reeelly weird theoretical hosts
79111         (e.g., 33-bit int) but it's not worth worrying about now.
79112         * lib/sha1.c (rol): Likewise.
79113         (K1, K2, K3, K4): Remove unnecessary L suffix.
79114
79115 2006-05-10  Bruno Haible  <bruno@clisp.org>
79116
79117         * lib/des.c: Cast to avoid warnings.
79118
79119 2006-05-09  Bruno Haible  <bruno@clisp.org>
79120
79121         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79122         (Depends-on): Depend also on xsize, stdarg.
79123         (configure.ac): Add gl_XVASPRINTF.
79124
79125 2006-05-09  Bruno Haible  <bruno@clisp.org>
79126
79127         * m4/xvasprintf.m4: New file.
79128
79129 2006-05-09  Bruno Haible  <bruno@clisp.org>
79130
79131         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79132         (EOVERFLOW): Define fallback value.
79133         (xstrcat): New function.
79134         (xvasprintf): Recognize the special case of a string concatenation.
79135
79136 2006-05-08  Eric Blake  <ebb9@byu.net>
79137
79138         * gnulib-tool (func_version): Base copyright year on CVS date.
79139         (func_emit_copyright_notice): New function.
79140         (func_emit_lib_Makefile_am): Use it.
79141         (func_emit_tests_Makefile_am): Likewise.
79142         (func_import): Likewise.
79143
79144 2006-05-08  Bruno Haible  <bruno@clisp.org>
79145
79146         * modules/stdarg: New file.
79147         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79148
79149 2006-05-08  Bruno Haible  <bruno@clisp.org>
79150
79151         * m4/stdarg.m4: New file, from GNU gettext.
79152
79153 2006-05-08  Bruno Haible  <bruno@clisp.org>
79154
79155         * config/srclist.txt (build-aux/config.rpath): different from latest
79156         release.
79157
79158 2006-05-08  Bruno Haible  <bruno@clisp.org>
79159
79160         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79161
79162 2006-05-05  Jim Meyering  <jim@meyering.net>
79163
79164         * m4/warning.m4: New file, derived from bison's file by the same name.
79165
79166 2006-05-03  Bruno Haible  <bruno@clisp.org>
79167
79168         * lib/stdint_.h: Shorter URL.
79169         * lib/inttypes.h: Likewise.
79170
79171 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79172
79173         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79174
79175 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79176
79177         * lib/verify.h: Document the internals better.  Most of this change
79178         was written by Bruno Haible.
79179
79180 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79181
79182         * doc/verify.texi: New file, partly based on a proposal by
79183         Bruno Haible.
79184
79185 2006-05-02  Bruno Haible  <bruno@clisp.org>
79186
79187         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79188         test from here...
79189         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79190
79191 2006-04-29  Bruno Haible  <bruno@clisp.org>
79192
79193         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79194         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79195
79196 2006-04-29  Bruno Haible  <bruno@clisp.org>
79197
79198         * gnulib-tool: Make --update option actually work.
79199
79200 2006-04-29  Bruno Haible  <bruno@clisp.org>
79201
79202         * doc/gcd.texi: New file.
79203         * doc/gnulib.texi: Include it.
79204
79205 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79206
79207         * lib/getdate.y (get_date): When adding relative date, start with the
79208         initial time, not with the result of the first mktime call.
79209
79210 2006-04-25  Bruno Haible  <bruno@clisp.org>
79211
79212         * gnulib-tool (func_import): Output the include directives in three
79213         blocks, sorted separately.
79214         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79215
79216 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79219         to define main with arguments, for C++.  Reported by Eric Blake.
79220         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79221         Prefer 'int main ()' to 'int main (void)', for C++.
79222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79223         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79224         for 'main', for C99 and C++.
79225
79226 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79229         Don't assume that exit status -1 is valid.
79230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79231         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79233         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79234         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79235         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79236         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79237         functions can be used without declaring them, or that you can
79238         exit with status -1.
79239         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79240
79241 2006-04-24  Karl Berry  <karl@gnu.org>
79242
79243         * config/srclist.txt (longdouble.m4): sync lost.
79244
79245 2006-04-24  Eric Blake  <ebb9@byu.net>
79246
79247         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79248
79249 2006-04-24  Bruno Haible  <bruno@clisp.org>
79250
79251         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79252         poll() implementation in AIX.
79253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79254
79255 2006-04-24  Bruno Haible  <bruno@clisp.org>
79256
79257         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79258         assigned exactly once.
79259
79260 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79261             Bruno Haible  <bruno@clisp.org>
79262
79263         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79264         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79265         for AM_CPPFLAGS.
79266
79267 2006-04-23  Bruno Haible  <bruno@clisp.org>
79268
79269         * modules/copy-file: Depend on unistd.
79270         * modules/execute: Likewise.
79271         * modules/fatal-signal: Likewise.
79272         * modules/findprog: Likewise.
79273         * modules/mkdtemp : Likewise.
79274         * modules/pipe: Likewise.
79275         * modules/wait-process: Likewise.
79276
79277 2006-04-23  Bruno Haible  <bruno@clisp.org>
79278
79279         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79280         condition was already detected.
79281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79282
79283 2006-04-23  Bruno Haible  <bruno@clisp.org>
79284
79285         * lib/copy-file.c: Include <unistd.h> unconditionally.
79286         * lib/execute.c: Likewise.
79287         * lib/fatal-signal.c: Likewise.
79288         * lib/findprog.c: Likewise.
79289         * lib/mkdtemp.c: Likewise.
79290         * lib/pipe.h: Likewise.
79291         * lib/pipe.c: Likewise.
79292         * lib/wait-process.h: Likewise.
79293
79294 2006-04-23  Bruno Haible  <bruno@clisp.org>
79295
79296         * gnulib-tool (func_usage): Fix --import description. Document
79297         --update.
79298         (func_import): Create temporary file in a temporary directory, if
79299         --dry-run is specified. Silence errors from 'grep' when there are no
79300         m4 files in $m4dir.
79301         (func_create_testdir): Silence errors from 'grep' when there are no
79302         m4 files in $m4dir.
79303         Reported by Karl Berry <karl@freefriends.org>.
79304
79305 2006-04-20  Bruno Haible  <bruno@clisp.org>
79306
79307         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79308         one argument, so that the code will be portable to Autoconf 2.60.
79309         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79311         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79312
79313 2006-04-19  Derek Price  <derek@ximbiot.com>
79314             Eric Blake  <ebb9@byu.net>
79315
79316         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79317         rather than "/full/path.h".  Update comment to match.  Shorten &
79318         generalize m4_translit call via AS_TR_CPP.
79319
79320 2006-04-19  Derek Price  <derek@ximbiot.com>
79321             Eric Blake  <ebb9@byu.net>
79322
79323         * lib/inttypes.h: Correct grammar in comment.
79324
79325 2006-04-18  Derek Price  <derek@ximbiot.com>
79326             Paul Eggert  <eggert@cs.ucla.edu>
79327
79328         * modules/inttypes: New file.
79329         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79330
79331 2006-04-18  Derek Price  <derek@ximbiot.com>
79332             Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79335         New files.
79336
79337 2006-04-18  Derek Price  <derek@ximbiot.com>
79338             Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * lib/inttypes.h: New file.
79341         * lib/strtoimax.c: Assume <inttypes.h>.
79342
79343 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79344
79345         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79346         isn't mounted.  Problem reported by Kir Kolyshkin.
79347
79348 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79351         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79352         Derek R. Price.
79353         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79354         implementation.
79355
79356 2006-04-12  Eric Blake  <ebb9@byu.net>
79357
79358         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79359         is now done automatically by the corresponding Autoconf macro.
79360
79361 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79362
79363         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79364         time_r.h.
79365
79366 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79367
79368         Merge regex changes from libc, removing some of our
79369         POSIX-conformance changes that were rejected and redoing them in a
79370         less-intrusive way.
79371
79372         * lib/regcomp.c (re_compile_internal, init_dfa):
79373         Length arg is now size_t, not Idx.  All uses changed.
79374         (peek_token): Forward decl now says internal_function.
79375         (__re_error_msgid, __re_error_msgid_idx):
79376         Now static rather than extern with attribute_hidden.
79377         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79378         For some reason libc prefers K&R style defns for external functions.
79379         (regerror) [!defined _LIBC]: Likewise.
79380         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79381         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79382         (build_range_exp, build_collating_symbol):
79383         Use K&R-style defn.
79384         (re_compile_fastmap): Use '\0' to memset, not 0.
79385         (utf8_sb_map): Make the calculations more obvious.
79386         (init_dfa, parse_bracket_exp, build_charclass_op):
79387         Call calloc and cast result, as glibc does.
79388         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79389         (build_range_exp, build_collating_symbol):
79390         Now internal functions.
79391
79392         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79393
79394         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79395         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79396         Don't depend on VMS; depend on __VMS instead, for POSIX
79397         namespace cleanness.
79398         (regoff_t): Define to ssize_t, not long int.
79399
79400         Remove the REG_ macros named below.  Instead, make the old names
79401         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79402         __USE_GNU_REGEX.
79403         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79404         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79405         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79406         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79407         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79408         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79409         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79410         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79411         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79412         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79413         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79414         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79415         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79416         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79417         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79418         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79419         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79420         (REG_NREGS):
79421         Remove.  All uses replaced by the old RE_* names.
79422         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79423         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79424         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79425         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79426         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79427         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79428         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79429         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79430         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79431         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79432         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79433         Don't bother having these macros be independent of each others'
79434         values, since they no longer exist in the POSIX name space.
79435
79436         Rename the following member names back to their old names,
79437         unless !__USE_GNU_REGEX.  All uses changed back.
79438         (buffer): Renamed from re_buffer.
79439         (allocated): Renamed from re_allocated.
79440         (used): Renamed from re_used.
79441         (syntax): Renamed from re_syntax.
79442         (fastmap): Renamed from re_fastmap.
79443         (translate): Renamed from re_translate.
79444         (can_be_null): Renamed from re_can_be_null.
79445         (regs_allocated): Renamed from re_regs_allocated.
79446         (fastmap_accurate): Renamed from re_fastmap_accurate.
79447         (no_sub): Renamed from re_no_sub.
79448         (not_bol): Renamed from re_not_bol.
79449         (not_eol): Renamed from re_not_eol.
79450         (newline_anchor): Renamed from re_newline_anchor.
79451         (num_regs): Renamed from rm_num_regs.
79452         (start): Renamed from rm_start.
79453         (end): Renamed from rm_end.
79454
79455         (free_state): Move up a bit.
79456
79457         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79458         #define to be empty.
79459         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79460         when that is what is intended.
79461         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79462         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79463         (MAX): New macro.
79464         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79465         All uses changed back to re_malloc, etc.  It's now the caller's
79466         responsibility to check for overflow; all callers changed.
79467         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79468         (re_x2nrealloc): Remove.
79469         (free_state): Remove decl.
79470
79471         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79472         (re_set_registers, re_exec):
79473         Use K&R-style defn.
79474
79475         2006-01-31  Roland McGrath  <roland@redhat.com>
79476
79477         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79478         Reported by Mike Frysinger <vapier@gentoo.org>.
79479
79480         2006-01-15  Andreas Jaeger  <aj@suse.de>
79481
79482         [BZ #1950]
79483         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79484         build_wcs_upper_buffer change.
79485         (build_wcs_upper_buffer): Change return type.
79486
79487         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79488
79489         * lib/regex_internal.h: Include <stdint.h> if available.
79490
79491         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79492
79493         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79494
79495         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79496
79497         * lib/regcomp.c: Adjust for changed secondary hash function.
79498
79499         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79500
79501         * lib/regex.h: Pretty printing.
79502         Clean up namespace a bit.
79503
79504         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79505
79506         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79507         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79508
79509         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79510                     Ulrich Drepper  <drepper@redhat.com>
79511
79512         [BZ #1302]
79513         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79514         changed.
79515         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79516
79517         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79518
79519         [BZ #281]
79520         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79521         * lib/regcomp.c: Remove unnecessary uses of
79522         unsigned RE_TRANSLATE_TYPE.
79523         * lib/regex_internal.h: Likewise.
79524         * lib/regex_internal.c: Likewise.
79525         * lib/regexec.c: Likewise.
79526         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79527
79528         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79529
79530         * lib/regexec.c (find_recover_state): Remove unnecessary
79531         initialization.
79532         (transit_state_bkref): Make DFA a const pointer.
79533         (get_subexp): Likewise.
79534         (check_arrival): Likewise.
79535         (update_cur_sifted_state): Likewise.
79536         (re_search_internal): Likewise.
79537         (prune_impossible_nodes): Likewise.
79538         (acquire_init_state_context): Likewise.
79539         (proceed_next_node): Likewise.
79540         (set_regs): Likewise.
79541         (free_fail_stack_return): Likewise.
79542         (check_arrival_expand_ecl): Mark DFA parameter as const.
79543         (check_arrival_expand_ecl_sub): Likewise.
79544         (check_subexp_limits): Likewise.
79545         (sub_epsilon_src_nodes):  Likewise.
79546         (add_epsilon_src_nodes):  Likewise.
79547         (merge_state_array): Likewise.
79548         (update_regs): Likewise.
79549         (build_trtable): Likewise.
79550         (sift_states_backward): Mark MCTX parameter as const.
79551         (build_sifted_states): Likewise.
79552         (update_cur_sifted_state): Likewise.
79553         (sift_states_mkref): Likewise.
79554         (check_arrival_expand_ecl): Mark eclosure as const.
79555         (check_dst_limits_calc_pos_1): Likewise.
79556         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79557         pointer.
79558
79559         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79560
79561         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79562         (transit_state_sb): Likewise.
79563         (transit_state_mb): Likewise.
79564         (sift_states_iter_mb): Likewise.
79565         (check_arrival_add_next_nodes): Likewise.
79566         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79567         [_LIBC] (re_search_2_stub): Use mempcpy.
79568
79569         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79570         mbrtowc for very simple UTF-8 case.
79571
79572         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79573         a pointer-to-const.
79574         (re_acquire_state_context): Likewise.
79575         * lib/regex_internal.h: Adjust prototypes.
79576
79577         * lib/regex.c: Prevent using C++ compilers.
79578
79579         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79580         (re_acquire_state_context): Likewise.
79581
79582 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79583
79584         * modules/regex (Depends-on): Add ssize_t.
79585
79586 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79589         translation table.
79590
79591 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79594
79595 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79596             Bruno Haible  <bruno@clisp.org>
79597
79598         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79599         <sys/types.h> and <inttypes.h>.
79600
79601 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79602
79603         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79604         `__error_t_defined', so argp.h will not typedef the former.
79605
79606 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79607
79608         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79609         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79610         glibc names.  Even if glibc is changed to conform to POSIX, the
79611         traditional names will be available anyway, since regex depends on
79612         the extensions module.  Also, fix a longstanding typo in the
79613         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79614         reported by Emanuele Giaquinta.  Also, change sense of cached
79615         variable, so that the message makes sense.
79616
79617 2006-03-24  Simon Josefsson  <jas@extundo.com>
79618
79619         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79620         including some doc fixes.
79621         (base64_encode_alloc): Fix +1 bug on allocation failures.
79622
79623 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79624
79625         * lib/base64.c (base64_encode): Do not read past end of array with
79626         unsanitized input on systems with CHAR_BIT > 8.
79627
79628 2006-03-24  Eric Blake  <ebb9@byu.net>
79629
79630         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79631
79632 2006-03-22  Karl Berry  <karl@gnu.org>
79633
79634         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79635         * config/srclistvars.sh (COREUTILS): new var.
79636
79637 2006-03-17  Jim Meyering  <jim@meyering.net>
79638
79639         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79640         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79641
79642 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79645         no longer needs it.  Instead, check that regoff_t is as least
79646         as wide as ptrdiff_t.
79647
79648         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79649         so that our regex.h stays compatible with the installed regex.
79650         This is helpful for installers who configure --without-included-regex.
79651         Problem reported by Emanuele Giaquinta.
79652
79653 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79654
79655         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79656         Typedef to long int, not to off_, as POSIX will likely change
79657         in that direction.
79658
79659 2006-03-15  Eric Blake  <ebb9@byu.net>
79660
79661         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79662
79663 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79664
79665         * lib/argp-help.c (validate_uparams): Fix typo
79666         * lib/argp-parse.c (argp_default_options): Consistently begin help
79667         messages with a lowercase letter.
79668
79669 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79670
79671         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79672         overrun buffers and shouldn't be used (much as gets shouldn't be
79673         used).
79674         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79675
79676 2006-03-08  Simon Josefsson  <jas@extundo.com>
79677
79678         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79679         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79680
79681 2006-03-08  Simon Josefsson  <jas@extundo.com>
79682
79683         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79684         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79685
79686 2006-03-08  Simon Josefsson  <jas@extundo.com>
79687
79688         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79689         signal that configure disabled the device.
79690
79691 2006-03-08  Simon Josefsson  <jas@extundo.com>
79692
79693         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79694         languages.
79695
79696 2006-03-07  Simon Josefsson  <jas@extundo.com>
79697
79698         * modules/getopt (Depends-on): Add unistd.
79699
79700         * modules/unistd: New file.
79701
79702 2006-03-07  Simon Josefsson  <jas@extundo.com>
79703
79704         * modules/gc-random: New file.
79705
79706 2006-03-07  Simon Josefsson  <jas@extundo.com>
79707
79708         * m4/unistd_h.m4: New file.
79709
79710 2006-03-07  Simon Josefsson  <jas@extundo.com>
79711
79712         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79713         test to be side-effect free by storing the result in the cache
79714         variable gl_cv_lib_readline, and moving the assignment of
79715         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79716         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79717
79718 2006-03-07  Simon Josefsson  <jas@extundo.com>
79719
79720         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79721         error on missing devices (the functions will return an error).
79722
79723         * m4/gc.m4: Move random stuff to gc-random.m4
79724
79725 2006-03-07  Simon Josefsson  <jas@extundo.com>
79726
79727         * lib/unistd_.h: New file.
79728
79729 2006-03-07  Simon Josefsson  <jas@extundo.com>
79730
79731         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79732
79733 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79734
79735         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79736         Problem reported by Juan Manuel Guerrero.
79737
79738 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79741         the unistd module.
79742         * lib/getlogin_r.c: Likewise.
79743         * lib/getlogin_r.h: Likewise.
79744         * lib/glob.c: Likewise.
79745         * lib/pagealign_alloc.c: Likewise.
79746         * lib/unistd_.h: Remove; no longer needed.
79747
79748 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79751         Add unistd.
79752         * modules/c-stack (Depends-on): Add unistd.
79753         * modules/getlogin_r: Likewise.
79754         * modules/glob: Likewise.
79755         * modules/pagealign_alloc: Likewise.
79756         * modules/unistd (Files): Remove lib/unistd_.h.
79757         (EXTRA_DIST): Remove.
79758         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79759         need unistd_.h.
79760         (MOSTLYCLEANFILES): Remove unistd.h-t.
79761
79762 2006-03-03  Simon Josefsson  <jas@extundo.com>
79763
79764         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79765
79766 2006-03-03  Simon Josefsson  <jas@extundo.com>
79767
79768         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79769         libidn and bison.
79770
79771 2006-03-03  Simon Josefsson  <jas@extundo.com>
79772
79773         * build-aux/maint.mk: Add indent target.
79774
79775 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79776
79777         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79778         our replacement poll.h in any case, to avoid a differing
79779         declaration from a system header.  Seen on AIX.
79780
79781 2006-03-01  Simon Josefsson  <jas@extundo.com>
79782
79783         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79784         <kasal@ucw.cz>.
79785
79786 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * modules/gettime (Depends-on): Add extensions module.
79789         * modules/nanosleep (Depends-on): Likewise.
79790         * modules/settime (Depends-on): Likewise.
79791
79792 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79795         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79796         pedantically.
79797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79798         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79799
79800         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79801         not "==".  Reported by Ralf Wildenhues.
79802
79803 2006-03-01  Karl Berry  <karl@gnu.org>
79804
79805         * doc/Copyright/request-*: new files, synced from gnuorg.
79806
79807 2006-03-01  Karl Berry  <karl@gnu.org>
79808
79809         * config/srclist.txt (Copyright/*): new entries.
79810
79811 2006-02-28  Simon Josefsson  <jas@extundo.com>
79812
79813         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79814
79815 2006-02-27  Simon Josefsson  <jas@extundo.com>
79816
79817         * lib/base64.h: Indent #define's.  From Jim Meyering
79818         <jim@meyering.net>.
79819
79820 2006-02-27  Jim Meyering  <jim@meyering.net>
79821
79822         Revert the change of 2006-02-24, so these files can continue
79823         to be sync'd from gettext.
79824         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79825         of `config.h'.
79826
79827 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79828
79829         * modules/intprops: New file.
79830         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79831         Add intprops.
79832         * modules/getloadavg (Files): Remove lib/intprops.h.
79833         (Depends-on): Add intprops.
79834         * modules/human: Likewise.
79835         * modules/inttostr: Likewise.
79836         * modules/openat: Likewise.
79837         * modules/sig2str: Likewise.
79838         * modules/userspec: Likewise.
79839         * modules/utimecmp: Likewise.
79840         * modules/xnanosleep: Likewise.
79841         * modules/xstrtol: Likewise.
79842
79843 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79844
79845         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79846         * modules/lock-tests (TESTS): Use $(EXEEXT).
79847         * modules/tls-tests: Likewise.
79848         * modules/argp-tests: Likewise.
79849         (check_PROGRAMS): New var, replacing...
79850         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79851
79852 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79853
79854         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79855         `config.h'.
79856
79857 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79860
79861 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79862
79863         Sync from coreutils.
79864         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79865         gl_CHDIR_SAFER.
79866
79867 2006-02-22  Jim Meyering  <jim@meyering.net>
79868
79869         Sync from coreutils.
79870         * m4/chdir-safer.m4: New file.
79871
79872 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79875         AT_FDCWD exceeds INT_MAX.
79876         * lib/openat.h (AT_FDCWD): Likewise.
79877
79878 2006-02-17  Eric Blake  <address@hidden>
79879
79880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79881
79882 2006-02-16  Simon Josefsson  <jas@extundo.com>
79883
79884         * modules/getaddrinfo (Depends-on): Add sys_socket.
79885
79886 2006-02-15  Simon Josefsson  <jas@extundo.com>
79887
79888         * build-aux/maint.mk: Add dsyntax-check rule.
79889
79890 2006-02-15  Eric Blake  <ebb9@byu.net>
79891
79892         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79893         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79894         'present but cannot compile' warnings on cygwin.
79895         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79896         use ws2tcpip.h if sys/socket.h works.
79897         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79898         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79899
79900 2006-02-14  Simon Josefsson  <jas@extundo.com>
79901
79902         * modules/maintainer-makefile (Files): Rename.
79903
79904         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79905         and (the local) Makefile.cfg to maint-cfg.mk.
79906
79907         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79908         to the latter.
79909
79910         * modules/maintainer-makefile: New module.
79911
79912         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79913         severaly stripped to make it possible to build it up from scratch
79914         with reliable tests.
79915
79916         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79917         fixes to permit overriding the default actions when configure and
79918         makefile are not available.
79919
79920 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79921
79922         Sync from coreutils.
79923         * modules/lstat (Depends-on): Don't depend on xalloc.
79924         (License): Change from GPL to LGPL, since this is now simply a
79925         replacement for a libc function.
79926
79927 2006-02-14  Jim Meyering  <jim@meyering.net>
79928
79929         Sync from coreutils.
79930
79931         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79932         failure on deficient systems, and simplify gnulib lgpl dependencies.
79933         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79934         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79935
79936         * lib/xalloc-die.c: Remove unused definition of N_.
79937
79938 2006-02-14  Jim Meyering  <jim@meyering.net>
79939
79940         Sync from coreutils.
79941         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79942         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79943         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79944         double-quote uses of that variable, to accommodate the rare case in
79945         which getmntent is available in none of the libraries checked.  This
79946         happens at least on FreeBSD 5.0.
79947
79948 2006-02-13  Simon Josefsson  <jas@extundo.com>
79949
79950         * gnulib-tool (Usage): Fix --import, from
79951         karl@freefriends.org (Karl Berry).
79952
79953 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79954
79955         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79956
79957 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79958
79959         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79960         "autoupdate" on 2005-12-12.
79961
79962 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * modules/closeout (Depends-on): Remove atexit.
79965
79966 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79967
79968         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79969         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79970
79971 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79972
79973         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79974         __EXTENSIONS__ if this causes compilation to fail.  Problem
79975         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79976         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79977
79978 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79981         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79983         All uses changed.
79984
79985 2006-01-26  Simon Josefsson  <jas@extundo.com>
79986
79987         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79988         prototype is visible on mingw32.
79989
79990         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79991         for mingw32.
79992
79993         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79994         mingw32).
79995
79996 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79999         attempt to open for write; this always fails, at least on POSIX
80000         hosts.  This reinstates the 2006-01-09 change, which was
80001         inadvertently removed.
80002
80003 2006-01-26  Bruno Haible  <bruno@clisp.org>
80004
80005         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80006         Reported by Paul Eggert.
80007
80008 2006-01-26  Bruno Haible  <bruno@clisp.org>
80009             Paul Eggert  <eggert@cs.ucla.edu>
80010
80011         * lib/stdbool_.h (_Bool)
80012         [(! (defined __cplusplus || defined __BEOS__)
80013           && !defined __GNUC__
80014           && !(defined __HP_cc || defined __xlc__
80015                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80016                || defined __sgi))]:
80017         #define to signed char in these cases too; this simplifies
80018         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80019         etc., separately) and makes it more conservative.
80020
80021 2006-01-25  Simon Josefsson  <jas@extundo.com>
80022
80023         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80024         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80025         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80026
80027 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80028
80029         * lib/argp-namefrob.h: Bugfix. Remove stray #
80030
80031 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80034         so that we test the test.
80035         Check for yet another HP-UX cc bug involving *bool |= bool.
80036
80037 2006-01-25  Karl Berry  <karl@gnu.org>
80038
80039         * config/srclist.txt (vasnprintf.c): sync lost.
80040
80041 2006-01-25  Jim Meyering  <jim@meyering.net>
80042
80043         Sync from the stable (b5) branch of coreutils:
80044
80045         * lib/fts.c (fts_children): Don't let close() clobber errno from
80046         failed fchdir().
80047
80048         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80049         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80050         a dangling symlink.  That can also happen at least for ELOOP.
80051         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80052         FYI, this bug predates the inclusion of fts.c in coreutils.
80053
80054         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80055         in their own block, so pre-c99 compilers don't object.
80056
80057         Avoid the double-free (first in fts_read, second in fts_close) that
80058         would occur when an `active' directory is made inaccessible (e.g.,
80059         via chmod a-x) during a traversal.
80060         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80061         before returning.  Reproduce this failure by
80062         mkdir -p a/b; cd a; chmod a-x . b
80063         Reported by Stavros Passas.
80064
80065 2006-01-25  Jim Meyering  <jim@meyering.net>
80066
80067         * lib/fileblocks.c: Remove more useless parentheses.
80068         * lib/readutmp.h: Likewise.
80069
80070 2006-01-25  Bruno Haible  <bruno@clisp.org>
80071
80072         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80073         warnings.
80074         Reported by Paul Eggert.
80075
80076 2006-01-25  Bruno Haible  <bruno@clisp.org>
80077
80078         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80079         rid of a trap command. For Solaris sh.
80080         Reported by Mark D. Baushke <mdb@gnu.org>.
80081
80082 2006-01-24  Simon Josefsson  <jas@extundo.com>
80083
80084         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80085         Bruno.
80086
80087 2006-01-24  Karl Berry  <karl@gnu.org>
80088
80089         * config/srclist.txt (argp-namefrob.h): sync lost.
80090
80091 2006-01-24  Jim Meyering  <jim@meyering.net>
80092
80093         * modules/openat (Files): Add lib/intprops.h.
80094         From Mark D. Baushke.
80095
80096 2006-01-24  Jim Meyering  <jim@meyering.net>
80097
80098         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80099         Reported by Mark D. Baushke.
80100
80101 2006-01-24  Jim Meyering  <jim@meyering.net>
80102
80103         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80104
80105 2006-01-24  Bruno Haible  <bruno@clisp.org>
80106
80107         * modules/strnlen (Maintainer): Change from glibc to all.
80108
80109 2006-01-24  Bruno Haible  <bruno@clisp.org>
80110
80111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80112         Patch by Paul Eggert.
80113
80114 2006-01-24  Bruno Haible  <bruno@clisp.org>
80115
80116         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80117         already has it.
80118         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80119         2005-11-26.
80120
80121         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80122         'signed char' to avoid problems with the built-in _Bool type.
80123         Reported by Paul Eggert on 2005-11-26.
80124
80125 2006-01-24  Bruno Haible  <bruno@clisp.org>
80126
80127         * gnulib-tool (func_import): Avoid constructing complicated sed
80128         expressions inside backquote.
80129         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80130
80131 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80132
80133         These changes imported from libc.
80134         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80135         test and two separate function calls.
80136         * lib/strndup.c (__strndup): Add libc_hidden_def.
80137
80138 2006-01-23  Simon Josefsson  <jas@extundo.com>
80139
80140         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80141         Remove the test_*_SOURCES variable: automake infers it by default.
80142         * modules/tls-tests: Likewise.
80143
80144 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         Work around porting bugs reported by Dieter in
80147         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80148         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80149         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80150         Include "getopt.h" first, to check interface.
80151         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80152         !HAVE_DECL_GETENV.
80153         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80154         (__strndup): Revert to K&R-style function dfns, the glibc style.
80155         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80156         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80157         Include strnlen.h first, to get prototype properly.
80158         (strnlen): Renamed from __strnlen.
80159         Remove weak alias.
80160
80161 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80162
80163         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80164
80165 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * config/srclist.txt: Adjust to reflect glibc reorganization.
80168         This affects only comments.
80169
80170 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80171
80172          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80173          Reported by Bruce Korb <bkorb@gnu.org>.
80174
80175 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80176
80177         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80178         to pacify gcc -Wswitch-default.
80179
80180 2006-01-22  Bruno Haible  <bruno@clisp.org>
80181
80182         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80183         temporary buffer for sprintf, take into account the precision also
80184         for 'd', 'i', 'u', 'o', 'x', 'X'.
80185
80186 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80187
80188         * modules/argp-tests: New module
80189         * tests/test-argp.c: New file
80190         * tests/test-argp-2.sh: New file
80191
80192 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80193
80194         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80195         (__argp_base_name): Removed
80196         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80197         typo.
80198         (__argp_base_name): Provide macro definition or extern declaration
80199         depending on the configuration
80200
80201 2006-01-20  Simon Josefsson  <jas@extundo.com>
80202
80203         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80204
80205 2006-01-20  Simon Josefsson  <jas@extundo.com>
80206
80207         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80208
80209 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80210
80211         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80212         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80213         Suggested by Bruno Haible.
80214
80215 2006-01-20  Karl Berry  <karl@gnu.org>
80216
80217         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80218         until changes propagate, I guess.
80219
80220 2006-01-19  Simon Josefsson  <jas@extundo.com>
80221
80222         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80223
80224 2006-01-19  Simon Josefsson  <jas@extundo.com>
80225
80226         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80227
80228 2006-01-19  Simon Josefsson  <jas@extundo.com>
80229
80230         * gnulib-tool: Set check_PROGRAMS.
80231
80232         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80233         modules/des-tests, modules/gc-arcfour-tests,
80234         modules/gc-arctwo-tests, modules/gc-des-tests,
80235         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80236         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80237         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80238         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80239         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80240         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80241         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80242         test_*_SOURCES.
80243
80244 2006-01-18  Simon Josefsson  <jas@extundo.com>
80245
80246         * modules/socklen (Depends-on): Depend on sys_socket.
80247
80248 2006-01-18  Simon Josefsson  <jas@extundo.com>
80249
80250         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80251         modules/des-tests, modules/gc-arcfour-tests,
80252         modules/gc-arctwo-tests, modules/gc-des-tests,
80253         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80254         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80255         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80256         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80257         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80258         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80259         $(EXEEXT) to automake TESTS variable, for mingw32.
80260
80261 2006-01-17  Simon Josefsson  <jas@extundo.com>
80262
80263         * modules/socklen (Include): Need sys/socket.h.
80264
80265 2006-01-17  Bruno Haible  <bruno@clisp.org>
80266
80267         * modules/ssize_t (Include): Add <sys/types.h>.
80268
80269 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80270
80271         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80272         it's not portable and it doesn't work with cross-compiles.
80273         Problem reported by Bruno Haible.  Fix missing-$ typo in
80274         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80275         -zignore from being used with Sun's C compiler.
80276
80277 2006-01-12  Simon Josefsson  <jas@extundo.com>
80278
80279         * lib/base64.c: Fix warning, reported by Bruno Haible
80280         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80281
80282 2006-01-12  Bruno Haible  <bruno@clisp.org>
80283
80284         * modules/ldd: New file.
80285         * build-aux/ldd.sh.in: New file.
80286         * MODULES.html.sh (Support for building libraries and executables): Add
80287         ldd.
80288
80289 2006-01-12  Bruno Haible  <bruno@clisp.org>
80290
80291         * m4/ldd.m4: New file.
80292
80293 2006-01-12  Bruno Haible  <bruno@clisp.org>
80294
80295         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80296         endless loop while replacing $auxdir with build-aux.
80297
80298 2006-01-11  Simon Josefsson  <jas@extundo.com>
80299
80300         * lib/stdint_.h (SIZE_MAX): Add missing (.
80301
80302 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80303
80304         Sync from coreutils.
80305         * lib/md5.c: Fix commentary typos.
80306         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80307         * lib/md5.h (__attribute__): Remove; unused.
80308         * lib/sha1.c: Fix commentary to match md5 better.
80309         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80310         so that we don't need to worry about alignment.  All uses changed.
80311         This merges the 2005-10-28 md5 change into sha1.
80312
80313 2006-01-11  Jim Meyering  <jim@meyering.net>
80314
80315         Sync from coreutils.
80316         * lib/md5.c (OP): Fix spacing.
80317
80318 2006-01-11  Bruno Haible  <bruno@clisp.org>
80319
80320         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80321         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80322         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80323
80324 2006-01-11  Bruno Haible  <bruno@clisp.org>
80325
80326         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80327         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80328         the "early" section as well.
80329
80330 2006-01-11  Bruno Haible  <bruno@clisp.org>
80331
80332         Avoid "ar: no archive members specified" error on MacOS X.
80333         * gnulib-tool (func_modules_add_dummy): New function.
80334         (func_import, func_create_testdir): Invoke it.
80335
80336 2006-01-11  Bruno Haible  <bruno@clisp.org>
80337
80338         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80339         with $auxdir in AC_CONFIG_FILES statements.
80340
80341 2006-01-11  Bruno Haible  <bruno@clisp.org>
80342
80343         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80344         Initialize also noinst_HEADERS to empty.
80345
80346 2006-01-11  Bruno Haible  <bruno@clisp.org>
80347
80348         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80349         variables.
80350         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80351         autoreconf.
80352
80353 2006-01-11  Bruno Haible  <bruno@clisp.org>
80354
80355         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80356         overridable by the user.
80357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80358
80359 2006-01-10  Simon Josefsson  <jas@extundo.com>
80360
80361         * modules/sys_socket: New file.
80362
80363 2006-01-10  Simon Josefsson  <jas@extundo.com>
80364
80365         * m4/sys_socket_h.m4: New file.
80366
80367 2006-01-10  Simon Josefsson  <jas@extundo.com>
80368
80369         * lib/socket_.h: New file.
80370
80371 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         * modules/readutmp (Maintainer): Add myself.
80374
80375 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80378         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80379         People who are still concerned with buggy memcmp implementations
80380         can invoke gl_FUNC_MEMCMP themselves.
80381
80382 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * lib/regex_internal.h (BITSET_WORD_BITS):
80385         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80386         preprocessor mishandles large unsigned values as if they were signed.
80387         Problem reported by Claudio Fontana in
80388         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80389
80390 2006-01-10  Jim Meyering  <jim@meyering.net>
80391
80392         Avoid the double-free (first in fts_read, second in fts_close) that
80393         would occur when an `active' directory is made inaccessible (e.g.,
80394         via chmod a-x) during a traversal.
80395         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80396         before returning.  Reproduce this failure by
80397         mkdir -p a/b; cd a; chmod a-x . b
80398         Reported by Stavros Passas.
80399
80400         Sync from coreutils.
80401         * lib/sha1.c: Tweak grammar in a comment.
80402
80403 2006-01-10  Jim Meyering  <jim@meyering.net>
80404
80405         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80406         Patch by Joerg Sonnenberger.
80407
80408 2006-01-10  Bruno Haible  <bruno@clisp.org>
80409
80410         * modules/readutmp: Depend on module free.
80411         * modules/strtok_r: Depend on module restrict.
80412
80413 2006-01-10  Bruno Haible  <bruno@clisp.org>
80414
80415         * modules/gettext (configure.ac): Add an invocation of
80416         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80417
80418 2006-01-10  Bruno Haible  <bruno@clisp.org>
80419
80420         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80421         Reported by Werner Lemberg <wl@gnu.org>.
80422
80423 2006-01-10  Bruno Haible  <bruno@clisp.org>
80424
80425         * lib/localcharset.c: Update from GNU gettext.
80426
80427 2006-01-10  Bruno Haible  <bruno@clisp.org>
80428
80429         * lib/argp.h (__const): Remove macro. Use const instead.
80430         * lib/argp-fmtstream.h (__const): Likewise.
80431         * lib/glob_.h (__const): Remove macro.
80432         * lib/glob-libc.h: Use const instead of __const.
80433
80434 2006-01-10  Bruno Haible  <bruno@clisp.org>
80435
80436         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80437         variable.
80438         Needed to avoid an automake error regarding the 'gettext' module.
80439
80440 2006-01-09  Simon Josefsson  <jas@extundo.com>
80441
80442         * modules/inet_ntop (Depends-on): Add restrict.
80443
80444 2006-01-09  Simon Josefsson  <jas@extundo.com>
80445
80446         * modules/gc-rijndael-tests (License): Put under LGPL.
80447
80448         * modules/gc-des-tests (License): Likewise.
80449
80450         * modules/gc-arcfour-tests (License): Likewise.
80451
80452         * modules/gc-arctwo-tests (License): Likewise.
80453
80454         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80455
80456         * modules/gc-hmac-sha1-tests (Files): Likewise.
80457
80458         * modules/gc-hmac-md5-tests (License): Likewise.
80459
80460         * modules/gc-sha1-tests (License): Likewise.
80461
80462         * modules/gc-md5-tests (License): Likewise.
80463
80464         * modules/gc-md4-tests (License): Likewise.
80465
80466         * modules/gc-md2-tests (License): Likewise.
80467
80468         * modules/gc-tests (License): Likewise.
80469
80470         * modules/des-tests (License): Likewise.
80471
80472         * modules/md4-tests (License): Likewise.
80473
80474         * modules/md2-tests (License): Likewise.
80475
80476 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         Sync from coreutils:
80479
80480         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80481         * modules/lib-ignore: New file.
80482         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80483         chdir-safer.m4, lchmod.m4.
80484         * modules/openat: Add mkdirat.c, openat-priv.h.
80485
80486 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         Sync from coreutils.
80489         * m4/lib-ignore.m4: New file.
80490         * m4/lchmod.m4: New file.
80491
80492 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80493
80494         Sync from coreutils.
80495         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80496         for write access: POSIX says that must fail.
80497         * lib/fts.c (diropen): Likewise.
80498         * lib/save-cwd.c (save_cwd): Likewise.
80499         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80500         well, for minor improvements on hosts that lack O_DIRECTORY.
80501         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80502         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80503         Fall back on chown if open failed with EACCES.
80504
80505         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80506         Report an error at compile-time if only a 1-second nominal clock
80507         resolution is found.
80508
80509         * lib/lchmod.h: New file.
80510         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80511         (make_dir_parents): Use lchown rather than chown, and
80512         lchmod rather than chmod.
80513
80514         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80515         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80516         "proc" reported by n0dalus.
80517
80518         * lib/mountlist.c: Include <limits.h>.
80519         (dev_from_mount_options)
80520         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80521         New function.  It no longer assumes "dev=" has the System V meaning
80522         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80523         (read_file_system_list)
80524         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80525         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80526         dev= in that case.
80527
80528         * lib/posixtm.h (PDS_PRE_2000): New macro.
80529         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80530         allow_century.  All usages changed.  Reject dates outside the range
80531         1969-1999 if PDS_PRE_2000 is used.
80532
80533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80534
80535         Sync from coreutils.
80536         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80537         (Time of day items): Mention the possibility of leap seconds.
80538         Problem reported by Dr. David Alan Gilbert.
80539
80540 2006-01-09  Jim Meyering  <jim@meyering.net>
80541
80542         Sync from coreutils.
80543
80544         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80545
80546         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80547
80548         * lib/modechange.c (mode_compile): Reject an invalid mode string
80549         that starts with an octal digit.  From Andreas Gruenbacher.
80550
80551         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80552         and dup to open_safer and dup_safer, respectively.
80553         (openat_permissive): Fix typo in comment.
80554
80555         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80556         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80557         (_): Remove; no longer needed.
80558         (openat): Renamed from rpl_openat; no need for rpl_openat
80559         since openat.h renames openat for us.
80560         Replace most of the body with a call to openat_permissive,
80561         to avoid duplicate code.
80562         Port to (probably hypothetical) environments were mode_t is
80563         wider than int.
80564         (openat_permissive): Require mode arg, so that we can check
80565         types better.  Put it just after flags.  Change cwd failure
80566         indicator from pointer-to-bool to pointer-to-errno-value.
80567         All callers changed.
80568         Invoke openat_save_fail and/or openat_restore_fail if
80569         cwd_errno is null, so that openat can call us.
80570         (openat_permissive, fdopendir, fstatat, unlinkat):
80571         Simplify errno handling to avoid some duplicate code,
80572         as it's OK to set errno on success.
80573         * lib/openat.h: Revamp code so that function macros depend on
80574         __OPENAT_PREFIX only, not also on AT_FDCWD.
80575         (openat_ro): Remove.  Caller changed to use openat_permissive.
80576         (openat_permissive): Now a macro, if not a function.
80577         (openat_restore_fail, openat_save_fail): Now always functions,
80578         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80579
80580         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80581         and openat.c.
80582         * lib/mkdirat.c: Include openat-priv.h.
80583         Remove definitions of macros defined therein.
80584         * lib/openat.c: Likewise.
80585
80586         * lib/mkdirat.c (mkdirat): New file and function.
80587         * lib/openat.h (mkdirat): Declare.
80588
80589         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80590
80591         * lib/openat.h (openat_permissive): Declare.
80592         (openat_ro): Define.
80593
80594         * lib/openat.c (EXPECTED_ERRNO): New macro.
80595         (openat_permissive): New function -- used in remove.c rewrite.
80596         (all functions): Set errno just before returning, only if there
80597         was an actual failure.
80598         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80599
80600         Emulate openat-family functions using Linux's procfs, if possible.
80601         Idea and some code based on Ulrich Drepper's glibc changes.
80602
80603         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80604         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80605         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80606         before falling back on save_cwd and restore_cwd.
80607         (fdopendir, fstatat, unlinkat): Likewise.
80608
80609         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80610         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80611
80612         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80613         as second argument to va_arg.  Otherwise, some versions of gcc
80614         warn that `if this code is reached, the program will abort'.
80615
80616 2006-01-09  Jim Meyering  <jim@meyering.net>
80617
80618         Sync from coreutils.
80619         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80620         Require openat-priv.h.
80621
80622 2006-01-09  Bruno Haible  <bruno@clisp.org>
80623
80624         * modules/strnlen (Include): Use strnlen.h.
80625
80626 2006-01-09  Bruno Haible  <bruno@clisp.org>
80627
80628         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80629
80630 2006-01-09  Bruno Haible  <bruno@clisp.org>
80631
80632         * lib/sysexit_.h (EX_OK): New macro.
80633         Suggested by Martin Lambers <marlam@marlam.de>.
80634
80635 2006-01-09  Bruno Haible  <bruno@clisp.org>
80636
80637         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80638         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80639
80640 2006-01-09  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80643         numbers.
80644
80645 2006-01-09  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80648         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80649         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80650         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80651
80652 2006-01-09  Bruno Haible  <bruno@clisp.org>
80653
80654         * build-aux/javacomp.sh.in: New file, moved from lib/.
80655         * modules/javacomp-script (Files): Update.
80656         (configure.ac): Add AC_CONFIG_FILES invocation.
80657         (EXTRA_DIST): Remove variable.
80658
80659         * build-aux/javaexec.sh.in: New file, moved from lib/.
80660         * modules/javaexec (Files): Update.
80661         (configure.ac): Add AC_CONFIG_FILES invocation.
80662         (EXTRA_DIST): Remove javaexec.sh.in.
80663
80664         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80665         * modules/csharpcomp-script (Files): Update.
80666         (configure.ac): Add AC_CONFIG_FILES invocation.
80667         (EXTRA_DIST): Remove variable.
80668
80669         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80670         * modules/csharpexec (Files): Update.
80671         (configure.ac): Add AC_CONFIG_FILES invocation.
80672         (EXTRA_DIST): Remove csharpexec.sh.in.
80673
80674 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80675
80676         Sync from coreutils.
80677
80678         Add POSIX ACL support
80679         * lib/acl.h (copy_acl, set_acl): Add declarations.
80680         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80681         systems other than Linux.
80682         (chmod_or_fchmod): New function: use fchmod when possible,
80683         and chmod otherwise.
80684         (file_has_acl): Add a POSIX ACL implementation, with a
80685         Linux-specific subcase.
80686         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80687         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80688         acls are unsupported.
80689         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80690         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80691         are unsupported.
80692
80693 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80694
80695         Sync from coreutils.
80696         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80697
80698 2006-01-07  Bruno Haible  <bruno@clisp.org>
80699
80700         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80701         gl_EARLY.
80702
80703 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80706         Problem reported for Mingw by Mark Junker.
80707
80708 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * README: Gnulib normally doesn't generate a tarball.
80711
80712 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80715         long int, not int, for nanosecond counts, so that people who are
80716         used to POSIX struct timespec won't be surprised.  Reported by Jim
80717         Meyering.
80718
80719 2005-12-28  Bruno Haible  <bruno@clisp.org>
80720
80721         * build-aux/config.rpath: Update from GNU gettext.
80722
80723 2005-12-16  Jim Meyering  <jim@meyering.net>
80724
80725         * modules/fprintftime: New module.
80726         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80727
80728 2005-12-16  Jim Meyering  <jim@meyering.net>
80729
80730         * m4/fprintftime.m4: New file.
80731
80732 2005-12-16  Jim Meyering  <jim@meyering.net>
80733
80734         * lib/fprintftime.c, lib/fprintftime.h: New files.
80735
80736 2005-12-15  Simon Josefsson  <jas@extundo.com>
80737
80738         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80739         new m4/socklen.m4.
80740
80741 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80742
80743         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80744         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80745
80746 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80747
80748         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80749         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80750         struct uparams is valid. Fall back to the default values if it is
80751         not.
80752
80753 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80754
80755         * modules/argp (Files): Add argp-pin.c
80756         (Depends-on): dirname
80757         (lib_SOURCES): Add argp-pin.c
80758
80759 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80760
80761         * m4/argp.m4:  Check if program_invocation_name and
80762         program_invocation_short_name are declared and define appropriate
80763         macros if they are not.
80764
80765 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80766
80767         * lib/argp-help.c (__argp_base_name): New function
80768         (__argp_short_program_name): Rewrite using __argp_base_name
80769         * lib/argp-namefrob.h: Define program_invocation_name and
80770         program_invocation_short_name if requested
80771         (__argp_base_name): Add prototype
80772         * lib/argp-parse.c (argp_def): Use gettext wrappers
80773         (argp_default_parser): Use __argp_base_name
80774         * lib/argp-pin.c: New file. Defines program_invocation_name and
80775         program_invocation_short_name on systems that lack them.
80776
80777 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80780         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80781         porting problem reported by Georg Schwarz in
80782         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80783
80784 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80787         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80788         porting problem reported by Georg Schwarz in
80789         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80790
80791 2005-12-05  Bruno Haible  <bruno@clisp.org>
80792
80793         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80794         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80795         Reported by Mark Junker <mjscod@gmx.de>.
80796
80797 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80798
80799         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80800         Use implementation from Albert Chin, with some
80801         comments/corrections by Stepan Kasal and myself.
80802
80803 2005-12-02  Bruno Haible  <bruno@clisp.org>
80804
80805         * gnulib-tool (func_import): Accept GPLed build tool modules when
80806         --lgpl is given.
80807         * modules/csharpcomp-script: New file.
80808         * modules/csharpcomp: Depend on it.
80809         * modules/javacomp-script: New file.
80810         * modules/javacomp: Depend on it.
80811         Suggested by Simon Josefsson.
80812
80813 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80814
80815         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80816         statement, to work around an HP-UX 10.20 compiler bug reported by
80817         Peter O'Gorman.
80818
80819 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * modules/savedir (Depends-on): Add openat.
80822
80823 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80826         (uintmax_t) [defined uintmax_t]: Do not declare.
80827         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80828         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80829         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80830         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80831         sake of portability to weird hosts that C allows (though we don't
80832         know of any practical examples).
80833
80834         * lib/savedir.h (fdsavedir): New decl.
80835         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80836         contains most of the former guts of savedir.
80837         (savedir): Use savedirstream.
80838         Include "openat.h".
80839
80840 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80841
80842         * modules/obstack (Files): Add m4/ulonglong.m4.
80843         Problem reported by Davide Angelocola.
80844
80845 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80848         coreutils no longer futzes with rounding modes.
80849
80850 2005-11-14  Jim Meyering  <jim@meyering.net>
80851
80852         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80853         replacement of mkstemp.
80854
80855 2005-11-10  Simon Josefsson  <jas@extundo.com>
80856
80857         * lib/readline.c: Remove EOL.
80858
80859 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80860
80861         * modules/gethrxtime (Depends-on): Add gettime.
80862
80863 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80864
80865         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80866         or gettimeofday; no longer needed.
80867
80868 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80869
80870         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80871         time business.
80872         (gethrxtime) [! (HAVE_NANOUPTIME
80873         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80874         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80875         our own approximation.
80876
80877 2005-11-08  Eric Blake  <ebb9@byu.net>
80878
80879         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80880
80881 2005-11-08  Eric Blake  <ebb9@byu.net>
80882
80883         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80884
80885 2005-11-04  Bruno Haible  <bruno@clisp.org>
80886
80887         * gnulib-tool: Implement --update mode.
80888
80889 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         Fix porting problem reported by Theodoros V. Kalamatianos.
80892         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80893         Don't assume that futimes failing means we must fail.
80894
80895 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80898         variables to suggest the intended function of the PATH_MAX check.
80899
80900 2005-10-30  Kean Johnston  <jkj@sco.com>
80901
80902         Trivial changes to support SCO systems.
80903         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80904         as PATH_MAX.
80905         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80906         where __ptr is null when no I/O is pending.
80907
80908 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80909
80910         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80911         leave errno alone.  Problem reported by Dmitry V. Levin.
80912
80913 2005-10-28  Simon Josefsson  <jas@extundo.com>
80914
80915         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80916         Test more.
80917
80918         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80919
80920         * modules/md2, modules/md2-tests: New files.
80921
80922 2005-10-28  Simon Josefsson  <jas@extundo.com>
80923
80924         * m4/inet_ntop.m4: More tests.
80925
80926         * m4/gc-md2.m4, md2.m4: New file.
80927
80928 2005-10-28  Simon Josefsson  <jas@extundo.com>
80929
80930         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80931         "restrict" keywords, as per POSIX.  Protect the function
80932         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80933         Don't use K&R prototypes.  Check the sprintf return values.
80934         Re-define EAFNOSUPPORT if not present.  Indent.
80935
80936         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80937         suggested by Bruno Haible <bruno@clisp.org>.
80938
80939         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80940
80941         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80942
80943         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80944         libgcrypt).
80945
80946         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80947
80948         * lib/md2.h, lib/md2.c: New files.
80949
80950 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80953         errno alone.  Problem reported by Frederic Jolliton.
80954
80955 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80956
80957         * modules/verify (License): Change from GPL to LGPL.  This is a
80958         tiny module and there are apparently near-equivalents that are
80959         under the BSD license.
80960
80961 2005-10-24  Simon Josefsson  <jas@extundo.com>
80962
80963         * modules/sha1: Relicense to LGPL.
80964
80965 2005-10-24  Simon Josefsson  <jas@extundo.com>
80966
80967         * lib/md4.h: Shrink buffer size, now that we changed the type.
80968
80969 2005-10-23  Simon Josefsson  <jas@extundo.com>
80970
80971         * gnulib-tool (func_import): Fix --tests-base.
80972
80973 2005-10-22  Simon Josefsson  <jas@extundo.com>
80974
80975         * modules/arcfour (Depends-on): Need stdint.
80976
80977 2005-10-22  Simon Josefsson  <jas@extundo.com>
80978
80979         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80980         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80981
80982 2005-10-22  Simon Josefsson  <jas@extundo.com>
80983
80984         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80985         suggested by Bruno Haible <bruno@clisp.org>.
80986
80987 2005-10-22  Simon Josefsson  <jas@extundo.com>
80988
80989         * lib/crc.h: Include stddef.h, for size_t.
80990
80991 2005-10-22  Simon Josefsson  <jas@extundo.com>
80992
80993         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80994         arcfour_context struct (simplify test vector testing in GNU
80995         Shishi).
80996
80997 2005-10-21  Simon Josefsson  <jas@extundo.com>
80998
80999         * modules/des, modules/des-tests: New files.
81000
81001         * modules/gc-des, modules/gc-des-tests: New files.
81002
81003         * tests/test-des.c, tests/test-gc-des.c: New file.
81004
81005 2005-10-21  Simon Josefsson  <jas@extundo.com>
81006
81007         * modules/arctwo, modules/arctwo-tests: New files.
81008
81009         * tests/test-arctwo.c: New file.
81010
81011         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81012
81013         * tests/test-gc-arctwo.c: New file.
81014
81015 2005-10-21  Simon Josefsson  <jas@extundo.com>
81016
81017         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81018         Bruno Haible <bruno@clisp.org>.
81019
81020         * m4/gc-des.m4: New file.
81021
81022 2005-10-21  Simon Josefsson  <jas@extundo.com>
81023
81024         * m4/arctwo.m4: New file.
81025
81026         * m4/gc-arctwo.m4: New file.
81027
81028 2005-10-21  Simon Josefsson  <jas@extundo.com>
81029
81030         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81031         block.
81032
81033 2005-10-21  Simon Josefsson  <jas@extundo.com>
81034
81035         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81036         <bruno@clisp.org>.
81037
81038         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81039
81040         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81041         Bruno Haible <bruno@clisp.org>.
81042
81043         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81044         <bruno@clisp.org>.
81045
81046 2005-10-21  Simon Josefsson  <jas@extundo.com>
81047
81048         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81049
81050 2005-10-21  Simon Josefsson  <jas@extundo.com>
81051
81052         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81053
81054 2005-10-21  Simon Josefsson  <jas@extundo.com>
81055
81056         * lib/des.h, lib/des.c: New files.
81057
81058         * lib/gc-gnulib.c: Support DES.c
81059
81060 2005-10-21  Simon Josefsson  <jas@extundo.com>
81061
81062         * lib/arctwo.h, lib/arctwo.c: New files.
81063
81064         * lib/gc-gnulib.c: Support ARCTWO.
81065
81066 2005-10-21  Simon Josefsson  <jas@extundo.com>
81067
81068         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81069         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81070
81071 2005-10-21  Simon Josefsson  <jas@extundo.com>
81072
81073         * gnulib-tool (func_import, func_create_testdir): Define automake
81074         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81075         Makefile.am snippet),
81076         suggested by Bruno Haible <bruno@clisp.org>.
81077
81078         * modules/gc (Makefile.am): Use it.
81079
81080 2005-10-21  Bruno Haible  <bruno@clisp.org>
81081
81082         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81083         patch.
81084
81085 2005-10-19  Simon Josefsson  <jas@extundo.com>
81086
81087         * tests/test-gc-rijndael.c: New file.
81088
81089         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81090
81091 2005-10-19  Simon Josefsson  <jas@extundo.com>
81092
81093         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81094         interface too.
81095
81096 2005-10-19  Simon Josefsson  <jas@extundo.com>
81097
81098         * tests/test-gc-arcfour.c: New file.
81099
81100         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81101
81102 2005-10-19  Simon Josefsson  <jas@extundo.com>
81103
81104         * modules/gc-md4, modules/gc-md4-tests: New file.
81105
81106         * tests/test-gc-md4.c: New file.
81107
81108 2005-10-19  Simon Josefsson  <jas@extundo.com>
81109
81110         * m4/gc-md4.m4: New file.
81111
81112 2005-10-19  Simon Josefsson  <jas@extundo.com>
81113
81114         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81115         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81116         <kasal@ucw.cz>.
81117
81118 2005-10-19  Simon Josefsson  <jas@extundo.com>
81119
81120         * m4/gc-arcfour.m4: New file.
81121
81122         * m4/gc-rijndael.m4: New file.
81123
81124 2005-10-19  Simon Josefsson  <jas@extundo.com>
81125
81126         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81127
81128 2005-10-19  Simon Josefsson  <jas@extundo.com>
81129
81130         * lib/gc-gnulib.c: Support ARCFOUR.
81131
81132 2005-10-19  Simon Josefsson  <jas@extundo.com>
81133
81134         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81135         support.
81136
81137         * lib/gc.h: Add ECB enum type.
81138
81139         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81140
81141 2005-10-18  Simon Josefsson  <jas@extundo.com>
81142
81143         * tests/test-md5.c: New file.
81144
81145         * modules/md5-tests: New file.
81146
81147 2005-10-18  Simon Josefsson  <jas@extundo.com>
81148
81149         * tests/test-md4.c: New file.
81150
81151         * modules/md4, modules/md4-tests: New files.
81152
81153 2005-10-18  Simon Josefsson  <jas@extundo.com>
81154
81155         * m4/md4.m4: New file.
81156
81157 2005-10-18  Simon Josefsson  <jas@extundo.com>
81158
81159         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81160
81161 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81162
81163         * gnulib-tool (func_create_testdir): Omit the second check whether
81164         BUILT_SOURCES in nonempty.
81165
81166 2005-10-17  Simon Josefsson  <jas@extundo.com>
81167
81168         * tests/test-rijndael.c: New file.
81169
81170 2005-10-17  Simon Josefsson  <jas@extundo.com>
81171
81172         * modules/sha1: Depend on stdint instead of md5.
81173
81174         * modules/md5: Depend on stdint, remove uint32_t.
81175
81176 2005-10-17  Simon Josefsson  <jas@extundo.com>
81177
81178         * modules/gc-sha1-tests: New file.
81179
81180         * tests/test-gc-sha1.c: New file.
81181
81182 2005-10-17  Simon Josefsson  <jas@extundo.com>
81183
81184         * m4/md5.m4: Remove call to uint32_t.m4.
81185
81186 2005-10-17  Simon Josefsson  <jas@extundo.com>
81187
81188         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81189
81190         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81191         md5.h.
81192
81193         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81194
81195         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81196
81197 2005-10-17  Simon Josefsson  <jas@extundo.com>
81198
81199         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81200
81201 2005-10-17  Simon Josefsson  <jas@extundo.com>
81202
81203         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81204
81205 2005-10-17  Simon Josefsson  <jas@extundo.com>
81206
81207         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81208
81209         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81210
81211 2005-10-17  Bruno Haible  <bruno@clisp.org>
81212
81213         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81214         that it can also be used in a test.
81215
81216 2005-10-16  Bruno Haible  <bruno@clisp.org>
81217
81218         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81219         TESTS_ENVIRONMENT, so that individual tests can augment it.
81220
81221         * gnulib-tool (func_create_testdir): Use an intermediate target for
81222         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81223         macros, like $(ALLOCA_H), which cannot be passed through the command
81224         line.
81225
81226 2005-10-15  Simon Josefsson  <jas@extundo.com>
81227
81228         * modules/rijndael-tests: New file.
81229
81230         * modules/rijndael: New file.
81231
81232 2005-10-15  Simon Josefsson  <jas@extundo.com>
81233
81234         * m4/rijndael.m4: New file.
81235
81236 2005-10-15  Simon Josefsson  <jas@extundo.com>
81237
81238         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81239
81240         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81241
81242 2005-10-14  Simon Josefsson  <jas@extundo.com>
81243
81244         * tests/test-arcfour.c: New file.
81245
81246         * modules/arcfour, modules/arcfour-tests: New files.
81247
81248 2005-10-14  Simon Josefsson  <jas@extundo.com>
81249
81250         * m4/arcfour.m4: New file.
81251
81252 2005-10-14  Simon Josefsson  <jas@extundo.com>
81253
81254         * lib/arcfour.h, lib/arcfour.c: New files.
81255
81256 2005-10-14  Roland McGrath  <roland@redhat.com>
81257
81258         Import from libc.  [BZ #1331]
81259         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81260         macro argument.
81261         Reported by Matej Vela <vela@debian.org>.
81262
81263 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81264
81265         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81266         include <wchar.h>; no longer needed.
81267
81268 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81269
81270         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81271
81272 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81273         and  Ulrich Drepper  <drepper@redhat.com>
81274
81275         Import from libc.
81276         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81277         instead of inline stream orientation test and two separate
81278         function calls.  Pay no attention to USE_IN_LIBIO.
81279
81280 2005-10-13  Simon Josefsson  <jas@extundo.com>
81281
81282         * modules/gc-hmac-md5-tests: New file.
81283
81284         * tests/test-gc-hmac-sha1.c: New file.
81285
81286         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81287
81288         * modules/gc-hmac-md5-tests: New file.
81289
81290         * tests/test-gc-md5.c: New file.
81291
81292         * modules/gc-md5-tests: New file.
81293
81294 2005-10-13  Simon Josefsson  <jas@extundo.com>
81295
81296         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81297         Move memory allocation outside of loop.
81298
81299 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81300
81301         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81302         intermediate directory is in a read-only file system.  Problem
81303         reported by Eric Blake.
81304
81305 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81306
81307         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81308
81309 2005-10-12  Simon Josefsson  <jas@extundo.com>
81310
81311         * tests/test-hmac-sha1.c: New file.
81312
81313         * modules/hmac-sha1-tests: New file.
81314
81315         * modules/hmac-sha1: New file.
81316
81317 2005-10-12  Simon Josefsson  <jas@extundo.com>
81318
81319         * modules/gc-sha1: New file.
81320
81321 2005-10-12  Simon Josefsson  <jas@extundo.com>
81322
81323         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81324
81325         * tests/test-gc-pbkdf2-sha1.c: New file.
81326
81327 2005-10-12  Simon Josefsson  <jas@extundo.com>
81328
81329         * modules/gc-md5, modules/gc-hmac-md5: New files.
81330
81331         * modules/gc (Files): Remove md5, memxor and hmac files.
81332
81333 2005-10-12  Simon Josefsson  <jas@extundo.com>
81334
81335         * m4/gc-pbkdf2-sha1.m4: New file.
81336
81337         * m4/gc-hmac-sha1.m4: New file.
81338
81339         * m4/gc-sha1: New file.
81340
81341         * m4/hmac-sha1.m4: New file.
81342
81343 2005-10-12  Simon Josefsson  <jas@extundo.com>
81344
81345         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81346
81347         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81348
81349 2005-10-12  Simon Josefsson  <jas@extundo.com>
81350
81351         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81352         suggested by Bruno Haible <bruno@clisp.org>.
81353
81354 2005-10-12  Simon Josefsson  <jas@extundo.com>
81355
81356         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81357
81358 2005-10-12  Simon Josefsson  <jas@extundo.com>
81359
81360         * lib/gc-pbkdf2-sha1.c: New file.
81361
81362         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81363
81364 2005-10-12  Simon Josefsson  <jas@extundo.com>
81365
81366         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81367
81368         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81369
81370 2005-10-12  Simon Josefsson  <jas@extundo.com>
81371
81372         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81373         GC_USE_HMAC_MD5, respectively.
81374
81375         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81376         (gc_md5): Fix typo.
81377
81378         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81379
81380         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81381
81382         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81383
81384 2005-10-12  Bruno Haible  <bruno@clisp.org>
81385
81386         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81387         Reported by Stepan Kasal <kasal@ucw.cz>.
81388
81389 2005-10-11  Simon Josefsson  <jas@extundo.com>
81390
81391         * tests/test-crc.c: New file.
81392
81393         * modules/crc, modules/crc-tests: New files.
81394
81395 2005-10-11  Simon Josefsson  <jas@extundo.com>
81396
81397         * m4/crc.m4: New file.
81398
81399 2005-10-11  Simon Josefsson  <jas@extundo.com>
81400
81401         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81402
81403         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81404
81405         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81406
81407 2005-10-11  Simon Josefsson  <jas@extundo.com>
81408
81409         * lib/crc.h, lib/crc.c: New files.
81410
81411         * lib/gc.h (gc_hash_buffer): Add doc.
81412
81413 2005-10-11  Bruno Haible  <bruno@clisp.org>
81414
81415         * modules/c-strcasestr: New file.
81416         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81417
81418 2005-10-11  Bruno Haible  <bruno@clisp.org>
81419
81420         * modules/c-strcase: New file.
81421         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81422
81423 2005-10-11  Bruno Haible  <bruno@clisp.org>
81424
81425         * lib/strcasecmp.c: Include limits.h.
81426         (strcasecmp): Avoid integer overflow on exotic platforms.
81427         * lib/strncasecmp.c: Include limits.h.
81428         (strncasecmp): Avoid integer overflow on exotic platforms.
81429         Reported by Paul Eggert.
81430
81431 2005-10-11  Bruno Haible  <bruno@clisp.org>
81432
81433         * lib/c-strcasestr.h: New file, from GNU gettext.
81434         * lib/c-strcasestr.c: New file, from GNU gettext.
81435
81436 2005-10-11  Bruno Haible  <bruno@clisp.org>
81437
81438         * lib/c-strcase.h: New file, from GNU gettext.
81439         * lib/c-strcasecmp.c: New file, from GNU gettext.
81440         * lib/c-strncasecmp.c: New file, from GNU gettext.
81441
81442 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * modules/mempcpy (License): GPL -> LGPL.
81445         * modules/strchrnul (License): Likewise.
81446         * modules/sysexits (License): Likewise.
81447
81448 2005-10-08  Simon Josefsson  <jas@extundo.com>
81449
81450         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81451
81452 2005-10-07  Simon Josefsson  <jas@extundo.com>
81453
81454         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81455
81456 2005-10-06  Simon Josefsson  <jas@extundo.com>
81457
81458         * tests/test-hmac-md5.c: New file.
81459
81460         * modules/hmac-md5-tests: New file.
81461
81462         * modules/hmac-md5: New file.
81463
81464 2005-10-06  Simon Josefsson  <jas@extundo.com>
81465
81466         * m4/hmac-md5.m4: New file.
81467
81468         * m4/memxor.m4: Require gl_C_RESTRICT.
81469
81470 2005-10-06  Simon Josefsson  <jas@extundo.com>
81471
81472         * lib/memxor.c (memxor): Avoid casts and warnings.
81473
81474 2005-10-06  Simon Josefsson  <jas@extundo.com>
81475
81476         * lib/hmac-md5.c: New file.
81477
81478         * lib/hmac.h: New file.
81479
81480 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81481
81482         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81483         promotes to int, not unsigned int, to catch the AIX 5.3
81484         compiler bug.
81485
81486 2005-10-05  Simon Josefsson  <jas@extundo.com>
81487
81488         * modules/memxor: New file.
81489
81490         * modules/iconv (Files): Move config.rpath to havelib, it is used
81491         there.
81492
81493         * modules/havelib (Files): Add config.rpath.
81494
81495 2005-10-05  Simon Josefsson  <jas@extundo.com>
81496
81497         * m4/memxor.m4: New file.
81498
81499 2005-10-05  Simon Josefsson  <jas@extundo.com>
81500
81501         * lib/memxor.c (memxor): Fix compiler error.
81502
81503         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81504         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81505
81506         * lib/memxor.h, lib/memxor.c: New files.
81507
81508         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81509         we assume all systems have it, suggested by Jim Meyering
81510         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81511         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81512         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81513         same reasons.
81514
81515 2005-10-05  Simon Josefsson  <jas@extundo.com>
81516
81517         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81518
81519 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81522         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81523         needed, since the source code now assumes these .h files.
81524
81525 2005-10-05  Derek Price  <derek@ximbiot.com>
81526
81527         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81528
81529 2005-10-05  Bruno Haible  <bruno@clisp.org>
81530
81531         * modules/stdint (License): Change to LGPL.
81532
81533 2005-10-04  Simon Josefsson  <jas@extundo.com>
81534
81535         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81536         D. Baushke" <mdb@gnu.org>.
81537
81538 2005-10-04  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/verify.h (verify_true): Provide alternative definition for C++.
81541
81542 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81545         (SSIZE_MAX): New macro, if not already defined.
81546         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81547         than 2 GiB.
81548
81549 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         Sync from coreutils.
81552         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81553         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81554         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81555         ULLONG_MAX doesn't work with 2.7.2.1.
81556
81557 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81558
81559         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81560         From Ben Pfaff.
81561
81562         * modules/exclude (Depends-on): Depend on verify.
81563         * modules/strtoimax (Depends-on): Likewise.
81564         * modules/utimecmp (Depends-on): Likewise.
81565
81566 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * lib/exclude.c: Include verify.h.
81569         (verify): Remove.  All callers changed to use verify.h's version.
81570         * lib/strtoimax.c: Likewise.
81571         * lib/utimecmp.c: Likewis.e
81572
81573         Sync from coreutils.
81574         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81575         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81576         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81577         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81578         bother returning ENOSYS if settimeofday or stime fails; just let
81579         them return whatever errno they want to return.
81580         * lib/utimens.c: Include unistd.h, for dup2.
81581         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81582         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81583
81584 2005-10-02  Jim Meyering  <jim@meyering.net>
81585
81586         Sync from coreutils.
81587         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81588         from glibc-2.2.5 that fails for read-only files.
81589
81590 2005-10-02  Jim Meyering  <jim@meyering.net>
81591
81592         Sync from coreutils.
81593         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81594         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81595         `#if HAVE_CONFIG_H'.
81596         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81597         Remove AT_FDCWD test.
81598         Do not consume the fd unless successful.
81599         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81600         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81601         block, so that we don't even try to compile it if settimeofday is
81602         available.  This works around a compilation failure on OSF1 V5.1,
81603         due to stime requiring a `long int*' while tv_sec is `int'.
81604
81605 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81606
81607         Sync from coreutils.
81608         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81609         against `yes', rather than just testing for nonempty.
81610
81611 2005-10-01  Simon Josefsson  <jas@extundo.com>
81612
81613         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81614         and Darwin.
81615
81616         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81617         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81618         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81619         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81620         Check if struct addrinfo is declared.
81621
81622 2005-10-01  Simon Josefsson  <jas@extundo.com>
81623
81624         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81625         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81626         AI_* and EAI_* definitions.  Protect function declarations.
81627
81628 2005-10-01  Jim Meyering  <jim@meyering.net>
81629
81630         Sync from coreutils.
81631
81632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81633         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81634         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81635         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81636         in the inet and nsl libraries.  Required on Solaris 5.7.
81637
81638 2005-10-01  Jim Meyering  <jim@meyering.net>
81639
81640         Sync from coreutils.
81641         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81642         in the inet and nsl libraries.  Required on Solaris 5.7.
81643
81644 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81645
81646         * lib/getdelim.c (getdelim): Remove unused variables.
81647
81648 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81651         so that the code works even with ancient cpp.  Portability problem
81652         with GCC 2.7.2.1 reported by Thomas M.Ott.
81653
81654 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81655
81656         * modules/regex (Depends-on): Add strcase.
81657
81658         * modules/gethostname (Licence): Change from GPL to LGPL, since
81659         gethostname.c is a trivial implementation of a standard library
81660         function.
81661         * modules/poll (License): Change from GPL to LGPL, since it's
81662         derived from LGPL code.
81663
81664 2005-09-27  Jim Meyering  <jim@meyering.net>
81665
81666         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81667         HAVE_CONFIG_H.
81668
81669         * lib/intprops.h (signed_type_or_expr__): Define.
81670         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81671         for unsigned types.
81672
81673 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81674
81675         * lib/verify.h (verify_expr): Remove, replacing with:
81676         (verify_true): New macro that returns true instead of void.
81677         (verify_type__): Remove.
81678         (verify): Use verify_true rather than verify_type__.
81679
81680 2005-09-26  Bruno Haible  <bruno@clisp.org>
81681
81682         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81683         is necessary.
81684         (lib_SOURCES): Remove mbchar.c.
81685         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81686         (Files): Add m4/mbrtowc.m4.
81687         * modules/mbiter: Likewise.
81688         * modules/mbuiter: Likewise.
81689
81690 2005-09-26  Bruno Haible  <bruno@clisp.org>
81691
81692         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81693         compile mbchar.c if they are not both present.
81694         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81695         * m4/mbiter.m4 (gl_MBITER): Likewise.
81696         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81697         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81698         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81699
81700 2005-09-25  Jim Meyering  <jim@meyering.net>
81701
81702         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81703         also uses socklen_t.
81704
81705 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * lib/utimens.c (ENOSYS): Define if not already defined.
81708         (futimens): Support having a null PATH if the file descriptor
81709         is nonnegative.
81710
81711         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81712         Remove.
81713         (__attribute): Define to empty unless GCC 3.1 or later.
81714         This works around a core dump on OpenBSD 3.4, which has GCC
81715         2.95.3, which dumps core when given __attribute__(()).  It also
81716         simplifies other tests, since we really don't want to bother with
81717         worrying about which ancient version of GCC supported what.
81718         Original problem reported by Yoann Vandoorselaere, with part of
81719         the fix suggested by Derek Price.
81720
81721 2005-09-24  Jim Meyering  <jim@meyering.net>
81722
81723         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81724         so we can once again use a positive bitfield width of 1 -- now we
81725         don't have to explain why we were using a bitfield width of 2.
81726
81727 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81730         and similarly for the other external symbols.  Problem reported
81731         by James Gallager.
81732
81733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81734         bug reported by Jim Meyering.
81735
81736         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81738         not needed, since socklen is a prerequisite module.
81739
81740 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81743         Problem reported by Eric Blake.
81744         (getaddrinfo): Initialize se so that it's not garbage.
81745         Redo internal storage allocation so that it doesn't make unportable
81746         assumptions about alignment.
81747         Fix a memory leak.
81748
81749         * lib/utimens.c (futimens): Use futimesat if available.
81750         Prefer it to futimes since it doesn't have the futimes bug.
81751
81752         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81753         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81754         Instead, declare a function that returns a pointer to an array,
81755         and use verify_type__ to declare the size of the array.
81756         Problem and germ of a solution reported by Bruno Haible.
81757         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81758         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81759
81760 2005-09-23  Jim Meyering  <jim@meyering.net>
81761
81762         Sync from coreutils.
81763         Correct build failure (socklen_t not defined) on at least
81764         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81765         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81766
81767 2005-09-23  Jim Meyering  <jim@meyering.net>
81768
81769         * modules/getaddrinfo (Depends-on): Add socklen.
81770
81771 2005-09-23  Bruno Haible  <bruno@clisp.org>
81772
81773         * tests/test-verify.c: New file.
81774
81775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         Sync from coreutils.
81778
81779         * modules/argmatch (Depends-on): Add verify.
81780         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81781         unistd-safer.
81782         * modules/save-cwd (Depends-on): Likewise.
81783
81784         * modules/openat (Files): Add lib/openat-die.c.
81785         (Depends-on): Remove error, exitfail.
81786         Add dirname.
81787
81788         * modules/verify: New file.
81789         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81790         with "verify" module.
81791
81792 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81793
81794         Sync from coreutils.
81795
81796         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81797         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81798         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81799         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81800         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81801         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81802         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81803         Don't bother checking for string.h, stdlib.h, unistd.h.
81804         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81805         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81806         module's job.
81807         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81808         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81809
81810         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81811         (gl_GETDATE): Use it.
81812
81813         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81814
81815 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81816
81817         Sync from coreutils.
81818
81819         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81820         stat-time.h.
81821         * lib/argmatch.h: Include verify.h
81822         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81823         (ARGMATCH_ASSERT): Remove; unused.
81824         * lib/canonicalize.c: Assume STDC_HEADERS.
81825         * lib/exclude.c: Include "strcase.h".
81826         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81827         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81828         and stdio-safer.h.
81829         (getusershell): Call fopen, not fopen_safer.
81830         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81831         Do not include unistd-safer.h.
81832         (save_cwd): Don't call fd_safer; no longer needed
81833         now that we include fcntl--.h.
81834
81835         * lib/getdate.y (relative_time): New type.
81836         (RELATIVE_TIME_0): New constant.
81837         (parser_control): Use relative_time instead of doing it ourselves.
81838         (%union): Add new relative_time rel member.
81839         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81840         Now typeless.
81841         (relunit, relunit_snumber): Now of type rel.
81842         (zone, rel, relunit, get_date): Adjust to above changes.
81843
81844         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81845         Do not include unistd-safer.h.
81846         (getloadavg): Don't call fd_safer; no longer needed
81847         now that we include fcntl--.h.
81848
81849         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81850         (make_dir_parents): Treat ENOSYS like EEXIST.
81851
81852         Improve quality of diagnostics on restore_cwd failure.
81853         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81854         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81855         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81856         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81857         each time through the loop.  Do not diagnose restore_cwd failure;
81858         that is the caller's job (and perhaps the caller does not care).
81859
81860         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81861         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81862         If the file already exists but is not a directory, don't bother
81863         to try to make its parents.
81864         Close potential file descriptor leak if we can't chdir("/") (!).
81865         Don't always return true if chdir($PWD) fails; return true only
81866         if the requested action was done successfully (except for the
81867         chdir($PWD)).
81868         Don't log final directory unless we actually made it.
81869         Refactor to avoid duplicate code to fix up permissions.
81870         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81871
81872         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81873         to make it a bit faster and (I hope) clearer.
81874         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81875         Fix bug in formats like %2N.
81876
81877         * lib/verify.h: New file.
81878
81879 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81880
81881         Sync from coreutils.
81882         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81883
81884 2005-09-22  Jim Meyering  <jim@meyering.net>
81885
81886         Sync from coreutils.
81887
81888         * m4/lstat.m4 (gl_FUNC_LSTAT):
81889         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81890         Remove obsolete comment.
81891         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81892         * m4/xstrtod.m4: Likewise.
81893
81894         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81895
81896 2005-09-22  Jim Meyering  <jim@meyering.net>
81897
81898         Sync from coreutils.
81899
81900         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81901
81902         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81903         the .tm_year member, since otherwise gcc-4.0 would now warn about
81904         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81905
81906         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81907         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81908
81909         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81910         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81911         when run in a time zone for which daylight savings time is in effect
81912         for the starting date.
81913
81914         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81915         stop us from restricting permissions of just-created absolute-named
81916         directories.
81917         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81918         to restore initial working directory.
81919         * lib/mkdir-p.c (make_dir_parents): New parameter:
81920         different_working_dir, to tell caller if/when we change the working
81921         directory and are unable to return to the initial one.
81922         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81923         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81924         `return false'.  This fixes a bug introduced on 2004-07-30.
81925
81926         * lib/openat.c (fdopendir): Be sure to close the supplied
81927         file descriptor before returning.  This makes our replacement
81928         implementation a little closer to Solaris's, where fdopendir
81929         ties the file descriptor to the returned DIR* pointer.
81930         * lib/openat.c (unlinkat): New function.
81931         * lib/openat.h (unlinkat): Add prototype.
81932         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81933         (openat_restore_fail): Rename from openat_restore_die.
81934         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81935
81936         Provide an alternative to exiting immediately upon save_cwd or
81937         restore_cwd failure.  Now, an application can arrange e.g.,
81938         to perform a longjump in that case.
81939         * lib/openat.c: Include dirname.h.
81940         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81941         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81942         and openat_restore_die rather than calling error directly.
81943         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81944
81945         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81946         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81947         define.
81948
81949         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81950         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81951                             int utc, int nanoseconds);
81952         Background:
81953         date should not have to allocate a megabyte of virtual memory to
81954         handle a format argument like +%1048575T.  When implemented with
81955         strftime, it must allocate such a buffer, use strftime to fill it
81956         in, print it, then free it.
81957         With fprintftime, it simply prints everything and exits.
81958         With no need for memory allocation, that's one fewer way to fail.
81959         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81960         optional field width, not before, so we accept %9:z, not %:9z.
81961         (my_strftime): Be sure to use L_('x') for literals.
81962
81963         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81964         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81965         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81966         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81967         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81968         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81969         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81970         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81971         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81972         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81973         * lib/xgethostname.c, lib/xreadlink.c:
81974         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81975
81976         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81977         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81978         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81979         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81980         and don't include <sys/file.h>).
81981
81982 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81983
81984         Sync from coreutils.
81985
81986         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81987         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81988         [!LDAV_DONE]: Avoid unused variable warning.
81989
81990 2005-09-21  Bruno Haible  <bruno@clisp.org>
81991
81992         * lib/unicodeio.h (unicode_to_mb): New declaration.
81993
81994 2005-09-20  Derek Price  <derek@ximbiot.com>
81995
81996         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81997         getaddrinfo.h.
81998
81999 2005-09-20  Bruno Haible  <bruno@clisp.org>
82000
82001         * gnulib-tool: Remove trailing slashes from the values specified for
82002         --source-base, --m4-base, --tests-base, --aux-dir.
82003         Suggested by Simon Josefsson <jas@extundo.com>.
82004
82005 2005-09-20  Bruno Haible  <bruno@clisp.org>
82006
82007         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82008         func_modules_to_filelist, func_import, func_create_testdir): Make all
82009         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82010         change when gnulib-tool is invoked in a different locale.
82011
82012 2005-09-19  Simon Josefsson  <jas@extundo.com>
82013
82014         * m4/socklen.m4: Fix typo.
82015
82016 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82017
82018         Use a consistent style for including <config.h>.
82019         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82020         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82021         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82022         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82023         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82024         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82025         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82026         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82027         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82028         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82029         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82030         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82031         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82032         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82033         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82034         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82035         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82036         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82037         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82038         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82039         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82040         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82041         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82042         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82043         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82044         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82045         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82046         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82047         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82048         lib/xstrtoumax.c, lib/yesno.c:
82049         Standardize inclusion of config.h.
82050         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82051         lib/inttostr.h:  Removed inclusion of config.h from header files.
82052         * lib/inttostr.c:  Adjusted in-tree users.
82053         * lib/timespec.h: Remove superfluous warning to include config.h.
82054         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82055         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82056         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82057         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82058         config.h with HAVE_CONFIG_H.
82059
82060 2005-09-19  Jim Meyering  <jim@meyering.net>
82061
82062         * modules/pathmax (License): Change to LGPL.
82063
82064 2005-09-19  Derek Price  <derek@ximbiot.com>
82065
82066         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82067
82068 2005-09-19  Bruno Haible  <bruno@clisp.org>
82069
82070         * gnulib-tool (import): Provide default for --tests-base.
82071
82072 2005-09-19  Bruno Haible  <bruno@clisp.org>
82073
82074         * doc/quote.texi: New file, extracted from gnulib.texi.
82075         * doc/ctime.texi: New file, extracted from gnulib.texi.
82076         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82077         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82078         * doc/gnulib.texi: Include them.
82079
82080 2005-09-18  Bruno Haible  <bruno@clisp.org>
82081
82082         Portability fix.
82083         * gnulib-tool (func_readlink): New function.
82084         (func_ln_if_changed): Use it.
82085
82086 2005-09-18  Bruno Haible  <bruno@clisp.org>
82087
82088         * gnulib-tool: Support --with-tests also with --import.
82089         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82090         (func_import): Use variables $testsbase and $inctests. Emit a
82091         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82092         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82093         SUBDIRS += $testsdir.
82094         (func_create_testdir): Update.
82095
82096 2005-09-18  Bruno Haible  <bruno@clisp.org>
82097
82098         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82099         instead of $dry_run.
82100         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82101         (func_ln_if_changed): Don't handle dry-run here.
82102         (func_import): In dry-run mode, detect more precisely which actions
82103         would be performed, and don't use "...ing" verbs.
82104
82105 2005-09-18  Bruno Haible  <bruno@clisp.org>
82106
82107         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82108         (func_import): Use join on two temporary files instead of three nested
82109         loops, in order to determine which files are new or old.
82110
82111 2005-09-18  Bruno Haible  <bruno@clisp.org>
82112
82113         * gnulib-tool (func_import): Comment out code that spits out the
82114         new files with --dry-run.
82115
82116 2005-09-18  Bruno Haible  <bruno@clisp.org>
82117
82118         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82119
82120 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82121
82122         * lib/stat-time.h: New file.
82123         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82124         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82125         in a different way.
82126         (timespec_cmp): New function.
82127         * lib/utimecmp.c: Include stat-time.h.
82128         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82129         members exist, not on the obsolescent ST_MTIM_NSEC.
82130         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82131
82132 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82133
82134         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82135
82136 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         * MODULES.html.sh (File system functions): Add stat-time.
82139         * modules/stat-time: New file.
82140         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82141         is now done in a different way, by the stat-time module.
82142         * modules/utimecmp (Depends-on): Add stat-time.
82143
82144 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82145
82146         * m4/st_mtim.m4: Remove.  Superseded by...
82147         * m4/stat-time.m4: New file.
82148         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82149         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82150
82151 2005-09-15  Derek Price  <derek@ximbiot.com>
82152
82153         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82154
82155 2005-09-15  Derek Price  <derek@ximbiot.com>
82156
82157         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82158         * lib/regex_internal.c: Ditto, using this...
82159         (__GNUC_PREREQ): ...new macro.
82160         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82161         using...
82162         (__GNUC_PREREQ): ...this new macro.
82163
82164         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82165
82166 2005-09-15  Derek Price  <derek@ximbiot.com>
82167             Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82170         changes, consolidating in...
82171         * lib/regex_internal.h: ...this file.
82172
82173 2005-09-13  Jim Meyering  <jim@meyering.net>
82174
82175         * lib/canon-host.c: Filter through gnu indent and reword comments
82176         slightly.
82177         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82178
82179 2005-09-13  Derek Price  <derek@ximbiot.com>
82180
82181         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82182         failure.
82183         Reported by Jim Meyering  <jim@meyering.net>.
82184
82185 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82186
82187         * lib/base64.c: Typo.
82188         (base64_encode): Put b64str in initialized data section.
82189
82190 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         Merge glibc and coreutils changes into gnulib, plus a few
82193         extra fixes.
82194         * lib/md5.c: Use #error rather than a string.
82195         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82196         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82197         (__attribute__): Define to empty for non recent-GCC.
82198         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82199         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82200         Renamed from their non-__ counterparts, with new macros replacing
82201         them if not _LIBC.  Add __THROW attribute.
82202         (rol): Remove.
82203         (struct md5_ctx): Align buffer if using GCC.
82204         * lib/sha1.h (struct sha1_ctx): Likewise.
82205         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82206         The old name was backwards.
82207         (NOTSWAP): Remove; not used.
82208         (rol): New macro, moved here from md5.h.
82209         (sha1_process_block): Remove a FIXME that doesn't make sense.
82210
82211 2005-09-12  Derek Price  <derek@ximbiot.com>
82212
82213         Return usable errors from canon-host.
82214         * lib/canon-host.h: New file.
82215         * lib/canon-host.c (canon_host): Wrap...
82216         (canon_host_r): ...this new function, which now relies exclusively on
82217         getaddrinfo.
82218         (ch_strerror): New function.
82219         (last_cherror): New global.
82220         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82221         interface.
82222         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82223         void *.
82224         (freeaddrinfo): Free ai->ai_canonname when set.
82225
82226 2005-09-12  Derek Price  <derek@ximbiot.com>
82227
82228         Make canon-host require getaddrinfo.
82229         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82230         AC_LIBSOURCE canon-host.h.  Call...
82231         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82232         gl_GETADDRINFO.
82233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82234
82235 2005-09-12  Derek Price  <derek@ximbiot.com>
82236
82237         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82238         LGPL.
82239         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82240
82241 2005-09-12  Derek Price  <derek@ximbiot.com>
82242
82243         * lib/gai_strerror.c: Include config.h when available.  Include
82244         getaddrinfo.h before other headers to test interface.
82245         Reported by Larry Jones <lawrence.jones@ugs.com>.
82246
82247 2005-09-12  Derek Price  <derek@ximbiot.com>
82248             Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * modules/glob (Files): Add glob-libc.h.
82251
82252 2005-09-12  Derek Price  <derek@ximbiot.com>
82253             Paul Eggert  <eggert@cs.ucla.edu>
82254
82255         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82256         glob_.h, glob-libc.h.
82257         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82258
82259 2005-09-12  Derek Price  <derek@ximbiot.com>
82260             Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82263         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82264         protecting things that should be done only in gnulib contexts.
82265         * lib/glob_.h: New file, containing only the glob things needed for
82266         gnulib.
82267         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82268         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82269         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82270         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82271         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82272         and to respect the namespace rules better.
82273
82274 2005-09-08  Simon Josefsson  <jas@extundo.com>
82275
82276         * modules/socklen: New file.
82277
82278 2005-09-08  Simon Josefsson  <jas@extundo.com>
82279
82280         * m4/socklen.m4: New file.
82281
82282 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * modules/utimens (Files): Add m4/utimbuf.m4, since
82285         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82286         Reported by Sergey Poznyakoff.
82287
82288 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82289
82290         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82291         definitions, since that's the preferred style in glibc.
82292         Fix a minor spacing issue, and update copyright notice to match
82293         glibc's.
82294
82295 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82296
82297         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82298
82299 2005-09-06  Simon Josefsson  <jas@extundo.com>
82300
82301         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82302         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82303
82304 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82305
82306         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82307         warning.
82308
82309 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82310
82311         * config/srclist.txt: Add glibc bug 1302.
82312
82313 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         Change bitset word type from unsigned int to unsigned long int,
82316         as this has better performance on typical 64-bit hosts.
82317         Port bitset code to hosts with unusual word sizes.
82318         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82319         (build_collating_symbol):
82320         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82321         argument is a bitset.  This is merely a style issue, but it makes
82322         it clearer that an entire array is expected.
82323         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82324         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82325         Port to the case where bitset_word is not the same as unsigned int.
82326         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82327         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82328         Likewise.
82329         * lib/regexec.c (check_dst_limits_calc_pos_1,
82330         check_subexp_matching_top):
82331         (build_trtable, group_nodes_into_DFAstates):
82332         Likewise.
82333         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82334         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82335         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82336         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82337         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82338         * lib/regcomp.c (optimize_subexps, lower_subexp):
82339         Work even if bitset_word has holes in its bitwise representation.
82340         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82341         * lib/regexec.c (check_dst_limits_calc_pos_1,
82342         check_subexp_matching_top):
82343         Likewise.
82344         * lib/regex_internal.c (re_string_reconstruct):
82345         Don't assume UCHAR_MAX == 255.
82346         * lib/regex_internal.h (bitset_set_all): Likewise.
82347         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82348         All uses changed.
82349         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82350         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82351         All uses changed.
82352         (BITSET_WORD_MAX): New macro.
82353         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82354         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82355         (bitset_empty, bitset_copy):
82356         Prefer sizeof (bitset) to multiplying it out ourselves.
82357         (bitset_not_merge): Remove; unused.
82358         (bitset_contain): Return bool, not unsigned int with one bit on.
82359         All callers changed.
82360         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82361         alignment than re_node_set; do this by defining a new internal
82362         type struct dests_alloc and using it to allocate memory.
82363
82364 2005-09-05  Bruno Haible  <bruno@clisp.org>
82365
82366         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82367         links.
82368
82369 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82370
82371         * modules/size_max (Makefile.am): Add size_max.h
82372
82373 2005-09-04  Derek Price  <derek@ximbiot.com>
82374
82375         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82376
82377 2005-09-03  Simon Josefsson  <jas@extundo.com>
82378
82379         * gnulib-tool: Fix typo.
82380
82381 2005-09-03  Simon Josefsson  <jas@extundo.com>
82382
82383         * config/srclist.txt: Add glibc bug 1293.
82384
82385 2005-09-03  Derek Price  <derek@ximbiot.com>
82386
82387         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82388         From Larry Jones <lawrence.jones@ugs.com>.
82389
82390 2005-09-02  Simon Josefsson  <jas@extundo.com>
82391
82392         * modules/socklen: New file.
82393
82394 2005-09-02  Simon Josefsson  <jas@extundo.com>
82395
82396         * modules/havelib: New module.
82397
82398         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82399         Use havelib.
82400
82401 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         Check for arithmetic overflow when calculating sizes, to prevent
82404         some buffer-overflow issues.  These patches are conservative, in the
82405         sense that when I couldn't determine whether an overflow was possible,
82406         I inserted a run-time check.
82407         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82408         macros.
82409         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82410         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82411         (re_xnrealloc, re_x2nrealloc): New inline functions.
82412         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82413         parse_bracket_exp):
82414         (build_equiv_class, build_charclass): Check for arithmetic overflow
82415         in size expression calculations.
82416         * lib/regex_internal.c (re_string_realloc_buffers):
82417         (build_wcs_upper_buffer, re_node_set_add_intersect):
82418         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82419         (re_dfa_add_node, register_state): Likewise.
82420         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82421         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82422         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82423         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82424
82425 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82426
82427         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82428         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82429
82430 2005-09-02  Bruno Haible  <bruno@clisp.org>
82431
82432         Support for lib vs. lib64 distinction on biarch platforms.
82433         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82434         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82435         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82436
82437 2005-09-02  Bruno Haible  <bruno@clisp.org>
82438
82439         * gnulib-tool (import): In the other first-use case, provide defaults
82440         as well.
82441
82442 2005-09-02  Bruno Haible  <bruno@clisp.org>
82443
82444         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82445         patches not yet found in the latest gettext release.
82446
82447 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82450         to avoid a collision with bits/local_lim.h in glibc.
82451         All uses changed.  Problem reported by Dmitry V. Levin in
82452         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82453
82454         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82455         bugs in int versus size_t comparisons.
82456         (re_string_context_at): Fix bug where the code assumed that
82457         Idx is signed.
82458
82459         Use bool where appropriate.
82460         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82461         All callers changed.
82462         (calc_eclosure_iter): Likewise, for ROOT arg.
82463         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82464         (build_charclass_op): Likewise, for NON_MATCH arg.
82465         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82466         (re_string_construct_common): Likewise, for ICASE arg.
82467         * lib/regexec.c (re_search_2_stub, re_search_stub):
82468         Likewise, for RET_LEN arg.
82469         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82470         (set_regs): Likewise, for FL_BACKTRACK arg.
82471         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82472         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82473         (calc_eclosure_iter, parse_bracket_exp):
82474         Use bool for internal variables that are booleans.
82475         * lib/regexec.c (re_search_internal, check_matching,
82476         proceed_next_node):
82477         (set_regs, build_sifted_states, sift_states_bkref):
82478         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82479         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82480         (find_collation_sequence_value):
82481         Likewise.
82482         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82483         (re_node_set_compare):
82484         Return bool, not int. All callers changed.
82485         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82486         (build_trtable, check_node_accept): Likewise.
82487         * lib/regex_internal.h: Include stdbool.h.
82488
82489         Fix bugs uncovered when converting to bool.
82490         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82491         failure instead of charging ahead blindly.
82492         * lib/regex_internal.c (register_state): Likewise.
82493         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82494         for freeing internal storage.
82495         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82496         bitset pieces used as boolean, to avoid undefined behavior
82497         on hosts that do int overflow checking.
82498
82499 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82500
82501         * config/srclist.txt: Add glibc bugs 1285-1287.
82502
82503 2005-09-01  Jim Meyering  <jim@meyering.net>
82504
82505         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82506         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82507         Require gl_STAT_MACROS, too.
82508
82509 2005-09-01  Bruno Haible  <bruno@clisp.org>
82510
82511         * gnulib-tool (import): In the first-use case, provide defaults.
82512
82513 2005-09-01  Bruno Haible  <bruno@clisp.org>
82514
82515         * gnulib-tool (func_import): Remove the .tmp files.
82516
82517 2005-09-01  Bruno Haible  <bruno@clisp.org>
82518
82519         * gnulib-tool (func_import): Fix handling of symbolic links.
82520
82521 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82522
82523         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82524         old glibc regex code mishandles strings longer than 2**31 bytes.
82525         This patch fixes this when the regex code is used in gnulib
82526         (i.e., outside glibc).
82527
82528         This patch should not affect the use of the regex code inside
82529         glibc.  No doubt this problem also needs to be handled for glibc
82530         as well, but the result will be an incompatible change to the
82531         glibc ABI, and the old ABI will have to be supported too.  That
82532         can be the the subject for another patch.
82533
82534         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82535         governing whether the rest of this patch is active.  By default,
82536         the macro is disabled and the patch has no effect.
82537         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82538         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82539         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82540         (re_match_2, re_set_registers): Use the new types.
82541         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82542         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82543         New macros.
82544         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82545         (re_string_context_at, bin_tree_t, re_dfastate_t):
82546         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82547         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82548         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82549         (re_string_char_size_at, re_string_wchar_at):
82550         (re_string_elem_size_at):
82551         Use the new types and macros to port to 64-bit hosts.
82552         Use unsigned types for internal values, so that the code
82553         mostly works even for arrays larger than SSIZE_MAX.
82554         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82555         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82556         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82557         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82558         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82559         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82560         (calc_inveclosure, parse_dup_op, build_range_exp):
82561         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82562         (fetch_number, create_token_tree, mark_opt_subexp):
82563         Likewise.
82564         * lib/regex_internal.c (re_string_construct_common,
82565         create_ci_newstate):
82566         (create_cd_newstate, re_string_allocate, re_string_construct):
82567         (re_string_realloc_buffers, build_wcs_upper_buffer):
82568         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82569         (re_string_reconstruct, re_string_peek_byte_case):
82570         (re_string_fetch_byte_case, re_string_context_at):
82571         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82572         (re_node_set_init_copy, re_node_set_add_intersect):
82573         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82574         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82575         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82576         (re_acquire_state, re_acquire_state_context, register_state):
82577         Likewise.
82578         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82579         search_cur_bkref_entry):
82580         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82581         (re_search_internal, re_search_2_stub, re_search_stub)
82582         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82583         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82584         (update_cur_sifted_state, check_dst_limits):
82585         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82586         (check_subexp_limits, sift_states_bkref, merge_state_array):
82587         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82588         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82589         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82590         (expand_bkref_cache, check_node_accept_bytes):
82591         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82592         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82593         (acquire_init_state_context, check_halt_node_context):
82594         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82595         (sift_states_backward, clean_state_log_if_needed):
82596         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82597         (find_recover_state, transit_state_sb, transit_state_mb):
82598         (transit_state_bkref, build_trtable, match_ctx_clean):
82599         Likewise.
82600         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82601         to work around an assumption that REG_MISSING is negative.
82602
82603         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82604         (seek_collating_symbol_entry) [defined _LIBC]:
82605         (lookup_collation_sequence_value) [defined _LIBC]:
82606         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82607         Use prototypes rather than old-style function definitions.
82608         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82609         (transit_state_sb) [0]:
82610         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82611
82612         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82613         rm_eo.
82614
82615         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82616         (optimize_subexps, lower_subexp):
82617         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82618         since the signed shift might overflow.  Use 1u<<31 instead.
82619         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82620         Likewise.
82621         * lib/regexec.c (check_dst_limits_calc_pos_1,
82622         check_subexp_matching_top): Likewise.
82623
82624         * lib/regcomp.c (optimize_subexps, lower_subexp):
82625         Use CHAR_BIT rather than 8, for clarity.
82626         * lib/regexec.c (check_dst_limits_calc_pos_1):
82627         (check_subexp_matching_top): Likewise.
82628         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82629         have to worry about portability issues when shifting it left.
82630         Remove no-longer-needed test for table_size > 0.
82631         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82632         in a word, as the resulting behavior is undefined.
82633         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82634         in one case, a <= should have been an <, and in another case the
82635         whole test was missing.
82636         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82637         the standard name CHAR_BIT.
82638         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82639         this is not true on one's complement and signed-magnitude hosts.
82640
82641         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82642         next_last_offset.
82643         (struct re_dfa_t): Remove unused member states_alloc.
82644         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82645
82646 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82647
82648         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82649         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82650         and large-file glibc and in 32-bit large-file Solaris.
82651
82652 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82655         lengths fit in regoff_t; this isn't true if regoff_t is the same
82656         width as size_t.
82657         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82658         (= START + RANGE) instead of RANGE.  This avoids overflow
82659         problems when regoff_t is the same width as size_t.
82660         All callers changed.
82661         (re_search_2_stub): Check for overflow when adding the
82662         sizes of the two strings.
82663         (re_search_stub): Check for overflow when adding START
82664         to RANGE; if it occurs, substitute the extreme value.
82665
82666 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82669
82670 2005-08-31  Jim Meyering  <jim@meyering.net>
82671
82672         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82673         a pointer-to-const.
82674         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82675         (register_state): Likewise.
82676         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82677         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82678         (group_nodes_into_DFAstates): Likewise.
82679
82680 2005-08-31  Jim Meyering  <jim@meyering.net>
82681
82682         * check-module: Add a FIXME comment.
82683
82684 2005-08-31  Eric Blake  <ebb9@byu.net>
82685
82686         * modules/unistd-safer (Files): Add unistd--.h.
82687         * modules/stdio-safer (Files): Add stdio--.h.
82688
82689 2005-08-31  Derek Price  <derek@ximbiot.com>
82690
82691         * lib/getdelim.c (getdelim): Return EOF on EOF.
82692         Reported by Larry Jones <lawrence.jones@ugs.com>.
82693
82694 2005-08-31  Bruno Haible  <bruno@clisp.org>
82695
82696         Avoid unnecessary diffs in the generated lib/Makefile.am.
82697         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82698         the generated files.
82699         (func_import): Don't set cmd.
82700
82701 2005-08-31  Bruno Haible  <bruno@clisp.org>
82702
82703         * lib/strstr.c: Include <stddef.h>, for NULL.
82704         * lib/strcasestr.c: Likewise.
82705         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82706
82707 2005-08-31  Bruno Haible  <bruno@clisp.org>
82708
82709         * gnulib-tool: New option --macro-prefix.
82710         (func_import): Use macro_prefix.
82711         (import): Handle option --macro-prefix.
82712
82713 2005-08-31  Bruno Haible  <bruno@clisp.org>
82714
82715         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82716         Also use new variables cached_lgpl, cached_libtool.
82717
82718 2005-08-31  Bruno Haible  <bruno@clisp.org>
82719
82720         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82721         always instantiating them.
82722
82723 2005-08-31  Bruno Haible  <bruno@clisp.org>
82724
82725         * gnulib-tool (func_import): Read the previous cached settings
82726         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82727         earlier added by gnulib but are now dropped. Warn when a gnulib file
82728         overwrites a non-gnulib file.
82729
82730 2005-08-31  Bruno Haible  <bruno@clisp.org>
82731
82732         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82733         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82734         projects that don't keep autogenerated files in CVS. Put into
82735         actioncmd only the specified modules, not the transitive closure.
82736
82737 2005-08-31  Bruno Haible  <bruno@clisp.org>
82738
82739         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82740         Create directories that shall be filled.
82741         (import): Don't look for gl_* macros in configure.ac. Recurse across
82742         all directories containing a gnulib-cache.m4 files, if meaningful.
82743
82744 2005-08-31  Bruno Haible  <bruno@clisp.org>
82745
82746         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82747         (import): Set seen_libtool when we see gl_LIBTOOL.
82748
82749 2005-08-31  Bruno Haible  <bruno@clisp.org>
82750
82751         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82752         declaration macro definitions from generated gnulib.m4.
82753
82754 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82755
82756         * lib/iconvme.h: Add prototype for iconv_alloc.
82757
82758 2005-08-29  Simon Josefsson  <jas@extundo.com>
82759
82760         * lib/iconvme.c: Fix errno.
82761
82762 2005-08-29  Bruno Haible  <bruno@clisp.org>
82763
82764         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82765         that it works when the directory contains spaces.
82766
82767 2005-08-29  Bruno Haible  <bruno@clisp.org>
82768
82769         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82770
82771 2005-08-29  Bruno Haible  <bruno@clisp.org>
82772
82773         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82774         Emit more advice.
82775
82776 2005-08-29  Bruno Haible  <bruno@clisp.org>
82777         and Stepan Kasal  <kasal@ucw.cz>
82778
82779         * check-module: If more parameters are given, check each of them
82780         separately; add more exceptions, as noted by Jim Meyering.
82781         (check_module): New procedure.
82782         (%exempt_header): Now contains all exceptions.
82783
82784 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82785
82786         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82787
82788 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82789
82790         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82791
82792 2005-08-28  Bruno Haible  <bruno@clisp.org>
82793
82794         * m4/gnulib-tool.m4: New file.
82795
82796 2005-08-27  Jim Meyering  <jim@meyering.net>
82797
82798         * modules/unistd-safer (Files): Add pipe-safer.c.
82799         * modules/fcntl-safer (Files): Add creat-safer.c.
82800
82801 2005-08-27  Jim Meyering  <jim@meyering.net>
82802
82803         * m4/stdlib-safer.m4: New file.  From coreutils.
82804         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82805         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82806         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82807         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82808         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82809
82810 2005-08-27  Jim Meyering  <jim@meyering.net>
82811
82812         * lib/fopen-safer.c: Merge minor changes from coreutils.
82813         * lib/dup-safer.c: Likewise.
82814         * lib/fd-safer.c: Likewise.
82815
82816         Merge from coreutils.
82817         * lib/stdio--.h: New file.
82818         * lib/stdlib--.h: New file.
82819         * lib/mkstemp-safer.c: New file.
82820
82821         GNU tar needs these.
82822         * lib/pipe-safer.c: New file.
82823         * lib/creat-safer.c: New file.
82824         * lib/fcntl--.h (creat): Define to creat_safer.
82825         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82826         * lib/unistd--.h (pipe): Define to pipe_safer.
82827         * lib/unistd-safer.h: Declare pipe_safer.
82828
82829 2005-08-26  Simon Josefsson  <jas@extundo.com>
82830
82831         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82832         Haible <bruno@clisp.org>.
82833
82834 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82835
82836         * lib/regex_internal.h: Remove all references to
82837         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82838         or better.
82839         (bitset_not, bitset_merge, bitset_not_merge):
82840         (bitset_mask, re_string_allocate, re_string_construct):
82841         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82842         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82843         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82844         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82845         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82846         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82847         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82848         (re_acquire_state_context):
82849         Remove unnecessary forward decls.
82850         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82851         Put __attribute at function definition,
82852         now that the function decl has been removed.
82853         * lib/regex_internal.c (re_string_peek_byte_case):
82854         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82855         Likewise.
82856
82857 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82858
82859         * m4/regex.m4: Add AC_PREREQ(2.50).
82860         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82861
82862 2005-08-25  Simon Josefsson  <jas@extundo.com>
82863
82864         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82865         __fsetlocking.
82866
82867 2005-08-25  Simon Josefsson  <jas@extundo.com>
82868
82869         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82870         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82871         GLIBC specific code.
82872
82873 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         Make regex safe for g++.  This fixes one real bug (an "err"
82876         that should have been "*err").  g++ problem reported by
82877         Sam Steingold.
82878         * lib/regex_internal.h (re_calloc): New macro, consistent with
82879         re_malloc etc.  All callers of calloc changed to use re_calloc.
82880         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82881         not int.  All callers changed.
82882         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82883         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82884         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82885         (find_recover_state): Change "err" to "*err"; this fixes what
82886         appears to be a real bug.
82887         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82888         versus int.
82889
82890 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * modules/regex (Depends-on): Add malloc, since the code
82893         assumes that !malloc(0) means failure.
82894
82895 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82898
82899         alloca modernization/simplification for regex.
82900         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82901         needs to be at the start of the file, and can be moved into
82902         regex_internal.h and simplified.
82903         * lib/regex_internal.h: Include <alloca.h>.
82904         (__libc_use_alloca) [!defined _LIBC]: New macro.
82905         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82906         now works outside glibc.
82907
82908 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82909
82910         * config/srclist.txt: Add glibc bugs 1241, 1245.
82911
82912 2005-08-25  Jim Meyering  <jim@meyering.net>
82913
82914         * lib/open-safer.c: Include <config.h>.
82915         Otherwise, we'd lose LARGEFILE support in any file using
82916         e.g. "fcntl--.h"
82917
82918 2005-08-25  Bruno Haible  <bruno@clisp.org>
82919
82920         * m4/minmax.m4: Require autoconf 2.52.
82921         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82922         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82923         alternatives of translit over the alphabet.
82924         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82925
82926 2005-08-24  Simon Josefsson  <jas@extundo.com>
82927
82928         * tests/test-getpass.c: New file.
82929
82930 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82933         for GNU regex features.
82934
82935 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82938         * lib/regex.h (regerror): Likewise.
82939
82940         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82941         requires this.  (The code never needed it.)
82942
82943         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82944         All uses of recently-renamed identifiers changed to use the new,
82945         POSIX-compliant names.  The code will build and run just fine
82946         without these changes, but it's better to eat our own dog food
82947         and use the standard-conforming names.
82948
82949         * lib/regex.h: Fix a multitude of POSIX name space violations.
82950         These changes have an effect only for programs that define
82951         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82952         do not change anything for programs compiled in the normal way.
82953         Also, there is no effect on the ABI.
82954
82955         (_REGEX_SOURCE): New macro.
82956         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82957         defined and _GNU_SOURCE is not; this fixes a name space violation.
82958
82959         Rename the following macros to obey POSIX requirements.
82960         The old names are still visible as macros if _REGEX_SOURCE is defined.
82961         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82962         RE_BACKSLASH_ESCAPE_IN_LISTS.
82963         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82964         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82965         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82966         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82967         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82968         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82969         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82970         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82971         (REG_INTERVALS): renamed from RE_INTERVALS.
82972         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82973         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82974         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82975         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82976         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82977         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82978         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82979         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82980         RE_UNMATCHED_RIGHT_PAREN_ORD.
82981         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82982         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82983         (REG_DEBUG): renamed from RE_DEBUG.
82984         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82985         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82986         unusual, since we can't clash with the POSIX REG_ICASE.
82987         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82988         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82989         (REG_NO_SUB): renamed from RE_NO_SUB.
82990         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82991         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82992         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82993         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82994         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82995         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82996         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82997         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82998         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82999         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83000         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83001         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83002         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83003         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83004         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83005         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83006         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83007         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83008         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83009         (REG_FIXED): Renamed from REGS_FIXED.
83010         (REG_NREGS): Renamed from RE_NREGS.
83011
83012         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83013         of other REG_* macros, since POSIX says the user is allowed to
83014         #undef these macros selectively.
83015
83016         (reg_errcode_t): Update comment stating what other tables need
83017         to be consistent.
83018
83019         Rename the following enum values to obey POSIX requirements.
83020         The old names are still visible as macros.
83021         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83022         is not defined, since GNU is supposed to be a superset of POSIX as
83023         much as possible, and since we want reg_errcode_t to be a signed
83024         type for implementation consistency.
83025         (_REG_NOERROR): Renamed from REG_NOERROR.
83026         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83027         (_REG_BADPAT): Renamed from REG_BADPAT.
83028         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83029         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83030         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83031         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83032         (_REG_EBRACK): Renamed from REG_EBRACK.
83033         (_REG_EPAREN): Renamed from REG_EPAREN.
83034         (_REG_EBRACE): Renamed from REG_EBRACE.
83035         (_REG_BADBR): Renamed from REG_BADBR.
83036         (_REG_ERANGE): Renamed from REG_ERANGE.
83037         (_REG_ESPACE): Renamed from REG_ESPACE.
83038         (_REG_BADRPT): Renamed from REG_BADRPT.
83039         (_REG_EEND): Renamed from REG_EEND.
83040         (_REG_ESIZE): Renamed from REG_ESIZE.
83041         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83042         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83043         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83044         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83045         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83046
83047         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83048         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83049         changed.  But support the old name if the new one is not defined
83050         and if _REGEX_SOURCE.
83051
83052         Change the following member names in struct re_pattern_buffer.
83053         The old names are still supported if !_REGEX_SOURCE.
83054         The new names are always supported, regardless of _REGEX_SOURCE.
83055         (re_buffer): Renamed from buffer.
83056         (re_allocated): Renamed from allocated.
83057         (re_used): Renamed from used.
83058         (re_syntax): Renamed from syntax.
83059         (re_fastmap): Renamed from fastmap.
83060         (re_translate): Renamed from translate.
83061         (re_can_be_null): Renamed from can_be_null.
83062         (re_regs_allocated): Renamed from regs_allocated.
83063         (re_fastmap_accurate): Renamed from fastmap_accurate.
83064         (re_no_sub): Renamed from no_sub.
83065         (re_not_bol): Renamed from not_bol.
83066         (re_not_eol): Renamed from not_eol.
83067         (re_newline_anchor): Renamed from newline_anchor.
83068
83069         Change the following member names in struct re_registers.
83070         The old names are still supported if !_REGEX_SOURCE.
83071         The new names are always supported, regardless of _REGEX_SOURCE.
83072         (rm_num_regs): Renamed from num_regs.
83073         (rm_start): Renamed from start.
83074         (rm_end): Renamed from end.
83075
83076         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83077         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83078         Prepend __ to parameter names.
83079
83080         Undo yesterday's changes.
83081
83082 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83085         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83086         lib/regex.c.
83087
83088 2005-08-24  Jim Meyering  <jim@meyering.net>
83089
83090         Sync from coreutils.
83091         * m4/fcntl-safer.m4: New file.
83092
83093         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83094         and object files for this module.
83095
83096 2005-08-24  Jim Meyering  <jim@meyering.net>
83097
83098         Sync from coreutils.
83099         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83100
83101 2005-08-24  Jim Meyering  <jim@meyering.net>
83102
83103         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83104         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83105
83106 2005-08-24  Jim Meyering  <jim@meyering.net>
83107
83108         * modules/fcntl-safer: New module.
83109         * modules/fts (Depends-on): Add fcntl-safer.
83110         * MODULES.html.sh (File descriptor based Input/Output):
83111         Add fcntl-safer.
83112
83113 2005-08-24  Bruno Haible  <bruno@clisp.org>
83114
83115         Support for unit test modules.
83116         * modules/README: Mention tests modules.
83117         * modules/TEMPLATE-TESTS: New file.
83118         * gnulib-tool: New options --extract-tests-module, --with-tests and
83119         --tests-base (unused for the moment).
83120         (testsbase, inctests): New variables.
83121         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83122         (func_verify_module): Exclude TEMPLATE-TESTS.
83123         (func_verify_nontests_module, func_verify_tests_module): New functions.
83124         (func_get_dependencies): Add implicit dependency for tests modules.
83125         (func_get_tests_module): New function.
83126         (func_modules_transitive_closure): When --with-tests was specified,
83127         include the unit tests as well, unless explicitly avoided.
83128         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83129         (func_emit_tests_Makefile_am): New function.
83130         (func_create_testdir): When --with-tests was specified, emit a
83131         tests/ directory.
83132         * MODULES.html.sh (Future developments): Update.
83133
83134 2005-08-24  Bruno Haible  <bruno@clisp.org>
83135
83136         * modules/tls-tests: New file.
83137         * tests/test-tls.c: New file, from GNU gettext.
83138
83139 2005-08-24  Bruno Haible  <bruno@clisp.org>
83140
83141         * modules/lock-tests: New file.
83142         * tests/test-lock.c: New file, from GNU gettext.
83143
83144 2005-08-24  Bruno Haible  <bruno@clisp.org>
83145
83146         * lib/lock.h: Add multiple inclusion guard.
83147         * lib/tls.h: Add multiple inclusion guard.
83148
83149 2005-08-24  Bruno Haible  <bruno@clisp.org>
83150
83151         * gnulib-tool: Add support for the --aux-dir option to
83152         --create-testdir, --create-megatestdir, --test, --megatest.
83153         (func_create_testdir, func_create_megatestdir): Optionally emit a
83154         AC_CONFIG_AUX_DIR directive.
83155         (create-testdir, create-megatestdir, test, megatest): Provide a
83156         default value for $auxdir.
83157
83158 2005-08-24  Bruno Haible  <bruno@clisp.org>
83159
83160         * gnulib-tool (import): Use compound statement instead of subshell
83161         where possible.
83162
83163 2005-08-24  Bruno Haible  <bruno@clisp.org>
83164
83165         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83166
83167 2005-08-24  Bruno Haible  <bruno@clisp.org>
83168
83169         * gnulib-tool (func_version): Update.
83170
83171 2005-08-24  Bruno Haible  <bruno@clisp.org>
83172
83173         * gnulib-tool (func_import, func_create_testdir,
83174         func_create_megatestdir): Quote all autoconf macro arguments.
83175
83176 2005-08-24  Bruno Haible  <bruno@clisp.org>
83177
83178         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83179         option --force, because --force causes the aclocal.m4 of each
83180         subdirectory to be newer than the corresponding config.h.in.
83181
83182 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83183
83184         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83185         All contents moved to gl_REGEX.
83186         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83187         assume that it does.
83188
83189 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/regex.h (REG_NOSYS)
83192         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83193         Define, since POSIX requires it as of 2001.
83194         (_REG_ENOSYS)
83195         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83196         New private symbol, used to keep the enum signed in all cases.
83197         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83198         Youngman in
83199         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83200
83201         * lib/regex_internal.c (re_string_skip_chars, register_state):
83202         (calc_state_hash):
83203         Remove forward decls; no longer needed now that we use prototypes.
83204         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83205         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83206         (clean_state_log_if_needed): Likewise.
83207
83208 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         * config/srclist.txt: Add glibc bugs 1231-1233.
83211
83212 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83213
83214         Fix problems reported by Sam Steingold in
83215         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83216         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83217         assumed that reg_errcode_t is a signed type, which is not
83218         necessarily true if _XOPEN_SOURCE is not defined.
83219         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83220         since some compilers warn about it otherwise.
83221
83222 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83223
83224         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83225         (init_word_char, create_initial_state, duplicate_node_closure):
83226         (fetch_token, peek_token_bracket, build_range_exp):
83227         (build_collating_symbol): Remove forward decls; no longer needed
83228         now that we use prototypes.
83229
83230         * lib/regcomp.c:
83231         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83232         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83233         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83234         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83235         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83236         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83237         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83238         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83239         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83240         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83241         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83242         (build_charclass, build_charclass_op, fetch_number, create_tree):
83243         (create_token_tree, mark_opt_subexp, duplicate_tree):
83244         Use prototypes rather than old-style definitions.
83245
83246         * lib/regex_internal.c:
83247         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83248         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83249         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83250         (re_string_reconstruct, re_string_peek_byte_case):
83251         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83252         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83253         (re_node_set_init_copy, re_node_set_add_intersect):
83254         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83255         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83256         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83257         (re_acquire_state, re_acquire_state_context, register_state):
83258         (create_ci_newstate, create_cd_newstate, free_state):
83259         Likewise.
83260         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83261         re_search_2):
83262         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83263         (re_search_internal, prune_impossible_nodes):
83264         (acquire_init_state_context, check_matching, static):
83265         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83266         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83267         (update_regs, sift_states_backward, build_sifted_states):
83268         (clean_state_log_if_needed, merge_state_array):
83269         (update_cur_sifted_state, add_epsilon_src_nodes):
83270         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83271         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83272         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83273         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83274         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83275         (check_arrival, check_arrival_add_next_nodes):
83276         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83277         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83278         (check_node_accept_bytes, check_node_accept, extend_buffers):
83279         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83280         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83281         (sift_ctx_init):
83282         Likewise.
83283
83284         * lib/regex_internal.h:
83285         (re_string_allocate, re_string_construct, re_string_reconstruct):
83286         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83287         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83288         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83289         (re_string_context_at, re_string_peek_byte_case):
83290         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83291         is defined, since we now use prototypes always.
83292
83293         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83294         C89 or better.  All uses removed.
83295
83296 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83297
83298         * config/srclist.txt: Add glibc bugs 1220-1227.
83299
83300 2005-08-20  Jim Meyering  <jim@meyering.net>
83301
83302         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83303         of unused local, dfa.
83304
83305 2005-08-20  Bruno Haible  <bruno@clisp.org>
83306
83307         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83308
83309 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83310
83311         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83312         (re_node_set_insert_last, re_dfa_add_node):
83313         Rename local variables to avoid GCC shadowing warnings.
83314
83315 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83316
83317         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83318         [defined lint]: Suppress bogus uninitialized-variable warnings.
83319
83320         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83321         and let the caller return REG_ESPACE if out of space.  This
83322         removes an uninitialied-variable warning with GCC 4.0.1, and also
83323         avoids taking the address of a local variable.  All callers
83324         changed.
83325
83326 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83327
83328         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83329         $LIBCSRC/posix/regexec.c.
83330         Add glibc bug 1217 for regcomp.c.
83331
83332 2005-08-19  Jim Meyering  <jim@meyering.net>
83333
83334         * lib/regexec.c (proceed_next_node): Redo local variables to
83335         avoid GCC shadowing warnings.
83336
83337 2005-08-18  Bruno Haible  <bruno@clisp.org>
83338
83339         * lib/strstr.c (strstr): Fix return value in multibyte case.
83340         * lib/strcasestr.c (strcasestr): Likewise.
83341
83342 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83343
83344         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83345
83346 2005-08-17  Jim Meyering  <jim@meyering.net>
83347
83348         Make the %s format (seconds since the epoch) work for a negative
83349         number and when used with a zero-padded field width, e.g. %015s.
83350
83351         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83352         label so that it precedes the code to set `digits'.  Otherwise,
83353         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83354         print `00-22'.  Now, it prints `-0022', as it should.
83355
83356 2005-08-17  Bruno Haible  <bruno@clisp.org>
83357
83358         * modules/strstr (Files): Add m4/mbrtowc.m4.
83359         (Depends-on): Add mbuiter.
83360
83361 2005-08-17  Bruno Haible  <bruno@clisp.org>
83362
83363         * modules/strcasestr: New file.
83364         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83365         strcasestr.
83366
83367 2005-08-17  Bruno Haible  <bruno@clisp.org>
83368
83369         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83370
83371 2005-08-17  Bruno Haible  <bruno@clisp.org>
83372
83373         * modules/mbuiter: New file.
83374         * MODULES.html.sh (Extended multibyte and wide character utilities):
83375         Add mbuiter.
83376
83377 2005-08-17  Bruno Haible  <bruno@clisp.org>
83378
83379         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83380         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83381
83382 2005-08-17  Bruno Haible  <bruno@clisp.org>
83383
83384         * m4/strcasestr.m4: New file.
83385
83386 2005-08-17  Bruno Haible  <bruno@clisp.org>
83387
83388         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83389         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83390
83391 2005-08-17  Bruno Haible  <bruno@clisp.org>
83392
83393         * lib/strcasestr.h: New file.
83394         * lib/strcasestr.c: New file.
83395
83396 2005-08-17  Bruno Haible  <bruno@clisp.org>
83397
83398         * lib/strcasecmp.c: Use mbuiter.h.
83399
83400 2005-08-17  Bruno Haible  <bruno@clisp.org>
83401
83402         * lib/mbuiter.h: New file.
83403
83404 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83405
83406         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83407         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83408         and gl_GETOPT are both invoked via different paths (as happens
83409         with GNU tar CVS because it uses both argp and getopt), the former
83410         wins.
83411
83412 2005-08-16  Bruno Haible  <bruno@clisp.org>
83413
83414         * modules/tls: New file.
83415         * MODULES.html.sh (Multithreading): Add tls.
83416
83417 2005-08-16  Bruno Haible  <bruno@clisp.org>
83418
83419         * modules/strnlen1: New file.
83420         * MODULES.html.sh (String handling): Add strnlen1.
83421
83422 2005-08-16  Bruno Haible  <bruno@clisp.org>
83423
83424         * modules/strcase (Files): Add m4/mbrtowc.m4.
83425         (Depends-on): Add strnlen1, mbchar.
83426
83427 2005-08-16  Bruno Haible  <bruno@clisp.org>
83428
83429         * modules/mbiter: New file.
83430         * MODULES.html.sh (Extended multibyte and wide character utilities):
83431         Add mbiter.
83432
83433 2005-08-16  Bruno Haible  <bruno@clisp.org>
83434
83435         * modules/mbfile: New file.
83436         * MODULES.html.sh (Extended multibyte and wide character utilities):
83437         Add mbfile.
83438
83439 2005-08-16  Bruno Haible  <bruno@clisp.org>
83440
83441         * modules/mbchar: New file.
83442         * MODULES.html.sh (Extended multibyte and wide character utilities):
83443         New section.
83444
83445 2005-08-16  Bruno Haible  <bruno@clisp.org>
83446
83447         * m4/tls.m4: New file, from GNU gettext.
83448
83449 2005-08-16  Bruno Haible  <bruno@clisp.org>
83450
83451         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83452         always.
83453         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83454
83455 2005-08-16  Bruno Haible  <bruno@clisp.org>
83456
83457         * m4/mbiter.m4: New file.
83458
83459 2005-08-16  Bruno Haible  <bruno@clisp.org>
83460
83461         * m4/mbfile.m4: New file.
83462
83463 2005-08-16  Bruno Haible  <bruno@clisp.org>
83464
83465         * m4/mbchar.m4: New file.
83466
83467 2005-08-16  Bruno Haible  <bruno@clisp.org>
83468
83469         * lib/tls.h: New file, from GNU gettext.
83470         * lib/tls.c: New file, from GNU gettext.
83471
83472 2005-08-16  Bruno Haible  <bruno@clisp.org>
83473
83474         * lib/strnlen1.h: New file.
83475         * lib/strnlen1.c: New file.
83476
83477 2005-08-16  Bruno Haible  <bruno@clisp.org>
83478
83479         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83480         (mbi_init): Update.
83481         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83482         NUL byte, not after it.
83483
83484 2005-08-16  Bruno Haible  <bruno@clisp.org>
83485
83486         * lib/strcase.h (strcasecmp): Add note in comments.
83487         * lib/strncasecmp.c: Use code from strcasecmp.c.
83488         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83489         (strcasecmp): Work correctly in multibyte locales.
83490
83491 2005-08-16  Bruno Haible  <bruno@clisp.org>
83492
83493         * lib/mbiter.h: New file.
83494
83495 2005-08-16  Bruno Haible  <bruno@clisp.org>
83496
83497         * lib/mbfile.h: New file.
83498
83499 2005-08-16  Bruno Haible  <bruno@clisp.org>
83500
83501         * lib/mbchar.h: New file.
83502         * lib/mbchar.c: New file.
83503
83504 2005-08-16  Bruno Haible  <bruno@clisp.org>
83505
83506         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83507         the valid ones. Makes the comparison operations transitive:
83508         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83509         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83510
83511 2005-08-15  Simon Josefsson  <jas@extundo.com>
83512
83513         * modules/ssize_t (License): Change to 'unlimited'.
83514
83515         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83516
83517 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83520         Add comments for each pending glibc patch.
83521
83522 2005-08-15  Bruno Haible  <bruno@clisp.org>
83523
83524         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83525         __cplusplus is defined.
83526
83527 2005-08-14  Jim Meyering  <jim@meyering.net>
83528
83529         Sync from coreutils.
83530
83531         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83532         Use the hash-table-based cycle-detection code not just when
83533         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83534         Reported by James Youngman in
83535         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83536         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83537         FTS_TIGHT_CYCLE_CHECK.
83538         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83539         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83540         once again.
83541         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83542         * lib/fts.c (fd_safer): Remove decl.
83543         Include fcntl--.h rather than unistd-safer.h
83544         (fts_safe_changedir): Don't call fd_safer; no longer needed
83545         now that we include fcntl--.h.
83546
83547 2005-08-12  Simon Josefsson  <jas@extundo.com>
83548
83549         * modules/getndelim2: Use ssize_t module.
83550         * modules/getnline: Likewise.
83551         * modules/safe-read: Likewise.
83552         * modules/xreadlink: Likewise.
83553
83554         * modules/ssize_t: New file.
83555
83556 2005-08-12  Simon Josefsson  <jas@extundo.com>
83557
83558         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83559
83560 2005-08-12  Simon Josefsson  <jas@extundo.com>
83561
83562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83563         ssize_t.
83564
83565 2005-08-12  Simon Josefsson  <jas@extundo.com>
83566
83567         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83568         readline, getdelim and check_version.
83569         (Support for systems lacking ISO C 99: Sizes of integer types):
83570         Add size_max.
83571
83572 2005-08-12  Bruno Haible  <bruno@clisp.org>
83573
83574         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83575
83576 2005-08-11  Simon Josefsson  <jas@extundo.com>
83577
83578         * modules/readline: New file.
83579
83580         * modules/strnlen (Files): Add strnlen.h.
83581
83582 2005-08-11  Simon Josefsson  <jas@extundo.com>
83583
83584         * m4/readline.m4: New file.
83585
83586 2005-08-11  Simon Josefsson  <jas@extundo.com>
83587
83588         * lib/readline.h, readline.c: New file.
83589
83590 2005-08-11  Simon Josefsson  <jas@extundo.com>
83591
83592         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83593         gl_AVOID.
83594
83595 2005-08-11  Bruno Haible  <bruno@clisp.org>
83596
83597         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83598
83599 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83600
83601         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83602
83603 2005-08-10  Simon Josefsson  <jas@extundo.com>
83604
83605         * tests/test-iconvme.c: New file.
83606
83607 2005-08-10  Simon Josefsson  <jas@extundo.com>
83608
83609         * m4/strnlen.m4: New file.
83610
83611         * m4/strndup.m4: Don't check for strnlen declaration, done in
83612         strnlen.m4.
83613
83614 2005-08-10  Simon Josefsson  <jas@extundo.com>
83615
83616         * lib/strndup.c: Use strnlen.h.
83617
83618         * lib/strnlen.h: New file.
83619
83620 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83621
83622         * README: Typos.
83623
83624 2005-08-02  Simon Josefsson  <jas@extundo.com>
83625
83626         * modules/readline: New file.
83627
83628 2005-08-02  Simon Josefsson  <jas@extundo.com>
83629
83630         * modules/getdelim: New file.
83631
83632         * modules/getline: Rewrite, don't use getndelim2.
83633
83634 2005-08-02  Simon Josefsson  <jas@extundo.com>
83635
83636         * m4/getline.m4: Separate out getdelim stuff into separate module.
83637
83638         * m4/getdelim.m4: New file.
83639
83640 2005-08-02  Simon Josefsson  <jas@extundo.com>
83641
83642         * lib/getline.h, getline.c: Rewrite.
83643
83644         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83645
83646 2005-07-31  Bruno Haible  <bruno@clisp.org>
83647
83648         * lib/lock.h (gl_lock_initializer): New macro.
83649         (gl_lock_define_initialized): Use it.
83650         (gl_rwlock_initializer): New macro.
83651         (gl_rwlock_define_initialized): Use it.
83652         (gl_recursive_lock_initializer): New macro.
83653         (gl_recursive_lock_define_initialized): Use it.
83654
83655 2005-07-30  Karl Berry  <karl@gnu.org>
83656
83657         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83658         Report from Ben Pfaff, regarding getopt.
83659
83660 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83663         normal way.
83664         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83665         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83666         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83667         (gl_GETOPT): Use the new macros.  Most of the implementation
83668         is moved to the new macros.  This is for programs like Emacs
83669         that don't want all the functionality of gl_GETOPT.
83670
83671 2005-07-26  Bruno Haible  <bruno@clisp.org>
83672
83673         * m4/lock.m4: Update from GNU gettext.
83674
83675 2005-07-26  Bruno Haible  <bruno@clisp.org>
83676
83677         * lib/lock.h: Update from GNU gettext.
83678         * lib/lock.c: Update from GNU gettext.
83679
83680 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83681
83682         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83683         obsolescent AC_TRY_RUN.  Include the default includes files, for
83684         'exit'.
83685
83686 2005-07-24  Bruno Haible  <bruno@clisp.org>
83687
83688         * modules/visibility: New file.
83689         * MODULES.html.sh (Misc): Add visibility.
83690
83691 2005-07-24  Bruno Haible  <bruno@clisp.org>
83692
83693         * m4/visibility.m4: New file.
83694
83695 2005-07-24  Bruno Haible  <bruno@clisp.org>
83696
83697         * doc/visibility.texi: New file.
83698
83699 2005-07-22  Bruno Haible  <bruno@clisp.org>
83700
83701         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83702         $(ALLOCA_H), redundant through BUILT_SOURCES.
83703         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83704         redundant through BUILT_SOURCES.
83705         * modules/byteswap (Makefile.am): Remove explicit dependency on
83706         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83707         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83708         $(FNMATCH_H), redundant through BUILT_SOURCES.
83709         * modules/getopt (Makefile.am): Remove explicit dependency on
83710         $(GETOPT_H), redundant through BUILT_SOURCES.
83711         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83712         redundant through BUILT_SOURCES.
83713         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83714         redundant through BUILT_SOURCES.
83715         * modules/stdbool (Makefile.am): Remove explicit dependency on
83716         $(STDBOOL_H), redundant through BUILT_SOURCES.
83717         * modules/stdint (Makefile.am): Remove explicit dependency on
83718         $(STDINT_H), redundant through BUILT_SOURCES.
83719         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83720         Remove explicit dependency on $(SYSEXITS_H).
83721         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83722
83723 2005-07-18  Simon Josefsson  <jas@extundo.com>
83724
83725         * lib/check-version.c (check_version): Accept identical versions too.
83726
83727 2005-07-18  Bruno Haible  <bruno@clisp.org>
83728
83729         * modules/lock: New file.
83730         * MODULES.html.sh (Multithreading): New section.
83731
83732 2005-07-18  Bruno Haible  <bruno@clisp.org>
83733
83734         * m4/lock.m4: New file, from GNU gettext.
83735
83736 2005-07-18  Bruno Haible  <bruno@clisp.org>
83737
83738         * lib/lock.h: New file, from GNU gettext.
83739         * lib/lock.c: New file, from GNU gettext.
83740
83741 2005-07-18  Bruno Haible  <bruno@clisp.org>
83742
83743         * lib/lock.h (gl_once_t): New type.
83744         (gl_once_define, gl_once): New macros.
83745         * lib/lock.c (fresh_once): New variable.
83746         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83747         functions.
83748
83749 2005-07-16  Simon Josefsson  <jas@extundo.com>
83750
83751         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83752         workaround, suggested by Bruno.
83753
83754 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         * modules/xalloc (Depends-on): Add xalloc-die.
83757         * modules/xvasprintf (Depends-on): Add xalloc-die.
83758
83759 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83760
83761         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83762         with a minor change.
83763
83764 2005-07-15  Bruno Haible  <bruno@clisp.org>
83765
83766         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83767         When using lib/poll.c, define poll as rpl_poll.
83768
83769 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * modules/argp (Depends-on): Remove unlocked-io.
83772
83773 2005-07-14  Derek Price  <derek@ximbiot.com>
83774
83775         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83776         for glob symlink bug.
83777
83778 2005-07-14  Bruno Haible  <bruno@clisp.org>
83779
83780         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83781         Instead, test for *_unlocked function declarations directly.
83782
83783 2005-07-11  Simon Josefsson  <jas@extundo.com>
83784
83785         * modules/size_max: New file.
83786
83787         * modules/xsize: Depend on size_max module for size_max.m4.
83788
83789 2005-07-11  Simon Josefsson  <jas@extundo.com>
83790
83791         * lib/size_max.h: New file.
83792
83793 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83796         copyright symbol and the year.
83797         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83798         (version_etc_va): Use parameterized copyright notice.
83799         Reword to conform to the current GNU coding standards.
83800
83801 2005-07-11  Karl Berry  <karl@gnu.org>
83802
83803         * doc/gnulib.texi (Quoting): new node.
83804         (Initial import): more info, from Patrice.
83805
83806 2005-07-11  Bruno Haible  <bruno@clisp.org>
83807
83808         * gnulib-tool (func_usage): Document option --avoid.
83809         (Command line options): Handle --avoid.
83810         (func_acceptable): New function.
83811         (func_modules_transitive_closure): Use it.
83812
83813 2005-07-11  Bruno Haible  <bruno@clisp.org>
83814
83815         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83816         Reported by Jim Meyering.
83817
83818 2005-07-10  Bruno Haible  <bruno@clisp.org>
83819
83820         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83821         Needed when size_t is smaller than 'unsigned int'.
83822         Reported by Paul Eggert.
83823
83824 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83825
83826         * modules/argp (Depends-on): Add unlocked-io
83827
83828 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83829
83830         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83831         block of defines.
83832
83833 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83834
83835         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83836         fix now.
83837
83838 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83839         and Paul Eggert  <eggert@cs.ucla.edu>
83840
83841         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83842         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83843
83844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         * modules/regex (Files): Add lib/regex_internal.c,
83847         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83848         (Depends-on): Add extensions.
83849         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83850
83851 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83854         pathconf.
83855         * m4/same.m4 (gl_SAME): Likewise.
83856         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83857
83858         * m4/regex.m4: Adjust to new libc regex implementation.
83859         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83860         all the .c and .h parts of (the new) regex.
83861         Quote the m4 stuff better.
83862         Check for RE_ICASE bug of old gnulib.
83863         Check for REG_STARTEND of recent libc.
83864         Rename local variables from jm_* to gl_*.
83865         Quote operand of "test -f".
83866         Say "recent enough" version of libc, not "version 2".
83867         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83868         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83869         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83870         Remove check for btowc, isascii.
83871         Require AM_LANGINFO_CODESET.
83872
83873 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83874
83875         * lib/regex.c, regex.h: Sync from libc.
83876         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83877         * lib/regexec.c:
83878         New files, synced from libc, except that regex_internal.h
83879         currently has a small porting fix.
83880
83881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83884         regex_internal.c, regexec.c.
83885         Add regex_internal.h too, but as a comment, since the libc version
83886         is currently broken in gnulib mode.
83887
83888 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83889
83890         Support programs like Emacs that use gnulib but not gettext.
83891         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83892         * modules/gettext-h: New file.
83893         * modules/gettext (Files): Remove lib/gettext.h.
83894         (Depends-on): Add gettext-h.
83895         (Makefile.am): Remove lib_SOURCES.
83896         * modules/argmatch, modules/c-stack, modules/closeout:
83897         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83898         * modules/execute, modules/file-type, modules/getaddrinfo:
83899         * modules/getopt, modules/human, modules/javacomp:
83900         * modules/javaexec, modules/mkdir-p, modules/obstack:
83901         * modules/openat, modules/pagealign_alloc, modules/pipe:
83902         * modules/quotearg, modules/regex, modules/rpmatch:
83903         * modules/unicodeio, modules/userspec, modules/version-etc:
83904         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83905         * modules/xsetenv:
83906         Depend on gettext-h, not gettext.
83907
83908 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83909
83910         * gnulib-tool (func_import): Add support for 'public domain' license.
83911         * modules/alloca, modules/atexit, modules/memmove:
83912         Now public domain, not GPL.
83913         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83914         * modules/realloc, modules/strerror, modules/strtod:
83915         Now LGPL, not GPL.
83916
83917 2005-07-05  Bruno Haible  <bruno@clisp.org>
83918
83919         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83920         autoconf CVS. Needed for mingw.
83921
83922 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         Remove the dependency of the strftime module on the tzset module.
83925         * modules/strftime (Depends-on): Remove dependency on tzset.
83926
83927 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83928
83929         Remove the dependency of the strftime module on the tzset module.
83930         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83931         gl_FUNC_TZSET_CLOBBER.
83932
83933 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83934
83935         Remove the dependency of the strftime module on the tzset module.
83936         * lib/strftime.c (my_strftime)
83937         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83938         Copy the input structure, to work around some of the bug with
83939         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83940         Solaris releases, you should also use the tzset module, but we won't
83941         require it as a dependency any more since we don't want LGPLed code
83942         to depend on GPLed code.
83943
83944 2005-07-02  Jim Meyering  <jim@meyering.net>
83945
83946         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83947         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83948         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83949         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83950
83951 2005-07-02  Jim Meyering  <jim@meyering.net>
83952
83953         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83954
83955 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83956
83957         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83958         declares only 'struct timespec;' (!).
83959
83960 2005-07-01  Jim Meyering  <jim@meyering.net>
83961
83962         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83963         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83964         * lib/save-cwd.c, tempname.c:
83965         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83966         and don't include <sys/file.h>).
83967
83968 2005-06-29  Jim Meyering  <jim@meyering.net>
83969
83970         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83971         type name.  Use the variable name instead.
83972         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83973         Likewise.
83974
83975 2005-06-28  Simon Josefsson  <jas@extundo.com>
83976
83977         * modules/check-version (Files): Add check-version.m4.
83978
83979 2005-06-28  Simon Josefsson  <jas@extundo.com>
83980
83981         * m4/check-version.m4: New file, suggested by Jim Meyering
83982         <jim@meyering.net>.
83983
83984 2005-06-28  Simon Josefsson  <jas@extundo.com>
83985
83986         * lib/check-version.h, lib/check-version.c: New files.
83987
83988 2005-06-28  Simon Josefsson  <jas@extundo.com>
83989
83990         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83991         collision with global variable.  Better indentation.  Don't
83992         increment buffer pointer beyond buffer end.  Based on comments
83993         from Paul Eggert <eggert@cs.ucla.edu>.
83994
83995         * lib/base64.h: Indent.
83996
83997 2005-06-28  Simon Josefsson  <jas@extundo.com>
83998
83999         * doc/gnulib.texi (Library version handling): New section.
84000
84001 2005-06-28  Jim Meyering  <jim@meyering.net>
84002
84003         * check-module (find_included_lib_files): Hard-code another
84004         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84005         but modules/fts-lgpl (correctly) does not list those files.
84006
84007         * modules/canonicalize (Files): Add lib/pathmax.h.
84008
84009 2005-06-25  Simon Josefsson  <jas@extundo.com>
84010
84011         * modules/check-version: New file.
84012
84013 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84014
84015         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84016         initializer of struct addrinfo, as an indication that we don't
84017         care how many members the structure has.
84018
84019 2005-06-24  Derek Price  <derek@ximbiot.com>
84020         and Bruno Haible  <bruno@clisp.org>
84021
84022         Remove stat module & update lstat.
84023         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84024         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84025         * m4/stat.m4: Remove this file.
84026
84027 2005-06-24  Derek Price  <derek@ximbiot.com>
84028         and Bruno Haible  <bruno@clisp.org>
84029
84030         Remove stat module & update lstat.
84031         * lib/stat.c: Remove this file...
84032         (slash_aware_lstat): ...moving this content and its support...
84033         * lib/lstat.c (rpl_lstat): ...into here.
84034         * lib/lstat.h: New file.
84035
84036 2005-06-24  Derek Price  <derek@ximbiot.com>
84037         and Bruno Haible  <bruno@clisp.org>
84038
84039         Remove stat module & update lstat.
84040         * config/srclist.txt (libc sources): Remove stat.
84041
84042 2005-06-24  Derek Price  <derek@ximbiot.com>
84043         and Bruno Haible  <bruno@clisp.org>
84044
84045         Remove stat module & update lstat.
84046         * MODULES.html.sh (stat): Remove.
84047         * MODULES.html: Regenerated.
84048         * modules/lstat (Description): Correct function name.
84049         (Files): Add "lstat.h".
84050         (Depends-on): Remove stat, add xalloc, stat-macros.
84051         * modules/stat: Remove this file.
84052         (Include): Add "lstat.h", remove <sys/stat.h>.
84053
84054 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84057         (ranged_convert): Don't save conversion in a temporary struct.
84058         This causes a warning with GCC 4.0.0, and anyway in the typical
84059         case it's not worth the extra 100 bytes or so of code.
84060         (ranged_convert, __mktime_internal): When calling a function via a
84061         pointer P, use P () rather than (*P) (), as we now assume C89 or
84062         better.
84063
84064 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84065
84066         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84067         "who -r" failed to give output.  Problem reported by Tim Waugh.
84068
84069         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84070         (xcalloc): Use it to avoid needless tests.
84071         Problem reported by Jim Meyering.
84072
84073 2005-06-20  Derek Price  <derek@ximbiot.com>
84074
84075         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84076         unnecessary for Autoconfs > 2.59c.
84077
84078 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84079
84080         * lib/argp.h (__option_is_short): Check upper limit of
84081         __key. Isprint() requires its argument to have the value
84082         of an unsigned char or EOF.
84083
84084 2005-06-16  Jim Meyering  <jim@meyering.net>
84085
84086         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84087         when either N or S is zero.
84088
84089 2005-06-16  Derek Price  <derek@ximbiot.com>
84090
84091         * m4/bison.m4: Declare YACC & YFLAGS precious.
84092
84093 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84096         multibyte string or pattern, fall back on unibyte matching.
84097         Problem reported by James Youngman.
84098
84099 2005-06-08  Bruno Haible  <bruno@clisp.org>
84100
84101         * modules/csharpcomp: New file.
84102         * MODULES.html.sh (C#): Add csharpcomp.
84103
84104 2005-06-08  Bruno Haible  <bruno@clisp.org>
84105
84106         * m4/csharpcomp.m4: New file, from GNU gettext.
84107
84108 2005-06-08  Bruno Haible  <bruno@clisp.org>
84109
84110         * lib/csharpcomp.h: New file, from GNU gettext.
84111         * lib/csharpcomp.c: New file, from GNU gettext.
84112         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84113
84114 2005-06-08  Bruno Haible  <bruno@clisp.org>
84115
84116         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84117         warning on mingw.
84118
84119 2005-06-07  Derek Price  <derek@ximbiot.com>
84120
84121         Sync from CVS.
84122         * lib/glob_.h: Indent nested #ifdef.
84123
84124 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         Sync from coreutils.
84127         Use "file name" when talking about file names, instead of "filename"
84128         or "path", as per the GNU coding standards.
84129         * lib/mkdir-p.c: Renamed from makepath.c.
84130         (make_dir_parents): Renamed from make_path.  All callers changed.
84131         * lib/mkdir-p.h: Likewise.  All includers changed.
84132         * lib/filenamecat.c: Renamed from path-concat.c.
84133         (file_name_concat): Renamed from path_concat.  All callers changed.
84134         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84135         * lib/filenamecat.h: Likewise.  All includers changed.
84136         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84137         in comments or local variable names.
84138         * lib/basename.c: Likewise.
84139         * lib/canonicalize.c, canonicalize.h: Likewise.
84140         * lib/dirname.c, dirname.h: Likewise.
84141         * lib/euidaccess.c: Likewise.
84142         * lib/exclude.c: Likewise
84143         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84144         * lib/fsusage.c, fsuage.h: Likewise.
84145         * lib/fts.c, fts_.h: Likewise.
84146         * lib/getcwd.c: Likewise.
84147         * lib/getloadavg.c: Likewise.
84148         * lib/mkstemp.c: Likewise.
84149         * lib/mountlist.c, mountlist.h: Likewise.
84150         * lib/openat.c, openat.h: Likewise.
84151         * lib/readlink-stub.c: Likewise.
84152         * lib/readutmp.c, readutmp.h: Likewise.
84153         * lib/rename.c: Likewise.
84154         * lib/rmdir.c: Likewise.
84155         * lib/same.c: Likewise.
84156         * lib/savedir.c: Likewise.
84157         * lib/stripslash.c: Likewise.
84158         * lib/tempname.c: Likewise.
84159         * lib/xreadlink.c: Likewise.
84160         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84161         All uses changed.
84162         * lib/exclude.h: Likewise.
84163
84164         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84165         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84166         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84167         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84168         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84169         files have been getting away with it for years (MORE/BSD 4.3
84170         is extinct now).
84171         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84172         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84173
84174         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84175         Define to 256, not 255, as per modern POSIX.
84176
84177 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84178
84179         Sync from coreutils.
84180         Use "file name" when talking about file names, instead of "filename"
84181         or "path", as per the GNU coding standards.
84182         * MODULES.html.sh: mkdir-p renamed from makepath.
84183         filenamecat renamed from path-concat.
84184         * modules/filenamecat: Renamed from modules/path-concat.
84185         (Files): filenamecat.h and filenamecat.c renamed from
84186         path-concat.h and path-concat.c.
84187         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84188         (Include): filenamecat.h, not path-concat.h.
84189         * modules/mkdir-p: Renamed from modules/makepath.
84190         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84191         makepath.c.
84192         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84193         (Include): mkdir-p.h, not makepath.h.
84194
84195 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84196
84197         Sync from coreutils.
84198         * m4/mkdir-p.m4: Renamed from makepath.m4.
84199         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84200         Rename files from makepath.c to mkdir-p.c, and from
84201         makepath.h to mkdir-p.h.
84202         * m4/filenamecat.m4: Renamed from path-concat.m4.
84203         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84204         Rename files from path-concat.c to filenamecat.c,
84205         and from path-concat.h to filenamecat.h.
84206         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84207         "file name" in local variables or comments.
84208         * m4/rename.m4: Likewise.
84209
84210 2005-06-01  Bruno Haible  <bruno@clisp.org>
84211
84212         * modules/csharpexec: New file.
84213         * MODULES.html.sh (C#): New section.
84214
84215 2005-06-01  Bruno Haible  <bruno@clisp.org>
84216
84217         * m4/csharp.m4: New file, from GNU gettext.
84218         * m4/csharpexec.m4: New file, from GNU gettext.
84219
84220 2005-06-01  Bruno Haible  <bruno@clisp.org>
84221
84222         * lib/csharpexec.h: New file, from GNU gettext.
84223         * lib/csharpexec.c: New file, from GNU gettext.
84224         * lib/csharpexec.sh.in: New file, from GNU gettext.
84225
84226 2005-05-31  Derek Price  <derek@ximbiot.com>
84227             Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         Sync from cvs.
84230         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84231
84232 2005-05-31  Derek Price  <derek@ximbiot.com>
84233             Paul Eggert  <eggert@cs.ucla.edu>
84234
84235         Sync from cvs.
84236         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84237
84238 2005-05-29  Derek Price  <derek@ximbiot.com>
84239
84240         * config/srclist.txt (glob_.h, glob.c): Add these files.
84241
84242 2005-05-29  Derek Price  <derek@ximbiot.com>
84243
84244         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84245         * modules/glob: New file.
84246         * modules/getlogin_r: Add link to POSIX spec in description.
84247
84248 2005-05-29  Derek Price  <derek@ximbiot.com>
84249             Paul Eggert  <eggert@cs.ucla.edu>
84250
84251         * m4/glob.m4: New file.
84252
84253 2005-05-29  Derek Price  <derek@ximbiot.com>
84254             Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * lib/glob_.h, lib/glob.c: New files.
84257
84258 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84259
84260         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84261         * modules/fts-lgpl (Depends-on): Remove gettext.
84262
84263 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84264
84265         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84266         and don't require gt_INTTYPES_PRI.
84267
84268 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84269
84270         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84271
84272         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84273         the configuration hassle isn't worth it.
84274         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84275         (LONGEST_MODIFIER, PRIuMAX): Remove.
84276
84277 2005-05-27  Bruno Haible  <bruno@clisp.org>
84278
84279         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84280
84281 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84282
84283         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84284         _POSIX_PTHREAD_SEMANTICS for Solaris.
84285
84286 2005-05-25  Derek Price  <derek@ximbiot.com>
84287
84288         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84289
84290 2005-05-25  Derek Price  <derek@ximbiot.com>
84291             Paul Eggert  <eggert@cs.ucla.edu>
84292
84293         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84294         * lib/getlogin_r.c, getlogin_r.h: New files.
84295
84296 2005-05-25  Bruno Haible  <bruno@clisp.org>
84297             Derek Price  <derek@ximbiot.com>
84298
84299         * lib/getlogin_r.h: Simplify API documentation.
84300
84301 2005-05-23  Derek Price  <derek@ximbiot.com>
84302
84303         * modules/minmax (Files): Add m4/minmax.m4.
84304         (configure.ac): Add gl_MINMAX.
84305
84306 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84307
84308         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84309         so that unistd-safer.h (GPL'ed code) need not be included.
84310
84311 2005-05-22  Bruno Haible  <bruno@clisp.org>
84312
84313         * m4/minmax.m4: New file.
84314         Based on a patch by Derek Price <derek@ximbiot.com>.
84315
84316 2005-05-22  Bruno Haible  <bruno@clisp.org>
84317
84318         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84319         (INT64_MIN): Fix definition.
84320         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84321
84322         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84323         NEED_SIGNED_INT_TYPES.
84324
84325         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84326         HAVE_SYSTEM_INTTYPES.
84327
84328 2005-05-22  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84331         Also include <sys/param.h> if it defines MIN, MAX.
84332         Based on a patch by Derek Price <derek@ximbiot.com>.
84333
84334 2005-05-21  Jim Meyering  <jim@meyering.net>
84335
84336         * modules/fts (Files): Add m4/inttypes-pri.m4.
84337         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84338
84339 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         New fts module.
84342         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84343         (setup_dir, free_dir): New functions.
84344         (enter_dir, leave_dir): Define trivial
84345         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84346         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84347         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84348         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84349         Move to fts-cycle.c.
84350         (fts_open): Use setup_dir.
84351         (fts_close): Use free_dir.
84352         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84353         This adds a label and some gotos, but the alternatives were messier.
84354         Check for memory allocation failure when entering a dir.
84355         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84356         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84357         (FTS): New member fts_cycle, that is a union that contains the
84358         old active_dir_ht and cycle_state.  All uses changed to mention
84359         fts_cycle.ht and fts_cycle.state.
84360         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84361         fts.c, with the following changes:
84362         (setup_dir, free_dir): New functions.
84363         (enter_dir): Now returns bool.  Return true if successful, false
84364         if memory exhausted.  All callers changed.
84365         Do not bother partly cleaning up on
84366         memory allocation failure; that is free_dir's job.
84367         However, free ad if hash_insert fails, to avoid memory leak.
84368         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84369         fts->fts_options to see which union member to use.
84370
84371 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84374         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84375
84376 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84379
84380 2005-05-20  Jim Meyering  <jim@meyering.net>
84381
84382         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84383         Now a macro, to pacify GCC.
84384
84385 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84386
84387         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84388         of -1.
84389
84390 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84391
84392         * lib/chown.c (rpl_chown): Return -1 on failure.
84393
84394 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84395
84396         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84397         Don't check for stddef.h.
84398         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84399         don't use its results.
84400         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84401         since we include them unconditionally.  Don't require
84402         AM_STDBOOL_H, since stdbool is a prerequisite.
84403         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84404         since we assume C89 or better.
84405         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84406         as we don't use their results.
84407         Don't check for fchdir, memmove, memset, strrchr, as we use
84408         them unconditionally.
84409         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84410         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84411
84412 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84413
84414         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84415         Include <stddef.h> unconditionally, since we assume C89 now.
84416         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84417         * lib/fts.c: Include fts_.h first, to check interface.
84418         Do not include intprops.h; no longer needed.
84419         Include cycle-check.h and hash.h, since fts_.h no longer does.
84420         Remove unnecessary casts of closedir to void.
84421         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84422         decide whether to decrement nlinks.
84423         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84424         (FTS): Use struct hash_table * instead of Hash_table, so that
84425         we no longer need to include hash.h here.
84426
84427 2005-05-18  Jim Meyering  <jim@meyering.net>
84428
84429         * modules/dirfd (License): Change to LGPL.  Most of the code
84430         is already in the public domain.
84431
84432 2005-05-18  Jim Meyering  <jim@meyering.net>
84433
84434         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84435         Reported by Yoann Vandoorselaere.
84436
84437 2005-05-17  Jim Meyering  <jim@meyering.net>
84438
84439         * m4/fts.m4: New file, from coreutils.
84440
84441 2005-05-17  Jim Meyering  <jim@meyering.net>
84442
84443         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84444
84445 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         Sync from coreutils.
84448         * m4/unlinkdir.m4: New file.
84449
84450 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84451
84452         Sync from coreutils.
84453         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84454         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84455         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84456         White space changes only.
84457         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84458         special.
84459         * lib/yesno.c: Include getline.h, not ctype.h.
84460         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84461         Use getline to remove arbitrary restriction on response length.
84462
84463 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84464
84465         * config/srclist-update: Spell out "Street" in FSF postal
84466         mail address; this is the style the FSF seems to prefer.
84467
84468         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84469         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84470         this updates FSF postal mail address.
84471
84472         Sync from coreutils.
84473         * modules/unlinkdir: New file.
84474         * modules/yesno (Depends-on): Add getline.
84475         * MODULES.html.sh (File system functions): Add unlinkdir.
84476
84477 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84478
84479         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84480         lib/strsep.h:
84481         Change the initial comment to refer to GPL, not LGPL.
84482         gnulib-tool will change it to LGPL as needed.
84483
84484         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84485         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84486         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84487         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84488         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84489         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84490         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84491         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84492         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84493         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84494         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84495         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84496         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84497         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84498         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84499         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84500         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84501         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84502         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84503         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84504         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84505         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84506         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84507         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84508         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84509         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84510         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84511         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84512         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84513         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84514         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84515         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84516         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84517         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84518         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84519         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84520         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84521         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84522         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84523         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84524         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84525         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84526         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84527         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84528         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84529         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84530         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84531         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84532         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84533         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84534         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84535         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84536         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84537         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84538         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84539         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84540         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84541         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84542         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84543         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84544         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84545         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84546         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84547         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84548         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84549         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84550         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84551         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84552         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84553         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84554         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84555         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84556         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84557         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84558         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84559         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84560         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84561         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84562         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84563         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84564         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84565         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84566         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84567         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84568         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84569         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84570         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84571         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84572         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84573         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84574         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84575         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84576         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84577         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84578         lib/yesno.c, lib/yesno.h:
84579         Update FSF postal mail address.
84580
84581 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84584         tests/test-memmem.c, tests/test-stpncpy.c:
84585         Update FSF postal mail address.
84586
84587 2005-05-13  Bruno Haible  <bruno@clisp.org>
84588
84589         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84590         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84591         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84592         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84593         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84594         Add support for 64-bit integers in the MSVC compiler.
84595
84596 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84597
84598         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84599
84600 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84601
84602         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84603
84604 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84605
84606         * doc/getdate.texi (General date syntax): Don't say that date
84607         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84608         Problem reported by Nic Ferrier.
84609
84610 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84611
84612         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84613         specified in ai_socktype. Fix invalid ai_protocol
84614         check. ai_protocol is usually set to 0 or depending on
84615         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84616         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84617         ai_socktype / ai_protocol in the returned addrinfo structure.
84618
84619 2005-05-10  Simon Josefsson  <jas@extundo.com>
84620
84621         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84622         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84623
84624 2005-05-10  Karl Berry  <karl@gnu.org>
84625
84626         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84627         (from http://www.gnu.org/licenses).
84628         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84629         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84630         fdl.texi suffices.
84631
84632 2005-05-10  Karl Berry  <karl@gnu.org>
84633
84634         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84635         (COPYING.DOC): remove.
84636
84637         * config/srclist-update: new FSF address.
84638
84639 2005-05-10  Derek Price  <derek@ximbiot.com>
84640
84641         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84642         possible.
84643
84644 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84645             Bruno Haible  <bruno@clisp.org>
84646
84647         * modules/inet_ntop: New file.
84648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84649         inet_ntop.
84650
84651 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84652             Bruno Haible  <bruno@clisp.org>
84653
84654         * m4/inet_ntop.m4: New file.
84655
84656 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84657             Bruno Haible  <bruno@clisp.org>
84658
84659         * lib/inet_ntop.h: New file.
84660         * lib/inet_ntop.c: New file, from glibc with modifications.
84661
84662 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * modules/time_r (License): Change to LGPL.
84665         * modules/extensions (License): Change to LGPL.  Actually,
84666         the license is more permissive than that, but currently gnulib-tool
84667         doesn't know how to handle more-permissive licenses.
84668
84669         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84670         Problem reported by Dave Love.
84671
84672 2005-05-08  Jim Meyering  <jim@meyering.net>
84673
84674         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84675         blank.
84676
84677 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84678
84679         * modules/argmatch (Depends-on): Add stdbool.
84680         * modules/backupfile (Depends-on): Likewise.
84681         * modules/chdir-long (Depends-on): Likewise.
84682         * modules/closeout (Depends-on): Likewise.
84683         * modules/cycle-check (Depends-on): Likewise.
84684         * modules/dirname (Depends-on): Likewise.
84685         * modules/fnmatch (Depends-on): Likewise.
84686         * modules/fsusage (Depends-on): Likewise.
84687         * modules/fwriteerror (Depends-on): Likewise.
84688         * modules/getcwd (Depends-on): Likewise.
84689         * modules/getloadavg (Depends-on): Likewise.
84690         * modules/hard-locale (Depends-on): Likewise.
84691         * modules/makepath (Depends-on): Likewise.
84692         * modules/mountlist (Depends-on): Likewise.
84693         * modules/nanosleep (Depends-on): Likewise.
84694         * modules/posixtm (Depends-on): Likewise.
84695         * modules/quotearg (Depends-on): Likewise.
84696         * modules/readtokens (Depends-on): Likewise.
84697         * modules/readtokens0 (Depends-on): Likewise.
84698         * modules/readutmp (Depends-on): Likewise.
84699         * modules/save-cwd (Depends-on): Likewise.
84700         * modules/strftime (Depends-on): Likewise.
84701         * modules/userspec (Depends-on): Likewise.
84702         * modules/utimecmp (Depends-on): Likewise.
84703         * modules/xgetcwd (Depends-on): Likewise.
84704         * modules/xnanosleep (Depends-on): Likewise.
84705         * modules/xstrtod (Depends-on): Likewise.
84706         * modules/yesno (Depends-on): Likewise.
84707
84708 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84709
84710         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84711         needless checks.
84712
84713 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         Merge from coreutils.  Among other things,
84716         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84717         * lib/fd-safer.c: New file.
84718         * lib/fcntl-safer.h, open-safer.c: Remove.
84719         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84720         * lib/dup-safer.c: Include unistd-safer.h first.
84721         Don't include errno.h.
84722         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84723         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84724         * lib/file-type.c: Rely on file-type.h change.
84725         * lib/getloadavg.c: Include unistd-safer.h.
84726         (getloadavg): Use safer open.
84727         * lib/getusershell.c: Include "stdio-safer.h".
84728         (getusershell): Use safer fopen.
84729         * lib/long-options.c (long_options): Use NULL rather than 0.
84730         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84731         'free'.
84732         * lib/modechange.c: Likewise.
84733         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84734         (MODE_DONE): New constant.
84735         (struct mode_change): Remove 'next' member.
84736         (make_node_op_equals): New function; like the old one of the
84737         same name, except it allocates an array.
84738         (mode_compile, mode_create_from_ref): Use it.
84739         (mode_compile): Allocate result as an array, not a linked list.
84740         Parse octal string ourself, so that we catch mistakes like "+0".
84741         (mode_adjust): Arg is an array, not a linked list.
84742         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84743         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84744         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84745         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84746         Remove.  This is now stat-macros.h's job.
84747         (talloc): Remove.  All callers replaced by xalloc, so that
84748         our invokers don't have to worry about reporting memory failures.
84749         (make_node_op_equals): Remove.
84750         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84751         New constants.
84752         (struct mode_change): Moved here from modechange.h.
84753         (mode_append_entry): Remove.
84754         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84755         apps to have incorrect behavior.  Use simpler algorithm for head
84756         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84757         Detect more invalid usages rather than having somewhat-random behavior.
84758         Don't insert an "a=" action, as that leads to incorrect behavior.
84759         (mode_compile, mode_create_from_ref): Return NULL on error instead
84760         of an enum, since now there's only one way to have an error.  All
84761         callers changed.
84762         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84763         at the correct time.  Simplify calculation of "+u" and its ilk.
84764         Don't mishandle "+X".
84765         (mode_free): Remove "register" and localize decls.
84766         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84767         (struct mode_change): Move to modechange.c; callers don't
84768         need to see this stuff.
84769         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84770         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84771         (mode_change, mode_adjust): Reflect the new signatures noted above.
84772         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84773         that might redefine system include files.
84774         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84775         (my_usleep): Use NULL rather than (void *) 0.
84776         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84777         Use siginterrupt to specify that system calls should be interrupted.
84778         (rpl_nanosleep): Move initialization of suspended closer to call of
84779         my_usleep.
84780         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84781         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84782         (desirable_utmp_entry): New function.
84783         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84784         using x2nrealloc, to simplify logic.
84785         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84786         size calculation.  Do not assume utmp file is a regular file.
84787         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84788         (READ_UTMP_CHECK_PIDS): New constant.
84789         * lib/save-cwd.c: Include unistd-safer.h.
84790         (save_cwd): Use fd_safer.
84791         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84792         [!_LIBC] Include "stat-macros.h" instead.
84793         * lib/unistd-safer.h (fd_safer): New decl.
84794
84795 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84796
84797         * modules/getloadavg (Depends-on): Add unistd-safer.
84798         * modules/getusershell (Depends-on): Add stdio-safer.
84799         * modules/lstat (Depends-on): Remove xalloc.
84800         * modules/mkstemp (Depends-on): Add stat-macros.
84801         * modules/modechange (Depends-on): Remove xstrtol.
84802         Add stat-macros, xalloc.
84803         * modules/save-cwd (Depends-on): Add unistd-safer.
84804         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84805         * modules/unistd-safer (Files): Add lib/fd-safer.c
84806         (Makefile.am): Remove lib_SOURCES.
84807
84808         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84809         Remove fcntl-safer; unistd-safer supersedes it.
84810
84811 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84812
84813         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84814         AC_HEADER_STAT.
84815         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84816         (gl_PREREQ_CHOWN): Remove.
84817         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84818         it.  Don't require AC_HEADER_STAT.
84819         (gl_PREREQ_LSTAT): Remove.
84820         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84821         Don't require AC_HEADER_STAT.
84822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84823         (gl_PREREQ_RMDIR): Remove.
84824         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84825         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84826         the stat-macros module a prerequisite.
84827         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84828         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84829         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84830         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84831         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84832         variable names.
84833         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84834         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84835         variable prefixes.
84836         * m4/fcntl-safer.m4: Remove.
84837         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84838         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84839         Invoke gl_PREREQ_FD_SAFER.
84840         (gl_PREREQ_FD_SAFER): New macro.
84841         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84842         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84843         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84844         Remove duplicate call to AC_LIBOBJ(readutmp).
84845         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84846
84847         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84848         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84849
84850 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84851
84852         * MODULES.html.sh (Misc): Add byteswap.
84853
84854 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84855
84856         * modules/getcwd (Depends-on): Add extensions.
84857         * modules/openat (Depends-on): Likewise.
84858
84859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84860
84861         * modules/byteswap: New file.
84862
84863 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84864
84865         * m4/byteswap.m4: New file.
84866
84867 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84868
84869         * lib/byteswap_.h: New file.
84870
84871 2005-04-25  Karl Berry  <karl@gnu.org>
84872
84873         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84874
84875 2005-04-25  Albert Chin  <china@thewrittenword.com>
84876
84877         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84878         Toolkit C bug.
84879
84880 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84881
84882         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84883         (func_ln_if_changed): Remove forcibly for no error message
84884         in case file does not exist.
84885
84886 2005-04-19  Simon Josefsson  <jas@extundo.com>
84887
84888         * gnulib-tool (Options): Make --symlink mean --symbolic.
84889
84890 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84891
84892         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84893
84894 2005-04-16  Simon Josefsson  <jas@extundo.com>
84895
84896         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84897
84898 2005-04-15  Simon Josefsson  <jas@extundo.com>
84899
84900         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84901
84902 2005-04-15  Simon Josefsson  <jas@extundo.com>
84903
84904         * gnulib-tool: Rename --symlink to --symbolic.
84905
84906 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84907
84908         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84909         symbolic links to files instead of copying/moving.  Add --aux-dir,
84910         specifying directory relative --dir where auxiliary build tools
84911         are placed.
84912
84913 2005-04-14  Bruno Haible  <bruno@clisp.org>
84914
84915         * modules/allocsa (License): Change to LGPL.
84916         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84917
84918 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84921         that "UTC +1 second" continues to work.  Problem reported
84922         by Dmitry V. Levin.
84923         (relunit_snumber): New rule.
84924         (relunit): Use it.
84925
84926 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * lib/getdate.y (universal_time_zone_table): New constant.
84929         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84930         universal_time_zone_table.
84931         (lookup_zone): Prefer universal_time_zone_table to
84932         local_time_zone_table, so that "GMT" time stamps are allowed in
84933         London during the summer.  Problem reported by Ian Abbott.
84934
84935 2005-04-12  Jim Meyering  <jim@meyering.net>
84936
84937         * lib/human.c (humblock): Set *options even when returning due to
84938         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84939         warning from gcc-4.
84940
84941 2005-04-09  Jim Meyering  <jim@meyering.net>
84942
84943         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84944         -Wuninitialized: initialize tm0.tm_year.
84945
84946 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84949         count, since there's no maximum.  All uses changed.
84950         Add member dsts_seen.
84951         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84952         not being INT_MAX.
84953         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84954         Use pc_rels_seen to decide whether a date is absolute.
84955
84956         * lib/getdate.y (number): Don't overwrite year.
84957         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84958         check.
84959
84960 2005-04-02  Simon Josefsson  <jas@extundo.com>
84961
84962         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84963         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84964
84965 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84966
84967         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84968         where no absolute path name can be longer than PATH_MAX.
84969
84970 2005-03-27  Jim Meyering  <jim@meyering.net>
84971
84972         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84973
84974 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84975
84976         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84977         "one's complement" -> "ones' complement" in comment, as per Knuth.
84978         "value of type" -> "type or expression" in comment.
84979         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84980
84981 2005-03-26  Jim Meyering  <jim@meyering.net>
84982
84983         Comment nits.
84984         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84985         Correct typos: s/or/of/.
84986
84987 2005-03-26  Jim Meyering  <jim@meyering.net>
84988
84989         * modules/check-include-files: Move to ../ and rename to...
84990         * check-module: ...this.
84991
84992 2005-03-25  Jim Meyering  <jim@meyering.net>
84993
84994         * modules/xvasprintf (Files): Add xalloc.h.
84995
84996 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84997
84998         * modules/gettext (Files): config/config.rpath ->
84999         build-aux/config.rpath
85000         * modules/iconv (Files): Likewise.
85001         Problem reported by Oskar Liljeblad.
85002
85003 2005-03-23  Jim Meyering  <jim@meyering.net>
85004
85005         * modules/check-include-files: New script to check for
85006         missing dependencies, multiple includes, etc.
85007
85008         * modules/c-strtold (Depends-on): Add xalloc.
85009         * modules/c-strtod (Depends-on): Add xalloc.
85010         * modules/hash (Depends-on): Add xalloc.
85011         (Files): Remove lib/xalloc.h.
85012
85013         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85014         * modules/userspec (Files): Add lib/inttostr.h.
85015
85016 2005-03-23  Jim Meyering  <jim@meyering.net>
85017
85018         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85019
85020 2005-03-22  Jim Meyering  <jim@meyering.net>
85021
85022         * modules/stat-macros: New module.
85023         * modules/canonicalize, modules/euidaccess, modules/file-type,
85024         * modules/filemode, modules/lchown, modules/makepath,
85025         * modules/rmdir, modules/stat: Depend on new stat-macros module
85026         rather than listing lib/stat-macros.h manually.
85027         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85028
85029 2005-03-22  Jim Meyering  <jim@meyering.net>
85030
85031         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85032
85033 2005-03-22  Bruno Haible  <bruno@clisp.org>
85034
85035         * config/srclist.txt: Replace target directory 'config' with
85036         'build-aux'.
85037         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85038         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85039         ../build-aux/.
85040
85041 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85042
85043         * modules/chdir-long (Depends-on): Add mempcpy.
85044
85045         * modules/acl, modules/backupfile, modules/c-strtod,
85046         modules/c-strtold, modules/canon-host, modules/canonicalize,
85047         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85048         modules/exclude, modules/exitfail, modules/file-type,
85049         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85050         modules/getdate, modules/getline, modules/getpagesize,
85051         modules/getpass, modules/getugroups, modules/group-member,
85052         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85053         modules/inttostr, modules/long-options, modules/makepath,
85054         modules/md5, modules/memcasecmp, modules/memcoll,
85055         modules/modechange, modules/mountlist, modules/path-concat,
85056         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85057         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85058         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85059         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85060         modules/strftime, modules/strndup, modules/strverscmp,
85061         modules/timespec, modules/unlocked-io, modules/userspec,
85062         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85063         modules/yesno:
85064         Remove lib_SOURCES line from Makefile.am section, as this is now
85065         done automatically by the corresponding Autoconf macro.
85066
85067 2005-03-21  Jim Meyering  <jim@meyering.net>
85068
85069         Changes imported from coreutils.
85070
85071         * lib/cycle-check.c: Don't include xalloc.h.
85072
85073         * lib/path-concat.c: Don't include assert.h.
85074         (path_concat): Remove assertion that would have triggered
85075         for ABASE starting with more than one slash.
85076         Reported by Andreas Schwab.
85077
85078         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85079         properly when ABASE is an absolute file name.
85080         Correct the description of this function.
85081         Include <assert.h>.
85082         Add an assertion and a test driver.
85083         This fixes a bug introduced on 2004-07-02.
85084         Andreas Schwab reported the resulting failure of cp --parents:
85085         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85086
85087 2005-03-21  Jim Meyering  <jim@meyering.net>
85088
85089         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85090         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85091
85092 2005-03-21  Jim Meyering  <jim@meyering.net>
85093         and  Paul Eggert  <eggert@cs.ucla.edu>
85094
85095         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85096         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85097         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85098         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85099         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85100         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85101         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85102         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85103         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85104         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85105         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85106         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85107         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85108         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85109         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85110         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85111         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85112         for these modules.
85113
85114 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85115
85116         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85117         (which shouldn't happen), generate nothing instead of returning 0
85118         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85119
85120 2005-03-16  Bruno Haible  <bruno@clisp.org>
85121
85122         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85123         HAVE_LONGLONG_64BIT.
85124
85125 2005-03-16  Bruno Haible  <bruno@clisp.org>
85126
85127         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85128         HAVE_LONGLONG_64BIT.
85129
85130 2005-03-16  Bruno Haible  <bruno@clisp.org>
85131
85132         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85133         HAVE_LONGLONG_64BIT.
85134
85135 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85138         reliably distinguish strftime failure from empty output on POSIX
85139         hosts.
85140
85141 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85142
85143         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85144         (iconv_string): Don't guess a size-zero buffer, as that might cause
85145         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85146         result would be 'too large', where 'too large' is (heuristically)
85147         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85148         overflow concerns.  This will prevent some unwanted malloc failures
85149         when the inputs are very large.
85150
85151 2005-03-15  Karl Berry  <karl@gnu.org>
85152
85153         * config/srclist.txt (config.rpath): from gettext.
85154         * config/config.rpath: update.
85155
85156 2005-03-15  Bruno Haible  <bruno@clisp.org>
85157
85158         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85159         to 'negate'.
85160
85161         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85162         variable.
85163
85164         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85165         results.
85166
85167 2005-03-14  Simon Josefsson  <jas@extundo.com>
85168
85169         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85170         <fx@gnu.org>.
85171
85172 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85173
85174         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85175         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85176         intprops.h.
85177         * lib/strtol.c: Likewise.
85178
85179 2005-03-14  Jim Meyering  <jim@meyering.net>
85180
85181         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85182         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85183         to be nonzero so that we (and caller) can detect the difference
85184         between a valid zero-length expansion and an error return, even
85185         when the underlying strftime fails before writing anything into
85186         that location.
85187
85188 2005-03-14  Bruno Haible  <bruno@clisp.org>
85189
85190         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85191         Update from GNU gettext 0.14.3.
85192
85193 2005-03-10  Jim Meyering  <jim@meyering.net>
85194
85195         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85196
85197 2005-03-10  Jim Meyering  <jim@meyering.net>
85198
85199         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85200         so that this module works on systems without fchdir.
85201
85202 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85203
85204         Factor int-properties macros into a single file, except for
85205         glibc-related files.
85206         * lib/intprops.h: New file.
85207         * lib/getloadavg.c: Include it instead of limits.h.
85208         (INT_STRLEN_BOUND): Remove.
85209         * lib/human.c: Include intprops.h.
85210         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85211         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85212         302/1000.
85213         * lib/inttostr.h: Include intprops.h instead of limits.h.
85214         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85215         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85216         for consistency with intprops.h.
85217         (time_t_is_integer, twos_complement_arithmetic): Use them.
85218         * lib/sig2str.h: Include <signal.h>, intprops.h.
85219         (INT_STRLEN_BOUND): Remove.
85220         * lib/strftime.c (TYPE_SIGNED): Remove.
85221         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85222         * lib/strtol.c: Adjust comments to match intprops.h.
85223         * lib/userspec.c: Include intprops.h.
85224         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85225         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85226         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85227         instead of rolling our own expressions.
85228         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85229
85230         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85231         instead of int.
85232         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85233         the right thing even if adding 1900 would overflow.  Similarly
85234         for tm_mon + 1 and tm_yday + 1.
85235         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85236         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85237         (DO_SIGNED_NUMBER): New macro.
85238         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85239
85240 2005-03-07  Bruno Haible  <bruno@clisp.org>
85241
85242         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85243
85244 2005-03-07  Bruno Haible  <bruno@clisp.org>
85245
85246         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85247
85248 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85249
85250         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85251         (func_import): Only replace files via --import when they have actually
85252         changed.
85253
85254 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85255
85256         * m4/mmap-anon.m4: New file.
85257         * m4/pagealign_alloc.m4: New file.
85258
85259 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85260             Bruno Haible  <bruno@clisp.org>
85261
85262         * modules/pagealign_alloc: New file.
85263         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85264
85265 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85266             Bruno Haible  <bruno@clisp.org>
85267
85268         * lib/pagealign_alloc.h: New file.
85269         * lib/pagealign_alloc.c: New file.
85270
85271 2005-03-03  Bruno Haible  <bruno@clisp.org>
85272
85273         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85274         Use an all-permissive copyright notice, recommended by RMS.
85275
85276 2005-03-02  Bruno Haible  <bruno@clisp.org>
85277
85278         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85279         of AIX, the replacement has to be done only after <string.h> is
85280         included, therefore not in config.h. stpncpy.h does the replacement,
85281         and stpncpy.c uses it.
85282
85283 2005-03-02  Bruno Haible  <bruno@clisp.org>
85284
85285         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85286         stpncpy.c uses it.
85287
85288 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85289
85290         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85291         The workaround isn't strictly needed for POSIX conformance, and
85292         it's too much of a pain to configure and maintain.  We'll ask
85293         people to fix their kernels instead.
85294         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85295         (NANOSLEEP_BUG_WORKAROUND): Remove.
85296         (xnanosleep): Remove the workaround.
85297
85298 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85301         Reported by Derek Price.
85302         (Include): Add "timespec.h".
85303
85304         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85305
85306 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85307
85308         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85309         to detect nanosleep bug.
85310
85311 2005-03-01  Bruno Haible  <bruno@clisp.org>
85312
85313         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85314
85315 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85316
85317         * modules/gethrxtime: New file.
85318         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85319         (Depends-on): Add gethrxtime.
85320         (configure.ac): Add gl_XNANOSLEEP.
85321         (Makefile.am): Remove lib_SOURCES line.
85322
85323 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85324
85325         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85326         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85327
85328 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85329
85330         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85331         * lib/timespec.h (gettime): Return void, since it always
85332         succeeds now.  All uses changed.
85333         * lib/gettime.c (gettime): Likewise.
85334         [HAVE_NANOTIME]: Prefer nanotime.
85335         Assume gettimeofday succeeds, as POSIX requires.
85336         Assime time () succeeds, since other code already does.
85337         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85338         (timespec_subtract): Remove.
85339         (NANOSLEEP_BUG_WORKAROUND): New constant.
85340         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85341         things considerably.  Use it only on GNU/Linux hosts, since the
85342         workaround shouldn't be needed elsewhere.
85343
85344 2005-02-24  Bruno Haible  <bruno@clisp.org>
85345
85346         * modules/gettext (Files): Add m4/glibc2.m4.
85347
85348 2005-02-24  Bruno Haible  <bruno@clisp.org>
85349
85350         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85351         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85352         * m4/progtest.m4:
85353         Update from GNU gettext 0.14.2.
85354         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85355
85356 2005-02-24  Bruno Haible  <bruno@clisp.org>
85357
85358         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85359         * lib/config.charset: Update from GNU gettext 0.14.2.
85360
85361 2005-02-24  Bruno Haible  <bruno@clisp.org>
85362
85363         * lib/gettext.h: Update from GNU gettext 0.14.2.
85364
85365 2005-02-23  Simon Josefsson  <jas@extundo.com>
85366
85367         * m4/iconvme.m4: New file.
85368
85369 2005-02-23  Jim Meyering  <jim@meyering.net>
85370
85371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85372         change.
85373         Thanks to Bruno Haible for catching it.
85374
85375 2005-02-22  Simon Josefsson  <jas@extundo.com>
85376
85377         * modules/iconvme: New file.
85378
85379         * MODULES.html.sh: Add iconvme.
85380
85381 2005-02-22  Simon Josefsson  <jas@extundo.com>
85382
85383         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85384
85385 2005-02-22  Simon Josefsson  <jas@extundo.com>
85386
85387         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85388
85389 2005-02-22  Jim Meyering  <jim@meyering.net>
85390
85391         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85392         s/ifndef/ifdef/.
85393
85394 2005-02-20  Neil Conway  <neilc@samurai.com>
85395
85396         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85397         returned by OSX/Darwin if the specified buffer is not large
85398         enough for the hostname.
85399
85400 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85401
85402         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85403         pass it to _help, otherwise the latter coredumps trying to
85404         dereference state.root_argp.
85405
85406 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85407
85408         * modules/chdir-long (Depends-on): Add memrchr.
85409         * modules/memrchr (Files): Add lib/memrchr.h.
85410         (Include): "memrchr.h".
85411
85412 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85413
85414         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85415
85416 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * lib/memrchr.h: New file.
85419         * lib/chdir-long.c: Include it.
85420         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85421         Don't bother including stddef.h.
85422
85423 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85424
85425         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85426         inclusion.
85427         Include <sys/types.h>, for dev_t.
85428         (ME_DUMMY, ME_REMOTE): Move from here....
85429         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85430         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85431         Dmitry V. Levin.
85432         Include mountlist.h first, to test the interface.
85433
85434 2005-01-29  Bruno Haible  <bruno@clisp.org>
85435
85436         * lib/progname.c (program_name): Initialize.
85437         Needed when linking statically on MacOS X.
85438
85439 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         Sync from coreutils.
85442         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85443         (Depends-on): Add c-strtod.
85444         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85445
85446 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85447
85448         Sync from coreutils.
85449         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85450
85451         Remove files that are specific to coreutils.
85452         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85453
85454 2005-01-28  Bruno Haible  <bruno@clisp.org>
85455
85456         * modules/javacomp: New file.
85457         * MODULES.html.sh (Java): Add javacomp.
85458
85459 2005-01-28  Bruno Haible  <bruno@clisp.org>
85460
85461         * m4/javacomp.m4: New file, from GNU gettext.
85462
85463 2005-01-28  Bruno Haible  <bruno@clisp.org>
85464
85465         * lib/javacomp.sh.in: New file, from GNU gettext.
85466         * lib/javacomp.h: New file, from GNU gettext.
85467         * lib/javacomp.c: New file, from GNU gettext.
85468
85469 2005-01-26  Simon Josefsson  <jas@extundo.com>
85470
85471         * lib/gai_strerror.c: Use GPL in header.
85472
85473 2005-01-26  Bruno Haible  <bruno@clisp.org>
85474
85475         * modules/javaexec: New file.
85476         * MODULES.html.sh (Java): Add javaexec.
85477
85478 2005-01-26  Bruno Haible  <bruno@clisp.org>
85479
85480         * m4/javaexec.m4: New file, from GNU gettext.
85481
85482 2005-01-26  Bruno Haible  <bruno@clisp.org>
85483
85484         * lib/javaexec.sh.in: New file, from GNU gettext.
85485         * lib/javaexec.h: New file, from GNU gettext.
85486         * lib/javaexec.c: New file, from GNU gettext.
85487
85488 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85489
85490         * modules/lchown (Depends-on): Remove lchown.h
85491
85492 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85493
85494         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85495         must be defined if the header file was not found, in order
85496         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85497
85498 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85499
85500         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85501         initializers for struct pentry_state.
85502         (__argp_error): Check return value of __asprintf
85503         (__argp_failure): Translate error message
85504
85505         * lib/argp-parse.c: Removed braces around the expansion of N_()
85506
85507 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85508
85509         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85510         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85511         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85512         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85513         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85514         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85515         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85516         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85517         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85518         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85519         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85520         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85521         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85522         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85523         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85524         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85525         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85526         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85527         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85528         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85529         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85530         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85531         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85532         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85533         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85534         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85535         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85536         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85537         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85538         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85539         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85540         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85541         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85542         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85543         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85544         Use an all-permissive copyright notice, recommended by RMS.
85545
85546 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85547
85548         * modules/chdir-long (Depends-on): Remove mempcpy.
85549
85550 2005-01-21  Jim Meyering  <jim@meyering.net>
85551
85552         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85553         same value as for Solaris 9.
85554
85555         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85556         component length.  This included changing the parameter to be
85557         of type `char *' rather than `char const *'.
85558         * lib/chdir-long.h (chdir_long): Update prototype.
85559
85560         * lib/openat.c (fdopendir, fstatat): New functions.
85561         * lib/openat.h: Include headers required for use of DIR and struct
85562         stat.
85563         [AT_SYMLINK_NOFOLLOW]: Define.
85564         (fdopendir, fstatat): Add prototypes.
85565
85566 2005-01-21  Bruno Haible  <bruno@clisp.org>
85567
85568         * modules/classpath: New file.
85569         * MODULES.html.sh (Java): Add classpath.
85570
85571 2005-01-21  Bruno Haible  <bruno@clisp.org>
85572
85573         * lib/classpath.h: New file, from GNU gettext.
85574         * lib/classpath.c: New file, from GNU gettext.
85575
85576 2005-01-20  Simon Josefsson  <jas@extundo.com>
85577
85578         * modules/version-etc-fsf: New file.
85579
85580 2005-01-20  Simon Josefsson  <jas@extundo.com>
85581
85582         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85583         * lib/version-etc.c: Remove version_etc_copyright.
85584         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85585         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85586
85587 2005-01-20  Simon Josefsson  <jas@extundo.com>
85588
85589         * lib/base64.h (isbase64): Add.
85590
85591         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85592         using a unsigned prototype, don't inline.
85593         (base64_decode): Use it.
85594
85595 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85596
85597         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85598         it.
85599
85600 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85601
85602         * lib/save-cwd.c (save_cwd): Remove code to support the case
85603         where fchdir is missing or flaky.
85604
85605 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85606
85607         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85608
85609 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85610
85611         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85612         AC_LIBSOURCES now does this.
85613         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85614         with new ullong_max module.
85615
85616 2005-01-19  Bruno Haible  <bruno@clisp.org>
85617
85618         * modules/sh-quote: New file.
85619         * MODULES.html.sh (Executing programs): Add sh-quote.
85620
85621 2005-01-19  Bruno Haible  <bruno@clisp.org>
85622
85623         * lib/sh-quote.h: New file, from GNU gettext.
85624         * lib/sh-quote.c: New file, from GNU gettext.
85625
85626 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85627
85628         Merge from coreutils.
85629         * m4/ullong_max.m4: New file.
85630         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85631         (gl_MACROS): Assume localeconv exists.
85632
85633 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85634
85635         Merge changes from coreutils, as described below in several
85636         changelogs dated today.
85637
85638         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85639         (O_DIRECTORY): Remove; not needed here, since "." must be
85640         a directory.  All uses removed.
85641         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85642         universal on Suns, and we also need to test for IRIX.
85643         Revamp code to use 'if' rather than '#if'.
85644         Avoid unnecessary comparison of cwd->desc to 0.
85645
85646         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85647         for known valid error numbers rather than observed invalid ones.
85648
85649 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85650
85651         * modules/ullong_max: New file.
85652
85653         * modules/chdir-long, modules/openat: New files.
85654         * modules/save-cwd (Depends-on): Depend on chdir-long.
85655         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85656
85657 2005-01-18  Jim Meyering  <jim@meyering.net>
85658
85659         Merge from coreutils.
85660         * m4/chdir-long.m4, m4/openat.m4: New files.
85661         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85662         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85663         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85664         is sane and DOES follow symlinks.  Besides, testing 20 different
85665         systems found no broken chown implementations.
85666         Prompted by a change in rsync's copy of this macro.
85667         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85668
85669         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85670
85671         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85672         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85673         NULL-means-set-to-current-time semantics.
85674         Remove temporary file immediately, rather than waiting
85675         for configure's at-exit trap code to do it.
85676
85677 2005-01-18  Jim Meyering  <jim@meyering.net>
85678
85679         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85680
85681         * lib/utimens.c (futimens): Account for the fact that futimes
85682         can also fail with errno == ENOSYS or errno == ENOENT.
85683         Patch from Dmitry V. Levin.
85684
85685         Change the name of the robust chdir function from chdir to chdir_long.
85686         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85687         (restore_cwd): Use chdir_long, not chdir.
85688         * lib/chdir-long.c: Renamed from chdir.c.
85689         * lib/chdir-long.h: Renamed from chdir.h.
85690         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85691         Hurd.
85692
85693 2005-01-18  Bruno Haible  <bruno@clisp.org>
85694
85695         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85696         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85697         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85698         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85699         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85700         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85701         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85702         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85703         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85704         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85705         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85706         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85707         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85708         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85709         Use an all-permissive copyright notice, recommended by RMS.
85710
85711 2005-01-18  Bob Proulx  <bob@proulx.com>
85712
85713         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85714         simplify offsetof() macro construct to avoid compile failure with
85715         native HP-UX 11.0 ANSI C compiler.
85716
85717 2005-01-17  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85720         redundant because stpncpy.m4 takes care of it.
85721
85722 2005-01-17  Bruno Haible  <bruno@clisp.org>
85723
85724         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85725
85726 2005-01-17  Bruno Haible  <bruno@clisp.org>
85727
85728         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85729         used.
85730
85731 2005-01-17  Bruno Haible  <bruno@clisp.org>
85732
85733         * lib/fwriteerror.h (fwriteerror): Change specification to include
85734         fclose.
85735         * lib/fwriteerror.c: Include <stdbool.h>.
85736         (fwriteerror): At the end, close the file stream. Record whether
85737         stdout was already closed.
85738
85739 2005-01-17  Bruno Haible  <bruno@clisp.org>
85740
85741         * lib/execute.c (environ): Declare if needed.
85742         * lib/pipe.c (environ): Likewise.
85743         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85744
85745 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85746
85747         * modules/argp: Depend on vsnprintf
85748
85749 2005-01-10  Jim Meyering  <jim@meyering.net>
85750
85751         * modules/closeout (Depends-on): Add atexit.
85752
85753 2005-01-06  Bruno Haible  <bruno@clisp.org>
85754
85755         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85756
85757 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85760         definitions to be after all include files, to avoid collisions.
85761         Problem reported by Bob Proulx.
85762
85763 2005-01-04  Jim Meyering  <jim@meyering.net>
85764
85765         Changes imported from coreutils.
85766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85767         as the mkstemp template, use a temporary directory and an
85768         8.3-friendly template to avoid trouble on systems like DJGPP.
85769         Reported by Juan M. Guerrero via Stepan Kasal.
85770         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85771         close. Remove the temporary directory right away, rather than waiting
85772         for configure's at-exit trap code to do it.
85773         Suggestion from Stepan Kasal.
85774
85775 2005-01-01  Simon Josefsson  <jas@extundo.com>
85776
85777         * gnulib-tool: Print #include directives when --import'ing.
85778
85779 2004-12-28  Simon Josefsson  <jas@extundo.com>
85780
85781         * tests/test-base64.c: Include required header files.  Remove
85782         unused variables.
85783
85784 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85785
85786         * modules/error (Depends-on): Remove gettext.
85787
85788 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85789
85790         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85791         not needed.  This removes a dependency on the gettext module.
85792         [defined _LIBC]: Do not include <libintl.h>; not needed.
85793
85794 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85795
85796         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85797         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85798
85799 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85800
85801         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85802         HAVE_DECL_STRTOLD.
85803
85804 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85805
85806         * modules/getdate (Depends-on): Remove alloca-opt.
85807
85808 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85809
85810         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85811
85812 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85813
85814         * lib/argp-parse.c: Include <stddef.h>.
85815         (alignof, alignto): New macros.
85816         (parser_init): Don't assume that void * is aligned sufficiently
85817         for struct option.
85818
85819         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85820         need to extend the stack.
85821         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85822         large.
85823
85824 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85825
85826         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85827
85828 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85831         (2004-10-24) change.  Apparently this was a false alarm.
85832
85833         * modules/getdate: Depend on alloca-opt, not alloca.
85834
85835 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85836
85837         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85838         Remove now-obsolete comment about AIX.
85839         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85840         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85841         (YYMAXDEPTH): New macro.
85842
85843 2004-12-18  Simon Josefsson  <jas@extundo.com>
85844
85845         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85846
85847 2004-12-18  Bruno Haible  <bruno@clisp.org>
85848
85849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85850
85851 2004-12-18  Bruno Haible  <bruno@clisp.org>
85852
85853         * lib/fatal-signal.c (fatal_signals): Make non-const.
85854         (init_fatal_signals): New function.
85855         (uninstall_handlers, install_handlers): Ignore signals that were set to
85856         SIG_IGN.
85857         (at_fatal_signal): Call init_fatal_signals.
85858         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85859         SIG_IGN.
85860         Reported by Paul Eggert.
85861
85862 2004-12-18  Bruno Haible  <bruno@clisp.org>
85863
85864         * doc/alloca.texi: New file.
85865         * doc/alloca-opt.texi: New file.
85866
85867 2004-12-17  Jim Meyering  <jim@meyering.net>
85868
85869         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85870         Otherwise, install-sh could exit with improper exit status when
85871         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85872
85873 2004-12-16  Simon Josefsson  <jas@extundo.com>
85874
85875         * tests/test-base64.c: Add license.
85876
85877 2004-12-15  Stepan Kasal  <address@hidden>
85878
85879         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85880
85881 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * modules/getcwd (Files): Add m4/d-ino.m4.
85884         Suggested by Mark D. Baushke.
85885
85886 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * lib/getdate.y (textint): New member "negative".
85889         (time_zone_hhmm): New function.
85890         Expect 14 shift-reduce conflicts, not 13.
85891         (o_colon_minutes): New rule.
85892         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85893         (yylex): Set the "negative" member of signed numbers.
85894
85895 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85896
85897         * doc/getdate.texi (Time of day items, Time zone items):
85898         Describe new formats +00:00, UTC+00:00.
85899
85900 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85901
85902         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85903         spurious "-l"s.  Problem reported by Stepan Kasal.
85904
85905 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85906
85907         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85908         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85909
85910 2004-12-04  Simon Josefsson  <jas@extundo.com>
85911
85912         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85913         Vandoorselaere <yoann@prelude-ids.org>.
85914
85915 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85916
85917         Changes imported from coreutils.
85918         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85919         exist.
85920         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85921
85922 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85923
85924         Changes imported from coreutils.
85925         * lib/hard-locale.c: Assume <locale.h> exists.
85926         Include "strdup.h".
85927         (GLIBC_VERSION): New macro.
85928         (hard_locale): Assume setlocale exists.
85929         Rewrite to avoid #ifdef.
85930         Use strdup rather than malloc + strcpy.
85931         * lib/human.c: Assume <locale.h> exists.
85932         (human_readable): Assume localeconv exists.
85933
85934 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85935
85936         * modules/hard-locale (Depends-on): Add strdup.
85937
85938 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85939
85940         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85941         convert T2, not T.  (Imported from libc.)
85942
85943 2004-11-30  Simon Josefsson  <jas@extundo.com>
85944
85945         * modules/restrict (License): Change to LGPL.
85946
85947 2004-11-30  Simon Josefsson  <jas@extundo.com>
85948
85949         * m4/restrict.m4: Add copyright and copying conditions.
85950
85951 2004-11-30  Simon Josefsson  <jas@extundo.com>
85952
85953         * m4/base64.m4: New file.
85954
85955 2004-11-30  Simon Josefsson  <jas@extundo.com>
85956
85957         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85958         base64.
85959
85960         * tests/test-base64.c: New file.
85961
85962         * modules/base64: New file.
85963
85964 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85965
85966         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85967         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85968
85969         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85970
85971 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85972
85973         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85974         (__getcwd.c): Don't restore errno; glibc doesn't.
85975         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85976         first, falling back to our code only if its results look suspicious.
85977         Ensure that the resulting buffer is only as large as necessary.
85978
85979         * lib/readutmp.c: Include readutmp.h first.
85980         Include <errno.h>, since readutmp.h no longer does that.
85981         * lib/readutmp.h: Don't include <errno.h>,
85982         <sys/param.h>, <time.h>; not needed to establish interface.
85983         (errno): Remove decl.
85984         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85985         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85986         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85987
85988 2004-11-28  Simon Josefsson  <jas@extundo.com>
85989
85990         * lib/base64.h, base64.c: New file.
85991
85992 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85993
85994         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85995
85996 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85997
85998         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85999         (Depends-on): Remove pathmax, same.  Add mempcpy.
86000         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86001         (Makefile.am): Append getcwd.h to lib_SOURCES.
86002         (Include): Add getcwd.h.
86003         (Maintainer): Change from Jim Meyering to "all, glibc",
86004         since getdate now uses intended-for-glibc code.
86005         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86006         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86007
86008 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86009
86010         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86011         HP's ANSI C compiler.
86012         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86013         Declaring int functions causes warnings on some modern systems and
86014         shouldn't be needed to compile on ancient ones.
86015         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86016         defined.
86017
86018         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86019         with the following changes.
86020         (__set_errno): Parenthesize properly.
86021         Include <stdbool.h>.
86022         (MIN, MAX, MATCHING_INO): New macros.
86023         (__getcwd): Define with prototype, not K&R form.
86024         Use heuristics to allocate default buffer on stack if possible.
86025         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86026         behavior, and to avoid the PATH_MAX limit when computing
86027         ../../../../...
86028         Use MATCHING_INO to compare inode number to file.
86029         Check for arithmetic overflow in size calculations.
86030         Fix bug in reallocation of dot array that caused getcwd to fail
86031         on directories nested deeper than 75.
86032         Be more careful about saving errno on error.
86033         Do not use realloc; use only free+malloc, as this is a bit
86034         more flexible and avoids a needless copy operation.
86035         Do not inspect st_dev and st_ino for symbolic links; POSIX
86036         doesn't specify the latter.
86037         Check for closedir errors.
86038         Avoid needless casts.
86039         Use "#ifdef weak_alias" around weak_alias, to be like other
86040         glibc code.
86041         The following changes to getcwd.c have effect only when used in
86042         gnulib; they have no effect inside glibc proper.
86043         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86044         as alloca isn't used.
86045         (alloca, __alloca): Likewise.
86046         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86047         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86048         unconditionally, as gnulib assumes C89 or better.
86049         Do not include <sys/param.h>.
86050         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86051         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86052         better.
86053         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86054         Include <dirent.h> in a way that is compatible with modern Autoconf.
86055         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86056         New macros, if not already defined.
86057         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86058         Use "_LIBC", not "defined _LIBC", for consistency.
86059         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86060         a mempcpy module.
86061         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86062         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86063         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86064         credit only to Jim Meyering and adjust the copyright dates.
86065         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86066         <stdlib.h>, <unistd.h>, "pathmax.h".
86067         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86068         (INITIAL_BUFFER_SIZE): Remove.
86069         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86070
86071 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86072
86073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86074         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86075         Use the _ONCE methods, for efficiency.
86076         Check for fcntl.h.  In test program, include <errno.h>
86077         and <fcntl.h> if available.  Remove old K&R cruft from
86078         test program.  Check for common errors in GNU/Linux,
86079         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86080         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86081         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86082         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86083         name accordingly.
86084         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86085         accommodate new getcwd.c.
86086         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86087         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86088         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86089         that's all we need now.
86090
86091 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86092
86093         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86094         argp-parse.c depends on getopt internals, that means we should
86095         always use our getopt, to be on the safe side.
86096         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86097         order not to spoil the result of an eventual previous invocation
86098         of gl_GETOPT_SUBSTITUTE.
86099
86100 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86101
86102         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86103         redefinition warnings. To avoid them, include the defines
86104         in `#if !defined __need_getopt ... #endif'. The only place
86105         where __getopt_argv_const is used is in definitions
86106         of getopt_long and getopt_long_only below, which are as well
86107         protected by `#ifndef __need_getopt'.
86108         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86109         __need_getopt after including <stdio.h> and <unistd.h> These
86110         headers might have defined it.
86111
86112 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86115
86116 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86117
86118         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86119         (futimens): New function, which uses futimes if available.
86120         (futimens, utimens): Support timespec==NULL, with same semantics
86121         as utime and utimens.
86122         * lib/utimens.h (futimens): New decl.
86123
86124 2004-11-23  Jim Meyering  <jim@meyering.net>
86125
86126         * lib/getopt_.h: Remove trailing blanks.
86127
86128 2004-11-23  Jim Meyering  <jim@meyering.net>
86129
86130         * lib/__fpending.c: Add comment.
86131
86132 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86133
86134         * modules/canonicalize (Depends-on): Add xreadlink.
86135         Problem reported by James Youngman.
86136
86137 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86138
86139         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86140         New macros.
86141         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86142         optopt): Use them instead of invoking ## directly; otherwise, the
86143         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86144
86145 2004-11-19  Bruno Haible  <bruno@clisp.org>
86146
86147         * lib/strtok_r.c: Move comments from here...
86148         * lib/strtok_r.h: ... to here.
86149
86150 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86153         implementations that mishandle size_t overflow.
86154
86155 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86156
86157         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86158         might fail.  Problem reported by Yoann Vandoorselaere.
86159         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86160         implementations that mishandle size_t overflow.
86161
86162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86163
86164         * modules/canon-host (Depends-on): Add strdup.
86165
86166 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86167
86168         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86169
86170 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * lib/canon-host.c: Include "strdup.h".
86173         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86174         Use strdup instead of malloc/strcpy to duplicate strings.
86175
86176         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86177         (human_space_before_unit): New constant.
86178         * lib/human.c (human_readable): Support it.
86179
86180         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86181         (xgetcwd): Set errno correctly when failing.
86182         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86183         the failure is actually due to a PATH_MAX problem.
86184
86185         Further getopt changes to make it more likely that glibc will
86186         buy the changes back.
86187         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86188         (getopt): Use it, so to preserve glibc semantic
86189         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86190         when compiling for libc.
86191         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86192         (getopt_long, getopt_long_only): Use it.
86193
86194         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86195         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86196         (getopt): Argv is now char * const *, as per standard.
86197         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86198         not char *__getopt_argv_const *.
86199         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86200         _getopt_long_only_r): Likewise.
86201         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86202         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86203         _getopt_long_r, _getopt_long_only_r): Likewise.
86204         * lib/getopt_.h (__getopt_argv_const): Remove.
86205         (getopt): Argv is now char * const *, as per standard.
86206
86207         * lib/getdate.y (tORDINAL): New token.
86208         (day, relunit): Allow it for relative times.
86209         (relative_time_table): Use tORDINAL for ordinals.
86210
86211 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86212
86213         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86214         Document that "second" isn't allowed as an ordinal number.
86215
86216 2004-11-16  Jim Meyering  <jim@meyering.net>
86217
86218         * modules/closeout (Depends-on): Add fpending.
86219
86220 2004-11-15  Jim Meyering  <jim@meyering.net>
86221
86222         * lib/closeout.c: Include "__fpending.h" once again.
86223         Include <stdbool.h>.
86224         (close_stdout): Don't fail just because stdout was closed initially,
86225         since some programs don't write to stdout in the normal course of
86226         operation (other than --version and --help), and we don't want this
86227         function to make e.g. `touch file >&-' fail.
86228         But do fail if it was closed and someone has tried to write to it.
86229         E.g., `printf foo >&-' must fail.
86230
86231 2004-11-13  Jim Meyering  <jim@meyering.net>
86232
86233         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86234
86235 2004-11-12  Simon Josefsson  <jas@extundo.com>
86236
86237         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86238         small doc fix is still pending.
86239
86240 2004-11-11  Simon Josefsson  <jas@extundo.com>
86241
86242         * modules/strtok_r: New file.
86243
86244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86245         strtok_r.
86246
86247 2004-11-11  Simon Josefsson  <jas@extundo.com>
86248
86249         * m4/strtok_r.m4: New file.
86250
86251         * m4/getopt.m4: Replace opterr.
86252
86253 2004-11-11  Simon Josefsson  <jas@extundo.com>
86254
86255         * lib/strtok_r.h, strtok_r.c: New file.
86256
86257 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86258
86259         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86260         of replacing opterr, getopt, etc.  This should handle the
86261         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86262
86263 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86264
86265         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86266         we can stop lying to compilers about the constness of argv when we
86267         are compiled outside glibc.
86268         (getopt, getopt_long, getopt_long_only): Use it.
86269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86270         _getopt_internal, getopt): Likewise.
86271         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86272         _getopt_long_only_r): Likewise.
86273         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86274         _getopt_long_r, _getopt_long_only_r): Likewise.
86275
86276         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86277         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86278         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86279         the other external symbols.
86280         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86281         declaration, since the above renaming now works around collisions.
86282
86283 2004-11-11  Jim Meyering  <jim@meyering.net>
86284
86285         * lib/linebreak.c: Remove trailing blanks.
86286         * lib/alloca_.h: Likewise.
86287         * lib/acosl.c: Likewise.
86288         * lib/euidaccess.c: Likewise.
86289         * lib/allocsa.h: Likewise.
86290
86291 2004-11-10  Simon Josefsson  <jas@extundo.com>
86292
86293         * m4/getaddrinfo.m4: New file.
86294
86295 2004-11-10  Simon Josefsson  <jas@extundo.com>
86296
86297         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86298
86299 2004-11-10  Simon Josefsson  <jas@extundo.com>
86300
86301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86302         getaddrinfo.
86303
86304         * modules/getaddrinfo: New file.
86305
86306 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86307
86308         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86309
86310 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86311
86312         * lib/mktime.c (SHR): New macro, which is a portable
86313         substitute for >> that should work even on Crays.
86314         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86315         Problem reported by Mark D. Baushke in
86316         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86317         * lib/getdate.y (SHR): Likewise.
86318         (tm_diff): Use it.
86319         * lib/strftime.c (SHR): Likewise.
86320         (tm_diff): Use it.
86321         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86322         quote_these_too, so that right shifts are well defined.  All uses
86323         changed.
86324
86325 2004-11-10  Jim Meyering  <jim@meyering.net>
86326
86327         Ensure that no close failure goes unreported.
86328         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86329         return early when it seems there's nothing to flush.
86330         Don't include __fpending.h.
86331
86332 2004-11-10  Jim Meyering  <jim@meyering.net>
86333
86334         * modules/closeout (Depends-on): Remove fpending.
86335
86336 2004-11-10  Jim Meyering  <jim@meyering.net>
86337
86338         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86339
86340 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86341
86342         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86343         gl_FUNC_STRFTIME.
86344         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86345         and AC_REQUIRE when possible, to avoid duplicate checks.
86346         Check for <wchar.h>.
86347
86348 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86349
86350         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86351
86352 2004-11-09  Bruno Haible  <bruno@clisp.org>
86353
86354         * m4/sockpfaf.m4: New file.
86355
86356 2004-11-05  Bruno Haible  <bruno@clisp.org>
86357
86358         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86359         Reported by Mark D. Baushke <mdb@cvshome.org>.
86360
86361 2004-11-04  Bruno Haible  <bruno@clisp.org>
86362
86363         2004-09-11  Bruno Haible  <bruno@clisp.org>
86364                 * allocsa.valgrind: New file.
86365         2004-02-06  Bruno Haible  <bruno@clisp.org>
86366                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86367                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86368                 Reported by Christopher Seip <chris.seip@hp.com>.
86369
86370 2004-11-04  Bruno Haible  <bruno@clisp.org>
86371
86372         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86373         (Makefile.am): Distribute it.
86374
86375 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86376
86377         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86378         with errno == ERANGE if the buffer is too small.
86379         Problem reported by Mark D. Baushke.
86380
86381 2004-11-03  Albert Chin  <china@thewrittenword.com>
86382             Paul Eggert  <eggert@cs.ucla.edu>
86383
86384         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86385         equivalent, substitute $ac_type for equivalent type rather than
86386         blindly using uint32_t *always* which won't work if uint32_t is not
86387         available.  Define _UINT32_T to work around typedef of uint32_t if
86388         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86389         2.5.1.
86390
86391 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86392
86393         * m4/jm-macros.m4: Sync from coreutils.
86394         (gl_MACROS): Check for mbrlen, for pathchk.
86395         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86396
86397 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86398
86399         * lib/xreadlink.c (MAXSIZE): New macro.
86400         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86401         size does not exceed MAXSIZE.  Avoid cast.
86402         As suggested by Mark D. Baushke in
86403         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86404         if readlink fails with buffer size just under MAXSIZE, try again
86405         with MAXSIZE.
86406
86407 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86410
86411 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86412         and  Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86415         (get_date): Overparenthesize to avoid GCC warning.
86416
86417 2004-11-02  Bruno Haible  <bruno@clisp.org>
86418
86419         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86420         returns void.
86421
86422 2004-11-02  Bruno Haible  <bruno@clisp.org>
86423
86424         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86425         function returns void.
86426
86427 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86428
86429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86430         fflush_unlocked, flockfile, funlockfile, funlockfile,
86431         fputs_unlocked, putc_unlocked.
86432
86433 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86434
86435         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86436         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86437         already declared.
86438
86439 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * modules/getdate (Files): Add doc/getdate.texi.
86442         (Depends-on): Add setenv, xalloc.
86443
86444 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * lib/getdate.y: Add support for TZ="foo" within a date string.
86447         Fix some bugs near time_t boundaries.  Reject dates with
86448         out-of-range components, e.g., "Sept 31".
86449         Include <stdlib.h>, "setenv.h", "xalloc.h".
86450         (ISDIGIT_LOCALE): Remove; unused.
86451         Note that the TZ and time functions used here are not reentrant.
86452         (mktime_ok, get_tz): New functions.
86453         (TZBUFSIZE): New constant.
86454         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86455         This requires that we sometimes generate our own TZ="XXX..." setting.
86456
86457 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86458
86459         * doc/getdate.texi: New file, from coreutils with modifications for
86460         the new TZ parsing.
86461
86462 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86463
86464         * lib/mktime.c (not_equal_tm): Remove redundant check.
86465
86466 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         * modules/regex (lib_SOURCES): Add regex.c.
86469         Reported by James Youngman in
86470         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86471
86472 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * lib/getdate.y: Use Bison 1.875 features, and some minor
86475         code cleanups.  This change does not affect semantics.
86476         Don't include <stdlib.h>; no longer needed.
86477         Don't include unlocked-io.h; only the "#if TEST" code uses
86478         stdio, and performance isn't crucial there.
86479         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86480         Bison 1.875 features as described below.
86481         All uses of "PC." replaced by "pc->".
86482         (YYSTYPE): Add a forward declaration.
86483         (yylex, yyerror): Use full prototypes in forward decls.
86484         Use "%pure-parser" rather than obsolescent "%pure_parser".
86485         Use %parse-param and %lex-param instead of obsolescent
86486         YYPARSE_PARAM and YYLEX_PARAM.
86487         (meridian_table, month_and_day_table, time_units_table,
86488         relative_time_table, time_zone_table, military_table,
86489         lookup_zone, lookup_word, get_date):
86490         Use NULL instead of 0 where appropriate.
86491         (to_hour): Avoid abort (), to avoid a dependency on
86492         stdlib.h.
86493         (yyerror, yylex): Now accepts parser_control * arg.
86494         (main) [TEST]: Use '\0' rather than 0 for char.
86495
86496 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86497
86498         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86499
86500 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86501
86502         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86503         It's now the caller's responsibility to handle the case where
86504         !HAVE_GETPAGESIZE && !defined getpagesize.
86505
86506         * lib/mktime.c (leapyear): Arg is long int, not int.
86507
86508 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86509
86510         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86511
86512 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86515         missing.  Problem reported by James Youngman.
86516
86517 2004-10-16  Simon Josefsson  <jas@extundo.com>
86518
86519         * gnulib-tool: Fix comments.  Fix parse problem.
86520         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86521
86522 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86523
86524         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86525         implementation of getopt_long.  Problem reported by Alexander Taler in:
86526         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86527
86528 2004-10-15  Bruno Haible  <bruno@clisp.org>
86529
86530         * gnulib-tool: Untabify. Initialize supplied_libname.
86531         (func_usage): More homogenous output.
86532         (func_modules_transitive_closure, func_modules_to_filelist,
86533         func_emit_lib_Makefile_am): New functions.
86534         (func_import): New function, extracted from big case statement. Use
86535         func_get_license, func_modules_transitive_closure,
86536         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86537         opt_lgpl. Don't use test -a, as it's not portable.
86538         (func_create_testdir): Use func_modules_transitive_closure,
86539         func_modules_to_filelist, func_emit_lib_Makefile_am.
86540
86541 2004-10-15  Bruno Haible  <bruno@clisp.org>
86542
86543         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86544
86545 2004-10-15  Bruno Haible  <bruno@clisp.org>
86546
86547         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86548         the portions belonging to each module.
86549         Suggested by Derek Robert Price <derek@ximbiot.com>.
86550
86551 2004-10-12  Simon Josefsson  <jas@extundo.com>
86552
86553         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86554         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86555         to real functions.
86556
86557 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86558
86559         * modules/vsnprintf: New file.
86560
86561 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86562
86563         * m4/vsnprintf.m4: New file.
86564
86565 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86566
86567         * lib/vsnprintf.h: New file.
86568         * lib/vsnprintf.c: New file.
86569
86570 2004-10-11  Bruno Haible  <bruno@clisp.org>
86571
86572         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86573         vsnprintf.
86574
86575 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86576
86577         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86578
86579 2004-10-07  Bruno Haible  <bruno@clisp.org>
86580
86581         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86582         fits into the provided buffer.
86583
86584 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86585
86586         * lib/diacrit.c, diacrit.h: Add GPL notice.
86587
86588         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86589         notice.
86590         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86591         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86592         This avoids a potential constant-folding bug.
86593
86594 2004-10-05  Bruno Haible  <bruno@clisp.org>
86595
86596         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86597         for the declaration of strsep.
86598
86599 2004-10-05  Bruno Haible  <bruno@clisp.org>
86600
86601         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86602
86603 2004-10-04  Simon Josefsson  <jas@extundo.com>
86604
86605         * modules/memmem: New file.
86606         * tests/test-memmem.c: New file.
86607         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86608
86609 2004-10-04  Simon Josefsson  <jas@extundo.com>
86610
86611         * m4/memmem.m4: New file.
86612
86613 2004-10-04  Simon Josefsson  <jas@extundo.com>
86614
86615         * lib/memmem.h: New file.
86616         * lib/memmem.c: New file, taken from glibc.
86617
86618 2004-10-04  Simon Josefsson  <jas@extundo.com>
86619
86620         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86621         '#ifdef USE_UNLOCKED_IO'.
86622
86623 2004-10-04  Simon Josefsson  <jas@extundo.com>
86624
86625         * config/srclist.txt: Add memmem from glibc.
86626
86627 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86628
86629         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86630
86631         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86632         modules/exclude, modules/getdate, modules/getline,
86633         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86634         modules/getusershell, modules/linebuffer, modules/md5,
86635         modules/mountlist, modules/posixtm, modules/readtokens,
86636         modules/readutmp, modules/regex, modules/sha1,
86637         modules/version-etc, modules/yesno:
86638         Remove dependency on unlocked-io.
86639
86640 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86641
86642         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86643
86644         * m4/unlocked-io.m4: Add copyright notice.
86645         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86646
86647 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86648
86649         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86650         * lib/xmalloc.c (xmemdup): Likewise.
86651         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86652         XFREE): Remove these long-obsolescent macros.
86653         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86654         * lib/xstrdup.c: Remove.
86655
86656         * lib/regex.c (re_comp): Cast gettext return value to char *,
86657         Problem reported by Martin Neitzel via Mark D. Baushke.
86658
86659 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86660
86661         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86662         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86663         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86664         regex.c, sha1.c, version-etc.c, yesno.c:
86665         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86666         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86667         the includer's responsibility.
86668
86669         Sync from coreutils.
86670
86671         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86672         points to the start of a string, as the C Standard says the
86673         resulting behavior is undefined.
86674
86675         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86676         simple -> simple_backups, numbered_existing ->
86677         numbered_existing_backups, numbered -> numbered_backups
86678         to avoid shadowing problems.  All uses changed.
86679         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86680         * lib/backupfile.c (check_extension, numbered_backup):
86681         Rename locals to avoid shadowing 'basename'.
86682         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86683         once.
86684
86685         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86686         * lib/.cvsignore: Add getopt.h.
86687
86688 2004-10-04  Bruno Haible  <bruno@clisp.org>
86689
86690         * modules/README: New file.
86691         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86692         not a module.
86693
86694 2004-10-02  Jim Meyering  <jim@meyering.net>
86695
86696         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86697
86698 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86699
86700         * modules/strsep: New file.
86701
86702 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86703
86704         * m4/strsep.m4: New file.
86705
86706 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86707
86708         * lib/strsep.h: New file.
86709         * lib/strsep.c: New file.
86710
86711 2004-10-01  Simon Josefsson  <jas@extundo.com>
86712
86713         * lib/snprintf.c (snprintf): Handle size==0.
86714
86715 2004-10-01  Simon Josefsson  <jas@extundo.com>
86716             Bruno Haible  <bruno@clisp.org>
86717
86718         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86719         (snprintf): Declare 'args'.
86720
86721 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86722
86723         * lib/snprintf.c: Remove comments as to why each header is needed.
86724
86725 2004-10-01  Bruno Haible  <bruno@clisp.org>
86726
86727         * MODULES.html.sh: Add strsep.
86728
86729 2004-09-30  Simon Josefsson  <jas@extundo.com>
86730
86731         * modules/snprintf: New file.
86732
86733 2004-09-30  Simon Josefsson  <jas@extundo.com>
86734
86735         * m4/snprintf.m4: New file.
86736
86737 2004-09-30  Simon Josefsson  <jas@extundo.com>
86738
86739         * lib/snprintf.h, lib/snprintf.c: New files.
86740
86741 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86742
86743         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86744         (hol_entry_help): Never translate an empty string.
86745         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86746         * lib/argp.h (OPTION_NO_TRANS): New option.
86747
86748 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86749
86750         * modules/argp (Maintainer): Replace Simon Josefsson
86751         by Sergey Poznyakoff.
86752
86753 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86756         changes merged back into glibc.
86757
86758 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86761
86762 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86763
86764         * lib/xvasprintf.c: Include xalloc.h.
86765         (xvasprintf): Use xalloc_die, not xmalloc_die.
86766
86767 2004-09-29  Bruno Haible  <bruno@clisp.org>
86768
86769         * modules/alloca-opt: New file, derived from modules/alloca.
86770         * modules/allocsa: Depend on alloca-opt instead of alloca.
86771         * modules/setenv: Likewise.
86772         * modules/vasnprintf: Likewise.
86773         * MODULES.html.sh: Add alloca-opt.
86774
86775 2004-09-28  Simon Josefsson  <jas@extundo.com>
86776
86777         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86778         LGPL, and to replace license template from GPL to LGPL.
86779
86780 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86781
86782         * modules/dummy: Change license to LGPL.
86783
86784 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86787
86788 2004-09-24  Simon Josefsson  <jas@extundo.com>
86789
86790         * modules/minmax (License): Change from GPL to LGPL.
86791
86792 2004-09-23  Simon Josefsson  <jas@extundo.com>
86793
86794         * gnulib-tool (--import): Typo.
86795
86796 2004-09-23  Simon Josefsson  <jas@extundo.com>
86797
86798         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86799
86800 2004-09-22  Bruno Haible  <bruno@clisp.org>
86801
86802         * modules/*: Add 'License' field.
86803         * gnulib-tool: Accept --extract-license option.
86804         (func_get_license): New function.
86805
86806 2004-09-21  Bruno Haible  <bruno@clisp.org>
86807
86808         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86809         Reported by Simon Josefsson.
86810
86811 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86814         gl_AC_TYPE_LONG_LONG.
86815
86816 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86817
86818         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86819
86820 2004-09-18  Simon Josefsson  <jas@extundo.com>
86821         and  Paul Eggert  <eggert@cs.ucla.edu>
86822
86823         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86824         calls with autoreconf.  Define GL_LIB.
86825
86826 2004-09-14  Karl Berry  <karl@gnu.org>
86827
86828         * config/srclist.txt: unsync setenv.c, sigh.
86829
86830 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86831
86832         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86833         Problem reported by Bruno Haible in:
86834         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86835
86836 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86837
86838         * config/srclist.txt: Comment out argp-pvh.c.
86839
86840 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86841
86842         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86843         in case some system header has #define'd it.  Problem reported by
86844         Soeren D. Schulze in
86845         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86846
86847 2004-09-09  Karl Berry  <karl@gnu.org>
86848
86849         * regex.[ch]: delete from the root.  These were supposed to be
86850                 synced with emacs cvs, but this has not happened for about
86851                 a year, and anyway nothing else uses emacs regex.[ch].
86852                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86853                 lib/regex[.ch] is untouched.
86854
86855 2004-09-09  Bruno Haible  <bruno@clisp.org>
86856
86857         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86858
86859 2004-09-09  Bruno Haible  <bruno@clisp.org>
86860
86861         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86862         modifications.
86863         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86864
86865 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86866
86867         * modules/xvasprintf: New file.
86868         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86869
86870 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86871
86872         * lib/xvasprintf.h: New file.
86873         * lib/xvasprintf.c: New file.
86874         * lib/xasprintf.c: New file.
86875
86876 2004-09-08  Bruno Haible  <bruno@clisp.org>
86877
86878         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86879
86880 2004-09-08  Bruno Haible  <bruno@clisp.org>
86881
86882         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86883         length is > INT_MAX.
86884         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86885         more.
86886
86887 2004-09-08  Bruno Haible  <bruno@clisp.org>
86888
86889         * lib/stdint_.h: New file, taken from GNU clisp.
86890
86891 2004-09-08  Bruno Haible  <bruno@clisp.org>
86892             Oskar Liljeblad  <oskar@osk.mine.nu>
86893
86894         * modules/stdint: New file.
86895         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86896
86897 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86898
86899         Import from coreutils.
86900         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86901         strings on unbounded length.  alloca's performance benefits aren't
86902         that important here.
86903         (V_STRDUP): Remove.
86904         (parse_with_separator): New function, with most of the internals
86905         of the old parse_user_spec.  Allow user to omit both user and group,
86906         for compatibility with FreeBSD.
86907         Clone only the user name, not the entire spec.
86908         Do not set *uid, *gid unless entirely successful.
86909         Avoid memory leak in some failing cases.
86910         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86911         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86912         (parse_user_spec): Rewrite to use parse_with_separator.
86913
86914 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86915
86916         * modules/userspec: Don't depend on alloca.
86917
86918 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86919
86920         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86921
86922 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86925         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86926         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86927
86928 2004-08-16  Simon Josefsson  <jas@extundo.com>
86929
86930         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86931         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86932         Add --dry-run for --import.
86933         Let user provided command line parameters override configure.ac
86934         settings.
86935
86936 2004-08-12  Simon Josefsson  <jas@extundo.com>
86937
86938         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86939         as discussed with Paul Eggert in threads rooted at
86940         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86941         and
86942         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86943         Before, the test was empty, and relied on ELIDE_CODE in source
86944         code.)
86945         (gl_PREREQ_GETOPT): New macro.
86946         (gl_GETOPT): Use them.
86947
86948 2004-08-12  Simon Josefsson  <jas@extundo.com>
86949
86950         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86951         * lib/getopt_.h: Renamed from getopt.h.
86952
86953 2004-08-12  Simon Josefsson  <jas@extundo.com>
86954
86955         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86956         Change default library name from libfoo to libgnu.
86957         Now, if you have a configure.ac that says:
86958                 gl_SOURCE_BASE(gl)
86959                 gl_M4_BASE(gl/m4)
86960                 gl_MODULES(error getopt etcetera)
86961                 gl_INIT
86962         you can import all you need by running:
86963                 ../gnulib/gnulib-tool --import
86964
86965         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86966         (Makefile.am): Rewrite, use logic from argz.
86967         (Include): Use <getopt.h> instead of "getopt.h".
86968
86969 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86970
86971         * modules/argp (Files): Add m4/unlocked-io.m4.
86972         (Depends-on): Add extensions.
86973
86974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86975
86976         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86977         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86978         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86979         Check for program_invocation_name, program_invocation_short_name,
86980         flockfile, funlockfile, features.h, _getopt_long_only_r.
86981
86982 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86983
86984         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86985         its complicated substitute.
86986         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86987         and program_invocation_name.
86988         (__argp_basename) [!_LIBC]: Remove; the only use was
86989         replaced by its body.
86990         (__argp_short_program_name): Change condition from
86991         !defined __argp_short_program_name to
86992         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86993         to match argp-namefrob.h.
86994         (__argp_failure): Don't assume strerror_r returns char *.
86995         * lib/argp-parse.c (N_): Define unconditionally.
86996         (argp_default_options): Fill out initializers with 0 to avoid
86997         gcc warnings.
86998
86999 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87000
87001         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87002         getopt1.c.
87003
87004 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         Merge from coreutils.
87007
87008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87009
87010         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87011         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87012
87013 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87014
87015         Merge from coreutils.
87016
87017         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87018         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87019         for Reliant Unix 5.43.
87020
87021         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87022         (union fooround): Use uintmax_t, not long int.
87023         The rest is a merge from libc:
87024         [defined _LIBC]: Include <shlib-compat.h>.
87025         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87026
87027         * lib/settime.c (settime): Recode to avoid warning with
87028         Sun Forte C 6U2.
87029
87030         * lib/strverscmp.c: Convert to UTF-8.
87031
87032 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87033
87034         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87035         m4/uintmax_t.m4.
87036
87037 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87038
87039         * modules/xalloc-die: New file.
87040         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87041
87042         * modules/md5 (Files): Add m4/uint32_t.m4.
87043         * modules/sha1: Renamed from modules/sha.
87044         (Files):
87045         Rename lib/sha.h to lib/sha1.h.
87046         Rename lib/sha.c to lib/sha1.c.
87047         Rename m4/sha.m4 to m4/sha1.m4.
87048         (lib_SOURCES): Likewise.
87049         (configure.ac): Rename gl_SHA to gl_SHA1.
87050         (Include): sha.h -> sha1.h.
87051
87052 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87053
87054         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87055         * m4/sha1.m4: Renamed from sha.m4.
87056         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87057
87058 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87059
87060         * lib/obstack.h (obstack_empty_p):
87061         Don't assume that chunk->contents is suitably aligned.
87062         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87063         Likewise. Problem reported by Benno in
87064         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87065
87066         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87067         readable.  This could be improved further but it'd take some work.
87068
87069 2004-08-08  Simon Josefsson  <jas@extundo.com>
87070
87071         * modules/xgethostname (Depends-on): Remove exit and error (not
87072         used).
87073
87074         * modules/getpass-gnu: Add getpass.h.
87075         (Depends-on): Add stdbool.
87076         * modules/getpass: Add getpass.h.
87077
87078 2004-08-08  Simon Josefsson  <jas@extundo.com>
87079
87080         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87081         Check getpass declaration.
87082
87083 2004-08-08  Simon Josefsson  <jas@extundo.com>
87084
87085         * lib/xgethostname.c: Don't include error.h (not used).
87086
87087         * lib/getpass.h: Add.
87088         * lib/getpass.c: Include getpass.h first.
87089
87090 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87091
87092         * lib/xalloc-die.c: New file.
87093         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87094         All uses removed.
87095         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87096         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87097         xalloc-die.c.
87098         (_, N_, xalloc_die): Move to xalloc-die.c.
87099         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87100         so that we needn't mess with xalloc_msg_memory_exhausted.
87101
87102         * lib/sha1.h: Renamed from sha.h.
87103         (SHA1_H): Renamed from _SHA_H.
87104         (sha1_ctx): Renamed from sha_ctx.
87105         (sha1_init_ctx): Renamed from sha_init_ctx.
87106         (sha1_process_block): Renamed from sha_process_block.
87107         (sha1_process_bytes): Renamed from sha_process_bytes.
87108         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87109         (sha1_read_ctx): Renamed from sha_read_ctx.
87110         (sha1_stream): Renamed from sha_stream.
87111         (sha1_buffer): Renamed from sha_buffer.
87112         * lib/sha1.c: Likewise; renamed from sha.c.
87113         Do not include <sys/types.h>.
87114         Include <stddef.h> rather than <stdlib.h>.
87115
87116 2004-08-08  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87119         FILESYSTEM_PREFIX_LEN.
87120         * lib/progreloc.c: Likewise.
87121         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87122
87123 2004-08-06  Simon Josefsson  <jas@extundo.com>
87124
87125         * modules/progname (Depends-on): Don't depend on stdbool.
87126
87127 2004-08-06  Simon Josefsson  <jas@extundo.com>
87128
87129         * modules/getsubopt: New file.
87130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87131         getsubopt.
87132
87133 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87134
87135         More merge from coreutils.
87136
87137         * m4/utimens.m4, m4/utimecmp.m4: New files.
87138         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87139         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87140         prereq.m4, sha.m4: Import changes from coreutils.
87141
87142 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         More merge from coreutils.
87145         * modules/raise, modules/readtokens0, modules/utimens:
87146         * modules/utimecmp, module/xnanosleep: New files.
87147         * modules/strftime: Add lib/strftime.h.
87148         Change include from <time.h> to "strftime.h".
87149         * modules/yesno: Add lib/yesno.h.
87150         * modules/backupfile: Remove lib/addext.c.
87151         * modules/euidaccess: Add stat-macros.h.
87152         * modules/canonicalize, modules/euidaccess,
87153         modules/filemode, modules/lchown, modules/makepath,
87154         modules/rmdir, modules/stat: Likewise.
87155
87156 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87157
87158         Merge from tar.
87159         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87160         SIZE_MAX is a valid preprocessor constant.
87161         (__argp_basename): Change from "#ifndef _LIBC"
87162         to "#ifndef __argp_short_program_name", so that
87163         we don't compile these functions for tar.
87164
87165         More merges from coreutils.
87166         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87167         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87168         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87169         * lib/addext.c: Remove; no longer needed.
87170         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87171         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87172         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87173         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87174         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87175         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87176         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87177         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87178         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87179         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87180         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87181         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87182         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87183         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87184         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87185         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87186         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87187         Import changes from coreutils.
87188
87189 2004-08-05  Simon Josefsson  <jas@extundo.com>
87190
87191         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87192
87193 2004-08-05  Simon Josefsson  <jas@extundo.com>
87194
87195         * m4/getsubopt.m4: New file.
87196
87197 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87198
87199         Merge from coreutils.
87200
87201         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87202         * m4/getcwd-path-max.m4: New files.
87203
87204         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87205         FILESYSTEM_PREFIX_LEN ->
87206         FILE_SYSTEM_PREFIX_LEN.
87207         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87208         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87209         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87210         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87211
87212         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87213         prerequisite modules now handle the DOS stuff.
87214         Don't check for unistd.h.
87215
87216 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         Merge from coreutils.
87219
87220         * lib/.gdb-history: Remove; this doesn't belong here.
87221
87222         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87223         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87224         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87225         * lib/getcwd.c: New files.
87226
87227         * lib/dirname.h: Include <stdbool.h>.
87228         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87229         for consistency with POSIX terminology.  All uses changed.
87230         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87231         (strip_trailing_slashes): Use bool for booleans.
87232         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87233
87234         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87235         sometimes returns a positive errno value even when it succeeds.
87236         (print_errno_message) [!LIBC]: Fall back on strerror if
87237         __strerror_r fails.
87238
87239         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87240         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87241         (longest_relative_suffix): New function.
87242         (path_concat): Use it.  Assume first argument is not NULL.
87243         Port to DOS.  Omit redundant separators.
87244         Report an error instead of returning NULL.
87245         Use mempcpy instead of memcpy.
87246         (xpath_concat): Remove: not declared or used.
87247
87248         * lib/same.h: Include <stdbool.h>
87249         (same_name): Return bool, not int.
87250         * lib/same.c (same_name): Likewise.
87251         (errno): Don't declare; we assume C89 or better now.
87252
87253         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87254         if not already defined.
87255
87256         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87257         * lib/dup-safer.c (errno): Likewise.
87258
87259 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87260
87261         Merge from coreutils.
87262         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87263         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87264         * modules/path-concat: Don't depend on strdup.
87265
87266 2004-08-03  Simon Josefsson  <jas@extundo.com>
87267
87268         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87269         * lib/progname.h: Don't include stdbool.h.
87270
87271 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87272
87273         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87274         * MODULES.html.sh (func_all_modules): Remove fatal.
87275
87276 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87277
87278         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87279
87280 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87281
87282         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87283         working.
87284
87285 2004-08-02  Simon Josefsson  <jas@extundo.com>
87286
87287         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87288         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87289         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87290
87291 2004-08-01  Simon Josefsson  <jas@extundo.com>
87292
87293         * lib/xgetdomainname.c: Include stdlib.h, for free().
87294
87295 2004-07-19  Bruno Haible  <bruno@clisp.org>
87296
87297         * MODULES.html.sh (func_all_modules): Add dummy.
87298
87299 2004-07-16  Simon Josefsson  <jas@extundo.com>
87300
87301         * modules/dummy: New file.
87302
87303 2004-07-16  Simon Josefsson  <jas@extundo.com>
87304
87305         * lib/dummy.c: New file.
87306
87307 2004-07-16  Bruno Haible  <bruno@clisp.org>
87308
87309         * lib/backupfile.h: Add extern "C" for C++.
87310         * lib/closeout.h: Likewise.
87311         * lib/copy-file.h: Likewise.
87312         * lib/findprog.h: Likewise.
87313         * lib/full-write.h: Likewise.
87314         * lib/pathname.h: Likewise.
87315         * lib/progname.h: Likewise.
87316         * lib/stpcpy.h: Likewise.
87317         * lib/stpncpy.h: Likewise.
87318         * lib/strcase.h: Likewise.
87319         * lib/strstr.h: Likewise.
87320         * lib/xalloc.h: Likewise.
87321
87322         * lib/mbswidth.h: Add extern "C" for C++.
87323         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87324
87325 2004-07-13  Robert Millan  <robertmh@gnu.org>
87326
87327         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87328
87329 2004-07-09  Simon Josefsson  <jas@extundo.com>
87330
87331         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87332         failed without this.)
87333
87334 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87335
87336         * modules/chown (Files): Add lib/fchown-stub.c, since
87337         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87338
87339 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87340
87341         * lib/fchown-stub.c: New file.
87342
87343 2004-06-24  Jim Meyering  <jim@meyering.net>
87344
87345         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87346
87347 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87348
87349         * modules/argz: Omit "#include".
87350
87351         * MODULES.html.sh (func_all_modules): Add calloc, to match
87352         2004-06-01 addition of calloc module.
87353
87354 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87355
87356         * m4/argz.m4: New file, which is autoupdated from libtool.
87357
87358 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87359
87360         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87361         libtool.
87362
87363 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87364
87365         * config/srclist-update: Don't insist on "USA." before the
87366         close-comment, as libtool omits the period and puts the */ on a
87367         separate line.
87368         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87369         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87370
87371 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87372
87373         * modules/argz: New file.
87374         * MODULES.html.sh (func_all_modules): Add argz.
87375
87376 2004-06-12  Jim Meyering  <jim@meyering.net>
87377         and  Paul Eggert  <eggert@cs.ucla.edu>
87378
87379         * modules/hash (Files): Add lib/xalloc.h.
87380         * modules/pipe (Depends-on): Add wait-process.
87381         * modules/stat (Depends-on): Add xalloc.
87382         * modules/userspec (Files): Add lib/userspec.h.
87383         * modules/xstrto
87384
87385         Upgrade from gettext-0.13.
87386         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87387         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87388         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87389
87390 2004-06-10  Jim Meyering  <jim@meyering.net>
87391
87392         * lib/calloc.c: New file.
87393
87394 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87395
87396         * lib/getdate.y (yylex): Allow space between sign and number.
87397         Problem reported by Dan Jacobson.
87398
87399 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87400
87401         Merge from coreutils CVS.
87402
87403         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87404         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87405         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87406         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87407         xstrtol.m4: Fix copyright date and/or serial number.
87408
87409         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87410         See if we need an fchown replacement.
87411         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87412         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87413         and use the replacement function if we detect either defect.
87414
87415         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87416         gl_UTIMECMP.
87417
87418 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87419         and  Jim Meyering  <jim@meyering.net>
87420
87421         Merge from coreutils CVS.
87422
87423         * lib/stat-macros.h: New file, with contents from file-type.h
87424         and coreutils' system.h.
87425         * lib/file-type.c: Include "stat-macros.h".
87426         * lib/file-type.h (file_type): Move all macro definitions to new file,
87427         stat-macros.h.
87428
87429         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87430         Wrap old code with this conditional.
87431         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87432         function that does not dereference symlinks.
87433         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87434
87435         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87436         dependency problems.
87437         (xreadlink): Accept new arg SIZE, for efficiency.
87438         All decls and uses changed.
87439         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87440
87441         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87442         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87443
87444         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87445         sysexits.h.
87446
87447 2004-06-01  Jim Meyering  <jim@meyering.net>
87448
87449         * m4/calloc.m4: New file.
87450
87451 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87452
87453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87454         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87455         Also, fix a typo in a diagnostic.
87456
87457 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87458
87459         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87460         or AC_FUNC_REALLOC.
87461
87462 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87463
87464         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87465         macros to be defined.
87466         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87467         the allocator returns NULL because the requested size is zero.
87468
87469 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87470
87471         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87472         var.  Add comment explaining why libc still defines it.  This
87473         merges the following patch from glibc:
87474         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87475
87476 2004-05-20  Andreas Schwab  <schwab@suse.de>
87477
87478         * m4/free.m4: Replace free if it not known to work, not the other
87479         way round.
87480
87481 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87482
87483         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87484         present in glibc since revision 1.1 of this file.
87485         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87486         obstack_alignment_mask, obstack_alloc, obstack_base,
87487         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87488         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87489         obstack_grow0, obstack_init, obstack_int_grow,
87490         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87491         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87492         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87493         nonexistent functions.
87494
87495 2004-05-18  Karl Berry  <karl@gnu.org>
87496
87497         * config/srclist.txt: break link for vasnprintf.c.
87498
87499 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         Port obstack to the AS/400, where pointers are 16 bytes wide and
87502         you cannot cast an integer to a valid pointer.  This patch is
87503         currently waiting to be integrated into glibc; see
87504         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87505
87506         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87507         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87508         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87509         (struct obstack): temp member is now a union of a pointer and
87510         an integer, instead of an integer.  All integer uses changed.
87511         This does not affect the physical layout of struct obstack,
87512         except on hosts (like the AS/400) where the size or alignment of
87513         void * is greater than that of ptrdiff_t.
87514         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87515         __STDC__)]: Store temporary in pointer member of union, not
87516         integer member.
87517         * lib/obstack.c: Include <stddef.h>, for offsetof.
87518         (struct fooalign): Remove; it doesn't need a name.
87519         (union fooround): Change double to long double, and add void *.
87520         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87521         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87522         not a macro.  Hence the values are always int; so remove all
87523         casts-to-int in uses.
87524
87525 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87526
87527         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87528         we can get this patch merged into glibc.
87529
87530 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87531             Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * m4/argp: Depend on alloca.
87534
87535 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87536             Paul Eggert  <eggert@cs.ucla.edu>
87537
87538         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87539         freecoding.
87540
87541 2004-05-17  Bruno Haible  <bruno@clisp.org>
87542
87543         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87544         precision that consists of a '.' followed by an empty digit string.
87545         Patch by Tor Lillqvist <tml@iki.fi>.
87546
87547 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87548
87549         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87550         for backward compatibility with older code.  We need our own
87551         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87552         it under some other name, and our alloca.h will define it.
87553
87554 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87555             Derek Price  <derek@ximbiot.com>
87556
87557         * lib/alloca.c: Include <alloca.h>, to get our interface.
87558         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87559         include <alloca.h> first.  Use C89 prototype for alloca; this
87560         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87561         Use #elif for simplicity, since we can assume C89 now.
87562         Don't try to source the system alloca.h since it will not be found
87563         and to prevent recursively including its replacement.
87564         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87565         * lib/regex.c: Likewise.
87566
87567 2004-05-16  Derek Price  <derek@ximbiot.com>
87568             Paul Eggert  <eggert@cs.ucla.edu>
87569
87570         getline cleanup.  This changes the getndelim2 API: both order of
87571         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87572         no delimiter).
87573
87574         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87575         interface does that.
87576         (getline): Always use getdelim, so that we don't have two
87577         copies of this code.
87578         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87579         if available.
87580         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87581         (GETNDELIM2_MAXIMUM): New macro.
87582         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87583         instead of the old practice of delim2==0.  All callers changed.
87584         Return -1 on overflow, instead of returning junk.
87585         Do not set *linesize unless allocation succeeds.
87586         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87587         that we include sys/types.h.
87588         * lib/getnline.h: Likewise.
87589         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87590         (getndelim2): Reorder arguments.
87591         * lib/getnline.c (getnline, getndelim):
87592         Don't discard the NMAX argument.
87593         (getnline): Invoke getndelim, to avoid code duplication.
87594         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87595         of (size_t) -1 by callers of the getnline family.
87596
87597 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87598
87599         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87600         Check for gettimeofday.
87601         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87602         Check for settimeofday, stime.
87603
87604 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87605
87606         * lib/nanosleep.c (suspended): Change its type from int to
87607         sig_atomic_t volatile.
87608         (first_call): Make it private to rpl_nanosleep, and have it
87609         be zero initially as that's a bit faster.
87610         (my_usleep): Round up fractional times instead of truncating them,
87611         as this is the usual meaning for 'sleep'.
87612
87613         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87614         doesn't work.
87615         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87616         (ENOSYS): Define if not defined.
87617         (settime): Fall back on stime if it exists and settimeofday fails.
87618         But don't bother with fallbacks if a method fails with errno == EPERM.
87619
87620 2004-05-11  Jim Meyering  <jim@meyering.net>
87621
87622         Prior to this change, the save_cwd caller required read access to the
87623         current directory on most systems (ones with the fchdir function).
87624
87625         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87626         fails, try write-only, and finally, resort to using xgetcwd.
87627
87628 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87629
87630         * lib/obstack.c, obstack.h: Import changes from libc.
87631
87632 2004-04-28  Bruno Haible  <bruno@clisp.org>
87633
87634         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87635         also implicitly appends .exe to executables.
87636         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87637         accepts Windows pathnames.
87638         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87639         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87640         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87641         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87642         Reported by Derek Robert Price <derek@ximbiot.com>.
87643
87644 2004-04-21  Karl Berry  <karl@gnu.org>
87645
87646         * config/srclist.txt (localcharset.c): break sync.
87647
87648 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87649
87650         * m4/host-os.m4: Add a copyright notice.
87651
87652 2004-04-20  Jim Meyering  <jim@meyering.net>
87653
87654         Change UTILS_ to gl_ in AC_DEFINE'd names.
87655         Change utils_- and jm_-prefixed variables, too.
87656         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87657         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87659
87660         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87661         Don't emit trailing blanks.
87662         Also rename jm_-prefixed variables to have gl_ prefix.
87663
87664         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87665         Also rename jm_-prefixed variables to have gl_ prefix.
87666
87667         * m4/jm-macros.m4: Reflect the renamings.
87668         * m4/prereq.m4: Likewise.
87669
87670 2004-04-20  Jim Meyering  <jim@meyering.net>
87671
87672         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87673         memory.
87674
87675 2004-04-20  Jim Meyering  <jim@meyering.net>
87676             Bruno Haible  <bruno@clisp.org>
87677
87678         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87679         memory when realloc fails.
87680
87681 2004-04-19  Jim Meyering  <jim@meyering.net>
87682
87683         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87684         now that readutmp.c may call `free (0)'.
87685
87686 2004-04-19  Bruno Haible  <bruno@clisp.org>
87687
87688         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87689         * m4/inttypes_h.m4: Likewise.
87690         * m4/stdint_h.m4: Likewise.
87691         * m4/intmax_t.m4: Likewise.
87692         * m4/uintmax_t.m4: Likewise.
87693
87694 2004-04-18  Jim Meyering  <jim@meyering.net>
87695
87696         * m4/prereq.m4: Don't forbid jm_ prefix.
87697
87698         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87699         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87700         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87701         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87702         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87703         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87704         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87705         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87706         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87707         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87708         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87709         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87710         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87711         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87712         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87713         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87714         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87715         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87716         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87717
87718 2004-04-18  Jim Meyering  <jim@meyering.net>
87719
87720         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87721         failure, don't leak memory and do call END_UTMP_ENT.
87722
87723 2004-04-16  Jim Meyering  <jim@meyering.net>
87724
87725         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87726         coreutils' stat program.
87727         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87728
87729 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87730
87731         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87732         C89.
87733         (CHAR_BIT): Remove, since we assume C89.
87734         Include <stdint.h> if available, as per current Autoconf CVS advice.
87735
87736 2004-03-31  Jim Meyering  <jim@meyering.net>
87737
87738         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87739         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87740         * m4/xalloc.m4: Likewise.
87741
87742 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87743
87744         Merge from coreutils.
87745
87746         * m4/inttostr.m4: New file.
87747         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87748         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87749         Require gl_CLOCK_TIME.
87750         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87751
87752 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87753
87754         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87755         not bool, to be more consistent with Unix conventions.
87756         Suggested by Bruno Haible.
87757
87758         Merge from coreutils.
87759
87760         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87761         * lib/umaxtostr.c: New files.
87762
87763         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87764         the usual <time.h> dance.
87765         (get_date): Change signature to support fractional time stamps.
87766         All callers changed.
87767         * lib/getdate.y: Include "getdate.h" first, as we can now
87768         assume C89 and don't need to worry about 'const'.
87769         Similarly, include "unlocked-io.h" near start, not in middle.
87770         Include <limits.h>.
87771         (textint.value): Use long int rather than int.
87772         (textint.digits): Use size_t rather than int.
87773         (BILLION, LOG10_BILLION): New constants.
87774         (parser_control): New member rel_ns.  Members day_ordinal,
87775         time_zone, month, day, hour, minutes, rel_year, rel_month,
87776         rel_day, rel_hour, rel_minutes, rel_seconds
87777         are now long int, not int.  Member seconds is now struct timespec,
87778         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87779         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87780         not int.
87781         (%union.intval): Now long int, not int.
87782         New member timespec.
87783         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87784         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87785         (spec): Now is a timespec or an item list.
87786         (timespec, items): New nonterminals.
87787         (time, rel, relunit, number, get_date):
87788         Add support for fractional seconds.
87789         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87790         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87791         (to_hour): First arg is now long int, not int.
87792         (to_year): Returns long int, not int.
87793         Don't treat year -70 like 70.
87794         (tm_diff): Returns long int, not int.
87795         (lookup_word): Use bool instead of int when appropriate.
87796         (yylex): Use size_t for count, not int.
87797         Detect overflow when parsing large integer constants.
87798         Add support for fractions.
87799         (get_date): Make pointers 'const' if possible.
87800         Use more-portable code to detect integer overflow.
87801         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87802         Don't use ctime; it's not reliable if the year has >4 digits.
87803
87804         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87805         This is for compatibility with BSD.
87806
87807         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87808         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87809         From coreutils' system.h.
87810
87811         * lib/userspec.c: Don't include "posixver.h".
87812         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87813         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87814         compatible extension.  Simplify code by removing a boolean int
87815         that was always nonzero if a string was nonnull.
87816
87817 2004-03-30  Jim Meyering  <jim@meyering.net>
87818
87819         Merge from coreutils.
87820
87821         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87822         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87823         on some systems one must include <grp.h> before it.
87824         Reported by Christian Krackowizer.
87825
87826 2004-03-30  Jim Meyering  <jim@meyering.net>
87827
87828         Merge from coreutils.
87829
87830         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87831
87832         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87833         an empty input stream.
87834
87835         * lib/readtokens.c: Include <stdbool.h>.
87836         (readtoken): Use `size_t' rather than int/long.
87837         All callers adjusted.
87838         Use `bool' rather than `int' where appropriate.
87839         Use memset rather than an explicit loop.
87840         Use x2nrealloc rather than xrealloc.
87841         Allow the use of `\0' as a delimiter.
87842         (readtokens): Likewise.
87843         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87844
87845 2004-03-30  Jim Meyering  <jim@meyering.net>
87846
87847         * m4/realloc.m4: Remove file, since now it does no more than
87848         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87849         the `configure.ac' section of module/realloc.
87850         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87851
87852 2004-03-30  Bruno Haible  <bruno@clisp.org>
87853
87854         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87855         nonnull.
87856
87857 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87858
87859         Merge changes to getloadavg.c from coreutils and Emacs.
87860
87861         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87862         Define to an expression, not to the empty string.
87863         Include cloexec.h and xalloc.h.
87864         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87865         Use set_cloexec_flag rather than rolling our own.
87866         * lib/cloexec.c, lib/cloexec.h: New files.
87867
87868 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87869
87870         * m4/cloexec.m4: New file.
87871
87872 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87873
87874         * lib/getopt.h: Sync with libc CVS.
87875
87876 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87877             Bruno Haible  <bruno@clisp.org>
87878
87879         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87880         mbswidth.
87881
87882 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87883             Bruno Haible  <bruno@clisp.org>
87884
87885         * lib/mbswidth.h: Include <wchar.h> only if
87886         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87887         <wchar.h>.
87888         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87889
87890 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87891
87892         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87893         Sync with libc CVS.
87894         * lib/getopt_int.h: New file, also synced from libc.
87895
87896 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87897
87898         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87899         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87900         Bring back getopt.c, getopt.h, getopt1.c.
87901
87902 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87903
87904         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87905         All uses changed.  Check for sa_sigaction member; this fixes
87906         a bug first reported by Jason Andrade in
87907         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87908
87909 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87910
87911         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87912         '#if' expressions.  Unlike the code it replaces, it does not
87913         depend on (defined _SC_PAGESIZE).  However, it does depend on
87914         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87915         first reported by Jason Andrade in
87916         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87917
87918 2004-02-25  Simon Josefsson  <jas@extundo.com>
87919
87920         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87921
87922 2004-02-25  Simon Josefsson  <jas@extundo.com>
87923
87924         * lib/strdup.h: New file.
87925         * lib/strdup.c: Include it.
87926         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87927         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87928
87929 2004-02-23  Karl Berry  <karl@gnu.org>
87930
87931         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87932         (from fencepost.gnu.org:/gd/gnuorg).
87933
87934 2004-02-23  Karl Berry  <karl@gnu.org>
87935
87936         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87937         * config/srclist.txt: add maintain/standards documents.
87938
87939 2004-02-18  Bruno Haible  <bruno@clisp.org>
87940
87941         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87942         Reported by Derek Robert Price <derek@ximbiot.com>.
87943
87944 2004-02-16  Karl Berry  <karl@gnu.org>
87945
87946         * config/mkinstalldirs, install-sh: update from automake.
87947
87948 2004-02-06  Karl Berry  <karl@gnu.org>
87949
87950         * m4/po.m4: update from gettext 0.14.1.
87951
87952 2004-02-06  Karl Berry  <karl@gnu.org>
87953
87954         * lib/config.charset: update from gettext 0.14.1.
87955
87956 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87957
87958         Add comments and code, prompted by suggestions from Bruno Haible
87959         for sh-quote.
87960         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87961         describing the enum quoting_style values.
87962         * lib/quotearg.c (quotearg_alloc): New function.
87963         (quotearg_buffer_restyled): Treat lone { and } as special.
87964         Treat = as special.  Work around bug with older shells
87965         that "see" a '\' that is really the 2nd byte of a multibyte char.
87966         Quote empty string with shell_quoting_style.
87967
87968 2004-02-03  Bruno Haible  <bruno@clisp.org>
87969
87970         * m4/pipe.m4: New file, from GNU gettext.
87971
87972 2004-02-03  Bruno Haible  <bruno@clisp.org>
87973
87974         * lib/pipe.h: New file, from GNU gettext.
87975         * lib/pipe.c: New file, from GNU gettext.
87976
87977 2004-01-27  Bruno Haible  <bruno@clisp.org>
87978
87979         * m4/execute.m4: New file, from GNU gettext.
87980
87981 2004-01-27  Bruno Haible  <bruno@clisp.org>
87982
87983         * lib/execute.h: New file, from GNU gettext.
87984         * lib/execute.c: New file, from GNU gettext.
87985         * lib/w32spawn.h: New file, from GNU gettext.
87986
87987 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87988
87989         Merge from diffutils.
87990
87991         * lib/file-type.c (file_type): Add typed memory objects.
87992         * lib/file-type.h (S_TYPEISTMO): New macro.
87993
87994         * lib/c-stack.h (c_stack_action): Remove argv argument.
87995         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87996         (die): Don't calculate message unless segv_action returns.
87997         (get_stack_location, min_address_from_argv, max_address_from_argv,
87998         volatile stack_base, volatile_stack_size): Remove.
87999         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88000         that every segmentation violation is a stack overflow.  (Ouch!)
88001         See Debian bug 136249 (still outstanding) for more info about why
88002         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88003
88004 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88005
88006         Exit-status fix from coreutils.
88007
88008         Use exit_failure consistently in place of EXIT_FAILURE,
88009         so that program exit statuses are consistent on failure.
88010
88011         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88012         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88013         * lib/argmatch.h: Comment fix to match the above.
88014         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88015         Now a macro referring to exit_failure, instead of a separate
88016         variable.  Include "exitfail.h" to get it.
88017         * lib/xstrtol.h: Include "exitfail.h".
88018         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88019
88020         * lib/long-options.c (parse_long_options): Use prototype
88021         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88022         for clarity.
88023
88024 2004-01-21  Jim Meyering  <jim@meyering.net>
88025
88026         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88027         so as not to conflict with a different-sized __mktime_internal
88028         function in GNU libc.
88029         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88030         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88031
88032 2004-01-20  Karl Berry  <karl@gnu.org>
88033
88034         * config/config.guess: update from config.
88035
88036         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88037
88038 2004-01-20  Bruno Haible  <bruno@clisp.org>
88039
88040         Safer stack allocation.
88041         * lib/setenv.c: Include allocsa.h.
88042         (alloca): Remove fallback definition.
88043         (freea): Remove macro.
88044         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88045         instead of freea.
88046
88047 2004-01-20  Bruno Haible  <bruno@clisp.org>
88048
88049         * m4/eealloc.m4: New file, from GNU gettext.
88050
88051 2004-01-20  Bruno Haible  <bruno@clisp.org>
88052
88053         * m4/allocsa.m4: New file, from GNU gettext.
88054
88055 2004-01-20  Bruno Haible  <bruno@clisp.org>
88056
88057         * lib/xallocsa.h: New file, from GNU gettext.
88058         * lib/xallocsa.c: New file, from GNU gettext.
88059
88060 2004-01-20  Bruno Haible  <bruno@clisp.org>
88061
88062         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88063
88064 2004-01-20  Bruno Haible  <bruno@clisp.org>
88065
88066         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88067         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88068         specially.
88069
88070 2004-01-20  Bruno Haible  <bruno@clisp.org>
88071
88072         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88073         patch.
88074
88075 2004-01-20  Bruno Haible  <bruno@clisp.org>
88076
88077         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88078
88079 2004-01-20  Bruno Haible  <bruno@clisp.org>
88080
88081         * lib/eealloc.h: New file.
88082
88083 2004-01-20  Bruno Haible  <bruno@clisp.org>
88084
88085         * lib/binary-io.h: Avoid warnings on Cygwin.
88086
88087 2004-01-20  Bruno Haible  <bruno@clisp.org>
88088
88089         * lib/allocsa.h: New file, from GNU gettext.
88090         * lib/allocsa.c: New file, from GNU gettext.
88091
88092 2004-01-18  Karl Berry  <karl@gnu.org>
88093
88094         * doc/gpl.texi, doc/lgpl.texi: new files.
88095
88096 2004-01-18  Karl Berry  <karl@gnu.org>
88097
88098         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88099         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88100
88101 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88102
88103         Merge from coreutils.
88104
88105         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88106         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88107         (gl_DEFAULT_POSIX2_VERSION): Move
88108         the documentation from 'configure' into 'config.hin',
88109         so that 'configure --help' isn't burdened by it and
88110         we don't have to worry about its formatting there.
88111         Reword the documentation so that it's more succinct
88112         and can be run together into a single paragraph.
88113         * m4/same.m4 (gl_SAME): Check for pathconf.
88114
88115 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88116
88117         Merge from coreutils.
88118
88119         * lib/posixver.c: Include posixver.h.
88120
88121         * lib/same.c: Include <stdbool.h>, <limits.h>.
88122         (_POSIX_NAME_MAX): Define if not defined.
88123         (MIN): New macro.
88124         (same_name): If file names are silently truncated, report
88125         that the file names are the same if they are the same after
88126         the silent truncation.
88127
88128         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88129         conversion function.
88130         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88131         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88132         longer needed.
88133
88134 2004-01-15  Jim Meyering  <jim@meyering.net>
88135
88136         Merge from coreutils.
88137
88138         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88139         if no library is required.
88140         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88141         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88142         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88143         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88144         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88145         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88146         value, $ac_cv_search_crypt, if it's "none required".
88147         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88148         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88149         not gl_FUNC_GETLOADAVG.
88150         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88151         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88152
88153 2004-01-15  Jim Meyering  <jim@meyering.net>
88154
88155         Merge from coreutils.
88156
88157         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88158         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88159         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88160
88161         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88162         optional configure-time default.
88163
88164         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88165
88166         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88167
88168 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88169
88170         Merge from coreutils.
88171
88172         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88173         value, $ac_cv_search_nanosleep, if it's "none required".
88174
88175 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88176
88177         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88178         with like-named macro in fnmatch.c.
88179         (EXT): Use an internal constant instead.
88180
88181         Merge fnmatch patches from glibc.
88182         * lib/fnmatch.c (mbsinit): Remove define.
88183         Add libc_hidden_ver (__fnmatch, fnmatch).
88184         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88185         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88186
88187 2004-01-14  Karl Berry  <karl@gnu.org>
88188
88189         * config/install-sh: update from automake.
88190
88191 2004-01-13  Karl Berry  <karl@gnu.org>
88192
88193         * config/install-sh: update from automake.
88194
88195 2004-01-09  Karl Berry  <karl@gnu.org>
88196
88197         * config/install-sh: update from automake.
88198
88199 2004-01-05  Karl Berry  <karl@gnu.org>
88200
88201         * config/config.{sub,guess}: update from config.
88202
88203 2003-12-31  Karl Berry  <karl@gnu.org>
88204
88205         * config/depcomp: update from automake.
88206
88207 2003-12-14  Karl Berry  <karl@gnu.org>
88208
88209         * lib/config.charset: update from gettext-runtime.
88210
88211 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88212
88213         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88214         Bug reported by Alfred M. Szmidt.
88215
88216 2003-12-03  Bruno Haible  <bruno@clisp.org>
88217
88218         * m4/gettext.m4: Upgrade from gettext-0.13.
88219         * m4/po.m4: Upgrade from gettext-0.13.
88220         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88221         * m4/intmax.m4: New file, from gettext-0.13.
88222         * m4/printf-posix.m4: New file, from gettext-0.13.
88223
88224 2003-11-29  Karl Berry  <karl@gnu.org>
88225
88226         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88227
88228 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88229             Bruno Haible  <bruno@clisp.org>
88230
88231         * lib/printf-parse.h: Don't include sys/types.h.
88232         (ARG_NONE): New macro.
88233         (char_directive): Change type of *arg_index fields to size_t.
88234         * lib/printf-parse.c: Don't include sys/types.h.
88235         (SSIZE_MAX): Remove macro.
88236         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88237         Remove unnecessary overflow check.
88238         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88239         fields.
88240
88241 2003-11-25  Bruno Haible  <bruno@clisp.org>
88242
88243         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88244
88245 2003-11-25  Bruno Haible  <bruno@clisp.org>
88246
88247         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88248         gt_TYPE_SSIZE_T.
88249
88250 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88251
88252         * modules/alloca: Remove dependency on xalloc.
88253
88254 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88255
88256         * lib/alloca.c: Remove dependency on xalloc module.
88257         (xalloc_die): Remove.
88258         (memory_full) [!defined emacs]: New macro.
88259         [!defined emacs]: Don't include xalloc.h.
88260         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88261         address arithmetic overflows.  Change datatypes a bit to avoid
88262         unnecessary casts.
88263
88264 2003-11-22  Jim Meyering  <jim@meyering.net>
88265
88266         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88267         s/size/size_t/.
88268
88269 2003-11-21  Karl Berry  <karl@gnu.org>
88270
88271         * config/config.{sub,guess}: update from config.
88272
88273 2003-11-18  Karl Berry  <karl@gnu.org>
88274
88275         * config/config.{sub,guess}: update from config.
88276
88277         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88278
88279 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88280
88281         * README: Mention that S+T cannot overflow if S is the size of
88282         an existing object and T is sufficiently small.
88283
88284 2003-11-17  Jim Meyering  <jim@meyering.net>
88285
88286         On systems without utime and without a utimes function capable of
88287         dealing with a NULL struct utimbuf* argument, this utime replacement
88288         could -- in unusual circumstances -- leak a file descriptor.
88289         * lib/utime.c: Include <unistd.h> and <errno.h>.
88290         (utime_null): Be sure to close `fd' and to preserve errno.
88291         Reported by Geoff Collyer via Arnold Robbins.
88292
88293 2003-11-17  Bruno Haible  <bruno@clisp.org>
88294
88295         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88296         (Depends-on): Add xsize.
88297
88298 2003-11-17  Bruno Haible  <bruno@clisp.org>
88299
88300         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88301
88302 2003-11-17  Bruno Haible  <bruno@clisp.org>
88303
88304         * lib/vasnprintf.c (alloca): Remove fallback definition.
88305         (freea): Remove definition.
88306         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88307         Reported by Paul Eggert.
88308
88309 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88310             Bruno Haible  <bruno@clisp.org>
88311
88312         Protect against address arithmetic overflow.
88313         * lib/printf-args.h: Include stddef.h.
88314         (arguments): Change type of field 'count' to size_t.
88315         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88316         'unsigned int' where appropriate.
88317         * lib/printf-parse.h: Include sys/types.h.
88318         (char_directive): Change type of *arg_index fields to ssize_t.
88319         (char_directives): Change type of fields 'count', max_*_length to
88320         size_t.
88321         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88322         (SSIZE_MAX): Define fallback value.
88323         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88324         instead of 'int' where appropriate. Check a_allocated, d_allocated
88325         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88326         * lib/vasnprintf.c: Include xsize.h.
88327         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88328         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88329         overflow. Avoid wraparound when converting a width or precision from
88330         decimal to binary.
88331
88332 2003-11-16  Bruno Haible  <bruno@clisp.org>
88333
88334         Update from GNU gettext.
88335         * lib/printf-parse.c: Generalize to it can be compiled for wide
88336         strings.
88337         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88338         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88339         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88340         SNPRINTF): New macros.
88341         Don't include <alloca.h> if the file is used inside libintl.
88342         (local_wcslen): New function, for Solaris 2.5.1.
88343         (VASNPRINTF): Use it instead of wcslen.
88344
88345 2003-11-16  Bruno Haible  <bruno@clisp.org>
88346
88347         * lib/xsize.h (xmax): New function.
88348         (xsum, xsum3, xsum4): Declare as "pure" functions.
88349
88350 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88351
88352         * modules/xalloc (Files): Undo latest change, since xalloc.h
88353         no longer needs SIZE_MAX or PTRDIFF_MAX.
88354
88355 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88356
88357         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88358         gl_PTRDIFF_MAX.
88359
88360 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88361
88362         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88363         "return", to pacify some unknown compiler.  Problem reported
88364         by Joerg Schilling.
88365
88366 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88367
88368         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88369         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88370         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88371         heuristic is just as accurate as far as we know, and it removes a
88372         dependency on size_max.m4 and ptrdiff_max.m4.
88373
88374 2003-11-11  Bruno Haible  <bruno@clisp.org>
88375
88376         * modules/xsize (Files): Add m4/size_max.m4.
88377         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88378
88379 2003-11-11  Bruno Haible  <bruno@clisp.org>
88380
88381         * m4/size_max.m4: New file.
88382         * m4/ptrdiff_max.m4: New file.
88383         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88384         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88385         (gl_XALLOC): Invoke it.
88386
88387 2003-11-11  Bruno Haible  <bruno@clisp.org>
88388
88389         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88390         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88391         defined.
88392
88393 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88394
88395         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88396         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88397         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88398         From Bruno Haible.
88399         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88400         not (size_t) -1, since it's defined here.
88401
88402 2003-11-09  Karl Berry  <karl@gnu.org>
88403
88404         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88405
88406 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88407
88408         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88409         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88410         Reject sizes of exactly SIZE_MAX bytes.
88411         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88412         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88413
88414 2003-11-05  Bruno Haible  <bruno@clisp.org>
88415
88416         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88417         SIZE_MAX defined in <limits.h> on Solaris.
88418
88419 2003-11-04  Jim Meyering  <jim@meyering.net>
88420
88421         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88422         variable names, rather than @VAR@.
88423         * modules/poll: Likewise.
88424
88425 2003-11-04  Bruno Haible  <bruno@clisp.org>
88426
88427         * modules/xsize: New file.
88428         * modules/linebreak: Depend on xsize.
88429         * MODULES.html.sh (func_all_modules): Add xsize.
88430
88431 2003-11-04  Bruno Haible  <bruno@clisp.org>
88432
88433         * m4/xsize.m4: New file.
88434
88435 2003-11-04  Bruno Haible  <bruno@clisp.org>
88436
88437         * lib/xsize.h: New file.
88438         * lib/linebreak.c: Include xsize.h.
88439         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88440         argument for overflow.
88441         Suggested by Paul Eggert.
88442
88443 2003-11-03  Karl Berry  <karl@gnu.org>
88444
88445         * config/config.{guess,sub}: update from config.
88446
88447 2003-11-03  Jim Meyering  <jim@meyering.net>
88448
88449         * modules/userspec (lib_SOURCES): Add userspec.h.
88450         (Include): Add "userspec.h".
88451         Improve description.
88452
88453 2003-11-03  Jim Meyering  <jim@meyering.net>
88454
88455         * lib/userspec.c: Include "userspec.h".
88456         * lib/userspec.h: New file.
88457
88458 2003-11-03  Bruno Haible  <bruno@clisp.org>
88459
88460         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88461
88462 2003-11-03  Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88465         available, to avoid (extremely rare) race condition.
88466         Suggested by Paul Eggert.
88467
88468 2003-11-02  Karl Berry  <karl@gnu.org>
88469
88470         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88471
88472 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88473
88474         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88475         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88476         (read_filesystem_list): Set and use me_type_malloced.
88477         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88478         whatever the type happens to be), for brevity and consistency.
88479         Check for size calculation overflow on Alphas running OSF/1.
88480
88481 2003-10-31  Jim Meyering  <jim@meyering.net>
88482
88483         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88484
88485         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88486
88487 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88488             Bruno Haible  <bruno@clisp.org>
88489
88490         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88491         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88492
88493 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88494
88495         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88496         netbsd*-gnu*.  Suggested by Robert Millan.
88497
88498 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88499
88500         * modules/group-member: Depend on stdbool.
88501
88502 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88503
88504         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88505
88506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88507
88508         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88509         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88510         after the 'gnu' in these cases.  This fixes some bugs in the
88511         previous change, and is based on suggestions by Robert Millan.
88512
88513 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88514
88515         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88516         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88517         no longer needed.
88518         * lib/quotearg.c (quotearg_n_options): Use it.
88519         * lib/group-member.c: Include <stdbool.h>.
88520         (free_group_info): Arg is now const *; don't free arg.
88521         (get_group_info): Now returns bool and accepts struct group_info *,
88522         rather than returning a malloc'ed struct group_info *.
88523         All uses changed.  Check for overflow in internal size calculation.
88524
88525         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88526         rather than xmalloc/xrealloc.
88527         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88528         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88529         conformance bug: the old code used a pointer after freeing the
88530         storage that it addressed.
88531         * lib/hash.c (hash_initialize): Simplify the code by using
88532         xalloc_oversized rather than doing it by hand.
88533         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88534         the buffer preserved.  Use free and xmalloc instead.
88535         * lib/quotearg.c (quotearg_n_options): Likewise.
88536         Use a simpler test for size overflow.  Don't use xalloc_oversized
88537         because unsigned int might be wider than size_t (!); this suggests
88538         that we should switch from unsigned int to size_t for slot numbers.
88539
88540 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88541
88542         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88543         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88544         NetBSD kernels.  Requested by Richard Stallman.
88545
88546 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88547
88548         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88549         to allocate the returned structure.  Do not allocate a subarray,
88550         as x2nrealloc will do that.
88551         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88552         instead of xnrealloc.
88553         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88554
88555 2003-10-27  Bruno Haible  <bruno@clisp.org>
88556
88557         * lib/stdbool_.h: Better support for BeOS.
88558
88559 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88560
88561         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88562         now uses inline.
88563
88564 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88565
88566         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88567         callers that want to do their own size-overflow checking.  Include
88568         <stdbool.h>, since xalloc_oversized returns bool.
88569         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88570         to use xalloc_oversized.
88571
88572         Add two functions x2realloc, x2nrealloc, for programs that grow
88573         arrays dynamically by doubling their sizes.
88574         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88575         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88576         New functions.
88577
88578         Port to C99 semantics for 'inline' of external functions.
88579         Bug reported by Bruno Haible.
88580         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88581         with the old contents of xnmalloc.
88582         (xnmalloc, xmalloc): Use it.
88583         (xnrealloc_inline): New static inline function,
88584         with the old contents of xnrealloc.
88585         (xnrealloc, xrealloc): Use it.
88586
88587         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88588         that.
88589
88590 2003-10-26  Karl Berry  <karl@gnu.org>
88591
88592         * config/srclist.txt (COPYING.DOC): no longer available from
88593         /gd/gnuorg; don't know where the ultimate source is.
88594
88595 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88596
88597         Fix several address-calculation bugs in the hash modules,
88598         plus some minor code cleanup.
88599
88600         * lib/hash.h: Include <stdbool.h>, for bool.
88601         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88602         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88603         hash_get_n_entries, hash_get_max_bucket_length,
88604         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88605         hash_rehash): Use size_t rather than unsigned.
88606         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88607         hash_get_n_buckets_used, hash_get_n_entries,
88608         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88609         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88610         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88611         Likewise.
88612         (SIZE_MAX): Define if not defined.
88613         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88614         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88615         hash_print):
88616         Use const * when possible.
88617         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88618         (check_tuning): Fix bug: if tuning parameters were very close to
88619         0 or 1, rounding errors could have caused subscript violations.
88620         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88621         (hash_initialize): Add 'fail:' label
88622         to free table and return NULL, and use it to simplify code.
88623         Use calloc rather than clearing the storage ourself.
88624         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88625         buffer size calculations.
88626         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88627         Include <stddef.h>, for size_t.
88628         * lib/hash-pjw.c (hash_pjw): Likewise.
88629         Switch to method described by Bruno Haible.
88630         Include <limits.h>, for CHAR_BIT.
88631         (SIZE_BITS): New macro.
88632
88633 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88634
88635         * m4/getline.m4 (AM_FUNC_GETLINE):
88636         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88637         hosts.  Problem reported by Derek Robert Price in
88638         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88639         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88640         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88641
88642 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88643
88644         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88645         ceiling the allocation at NMAX bytes rather than silently
88646         discarding input bytes before NMAX is reached.  This makes
88647         a difference only if NMAX exceeds SIZE_MAX / 2.
88648
88649         * lib/obstack.c: Merge from glibc.
88650         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88651         Add libc_hidden_def (_obstack_newchunk).
88652         (_obstack_free) [! defined _LIBC]: Remove.
88653         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88654         a clone of the function body.
88655         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88656         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88657
88658         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88659         glibc.
88660         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88661         arg to memcpy.
88662
88663         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88664         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88665         Don't use lvalue casts, as GCC plans to remove support for them
88666         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88667         was also present in the non-GCC version, indicating that this
88668         code had always been buggy and had never been widely used.
88669         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88670         Use the fast variant of each macro, rather than copying the
88671         definiens of the fast variant; that way, we'll be more likely to
88672         catch future bugs in the fast variants.
88673
88674 2003-10-20  Bruno Haible  <bruno@clisp.org>
88675
88676         * modules/wait-process: New file.
88677         * MODULES.html.sh (func_all_modules): Add wait-process.
88678
88679 2003-10-20  Bruno Haible  <bruno@clisp.org>
88680
88681         * m4/wait-process.m4: New file.
88682
88683 2003-10-20  Bruno Haible  <bruno@clisp.org>
88684
88685         * lib/wait-process.h: New file, from GNU gettext.
88686         * lib/wait-process.c: New file, from GNU gettext.
88687
88688 2003-10-19  Jim Meyering  <jim@meyering.net>
88689
88690         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88691         HPUX 10.20.
88692
88693 2003-10-18  Karl Berry  <karl@gnu.org>
88694
88695         * config/config.guess: update from config.
88696
88697 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88698
88699         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88700         (getgroups): First arg is int, not size_t.
88701         Don't let 'free' mangle errno.
88702
88703 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88704
88705         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88706
88707 2003-10-16  Karl Berry  <karl@gnu.org>
88708
88709         * config/config.{guess,sub}: update from config.
88710
88711 2003-10-16  Jim Meyering  <jim@meyering.net>
88712
88713         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88714         memcpy.
88715
88716 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88717
88718         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88719         (SIZE_MAX): Remove.
88720         (new_exclude, add_exclude_file): Initial size no longer needs to
88721         be a power of 2.
88722         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88723         our own address arithmetic overflow checking.
88724
88725         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88726         (fnmatch): Do not alloca more than 2000 wide characters;
88727         instead, use malloc for large buffers.
88728         Check for address arithmetic overflow, and return -1
88729         with errno set to ENOMEM in that case.
88730         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88731         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88732         instead, return -1.  Check for address arithmetic overflow.
88733
88734 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88735
88736         Handle invalid suffixes and overflow independently, so that
88737         callers can treat them independently as needed.  Fix some bugs in
88738         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88739         suffix for a human-readable blocksize.  The major caller-visible
88740         change is the addition of a new
88741         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88742         that both overflow and suffix chars were found.
88743
88744         * lib/human.c (humblock): Don't check separately for invalid suffix
88745         char; that is xstrtoumax's job (now that its bug is fixed).
88746         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88747         INTMAX_MAX]: New macros.
88748         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88749         TYPE_MAXIMUM): New macros.
88750         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88751         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88752         if overflow occurs, as it's what __strtol does and it's more useful
88753         in practice.
88754         (__xstrtol): If __strtol reports some error other than ERANGE,
88755         reflect it to the caller as LONGINT_INVALID.  If it reports
88756         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88757         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88758         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88759         value.
88760         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88761         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88762         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88763         [defined UINTMAX_MAX]: New macros.
88764
88765 2003-10-14  Bruno Haible  <bruno@clisp.org>
88766
88767         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88768
88769 2003-10-14  Bruno Haible  <bruno@clisp.org>
88770
88771         * m4/sig_atomic_t: New file, from GNU gettext.
88772         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88773
88774 2003-10-14  Bruno Haible  <bruno@clisp.org>
88775
88776         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88777         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88778         Also use volatile where needed.
88779
88780 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88781
88782         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88783         Change maintainer from Bruno Haible to 'all'.
88784
88785 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88786
88787         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88788
88789 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88790
88791         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88792         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88793         and define in terms of the other primitives.
88794         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88795         (SIZE_MAX): Define if not already defined.
88796         (array_size_overflow): New function.
88797         (xalloc_die): Abort instead of exiting if 'error' returns.
88798         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88799         (xmalloc, xrealloc): Use them.
88800         (xcalloc): Check for address arithmetic overflow.
88801         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88802         a bit faster than strcpy.
88803
88804 2003-10-10  Simon Josefsson  <jas@extundo.com>
88805
88806         * modules/argp (Depends-on): Add restrict and strcase.
88807
88808 2003-10-10  Simon Josefsson  <jas@extundo.com>
88809
88810         * m4/argp.m4: Add AC_C_INLINE.
88811
88812 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88813
88814         Merge getpass from libc, plus a few fixes.
88815
88816         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88817         Include <stdbool.h>.
88818         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88819         __fsetlocking to empty.
88820         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88821         do include <bits/libc-lock.h>.
88822         Do not include <fcntl.h>; not needed.
88823         [_LIBC]: Include <wchar.h>.
88824         (NOTCANCEL_MODE): New macro.
88825         (flockfile, funlockfile) [_LIBC]: New macros.
88826         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88827         [!_LIBC]: New macros.
88828         (call_fclose): New function.
88829         (getpass): Use it.  Save tty stream separately; this simplifies the
88830         code and makes it more reliable if stdin happens to equal stdout.
88831         Invoke __fsetlocking on tty.
88832         Handle thread cancellation if needed.
88833         Namespace cleanup (use __tcgetattr, __getline).
88834         Use bool for Booleans.
88835         [USE_IN_LIBIO]: Handle wide streams.
88836         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88837         stream might go where.
88838
88839         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88840         doesn't have to include <stdio.h> before us.
88841         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88842         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88843         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88844         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88845         if not declared, so that we can use getpass.c code from libc without
88846         rewriting it.
88847         (flockfile, ftrylockfile, funlockfile): New macros.
88848
88849 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88850
88851         * modules/getpass: Depend on stdbool.
88852
88853 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88854
88855         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88856
88857 2003-10-07  Karl Berry  <karl@gnu.org>
88858
88859         * config/config.{guess,sub}: update from config.
88860
88861 2003-10-06  Jim Meyering  <jim@meyering.net>
88862             Bruno Haible  <bruno@clisp.org>
88863
88864         This lets translators provide better translations for the
88865         "Written by ..." part of --version output.
88866         * lib/version-etc.h: Include stdarg.h.
88867         (version_etc_copyright): Declare as readonly.
88868         (version_etc): Make this function variadic with a NULL-terminated list
88869         of author name strings.
88870         (version_etc_va): New declaration.
88871         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88872         (version_etc_copyright): Declare as readonly.
88873         (version_etc_va): New function. Provide a different translatable string
88874         for each possible number of authors < 10. Abbreviate when there are 10
88875         authors or more.
88876         (version_etc): Make this function variadic. Call version_etc_va.
88877         Suggestion from Gary V. Vaughan.
88878
88879         * lib/long-options.h (parse_long_options): Change prototype: the
88880         authors string is moved to the end and becomes variadic.
88881         * lib/long-options.c: Include stdarg.h.
88882         (parse_long_options): Make this function variadic, too.
88883         Call version_etc_va, not version_etc.
88884
88885 2003-10-06  Bruno Haible  <bruno@clisp.org>
88886
88887         * modules/version-etc-2: Remove file.
88888         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88889
88890 2003-10-06  Bruno Haible  <bruno@clisp.org>
88891
88892         * modules/fatal-signal: New file.
88893         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88894
88895 2003-10-06  Bruno Haible  <bruno@clisp.org>
88896
88897         * m4/fatal-signal.m4: New file.
88898         * m4/signalblocking.m4: New file, from GNU gettext.
88899
88900 2003-10-06  Bruno Haible  <bruno@clisp.org>
88901
88902         * lib/version-etc-2.h: Remove file.
88903         * lib/version-etc-2.c: Remove file.
88904
88905 2003-10-06  Bruno Haible  <bruno@clisp.org>
88906
88907         * lib/fatal-signal.h: New file, from GNU gettext.
88908         * lib/fatal-signal.c: New file, from GNU gettext.
88909
88910 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88911
88912         * README: Rework advice for preventing empty .o files.
88913         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88914         not <sys/types.h>.
88915
88916 2003-10-04  Karl Berry  <karl@gnu.org>
88917
88918         * lib/argp*: update from libc.
88919
88920 2003-10-04  Karl Berry  <karl@gnu.org>
88921
88922         * config/config.{guess,sub}: update from config.
88923
88924 2003-10-02  Bruno Haible  <bruno@clisp.org>
88925
88926         * modules/lchown (Include): Add lchown.h.
88927         * modules/time_r (Include): Use "..." syntax.
88928         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88929
88930 2003-10-01  Simon Josefsson  <jas@extundo.com>
88931
88932         * MODULES.html.sh (func_all_modules): Move gethostname from section
88933         'based on' to section 'lacking' POSIX:2001.
88934
88935 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88936
88937         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88938         to output mode on the same stream.
88939
88940 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88941
88942         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88943         Fix arg typo in previous patch.
88944
88945 2003-09-28  Jim Meyering  <jim@meyering.net>
88946
88947         * lib/error.c: Correct cpp indentation.
88948
88949 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88950
88951         * modules/free: New file.
88952
88953 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88954
88955         * m4/free.m4: New file.
88956
88957 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88958
88959         * lib/minmax.h (MIN, MAX)
88960         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88961         Omit the special code that used __typeof__, since we worry that
88962         it could be more trouble than it's worth.  See:
88963         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88964         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88965
88966         * lib/free.c: New file.
88967
88968 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88969
88970         Trivial fixes to Makefile.am parts of module listings.
88971         * modules/strstr: Append strstr.h to lib_SOURCES.
88972         * modules/strcase: Likewise, for strcase.h.
88973
88974 2003-09-27  Karl Berry  <karl@gnu.org>
88975
88976         * config/mkinstalldirs: update from automake.
88977
88978 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88979
88980         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88981         (error_tail): Do not loop, reallocating temporary buffer, since
88982         the output cannot contain more wide characters than the input
88983         contains bytes, the size must be big enough already.  This avoids
88984         one potential size overflow calculation.  Check for size overflow
88985         when calculating temporary buffer size.  Free temporary buffer
88986         when done, if it was allocated with malloc; this plugs a memory
88987         leak.  Remove casts from void * to pointers, that are no longer
88988         needed now that we're assuming C89 or better.
88989
88990         Merge error changes from glibc.
88991
88992         * lib/error.c, error.h: Update copyright notice header to match glibc.
88993         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88994         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88995         Disable cancellation while printing error.
88996         * lib/error.h: Prepend __ to parameter names.
88997
88998 2003-09-26  Jim Meyering  <jim@meyering.net>
88999
89000         * lib/error.c (error_tail): Move some declarations
89001         into inner scope where the local variables are used.
89002
89003 2003-09-26  Bruno Haible  <bruno@clisp.org>
89004
89005         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89006         stpncpy().
89007         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89008
89009 2003-09-26  Bruno Haible  <bruno@clisp.org>
89010
89011         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89012         (stpncpy): Define as alias for gnu_stpncpy.
89013         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89014
89015 2003-09-25  Simon Josefsson  <jas@extundo.com>
89016
89017         * lib/xgetdomainname.h: New file.
89018         * lib/xgetdomainname.c: New file.
89019
89020 2003-09-25  Simon Josefsson  <jas@extundo.com>
89021             Bruno Haible  <bruno@clisp.org>
89022
89023         * modules/getdomainname: New file.
89024         * modules/xgetdomainname: New file.
89025         * MODULES.html.sh (func_all_modules): Add getdomainname,
89026         xgetdomainname.
89027
89028 2003-09-25  Simon Josefsson  <jas@extundo.com>
89029             Bruno Haible  <bruno@clisp.org>
89030
89031         * m4/getdomainname.m4: New file.
89032
89033 2003-09-25  Simon Josefsson  <jas@extundo.com>
89034             Bruno Haible  <bruno@clisp.org>
89035
89036         * lib/getdomainname.h: New file.
89037         * lib/getdomainname.c: New file.
89038
89039 2003-09-25  Karl Berry  <karl@gnu.org>
89040
89041         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89042
89043 2003-09-25  Karl Berry  <karl@gnu.org>
89044
89045         * config/install-sh: update from automake.
89046
89047 2003-09-25  Bruno Haible  <bruno@clisp.org>
89048
89049         * modules/version-etc-2: New file, from modules/version-etc with
89050         modifications.
89051         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89052
89053 2003-09-25  Bruno Haible  <bruno@clisp.org>
89054
89055         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89056         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89057
89058 2003-09-24  Simon Josefsson  <jas@extundo.com>
89059
89060         * modules/xgethostname: Add xgethostname.h.
89061
89062 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89063
89064         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89065         the buffer associated with the argument.  Bug reported by
89066         Simon Josefsson.
89067
89068 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89069
89070         * README: Document assumptions that 'int' is at least 32 bits
89071         wide, that integer arithmetic is 2's complement without overflow,
89072         that there are no holes in integer values, that adding sizes of
89073         two nonoverlapping objects can't overflow, and that all-bits-zero
89074         yields scalar zero.  Fix spelling and capitalization typos.
89075
89076 2003-09-19  Karl Berry  <karl@gnu.org>
89077
89078         * lib/argp.h: update from libc.
89079
89080 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89081
89082         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89083         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89084         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89085
89086 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89087
89088         * gnulib-tool: Use "test -h", not "test -L", for portability
89089         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89090         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89091         (sed_extract_prog): Issue s commands one-by-one, rather than
89092         using \| in one s command.
89093
89094 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89095
89096         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89097         input error, instead of returning NULL the next time we are called
89098         (and therefore losing track of errno).
89099
89100 2003-09-16  Bruno Haible  <bruno@clisp.org>
89101
89102         * gnulib-tool (func_create_testdir): Warn about duplicated
89103         dependencies.
89104
89105 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89106
89107         * modules/argmatch, modules/fatal, modules/obstack,
89108         modules/xalloc, modules/xgethostname: Sort dependencies by
89109         importance, not alphabetically.
89110
89111 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89112
89113         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89114         fails, so that the caller gets the proper errno.
89115
89116         * lib/readutmp.c (read_utmp): Likewise.
89117         Check for fstat error.  Close stream and free storage
89118         when failing.
89119
89120 2003-09-14  Karl Berry  <karl@gnu.org>
89121
89122         * config/srclist.txt (strdup.c): disable for c89 changes.
89123
89124 2003-09-14  Jim Meyering  <jim@meyering.net>
89125
89126         * lib/getloadavg.c: Correct cpp indentation.
89127         * lib/strdup.c: Likewise.
89128         * lib/vasnprintf.c: Likewise.
89129
89130 2003-09-14  Bruno Haible  <bruno@clisp.org>
89131
89132         * modules/fwriteerror: New file.
89133         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89134
89135 2003-09-14  Bruno Haible  <bruno@clisp.org>
89136
89137         * lib/fwriteerror.h: New file.
89138         * lib/fwriteerror.c: New file.
89139
89140 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89141
89142         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89143         modules/xgethostname, modules/xalloc: Depend on exit.
89144
89145 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89146
89147         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89148
89149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89150         and AC_MINIX, too, so that their extensions are available.
89151
89152         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89153         This macro has been superseded by gl_BACKUPFILE.
89154
89155         More patches to assume C89 or better.
89156
89157         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89158
89159         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89160         unconditionally.
89161         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89162         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89163         Include <string.h>, <stdlib.h> unconditionally.
89164         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89165         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89166         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89167         headers or for string.h.
89168         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89169         or strtoul.
89170
89171         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89172         headers.
89173         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89174         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89175         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89176         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89177         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89178         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89179         memcpy, memset.
89180         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89181         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89182         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89183         strtol.
89184         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89185         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89186         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89187         strtoul.
89188
89189 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89190
89191         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89192         * lib/obstack.c [!defined _LIBC]: Likewise.
89193         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89194         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89195         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89196
89197         More changes to assume C89 or better.
89198
89199         * lib/error.c (error_tail): Assume vprintf.
89200
89201         * lib/argmatch.c (getenv): Remove decl.
89202         * lib/progreloc.c (get_full_program_name): Define via prototype.
89203         * lib/setenv.c (clearenv): Likewise.
89204         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89205         needed.
89206         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89207         (malloc, memcpy): Remove decls.
89208         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89209         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89210         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89211         (memcpy): Remove macro.
89212         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89213         (__P): Remove.  All uses removed.
89214         (PTR): Remove.  All uses changed to void *.
89215         (CHAR_BIT, NULL): Remove.
89216         (spaces, zeros, memset_space, memset_zero)
89217         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89218         Remove.
89219         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89220         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89221         Define with prototype.
89222         Remove now-unnecessary prototype decl.
89223         (extra_args_spec): Assume ANSI C.  All uses changed.
89224         (extra_args_spec_iso): Remove.
89225         (my_strftime, emacs_strftimeu): Define via prototype.
89226         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89227         unconditionally.
89228         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89229         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89230         (strtoul, strtol): Remove decls.
89231         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89232         LONG_MAX): Remove.
89233         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89234         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89235         (LOCALE_PARAM_PROTO): New macro.
89236         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89237         (INTERNAL (strtol), strtol): Define with a prototype.
89238         (PARAMS): Remove.  All uses removed.
89239         * lib/tempname.c: Include <string.h> unconditionally.
89240         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89241         * lib/xgethostname.c (main): Define with a prototype.
89242         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89243         Include <stdlib.h> unconditionally.
89244         (calloc, malloc, realloc, free): Remove decls.
89245         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89246         Include <stdlib.h> unconditionally.  Sort include file names.
89247         (strtod): Remove.
89248         (xstrtod): Define with a prototype.
89249         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89250         (strtol, strtoul): Remove decls.
89251
89252 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89253
89254         More patches to assume C89 or better.
89255         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89256         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89257         string.h, memchr, STDC_HEADERS.
89258
89259 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89260
89261         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89262         Include <stdlib.h>, <string.h> unconditionally.
89263         Remove now-unnecessary cast to char *.
89264         * lib/strnlen.c: Include <string.h> unconditionally.
89265         * lib/yesno.c (yesno): Define with a prototype.
89266
89267 2003-09-11  Bruno Haible  <bruno@clisp.org>
89268
89269         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89270
89271 2003-09-10  Jim Meyering  <jim@meyering.net>
89272
89273         * lib/error.c: Correct indentation of cpp directives.
89274
89275 2003-09-10  Bruno Haible  <bruno@clisp.org>
89276
89277         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89278         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89279         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89280         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89281         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89282         <stdlib.h> and <string.h> checks.
89283         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89284         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89285
89286 2003-09-10  Bruno Haible  <bruno@clisp.org>
89287
89288         * lib/strcspn.c: Include <string.h> unconditionally.
89289         * lib/strpbrk.c: Include <string.h> unconditionally.
89290         * lib/strstr.c: Include <string.h> unconditionally.
89291         * lib/unicodeio.c: Include <string.h> unconditionally.
89292         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89293         * lib/unsetenv.c: Likewise.
89294         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89295         * lib/yesno.c: Include <stdlib.h> unconditionally.
89296         (rpmatch): Add prototype.
89297
89298 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89299
89300         More patches to assume C89 or better.
89301         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89302         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89303         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89304         or for string.h.
89305         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89306         stdlib.h.
89307         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89308         C headers.
89309         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89310         string.h.
89311         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89312         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89313         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89314         or for string.h.
89315         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89316         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89317         C headers.
89318         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89319         memcpy.
89320         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89321         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89322         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89323         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89324         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89325         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89326         string.h, free.
89327         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89328         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89329         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89330         C headers, or for string.h.
89331         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89332         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89333         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89334         headers, memory.h, stdlib.h, string.h, strings.h.
89335         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89336         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89337         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89338         strchr.
89339         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89340         headers, memory.h, string.h.
89341         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89342         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89343         free.
89344         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89345         headers.
89346         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89347         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89348         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89349         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89350         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89351
89352 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89353
89354         More K&R removal.
89355
89356         * lib/acosl.c (main): Use a prototype.
89357         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89358         tanl.c: Likewise.
89359
89360         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89361
89362         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89363         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89364         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89365         with a prototype.
89366         * lib/getopt.c (const): Remove macro.
89367         Include <string.h> unconditionally.
89368         (my_index): Remove; all uses changed to strchr.
89369         (strlen): Remove decl.
89370         (exchange): Remove forward decl; no longer needed.
89371         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89372         Define with prototype.
89373         * lib/getopt1.c (const): Remove macro.
89374         (getopt_long, getopt_long_only, main): Define with prototype.
89375
89376         * lib/getugroups.c: Include <string.h> unconditionally.
89377
89378         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89379         (getusershell, setusershell, endusershell, readname, main):
89380         Define with prototypes.
89381
89382         * lib/group-member.c: Include group-member.h first.
89383         Include <stdlib.h> unconditionally.
89384
89385         * lib/hard-locale.c: Include hard-locale.h first.
89386         Include <stdlib.h>, <string.h> unconditionally.
89387
89388         * lib/hash.c (free, malloc): Remove decls.
89389         Include <stdlib.h> unconditionally.
89390
89391         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89392         (getenv): Do not declare.
89393
89394         * lib/idcache.c: Include <string.h> unconditionally.
89395
89396         * lib/long-options.c: Include long-options.h first, to test interface.
89397         Include <stdlib.h> unconditionally.
89398
89399         * lib/makepath.c: Include makepath.h first, to test interface.
89400         Include <stdlib.h> and <string.h> unconditionally.
89401
89402         * lib/linebuffer.c: Include <stdlib.h>.
89403         (free): Remove decl.
89404
89405         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89406         stddef.h. rpl_malloc returns void *, not char *.
89407         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89408         prototype.
89409
89410         * lib/md5.h: Include <limits.h> unconditionally.
89411         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89412         (__P): Remove; all uses removed.
89413         * lib/md5.c: Include "md5.h" first.
89414         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89415         md5_buffer, md5_process_bytes, md5_process_block):
89416         Define with prototypes.
89417         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89418         * lib/sha.c: Include "sha.h" first.
89419         Include <stdlib.h>, <string.h> unconditionally.
89420
89421         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89422         * lib/memcmp.c (__ptr_t): Likewise.
89423         * lib/memrchr.c (__ptr_t): Likewise.
89424         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89425         Include <string.h> unconditionally.
89426         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89427         * lib/memchr.c: Include <stdlib.h> unconditionally.
89428         * lib/memchr.c (LONG_MAX): Remove.
89429         * lib/memrchr.c (LONG_MAX): Likewise.
89430         * lib/memchr.c (__memchr): Define via a prototype.
89431         * lib/memrchr.c (__memrchr): Likewise.
89432         * lib/memcmp.c (__P): Remove, and remove all uses.
89433         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89434         Remove forward decls; no longer needed.
89435         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89436         Use types required by C89 in prototype.
89437
89438         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89439         * lib/savedir.c: Likewise.
89440         * lib/mkdir.c (free): Remove decl.
89441         * lib/rmdir.c (rmdir): Define with a prototype.
89442         * lib/savedir.c: Include savedir.h first, to test interface.
89443
89444         * lib/mktime.c (STDC_HEADERS): Remove.
89445         Include <stdlib.h>, <string.h> unconditionally.
89446
89447         * lib/modechange.c: Include <stdlib.h> unconditionally.
89448         (malloc): Remove decl.
89449
89450         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89451         (free): Remove decl.
89452
89453         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89454         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89455         (This type really should be intptr_t, but that's a C99ism.)
89456         (_obstack_memcpy): Remove: all uses changed to memcpy.
89457         Include <string.h> unconditionally.
89458         (struct obstack): Assume __STDC__ for types of members
89459         chunkfun, freefun, extra_arg.
89460         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89461         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89462         obstack_begin, obstack_specify_allocation,
89463         obstack_specify_allocation_with_arg, obstack_chunkfun,
89464         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89465         Remove unprototyped decls and the macros that use them.
89466         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89467         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89468         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89469         (defined __STDC__ && __STDC__)]:
89470         Remove nonprototyped code.
89471         Include <stdlib.h> unconditionally.
89472         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89473         _obstack_allocated_p, _obstack_free, obstack_free,
89474         _obstack_memory_used, print_and_abort):
89475         Define using prototypes.
89476         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89477         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89478         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89479         obstack_next_free, obstack_object_size, obstack_room) [0]:
89480         Remove unused, unprototyped code.
89481
89482         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89483
89484         * lib/physmem.c (physmem_total, physmem_available, main): Define
89485         with prototypes.
89486
89487         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89488         (main): Define with a prototype.
89489
89490         * lib/posixver.c (getenv): Remove decl.
89491
89492         * lib/putenv.c (malloc): Returns void *, not char *.
89493         Include <string.h> unconditionally.
89494         (strchr, memcpy, NULL): Do not define.
89495
89496         * lib/readtokens.c: Include readtokens.h first, to test interface.
89497         Include <stdlib.h>, <string.h> unconditionally.
89498         (init_tokenbuffer): Define with a prototype.
89499
89500         * lib/regex.c (PARAMS): Remove.  All uses removed.
89501         All uses of _RE_ARGS removed, too.
89502         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89503         unconditionally.
89504         (bzero): Assume memset exists.
89505         (memcmp, memcpy, NULL): Remove.
89506         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89507         char, or assignments to local vars of type signed char.
89508         (init_syntax_once, PREFIX(extract_number_and_incr),
89509         PREFIX(print_partial_compiled_pattern),
89510         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89511         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89512         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89513         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89514         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89515         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89516         wcs_compile_range, byte_compile_range, truncate_wchar,
89517         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89518         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89519         count_mbs_length, wcs_re_match_2_internal,
89520         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89521         PREFIX(alt_match_null_string_p),
89522         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89523         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89524         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89525         now-unnecessary declaration, if any.
89526         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89527         regcomp, regexec):
89528         Remove now-unnecessary casts among pointer types.
89529         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89530
89531         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89532         (free): Remove decl.
89533
89534         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89535
89536         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89537         (free): Remove decl.
89538
89539         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89540         * lib/xgetcwd.c: Likewise.
89541
89542         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89543         (free): Remove decl.
89544
89545         * lib/strchrnul.c (strchrnul): Define with a prototype.
89546         Fix bug: c_in was not converted to char before searching.
89547
89548         The following changes are not K&R related:
89549
89550         * lib/group-member.h: Include <sys/types.h>, so that this file is
89551         self-contained.
89552         * lib/makepath.h: Likewise.
89553
89554         * lib/getusershell.c (readname, default_index, line_size, readname):
89555         Use size_t, not int, for sizes.
89556         (readname): If the size overflows, report an error instead of
89557         looping forever.
89558
89559 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89560
89561         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89562         libc.
89563
89564 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89565
89566         * README: New section: portability guidelines.
89567
89568 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89569
89570         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89571         C89 spec.
89572
89573 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89574
89575         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89576
89577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89578
89579         Assume C89 or better; remove K&R cruft.
89580         A few of these changes were first proposed by Derek Robert Price
89581         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89582
89583         * lib/addext.c: Include <string.h> unconditionally.
89584         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89585         Don't declare getenv or malloc.
89586
89587         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89588         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89589         (NULL): Remove.
89590         (find_stack_direction, alloca): Use prototypes.
89591
89592         * lib/atexit.c (atexit): Define using a prototype.
89593
89594         * lib/basename.c, dirname.c, stripslash.c:
89595         Include <string.h> unconditionally.
89596
89597         * lib/bcopy.c: Include <stddef.h>.
89598         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89599
89600         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89601
89602         * lib/error.h (error, error_at_line, error_print_progname)
89603         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89604         * lib/error.c: Include error.h first, to check interface.
89605         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89606         (VA_START): Remove; all uses changeed to va_start.
89607         (exit, strerror): Remove decls.
89608         (error_print_progname): Prototype uncondionally.
89609         Don't include <errno.h>; no longer needed.
89610         (private_strerror): Remove.
89611         (error_tail): Always define.
89612         (error, error_at_line): Assume C89 or better; always use prototypes.
89613         * lib/fatal.c: Include "fatal.h" first, to test interface.
89614         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89615         (VA_START): Remove; all uses changed to va_start.
89616         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89617         this case.
89618         (exit): Remove decl.
89619         (fatal): Prototype unconditionally.  Assume va_start works.
89620         Abort at end, to pacify gcc.
89621
89622         * lib/euidaccess.c (main): Define with a prototype.
89623
89624         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89625
89626         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89627
89628         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89629         prototypes.
89630         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89631         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89632         (getenv): Remove decl.
89633         (fnmatch): Define using a prototype.
89634         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89635         (FCT): Define using a prototype.
89636
89637         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89638
89639         * lib/gethostname.c: Include <stddef.h>.
89640         (gethostname): Define with prototype.  Length is size_t, not int.
89641
89642 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89643
89644         Assume C89 or better; remove K&R cruft.
89645         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89646         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89647         string.h, getenv, malloc.
89648         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89649         headers.
89650         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89651         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89652         do not check for strerror.
89653         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89654         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89655         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89656         do not check for doprnt or vprintf.
89657         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89658         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89659
89660 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89661
89662         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89663         getversion.c should have been removed then, but was accidentally
89664         preserved.
89665
89666         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89667         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89668
89669 2003-09-08  Karl Berry  <karl@gnu.org>
89670
89671         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89672                 config, forget about prep.
89673
89674         * config/depcomp, missing: update from automake.
89675
89676 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89677
89678         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89679         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89680
89681 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89682
89683         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89684         copy_tm_result.  Bug reported by Simon Josefsson in
89685         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89686
89687 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89688
89689         * m4/time_r.m4: New file.
89690         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89691         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89692         is. Check for timegm declaration.
89693         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89694         Do not check for gmtime_r.
89695         Replace mktime if __mktime_internal does not exist and if mktime
89696         hasn't been replaced already.
89697
89698 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89699
89700         * lib/time_r.c, lib/time_r.h: New files.
89701
89702         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89703         __localtime_r.
89704         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89705         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89706
89707         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89708         __gmtime_r.
89709         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89710         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89711         Include <time_r.h>.
89712
89713         * lib/timegm.c: Switch to glibc implementation, with the following
89714         changes:
89715         [defined HAVE_CONFIG_H]: Include <config.h>.
89716         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89717         (__mktime_internal) [!defined _LIBC]: New decl.
89718         (__gmtime_r) [!defined _LIBC]: New macro and function.
89719         (timegm): Use a prototype, since gnulib assumes C89.
89720         Do not bother declaring tmp to be const, as it's not really usefu.
89721         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89722         (timegm): Declare only if HAVE_DECL_TIMEGM.
89723
89724 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89725
89726         * MODULES.html.sh (func_all_modules): Add time_r.
89727         * modules/time_r: New file.
89728         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89729         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89730
89731 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89732
89733         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89734         Bug reported by Lute Kamstra in
89735         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89736
89737         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89738         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89739         course with correspondingly smaller numbers for tomorrow and
89740         yesterday.  From Tadayoshi Funaba.  Originally installed into
89741         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89742         coreutils merge?).
89743
89744 2003-08-31  Simon Josefsson  <jas@extundo.com>
89745
89746         * modules/timegm: New file.
89747         * MODULES.html.sh (func_all_modules): Add timegm.
89748
89749 2003-08-31  Simon Josefsson  <jas@extundo.com>
89750
89751         * m4/timegm.m4: New file.
89752
89753 2003-08-31  Simon Josefsson  <jas@extundo.com>
89754
89755         * lib/timegm.h: New file.
89756         * lib/timegm.c: New file.  Based on
89757         wget-1.8.2/src/http.c:mktime_from_utc.
89758
89759 2003-08-31  Karl Berry  <karl@gnu.org>
89760
89761         * lib/argp.h: update from libc.
89762
89763 2003-08-28  Bruno Haible  <bruno@clisp.org>
89764
89765         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89766         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89767         followed by '#define fnmatch fnmatch_posix' gives an error.
89768
89769 2003-08-28  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89772         warning on QNX, which defines O_BINARY to 000000.
89773
89774 2003-08-27  Jim Meyering  <jim@meyering.net>
89775
89776         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89777         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89778         would fail after 32.  Reported by Danny Levinson.  Details here:
89779         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89780
89781 2003-08-24  Bruno Haible  <bruno@clisp.org>
89782
89783         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89784         MSVC7 <stdio.h> is included later.
89785
89786 2003-08-22  Simon Josefsson  <jas@extundo.com>
89787
89788         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89789
89790 2003-08-20  Karl Berry  <karl@gnu.org>
89791
89792         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89793
89794 2003-08-20  Bruno Haible  <bruno@clisp.org>
89795
89796         * modules/progname: New file.
89797         * MODULES.html.sh (func_all_modules): Add progname.
89798
89799 2003-08-20  Bruno Haible  <bruno@clisp.org>
89800
89801         * lib/progname.h: New file, from GNU gettext.
89802         * lib/progname.c: New file, from GNU gettext.
89803         * lib/progreloc.c: New file, from GNU gettext.
89804
89805 2003-08-19  Jim Meyering  <jim@meyering.net>
89806
89807         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89808         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89809
89810 2003-08-19  Bruno Haible  <bruno@clisp.org>
89811
89812         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89813         more.
89814
89815 2003-08-19  Bruno Haible  <bruno@clisp.org>
89816
89817         * lib/xstrdup.c: Assume <string.h> exists.
89818
89819 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89820
89821         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89822         in makefile rules.
89823
89824 2003-08-18  Jim Meyering  <jim@meyering.net>
89825
89826         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89827         * m4/lib-ld.m4: Likewise.
89828
89829 2003-08-18  Jim Meyering  <jim@meyering.net>
89830
89831         * lib/setenv.h: Indent nested cpp directive.
89832         * lib/vasnprintf.c: Remove trailing blanks.
89833
89834 2003-08-17  Simon Josefsson  <jas@extundo.com>
89835
89836         * modules/xstrndup: New file.
89837         * MODULES.html.sh (func_all_modules): Add xstrndup.
89838
89839 2003-08-17  Simon Josefsson  <jas@extundo.com>
89840
89841         * modules/argp: Fix autoconf macro name. Add more dependencies.
89842
89843 2003-08-17  Simon Josefsson  <jas@extundo.com>
89844
89845         * m4/xstrndup.m4: New file.
89846
89847 2003-08-17  Simon Josefsson  <jas@extundo.com>
89848
89849         * m4/argp.m4: New file.
89850
89851 2003-08-17  Simon Josefsson  <jas@extundo.com>
89852             Bruno Haible  <bruno@clisp.org>
89853
89854         * lib/xstrndup.h: New file.
89855         * lib/xstrndup.c: New file.
89856
89857 2003-08-17  Bruno Haible  <bruno@clisp.org>
89858
89859         * modules/strndup (Files, Include): Add lib/strndup.h.
89860
89861 2003-08-17  Bruno Haible  <bruno@clisp.org>
89862
89863         * modules/euidaccess (Files): Add lib/euidaccess.h.
89864
89865 2003-08-17  Bruno Haible  <bruno@clisp.org>
89866
89867         * lib/strndup.h: New file.
89868
89869 2003-08-17  Bruno Haible  <bruno@clisp.org>
89870
89871         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89872         like AC_GNU_SOURCE.
89873         * modules/extensions (configure.ac): Comment out the invocation of
89874         gl_USE_SYSTEM_EXTENSIONS.
89875
89876 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89877
89878         Merges from coreutils, etc.
89879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89880         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89881         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89882         fixing a typo.
89883         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89884         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89885
89886 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89887
89888         Document merge from coreutils.
89889         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89890         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89891         * modules/utime: Add m4/utimes-null.m4.
89892
89893 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89894
89895         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89896         space, undoing this 2003-08-12 change:
89897         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89898
89899 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89900
89901         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89902         strtoul.c from libc, undoing this 2003-08-12 change:
89903         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89904
89905 2003-08-16  Jim Meyering  <jim@meyering.net>
89906
89907         Merges from coreutils.
89908         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89909         prefix.  Adjust cache variables similarly.  Create 500 rather than
89910         just 300 files, to exercise bug on Darwin6.5, too.
89911         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89912         $missing_dir.
89913         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89914         AM_SYS_POSIX_TERMIOS.
89915         Reported by mkc@mathdogs.com.
89916         Also change use of $am_cv_sys_posix_termios
89917         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89918         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89919         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89920         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89921         in /proc/mounts until it finds one with matching device number.  This
89922         is unnecessary when the FILE argument *is* a mount point.  No stat call
89923         is necessary in that case.  So, disable the statvfs-testing code on
89924         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89925         as RedHat bug# 84846.
89926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89927         to 1MB, so as not to render systems with no stack size limit (e.g.,
89928         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89929         Include <unistd.h>.  On some systems,
89930         it is required for the definition of _SC_PAGESIZE.
89931
89932 2003-08-16  Jim Meyering  <jim@meyering.net>
89933
89934         Merge from coreutils.
89935         * lib/xstrtoimax.c: #else #if -> #elif.
89936         * lib/xstrtoumax.c: Likewise.
89937
89938 2003-08-16  Jim Meyering  <jim@meyering.net>
89939
89940         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89941         * m4/utimes.m4: Removed.
89942         * m4/utimes-null.m4: Renamed from utimes.m4.
89943
89944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89945         to 1MB, so as not to render systems with no stack size limit (e.g.,
89946         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89947         Include <unistd.h>.  On some systems,
89948         it is required for the definition of _SC_PAGESIZE.
89949
89950 2003-08-16  Jim Meyering  <jim@meyering.net>
89951         and Paul Eggert  <eggert@cs.ucla.edu>
89952
89953         Merges from coreutils, etc.
89954
89955         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89956         using the latest version from cvs.  This avoids problems with #line
89957         directives using a vendor (Sun) compiler.
89958         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89959         Don't set GETGROUPS_LIB here; now it's
89960         done via getgroups.m4's wrapper function.
89961         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89962         rather than just in sh-util/configure.in, so that the
89963         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89964         same.
89965         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89966         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89967         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89968         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89969         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89970         Remove code that is now done by the newly-required macros.
89971         Append $(EXEEXT) to DF_PROG.
89972         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89973         Do not invoke or require the following here,
89974         since prereq.m4 or some gnulib .m4 now does this for us:
89975         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89976         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89977         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89978         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89979         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89980         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89981         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89982         AC_FUNC_OBSTACK.
89983         Do not replace the following functions, as this is now the job
89984         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89985         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89986         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89987         atexit getpass, strdup, getpagesize.
89988         Replace 'raise'.
89989         Do not check for the following functions, as this is now the job
89990         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89991         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89992         setregid.
89993         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89994         Check for sys/sysctl.h.
89995         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89996         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89997         of checking for ssize_t ourselves.
89998
89999         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90000         Require every macro that gnulib/modules/* suggests for us.
90001         (jm_PREREQ_ADDEXT): New macro.
90002         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90003         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90004
90005         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90006         (gl_PHYSMEM): Use it.
90007         Also check for `table' function.
90008         Check for new headers and functions.
90009         Add check for sys/sysmp.h.
90010         With suggestions from Kaveh Ghazi.
90011         Ignore headers that are present but cannot be compiled.  This
90012         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90013         C 5.4.
90014
90015 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90016
90017         Document merge from coreutils.
90018         * modules/userspec: Depend on posixver.
90019         * modules/strftime: Depend on tzset.
90020
90021 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90022
90023         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90024         rather than tab, after '#' in shell-script copyright notices.
90025         Suggested by Bruno Haible.
90026
90027 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90028
90029         * config/srclist-update: Use three spaces, rather than tab, after '#'
90030         in shell-script copyright notices.  Suggested by Bruno Haible.
90031         Remove unnecessary parenthesization in regular expression.
90032
90033 2003-08-15  Jim Meyering  <jim@meyering.net>
90034
90035         Merge from coreutils.
90036         * lib/xgethostname.c: Include <stdlib.h>.
90037         (xghostname): Don't exit for anything other than memory-related
90038         failure; just return NULL.
90039         * lib/userspec.c: Include "posixver.h".
90040         (parse_user_spec): Accept `.' as a separator only
90041         in pre-POSIX-200112 mode.
90042         * lib/strtoimax.c: Use #elif rather than #else #if.
90043         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90044         Remove function, now that we can rely on a working tzset function.
90045         [!_LIBC]: Ensure that the required autoconf test has been run.
90046         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90047         Use underlying_strftime for %r.
90048         * lib/sha.c: Merge in some clean-up and optimization changes from
90049         glibc.
90050         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90051         Ensure that it is a multiple of 64.
90052         Rearrange loop exit tests so as to avoid performing an
90053         additional fread after encountering an error or EOF.
90054         * lib/realloc.c: Update copyright date.
90055
90056 2003-08-15  Jim Meyering  <jim@meyering.net>
90057         and Paul Eggert  <eggert@twinsun.com>
90058
90059         Merge from coreutils.
90060         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90061         member but strut utmpx does not.  Needed for AIX 4.3.3.
90062         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90063
90064 2003-08-15  Jim Meyering  <jim@meyering.net>
90065         and Paul Eggert  <eggert@cs.ucla.edu>
90066
90067         Merges from coreutils, etc.
90068         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90069         Require gl_FUNC_TZSET_CLOBBER.
90070         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90071         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90072         members.
90073
90074 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90075
90076         Help the merge from coreutils.
90077         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90078         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90079         * m4/tzset.m4: Use it too.
90080
90081 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90082
90083         * modules/tzset: New file.
90084
90085 2003-08-14  Jim Meyering  <jim@meyering.net>
90086
90087         Merges from coreutils.
90088         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90089         variable names, rather than @FNMATCH_H@.
90090         * modules/alloca: Likewise for $(ALLOCA_H).
90091
90092         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90093         the three copies of the literal target, `fnmatch.h'.
90094         * modules/alloca (alloca.h): Likewise.
90095
90096 2003-08-14  Jim Meyering  <jim@meyering.net>
90097
90098         Merge from coreutils.
90099         * m4/tzset.m4: New file.
90100         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90101         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90102         otherwise, AIX 5.1 systems would end up using the latter.
90103         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90104         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90105         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90106         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90107
90108 2003-08-14  Jim Meyering  <jim@meyering.net>
90109
90110         Merge from coreutils.
90111         * lib/obstack.h: Whitespace changes.
90112         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90113         and xcalloc return values.
90114         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90115         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90116         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90117         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90118         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90119         error from mntctl.
90120         Use mntctl's return value to drive the entry-processing loop, since
90121         we can't rely on the value of the vmt_length member in the last
90122         entry.  On some systems doing so could result in exhausting
90123         virtual memory.  Based in part on a patch from Mike Jetzer.
90124
90125 2003-08-14  Jim Meyering  <jim@meyering.net>
90126         and Paul Eggert  <eggert@twinsun.com>
90127
90128         Merges from coreutils, plus other fixes.
90129         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90130         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90131         for credits and details.  Thanks to Kaveh Ghazi for helping
90132         to keep these files in sync.
90133         (ARRAY_SIZE): Define it.
90134         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90135         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90136         (memcasecmp): Don't assume size_t fits in unsigned int.
90137         Remove casts and duplicate code.
90138         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90139         (memcpy): Remove definition.
90140         Merge in some clean-up and optimization changes from glibc.
90141         [BLOCKSIZE]: Move definition to top of file.
90142         Ensure that it is a multiple of 64.
90143         Rearrange loop exit tests so as to avoid performing an
90144         additional fread after encountering an error or EOF.
90145         * lib/md5.h (md5_uintptr): Define.
90146         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90147         return to the initial working directory.  Preserve errno
90148         for caller.
90149         * lib/idcache.c: Include "xalloc.h".
90150         (xmalloc, xrealloc): Remove decls.
90151         (getuser): Remove casts no longer required in C89.
90152         * lib/human.c: Include stdio.h, for sprintf.
90153         * lib/group-member.c: Include "xalloc.h".
90154         (xmalloc, xrealloc): Remove decls.
90155         (get_group_info): Remove casts no longer required in C89.
90156         * lib/getusershell.c (readname): Remove casts no longer required in
90157         C89.
90158         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90159         * lib/getline.c: Whitespace fix, from coreutils.
90160
90161 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90162
90163         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90164         Check for isascii.
90165
90166         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90167         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90168         Undo previous (whitespace-only) change.
90169
90170 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90171
90172         * lib/exclude.c: Include <ctype.h>
90173         (IN_CTYPE_DOMAIN): New macro.
90174         (is_space): New fn.
90175         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90176         and empty lines.
90177
90178         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90179         Undo previous (whitespace-only) change.
90180
90181 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90182
90183         * config/srclist-update: Change update back to the old behavior,
90184         leaving whitespace alone.  Use one 'sed' command rather than a
90185         pipeline.
90186         (fixlicense): Now a variable, not a function.
90187         (remove_trailing_blanks): Remove.
90188         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90189         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90190         Undo previous (whitespace-only) change.
90191
90192 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90193
90194         Merge from coreutils.
90195         * modules/euidaccess: Add lib_SOURCES, include for new
90196         file euidaccess.h
90197
90198 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90199
90200         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90201         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90202         Normalize leading white space and remove trailing white space.
90203
90204         Merge from coreutils
90205         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90206
90207         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90208         0.12.1.  These files are now being upgraded automatically by
90209         ../config/srclist-update.
90210
90211 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90212
90213         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90214         Normalize leading white space and remove trailing white space.
90215         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90216         notice, as per ../config/srclist-update.
90217
90218         Merge from coreutils.
90219         * lib/euidaccess.h: New file.
90220         * lib/euidaccess.c: Include it.
90221         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90222         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90223         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90224
90225 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90226
90227         * config/srclist-update: Add copyright notice.
90228         (remove_id_lines, remove_trailing_blanks): New constants.
90229         (fixfile): Use them to normalize spacing a bit in copied files.
90230         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90231         Normalize leading white space and remove trailing white space.
90232
90233         * config/texinfo.tex: Sync with texinfo.
90234
90235         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90236         strtoul.c from libc, to merge coreutils whitespace changes.
90237
90238         * config/srclist.txt: Get the following m4 files from gettext:
90239         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90240         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90241         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90242         wint_t.m4.
90243
90244 2003-08-12  Karl Berry  <karl@gnu.org>
90245
90246         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90247         been made.
90248
90249 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90250
90251         * modules/gnu-source, m4/gnu-source.m4:
90252         Remove; we're assuming Autoconf 2.54 or later now.
90253         Suggested by Bruno Haible.
90254         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90255
90256 2003-08-11  Bruno Haible  <bruno@clisp.org>
90257
90258         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90259
90260 2003-08-11  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90263         (vasnprintf): Use it instead of wcslen.
90264
90265 2003-08-11  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90268         value to ensure that _Bool promotes to int. Use #define for _Bool when
90269         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90270
90271 2003-08-10  Karl Berry  <karl@gnu.org>
90272
90273         * lib/regex.h: update from libc (whitespace fix).
90274
90275 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90276
90277         Merge some files from coreutils.  These changes were
90278         originally made by Jim Meyering.
90279         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90280         many older Unixes require this.
90281         * lib/alloca.c (alloca): Remove cast to argument of free;
90282         no longer needed in C89.
90283         * lib/alloca_.h, regex.h: Fix white space to match
90284         what GNU indent does.
90285
90286 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90287
90288         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90289         apparently Emacs's Unicode mode got confused before my 2003-08-05
90290         checkin.
90291
90292 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90293
90294         * m4/extensions.m4: New file.
90295         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90296         Require gl_USE_SYSTEM_EXTENSIONS.
90297         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90298         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90299
90300 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90301
90302         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90303         * modules/extensions, modules/gnu-source: New files.
90304         * modules/timespec, modules/unlocked-io: Depend on extensions.
90305
90306 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90307
90308         * modules/restrict: New file.
90309         * MODULES.html.sh (func_all_modules): Add restrict.
90310         * modules/regex: Depend on restrict.
90311
90312 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90313
90314         * m4/restrict.m4: New file.
90315         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90316
90317 2003-08-07  Bruno Haible  <bruno@clisp.org>
90318
90319         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90320         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90321
90322 2003-08-07  Bruno Haible  <bruno@clisp.org>
90323
90324         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90325         makes the module 'getndelim2' compatible with the module 'getline'.
90326
90327 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90328
90329         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90330         byte with "\201" to avoid glitches when editing that source file
90331         with multi-gnome-terminal.
90332
90333 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90334
90335         * lib/bumpalloc.h: Remove.
90336
90337 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90338
90339         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90340         * modules/bumpalloc: Remove.
90341
90342 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90343
90344         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90345         GNU coding style.
90346
90347         Merge from coreutils.
90348         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90349         1. From glibc.
90350         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90351         from Karl Berry, implemented by Jim Meyering.
90352         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90353         from Dmitry V. Levin.
90354         Remove anachronistic cast of xrealloc.
90355         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90356         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90357         type. Otherwise, it wouldn't compile with at least /bin/cc on
90358         ymp-cray-unicos9.0.2.X.
90359         Combine two mostly-identical uses of alloca into one.
90360         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90361
90362 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90363
90364         [From Emacs.]
90365
90366         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90367         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90368         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90369         obsolete NLIST_NAME_UNION.
90370         [__GNU__]: Undef BSD and FSCALE.
90371         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90372
90373 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90374
90375         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90376         an enum type, so that it's guaranteed to promote to int.  See:
90377         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90378
90379 2003-08-03  Karl Berry  <karl@gnu.org>
90380
90381         * config/depcomp: update from automake.
90382
90383 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90384
90385         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90386         (strerror): Don't assume that a printable int fits in 14 bytes.
90387
90388 2003-07-31  Bruno Haible  <bruno@clisp.org>
90389
90390         * modules/getpass-gnu: New file.
90391         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90392
90393 2003-07-31  Bruno Haible  <bruno@clisp.org>
90394
90395         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90396
90397 2003-07-24  Karl Berry  <karl@gnu.org>
90398
90399         * config/missing: update from automake.
90400
90401 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90402             Bruno Haible  <bruno@clisp.org>
90403
90404         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90405         * lib/getline.c (getline, getdelim): Likewise.
90406         Remove _GNU_SOURCE define; now it's defined in config.h through
90407         m4/getline.m4.
90408
90409 2003-07-23  Karl Berry  <karl@gnu.org>
90410
90411         * config/config.sub: update from prep.
90412
90413 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90414
90415         * modules/xalloc (Depends-on): Add exitfail.
90416         * modules/xmemcoll: Likewise.
90417
90418 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90419
90420         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90421         over-parenthesization in macros.
90422
90423         Sync with coreutils.
90424
90425         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90426         required by C99.
90427
90428         Use `exit_failure' for xalloc and xmemcoll instead of their own
90429         private exit-failure variables.
90430         * lib/xalloc.h (xalloc_exit_failure): Remove.
90431         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90432         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90433         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90434         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90435         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90436
90437 2003-07-20  Jim Meyering  <jim@meyering.net>
90438
90439         * modules/closeout (Depends-on): Add exitfail.
90440         Suggestion from Bruno Haible.
90441
90442 2003-07-19  Karl Berry  <karl@gnu.org>
90443
90444         * config/config.sub: update from prep.
90445
90446 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90447
90448         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90449         Remove.
90450         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90451         to test that it can stand by itself.  Include "exitfail.h".
90452         Clients should set exit_failure instead.
90453         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90454
90455 2003-07-18  Bruno Haible  <bruno@clisp.org>
90456
90457         * modules/getndelim2: New file.
90458         * modules/getline: Share files with module getndelim2.
90459         * modules/getnline: Depend on getndelim2 instead of sharing files with
90460         it. Add getnline.c to lib_SOURCES.
90461         * MODULES.html.sh (func_all_modules): Add getndelim2.
90462
90463 2003-07-18  Bruno Haible  <bruno@clisp.org>
90464
90465         * m4/getndelim2.m4: New file.
90466         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90467         invoke gl_PREREQ_GETNDELIM2.
90468         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90469         gl_PREREQ_GETNDELIM2.
90470         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90471         gl_GETNDELIM2.
90472
90473 2003-07-18  Bruno Haible  <bruno@clisp.org>
90474
90475         * lib/getndelim2.h: New file.
90476         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90477         getndelim2.h.
90478         (getndelim2): Make non-static. Change return type to ssize_t.
90479         * lib/getline.h: Change argument names.
90480         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90481         * lib/getnline.c: Include getndelim2.h.
90482
90483 2003-07-18  Andreas Schwab  <schwab@suse.de>
90484
90485         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90486
90487 2003-07-17  Karl Berry  <karl@gnu.org>
90488
90489         * config/config.sub: update from prep.
90490
90491 2003-07-17  Bruno Haible  <bruno@clisp.org>
90492
90493         * modules/getnline: New file.
90494         * modules/getline: Add lib/getndelim2.c to source file list.
90495         * MODULES.html.sh (func_all_modules): Add getnline.
90496
90497 2003-07-17  Bruno Haible  <bruno@clisp.org>
90498
90499         * m4/getnline.m4: New file.
90500
90501 2003-07-17  Bruno Haible  <bruno@clisp.org>
90502
90503         * m4/Makefile.am.in: Remove file.
90504         * m4/Makefile.am: Remove file.
90505         * m4/Makefile.in: Remove file.
90506
90507 2003-07-17  Bruno Haible  <bruno@clisp.org>
90508
90509         * lib/getnline.h: New file.
90510         * lib/getnline.c: New file.
90511         * lib/getndelim2.c: New file, extracted from getline.c.
90512         (getndelim2): Renamed from getdelim2, with added nmax argument.
90513         * lib/getline.c: Include getndelim2.c.
90514         (getdelim2): Moved out to getndelim2.c.
90515         (getline, getdelim): Update.
90516
90517 2003-07-17  Bruno Haible  <bruno@clisp.org>
90518
90519         * lib/Makefile.am: Remove file.
90520         * lib/Makefile.in: Remove file.
90521
90522 2003-07-17  Bruno Haible  <bruno@clisp.org>
90523
90524         * configure.in: Remove file.
90525         * Makefile.in: Remove file.
90526
90527 2003-07-17  Bruno Haible  <bruno@clisp.org>
90528
90529         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90530
90531 2003-07-16  Karl Berry  <karl@gnu.org>
90532
90533         * config/srclist-update: was running fixlicense twice, which caused
90534                 texinfo.tex to be nullified for some reason.  Simplify,
90535                 $gplsrc is no longer needed as far as I can see?
90536
90537 2003-07-16  Jim Meyering  <jim@meyering.net>
90538
90539         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90540
90541 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90542
90543         * config/srclist.txt: Get the following files from gettext-runtime/intl
90544         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90545         ref-del.sin.  From Bruno Haible.
90546         * config/srclist-update (fixfile): Change grep pattern again, since the
90547         previous fix didn't work (there was another trailing $).  Use
90548         '[$]' to escape the $s.
90549
90550 2003-07-15  Karl Berry  <karl@gnu.org>
90551
90552         * lib/vasnprintf.c: update from gettext.
90553
90554 2003-07-15  Karl Berry  <karl@gnu.org>
90555
90556         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90557         gets expanded when surrounded by '$'.
90558
90559 2003-07-15  Jim Meyering  <jim@meyering.net>
90560
90561         * modules/save-cwd: Don't depend on error.  From Derek Price.
90562
90563 2003-07-15  Jim Meyering  <jim@meyering.net>
90564
90565         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90566
90567 2003-07-14  Simon Josefsson  <jas@extundo.com>
90568
90569         * modules/mempcpy: New file.
90570         * MODULES.html.sh (func_all_modules): Add mempcpy.
90571
90572 2003-07-14  Simon Josefsson  <jas@extundo.com>
90573
90574         * m4/mempcpy.m4: New file.
90575
90576 2003-07-14  Simon Josefsson  <jas@extundo.com>
90577
90578         * lib/mempcpy.h: New file.
90579         * lib/mempcpy.c: New file.
90580
90581 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90582
90583         * modules/getdate, modules/posixtm: Depend on mktime.
90584
90585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90586
90587         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90588         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90589         unicodeio.c, unicodeio.h, unlocked-io.h:
90590         Switch from LGPL to GPL.
90591
90592 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90593
90594         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90595         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90596         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90597         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90598         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90599         updated automatically by ../config/srclist-update.  This changes
90600         their license from LPGL to GPL.
90601
90602 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90603
90604         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90605         assumed to refer to the root of the most recent stable gettext version.
90606         * config/srclistvars.sh: Add defaults for eggert.
90607         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90608         Match "This program" as well as "The program".  This is needed
90609         for gettext.
90610
90611 2003-07-14  Jim Meyering  <jim@meyering.net>
90612
90613         Don't emit diagnostics.  Let callers do that.
90614         * lib/save-cwd.c: Don't include "error.h".
90615         (save_cwd): Don't call error.  Ensure that errno is valid
90616         when returning nonzero.
90617
90618         * lib/save-cwd.h (restore_cwd): Update prototype.
90619         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90620         Simplify.  Don't call error upon failure.  Let callers do that.
90621         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90622         when auditing is enabled.  But don't bother updating the #if.
90623
90624 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90625
90626         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90627         it breaks C++ compilation.
90628         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90629
90630 2003-07-10  Simon Josefsson  <jas@extundo.com>
90631
90632         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90633
90634 2003-07-10  Jim Meyering  <jim@meyering.net>
90635
90636         * m4/clock_time.m4: Remove trailing blank.
90637         * m4/intmax_t.m4: Likewise.
90638
90639 2003-07-10  Jim Meyering  <jim@meyering.net>
90640
90641         * lib/vasnprintf.c: Remove trailing blanks.
90642         Make cpp indentation consistent.
90643
90644 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90645
90646         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90647         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90648         Switch from LGPL to GPL.
90649
90650 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90651
90652         * config/srclist.txt: Sort sublists.  Add
90653         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90654         that differ from gnulib for one reason or another; we'd like this list
90655         to be smaller but for now let's document what we have.
90656
90657 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90658
90659         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90660         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90661         and sweeter "eval x=$x".
90662         * config/srclist.txt: Get lib/argp* from glibc.
90663
90664 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90665
90666         * lib/mktime.c: Fix some boundary cases and remove need for floating
90667         point.
90668
90669         Issue a compile-time diagnostic if time_t is floating point, or if
90670         two's complement arithmetic is not in effect, or if arithmetic
90671         right shift does not propagate the sign.  These assumptions were
90672         all in the original code but they weren't checked.
90673
90674         (TIME_T_MIDPOINT, verify): New macros.
90675         (__isleap): Remove; it has integer overflow problems.
90676         (leapyear): New function, without those problems.
90677         (ydhms_tm_diff): Remove; splitting into two parts.
90678         (ydhms_diff): New function, containing the arithmetic part of
90679         the old ydhms_tm_diff function.  Issue a compile-time
90680         diagnostic if we are not using C99 integer division.
90681         Avoid casts when possible.
90682         (guess_time_tm): New function, containing the checking part of
90683         the old ydhms_tm_diff function.  Return the new value, rather than
90684         the difference between it and the old.  Accept a new argument T
90685         so that *T specifies the old value.  Check for overflow in the result.
90686
90687         (__mktime_internal): Use a time_t offset, not a long int offset.
90688         This undoes the 2003-06-04 change, which is no longer needed now
90689         that we have better overflow checking.
90690         (localtime_offset): Likewise.
90691
90692         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90693         and long are 64-bit but int is only 32-bit.
90694         (ydhms_diff): Use long int to store year1 and yday1.
90695         Issue a compile-time diagnostic if long int is not wide enough.
90696
90697         (__mktime_internal): Use long int to store adjusted year and yday.
90698         Use plain C rather than preprocessor commands, if that doesn't
90699         affect efficiency.
90700         Check for overflow (and try to repair) after each probe
90701         rather than checking only at the very end.  This avoids some bugs
90702         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90703         does not equal GMT offset at maximum time).
90704         Use integer to check for overflow rather than floating point; this
90705         is more portable to non-IEEE hosts, and is a tad faster.
90706         When we detect that we are oscillating between two values,
90707         don't check whether tm_isdst has the requested value, since
90708         we already know the answer.  When tm_isdst has the wrong value,
90709         use a different heuristic to find the right one, based on the
90710         extreme values actually observed in practice in tz2003a,
90711         rather than the (overly optimistic) "previous 3 calendar quarters".
90712
90713         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90714         "T const" to accommodate glibc style.
90715         (check_result): Use less-confusing report format.  "long" -> "long int.
90716         (main): Likewise.
90717         Don't loop if the iteration overflows time_t.
90718         Allow a negative step in the iteration.
90719
90720 2003-07-06  Karl Berry  <karl@gnu.org>
90721
90722         * config/depcomp: update from automake.
90723         * config/config.sub: update from prep.
90724
90725 2003-07-03  Karl Berry  <karl@gnu.org>
90726
90727         * config/config.guess: update from prep.
90728
90729 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90730
90731         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90732         xreadlink.c now includes it unconditionally.
90733
90734 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90735
90736         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90737         having it depend on HAVE_SYS_TYPES_H.
90738
90739 2003-07-01  Bruno Haible  <bruno@clisp.org>
90740
90741         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90742         <sys/types.h> should be sufficient.
90743         Reported by Paul Eggert.
90744
90745 2003-06-26  Karl Berry  <karl@gnu.org>
90746
90747         * config/depcomp: update from automake.
90748
90749 2003-06-26  Bruno Haible  <bruno@clisp.org>
90750
90751         * modules/human: Depend on module stdbool.
90752
90753 2003-06-25  Bruno Haible  <bruno@clisp.org>
90754
90755         * modules/readlink: New file.
90756         * modules/xreadlink: Depend on it.
90757         * MODULES.html.sh (func_all_modules): Add readlink.
90758
90759 2003-06-25  Bruno Haible  <bruno@clisp.org>
90760
90761         * m4/readlink.m4: New file.
90762
90763 2003-06-25  Bruno Haible  <bruno@clisp.org>
90764
90765         * lib/readlink.c: New file.
90766
90767 2003-06-22  Karl Berry  <karl@gnu.org>
90768
90769         * config/srclist.txt: update mkinstalldirs from automake.
90770         * config/mkinstalldirs: update.
90771
90772 2003-06-22  Bruno Haible  <bruno@clisp.org>
90773
90774         Portability to mingw32.
90775         * m4/ssize_t.m4: New file, from GNU gettext.
90776         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90777         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90778
90779 2003-06-22  Bruno Haible  <bruno@clisp.org>
90780
90781         * modules/safe-read: Add m4/ssize_t.m4.
90782         * modules/xreadlink: Add m4/ssize_t.m4.
90783
90784 2003-06-20  Bruno Haible  <bruno@clisp.org>
90785
90786         Assume C89, so PARAMS isn't needed.
90787         * lib/unicodeio.h (PARAMS): Remove.
90788         * lib/unicodeio.c: Don't use PARAMS.
90789
90790 2003-06-18  Karl Berry  <karl@gnu.org>
90791
90792         * config/config.{guess,sub}: update from prep.
90793
90794 2003-06-18  Jim Meyering  <jim@meyering.net>
90795
90796         Merge changes from coreutils.
90797         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90798         Remove explicit declarations of xmalloc and realloc.
90799         Include xalloc.h.
90800         (read_utmp): Remove anachronistic cast of xmalloc.
90801
90802 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90803
90804         Assume C89, so PARAMS isn't needed.
90805         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90806         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90807         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90808         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90809         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90810         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90811         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90812         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90813         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90814         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90815         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90816         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90817         no longer needed. Anyway, config.h should always be included before any
90818         other file.
90819
90820 2003-06-11  Simon Josefsson  <jas@extundo.com>
90821
90822         * modules/sysexits: New file.
90823         * MODULES.html.sh (func_all_modules): Add sysexits.
90824
90825 2003-06-11  Simon Josefsson  <jas@extundo.com>
90826
90827         * lib/sysexit_.h: New file.
90828
90829 2003-06-11  Derek Price  <derek@ximbiot.com>
90830
90831         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90832         necessary.
90833
90834 2003-06-11  Bruno Haible  <bruno@clisp.org>
90835
90836         * m4/sysexits.m4: New file.
90837
90838 2003-06-10  Simon Josefsson  <jas@extundo.com>
90839
90840         * lib/argp.h: New file, from glibc.
90841         * lib/argp-ba.c: New file, from glibc.
90842         * lib/argp-eexst.c: New file, from glibc.
90843         * lib/argp-fmtstream.c: New file, from glibc.
90844         * lib/argp-fmtstream.h: New file, from glibc.
90845         * lib/argp-fs-xinl.c: New file, from glibc.
90846         * lib/argp-help.c: New file, from glibc.
90847         * lib/argp-namefrob.h: New file, from glibc.
90848         * lib/argp-parse.c: New file, from glibc.
90849         * lib/argp-pv.c: New file, from glibc.
90850         * lib/argp-pvh.c: New file, from glibc.
90851         * lib/argp-xinl.c: New file, from glibc.
90852
90853 2003-06-10  Simon Josefsson  <jas@extundo.com>
90854
90855         * modules/strchrnul: New file.
90856
90857 2003-06-10  Simon Josefsson  <jas@extundo.com>
90858
90859         * modules/argp: New file.
90860
90861 2003-06-10  Simon Josefsson  <jas@extundo.com>
90862
90863         * m4/strchrnul.m4: New file.
90864
90865 2003-06-10  Simon Josefsson  <jas@extundo.com>
90866
90867         * lib/strchrnul.h: New file.
90868         * lib/strchrnul.c: New file.
90869
90870 2003-06-10  Bruno Haible  <bruno@clisp.org>
90871
90872         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90873
90874 2003-06-07  Karl Berry  <karl@gnu.org>
90875
90876         * config/config.{guess,sub}: update from prep.
90877
90878 2003-06-07  Jim Meyering  <jim@meyering.net>
90879
90880         * modules/strtod: Use $(...) notation, not @...@ for
90881         AC_REPLACE'd variables.
90882         * modules/localcharset: Likewise.
90883
90884 2003-06-07  Jim Meyering  <jim@meyering.net>
90885
90886         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90887         in place of my name in the copyright comment.
90888         Remove definition and uses of __P.
90889
90890         From coreutils.
90891         * lib/stat.c: Don't declare xmalloc explicitly.
90892         Instead, include "xalloc.h".
90893         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90894         xrealloc, and xcalloc return values.
90895         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90896         Improve comment.
90897         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90898
90899 2003-06-07  Bruno Haible  <bruno@clisp.org>
90900
90901         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90902         avoid AC_CONFIG_LINKS.
90903         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90904         fnmatch.h, to avoid AC_CONFIG_LINKS.
90905         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90906
90907 2003-06-07  Bruno Haible  <bruno@clisp.org>
90908
90909         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90910         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90911         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90912         directory.
90913         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90914         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90915         directory.
90916
90917 2003-06-06  Jim Meyering  <jim@meyering.net>
90918
90919         Merge from coreutils.
90920         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90921         Consolidate declarations and initializations of *_base* locals.
90922
90923         Merge from coreutils.
90924         This avoids a core dump on systems without GNU putenv,
90925         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90926         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90927         (unsetenv): New static function, from GNU libc.
90928         (rpl_putenv): Use it.
90929
90930         * lib/modechange.c: Remove trailing blanks.
90931
90932         Merge from coreutils.
90933         * lib/fsusage.c: Remove declaration of statfs.
90934         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90935
90936         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90937
90938 2003-06-06  Jim Meyering  <jim@meyering.net>
90939
90940         * lib/stdbool_.h: Renamed from stdbool.h.in.
90941
90942 2003-06-06  Jim Meyering  <jim@meyering.net>
90943             Bruno Haible  <bruno@clisp.org>
90944
90945         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90946         Adjust Makefile.am snippet not to redirect directly to target.
90947         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90948
90949 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90950
90951         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90952         mismatch, look in future quarters as well as past.  This fixes a
90953         bug when processing fall-backwards gaps immediately after a long
90954         period of daylight-saving time.
90955
90956         * lib/mktime.c: Assume freestanding C89 or better.
90957         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90958         (__P): Remove; not used.
90959         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90960         (mktime, not_equal_tm, print_tm, check_result,
90961         main): Use prototypes.  Use const * where appropriate.
90962         (main): Fix typo in testing code that uncovered by above changes.
90963         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90964
90965 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90966
90967         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90968         locale.h, localeconv.  This merges changes from coreutils.
90969
90970         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90971         It can be removed after the next Autoconf is released.
90972         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90973         needed.
90974
90975 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90976
90977         * lib/mktime.c: Fix Debian bug 177940
90978         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90979         (localtime_offset): Now long int, not time_t, because we want it
90980         to be guaranteed to be signed.  All uses changed.
90981         (__mktime_internal): If overflow would occur when adding offset,
90982         don't add it.
90983
90984         Merge 'human' changes from coreutils.  Rewrite to support
90985         locale-specific notations like thousands separators.
90986         * lib/human.c: Simplify authorship notice.
90987         Include human.h immediately after config.h.
90988         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90989         <limits.h>: Do not include, since human.h does.
90990         (SIZE_MAX, UINTMAX_MAX): New macros.
90991         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90992         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90993         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90994         (power_letter): Renamed from suffixes.
90995         (generate_suffix_backwards): Remove.
90996         (adjust_value): Now takes int style (because of human.h changes)
90997         and long double value (for greater precision on some platforms).
90998         (group_number): New function.
90999         (human_readable): Use it.  Use integer options, not enum.
91000         Put the options before the sizes in the arg list.
91001         Support all the new options.
91002         The old human_readable function has been removed;
91003         use inttostr.h instead.
91004         (human_readable, default_block_size, humblock):
91005         Use uintmax_t, not int, for block sizes.
91006         (human_readable_inexact, block_size_types): Remove.
91007         (block_size_opts): New constant.
91008         (human_options): Renamed from human_block_size, with new signature
91009         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91010         * lib/human.h: Add copyright and authorship notice.
91011         Include <limits.h> and <stdbool.h> unconditionally.
91012         (PARAMS): Remove.  All uses removed.
91013         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91014         (enum human_inexact_style): Remove tag; now a nameless enum.
91015         (human_floor, human_ceiling, human_round_to_even): Now have
91016         values 2, 0, 1 rather than -1, 1, 0.
91017         (human_group_digits, human_suppress_point_zero, human_autoscale,
91018         human_base_1024, human_SI, human_B): New constants.
91019         (human_readable_inexact, human_block_size): Remove.
91020         (human_readable): Size args are now uintmax_t, not int.
91021         (human_options): New decl.
91022
91023         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91024         unnecessary now that we assume C89 or better.  This change
91025         imported from coreutils.
91026
91027         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91028         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91029         in the 2003-05-30 sync from glibc.
91030
91031         .h files should stand alone, but we shouldn't include <sys/types.h>
91032         if we can get away with just <stddef.h>.
91033
91034         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91035         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91036         rather than <sys/types.h>, as we merely need size_t.
91037         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91038         to get size_t.
91039         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91040         Include <stdio.h>, to get FILE.
91041         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91042         memcasecmp.h has included <stddef.h> and all we need is size_t.
91043         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91044         our interface, instead of including <sys/types.h>
91045
91046 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91047
91048         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91049         now, as glibc mktime is buggy on non-glibc systems.
91050
91051 2003-06-03  Karl Berry  <karl@gnu.org>
91052
91053         * config/config.sub: update from prep.
91054
91055 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91056
91057         [from coreutils]
91058         Fix some minor time-related bugs with POSIX time arguments.
91059         Some valid time stamps were being rejected (notably -1, and
91060         time stamps before 1900 on 64-bit hosts).  And some invalid
91061         time stamps were being accepted, e.g. September 31.
91062
91063         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91064         that we can return (time_t) -1 successfully.
91065         * lib/posixtm.c: Likewise.
91066         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91067         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91068         (t): Remove static var.
91069         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91070         of static var.  All uses changed.
91071         (year): Do not reject years before 1900; they can occur with
91072         64-bit time_t.
91073         (posix_time_parse): Do not check for out-of-range components;
91074         that is now the caller's responsibility, since our checks were
91075         only approximations.
91076         (posixtime): Use mktime to check for out-of-range components,
91077         since it knows them exactly.
91078         If mktime returns (time_t) -1, check whether an error actually occurred
91079         by invoking localtime on -1.
91080         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91081         posixtime failures better.
91082         Improve the test data (in comments only).
91083
91084 2003-06-02  Karl Berry  <karl@gnu.org>
91085
91086         * config/mkinstalldirs (version): new variable.
91087         (--version): new option.
91088         (usage): improve message.
91089
91090 2003-05-30  Karl Berry  <karl@gnu.org>
91091
91092         * lib/mktime.c: update from libc.
91093
91094 2003-05-30  Bruno Haible  <bruno@clisp.org>
91095
91096         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91097         * config/config.rpath: Upgrade to gettext-0.12.1.
91098
91099 2003-05-30  Bruno Haible  <bruno@clisp.org>
91100
91101         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91102         * m4/nls.m4: New file, from gettext-0.12.1.
91103         * m4/po.m4: New file, from gettext-0.12.1.
91104         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91105
91106 2003-05-30  Bruno Haible  <bruno@clisp.org>
91107
91108         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91109         * lib/localcharset.h: Likewise.
91110         * lib/localcharset.c: Likewise.
91111
91112 2003-05-29  Karl Berry  <karl@gnu.org>
91113
91114         * config/config.rpath: update from gettext.
91115
91116 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91117
91118         Assume the headers required for C89 freestanding compilers.
91119         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91120         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91121         * m4/human.m4 (gl_HUMAN): Likewise.
91122         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91123         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91124         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91125         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91127         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91128
91129 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91130
91131         Assume the headers required for C89 freestanding compilers.
91132         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91133         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91134         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91135         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91136         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91137         define, since <limits.h> is guaranteed to do that.
91138         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91139         * lib/exclude.c: Include <stdbool.h> unconditionally.
91140         * lib/tempname.c: Include <stddef.h> unconditionally.
91141         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91142         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91143         <stddef.h> does that.
91144         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91145         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91146         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91147         needed.
91148         * lib/xstrtol.c: Likewise.
91149         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91150         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91151
91152         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91153         warnings on some platforms.
91154
91155         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91156         arbitrarily.
91157
91158 2003-05-26  Jim Meyering  <jim@meyering.net>
91159
91160         Merge in a change from coreutils:
91161         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91162         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91163         that condition, rather than `-1' which is slightly misleading.
91164         Change the name of the cache variable to have the gl_ prefix.
91165         Prompted by a patch from Richard Dawe for DJGPP.
91166
91167 2003-05-24  Karl Berry  <karl@gnu.org>
91168
91169         * config/config.guess: update from prep.
91170
91171 2003-05-22  Karl Berry  <karl@gnu.org>
91172
91173         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91174
91175 2003-05-20  Karl Berry  <karl@gnu.org>
91176
91177         * config/config.guess: update from prep.
91178
91179 2003-05-18  Karl Berry  <karl@gnu.org>
91180
91181         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91182         might actually be set by the user.
91183
91184         * config/depcomp, install-sh, mdate-sh: update from automake.
91185
91186 2003-05-17  Bruno Haible  <bruno@clisp.org>
91187
91188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91189         invalid expansion for AC_EGREP_CPP.
91190         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91191         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91192         Suggested by Akim Demaille <akim@epita.fr> in
91193         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91194
91195 2003-05-12  Jim Meyering  <jim@meyering.net>
91196
91197         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91198         the space-padded-by-default conversion specifiers, %e, %k, %l.
91199
91200 2003-05-12  Bruno Haible  <bruno@clisp.org>
91201
91202         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91203         the string is longer than 4 KB.
91204
91205 2003-05-11  Karl Berry  <karl@gnu.org>
91206
91207         * config/config.{guess,sub}: update from prep.
91208
91209 2003-05-09  Bruno Haible  <bruno@clisp.org>
91210
91211         * modules/error: Add m4/strerror_r.m4 to file list.
91212
91213 2003-05-03  Bruno Haible  <bruno@clisp.org>
91214
91215         Upgrade to Unicode-4.0.
91216         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91217         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91218         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91219         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91220         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91221         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91222         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91223         Change width of U+E0100..U+E01EF from 1 to 0.
91224
91225 2003-04-25  Jim Meyering  <jim@meyering.net>
91226
91227         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91228         of type size_t, not int.
91229
91230 2003-04-25  Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/copy-file.c: Include <stddef.h>, for size_t.
91233
91234 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91235
91236         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91237         code which expansion is under static control.  Patch imported from
91238         Akim Demaille's patch to Bison; see
91239         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91240
91241 2003-04-14  Bruno Haible  <bruno@clisp.org>
91242
91243         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91244
91245 2003-04-11  Jim Meyering  <jim@meyering.net>
91246
91247         Merge changes from Coreutils.
91248
91249         2003-03-22  Jim Meyering  <jim@meyering.net>
91250
91251         * lib/strftime.c (widen): Cast alloca return value to proper type.
91252
91253         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91254
91255         From GNU libc.
91256         * lib/strftime.c (my_strftime): Handle very large width
91257         specifications for numeric values correctly.  Improve checks for
91258         overflow.
91259
91260         2003-01-19  Jim Meyering  <jim@meyering.net>
91261
91262         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91263         definitions.
91264         (nl_get_alt_digit) [! defined my_strftime]: Define.
91265         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91266         _nl_get_alt_digit and _nl_get_walt_digit.
91267
91268         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91269         libc. These changes have no effect outside of _LIBC.
91270
91271 2003-04-10  Bruno Haible  <bruno@clisp.org>
91272
91273         * modules/findprog: New file.
91274         * MODULES.html.sh (func_all_modules): Add it.
91275
91276 2003-04-10  Bruno Haible  <bruno@clisp.org>
91277
91278         * m4/findprog.m4: New file.
91279         * m4/eaccess.m4: New file.
91280
91281 2003-04-10  Bruno Haible  <bruno@clisp.org>
91282
91283         * lib/findprog.h: New file, from GNU gettext.
91284         * lib/findprog.c: New file, from GNU gettext.
91285
91286 2003-04-05  Jim Meyering  <jim@meyering.net>
91287
91288         Merge changes from Coreutils.
91289
91290         * lib/exclude.h (PARAMS): Remove definition and uses.
91291         * lib/exclude.c: Remove uses of `PARAMS'.
91292
91293         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91294         Add test-cases for DOS filenames. Declare program_name.
91295         (main): Set up program_name.  Patch by Rich Dawe.
91296
91297         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91298         error from mntctl.
91299         Use mntctl's return value to drive the entry-processing loop, since
91300         we can't rely on the value of the vmt_length member in the last
91301         entry.  On some systems doing so could result in exhausting
91302         virtual memory.  Based in part on a patch from Mike Jetzer.
91303
91304 2003-04-04  Bruno Haible  <bruno@clisp.org>
91305
91306         * modules/linebreak: New file.
91307         * MODULES.html.sh (func_all_modules): Add it.
91308
91309 2003-04-04  Bruno Haible  <bruno@clisp.org>
91310
91311         * m4/linebreak.m4: New file.
91312
91313 2003-04-04  Bruno Haible  <bruno@clisp.org>
91314
91315         * lib/linebreak.h: New file, from GNU gettext.
91316         * lib/linebreak.c: New file, from GNU gettext with slight
91317         modifications.
91318         * lib/lbrkprop.h: New file, from GNU gettext.
91319
91320 2003-04-03  Bruno Haible  <bruno@clisp.org>
91321
91322         * modules/utf8-ucs4: New file.
91323         * modules/utf16-ucs4: New file.
91324         * modules/ucs4-utf8: New file.
91325         * modules/ucs4-utf16: New file.
91326         * MODULES.html.sh (func_all_modules): Add them.
91327
91328 2003-04-03  Bruno Haible  <bruno@clisp.org>
91329
91330         * m4/utf-ucs4.m4: New file.
91331         * m4/ucs4-utf.m4: New file.
91332
91333 2003-04-03  Bruno Haible  <bruno@clisp.org>
91334
91335         * lib/utf8-ucs4.h: New file, from GNU gettext.
91336         * lib/utf16-ucs4.h: New file, from GNU gettext.
91337         * lib/ucs4-utf8.h: New file, from GNU gettext.
91338         * lib/ucs4-utf16.h: New file, from GNU gettext.
91339
91340 2003-04-02  Bruno Haible  <bruno@clisp.org>
91341
91342         * modules/binary-io: New file.
91343         * MODULES.html.sh (func_all_modules): Add it.
91344
91345 2003-04-02  Bruno Haible  <bruno@clisp.org>
91346
91347         * lib/binary-io.h: New file, from GNU gettext.
91348
91349 2003-04-01  Bruno Haible  <bruno@clisp.org>
91350
91351         * modules/pathname: New file.
91352         * MODULES.html.sh (func_all_modules): Add it.
91353
91354 2003-04-01  Bruno Haible  <bruno@clisp.org>
91355
91356         * lib/pathname.h: New file, from GNU gettext.
91357         * lib/concatpath.c: New file, from GNU gettext.
91358
91359 2003-03-30  Bruno Haible  <bruno@clisp.org>
91360
91361         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91362
91363 2003-03-30  Bruno Haible  <bruno@clisp.org>
91364
91365         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91366         function chown() doesn't exist.
91367
91368 2003-03-28  Bruno Haible  <bruno@clisp.org>
91369
91370         * modules/copy-file: New file.
91371         * MODULES.html.sh (func_all_modules): Add it.
91372
91373 2003-03-28  Bruno Haible  <bruno@clisp.org>
91374
91375         * m4/copy-file.m4: New file.
91376
91377 2003-03-28  Bruno Haible  <bruno@clisp.org>
91378
91379         * lib/copy-file.h: New file, from GNU gettext.
91380         * lib/copy-file.c: New file, from GNU gettext.
91381
91382 2003-03-18  Jim Meyering  <jim@meyering.net>
91383
91384         * lib/quote.c (quote_n): Fix typo in comment.
91385
91386 2003-03-18  Bruno Haible  <bruno@clisp.org>
91387
91388         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91389         checking.
91390         * m4/onceonly_2_57.m4: Likewise.
91391
91392 2003-03-17  Bruno Haible  <bruno@clisp.org>
91393
91394         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91395         (m4_quote): Remove macro.
91396         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91397
91398 2003-03-14  Jim Meyering  <jim@meyering.net>
91399
91400         Merge changes from Coreutils.
91401         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91402         to be const, in order to avoid warnings.
91403         (obstack_room): Likewise.
91404         (obstack_empty_p): Likewise.
91405
91406 2003-03-14  Bruno Haible  <bruno@clisp.org>
91407
91408         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91409         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91410
91411 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91412
91413         Merge changes from Bison.
91414         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91415         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91416         when compiling Bison 1.875's `bitset bset = obstack_alloc
91417         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91418         * lib/hash.c: Include <stdbool.h> unconditionally.
91419
91420 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91421
91422         * m4/onceonly.m4 (m4_quote): New macro.
91423         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91424         Quote AC_FOREACH variable-expansions properly.
91425
91426 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91427
91428         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91429
91430 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91431
91432         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91433         Reported by Bruce Becker; see:
91434         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91435
91436 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91437             Bruno Haible  <bruno@clisp.org>
91438
91439         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91440         Reported by John Hughes, see
91441         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91442
91443 2003-02-20  Bruno Haible  <bruno@clisp.org>
91444
91445         * MODULES.html.sh (func_all_modules): Add poll.
91446
91447 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91448
91449         * modules/poll: New file.
91450
91451 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91452
91453         * lib/poll_.h: New file.
91454         * lib/poll.c: New file.
91455
91456 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91457
91458         * m4/poll.m4: New file.
91459
91460 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91461
91462         * modules/mathl: New file.
91463
91464 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91465
91466         * lib/mathl.h: New file.
91467         * lib/acosl.c: New file.
91468         * lib/asinl.c: New file.
91469         * lib/atanl.c: New file.
91470         * lib/ceill.c: New file.
91471         * lib/cosl.c: New file.
91472         * lib/expl.c: New file.
91473         * lib/floorl.c: New file.
91474         * lib/frexpl.c: New file.
91475         * lib/ldexpl.c: New file.
91476         * lib/logl.c: New file.
91477         * lib/sincosl.c: New file.
91478         * lib/sinl.c: New file.
91479         * lib/sqrtl.c: New file.
91480         * lib/tanl.c: New file.
91481         * lib/trigl.c: New file.
91482         * lib/trigl.h: New file.
91483
91484 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91485
91486         * m4/mathl.m4: New file.
91487
91488 2003-02-18  Bruno Haible  <bruno@clisp.org>
91489
91490         * MODULES.html.sh (func_all_modules): Add mathl.
91491
91492 2003-02-17  Bruno Haible  <bruno@clisp.org>
91493
91494         * modules/mkdtemp: New module.
91495         * MODULES.html.sh (func_all_modules): Add it.
91496
91497 2003-02-17  Bruno Haible  <bruno@clisp.org>
91498
91499         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91500
91501 2003-02-17  Bruno Haible  <bruno@clisp.org>
91502
91503         * lib/mkdtemp.h: New file, from GNU gettext.
91504         * lib/mkdtemp.c: New file, from GNU gettext.
91505
91506 2003-02-02  Jim Meyering  <jim@meyering.net>
91507
91508         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91509         e.g. glibc-2.2.93.
91510
91511 2003-01-31  Bruno Haible  <bruno@clisp.org>
91512
91513         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91514         'rpl_rename'.
91515         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91516         'rpl_strnlen'.
91517         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91518         'rpl_strtod'.
91519         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91520         'rpl_utime'.
91521
91522 2003-01-31  Bruno Haible  <bruno@clisp.org>
91523
91524         * lib/rename.c: #undef rename before defining rpl_rename.
91525         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91526
91527 2003-01-30  Bruno Haible  <bruno@clisp.org>
91528
91529         * modules/vasnprintf, modules/vasprintf: New modules.
91530         * MODULES.html.sh (func_all_modules): Add them.
91531
91532 2003-01-30  Bruno Haible  <bruno@clisp.org>
91533
91534         * m4/signed.m4: New file, from GNU gettext.
91535         * m4/longdouble.m4: New file, from GNU gettext.
91536         * m4/wchar_t.m4: New file, from GNU gettext.
91537         * m4/wint_t.m4: New file, from GNU gettext.
91538         * m4/vasnprintf.m4: New file.
91539         * m4/vasprintf.m4: New file.
91540
91541 2003-01-30  Bruno Haible  <bruno@clisp.org>
91542
91543         * lib/printf-args.h: New file, from GNU gettext.
91544         * lib/printf-args.c: New file, from GNU gettext.
91545         * lib/printf-parse.h: New file, from GNU gettext.
91546         * lib/printf-parse.c: New file, from GNU gettext.
91547         * lib/vasnprintf.h: New file, from GNU gettext.
91548         * lib/vasnprintf.c: New file, from GNU gettext.
91549         * lib/asnprintf.c: New file, from GNU gettext.
91550         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91551         * lib/vasprintf.c: New file, from GNU gettext.
91552         * lib/asprintf.c: New file, from GNU gettext.
91553
91554 2003-01-29  Bruno Haible  <bruno@clisp.org>
91555
91556         * modules/stpncpy: New module.
91557         * MODULES.html.sh (func_all_modules): Add it.
91558
91559 2003-01-29  Bruno Haible  <bruno@clisp.org>
91560
91561         * m4/stpncpy.m4: New file.
91562
91563 2003-01-29  Bruno Haible  <bruno@clisp.org>
91564
91565         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91566         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91567
91568 2003-01-28  Bruno Haible  <bruno@clisp.org>
91569
91570         * modules/c-ctype: New module.
91571         * MODULES.html.sh (func_all_modules): Add it.
91572
91573 2003-01-28  Bruno Haible  <bruno@clisp.org>
91574
91575         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91576         Paul Eggert.
91577         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91578         Paul Eggert.
91579
91580 2003-01-27  Bruno Haible  <bruno@clisp.org>
91581
91582         * modules/xsetenv: New module.
91583         * MODULES.html.sh (func_all_modules): Add it.
91584
91585 2003-01-27  Bruno Haible  <bruno@clisp.org>
91586
91587         * lib/xsetenv.h: New file, from GNU gettext.
91588         * lib/xsetenv.c: New file, from GNU gettext.
91589
91590 2003-01-23  Jim Meyering  <jim@meyering.net>
91591
91592         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91593         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91594
91595 2003-01-23  Bruno Haible  <bruno@clisp.org>
91596
91597         * modules/minmax: New module.
91598         * MODULES.html.sh (func_all_modules): Add it.
91599
91600 2003-01-23  Bruno Haible  <bruno@clisp.org>
91601
91602         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91603         Eggert.
91604
91605 2003-01-22  Bruno Haible  <bruno@clisp.org>
91606
91607         * modules/exit: New module.
91608         * MODULES.html.sh (func_all_modules): Add it.
91609
91610 2003-01-22  Bruno Haible  <bruno@clisp.org>
91611
91612         * lib/exit.h: New file, from GNU gettext.
91613
91614 2003-01-19  Bruno Haible  <bruno@clisp.org>
91615
91616         * gnulib-tool: Recognize option --extract-maintainer.
91617         (func_get_maintainer): New function.
91618         * modules/*: Add Maintainer entry.
91619
91620 2003-01-16  Jim Meyering  <jim@meyering.net>
91621
91622         * m4/regex.m4: The `regex' struct is both input and output.
91623         Initialize it before each use.  Patch by Tim Waugh.
91624
91625 2003-01-16  Bruno Haible  <bruno@clisp.org>
91626
91627         * MODULES.html.sh: Add a table of contents. Add the module name as
91628         leftmost column. Add hyperlinks.
91629
91630 2003-01-15  Bruno Haible  <bruno@clisp.org>
91631
91632         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91633
91634 2003-01-15  Bruno Haible  <bruno@clisp.org>
91635
91636         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91637         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91638         suffix.
91639
91640 2003-01-15  Bruno Haible  <bruno@clisp.org>
91641
91642         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91643
91644 2003-01-15  Bruno Haible  <bruno@clisp.org>
91645
91646         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91647         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91648
91649 2003-01-14  Jim Meyering  <jim@meyering.net>
91650
91651         * lib/same.c (same_name): Tweak a comment.
91652
91653 2003-01-14  Bruno Haible  <bruno@clisp.org>
91654
91655         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91656         when a string comparison is sufficient.
91657
91658 2003-01-14  Bruno Haible  <bruno@clisp.org>
91659
91660         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91661         'unsigned int'.
91662
91663 2003-01-14  Bruno Haible  <bruno@clisp.org>
91664
91665         * lib/hash-pjw.c: Add comment about low quality of this function.
91666
91667 2003-01-13  Bruno Haible  <bruno@clisp.org>
91668
91669         * modules/stpcpy: Distribute lib/stpcpy.h.
91670         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91671
91672 2003-01-13  Bruno Haible  <bruno@clisp.org>
91673
91674         * modules/*: Add a description.
91675         * modules/strpbrk: Fix Makefile.am snippet.
91676         * modules/strtoimax: Fix dependencies.
91677         * modules/strtoumax: Likewise.
91678
91679 2003-01-13  Bruno Haible  <bruno@clisp.org>
91680
91681         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91682         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91683         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91684
91685 2003-01-13  Bruno Haible  <bruno@clisp.org>
91686
91687         * gnulib-tool (func_create_testdir): Store config/* files in the main
91688         directory.
91689         * config.rpath: Move to ...
91690         * config/config.rpath: ... here.
91691         * modules/gettext: Contains config/config.rpath, not config.rpath.
91692         * modules/iconv: Likewise.
91693
91694 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91695
91696         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91697         to avoid collisions with libcurses and libreadline.
91698
91699         * m4/getstr.m4: Remove.
91700         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91701
91702 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91703
91704         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91705         to avoid collisions with libcurses and libreadline.
91706
91707         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91708         * lib/getstr.h, getstr.c: Remove.
91709         * lib/getline.c: Include "getline.h", to check interface.
91710         Move body of old getstr.c here: this defines MIN_CHUNK and
91711         declares getdelim2, which is renamed from getstr.
91712         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91713
91714         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91715         All uses changed.
91716         * lib/linebuffer.h: Likewise.
91717         (readline): Remove backward-compatibility macro.
91718
91719 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91720
91721         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91722         to avoid collisions with libcurses and libreadline.
91723         * getstr: Remove.
91724         * MODULES.html.sh: Remove getstr.
91725         * modules/getline: Depend on unlocked-io, not getstr.
91726
91727 2003-01-12  Jim Meyering  <jim@meyering.net>
91728
91729         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91730
91731 2003-01-10  Bruno Haible  <bruno@clisp.org>
91732
91733         * modules/alloca: Change Makefile.am requirements. Simplify Include
91734         requirements. Add lib/alloca_.h to file list.
91735
91736 2003-01-10  Bruno Haible  <bruno@clisp.org>
91737
91738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91739
91740 2003-01-10  Bruno Haible  <bruno@clisp.org>
91741
91742         * lib/alloca_.h: New file.
91743         * lib/getdate.y: Unconditionally include alloca.h.
91744         * lib/makepath.c: Likewise.
91745         * lib/setenv.c: Likewise.
91746         * lib/userspec.c: Likewise.
91747
91748 2003-01-09  Karl Berry  <karl@gnu.org>
91749
91750         * MODULES.html.sh: include `dirname $0` in PATH, to find
91751         gnulib-tool.
91752
91753 2003-01-09  Bruno Haible  <bruno@clisp.org>
91754
91755         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91756         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91757
91758 2003-01-09  Bruno Haible  <bruno@clisp.org>
91759
91760         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91761
91762 2003-01-09  Bruno Haible  <bruno@clisp.org>
91763
91764         * lib/stdbool.h.in: New file.
91765
91766 2003-01-09  Bruno Haible  <bruno@clisp.org>
91767
91768         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91769         * MODULES.html.sh: Likewise.
91770
91771 2003-01-08  Jim Meyering  <jim@meyering.net>
91772
91773         * lib/full-write.c: Undefine and define-away `const' after inclusion
91774         of errno.h, not before.  Suggestion from Bruno Haible.
91775
91776 2003-01-08  Bruno Haible  <bruno@clisp.org>
91777
91778         * modules/full-read: Depend on full-write.
91779
91780 2003-01-08  Bruno Haible  <bruno@clisp.org>
91781
91782         * lib/safe-read.c: Include specification header first, to ensure its
91783         selfcontainedness.
91784         * lib/full-write.c: Likewise.
91785
91786 2003-01-07  Jim Meyering  <jim@meyering.net>
91787
91788         * lib/full-write.c: Rework so that it may serve to define full_read,
91789         too.
91790         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91791
91792 2003-01-07  Bruno Haible  <bruno@clisp.org>
91793
91794         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91795         <inttypes.h>.
91796         * lib/xstrtol.h: Likewise.
91797         * lib/xstrtoimax.c: Likewise.
91798         * lib/xstrtoumax.c: Likewise.
91799         * lib/human.h: Likewise.
91800
91801         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91802         on systems that have <inttypes.h> but not <stdint.h>.
91803
91804 2003-01-07  Bruno Haible  <bruno@clisp.org>
91805
91806         * MODULES.html.sh: Add copyright notice.
91807         (missed_files): Omit CVS directory entries.
91808         (func_module): Make it work with sed-3.02.
91809         * MODULES.txt: Remove file.
91810
91811 2003-01-06  Jim Meyering  <jim@meyering.net>
91812
91813         * lib/version-etc.c: Update year in translatable copyright string.
91814
91815 2003-01-03  Karl Berry  <karl@gnu.org>
91816
91817         * config/config.{guess,sub}: update from prep.
91818
91819 2003-01-02  Karl Berry  <karl@gnu.org>
91820
91821         * doc/COPYING.DOC: belatedly updated to 1.2.
91822
91823 2003-01-01  Karl Berry  <karl@gnu.org>
91824
91825         * gnulib-tool (func_verify_module): report module name $module in
91826         error message, not $1.
91827         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91828         be created, only if it doesn't exist.
91829         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91830
91831 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91832
91833         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91834
91835 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91836
91837         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91838         memcmp if strcoll doesn't work.
91839
91840 2002-12-31  Bruno Haible  <bruno@clisp.org>
91841
91842         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91843         nonempty.
91844
91845 2002-12-31  Bruno Haible  <bruno@clisp.org>
91846
91847         * lib/memcoll.c (STRCOLL): New macro.
91848         (memcoll): Use it.
91849
91850 2002-12-31  Bruno Haible  <bruno@clisp.org>
91851
91852         * lib/localcharset.h: New file.
91853         * lib/localcharset.c: Include it.
91854         * lib/unicodeio.c: Likewise.
91855
91856 2002-12-31  Bruno Haible  <bruno@clisp.org>
91857
91858         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91859         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91860
91861 2002-12-31  Bruno Haible  <bruno@clisp.org>
91862
91863         * lib/getline.h: Include <stddef.h>, for size_t.
91864
91865         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91866         * lib/unicodeio.c: Don't include <stddef.h>.
91867
91868 2002-12-31  Bruno Haible  <bruno@clisp.org>
91869
91870         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91871         HAVE_TM_ZONE.
91872
91873 2002-12-24  Karl Berry  <karl@gnu.org>
91874
91875         * config/config.guess: update from prep.
91876
91877 2002-12-24  Bruno Haible  <bruno@clisp.org>
91878
91879         General infrasructure.
91880         * m4/README: Rewritten.
91881         * m4/onceonly.m4: New file.
91882         * m4/onceonly_2_57.m4: New file.
91883
91884         Module atexit.
91885         * m4/atexit.m4: New file.
91886
91887         Module strtod.
91888         * m4/strtod.m4: New file.
91889
91890         Module strtol.
91891         * m4/strtol.m4: New file.
91892
91893         Module strtoul.
91894         * m4/strtoul.m4: New file.
91895
91896         Module memchr.
91897         * m4/memchr.m4: New file.
91898
91899         Module memcmp.
91900         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91901         (jm_FUNC_MEMCMP): Invoke it.
91902
91903         Module memcpy.
91904         * m4/memcpy.m4: New file.
91905
91906         Module memmove.
91907         * m4/memmove.m4: New file.
91908
91909         Module memset.
91910         * m4/memset.m4: New file.
91911
91912         Module strcspn.
91913         * m4/strcspn.m4: New file.
91914
91915         Module strpbrk.
91916         * m4/strpbrk.m4: New file.
91917
91918         Module strstr.
91919         * m4/strstr.m4: New file.
91920
91921         Module strerror.
91922         * m4/strerror.m4: New file.
91923
91924         Module mktime.
91925         * m4/mktime.m4: Renamed from jm-mktime.m4.
91926         (gl_PREREQ_MKTIME): New macro.
91927         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91928
91929         Module malloc.
91930         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91931         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91932         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91933
91934         Module realloc.
91935         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91936         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91937         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91938
91939         Module strftime.
91940         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91941         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91942         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91943         gl_TM_GMTOFF.
91944         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91945
91946         Module xalloc.
91947         * m4/xalloc.m4: New file.
91948
91949         Module alloca.
91950         * m4/alloca.m4: New file.
91951
91952         Module putenv.
91953         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91954         (jm_FUNC_PUTENV): Invoke it.
91955
91956         Module setenv.
91957         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91958         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91959         when invoked twice.
91960         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91961         gt_FUNC_SETENV.
91962
91963         Module memrchr.
91964         * m4/memrchr.m4: New file.
91965
91966         Module stpcpy.
91967         * m4/stpcpy.m4: New file.
91968
91969         Module strcase.
91970         * m4/strcase.m4: New file.
91971
91972         Module strdup.
91973         * m4/strdup.m4: New file.
91974
91975         Module strnlen.
91976         * m4/strnlen.m4: New file.
91977
91978         Module strndup.
91979         * m4/strndup.m4: New file.
91980
91981         Module xstrtod.
91982         * m4/xstrtod.m4: New file.
91983
91984         Module xstrtol.
91985         * m4/xstrtol.m4: New file.
91986
91987         Module getdate.
91988         * m4/getdate.m4: New file.
91989
91990         Module unlocked-io.
91991         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91992         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91993         * m4/jm-glibc-io.m4n: Remove file.
91994
91995         Module long-options.
91996         * m4/long-options.m4: New file.
91997
91998         Module md5.
91999         * m4/md5.m4: New file.
92000
92001         Module sha.
92002         * m4/sha.m4: New file.
92003
92004         Module getstr.
92005         * m4/getstr.m4: New file.
92006
92007         Module getline.
92008         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92009         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92010         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92011         simply getline. Infoke gl_PREREQ_GETLINE.
92012
92013         Module obstack.
92014         * m4/obstack.m4: New file.
92015
92016         Module hash.
92017         * m4/hash.m4: New file.
92018
92019         Module readtokens.
92020         * m4/readtokens.m4: New file.
92021
92022         Module strverscmp.
92023         * m4/strverscmp.m4: New file.
92024
92025         Module stdbool.
92026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92027         OSF/1.
92028
92029         Module strtoll.
92030         * m4/strtoll.m4: New file.
92031
92032         Module strtoull.
92033         * m4/strtoull.m4: New file.
92034
92035         Module strtoimax.
92036         * m4/strtoimax.m4: New file.
92037
92038         Module strtoumax.
92039         * m4/strtoumax.m4: New file.
92040
92041         Module xstrtoimax.
92042         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92043         jm_AC_PREREQ_XSTRTOIMAX.
92044         Moved the strtol prerequisites to strtol.m4.
92045         Moved the strtoll prerequisites to strtoll.m4.
92046         Moved the strtoimax prerequisites to strtoimax.m4.
92047
92048         Module xstrtoumax.
92049         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92050         jm_AC_PREREQ_XSTRTOUMAX.
92051         Moved the strtoul prerequisites to strtoul.m4.
92052         Moved the strtoull prerequisites to strtoull.m4.
92053         Moved the strtoumax prerequisites to strtoumax.m4.
92054
92055         Module chown.
92056         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92057         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92058
92059         Module dup2.
92060         * m4/dup2.m4: New file.
92061
92062         Module ftruncate.
92063         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92064         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92065
92066         Module getgroups.
92067         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92068         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92069
92070         Module gettimeofday.
92071         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92072         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92073         gl_PREREQ_GETTIMEOFDAY.
92074
92075         Module mkdir.
92076         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92077         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92078
92079         Module mkstemp.
92080         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92081         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92082         jm_AC_TYPE_UINTMAX_T.
92083         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92084
92085         Module stat.
92086         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92087         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92088
92089         Module lstat.
92090         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92091         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92092
92093         Module timespec.
92094         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92095         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92096         * m4/st_mtim.m4: Indentation.
92097
92098         Module nanosleep.
92099         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92100         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92101         gl_PREREQ_NANOSLEEP.
92102
92103         Module regex.
92104         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92105         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92106         (gl_REGEX): New macro.
92107
92108         Module rename.
92109         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92110         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92111
92112         Module rmdir.
92113         * m4/rmdir.m4: New file.
92114
92115         Module utime.
92116         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92117         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92118         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92119
92120         Module dirname.
92121         * m4/dirname.m4: New file.
92122
92123         Module getopt.
92124         * m4/getopt.m4: New file.
92125
92126         Module unistd-safer.
92127         * m4/unistd-safer.m4: New file.
92128
92129         Module fnmatch.
92130         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92131         declaration.
92132         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92133         (gl_FUNC_FNMATCH_POSIX): New macro.
92134         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92135         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92136         simply fnmatch.
92137
92138         Module exclude.
92139         * m4/exclude.m4: New file.
92140
92141         Module human.
92142         * m4/human.m4: New file.
92143
92144         Module acl.
92145         * m4/acl.m4: Nop.
92146
92147         Module backupfile.
92148         * m4/backupfile.m4: New file.
92149         * m4/d-ino.m4: Indentation.
92150
92151         Module fsusage.
92152         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92153         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92154         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92155
92156         Module dirfd.
92157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92158         requirements.
92159
92160         Module euidaccess.
92161         * m4/euidaccess.m4: New file.
92162
92163         Module file-type.
92164         * m4/file-type.m4: New file.
92165
92166         Module fileblocks.
92167         * m4/fileblocks.m4: New file.
92168
92169         Module filemode.
92170         * m4/filemode.m4: New file.
92171
92172         Module isdir.
92173         * m4/isdir.m4: New file.
92174
92175         Module lchown.
92176         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92177         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92178
92179         Module makepath.
92180         * m4/makepath.m4: New file.
92181
92182         Module modechange.
92183         * m4/modechange.m4: New file.
92184
92185         Module mountlist.
92186         * m4/mountlist.m4: New file.
92187         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92188         Indentation.
92189
92190         Module path-concat.
92191         * m4/path-concat.m4: New file.
92192
92193         Module pathmax.
92194         * m4/pathmax.m4: New file.
92195
92196         Module same.
92197         * m4/same.m4: New file.
92198
92199         Module save-cwd.
92200         * m4/save-cwd.m4: New file.
92201
92202         Module savedir.
92203         * m4/savedir.m4: New file.
92204
92205         Module xgetcwd.
92206         * m4/xgetcwd.m4: New file.
92207         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92208
92209         Module xreadlink.
92210         * m4/xreadlink.m4: New file.
92211
92212         Module safe-read.
92213         * m4/safe-read.m4: New file.
92214
92215         Module safe-write.
92216         * m4/safe-write.m4: New file.
92217
92218         Module closeout.
92219         * m4/closeout.m4: New file.
92220
92221         Module stdio-safer.
92222         * m4/stdio-safer.m4: New file.
92223
92224         Module getpass.
92225         * m4/getpass.m4: New file.
92226
92227         Module getugroups.
92228         * m4/getugroups.m4: New file.
92229
92230         Module group-member.
92231         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92232         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92233
92234         Module idcache.
92235         * m4/idcache.m4: New file.
92236
92237         Module userspec.
92238         * m4/userspec.m4: New file.
92239
92240         Module gettime.
92241         * m4/clock_time.m4: New file.
92242         * m4/gettime.m4: New file.
92243
92244         Module settime.
92245         * m4/settime.m4: New file.
92246
92247         Module posixtm.
92248         * m4/posixtm.m4: New file.
92249
92250         Module gethostname.
92251         * m4/gethostname.m4: New file.
92252
92253         Module canon-host.
92254         * m4/canon-host.m4: New file.
92255
92256         Module gettext.
92257         * m4/codeset.m4: New file, from gettext-0.11.5.
92258         * m4/gettext.m4: New file, from gettext-0.11.5.
92259         * m4/glibc21.m4: New file, from gettext-0.11.5.
92260         * m4/iconv.m4: New file, from gettext-0.11.5.
92261         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92262         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92263         * m4/inttypes.m4: New file, from gettext-0.11.5.
92264         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92265         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92266         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92267         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92268         * m4/lib-link.m4: New file, from gettext-0.11.5.
92269         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92270         * m4/progtest.m4: New file, from gettext-0.11.5.
92271         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92272         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92273         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92274
92275         Module localcharset.
92276         * m4/localcharset.m4: New file.
92277
92278         Module hard-locale.
92279         * m4/hard-locale.m4: New file.
92280
92281         Module mbswidth.
92282         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92283         onceonly macros.
92284         * m4/mbrtowc.m4: Add comment.
92285
92286         Module memcasecmp.
92287         * m4/memcasecmp.m4: New file.
92288
92289         Module memcoll.
92290         * m4/memcoll.m4: New file.
92291
92292         Module unicodeio.
92293         * m4/unicodeio.m4: New file.
92294
92295         Module rpmatch.
92296         * m4/rpmatch.m4: New file.
92297
92298         Module yesno.
92299         * m4/yesno.m4: New file.
92300
92301         Module exitfail.
92302         * m4/exitfail.m4: New file.
92303
92304         Module c-stack.
92305         * m4/c-stack.m4 (gl_C_STACK): New macro.
92306         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92307
92308         Module error.
92309         * m4/error.m4 (gl_ERROR): New macro.
92310         (jm_PREREQ_ERROR): Use onceonly macros.
92311
92312         Module fatal.
92313         * m4/fatal.m4: New file.
92314
92315         Module getloadavg.
92316         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92317         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92318
92319         Module getpagesize.
92320         * m4/getpagesize.m4: New file.
92321
92322         Module getusershell.
92323         * m4/getusershell.m4: New file.
92324
92325         Module physmem.
92326         * m4/physmem.m4: New file.
92327
92328         Module posixver.
92329         * m4/posixver.m4: New file.
92330
92331         Module quotearg.
92332         * m4/quotearg.m4: New file.
92333
92334         Module quote.
92335         * m4/quote.m4: New file.
92336
92337         Module readutmp.
92338         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92339
92340         Module sig2str.
92341         * m4/sig2str.m4: New file.
92342
92343         Other.
92344         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92345         ulonglong.m4.
92346         * m4/intmax_t.m4: New file.
92347         * m4/d-type.m4: Indentation.
92348         * m4/jm-macros.m4: Update.
92349         * m4/prereq.m4 (jm_PREREQ): Update.
92350         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92351         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92352         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92353         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92354         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92355         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92356         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92357         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92358         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92359         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92360         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92361         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92362         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92363         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92364         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92365         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92366         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92367         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92368         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92369
92370 2002-12-24  Bruno Haible  <bruno@clisp.org>
92371
92372         * MODULES.txt: Update according to m4/ changes.
92373
92374         Module gettext.
92375         * config.rpath: New file, from gettext-0.11.5.
92376
92377         * modules/*: New module descriptions.
92378         * gnulib-tool: New file.
92379         * MODULES.html.sh: New file.
92380
92381 2002-12-21  Karl Berry  <karl@gnu.org>
92382
92383         * doc/fdl.texi: update to version 1.2.
92384
92385 2002-12-19  Karl Berry  <karl@gnu.org>
92386
92387         * config/config.guess: update from prep.
92388
92389 2002-12-18  Bruno Haible  <bruno@clisp.org>
92390
92391         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92392         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92393
92394 2002-12-17  Bruno Haible  <bruno@clisp.org>
92395
92396         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92397         stdlib.h, string.h.
92398
92399 2002-12-17  Bruno Haible  <bruno@clisp.org>
92400
92401         * lib/canon-host.c (strdup): Remove unused declaration.
92402
92403         * lib/fsusage.c: Include full_read.h.
92404         (get_fs_usage): Use full_read instead of safe_read.
92405
92406         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92407
92408 2002-12-12  Karl Berry  <karl@gnu.org>
92409
92410         * config/config.guess: update from prep.
92411
92412 2002-12-11  Bruno Haible  <bruno@clisp.org>
92413
92414         * m4/setenv.m4: New file, from gettext-0.11.5.
92415
92416 2002-12-11  Bruno Haible  <bruno@clisp.org>
92417
92418         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92419         not unsetenv().
92420         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92421         modifications:
92422
92423         2002-12-11  Bruno Haible  <bruno@clisp.org>
92424
92425                 * setenv.c (alloca): Fall back to malloc.
92426                 (freea): New macro.
92427                 (setenv): Use freea() to free memory allocated with alloca().
92428
92429         2002-11-13  Bruno Haible  <bruno@clisp.org>
92430
92431                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92432                 function declarations.
92433                 * unsetenv.c (unsetenv): Likewise.
92434
92435         2002-03-04  Bruno Haible  <bruno@clisp.org>
92436
92437                 Portability to AIX 4.3.3.
92438                 * unsetenv.c: New file, extracted from setenv.c.
92439                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92440
92441         2001-12-20  Bruno Haible  <bruno@clisp.org>
92442
92443                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92444                 use malloc instead. For SunOS 4.
92445
92446         2001-12-11  Bruno Haible  <bruno@clisp.org>
92447
92448                 * setenv.c: Declare alloca.
92449                 (compar_fn_t): New typedef.
92450                 (KNOWN_VALUE, STORE_VALUE): Use it.
92451
92452         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92453         setenv.h.
92454
92455 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92456
92457         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92458         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92459         Choose values that are less likely to collide with system fnmatch
92460         options.
92461         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92462         defined (e.g., a pure POSIX system).
92463         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92464         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92465
92466 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92467
92468         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92469         a pain in practice to deal with generated m4 files.  This change
92470         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92471
92472         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92473         and jm-glibc-io.m4, as they are no longer a special case.
92474         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92475         kludge and the auto-generation stuff.  Check only whether the
92476         functions are declared, not whether they exist, since older hosts
92477         that don't declare the functions can't use the optimization anyway.
92478
92479 2002-12-06  Jim Meyering  <jim@meyering.net>
92480
92481         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92482
92483         Merge in changes from libc's misc/error.c, in preparation
92484         for the merge of gnulib's changes back into libc.
92485
92486         * lib/error.c (_): Define only if not already defined.
92487         Move definition to follow all #include directives.
92488         Include unlocked-io.h only if !_LIBC.
92489         [_LIBC]: Include <libio/libioP.h>.
92490         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92491         (fflush): Tweak definition to use INTUSE.
92492         (putc): Define.
92493
92494 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92495
92496         * lib/alloca.c [defined emacs]: Include "lisp.h".
92497         (xalloc_die) [defined emacs]: New macro.
92498         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92499         [! defined emacs]: Include <xalloc.h>.
92500         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92501         (pointer): Typedef to POINTER_TYPE *.
92502         (malloc): Remove decl; we now always use xmalloc.
92503         (alloca): Use old-style definition, since Emacs needs this.
92504         Check for arithmetic overflow when computing combined size.
92505
92506 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92507
92508         Do not generate unlocked-io.h automatically, since it's easier to
92509         maintain it by hand.
92510
92511         * lib/unlocked-io.h: New file, from GNU diffutils,
92512         but with proper copyright notice and attribution.
92513         * lib/gen-uio: Remove.
92514         * lib/Makefile.am: Add copyright notice.
92515         (libfetish_a_SOURCES): Add unlocked-io.h.
92516         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92517         (DISTCLEANFILES, io_functions): Remove macros.
92518         (EXTRA_DIST): Remove gen_uio.
92519         (unlocked-io.h): Remove rule.
92520
92521 2002-12-04  Jim Meyering  <jim@meyering.net>
92522
92523         Reflect the fact that stat.c and lstat.c are no longer generated.
92524         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92525         (DISTCLEANFILES): Likewise.
92526         (EXTRA_DIST): Likewise.
92527         (all_local): Don't depend on stat.c or lstat.c.
92528         (stat.c, lstat.c): Remove rules.
92529         (EXTRA_DIST): Remove xstat.in.
92530
92531         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92532         * lib/stat.c: New file.  Contents mostly from xstat.in.
92533         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92534         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92535
92536         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92537         too.
92538         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92539
92540 2002-12-03  Jim Meyering  <jim@meyering.net>
92541
92542         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92543         but not semantics, to minimize the differences between these two files.
92544         (safe_read): Change comment to mention SAFE_READ_ERROR.
92545
92546         * lib/safe-read.c (IS_EINTR): Define.
92547         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92548
92549 2002-12-02  Jim Meyering  <jim@meyering.net>
92550
92551         * lib/safe-read.c (EINTR): Define.
92552         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92553         (INT_MAX): Provide fallback.
92554         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92555
92556         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92557
92558 2002-12-02  Bruno Haible  <bruno@clisp.org>
92559
92560         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92561         Define, taken from safe-read.c.
92562         (INT_MAX): Provide fallback.
92563         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92564         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92565
92566         * lib/safe-read.c (EINTR): Remove definition.
92567         (safe_read): Don't use EINTR if it is absent.
92568
92569 2002-12-01  Jim Meyering  <jim@meyering.net>
92570
92571         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92572         zero.
92573         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92574
92575 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92576
92577         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92578         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92579         with `if (! (value < limit)) abort ();', for readability.
92580
92581 2002-11-26  Karl Berry  <karl@gnu.org>
92582
92583         * lib/strdup.c: copy from libc again, with jim's ok.
92584         * lib/.cppi-disable: re-add strdup.c
92585
92586 2002-11-25  Karl Berry  <karl@gnu.org>
92587
92588         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92589         instead of "strtol.c".
92590
92591 2002-11-25  Karl Berry  <karl@gnu.org>
92592
92593         * config/install-sh: update from automake for variable quoting, $0 in
92594         error msgs, etc.
92595
92596         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92597         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92598         entry.
92599
92600 2002-11-25  Jim Meyering  <jim@meyering.net>
92601
92602         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92603
92604 2002-11-24  Karl Berry  <karl@gnu.org>
92605
92606         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92607         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92608
92609 2002-11-24  Jim Meyering  <jim@meyering.net>
92610
92611         Update from coreutils:
92612
92613         * lib/mktime.c: Merge in changes from libc.
92614
92615         Avoid a link-time failure on some Linux systems.
92616         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92617         (otherwise).
92618         (__mon_yday): Declare with the STATIC attribute.
92619         (__mktime_internal): Likewise.
92620         Based on a report from Greg Schafer.
92621
92622 2002-11-23  Jim Meyering  <jim@meyering.net>
92623
92624         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92625         Use `unsigned', not `int', as type of index.
92626
92627         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92628
92629         * lib/fsusage.c: Remove unneeded parentheses around operands of
92630         `defined'.
92631
92632 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92633
92634         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92635         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92636         so that we can be included first.
92637         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92638         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92639         No need to include stddef.h or sys/types.h any more.
92640         Surround local include files with "", not "<>".
92641         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92642         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92643         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92644         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92645         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92646         (ISPRINT): Remove; no longer needed now that we assume C89.
92647
92648         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92649         Preserve errno.
92650
92651         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92652         quotearg_char): Use SIZE_MAX rather than
92653         (size_t) -1 when we are talking about "infinity".
92654
92655         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92656
92657 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92658
92659         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92660         hint that one should use `if (! x) abort ();' rather than `assert
92661         (x);', and anyway it's one less thing to worry about configuring.
92662         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92663         hash_rehash, hash_insert): Use abort rather than assert.
92664
92665 2002-11-22  Bruno Haible  <bruno@clisp.org>
92666
92667         * lib/safe-read.h: Assume C89. Add comments.
92668         (safe_read): Change return type to size_t.
92669         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92670         byte counts > SSIZE_MAX correctly.
92671         * lib/safe-write.h: New file.
92672         * lib/safe-write.c: New file.
92673         * lib/full-read.h: New file.
92674         * lib/full-read.c: New file.
92675         * lib/full-write.h: Assume C89. Add comments.
92676         * lib/full-write.c: Include safe-write.h.
92677         (full_write): Rewritten to use safe_write.
92678         Suggested by Jim Meyering and Paul Eggert.
92679
92680 2002-11-21  Jim Meyering  <jim@meyering.net>
92681
92682         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92683
92684         Merge in changes from the coreutils.
92685
92686         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92687         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92688         <stdint.h>.
92689         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92690         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92691         int.  Work more efficiently if X is the same width as uintmax_t.
92692         Do not compare X to -1, to avoid bogus compiler warning.
92693         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92694         Don't assume that f_frsize and f_bsize are the same type.
92695
92696         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92697         warning on FreeBSD.
92698
92699         * lib/makepath.c (make_path): Restore umask *before* creating the final
92700         component.
92701         (make_path): Minor reformatting.
92702
92703         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92704         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92705         HAVE_MALLOC/HAVE_REALLOC.
92706
92707         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92708         dummy ones.  At least on GNU/Linux systems, `auto' means something
92709         else.
92710         From Michael Stone.
92711
92712 2002-11-21  Bruno Haible  <bruno@clisp.org>
92713
92714         Remove case insensitive option matching.
92715         * lib/argmatch.h (argcasematch): Remove declaration.
92716         (ARGCASEMATCH): Remove macro.
92717         (__xargmatch_internal): Remove case_sensitive argument.
92718         (XARGMATCH): Update.
92719         (XARGCASEMATCH): Remove macro.
92720         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92721         case_sensitive argument.
92722         (argcasematch): Remove function.
92723         (__xargmatch_internal): Remove case_sensitive argument.
92724         (main): Use XARGMATCH instead of XARGCASEMATCH.
92725
92726         * lib/xmalloc.c: Change compile-time error message. Add comment about
92727         required autoconf version.
92728
92729 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92730
92731         Merge argmatch cleanups from Bison.  Assume C89.
92732
92733         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92734         Include stdlib.h, for EXIT_FAILURE.
92735         Always include <string.h>, since we assume C89.
92736         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92737         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92738         Include <stddef.h> instead, since it's all we need for size_t.
92739         (PARAMS): Remove.  All uses removed.
92740         (ARRAY_CARDINALITY): Do not bother to #undef.
92741         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92742         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92743         Remove unnecessary parentheses.
92744         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92745         Insert necessary parentheses.
92746         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92747         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92748
92749 2002-11-19  Bruno Haible  <bruno@clisp.org>
92750
92751         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92752         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92753
92754         * lib/mbswidth.h (PARAMS): Remove macro.
92755         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92756         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92757
92758         * lib/gcd.h (PARAMS): Remove macro.
92759         (gcd): Use ANSI C function declarations.
92760         * lib/gcd.c (gcd): Likewise.
92761
92762 2002-11-15  Bruno Haible  <bruno@clisp.org>
92763
92764         * lib/strcspn.c: Include <stddef.h>.
92765         (strcspn): Use ANSI C function declaration. Change return type to
92766         size_t. Use NULL.
92767         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92768         (strpbrk): Use NULL.
92769         * lib/strpbrk.h (PARAMS): Remove macro.
92770         (strpbrk): Use ANSI C function declaration.
92771         * lib/strstr.c: Don't include <sys/types.h>.
92772         * lib/strstr.h (PARAMS): Remove macro.
92773         (strstr): Use ANSI C function declarations.
92774
92775 2002-11-14  Karl Berry  <karl@gnu.org>
92776
92777         * config/mkinstalldirs: `do' on separate line, instead of
92778         `for var; do'.
92779
92780 2002-11-06  Bruno Haible  <bruno@clisp.org>
92781
92782         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92783         * lib/gcd.c (gcd): Likewise.
92784
92785 2002-11-05  Bruno Haible  <bruno@clisp.org>
92786
92787         * lib/gcd.h: New file, from gettext-0.11.5.
92788         * lib/gcd.c: New file, from gettext-0.11.5.
92789
92790 2002-11-05  Bruno Haible  <bruno@clisp.org>
92791
92792         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92793         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92794         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92795         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92796
92797         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92798         <libintl.h>.
92799         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92800         <libintl.h>.
92801
92802         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92803         * lib/human.c: Include gettext.h instead of <libintl.h>.
92804         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92805         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92806         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92807         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92808         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92809         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92810         (textdomain): Remove definition.
92811         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92812
92813         * lib/long-options.c: Remove include of <libintl.h> and definition of
92814         _.
92815         * lib/same.c: Remove include of <libintl.h> and definition of _.
92816
92817 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92818
92819         * lib/config.charset: A few additions for Solaris.
92820
92821 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92822
92823         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92824         * lib/localcharset.c (locale_charset): Declare as extern "C".
92825
92826 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92827
92828         * lib/config.charset: msdos in uk_UA uses CP1125.
92829
92830 2002-11-04  Bruno Haible  <bruno@clisp.org>
92831
92832         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92833         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92834         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92835         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92836         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92837
92838 2002-11-04  Bruno Haible  <bruno@clisp.org>
92839
92840         * lib/localcharset.c (locale_charset): Don't return an empty string.
92841
92842 2002-11-04  Bruno Haible  <bruno@clisp.org>
92843
92844         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92845         aliases.
92846
92847 2002-11-04  Bruno Haible  <bruno@clisp.org>
92848
92849         * lib/config.charset: Update for newest glibc. Add canonical names
92850         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92851
92852 2002-11-04  Bruno Haible  <bruno@clisp.org>
92853
92854         * lib/config.charset: Add support for NetBSD.
92855
92856 2002-11-04  Bruno Haible  <bruno@clisp.org>
92857
92858         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92859
92860 2002-11-01  Bruno Haible  <bruno@clisp.org>
92861
92862         * configure.in: Add AC_CONFIG_AUX_DIR call.
92863         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92864         test/Makefile.
92865         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92866
92867 2002-09-28  Karl Berry  <karl@gnu.org>
92868
92869         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92870         installed automake until the next release, since changes have been
92871         made.
92872
92873 2002-09-25  Karl Berry  <karl@gnu.org>
92874
92875         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92876         * lib/getopt*: copy from libc/posix.
92877         * lib/gettext.h: copy from gettext.
92878         * lib/.cppi-disable: add strdup.c, gettext.h.
92879
92880 2002-09-25  Karl Berry  <karl@gnu.org>
92881
92882         * config/srclist.txt: enable gettext.h check.
92883         * config/config.{guess,sub}: update from prep.
92884         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92885                 from automake 1.6.3.
92886         See srclist*.
92887
92888 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92889
92890         * regex.c (PATFETCH): Remove the translating fetch.
92891         (PATFETCH_RAW): Rename to PATFETCH.
92892         (set_image_of_range): New fun.
92893         (SET_RANGE_TABLE_WORK_AREA): Use it.
92894         (regex_compile): Don't translate the pattern chars so eagerly.
92895         Only do it when inserting an `exactn' bytecode or when handling
92896         a char-range.
92897         (mutually_exclusive_p): Avoid empty statement.
92898
92899 2002-07-06  Jim Meyering  <meyering@lucent.com>
92900
92901         * m4/README: Don't mention Makefile.am.in.
92902         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92903
92904 2002-07-01  Jim Meyering  <meyering@lucent.com>
92905
92906         * lib/c-stack.c: Include sys/time.h.
92907         From Volker Borchert.
92908
92909 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92910
92911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92912
92913 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92914
92915         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92916         New macro.  Use it uniformly instead of
92917         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92918         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92919         reported by Vin Shelton.
92920
92921 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92922
92923         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92924         Do not assume SA_SIGINFO behavior.
92925         Bug reported by Jim Meyering on NetBSD 1.5.2.
92926
92927 2002-06-22  Jim Meyering  <meyering@lucent.com>
92928
92929         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92931
92932         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92933         now that configure.ac uses AC_GNU_SOURCE.
92934         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92935         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92936
92937         Update to latest tools.  Suggestions from Paul Eggert.
92938         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92939         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92940         * m4/fnmatch.m4: Likewise.
92941         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92942         to AC_HEADER_STDBOOL
92943
92944 2002-06-22  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92947         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92948
92949 2002-06-22  Jim Meyering  <meyering@lucent.com>
92950
92951         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92952
92953         * lib/exitfail.c, exitfail.h: Likewise.
92954         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92955
92956         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92957         of fnmatch.h.
92958         (EXTRA_DIST): Add fnmatch_loop.c.
92959         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92960
92961         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92962         * lib/fnmatch.c: Update from diffutils-2.8.2.
92963         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92964         * lib/fnmatch.h: Remove file.
92965
92966 2002-06-21  Jim Meyering  <meyering@lucent.com>
92967
92968         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92969         * m4/mbrtowc.m4: Likewise.
92970
92971         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92972         * m4/mbswidth.m4: Reflect name change:
92973         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92974         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92975
92976         * m4/lib-link.m4: Update from gettext-0.11.2.
92977         * m4/gettext.m4: Likewise.
92978
92979         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92980         From Alfred M. Szmidt.
92981
92982 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92983
92984         * lib/file-type.h: Report an error if neither S_ISREG nor
92985         S_IFREG is defined, instead of using a test specific to glibc
92986         2.2.  This should be safe, since POSIX requires S_ISREG and
92987         Unix Version 7 had S_IFREG.  We don't need to check for
92988         <sys/types.h> since we don't use any symbols that it defines.
92989
92990 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92991
92992         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92993         $@-t, so that each temporary file name is unique and valid in the first
92994         8 characters, for operation under DOS.
92995
92996 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92997
92998         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92999
93000 2002-06-15  Jim Meyering  <meyering@lucent.com>
93001
93002         Work even with DJGPP 2.03, which lacks support for symlinks.
93003         From Richard Dawe.
93004         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93005         is defined.
93006         * lib/lchown.c (S_ISLNK): Likewise.
93007
93008 2002-06-15  Jim Meyering  <meyering@lucent.com>
93009
93010         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93011         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93012         have been included before this file.
93013
93014 2002-06-14  Jim Meyering  <meyering@lucent.com>
93015
93016         * lib/file-type.h: Use the version from diffutils-2.8.2.
93017         * lib/file-type.c: Likewise.
93018
93019 2002-06-07  Jim Meyering  <meyering@lucent.com>
93020
93021         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93022         They're needed at least for NetBSD 1.5.2.
93023         ($statxfs_includes): Include those same headers.
93024         ($statxfs_includes): Include sys/vfs.h if available.
93025         ($statxfs_includes): Likewise for sys/statvfs.h.
93026         Check for the following members in both structs statfs and statvfs:
93027         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93028
93029 2002-06-01  Jim Meyering  <meyering@lucent.com>
93030
93031         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93032         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93033
93034 2002-05-28  Jim Meyering  <meyering@lucent.com>
93035
93036         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93037         Reported by Volker Borchert.
93038
93039 2002-05-27  Jim Meyering  <meyering@lucent.com>
93040
93041         Fix a problem seen only on nonconforming systems whereby ls.c's
93042         use of localtime, and then of gettimeofday would cause trouble:
93043         the localtime call used to initialize rpl_gettimeofday's save
93044         mechanism would clobber ls's current local time information so
93045         that in any long listing the first file would always be listed
93046         with date 1970-01-01.  Analysis by Volker Borchert.
93047
93048         * lib/gettimeofday.c (localtime): Undefine.
93049         (rpl_localtime): New function.
93050
93051 2002-05-27  Jim Meyering  <meyering@lucent.com>
93052
93053         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93054         localtime.
93055
93056         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93057         use the replacement function; it wouldn't resolve at link time.
93058         Reported by Volker Borchert.
93059
93060 2002-05-22  Jim Meyering  <meyering@lucent.com>
93061
93062         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93063         file-type.h.
93064         * lib/file-type.h: New file.
93065         * lib/file-type.c (file_type): New file/function.  Extracted from
93066         diffutils.
93067
93068 2002-04-30  Jim Meyering  <meyering@lucent.com>
93069
93070         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93071
93072 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93073
93074         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93075
93076 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93077
93078         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93079         Do not check for alloca.h (no longer used) or stdbool.h (was never
93080         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93081
93082 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93083
93084         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93085
93086 2002-04-29  Jim Meyering  <meyering@lucent.com>
93087
93088         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93089         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93090         Use AC_FUNC_STRNLEN here instead.
93091
93092         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93093         With autoconf-2.53a, it's part of AC_PROG_CC.
93094
93095 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93096
93097         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93098         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93099
93100 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93101
93102         * lib/sig2str.h, lib/sig2str.c: New files.
93103         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93104
93105 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93106
93107         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93108         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93109         of 127, since 64 is the largest conceivable number for ancient
93110         nonstandard hosts.
93111         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93112
93113 2002-04-28  Jim Meyering  <meyering@lucent.com>
93114
93115         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93116
93117 2002-04-24  Jim Meyering  <meyering@lucent.com>
93118
93119         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93120         (jm_PREREQ): Use it.
93121
93122         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93123         mach/mach.h fcntl.h.
93124         Check for this function: setlocale.
93125
93126 2002-04-24  Jim Meyering  <meyering@lucent.com>
93127
93128         * lib/gettext.h: New file, from Gettext.
93129         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93130         (libfetish_a_SOURCES): Add gettext.h.
93131
93132 2002-04-16  Jim Meyering  <meyering@lucent.com>
93133
93134         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93135         ut_pid, ut_id, ut_exit.
93136
93137 2002-04-16  Jim Meyering  <meyering@lucent.com>
93138
93139         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93140         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93141         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93142
93143 2002-04-12  Jim Meyering  <meyering@lucent.com>
93144
93145         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93146         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93147         existence of the getmntinfo function.  Needed for Darwin 5.3.
93148
93149         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93150         This is necessary at least on Darwin 5.3.
93151
93152         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93153         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93154         strnlen.o in the library, and that makes some versions of ranlib
93155         object.
93156
93157 2002-04-12  Jim Meyering  <meyering@lucent.com>
93158
93159         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93160
93161 2002-04-09  Jim Meyering  <meyering@lucent.com>
93162
93163         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93164         to be more precise.  Rather than saying we're checking whether the
93165         function `works', say what we're testing.
93166         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93167         Reported by Bruno Haible.
93168
93169 2002-03-10  Jim Meyering  <meyering@lucent.com>
93170
93171         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93172         Suggestion from Santiago Vila.
93173
93174 2002-03-08  Jim Meyering  <meyering@lucent.com>
93175
93176         * lib/rename.c: Mention that this wrapper is needed also on
93177         mips-dec-ultrix4.4 systems.
93178
93179 2002-03-02  Jim Meyering  <meyering@lucent.com>
93180
93181         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93182         not HAVE_CLOCK_SETTIME.
93183
93184 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93185
93186         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93187         Check for clock_settime.
93188
93189 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93190
93191         * lib/nanosleep.h: Rename to....
93192         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93193
93194         * lib/gettime.c: New file.
93195         * lib/settime.c: New file.
93196         * lib/stime.c: Remove.
93197
93198         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93199         timespec.h.  Remove nanosleep.h.
93200
93201 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93202
93203         * m4/acl.m4: New file.
93204         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93205         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93206
93207 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93208
93209         * lib/acl.c, lib/acl.h: New files.
93210         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93211
93212 2002-02-24  Jim Meyering  <meyering@lucent.com>
93213
93214         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93215         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93216         cause trouble.  Reported by Nelson Beebe.
93217
93218 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93219
93220         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93221         compilers that don't know that xalloc_die never returns.
93222
93223 2002-02-20  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/getdate.c: Regenerate using bison-1.33.
93226
93227 2002-02-17  Jim Meyering  <meyering@lucent.com>
93228
93229         * config/config.guess (main): Don't use `head -1'; it's no longer
93230         portable. Use `sed 1q' instead.
93231
93232 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93233
93234         * m4/codeset.m4: Upgrade to gettext-0.11.
93235         * m4/gettext.m4: Upgrade to gettext-0.11.
93236         * m4/glibc21.m4: Upgrade to gettext-0.11.
93237         * m4/iconv.m4: Upgrade to gettext-0.11.
93238         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93239         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93240         * m4/lib-ld.m4: New file, from gettext-0.11.
93241         * m4/lib-link.m4: New file, from gettext-0.11.
93242         * m4/lib-prefix.m4: New file, from gettext-0.11.
93243         * m4/progtest.m4: Upgrade to gettext-0.11.
93244
93245 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93246
93247         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93248         (jm_PREREQ): Use it.
93249
93250 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93251
93252         * lib/posixver.c, lib/posixver.h: New files.
93253         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93254
93255 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93256             Bruno Haible  <bruno@clisp.org>
93257
93258         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93259         (fwrite_success_callback): New declaration.
93260         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93261         print_unicode_char. Call failure callback instead of error.
93262         (fwrite_success_callback): New function.
93263         (exit_failure_callback): New function.
93264         (fallback_failure_callback): New function.
93265         (print_unicode_char): Call unicode_to_mb.
93266
93267 2002-01-26  Jim Meyering  <meyering@lucent.com>
93268
93269         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93270         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93271
93272 2002-01-26  Jim Meyering  <meyering@lucent.com>
93273
93274         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93275
93276 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93277
93278         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93279
93280 2002-01-22  Jim Meyering  <meyering@lucent.com>
93281
93282         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93283         Otherwise, some versions of automake would omit the rule that makes
93284         Makefile from Makefile.in.
93285
93286 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93287
93288         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93289         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93290         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93291         (memcoll): Set errno to zero if there is no error.
93292
93293         * lib/quotearg.c (quotearg_buffer_restyled):
93294         Fix bug with quoting buffers containing NUL when backslashing escapes.
93295         This bug was exposed by the other changes in this patch.
93296         (quotearg_n_options): New arg ARGSIZE.
93297         All callers changed.
93298         (quoting_options_from_style): New function.
93299         (quotearg_n_style): Use it.
93300         (quotearg_n_style_mem): New function.
93301
93302         * lib/quotearg.h (quotearg_n_style_mem): New function.
93303
93304 2002-01-19  Jim Meyering  <meyering@lucent.com>
93305
93306         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93307         Remove useless quotes: DF_PROG="df".
93308         * m4/strnlen.m4: New file.
93309
93310 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93311
93312         * lib/backupfile.c (ISDIGIT): Comment fix.
93313         * lib/getdate.y (ISDIGIT): Likewise.
93314         * lib/posixtm.c (ISDIGIT, year): Likewise.
93315         * lib/strverscmp.c (ISDIGIT): Likewise.
93316         * lib/userspec.c (ISDIGIT): Likewise.
93317
93318 2002-01-16  Jim Meyering  <meyering@lucent.com>
93319
93320         * lib/getdate.y: Add three semicolons, each just before a closing
93321         brace. Bison (as of version 1.31) no longer papers over that mistake.
93322
93323 2002-01-05  Jim Meyering  <meyering@lucent.com>
93324
93325         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93326
93327 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93328
93329         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93330         not silently exit merely because the output buffer happens to
93331         have nothing pending.
93332
93333 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93334
93335         See the big note in ../ChangeLog.
93336         * lib/human.c (suffixes): Prefer K to k for 1024.
93337         (generate_suffix_backwards): New function.
93338         (human_readable_inexact): Use it.
93339         * lib/xstrtol.c (__xstrtol): If there is no number but there
93340         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93341         Accept 'K' as well as 'k'.
93342
93343 2001-12-15  Jim Meyering  <meyering@lucent.com>
93344
93345         * lib/regex.h (__restrict_arr): Update from libc.
93346
93347         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93348         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93349         (STREQ): Define.
93350
93351 2001-12-14  Jim Meyering  <meyering@lucent.com>
93352
93353         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93354         Suggestion from Bruno Haible.
93355
93356 2001-12-10  Jim Meyering  <meyering@lucent.com>
93357
93358         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93359         xrealloc, Instead, include "xalloc.h".
93360         (initbuffer): Don't cast xmalloc return value to char*.
93361         (readline): Reword comment.
93362         Don't cast xrealloc return value to char*
93363         Return NULL, not 0.
93364
93365 2001-12-09  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93368         about `signed and unsigned type in conditional expression'.
93369         * lib/posixtm.c (posix_time_parse): Likewise.
93370
93371         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93372
93373         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93374         to avoid a pedantic warning.
93375
93376         * lib/getstr.c: Don't include assert.h.
93377         (getstr): Remove warning-evoking assertions.
93378         Return -1 if offset parameter is out of bounds.
93379         Change the type of a local from int to size_t.
93380
93381         * lib/strftime.c (my_strftime_localtime_r): Include this function
93382         definition in the `#if ! HAVE_TM_GMTOFF' block.
93383
93384         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93385         Include xalloc.h instead.
93386
93387 2001-12-02  Jim Meyering  <meyering@lucent.com>
93388
93389         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93390         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93391         included.
93392
93393         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93394         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93395
93396 2001-11-30  Akim Demaille  <akim@epita.fr>
93397
93398         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93399         before being defined.
93400
93401 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93402
93403         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93404         First arg is int, not unsigned.
93405         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93406         (SIZE_MAX, UINT_MAX): New macros.
93407         (quotearg_n_options): Abort if N is negative.
93408         Avoid overflow check on hosts where size_t is 64 bits and int
93409         is 32 bits, as overflow is impossible there.
93410         Fix off-by-one typo that caused unnecessary reallocation.
93411
93412 2001-11-27  Jim Meyering  <meyering@lucent.com>
93413
93414         * lib/tempname.c: Merge with version from libc.
93415         * lib/regex.c: Likewise.
93416
93417         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93418         systems for which STDC_HEADERS is 0, it was not included, resulting in
93419         a warning about an integer-to-pointer conversion problem with getenv.
93420         Reported by Volker Borchert.
93421
93422 2001-11-26  Jim Meyering  <meyering@lucent.com>
93423
93424         * lib/gtod.h: Remove file.
93425         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93426         * lib/gettimeofday.c: Don't include gtod.h.
93427         (GTOD_init): Remove function.
93428         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93429         Suggestion from Volker Borchert.
93430
93431 2001-11-23  Jim Meyering  <meyering@lucent.com>
93432
93433         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93434         it.
93435         * lib/hash.c (struct hash_table): Define it here instead.
93436
93437 2001-11-22  Jim Meyering  <meyering@lucent.com>
93438
93439         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93440
93441 2001-11-20  Jim Meyering  <meyering@lucent.com>
93442
93443         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93444         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93445
93446 2001-11-19  Jim Meyering  <meyering@lucent.com>
93447
93448         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93449         directory.  Use "conftestXXXXXX" as the template.
93450         Suggestion from Paul Eggert.
93451
93452         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93453         immediately, so the test doesn't mistakenly hit the max-open-files
93454         limit.
93455
93456 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93457
93458         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93459         (TEMPORARIES): New macro.
93460         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93461         removes an artificial limitation (e.g. HP-UX 10.20, where
93462         TMP_MAX is 17576).
93463
93464 2001-11-18  Jim Meyering  <meyering@lucent.com>
93465
93466         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93467
93468 2001-11-18  Jim Meyering  <meyering@lucent.com>
93469
93470         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93471         on SunOS 4.
93472
93473         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93474         files will be created before anything else.
93475
93476 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93477
93478         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93479         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93480
93481 2001-11-17  Jim Meyering  <meyering@lucent.com>
93482
93483         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93484         Prompted by a report from Bob Proulx.
93485
93486         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93487         Instead, require UTILS_FUNC_MKSTEMP.
93488
93489 2001-11-17  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93492         Now, that's done as part of AC_FUNC_STRTOD.
93493
93494 2001-11-17  Jim Meyering  <meyering@lucent.com>
93495
93496         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93497         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93498         rather than group writable.  Patch by Juan F. Codagnone.
93499
93500         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93501         xrealloc, Instead, include "xalloc.h".
93502
93503         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93504         Remove explicit declarations of xmalloc, xrealloc,
93505         and xstrdup.  Instead, include "xalloc.h".
93506
93507         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93508         unlocked-io.h.
93509         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93510         Likewise.
93511         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93512
93513         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93514         Reported by Padraig Brady.
93515
93516         * lib/mkstemp.c: #undef mkstemp.
93517         Include config.h.
93518         (rpl_mkstemp): Rename from mkstemp.
93519         Protoize.
93520
93521 2001-11-16  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93524         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93525         determine the amount of total physical memory, use pstat_getstatic.
93526         HPUX-11 doesn't define _SC_PHYS_PAGES.
93527         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93528         If sysconf couldn't be used to determine the amount of available
93529         physical memory, use both pstat_getstatic and pstat_getdynamic.
93530         Based on a patch from Bob Proulx.
93531
93532 2001-11-10  Jim Meyering  <meyering@lucent.com>
93533
93534         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93535         (jm_PREREQ): Use it.
93536
93537 2001-11-09  Jim Meyering  <meyering@lucent.com>
93538
93539         * m4/jm-macros.m4: Require autoconf-2.52f.
93540         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93541         Use these AC_-prefixed names, not the AM_-prefixed ones.
93542
93543         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93544
93545 2001-11-05  Jim Meyering  <meyering@lucent.com>
93546
93547         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93548
93549 2001-11-04  Jim Meyering  <meyering@lucent.com>
93550
93551         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93552         $DEFS.
93553
93554 2001-11-03  Jim Meyering  <meyering@lucent.com>
93555
93556         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93557         of AC_DEFUN.
93558
93559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93560         know the name of the variable in the macro definition.
93561
93562 2001-11-03  Jim Meyering  <meyering@lucent.com>
93563
93564         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93565         in argmatch_to_argument call.
93566
93567         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93568         argument.
93569
93570         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93571         e.g., a fault due to an attempt to free a NULL pointer.
93572
93573 2001-11-01  Jim Meyering  <meyering@lucent.com>
93574
93575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93576         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93577
93578 2001-11-01  Jim Meyering  <meyering@lucent.com>
93579
93580         * lib/dirfd.c, lib/dirfd.h: New files.
93581         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93582
93583         * lib/hash.c (hash_print) [TESTING]: Clean up.
93584
93585 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93586
93587         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93588         to avoid a warning if -Wall.
93589
93590 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93591
93592         * README: New file
93593         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93594         (per RMS's instructions, this is now the canonical source)
93595         * lgpl/, gpl/: New directories.
93596
93597 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93598
93599         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93600
93601 2001-10-21  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93604         this code would end up calling gettext even in packages built
93605         with --disable-nls.
93606         * lib/getopt.c (_): Likewise.
93607         * lib/regex.c (_): Likewise.
93608
93609 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93610
93611         * m4/error.m4 (jm_PREREQ_ERROR):
93612         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93613         AC_FUNC_STRERROR_R does that.
93614         Check for strerror declaration.
93615
93616         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93617         are supposed to have them these days.
93618         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93619         Merge changes from latest Autoconf CVS.
93620         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93621         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93622         POSIX decided to standardize on the int flavor of strerror_r.
93623
93624 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93625
93626         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93627         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93628         Use strerror_r that is only a macro, even if it is not a function.
93629         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93630         (private_strerror): Use prototypes, not old-style function definition.
93631         (print_errno_message): New function.
93632         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93633         char*-flavored one.
93634         (error_tail, error, error_at_line): Use it.
93635
93636 2001-10-11  Jim Meyering  <meyering@lucent.com>
93637
93638         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93639         and quote_n (1, ... to avoid clobbering a buffer.
93640
93641 2001-10-05  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93644         hash-pjw.h.
93645         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93646         * lib/hash-pjw.h: New file.
93647
93648 2001-09-30  Jim Meyering  <meyering@lucent.com>
93649
93650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93651         `struct fsstat' has the `f_fstypename' member.
93652         Use that to define FS_TYPE, which is now used to make
93653         the getfsstat link test tighter.
93654
93655 2001-09-30  Jim Meyering  <meyering@lucent.com>
93656
93657         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93658         Include <sys/ucred.h>, for Apple Darwin.
93659         Include sys/mount.h and sys/fs_types.h only if available.
93660         (FS_TYPE): Define.
93661         (read_filesystem_list): Use FS_TYPE.
93662
93663 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93664
93665         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93666         a boolean context.
93667
93668 2001-09-29  Jim Meyering  <meyering@lucent.com>
93669
93670         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93671         [one-argument getmntent function]): Include stdio.h before mntent.h.
93672         SunOS 4.1.x needs it for the declaration of `FILE'.
93673         Patch by Volker Borchert.
93674
93675         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93676         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93677         sys/fs_types.h, and make the link-test for getfsstat guard #include
93678         directives with appropriate #if HAVE_*_H tests so that we can
93679         detect getfsstat on Apple Darwin1.3.7 systems.
93680         Reported by Nelson Beebe.
93681         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93682
93683 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93684
93685         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93686         #defines strtoimax.  Also treat the other strto* functions
93687         like strtoimax.
93688
93689         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93690         Check for strtoul and strtoumax,
93691         as those declarations are made even in the signed case.
93692         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93693         Likewise, for strtol and strtoimax.
93694
93695 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93696
93697         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93698         #defines strtoimax.  Also treat the other strto* functions
93699         like strtoimax.
93700
93701         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93702         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93703         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93704
93705 2001-09-26  Jim Meyering  <meyering@lucent.com>
93706
93707         Most macros in unlocked-io.h had the wrong number of arguments.
93708         * lib/gen-uio: New script.
93709         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93710         * lib/unlocked-io.hin: Remove file.
93711         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93712         rather than trying to embed it here.
93713         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93714         Reported by Padraig Brady.
93715
93716 2001-09-25  Volker Borchert  <bt@teknon.de>
93717
93718         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93719         `result'.
93720
93721 2001-09-24  Jim Meyering  <meyering@lucent.com>
93722
93723         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93724
93725 2001-09-23  Jim Meyering  <meyering@lucent.com>
93726
93727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93728         instead of the mere test for existence of mntent.h.  The latter
93729         would get a false-positive on AIX 3.4 systems.
93730         In the outer getmntent if-block, don't die if neither of the getmntent
93731         tests succeeds.  Instead, just fall through and continue with the
93732         remaining tests.
93733
93734 2001-09-23  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/mountlist.c: Remove useless parentheses in #if directives.
93737         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93738         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93739
93740 2001-09-22  Jim Meyering  <meyering@lucent.com>
93741
93742         * m4/gettext.m4: New file.  From gettext.
93743         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93744         * m4/progtest.m4: Likewise
93745         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93746         * m4/glibc21.m4: Likewise.
93747
93748         * m4/libintl.m4: Remove.  No longer used.
93749
93750 2001-09-22  Jim Meyering  <meyering@lucent.com>
93751
93752         * lib/localcharset.c: Update from latest gettext.
93753         * lib/config.charset: Likewise.
93754
93755 2001-09-20  Jim Meyering  <meyering@lucent.com>
93756
93757         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93758         strtoimax.
93759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93760         strtoumax.
93761
93762 2001-09-20  Jim Meyering  <meyering@lucent.com>
93763
93764         * lib/xstrtol.c (strtoimax): Guard declaration with
93765         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93766         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93767         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93768         (strtoumax): Likewise, for completeness (it wasn't necessary).
93769
93770 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93771
93772         * lib/strtoimax.c (HAVE_LONG_LONG):
93773         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93774         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93775         to work around bug in IBM C compiler.
93776
93777 2001-09-17  Jim Meyering  <meyering@lucent.com>
93778
93779         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93780         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93781         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93782         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93783         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93784         whenever the right hand side need not be expanded by the shell.
93785
93786 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93787
93788         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93789         library.  It's not correct, as some older glibcs are buggy.
93790         fnmatch wasn't fixed until glibc 2.2.
93791
93792         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93793         special shell magic here.
93794
93795 2001-09-16  Jim Meyering  <meyering@lucent.com>
93796
93797         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93798         * m4/jm-macros.m4: Require it.
93799
93800 2001-09-16  Jim Meyering  <meyering@lucent.com>
93801
93802         * lib/mkdir.c: New file.
93803
93804 2001-09-15  Jim Meyering  <meyering@lucent.com>
93805
93806         * m4/jm-macros.m4: Check for help2man.
93807
93808 2001-09-11  Jim Meyering  <meyering@lucent.com>
93809
93810         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93811         The body, by Paul Eggert, was moved here from configure.in.
93812         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93813
93814 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93815
93816         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93817         (jm_PREREQ): Use it.
93818
93819 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93820
93821         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93822         Use ssize_t, not int, to store result of readlink.
93823         Check for ssize_t overflow as well as size_t overflow,
93824         as POSIX says the result of readlink is implementation-defined
93825         when ssize_t overflows.
93826         Remove unnecessary cast to char*.
93827         Use free+malloc instead of realloc, as the storage doesn't need
93828         to be preserved and it's clearer and can be more efficient that way.
93829         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93830         * lib/xreadlink.h (xreadlink): Update prototype.
93831
93832 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93833
93834         * lib/xgetcwd.c: Revert some of the previous change; intead,
93835         fix the HAVE_GETCWD_NULL code to behave more like the
93836         !HAVE_GETCWD_NULL code used to.
93837
93838         Include "xalloc.h".
93839         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93840         invoke xalloc_die.
93841
93842 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93843
93844         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93845         sys/param.h, as pathmax.h includes them.
93846
93847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93848
93849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93850         (jm_PREREQ_XGETCWD): New macro.
93851
93852         * m4/getcwd.m4: New file.
93853
93854 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93855
93856         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93857         like the HAVE_GETCWD_NULL code.
93858         Include pathmax.h if not HAVE_GETCWD.
93859         Do not include xalloc.h.
93860         (INITIAL_BUFFER_SIZE): New symbol.
93861         Do not use xmalloc / xrealloc, since the caller is responsible for
93862         handling errors.  Preserve errno around `free' during failure.
93863         Do not overrun buffer when using getwd.
93864
93865 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93866
93867         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93868         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93869         getcwd (NULL, 0).
93870
93871 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93872
93873         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93874         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93875         spotted by Jim Meyering.
93876
93877 2001-09-03  Jim Meyering  <meyering@lucent.com>
93878
93879         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93880         failure.
93881
93882 2001-09-02  Jim Meyering  <meyering@lucent.com>
93883
93884         * lib/error.c: Update from GNU libc.
93885
93886 2001-09-01  Jim Meyering  <meyering@lucent.com>
93887
93888         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93889         Used by df.
93890
93891 2001-09-01  Jim Meyering  <meyering@lucent.com>
93892
93893         * lib/xreadlink.c: New file.
93894         * lib/xreadlink.h: New file.
93895         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93896         xreadlink.h.
93897
93898         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93899         doesn't conflict with sparc Solaris 7's definition in
93900         /usr/include/sys/int_types.h.
93901
93902         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93903         files.
93904         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93905         and strncasecmp as r-values.  Unixware didn't have declarations.
93906
93907 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93908
93909         * lib/xstrtol.h: Add copyright notice.
93910         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93911         LONGINT_INVALID_SUFFIX_CHAR.
93912
93913 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93914
93915         * lib/xstrtol.c (strtoimax): New decl.
93916
93917 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93918
93919         * lib/xgetcwd.c: Don't include pathmax.h.
93920         Include stdlib.h and unistd.h if available.
93921         Include xalloc.h.
93922         (xmalloc, xstrdup, free): Remove decls.
93923         (xgetcwd): Don't assume sizes fit in unsigned.
93924         Check for overflow when computing sizes.
93925         Simplify reallocation code.
93926
93927 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93928
93929         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93930         a directory's st_size can have an arbitrary value, so the old
93931         usage could waste an arbitrary amount of memory.  All uses
93932         changed.
93933         * lib/savedir.h: Update prototype.
93934
93935 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93936
93937         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93938
93939         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93940         old strtoimax.c.
93941
93942         Also, make the following further changes to make this file's
93943         configuration more similar to that of strtol.c:
93944         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93945         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93946         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93947         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93948         changed to signed values.
93949
93950         And make the following changes as well:
93951         Fix copyright notice, as 1999 was missing.
93952         (verify): New macro.
93953         (strtoimax): Check sizes at compile-time, not run-time.
93954         Prefer strtol to strtoll if both work.
93955         (main): Remove; it was not that useful and was a pain to maintain.
93956
93957         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93958
93959 2001-08-31  Jim Meyering  <meyering@lucent.com>
93960
93961         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93962         Use an initial, malloc'd, buffer of length 128 rather than
93963         a statically allocated one of length 1024.
93964
93965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93966
93967         Simplify code, partly by assuming autoconf 2.52 semantics.
93968
93969         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93970
93971         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93972         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93973         All uses removed.
93974         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93975         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93976         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93977         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93978         jm_AC_HEADER_INTTYPES_H.
93979         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93980
93981         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93982
93983         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93984         Quote first arg of AC_DEFUN.
93985         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93986         since they are needed to parse the include file even if we need
93987         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93989         but with opposite signedness.
93990
93991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93992
93993         Merge 'exclude' changes from tar 1.13.22.
93994         This fixes one or two unlikely storage allocation overflow bugs,
93995         but doesn't change user-visible behavior otherwise.
93996
93997 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93998
93999         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94000         (jm_PREREQ_EXCLUDE): New macro.
94001
94002 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94003
94004         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94005         tm to be declared.
94006
94007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94008
94009         * lib/hash.c: Remove '2001' from copyright notice.
94010
94011 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94012
94013         * lib/full-write.h: New file.
94014         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94015         * lib/full-write.c: Correct credits, as cccp.c no longer
94016         exists and anyway it was so heavily changed from the old cccp
94017         code as to be unrecognizable.  Include full-write.h.
94018         (full_write): Return size_t, with short writes meaning failure.
94019         All callers changed.  This fixes a bug with large buffers
94020         on 64-bit hosts.
94021         * lib/utime.c: Include full-write.h.
94022
94023 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94024
94025         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94026         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94027         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94028         Include if available.
94029         (<xalloc.h>): Include
94030         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94031         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94032         collide with FNM macros.
94033         (struct patopts): New struct.
94034         (struct exclude): Use it, as exclude patterns now come with options.
94035         (new_exclude): Support above changes.
94036         (new_exclude, add_exclude_file):
94037         Initial size must now be a power of two to simplify overflow checking.
94038         (free_exclude, fnmatch_no_wildcards): New function.
94039         (excluded_filename): No longer requires options arg, as the options
94040         are determined by add_exclude.  Now returns bool, not int.
94041         (excluded_filename, add_exclude):
94042         Add support for the fancy new exclusion options.
94043         (add_exclude, add_exclude_file): Now takes int options arg.
94044         Check for arithmetic overflow when computing sizes.
94045         (add_exclude_file): xrealloc might modify errno, so don't
94046         realloc until after errno might be used.
94047
94048         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94049         New macros.
94050         (free_exclude): New decl.
94051         (add_exclude, add_exclude_file): Now takes int options arg.
94052         (excluded_filename): No longer requires options arg, as the options
94053         are determined by add_exclude.  Now returns bool, not int.
94054
94055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94056
94057         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94058
94059 2001-08-27  Jim Meyering  <meyering@lucent.com>
94060
94061         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94062
94063         * lib/version-etc.c (N_): Remove definition.
94064         Revert most of last change.
94065         Instead, simply don't mark the `Copyright...' string for translation.
94066         Based on advice from Paul Eggert.
94067
94068         * lib/strtoxmax.c: Tweak comment.
94069
94070 2001-08-26  Jim Meyering  <meyering@lucent.com>
94071
94072         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94073
94074         * m4/xstrtoimax.m4: New file.
94075         * m4/xstrtoumax.m4: Add comments explaining why we
94076         AC_REPLACE_FUNCS(strtol).
94077
94078 2001-08-26  Jim Meyering  <meyering@lucent.com>
94079
94080         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94081         of copyright with `%s' so translators don't get an untranslated
94082         message in 2002.
94083         (COPYRIGHT_YEAR): Define.
94084         (version_etc): Use fprintf rather than fputs.
94085         Suggestion from Ulrich Drepper.
94086
94087         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94088
94089         * lib/strtoll.c: New file, from GNU libc.
94090         * lib/xstrtoimax.c: New file.
94091
94092         * lib/xstrtol.h: Add xstrtoimax.
94093         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94094         * lib/strtoimax.c: New file.  Likewise, but first define
94095         STRTOUXMAX_SIGNED.
94096
94097         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94098         ...
94099         * lib/strtoxmax.c: ... then renamed to this.
94100
94101 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94102
94103         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94104         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94105         (jm_AC_TYPE_INTMAX_T): New macro.
94106         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94107
94108         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94109
94110         * m4/longlong.m4: Renamed from ulonglong.m4.
94111         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94112         * m4/uintmax_t.m4: Removed.
94113
94114 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94115
94116         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94117         Port to Solaris 8, where 'sed' requires a space after the 'r'
94118         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94119         Redirect output to $tmp just once.
94120
94121 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94122
94123         * lib/addext.c (<errno.h>): Include.
94124         (errno): Declare if not defined.
94125         (addext): Work correctly when pathconf returns -1 and leaves
94126         errno alone because there is no limit.  Also, work even if
94127         pathconf returns a value greater than SIZE_MAX.
94128
94129 2001-08-12  Jim Meyering  <meyering@lucent.com>
94130
94131         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94132         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94133         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94134         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94135         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94136         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94137         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94138         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94139         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94140         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94141         utime.m4, utimes.m4, xstrtoumax.m4:
94142         Quote the first argument in each use of AC_DEFUN.
94143
94144 2001-08-12  Jim Meyering  <meyering@lucent.com>
94145
94146         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94147         Simply `return getcwd (NULL, 0);'.
94148         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94149         Use 1300 as initial value for length, not PATH_MAX.
94150
94151         * lib/pathmax.h: Clean up cpp syntax.
94152
94153 2001-08-12  Jim Meyering  <meyering@lucent.com>
94154
94155         * lib/gettimeofday.c: New file.
94156         * lib/gtod.h: New file.
94157         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94158
94159 2001-08-05  Jim Meyering  <meyering@lucent.com>
94160
94161         * m4/jm-macros.m4: Require autoconf-2.52.
94162
94163 2001-08-04  Jim Meyering  <meyering@lucent.com>
94164
94165         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94166         stmt, to get in sync with glibc.
94167
94168 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94169
94170         The following changes are from gettext 0.10.39 as maintained by
94171         Bruno Haible.
94172
94173         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94174         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94175         with inverted sense.  All uses changed.
94176
94177         * lib/mbswidth.c: Don't include <limits.h>.
94178         Include <stdlib.h> and <string.h> unconditionally.
94179         (iswcntrl, mbsinit, ISCNTRL): New macros.
94180         (mbsnwidth): Use K&R style function declarations.
94181         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94182         can optimize it when MB_CUR_MAX == 1.
94183         The width of control characters is zero, not 1.
94184
94185 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94186
94187         The following changes are from gettext 0.10.39 as maintained by
94188         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94189
94190         * m4/codeset.m4: Upgrade to serial AM1.
94191         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94192         all uses changed.  Quote first arg of AC_DEFUN.
94193         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94194
94195         * m4/iconv.m4: Upgrade to serial AM2.
94196         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94197         Add --with-libconv-prefix.
94198         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94199         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94200         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94201         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94202         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94203
94204         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94205         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94206         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94207         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94208         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94209         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94210         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94211         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94212         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94213
94214         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94215         string.h any more.
94216
94217         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94218         not the default value.
94219
94220         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94221         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94222         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94223         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94224         Also check for iswcntrl, used for wcwidth fallback.
94225         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94226         to Autoconf 2.13.
94227
94228 2001-08-03  Jim Meyering  <meyering@lucent.com>
94229
94230         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94231         as it was in the original.  Reported by Paul Eggert.
94232
94233 2001-07-16  Jim Meyering  <meyering@lucent.com>
94234
94235         * m4/gettimeofday.m4: New file.
94236         Prompted by a report from Bernhard Baehr.
94237
94238 2001-07-15  Jim Meyering  <meyering@lucent.com>
94239
94240         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94241         stuff. Now it's in ../Makefile.cfg.
94242
94243 2001-07-15  Jim Meyering  <meyering@lucent.com>
94244
94245         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94246         (BUILT_SOURCES): Add unlocked-io.h.
94247         (io_functions): Define.
94248         (unlocked-io.h): New rule.
94249         (DISTCLEANFILES): Add unlocked-io.h.
94250         (all-local): Depend on unlocked-io.h, to ensure it is created.
94251
94252         * lib/unlocked-io.hin: New file
94253
94254         * lib/regex.c: Update from glibc.
94255
94256 2001-07-05  Jim Meyering  <meyering@lucent.com>
94257
94258         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94259         recommendation.
94260         (libfetish_a_SOURCES): Put all .h files here instead.
94261         Remove a thus-exposed (better checks in automake) duplicate and
94262         two unnecessary .h files.
94263
94264 2001-07-04  Jim Meyering  <meyering@lucent.com>
94265
94266         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94267         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94268         distcheck failure.
94269
94270 2001-07-02  Jim Meyering  <meyering@lucent.com>
94271
94272         The following changes were prompted by suggestions from Bruno Haible.
94273
94274         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94275         is now generated.
94276         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94277         definition of EXTRA_DIST.
94278         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94279         ensure that the generated file is created/updated whenever the list
94280         of $(unlocked_functions) is changed.
94281         (jm-glibc-io.m4): New rule.
94282         (unlocked-io.h): New rule -- currently unused.
94283
94284 2001-06-24  Jim Meyering  <meyering@lucent.com>
94285
94286         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94287         unmatched right bracket, rather than kludging it with an extra,
94288         falsely-matching quote in a comment.  Patch by Akim Demaille.
94289
94290 2001-06-11  Jim Meyering  <meyering@lucent.com>
94291
94292         * lib/regex.c: Update from GNU libc.
94293
94294 2001-05-27  Jim Meyering  <meyering@lucent.com>
94295
94296         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94297         Check for ut_type in struct utmp.
94298
94299 2001-05-27  Jim Meyering  <meyering@lucent.com>
94300
94301         * lib/readutmp.h (UT_TYPE): Define.
94302
94303 2001-05-24  Jim Meyering  <meyering@lucent.com>
94304
94305         * lib/argmatch.c: Include "quote.h".
94306         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94307         quote function.  Reported by Göran Uddeborg.
94308
94309 2001-05-22  Jim Meyering  <meyering@lucent.com>
94310
94311         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94312         now that we use the package-supplied version unconditionally.
94313         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94314
94315 2001-05-21  Jim Meyering  <meyering@lucent.com>
94316
94317         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94318         shell syntax errors.
94319
94320 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94321
94322         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94323
94324 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94325
94326         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94327         Don't bother to check library strftime, since
94328         we'll be using our own my_strftime function anyway.
94329         Define my_strftime instead of strftime.
94330
94331 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94332
94333         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94334         which is not yet declared.
94335
94336 2001-05-15  Jim Meyering  <meyering@lucent.com>
94337
94338         * m4/regex.m4: Use proper quoting so brackets appear in the test
94339         program.
94340         Reported by, and with help from, Bruno Haible.
94341
94342 2001-05-13  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94345         undefined.
94346
94347 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94348
94349         dirname code cleanup.  base_name now behaves more compatibly
94350         with POSIX basename when given file names that have trailing
94351         slashes, and similarly for dir_name.  Add new primitives
94352         base_len and dir_len.  Put the directory-name-related decls
94353         into dirname.h.
94354
94355         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94356         * lib/backupfile.c (base_name): Likewise.
94357         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94358         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94359         * lib/makepath.c (strip_trailing_slashes): Likewise.
94360         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94361         ISSLASH): Likewise.
94362         * lib/rename.c (strip_trailing_slashes): Likewise.
94363         * lib/same.c (base_name): Likewise.
94364         * lib/stripslash.c (ISSLASH): Likewise.
94365
94366         * lib/addext.c: Include <dirname.h> after size_t is defined.
94367         * lib/backupfile.c: Likewise.
94368
94369         * lib/addext.c (addext): Use base_len to trim redundant
94370         trailing slashes instead of doing it ourselves.
94371         But do not trim the last slash if it is not redundant.
94372
94373         * lib/backupfile.c (find_backup_file_name,
94374         max_backup_version): Use base_len instead of rolling it ourselves.
94375         Handle the case of "" and (on DOS) "C:" correctly.
94376
94377         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94378         needed. Include <string.h>, <dirname.h>.
94379         (base_name): Allow file names ending in slashes, other than names
94380         that are all slashes.  In this case, return the basename followed
94381         by the slashes.  This is more general, and can be used in places
94382         where the original base_name purposely had an assertion failure.
94383         (base_len): New function.
94384
94385         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94386         Do not include <assert.h>; no longer needed.
94387         Include xalloc.h.
94388         (memrchr): Remove decl.
94389         (dir_name_r): Remove.
94390         (dir_len): Renamed from dirlen.  All callers changed.
94391         Rewrite in terms of base_name, for simplicity and consistency.
94392         (dir_name): Never return NULL.  All callers changed.
94393         Do not include <stdlib.h> in test program; no longer needed.
94394         return 0; is fine for test program.
94395
94396         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94397         New macros.
94398         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94399
94400         * lib/path-concat.c (path_concat): Use base_len to compute
94401         base length, not strlen; this means we cannot rely on memcpy
94402         to null-terminate.
94403
94404         * lib/same.c (STREQ): Remove.
94405         (same_name): Handle the case where the basename ends in trailing '/'.
94406
94407         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94408         a slash was stripped.  Do not strip the last slash after a
94409         file system prefix.
94410
94411 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94412
94413         * lib/Makefile.am (libfetish_a_SOURCES):
94414         Add strftime.c, since we now compile it on all hosts.
94415
94416         * lib/strftime.c (my_strftime):
94417         Define to nstrftime if emacs, but only if my_strftime is not defined.
94418         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94419         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94420         Add one more extra argument: a nanoseconds value.
94421         All uses changed.
94422         (ns): New macro.
94423         (my_strftime function): Add %N format.
94424         (emacs_strftimeu): Renamed from emacs_strftime,
94425         with extra ut argument.
94426
94427 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94428
94429         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94430
94431 2001-04-21  Jim Meyering  <meyering@lucent.com>
94432
94433         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94434         doesn't interfere.
94435
94436 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94437
94438         * m4/ftruncate.m4: Check for chsize.
94439         Link with ftruncate.o unconditionally if ftruncate is missing.
94440         This was required when cross-compiling to i586-mingw32msvc.
94441
94442 2001-04-08  Jim Meyering  <meyering@lucent.com>
94443
94444         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94445         recomputed; that's necessary when the offset spans a DST transition.
94446         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94447
94448 2001-04-02  Jim Meyering  <meyering@lucent.com>
94449
94450         * lib/regex.h, regex.c: Update from GNU libc.
94451
94452 2001-03-24  Jim Meyering  <meyering@lucent.com>
94453
94454         * m4/jm-macros.m4: Require autoconf-2.49d.
94455
94456 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94457
94458         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94459
94460 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94461
94462         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94463
94464 2001-03-17  Jim Meyering  <meyering@lucent.com>
94465
94466         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94467         now that the version in autoconf is equivalent.
94468         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94469
94470         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94471         Suggestion from Akim Demaille.
94472
94473         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94474         (jm_PREREQ_TEMPNAME): New function.
94475
94476 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94477
94478         * lib/tempname.c (uint64_t): Define to uintmax_t if
94479         not defined, and if UINT64_MAX is not defined.
94480         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94481         Reported by John David Anglin.
94482
94483 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94484
94485         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94486         resolve alias if codeset is empty.
94487         * lib/config.charset (BeOS): Use wildcard syntax.
94488
94489 2001-03-13  Jim Meyering  <meyering@lucent.com>
94490
94491         * lib/path-concat.c (path_concat)
94492         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94493         concatenating e.g., `C:' and `foo'.
94494         From Bruno Haible.
94495
94496 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94497
94498         * lib/localcharset.c (locale_charset): Don't use
94499         setlocale(LC_CTYPE,NULL). Don't return NULL.
94500         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94501
94502 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94503
94504         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94505         support for DOS/DJGPP.
94506
94507 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94508
94509         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94510         lacks mkstemp.  Compile our own tempname.c if we compile our own
94511         mkstemp.c, as mkstemp relies on tempname.
94512
94513 2001-03-01  Jim Meyering  <meyering@lucent.com>
94514
94515         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94516         AH_VERBATIM really does output its argument verbatim.
94517
94518 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94519
94520         * lib/Makefile.am (libfetish_a_SOURCES):
94521         Add dup-safer.c, fopen-safer.c.
94522         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94523
94524         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94525         * lib/unistd-safer.h: New files.
94526
94527 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94528
94529         The mkstemp replacement is taken from glibc 2.2.2, with some
94530         portability fixes for use outside glibc, as follows:
94531
94532         * lib/tempname.c (struct_stat64): New macro.
94533         (direxists, __gen_tempname): Use it.
94534         This avoids a portability problem with Solaris 8.
94535
94536         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94537         (<stddef.h>, <stdint.h>, <string.h>):
94538         Include only if STDC_HEADERS || _LIBC.
94539         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94540         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94541         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94542         (__set_errno): Define this macro if <errno.h> doesn't.
94543         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94544         Define these macros if <stdio.h> doesn't.
94545         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94546         Define these macros if <sys/stat.h>
94547         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94548         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94549         __xstat64): Define if not _LIBC.
94550         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94551         (__gen_tempname): Invoke gettimeofday only if
94552         HAVE_GETTIMEOFDAY || _LIBC;
94553         otherwise, fall back on plain "time".
94554         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94555
94556         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94557
94558         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94559
94560 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94561
94562         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94563
94564 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94565
94566         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94567         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94568         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94569         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94570
94571 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94572
94573         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94574         Remove workaround macros for hosts that have mbrtowc but not
94575         mbstate_t, as we now insist on proper declarations for both
94576         before using mbrtowc.
94577
94578 2001-02-17  Jim Meyering  <meyering@lucent.com>
94579
94580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94581         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94582         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94583         UnixWare 7.1.1.
94584
94585         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94586         rather than AC_CACHE_VAL.
94587
94588 2001-02-17  Jim Meyering  <meyering@lucent.com>
94589
94590         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94591         around included file name.
94592
94593         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94594
94595         * lib/strftime.c: Update from GNU libc (the only changes were to
94596         comments).
94597
94598 2001-02-17  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/regex.c: Update from libc.
94601
94602 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94603
94604         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94605         clash.
94606
94607 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94608
94609         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94610         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94611         Reported by Mark Hounschell via Paul Eggert.
94612
94613 2001-02-07  Jim Meyering  <meyering@lucent.com>
94614
94615         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94616
94617 2001-02-05  Jim Meyering  <meyering@lucent.com>
94618
94619         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94620         it includes the patch required for `large file' support with at least
94621         HP-UX's 10.20 /bin/cc.
94622
94623 2001-02-03  Jim Meyering  <meyering@lucent.com>
94624
94625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94626         AS_IF, now that it works once again (mysteriously).
94627         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94628
94629 2001-01-30  Jim Meyering  <meyering@lucent.com>
94630
94631         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94632         * m4/chown.m4: Rename conftestchown to conftest.chown.
94633         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94634         s/conftestdir2/conftest.d2/.
94635         * m4/utimes.m4: s/conftestdata/conftest.data/
94636         Inspired by Pavel Roskin's change in autoconf.
94637
94638 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94639
94640         * lib/config.charset: Update for FreeBSD 4.2.
94641
94642 2001-01-27  Jim Meyering  <meyering@lucent.com>
94643
94644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94645         a use of AS_IF.
94646         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94647
94648 2001-01-26  Jim Meyering  <meyering@lucent.com>
94649
94650         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94651         quotearg.c includes it.
94652
94653 2001-01-26  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/quotearg.c: Include stddef.h.
94656         * lib/quote.c: Include stddef.h.
94657         Reported by Axel Kittenberger.
94658
94659         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94660         line in double quotes so that it evokes a better diagnostic.
94661         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94662         Reported by Axel Kittenberger.
94663
94664 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94665
94666         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94667         as if it was a `charset'.
94668
94669 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94670
94671         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94672         has const.
94673
94674 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94675
94676         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94677         to avoid a warning.  Add back 'const' to inptr.
94678
94679 2001-01-20  Jim Meyering  <meyering@lucent.com>
94680
94681         Be sure that headers are checked before used in code compiled
94682         for the type checks.
94683         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94684         In place of that, invoke jm_CHECK_ALL_TYPES.
94685         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94686         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94687         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94688         The check for ssize_t was mistakenly run before the test for unistd.h.
94689
94690         The configure-time check for stdbool.h was missing.
94691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94692         (jm_PREREQ_HASH): New function.
94693
94694 2001-01-17  Jim Meyering  <meyering@lucent.com>
94695
94696         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94697         for autoconf-2.49c.
94698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94699
94700 2001-01-16  Jim Meyering  <meyering@lucent.com>
94701
94702         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94703         From Bruno Haible.
94704
94705 2001-01-14  Jim Meyering  <meyering@lucent.com>
94706
94707         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94708         foo and bar.  Create conftestdir/ in the script, not in the C code.
94709         Remove directories in the script, not in the C code.
94710         Remove conftestdir{,2} before trying to create the directory.
94711         Make the entire configure script fail if the mkdir fails.
94712
94713 2001-01-14  Jim Meyering  <meyering@lucent.com>
94714
94715         * lib/rename.c: New file.  From Volker Borchert.
94716         Include stdlib.h, string.h or strings.h, and xalloc.h.
94717         Use strip_trailing_slashes rather than open-coding it.
94718
94719 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94720
94721         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94722
94723 2001-01-03  Jim Meyering  <meyering@lucent.com>
94724
94725         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94726         of local `inptr' to avoid warning with some system declarations of
94727         iconv.
94728
94729 2001-01-02  Volker Borchert  <bt@teknon.de>
94730
94731         * m4/rename.m4: New file.
94732         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94733
94734 2001-01-01  Jim Meyering  <meyering@lucent.com>
94735
94736         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94737         even on systems with utmpx.h.  It's necessary for the declaration of
94738         utmp's ut_user member.  Reported by Andreas Jaeger.
94739
94740         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94741         available. They are required for the declarations of getgrgid and
94742         getpwuid resp.
94743         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94744         Reported by Andreas Jaeger.
94745
94746 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94747
94748         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94749         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94750         so `make install' also works in VPATH builds.
94751
94752 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94753
94754         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94755         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94756         can be used in subdirectories.
94757
94758 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94759
94760         * lib/modechange.c: Do not assume that mode_t uses the
94761         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94762         the other-execute bit of FOO even if S_IXOTH != 1.
94763
94764         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94765         WOTH, XOTH, ALLM): New macros.
94766         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94767          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94768         Use them.
94769         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94770         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94771         (mode_compile):
94772         No need to use uintmax_t; unsigned long is long enough.
94773         Don't bother to get suffix since we don't use it.
94774
94775 2000-12-26  Jim Meyering  <meyering@lucent.com>
94776
94777         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94778         better with autoheader.
94779
94780 2000-12-24  Jim Meyering  <meyering@lucent.com>
94781
94782         * lib/hash.c (is_prime): Return explicit boolean values.
94783         (hash_get_first): Return NULL to appease Irix5.6's 89.
94784         Reported by Nelson Beebe.
94785
94786 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94787
94788         * lib/localcharset.c (locale_charset): Add support for Win32.
94789
94790 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94791
94792         * lib/physmem.h, lib/physmem.c: New files.
94793
94794         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94795         (noinst_HEADERS): Add physmem.h.
94796
94797         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94798         't' for compatibility with Solaris 8 sort.
94799
94800 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94801
94802         * lib/config.charset: Add support for BeOS.
94803
94804 2000-12-17  Jim Meyering  <meyering@lucent.com>
94805
94806         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94807         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94808
94809 2000-12-16  Jim Meyering  <meyering@lucent.com>
94810
94811         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94812         N and M) would have treated it like `chown N:N FILE'.
94813
94814         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94815
94816 2000-12-16  Jim Meyering  <meyering@lucent.com>
94817
94818         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94819         SHELLS_FILE to a file name that's useful on djgpp systems.
94820         Include stdlib.h.
94821         (ADDITIONAL_DEFAULT_SHELLS): Define.
94822         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94823         Based mostly on a patch from Prashant TR.
94824
94825 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94826
94827         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94828         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94829         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94830
94831 2000-12-08  Andreas Schwab  <schwab@suse.de>
94832
94833         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94834         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94835
94836 2000-12-07  Jim Meyering  <meyering@lucent.com>
94837
94838         * lib/stripslash.c (ISSLASH): Define.
94839         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94840         `/'.
94841         From Prashant TR.
94842
94843         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94844         (dir_name_r): Declare this function as static.
94845         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94846         manifest itself on a name containing a mix of slashes and
94847         backslashes.
94848         Make this function work with names starting with a DOS-style
94849         drive letter and colon prefix.
94850         (dir_name): Append `.' if necessary.
94851         Based mostly on patches from Prashant TR and Eli Zaretskii.
94852
94853         * lib/dirname.h (dir_name_r): Remove prototype.
94854
94855 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94856
94857         * m4/off_t-format.m4: Remove this file.
94858         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94859
94860 2000-12-06  Jim Meyering  <meyering@lucent.com>
94861
94862         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94863         replacement strtoull, we may well need the replacement strtoul, too.
94864         Check for declarations of strtoul and strtoull.
94865         Check for strtol.  Mainly as a cue to cause automake to include
94866         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94867         Check for limits.h -- strtol.c needs it.
94868
94869 2000-12-05  Jim Meyering  <meyering@lucent.com>
94870
94871         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94872
94873 2000-12-04  Jim Meyering  <meyering@lucent.com>
94874
94875         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94876         Also include memory.h, stdlib.h, unistd.h if appropriate.
94877         Reported by Andreas Jaeger (conflicting declaration of malloc).
94878
94879 2000-12-02  Jim Meyering  <meyering@lucent.com>
94880
94881         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94882         * m4/jm-macros.m4 (jm_MACROS): require it.
94883
94884 2000-12-02  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94887
94888 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94889
94890         * lib/memrchr.c: Include <config.h> before any system include file.
94891
94892 2000-11-30  Jim Meyering  <meyering@lucent.com>
94893
94894         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94895
94896 2000-11-30  Jim Meyering  <meyering@lucent.com>
94897
94898         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94899
94900 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94901
94902         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94903
94904 2000-11-26  Jim Meyering  <meyering@lucent.com>
94905
94906         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94907
94908 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94909
94910         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94911         size of (size_t) -1; it's not portable.
94912
94913 2000-11-17  Jim Meyering  <meyering@lucent.com>
94914
94915         * lib/strstr.c: Update from GNU libc.
94916
94917 2000-11-17  Akim Demaille  <akim@epita.fr>
94918
94919         * lib/obstack.h: Formatting changes.
94920         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94921         prevent type checking.
94922         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94923         cast the value to (void *): assigning a `foo *' to a `void *'
94924         variable is valid.
94925         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94926
94927 2000-11-16  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94930
94931 2000-11-11  Jim Meyering  <meyering@lucent.com>
94932
94933         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94934
94935 2000-11-10  Jim Meyering  <meyering@lucent.com>
94936
94937         * lib/obstack.h: Update from GNU libc.
94938         * lib/obstack.c: Likewise.
94939
94940 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94941
94942         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94943
94944 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94945
94946         * lib/getusershell.c (setusershell): Use rewind rather than
94947         fseek/fseeko, to avoid configuration hassles with fseeko.
94948         Don't bother opening SHELLS_FILE if shellstream is NULL;
94949         it's not necessary.
94950
94951 2000-11-05  Jim Meyering  <meyering@lucent.com>
94952
94953         * lib/makepath.h (make_dir): Declare.
94954         * lib/makepath.c (make_dir): Remove `static' attribute.
94955         Tweak a comment.
94956
94957 2000-11-04  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94960
94961 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94962
94963         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94964         last one in a bucket, advance to the next bucket.
94965
94966 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94967
94968         * lib/fnmatch.c: Do not comment out all the code if we are using
94969         the GNU C library, because in some cases we are replacing buggy
94970         code in the GNU C library itself.
94971
94972 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94973
94974         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94975         (regex_compile): Catch bogus \(\1\).
94976
94977 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94978
94979         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94980         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94981         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94982
94983 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94984
94985         * lib/error.h, getline.h, modechange.h:
94986         Remove "2000" from Copyright line, as the file hasn't been
94987         changed this year other than in the copyright notice.
94988
94989         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94990         was changed this year.
94991
94992 2000-10-29  Jim Meyering  <meyering@lucent.com>
94993
94994         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94995         renaming.
94996         * m4/ls-mntd-fs.m4: Likewise
94997
94998 2000-10-29  Jim Meyering  <meyering@lucent.com>
94999
95000         * lib/xstat.in: Fix grammar in comment.
95001
95002 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95003
95004         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95005         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95006         doesn't define __restrict_arr.
95007
95008 2000-10-28  Jim Meyering  <meyering@lucent.com>
95009
95010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95011         (jm_PREREQ_MEMCHR): New function.
95012
95013 2000-10-28  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/memchr.c: Update from libc.
95016         Adjust for portability:
95017         [HAVE_STDLIB_H]: Include stdlib.h.
95018         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95019         Undef __memchr, too.
95020         [!weak_alias]: Define __memchr to memchr.
95021
95022         * lib/regex.c: Update from libc.
95023         * lib/regex.h: Likewise.
95024         * lib/getopt1.c: Likewise.
95025         * lib/memcmp.c: Likewise.
95026
95027         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95028         Avoid using fseek, when possible -- it's broken by design.
95029         Patch by Ulrich Drepper.
95030
95031 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95032
95033         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95034         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95035         Giving in to popular pressure to shut up the compiler with casts.
95036
95037 2000-10-26  Jim Meyering  <meyering@lucent.com>
95038
95039         * lib/strftime.c: Update from libc.
95040
95041 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95042
95043         * regex.c: More `unsigned char' -> `re_char' changes.
95044         Also change several `int' into `re_wchar_t'.
95045         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95046         (PUSH_FAILURE_POINTER): Don't cast any more.
95047         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95048         We want GCC to complain, since this piece of code makes
95049         re_match non-reentrant, which *should* be fixed.
95050         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95051         (EXTEND_BUFFER): Use RETALLOC.
95052         (SET_LIST_BIT): Don't cast.
95053         (re_wchar_t): New type.
95054         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95055         that those two functions will always properly return.
95056         (IMMEDIATE_QUIT_CHECK): Cast to void.
95057         (analyse_first): Use recursion rather than an explicit stack.
95058         (re_compile_fastmap): Can't fail anymore.
95059         (re_search_2): Don't check re_compile_fastmap for failure.
95060         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95061         Now also sets the new value (passed in a new argument).
95062         (re_match_2_internal): Use it.
95063         Also, use a new var `reg' of type size_t when looping through regs
95064         rather than reuse the inappropriate `mcnt'.
95065
95066 2000-10-25  Jim Meyering  <meyering@lucent.com>
95067
95068         * lib/obstack.c: Update from libc.
95069
95070 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95071
95072         * regex.c (regex_compile): Change the way of handling a range from
95073         a char less than 256 to a char not less than 256.
95074
95075 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95076
95077         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95078         NT-Emacs only.
95079         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95080         so that re_search functions only quit when callers expect them to.
95081
95082 2000-10-23  Jim Meyering  <meyering@lucent.com>
95083
95084         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95085         wrong.  That set_locale call must not have any side effects.
95086         From Paul Eggert.
95087
95088 2000-10-22  Jim Meyering  <meyering@lucent.com>
95089
95090         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95091         [CYCLIC]: Remove now-unused definition.
95092
95093         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95094         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95095         Suggestion from Ulrich Drepper.
95096
95097 2000-10-21  Jim Meyering  <meyering@lucent.com>
95098
95099         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95100         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95101         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95102
95103 2000-10-21  Jim Meyering  <meyering@lucent.com>
95104
95105         * lib/dirname.c (memrchr): Declare if necessary.
95106         (dir_name): Remove the restriction that there be no
95107         trailing slashes.  Now, this code skips past them, effectively
95108         ignoring them.
95109         [TEST_DIRNAME] (main): New unit tests.
95110
95111         * lib/memrchr.c: New file from GNU libc.
95112         Undef __memrchr, too.
95113         [!weak_alias]: Define __memrchr to memrchr.
95114         Guard weak_alias use with `#ifdef weak_alias'.
95115
95116 2000-10-21  Jim Meyering  <meyering@lucent.com>
95117
95118         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95119         (dir_name): Use dir_name_r.
95120         * lib/dirname.h (dir_name_r): Declare it.
95121
95122 2000-10-17  Jim Meyering  <meyering@lucent.com>
95123
95124         * lib/quote.h (PARAMS): Define and use.
95125         Reported by Akim Demaille.
95126
95127         * lib/getopt.c: Update from libc.
95128
95129 2000-10-16  Jim Meyering  <meyering@lucent.com>
95130
95131         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95132         setlocale.
95133         From Jan Fedak.
95134
95135 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95136
95137         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95138
95139 2000-09-25  Jim Meyering  <meyering@lucent.com>
95140
95141         * lib/md5.h (rol): Define (from GnuPG).
95142
95143         * lib/sha.c: Give credit (GnuPG) where due.
95144         (M): Use rol rather than open-coding it.
95145         Add a FIXME comment.
95146
95147 2000-09-21  Jim Meyering  <meyering@lucent.com>
95148
95149         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95150         Reported by Michael Stone.
95151
95152 2000-09-20  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95155         (noinst_HEADERS): Add sha.h.
95156         Based on code from Scott G. Miller and from GnuPG.
95157
95158 2000-09-18  Jim Meyering  <meyering@lucent.com>
95159
95160         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95161         LIBS. Otherwise, everyone ends up linking with -lelf for some
95162         configurations.
95163         Reported by Mike Stone.
95164
95165 2000-09-15  Jim Meyering  <meyering@lucent.com>
95166
95167         * lib/regex.c: Update from libc.
95168
95169 2000-09-10  Jim Meyering  <meyering@lucent.com>
95170
95171         * lib/getopt.c (_getopt_internal): Update from glibc.
95172
95173 2000-09-09  Jim Meyering  <meyering@lucent.com>
95174
95175         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95176         think it should be used as a general replacement for isascii.
95177         * lib/fnmatch.c: Likewise.
95178         * lib/mbswidth.c: Likewise
95179         * lib/regex.c: Likewise.
95180
95181         Don't use atoi.
95182         * lib/userspec.c: Include sys/param.h and limits.h.
95183         Include xstrtol.h.
95184         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95185         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95186         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95187         UID, GID.  Check range.
95188
95189 2000-09-06  Jim Meyering  <meyering@lucent.com>
95190
95191         * lib/getopt.c (_getopt_internal): Update from glibc.
95192
95193 2000-08-30  Jim Meyering  <meyering@lucent.com>
95194
95195         * lib/strftime.c: Merge in changes from GNU libc.
95196
95197 2000-08-26  Jim Meyering  <meyering@lucent.com>
95198
95199         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95200         * m4/fpending.m4: New file.
95201
95202 2000-08-26  Jim Meyering  <meyering@lucent.com>
95203
95204         * lib/closeout.c: Include "__fpending.h".
95205         (close_stdout_status): Return right away if there's nothing to flush.
95206
95207         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95208         * lib/__fpending.c: New file.
95209         * lib/__fpending.h: New file.
95210
95211 2000-08-20  Jim Meyering  <meyering@lucent.com>
95212
95213         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95214         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95215         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95216
95217 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95218
95219         Improve fileutils installation on systems where running
95220         programs (like install) can't be unlinked.
95221         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95222         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95223
95224 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95225
95226         Standardize on "memory exhausted" instead of "Memory exhausted"
95227         or "virtual memory exhausted".
95228         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95229         "virtual memory exhausted".
95230         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95231         our own message.
95232         * lib/userspec.c (parse_user_spec): Likewise.
95233         * lib/bumpalloc.h: comment fix
95234         * lib/same.c, userspec.c: Include xalloc.h.
95235
95236         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95237         not char *const and pointing to a constant array.
95238         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95239         (xrealloc): Comment fix.
95240
95241         * lib/userspec.c (parse_user_spec):
95242         Don't translate a message until just before returning,
95243         to avoid unnecessary translation.
95244
95245 2000-08-07  Jim Meyering  <meyering@lucent.com>
95246
95247         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95248         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95249         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95250         getgroups.c, gethostname.c, getopt.h, group-member.c,
95251         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95252         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95253         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95254         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95255         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95256         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95257         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95258         yesno.c: Back out Copyright date changes for each file with no change
95259         this year.  This eases coordination with other programs using the same
95260         source code modules.  From Paul Eggert.
95261
95262 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95265         not char, for compatibility with glibc 2.1.3 strftime.c.
95266
95267 2000-08-03  Greg McGary  <greg@mcgary.org>
95268
95269         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95270         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95271         (EXTEND_BUFFER): Use them.
95272
95273 2000-08-01  Jim Meyering  <meyering@lucent.com>
95274
95275         * lib/dirname.c (ISSLASH): Define.
95276         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95277         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95278         both `\' and `/' may be use as path separators.
95279         Based on a patch from Prashant TR.
95280
95281 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95282
95283         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95284         slot vector a constant, since it might get modified.
95285
95286 2000-07-31  Jim Meyering  <meyering@lucent.com>
95287
95288         * lib/xmalloc.c: Use `virtual memory exhausted', not
95289         `Memory exhausted'.
95290         * lib/obstack.c (print_and_abort): Likewise.
95291
95292 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95293
95294         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95295         buffer, so that the caller can always quote one small
95296         component of a "memory exhausted" message in slot 0.
95297         From a suggestion by Jim Meyering.
95298
95299 2000-07-30  Jim Meyering  <meyering@lucent.com>
95300
95301         * lib/makepath.c (make_path): Quote the other instance, too.
95302
95303         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95304         (STATIC_BUF_SIZE): Define.
95305         (quotearg_n_options): Use only statically allocated storage when
95306         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95307         than STATIC_BUF_SIZE.
95308
95309 2000-07-29  Jim Meyering  <meyering@lucent.com>
95310
95311         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95312         * lib/dirname.c (dir_name): Likewise.
95313
95314         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95315         `/'.
95316
95317         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95318         (dir_name): Assert that there are no trailing slashes.
95319
95320 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95321
95322         * lib/mbswidth.h (mbswidth): Add a flags argument.
95323         (mbswidth): New declaration.
95324         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95325         * lib/mbswidth.c (mbswidth): Add a flags argument.
95326         (mbsnwidth): New function.
95327
95328 2000-07-24  Jim Meyering  <meyering@lucent.com>
95329
95330         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95331
95332 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95333
95334         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95335
95336 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95337
95338         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95339         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95340         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95341         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95342         invoke multibyte primitives.
95343
95344 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95345
95346         * lib/quotearg.c:
95347         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95348         so that mbstate_t is always defined.
95349
95350         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95351         be 1 in at least one GCC installation, and this configuration
95352         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95353         performance on hosts that have mbrtowc but have only unibyte
95354         locales, but I assume these hosts are rare.
95355
95356 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95357
95358         * lib/mbswidth.c (_XOPEN_SOURCE):
95359         Don't define; this causes problems on Solaris 7.
95360         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95361
95362 2000-07-23  Jim Meyering  <meyering@lucent.com>
95363
95364         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95365         too: getgrgid, getpwuid, getuid.
95366
95367 2000-07-23  Jim Meyering  <meyering@lucent.com>
95368
95369         * lib/basename.c (base_name): Add an assertion.
95370
95371 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95372
95373         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95374         shadow its mbsinit function.
95375
95376 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95377
95378         * lib/mbswidth.h: New file.
95379         * lib/mbswidth.c: New file.
95380         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95381         (noinst_HEADERS): Add mbswidth.h.
95382
95383 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95384
95385         * lib/config.charset: Add support for FreeBSD. Improve support for
95386         HP-UX and IRIX 6.
95387
95388 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95389
95390         * m4/mbswidth.m4: New file.
95391         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95392
95393 2000-07-15  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/makepath.c: Include quote.h.
95396         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95397         corresponding argument in a `quote (...)' call.
95398         Give better diagnostics.
95399
95400         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95401         (noinst_HEADERS): Add quote.h.
95402
95403         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95404         from tar's src/misc.c.
95405         * lib/quote.h: New file.  Prototypes for same.
95406
95407 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95408
95409         From a suggestion by Bruno Haible.
95410         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95411         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95412         to decide whether to define the BeOS workaround macro;
95413         this adjusts to the change to AC_MBSTATE_T.
95414
95415 2000-07-14  Jim Meyering  <meyering@lucent.com>
95416
95417         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95418         jm_AC_TYPE_UINTMAX_T.
95419
95420 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95421
95422         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95423
95424         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95425         quotearg_buffer_restyled): Add support for
95426         clocale_quoting_style.  Undo previous change to
95427         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95428         and "{RIGHT QUOTATION MARK}" msgids.
95429
95430 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95431
95432         From a suggestion by Bruno Haible.
95433         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95434         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95435         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95436         and mbstate_t, to a single-part test that simply defines mbstate_t.
95437         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95438         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95439
95440 2000-07-10  Jim Meyering  <meyering@lucent.com>
95441
95442         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95443
95444         * m4/gnu-source.m4: Output to confdefs.h directly.
95445         Suggestion from Akim Demaille.
95446
95447 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95448
95449         The old behavior of quoting `like this' doesn't look good with
95450         newer, ISO-style fonts.  See:
95451         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95452
95453         Instead, quote "like this" by default.  Let the translator
95454         tailor the locale-specific quoting behavior by providing
95455         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95456
95457         * lib/quotearg.c (N_): New macro.
95458         (gettext_default): New function.
95459         (quotearg_buffer_restyled): Use
95460         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95461         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95462
95463 2000-07-09  Jim Meyering  <meyering@lucent.com>
95464
95465         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95466         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95467
95468         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95469         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95470
95471 2000-07-09  Jim Meyering  <meyering@lucent.com>
95472
95473         * lib/Most files: Update copyright dates to include 2000.
95474
95475 2000-07-08  Jim Meyering  <meyering@lucent.com>
95476
95477         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95478         if not defined.
95479         (xgethostname): Remove now-unnecessary #ifdef.
95480         Move declaration of `err' into loop where it's used.
95481
95482 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95483         and Bruno Haible  <haible@clisp.cons.org>
95484
95485         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95486         only if the test for an object-type mbstate_t fails.  This
95487         prevents us from mistakenly reporting that mbstate_t is a
95488         system object type after we "#define mbstate_t int" to work
95489         around its lack.
95490
95491 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95492         and Bruno Haible  <haible@clisp.cons.org>
95493
95494         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95495
95496 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95497
95498         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95499         to strerror_r.
95500         Include <ctype.h> for use of isalpha.
95501
95502 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95503
95504         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95505         by allocating a larger buffer. Test the gethostname return value for
95506         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95507         returns an error and ENAMETOOLONG isn't defined.
95508
95509 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95510
95511         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95512         dimension.
95513
95514 2000-07-04  Jim Meyering  <meyering@lucent.com>
95515
95516         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95517         of the deprecated AC_CHECKING.
95518
95519 2000-07-04  Jim Meyering  <meyering@lucent.com>
95520
95521         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95522         Reported by Bruno Haible.
95523
95524 2000-07-04  Jim Meyering  <meyering@lucent.com>
95525
95526         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95527         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95528         lacks mbrtowc.
95529
95530 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95531
95532         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95533         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95534
95535 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95536         and Bruno Haible  <haible@clisp.cons.org>
95537
95538         * lib/quotearg.c (mbrtowc):
95539         Assign to *pwc, and return 1 only if result is nonzero.
95540         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95541
95542 2000-07-03  Jim Meyering  <meyering@lucent.com>
95543
95544         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95545
95546 2000-07-03  Jim Meyering  <meyering@lucent.com>
95547
95548         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95549         This is necessary to get a definition of e.g., UTMP_FILE on
95550         HP-UX 10.20.
95551         From Bob Proulx.
95552
95553 2000-07-02  Jim Meyering  <meyering@lucent.com>
95554
95555         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95556
95557         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95558         AC_LIBOBJ(function_name).
95559         * m4/chown.m4: Likewise.
95560         * m4/fnmatch.m4: Likewise.
95561         * m4/ftruncate.m4: Likewise.
95562         * m4/getgroups.m4: Likewise.
95563         * m4/getline.m4: Likewise.
95564         * m4/group-member.m4: Likewise.
95565         * m4/jm-macros.m4: Likewise.
95566         * m4/lstat.m4: Likewise.
95567         * m4/malloc.m4: Likewise.
95568         * m4/memcmp.m4: Likewise.
95569         * m4/nanosleep.m4: Likewise.
95570         * m4/putenv.m4: Likewise.
95571         * m4/realloc.m4: Likewise.
95572         * m4/regex.m4: Likewise.
95573         * m4/stat.m4: Likewise.
95574         * m4/strftime.m4: Likewise.
95575
95576 2000-07-02  Jim Meyering  <meyering@lucent.com>
95577
95578         * lib/quotearg.c (mbstate_t): Don't define here.
95579
95580 2000-07-02  Jim Meyering  <meyering@lucent.com>
95581
95582         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95583
95584 2000-07-01  Jim Meyering  <meyering@lucent.com>
95585
95586         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95587
95588 2000-07-01  Jim Meyering  <meyering@lucent.com>
95589
95590         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95591         problem.
95592
95593 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95594
95595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95596         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95597
95598 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95599
95600         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95601         per change in ../m4/ls-mntd-fs.m4.
95602         (read_filesystem_list): Ignore symbolic links.
95603
95604 2000-06-29  Jim Meyering  <meyering@lucent.com>
95605
95606         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95607         for declaration of strcmp.
95608
95609         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95610
95611         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95612         Avoid warning by casting result to `char *' to remove `const'.
95613
95614 2000-06-28  Jim Meyering  <meyering@lucent.com>
95615
95616         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95617         included by quotearg.c, for which we perform this test.  From
95618         Bruno Haible.
95619
95620 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95621
95622         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95623         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95624         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95625
95626 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95627
95628         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95629
95630 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95631
95632         savedir now sets errno on failure and invokes xmalloc to get memory.
95633         Fix a couple of other minor bugs while we're at it.
95634
95635         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95636         (NAMLEN): Remove macro.
95637         (malloc, realloc): Remove decls.
95638         (stpcpy): Likewise.
95639         ("xalloc.h"): Include.
95640         (NAME_SIZE_DEFAULT): New macro.
95641         (savedir): Use xmalloc / xrealloc to allocate memory.
95642         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95643         Skip "" directory entries.
95644         Use strlen to calculate directory entry length, since the old method
95645         is rarely used these days and isn't worth supporting.
95646         Don't use a pointer after freeing it.
95647         Check for integer overflow when calculating allocation size.
95648         Use memcpy to copy entries, instead of stpcpy.
95649         Set errno properly when returning NULL.
95650         Check for readdir error.
95651
95652 2000-06-26  Jim Meyering  <meyering@lucent.com>
95653
95654         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95655
95656 2000-06-25  Jim Meyering  <meyering@lucent.com>
95657
95658         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95659         Linux header bug when _XOPEN_SOURCE is defined to 500.
95660
95661 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95662
95663         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95664         deficiency.
95665
95666 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95667
95668         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95669         Include xalloc.h.
95670         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95671
95672 2000-06-24  Jim Meyering  <meyering@lucent.com>
95673
95674         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95675         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95676         for which strerror does return char*, but which lacks a conveniently
95677         accessible declaration of the function.  If the compile-test says
95678         strerror_r doesn't work, then resort to a `run'-test that works on
95679         BeOS and segfaults on DEC Unix.
95680
95681 2000-06-24  Jim Meyering  <meyering@lucent.com>
95682
95683         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95684
95685 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95686
95687         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95689
95690 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95691
95692         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95693         (mbrtowc, mbstate_t): Define substitutes if
95694         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95695         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95696         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95697
95698 2000-06-23  Jim Meyering  <meyering@lucent.com>
95699
95700         * m4/afs.m4: Add missing AC_MSG_RESULT.
95701         Reported by Bruno Haible.
95702
95703         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95704         Suggestion from Bruno Haible.
95705
95706 2000-06-23  Jim Meyering  <meyering@lucent.com>
95707
95708         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95709
95710 2000-06-21  Jim Meyering  <meyering@lucent.com>
95711
95712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95713
95714 2000-06-21  Jim Meyering  <meyering@lucent.com>
95715
95716         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95717         (noinst_HEADERS): Add getstr.h.
95718
95719         * lib/getline.c (getstr): Move into a separate file.
95720         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95721         the following changes: new parameter, delim2; both delim[12]
95722         parameters have type `int', not `char'.  The latter would lose
95723         with 8-bit delimiters.
95724         * lib/getstr.h: New file.
95725
95726 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95727
95728         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95729         than 1024, return a memory chunk of least possible size, instead
95730         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95731         Use free/xmalloc instead of xrealloc to avoid copying for very long
95732         paths.
95733
95734 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95735
95736         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95737         the empty string.
95738
95739 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95740
95741         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95742         address, not strdup.  Include <stdlib.h> and don't declare free().
95743
95744 2000-06-19  Jim Meyering  <meyering@lucent.com>
95745
95746         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95747
95748 2000-06-18  Jim Meyering  <meyering@lucent.com>
95749
95750         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95751
95752         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95753         `checking whether...' message to be consistent with that of the
95754         lstat test.
95755
95756 2000-06-18  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95759         Besides, these days every porting target provides a mkdir function.
95760
95761         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95762         needed. (this snippet comes from src/system.h).
95763
95764 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95765
95766         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95767
95768 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95769
95770         * lib/human.c (adjust_value): New function.
95771         (human_readable_inexact): Apply rounding style even when
95772         printing approximate values.
95773
95774 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95775
95776         * lib/human.c (human_readable_inexact): Allow an input block
95777         size that is not a multiple of the output block size, and vice versa.
95778         Reported by Piergiorgio Sartor.
95779
95780 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95781
95782         * lib/getdate.y (get_date): Apply relative times after time
95783         zone indicator, not before.  Reported by Todd A. Jacobs.
95784
95785 2000-06-13  Jim Meyering  <meyering@lucent.com>
95786
95787         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95788
95789         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95790
95791 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95792
95793         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95794
95795 2000-06-12  Jim Meyering  <meyering@lucent.com>
95796
95797         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95798         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95799         optional argument.
95800         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95801         the optional argument, `lib'.
95802
95803 2000-06-08  Jim Meyering  <meyering@lucent.com>
95804
95805         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95806
95807 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95808
95809         Rewrite largefile configuration so that we don't need to run
95810         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95811         AC_CANONICAL_HOST in configure.in -- jmm]
95812
95813         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95814         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95815         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95816         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95817         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95818         All uses changed.
95819         Instead of inspecting the output of getconf, try to compile the
95820         test program without and with the macro definition.
95821         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95822         for getconf.  Instead, check for the needed flags by compiling
95823         test programs.
95824
95825 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95826
95827         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95828
95829 2000-06-04  Jim Meyering  <meyering@lucent.com>
95830
95831         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95832         SunOS 4.1.4 for which gid_t is an unsigned type.
95833
95834 2000-06-03  Jim Meyering  <meyering@lucent.com>
95835
95836         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95837         now that autoconf requires that.
95838
95839         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95840         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95841         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95842
95843 2000-06-03  Jim Meyering  <meyering@lucent.com>
95844
95845         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95846
95847 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95848
95849         * m4/glibc21.m4: New file.
95850         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95851
95852 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95853
95854         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95855         newer, don't install charset.alias.
95856         * lib/config.charset: Change the Linux/glibc rules so they become empty
95857         on glibc-2.1 or newer.
95858
95859 2000-06-02  Jim Meyering  <meyering@lucent.com>
95860
95861         * lib/mountlist.c: Back out last change.  Instead, do this...
95862         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95863         me_dummy member using the same `ignore'-testing code.
95864         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95865         fs_type strings.
95866         From Mark D. Roth.
95867
95868 2000-05-29  Jim Meyering  <meyering@lucent.com>
95869
95870         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95871         mounts with the `ignore' attribute.  Based on a patch from
95872         Mark D. Roth.
95873
95874 2000-05-28  Jim Meyering  <meyering@lucent.com>
95875
95876         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95877         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95878         * m4/stat.m4: Likewise.
95879         * m4/lstat.m4: Likewise.
95880         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95881
95882         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95883         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95884
95885 2000-05-26  Jim Meyering  <meyering@lucent.com>
95886
95887         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95888
95889 2000-05-24  Jim Meyering  <meyering@lucent.com>
95890
95891         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95892         autoconf requires that.
95893         * m4/lib-check.m4: Likewise.
95894         * m4/jm-macros.m4: Likewise.
95895         * m4/strftime.m4: Likewise.
95896
95897         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95898         AC_CHECK_DECLS, now that autoconf requires that.
95899
95900 2000-05-22  Jim Meyering  <meyering@lucent.com>
95901
95902         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95903         * m4/lstat.m4: Likewise.
95904
95905 2000-05-22  Jim Meyering  <meyering@lucent.com>
95906
95907         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95908
95909 2000-05-20  Jim Meyering  <meyering@lucent.com>
95910
95911         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95912         (jm_PREREQ): Use it.
95913
95914 2000-05-18  Jim Meyering  <meyering@lucent.com>
95915
95916         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95917         back, too, since it may have been modified by allocate_entry.
95918         (hash_delete): Rewrite to use neither the assignment operator
95919         nor the comma operator in an if-expression.
95920
95921 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95922
95923         * lib/closeout.c:
95924         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95925         Remove; no longer needed.
95926         "quotearg.h": Add include.
95927         (file_name): Do not bother to explicitly initialize to NULL; it's less
95928         efficient on some hosts.
95929         (close_stdout_status): Remove test as to whether stdout was already
95930         closed; it breaks for the case "echo x | sort >&-".
95931         Quote file name colons.
95932         Do not assume that _("write error") lacks format strings.
95933
95934 2000-05-15  Jim Meyering  <meyering@lucent.com>
95935
95936         * lib/version-etc.c (version_etc_copyright): Update the copyright
95937         string used in all --version output.
95938
95939 2000-05-14  Jim Meyering  <meyering@lucent.com>
95940
95941         * lib/closeout.c (close_stdout_set_file_name): New function.
95942         (close_stdout_status): Use new file-scoped global.
95943         Return right away if fstat says the stdout file descriptor is invalid.
95944         * lib/closeout.h (close_stdout_set_file_name): Declare.
95945
95946 2000-05-10  Jim Meyering  <meyering@lucent.com>
95947
95948         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95949         (close_stdout_set_status): New function.
95950         * lib/closeout.h (close_stdout_set_status): Declare.
95951
95952 2000-05-09  Jim Meyering  <meyering@lucent.com>
95953
95954         * m4/gettext.m4: Rename this...
95955         * m4/libintl.m4: ...to this.
95956
95957 2000-05-08  Jim Meyering  <meyering@lucent.com>
95958
95959         * lib/long-options.c: Don't include closeout.h.
95960         (parse_long_options): Don't call close_stdout for --version.
95961
95962 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95963
95964         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95965         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95966         2.1.3 bug.  This avoids a clash when files like regex.c define
95967         _GNU_SOURCE.
95968
95969 2000-05-06  Jim Meyering  <meyering@lucent.com>
95970
95971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95972         (AC_REPLACE_FUNCS): Add strnlen.
95973
95974         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95975         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95976
95977         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95978         AC_SEARCH_LIBS call for nanosleep.
95979         (LIB_NANOSLEEP): Set and AC_SUBST.
95980
95981 2000-05-06  Jim Meyering  <meyering@lucent.com>
95982
95983         * lib/strnlen.c: Undefine __strnlen and strnlen.
95984         [!weak_alias]: Define __strnlen to strnlen.
95985
95986         * lib/atexit.c: New file, from libiberty.
95987
95988 2000-05-06  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/closeout.c (close_stdout_status): Also check for errors on the
95991         stderr stream.
95992
95993 2000-05-05  Jim Meyering  <meyering@lucent.com>
95994
95995         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95996         AC_SEARCH_LIBS call for clock_gettime.
95997         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95998
95999         * m4/search-libs.m4: Update from autoconf.
96000
96001         su doesn't work on Solaris 2.6.
96002         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96003         <shadow.h>.  Reported by Dragos Harabor.
96004
96005 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96006
96007         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96008         memcpy instead of xmalloc, xrealloc, path_concat.
96009         (locale_charset): Treat empty environment variables as absent.
96010         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96011
96012 2000-05-04  Jim Meyering  <meyering@lucent.com>
96013
96014         * lib/getopt.c: Update from glibc.
96015         * lib/obstack.c: Likewise.
96016         * lib/obstack.h: Likewise.
96017         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96018         file
96019
96020         * lib/regex.h: Likewise.
96021         * lib/strndup.c: Likewise.
96022         * lib/strnlen.c: New file, from glibc.
96023
96024 2000-05-03  Jim Meyering  <meyering@lucent.com>
96025
96026         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96027
96028 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96029
96030         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96031         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96032         compile-time test, rather than inspecting host and OS, to
96033         decide whether to define _LARGEFILE_SOURCE.
96034
96035 2000-05-01  Jim Meyering  <meyering@lucent.com>
96036
96037         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96038
96039         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96040         Based on a patch from Bruno Haible.
96041
96042 2000-05-01  Jim Meyering  <meyering@lucent.com>
96043
96044         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96045
96046 2000-04-29  Jim Meyering  <meyering@lucent.com>
96047
96048         * lib/path-concat.c: Declare strdup only if it's not defined.
96049         * lib/canon-host.c: Likewise.
96050
96051 2000-04-28  Jim Meyering  <meyering@lucent.com>
96052
96053         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96054         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96055         is included first, then limits.h is included by locale.h by libintl.h.
96056         From John David Anglin.
96057
96058 2000-04-25  Jim Meyering  <meyering@lucent.com>
96059
96060         * lib/makepath.c (S_IRWXUGO): Define.
96061         (make_path): Always perform explicit chmod if MODE specifies any
96062         of the `special' permission bits.  Prompted by a bug report against
96063         install from Mate Wierdl and Joost van Baal.
96064
96065 2000-04-18  Jim Meyering  <meyering@lucent.com>
96066
96067         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96068         (jm_PREREQ): Use it.
96069
96070 2000-04-18  Jim Meyering  <meyering@lucent.com>
96071
96072         * lib/README: New file.
96073
96074         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96075         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96076
96077 2000-04-17  Jim Meyering  <meyering@lucent.com>
96078
96079         Get it right :-)
96080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96081         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96082         Suggestion from Akim Demaille.
96083
96084 2000-04-17  Jim Meyering  <meyering@lucent.com>
96085
96086         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96087         the definition of it to rpl_strftime also defined-away the system's
96088         declaration.
96089
96090 2000-04-15  Jim Meyering  <meyering@lucent.com>
96091
96092         Use `C' to denote so-called `contiguous' files, the same way
96093         that tar does.
96094         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96095         (ftypelet): Use S_ISCTG.
96096         From Michael Deutschmann.
96097
96098 2000-04-14  Jim Meyering  <meyering@lucent.com>
96099
96100         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96101         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96102         clobbered.
96103
96104 2000-04-14  Jim Meyering  <meyering@lucent.com>
96105
96106         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96107
96108 2000-04-13  Jim Meyering  <meyering@lucent.com>
96109
96110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96111         AH_VERBATIM to insert required #ifndef into config.h.in.
96112         Suggestion from Akim Demaille.
96113
96114 2000-04-12  Jim Meyering  <meyering@lucent.com>
96115
96116         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96117         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96118         Christian Krackowizer.
96119
96120         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96121         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96122         (AC_SYS_LARGEFILE): Require.
96123         (AM_C_PROTOTYPES): Require.
96124
96125 2000-04-08  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96128         names don't conflict.  Reported by Eli Zaretskii.
96129
96130 2000-04-07  Jim Meyering  <meyering@lucent.com>
96131
96132         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96133         sys/types.h, to work around system header problems on AIX 3.2.5.
96134         From Bruno Haible.
96135
96136 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96137
96138         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96139         bug.  Deal with the different error behavior of Irix iconv.
96140
96141 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96142
96143         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96144         IRIX if the installer said otherwise.
96145
96146 2000-04-05  Jim Meyering  <meyering@lucent.com>
96147
96148         Portability tweaks required for ultrix4.3.
96149         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96150         (jm_CHECK_DECLS): Add getutent to the list of functions.
96151         (_jm_DECL_HEADERS): Add utmpx.h.
96152         From John David Anglin.
96153
96154         * m4/strftime.m4: Back out the 2000-04-02 change.
96155         Instead of that change, simply undefine putenv in the test program.
96156
96157 2000-04-05  Jim Meyering  <meyering@lucent.com>
96158
96159         Portability tweaks required for ultrix4.3.
96160         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96161         getutent.
96162         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96163         * lib/canon-host.c: Declare strdup.
96164         * lib/path-concat.c: Likewise.
96165         From John David Anglin.
96166
96167 2000-04-04  Jim Meyering  <meyering@lucent.com>
96168
96169         Be more DOS 8.3-friendly.
96170         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96171         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96172         * lib/Makefile.am: Reflect renaming.
96173         Reported by Eli Zaretskii.
96174
96175         Use a temporary file name that won't clash with `charset.alias'
96176         in the DOS 8.3 name space.
96177         * lib/Makefile.am (charset_tmp): Define.
96178         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96179         (uninstall-local): Likewise.
96180         Reported by Eli Zaretskii.
96181
96182 2000-04-03  Jim Meyering  <meyering@lucent.com>
96183
96184         * m4/gettext.m4: Fix typo in comment.
96185
96186         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96187         textutils/configure.in).  Suggestion from Paul Eggert.
96188         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96189
96190 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96191
96192         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96193         variable in the shell rather than using putenv, which isn't
96194         portable.  This avoids the configure-time inter-test dependency
96195         on the potentially-renamed putenv function.
96196
96197 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96198
96199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96200         before checking struct stat.st_blksize, so that
96201         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96202
96203 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96204
96205         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96206         since strftime.c uses HAVE_STRFTIME to decide whether to use
96207         the underlying strftime.
96208
96209 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96210
96211         * lib/time/strftime.c (my_strftime): Make sure we call the system
96212         strftime, not ourselves, when invoking the underlying strftime.
96213
96214 2000-03-24  Jim Meyering  <meyering@lucent.com>
96215
96216         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96217         (charset_alias): Define.
96218         (install-exec-local): Factor out common code.
96219         (uninstall-local): Split lines longer than 80.
96220         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96221         (SUFFIXES): Define.
96222         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96223         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96224
96225 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96226
96227         * lib/config.charset: Output a line containing "Packages using this
96228         file".
96229         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96230         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96231         ref-del.sed): New rules.
96232
96233 2000-03-17  Jim Meyering  <meyering@lucent.com>
96234
96235         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96236         Otherwise, include <strings.h>
96237
96238 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96239
96240         * lib/unicodeio.c (utf8_wctomb): New function.
96241         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96242         format instead of in UCS-4 with platform dependent endianness.
96243
96244 2000-03-10  Jim Meyering  <meyering@lucent.com>
96245
96246         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96247         From Marco Franzen.
96248
96249 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96250
96251         * lib/savedir.c (savedir): Work even if directory size is
96252         negative; this can happen with some screwy NFS configurations.
96253
96254 2000-03-06  Jim Meyering  <meyering@lucent.com>
96255
96256         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96257         if it's NULL (because we ran out of memory).  From Bruno Haible.
96258
96259 2000-03-05  Jim Meyering  <meyering@lucent.com>
96260
96261         * lib/localcharset.c ("path-concat.h"): Include.
96262         (get_charset_aliases): Use path_concat instead of ANSI string
96263         concatenation.
96264
96265         * lib/unicodeio.h (PARAMS): Define.
96266         Use it to guard prototype.
96267
96268 2000-03-04  Jim Meyering  <meyering@lucent.com>
96269
96270         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96271         for lib/localcharset.c.
96272
96273 2000-03-04  Jim Meyering  <meyering@lucent.com>
96274
96275         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96276         installing into it.
96277         (uninstall-local): Uncomment this rule so `make distcheck' works
96278         once again.
96279
96280         * lib/unicodeio.c (<errno.h>): Include it.
96281         (errno): Declare if not defined.
96282
96283         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96284
96285         * lib/config.charset: New version, incorporating remarks from a linux
96286         i18n mailing list.  From Bruno Haible.
96287
96288 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96289
96290         * m4/codeset.m4: New file.
96291         * m4/iconv.m4: New file.
96292         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96293
96294 2000-03-03  Jim Meyering  <meyering@lucent.com>
96295
96296         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96297
96298 2000-03-02  Jim Meyering  <meyering@lucent.com>
96299
96300         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96301         the messages come out on separate lines.
96302
96303         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96304         rather than jm_CHECK_DECLARATIONS.
96305         * m4/decl.m4: Remove now-unused file.
96306
96307         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96308         geteuid.
96309
96310 2000-03-02  Jim Meyering  <meyering@lucent.com>
96311
96312         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96313
96314 2000-03-01  Jim Meyering  <meyering@lucent.com>
96315
96316         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96317         * lib/unicodeio.c: Likewise.
96318
96319 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96320
96321         * lib/config.charset: New file.
96322         * lib/localcharset.c: New file.
96323         * lib/unicodeio.h, lib/unicodeio.c: New files.
96324         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96325         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96326         (noinst_HEADERS): Add unicodeio.h.
96327         (all-local, install-exec-local, charset.alias): New targets.
96328
96329 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96330
96331         * lib/quotearg.c (ALERT_CHAR): New macro.
96332         (quotearg_buffer_restyled): Use it.
96333
96334 2000-02-27  Jim Meyering  <meyering@lucent.com>
96335
96336         * m4/check-decl.m4: Add getenv to the list.
96337
96338 2000-02-27  Jim Meyering  <meyering@lucent.com>
96339
96340         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96341         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96342
96343         * lib/backupfile.c: Guard inclusion of stdlib.h with
96344         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96345         Declare malloc if needed.
96346
96347         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96348         `#ifndef HAVE_DECL..'
96349         now that autoconf always defines the HAVE_DECL_ symbols.
96350         * lib/human.c: Likewise.
96351         * lib/same.c: Likewise.
96352         * lib/strtoumax.c: Likewise.
96353
96354         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96355         declaration check was not run.
96356         * lib/hash.c: Likewise.
96357         * lib/human.c: Likewise.
96358         * lib/same.c: Likewise.
96359         * lib/strtoumax.c: Likewise.
96360
96361         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96362         `.', then first look up the entire `.'-containing string as a login
96363         name.
96364
96365 2000-02-23  Jim Meyering  <meyering@lucent.com>
96366
96367         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96368         in place of my hack.
96369
96370 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96371
96372         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96373         (textint): New typedef.
96374         (parser_control): Member year changed from int to textint.
96375         All uses changed.
96376         (YYSTYPE): Removed; replaced by %union with int and textint members.
96377         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96378         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96379         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96380         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96381         (date, number, to_year): Use width of number in digits, not its value,
96382         to determine whether it's a 2-digit year, or a 2-digit time.
96383         (yylex): Store number of digits of numeric tokens.
96384         Reported by John Kendall.
96385
96386         (parser_control): Changed from struct parser_control to typedef (for
96387         consistency).  All uses changed.
96388
96389         (tID): Removed; not used.
96390         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96391
96392 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96393
96394         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96395         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96396
96397 2000-02-12  Jim Meyering  <meyering@lucent.com>
96398
96399         * lib/userspec.c (ISDIGIT): Define it.
96400         (isdigit): Remove definition.
96401         (is_number): Use ISDIGIT, not isdigit.
96402         <libintl.h>: Include.
96403         (_ and N_): Define.
96404         (parse_user_spec): Mark translatable strings.
96405
96406 2000-02-10  Jim Meyering  <meyering@lucent.com>
96407
96408         With these changes, nanosleep.[ch] are finally enough like the other
96409         lib/* replacement files to compile on a few more losing systems.
96410
96411         * lib/nanosleep.h: Don't include config.h.
96412         Remove prototype from declaration of nanosleep.
96413         (PARAMS): Remove now-unneeded definition.
96414         * lib/nanosleep.c: #undef nanosleep.
96415         (rpl_nanosleep): Rename from nanosleep.
96416
96417 2000-02-10  Jim Meyering  <meyering@lucent.com>
96418
96419         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96420         gnu_nanosleep to rpl_nanosleep.
96421
96422 2000-02-09  Jim Meyering  <meyering@lucent.com>
96423
96424         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96425         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96426
96427 2000-02-08  Akim Demaille  <akim@epita.fr>
96428
96429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96430         `[' and `]' and remove uses of `changequote'.
96431         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96432         (AC_SYS_LARGEFILE): Likewise.
96433         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96434         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96435         of changequote.
96436         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96437         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96438         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96439         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96440
96441 2000-02-05  Jim Meyering  <meyering@lucent.com>
96442
96443         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96444         Remove explicit use of AC_HEADER_TIME.  It is required by
96445         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96446         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96447         in autoconf whereby the expansion of the latter ended up preceding
96448         the expansion of its prerequisite, AC_HEADER_TIME.
96449         Reported by Volker Borchert.
96450
96451 2000-02-03  Jim Meyering  <meyering@lucent.com>
96452
96453         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96454
96455 2000-02-03  Jim Meyering  <meyering@lucent.com>
96456
96457         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96458         rather than with `#if HAVE_UTMPNAME'.
96459
96460 2000-02-02  Jim Meyering  <meyering@lucent.com>
96461
96462         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96463         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96464         Reported by Eli Zaretskii.
96465
96466 2000-02-01  Jim Meyering  <meyering@lucent.com>
96467
96468         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96469
96470 2000-01-31  Jim Meyering  <meyering@lucent.com>
96471
96472         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96473         functions.  Add the time.h and sys/time.h headers along with the
96474         AC_REQUIRE'ment of AC_HEADER_TIME.
96475
96476 2000-01-31  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/nanosleep.h (nanosleep): Guard declaration with
96479         `#if ! HAVE_DECL_NANOSLEEP'.
96480         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96481         the declaration in that vendor's sys/timers.h.
96482         Reported by Christian Krackowizer.
96483
96484         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96485         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96486         (ISPRINT): Likewise.
96487         Reported by Tom Tromey.
96488
96489 2000-01-30  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96492
96493         * m4/prereq.m4 (utmp_includes): Define.
96494         Check for ut_user and ut_name members in both struct utmpx
96495         and struct utmp.
96496
96497 2000-01-30  Jim Meyering  <meyering@lucent.com>
96498
96499         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96500         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96501         header files where only utmpx.ut_user is declared.
96502
96503         * lib/readutmp.h (UT_USER): Define.
96504
96505 2000-01-29  Jim Meyering  <meyering@lucent.com>
96506
96507         * m4/lib-check.m4: New file containing library-related checks from
96508         fileutils and sh-utils (textutils had none).
96509
96510 2000-01-28  Jim Meyering  <meyering@lucent.com>
96511
96512         * m4/perl.m4: Change format of warning message to look more like that
96513         from the missing script.  Suggestion from François Pinard.
96514
96515 2000-01-25  Jim Meyering  <meyering@lucent.com>
96516
96517         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96518         well as time.h in the compile check.
96519         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96520         Fix typo in cross-compiling case: s/yes/no/.
96521
96522 2000-01-23  Jim Meyering  <meyering@lucent.com>
96523
96524         * m4/jm-macros.m4: Move df-related tests here from
96525         fileutils/configure.in
96526
96527         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96528         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96529
96530         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96531         s/space/ac_fsusage_space/.
96532         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96533
96534         * m4/ftruncate.m4: New file (derived from part of
96535         fileutils/configure.in).
96536         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96537         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96538
96539         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96540         AC_SUBST these here, rather than just in sh-util/configure.in, so
96541         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96542         all the same.
96543         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96544         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96545         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96546         (AC_SUBST(POW_LIBM)): Likewise.
96547         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96548
96549 2000-01-23  Jim Meyering  <meyering@lucent.com>
96550
96551         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96552         obstack.c.
96553
96554 2000-01-22  Jim Meyering  <meyering@lucent.com>
96555
96556         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96557
96558         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96559
96560         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96561         configure.in
96562         (AC_CHECK_HEADERS): Likewise for sh-utils.
96563         (AC_CHECK_HEADERS): Likewise for textutils.
96564         Merge the three lists of headers.
96565
96566         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96567         from fileutils' configure.in.
96568
96569         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96570         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96571         check-decl.m4.
96572
96573         * m4/check-decl.m4: Use #if rather than #ifdef.
96574         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96575         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96576         (_jm_DECL_HEADERS): Define new function.
96577         (jm_CHECK_DECLARATIONS): Require it.
96578
96579 2000-01-22  Jim Meyering  <meyering@lucent.com>
96580
96581         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96582         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96583         Required for some AIX systems.  Reported by Christian Krackowizer.
96584         [TESTING] (main): New function.
96585
96586         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96587         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96588         letters.
96589
96590         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96591         iswprint.
96592
96593         * lib/strverscmp.c (ISDIGIT): Define.
96594         (strverscmp): Use ISDIGIT, not isdigit.
96595
96596 2000-01-19  Jim Meyering  <meyering@lucent.com>
96597
96598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96599         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96600         defines `struct timespec' in <sys/time.h>
96601
96602         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96603         Thanks to Akim for explaining.
96604
96605 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96606
96607         * lib/nanosleep.c (nanosleep):
96608         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96609         POSIX.1 doesn't require SA_INTERRUPT and some systems
96610         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96611         it's been part of POSIX.1 since day 1 (in 1988).
96612
96613 2000-01-17  Jim Meyering  <meyering@lucent.com>
96614
96615         * lib/interlock: Remove unused file.  Reported by François Pinard.
96616
96617 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96618
96619         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96620         alert, backslash, formfeed, and vertical tab unnecessarily in
96621         shell quoting style.
96622
96623 2000-01-16  Jim Meyering  <meyering@lucent.com>
96624
96625         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96626         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96627         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96628         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96629
96630 2000-01-16  Jim Meyering  <meyering@lucent.com>
96631
96632         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96633         because the latter didn't work.
96634
96635 2000-01-15  Jim Meyering  <meyering@lucent.com>
96636
96637         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96638         (AC_REPLACE_FUNCS): Add memcpy and memset.
96639         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96640         Add strpbrk.
96641         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96642
96643 2000-01-12  Jim Meyering  <meyering@lucent.com>
96644
96645         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96646         (jm_PREREQ): Use it.
96647         (jm_PREREQ_READUTMP): New macro.
96648         (jm_PREREQ): Use it.
96649
96650 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96651
96652         Quote multibyte characters correctly.
96653         * m4/c-bs-a.m4: New file.
96654         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96655         (jm_PREREQ): Use it.
96656
96657 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96658
96659         * m4/uintmax_t.m4: Port to autoconf 2.13.
96660
96661 2000-01-08  Jim Meyering  <meyering@ascend.com>
96662
96663         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96664         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96665
96666 2000-01-04  Jim Meyering  <meyering@ascend.com>
96667
96668         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96669         jm_STRUCT_DIRENT_D_TYPE.
96670         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96671         jm_STRUCT_DIRENT_D_INO.
96672         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96673         jm_STRUCT_UTIMBUF.
96674         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96675         renamings.
96676         * m4/utime.m4: Likewise.
96677
96678         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96679         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96680
96681 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96682
96683         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96684         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96685
96686 2000-01-02  Jim Meyering  <meyering@ascend.com>
96687
96688         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96689         remember if this is necessary.
96690
96691 1999-12-26  Jim Meyering  <meyering@ascend.com>
96692
96693         * m4/jm-macros.m4: Use it here.
96694         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96695
96696 1999-12-23  Jim Meyering  <meyering@ascend.com>
96697
96698         * m4/jm-macros.m4: Check for clock_gettime (moved from
96699         fileutils/configure.in)
96700         Check for gettimeofday.
96701
96702 1999-12-20  Jim Meyering  <meyering@ascend.com>
96703
96704         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96705         autoconf-2.14a-1999-12-20.
96706
96707 1999-12-19  Jim Meyering  <meyering@ascend.com>
96708
96709         * m4/lstat-slash.m4: New file.
96710         * m4/jm-macros.m4: Use the new macro:
96711         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96712
96713 1999-12-07  Jim Meyering  <meyering@ascend.com>
96714
96715         * m4/perl.m4: Require that File::Compare be available, too.
96716         Too many systems seem to lack it.
96717
96718         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96719         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96720
96721 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96722
96723         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96724         problem with the QNX 4.25 shell, which doesn't propagate exit
96725         status of failed commands inside shell assignments.
96726
96727 1999-11-17  Jim Meyering  <meyering@ascend.com>
96728
96729         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96730
96731 1999-11-07  Jim Meyering  <meyering@ascend.com>
96732
96733         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96734
96735 1999-11-06  Jim Meyering  <meyering@ascend.com>
96736
96737         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96738         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96739
96740 1999-11-05  Jim Meyering  <meyering@ascend.com>
96741
96742         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96743         configure.in of textutils, fileutils, and sh-utils into this one
96744         (shared between those packages) file.
96745         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96746         AC_STRUCT_ST_BLKSIZE.
96747
96748 1999-11-03  Jim Meyering  <meyering@ascend.com>
96749
96750         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96751         of AC_CHECK_TYPE checks includes unistd.h.
96752         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96753         Suggestion from Akim Demaille.
96754
96755 1999-10-30  Jim Meyering  <meyering@ascend.com>
96756
96757         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96758         m4-quoted string.
96759         * m4/ls-mntd-fs.m4: Likewise.
96760         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96761         * m4/jm-winsz1.m4: Likewise.
96762
96763         * m4/const.m4: Remove file, since the fix made it into the experimental
96764         version of autoconf.
96765         * m4/mktime.m4: Likewise.
96766
96767         * m4/check-type.m4: Remove file, now that the latest version of
96768         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96769
96770         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96771         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96772         AC_CHECK_TYPE.
96773
96774 1999-10-04  Jim Meyering  <meyering@ascend.com>
96775
96776         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96777
96778 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96779
96780         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96781         2.95.1 bug with HP-UX 10.20.
96782
96783 1999-09-17  Jim Meyering  <meyering@ascend.com>
96784
96785         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96786         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96787         due to missing strdup (against sh-utils-2.0).
96788
96789 1999-08-29  Jim Meyering  <meyering@ascend.com>
96790
96791         * m4/jm-macros.m4: Require jm_BISON.
96792         * m4/bison.m4: New file.
96793
96794 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96795
96796         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96797         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96798
96799 1999-08-05  Jim Meyering  <meyering@ascend.com>
96800
96801         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96802         to avoid conflicts with `conftest' on 8+3 filesystems.
96803         Suggestion from Eli Zaretskii.
96804
96805 1999-08-04  Jim Meyering  <meyering@ascend.com>
96806
96807         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96808         fileutils and sh-utils (textutils's getline test was inadequate).
96809         (AM_FUNC_GETLINE): Run this test.
96810         (AC_CHECK_FUNCS): Check for getdelim.
96811         Reported by Bob Proulx.
96812
96813 1999-08-02  Jim Meyering  <meyering@ascend.com>
96814
96815         * m4/jm-macros.m4: Add a comment.
96816
96817 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96818
96819         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96820         <inttypes.h> defines strtoumax as a macro (and not as a
96821         function).
96822
96823 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96824
96825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96826         that we can shift, multiply and divide unsigned long long
96827         values; Ultrix cc can't do it.
96828
96829 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96830
96831         * m4/mktime.m4: New file, which is a preview of what should appear
96832         in the next public autoconf release.
96833
96834 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96835
96836         * m4/lfs.m4: Remove this file.
96837         * m4/largefile.m4: New file.  It contains the old contents of
96838         lfs.m4, except that all names with prefix AC_LFS have been
96839         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96840         compatible with future autoconf versions.  Also, some minor m4
96841         quoting problems have been fixed.
96842
96843 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96844
96845         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96846         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96847         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96848         and simplify the shell code.
96849
96850 1999-08-01  Jim Meyering  <meyering@ascend.com>
96851
96852         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96853         m4.
96854
96855 1999-07-20  Jim Meyering  <meyering@ascend.com>
96856
96857         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96858
96859 1999-07-15  Jim Meyering  <meyering@ascend.com>
96860
96861         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96862
96863 1999-05-22  Jim Meyering  <meyering@ascend.com>
96864
96865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96866
96867 1999-05-20  Jim Meyering  <meyering@ascend.com>
96868
96869         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96870         Add a colon after each `then' in case $4 is empty.
96871
96872 1999-05-16  Jim Meyering  <meyering@ascend.com>
96873
96874         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96875
96876 1999-05-10  Jim Meyering  <meyering@ascend.com>
96877
96878         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96879
96880         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96881         AC_FUNC_MKTIME.
96882
96883 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96884
96885         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96886
96887 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96888
96889         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96890         not CPPFLAGS, so that linking works correctly in IRIX.
96891
96892 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96893
96894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96895
96896 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96897
96898         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96899         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96901         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96902         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96903
96904         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96905
96906 1999-04-20  Jim Meyering  <meyering@ascend.com>
96907
96908         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96909         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96910         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96911
96912 1999-04-18  Jim Meyering  <meyering@ascend.com>
96913
96914         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96915         * m4/jm-macros.m4: Use it.
96916
96917 1999-04-06  Jim Meyering  <meyering@ascend.com>
96918
96919         * m4/strftime.m4: Remove test for %f.
96920
96921 1999-03-29  Jim Meyering  <meyering@ascend.com>
96922
96923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96924         superset of the AC_TYPE_* checks in the textutils, fileutils,
96925         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96926         AC_TYPE_PID_T.
96927
96928 1999-03-28  Jim Meyering  <meyering@ascend.com>
96929
96930         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96931         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96932         replaced e.g., in the *.sh files of the sh-utils.
96933
96934 1999-03-20  Jim Meyering  <meyering@ascend.com>
96935
96936         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96937         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96938         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96939
96940 1999-03-19  Jim Meyering  <meyering@ascend.com>
96941
96942         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96943
96944 1999-03-12  Jim Meyering  <meyering@ascend.com>
96945
96946         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96947
96948 1999-03-07  Jim Meyering  <meyering@ascend.com>
96949
96950         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96951         declared.
96952
96953 1999-02-17  Jim Meyering  <meyering@ascend.com>
96954
96955         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96956         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96957
96958 1999-02-07  Jim Meyering  <meyering@ascend.com>
96959
96960         * m4/group-member.m4: New file -- extracted from sh-utils'
96961         configure.in.
96962
96963         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96964         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96965
96966 1999-02-06  Jim Meyering  <meyering@ascend.com>
96967
96968         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96969         * m4/fnmatch.m4: Likewise.
96970         * m4/getgroups.m4: Likewise.
96971         * m4/lstat.m4: Likewise.
96972         * m4/malloc.m4: Likewise.
96973         * m4/putenv.m4: Likewise.
96974         * m4/realloc.m4: Likewise.
96975         * m4/regex.m4: Likewise.
96976         * m4/stat.m4: Likewise.
96977         * m4/strftime.m4: Likewise.
96978         Suggestion from Alain Magloire.
96979
96980         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96981         * m4/fnmatch.m4: Likewise.
96982         * m4/getgroups.m4: Likewise.
96983         * m4/getline.m4: Likewise.
96984         * m4/lstat.m4: Likewise.
96985         * m4/malloc.m4: Likewise.
96986         * m4/memcmp.m4: Likewise.
96987         * m4/putenv.m4: Likewise.
96988         * m4/realloc.m4: Likewise.
96989         * m4/regex.m4: Likewise.
96990         * m4/stat.m4: Likewise.
96991         * m4/strftime.m4: Likewise.
96992         Suggestion from Alain Magloire.
96993
96994         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96995         an argument.
96996
96997         * m4/regex.m4: Add a run-time Test for proper operation of
96998         re_compile_pattern.
96999
97000 1999-01-31  Jim Meyering  <meyering@ascend.com>
97001
97002         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97003
97004 1999-01-30  Jim Meyering  <meyering@ascend.com>
97005
97006         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97007
97008         * m4/jm-mktime.m4: Make this a wrapper around the official
97009         AM_FUNC_MKTIME rather than my private copy, now that the official one
97010         is up to date.
97011         * m4/mktime.m4: Remove file.
97012
97013         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97014         * m4/uptime.m4: Likewise.
97015         * m4/uintmax_t.m4: Likewise.
97016
97017 1999-01-28  Jim Meyering  <meyering@ascend.com>
97018
97019         * m4/jm-macros.m4: Use jm_AFS.
97020         * m4/afs.m4: New file (from fileutils' configure.in).
97021
97022         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97023         * m4/chown.m4: Likewise.
97024         * m4/d-ino.m4: Likewise.
97025         * m4/d-type.m4: Likewise.
97026         * m4/fnmatch.m4: Likewise.
97027         * m4/getgroups.m4: Likewise.
97028         * m4/gettext.m4: Likewise.
97029         * m4/jm-mktime.m4: Likewise.
97030         * m4/jm-winsz2.m4: Likewise.
97031         * m4/lcmessage.m4: Likewise.
97032         * m4/ls-mntd-fs.m4: Likewise.
97033         * m4/malloc.m4: Likewise.
97034         * m4/memcmp.m4: Likewise.
97035         * m4/putenv.m4: Likewise.
97036         * m4/realloc.m4: Likewise.
97037         * m4/st_mtim.m4: Likewise.
97038         * m4/strftime.m4: Likewise.
97039
97040 1999-01-16  Jim Meyering  <meyering@ascend.com>
97041
97042         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97043         (ARGMATCH_DIE_DECL): Define.
97044
97045 1999-01-12  Jim Meyering  <meyering@ascend.com>
97046
97047         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97048         Reported by Lars Hecking.
97049
97050 1999-01-10  Jim Meyering  <meyering@ascend.com>
97051
97052         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97053         gross kludge.
97054         * m4/inttypes_h.m4: Likewise.
97055         * m4/lstat.m4: Likewise.
97056         * m4/malloc.m4: Likewise.
97057         * m4/readdir.m4: Likewise.
97058         * m4/realloc.m4: Likewise.
97059         * m4/st_dm_mode.m4: Likewise.
97060         * m4/stat.m4: Likewise.
97061         * m4/utimbuf.m4: Likewise.
97062         * m4/utimes.m4: Likewise.
97063
97064         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97065         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97066         comments in config.h.in are meaningful.
97067
97068         * m4/jm-macros.m4: Require autoconf-2.13 here.
97069
97070         * m4/regex.m4: By default, don't use the included regex.c on systems
97071         with glibc 2.  Suggestion from Uli Drepper.
97072
97073 1999-01-02  Jim Meyering  <meyering@ascend.com>
97074
97075         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97076
97077 1998-12-18  Jim Meyering  <meyering@ascend.com>
97078
97079         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97080         Based on a suggestion from Lars Hecking.
97081
97082 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97083
97084         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97085
97086 1998-11-16  Jim Meyering  <meyering@ascend.com>
97087
97088         * m4/lfs.m4: Double-quote the `uname...` expression.
97089
97090 1998-11-14  Jim Meyering  <meyering@ascend.com>
97091
97092         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97093         * m4/stat.m4: Likewise.
97094
97095 1998-11-03  Jim Meyering  <meyering@ascend.com>
97096
97097         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97098         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97099
97100 1998-10-18  Jim Meyering  <meyering@ascend.com>
97101
97102         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97103
97104 1998-10-17  Jim Meyering  <meyering@ascend.com>
97105
97106         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97107         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97108         calls for those previously hard-coded headers.  Instead, take a new
97109         parameter.
97110         (jm_CHECK_DECLARATIONS): Reflect interface change.
97111         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97112         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97113
97114         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97115
97116 1998-10-14  Jim Meyering  <meyering@ascend.com>
97117
97118         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97119         instead of "TZ=America/Vancouver".  From Paul Eggert.
97120
97121 1998-10-11  Jim Meyering  <meyering@ascend.com>
97122
97123         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97124         This adds a test for a recently added compatibility fix for mktime.c.
97125         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97126
97127 1998-09-27  Jim Meyering  <meyering@ascend.com>
97128
97129         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97130
97131         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97132         ../configure.in, including a change from Gordon Matzigkeit to allow
97133         cross-compiling for the Hurd.
97134
97135         * m4/glibc.m4: New file/macro to test for the GNU C Library
97136         versions 1 and 2.  From Gordon Matzigkeit.
97137         Indent.
97138
97139 1998-09-21  Jim Meyering  <meyering@ascend.com>
97140
97141         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97142
97143 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97144
97145         Port nanosecond-resolution times to UnixWare 2.1.2 and
97146         pedantic Solaris 2.6.
97147
97148         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97149         AC_STRUCT_ST_MTIM.
97150         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97151         Generate name of ns member, instead of just 1 or undef.
97152         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97153
97154 1998-08-15  Jim Meyering  <meyering@ascend.com>
97155
97156         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97157         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97158         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97159         instead of jm_TYPE_SSIZE_T.
97160
97161 1998-08-12  Jim Meyering  <meyering@ascend.com>
97162
97163         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97164
97165 1998-08-02  Jim Meyering  <meyering@ascend.com>
97166
97167         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97168         in acconfig.h manually.
97169
97170 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97171
97172         * m4/st_mtim.m4: New file.
97173
97174 1998-07-28  Jim Meyering  <meyering@ascend.com>
97175
97176         * m4/utimes.m4: Undef stat.
97177
97178 1998-07-25  Jim Meyering  <meyering@ascend.com>
97179
97180         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97181         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97182
97183 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97184
97185         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97186         uid and gid actually remain unchanged.
97187
97188 1998-07-07  Jim Meyering  <meyering@ascend.com>
97189
97190         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97191
97192 1998-07-04  Jim Meyering  <meyering@ascend.com>
97193
97194         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97195         to prove that this macro can be used in packages without regex.c.
97196
97197 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97198
97199         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97200         is to be used.
97201
97202 1998-07-03  Jim Meyering  <meyering@ascend.com>
97203
97204         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97205
97206         * m4/gettext.m4: New file -- from gettext-0.10.35.
97207         * m4/lcmessage.m4: Likewise.
97208         * m4/progtest.m4: Likewise.
97209
97210         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97211         * m4/jm-macros.m4: Require the new macro.
97212
97213 1998-06-29  Jim Meyering  <meyering@ascend.com>
97214
97215         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97216         for the definition of NGROUPS (used in a system header included
97217         by sys/mount.h).
97218
97219 1998-06-28  Jim Meyering  <meyering@ascend.com>
97220
97221         * m4/ls-mntd-fs.m4: New file.
97222         * m4/fstypename.m4: New file.
97223
97224         * m4/jm-macros.m4: Require the new macro.
97225         * m4/jm-glibc-io.m4: New file.
97226
97227 1998-05-19  Jim Meyering  <meyering@ascend.com>
97228
97229         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97230         * m4/lchown.m4: New file.
97231
97232         * m4/Makefile.am.in: New file.
97233         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97234
97235 1998-05-14  Jim Meyering  <meyering@ascend.com>
97236
97237         * m4/Makefile.am (EXTRA_DIST): Add them.
97238         * m4/jm-macros.m4: New file.
97239         * m4/utimbuf.m4: New file.
97240
97241 1998-05-12  Jim Meyering  <meyering@ascend.com>
97242
97243         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97244
97245 1998-05-11  Jim Meyering  <meyering@ascend.com>
97246
97247         * m4/isc-posix.m4: New file.
97248
97249 1998-05-10  Jim Meyering  <meyering@ascend.com>
97250
97251         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97252
97253 1998-05-09  Jim Meyering  <meyering@ascend.com>
97254
97255         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97256         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97257         with automake.
97258
97259         * m4/ssize_t.m4: New file.
97260         * m4/mktime.m4: Remove file -- the new automake has this now.
97261
97262 1998-04-26  Jim Meyering  <meyering@ascend.com>
97263
97264         * m4/assert.m4: New file.
97265         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97266
97267 1998-04-05  Jim Meyering  <meyering@ascend.com>
97268
97269         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97270         (jm_PREREQ): Use it here.
97271
97272 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97273
97274         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97275         in acconfig.h.
97276
97277 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97278
97279         * m4/prereq.m4: New file.
97280         * m4/error.m4: New file.
97281         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97282
97283 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97284
97285         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97286         cache-check for the same variable -- that defeated the purpose of
97287         the test; the test program was never run.  This was a problem only
97288         on systems with losing getline functions -- HP-UX 10.20 is one.
97289         Reported by Bjorn Helgaas.
97290
97291 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97292
97293         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97294
97295 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97296
97297         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97298
97299         * m4/const.m4: New file.  Use an initializer in this declaration
97300         typedef int charset[2]; const charset x;
97301         Reported by Bob Glickstein.
97302
97303 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97304
97305         * m4/chown.m4: Fix reversed types on -1 args to chown.
97306         From Kaveh Ghazi.
97307
97308 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97309
97310         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97311         Add lseek and memchr.
97312
97313         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97314         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97315         have a 20-character limit on names.
97316
97317 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97318
97319         * m4/inttypes_h.m4: New file.
97320         * m4/uintmax_t.m4: New file.
97321         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97322
97323
97324         -----
97325
97326         Local Variables:
97327         coding: utf-8
97328         End:
97329
97330         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97331
97332         Copying and distribution of this file, with or without
97333         modification, are permitted provided the copyright notice
97334         and this notice are preserved.