Keep the extern-inline macros closer together.
[gnulib.git] / ChangeLog
1 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2
3         utimens: use extern-inline
4         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
5         * lib/utimens.h: Add copyright notice, since this is now large enough
6         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
7         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
8         * modules/utimens (Depends-on): Add extern-inline.
9
10         u64: use extern-inline
11         * lib/u64.c: New file.
12         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
14         * modules/u64 (Files): Add lib/u64.c.
15         (Depends-on): Add extern-inline.
16         (configure.ac): No need to require AC_C_INLINE, since extern-inline
17         does that now.
18         (lib_SOURCES): Add u64.c.
19
20         timespec: use extern-inline
21         * lib/timespec.c: New file.
22         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
23         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
24         * modules/timespec (Files): Add lib/timespec.c.
25         (Depends-on): Add extern-inline.
26         (lib_SOURCES): Add timespec.c.
27
28         stat-time: use extern-inline
29         * lib/stat-time.c: New file.
30         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
31         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
32         * modules/stat-time (Files): Add lib/stat-time.c.
33         (Depends-on): Add extern-inline.
34         (lib_SOURCES): Add stat-time.c.
35
36         extern-inline: new module
37         * modules/extern-inline, m4/extern-inline.m4: New files.
38         This is for better support of 'extern inline' a la ISO C99,
39         with a portable alternative on compilers that do not support
40         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
41         of the Emacs executable, when compiled with debugging disabled,
42         which is a typical way that Emacs is built while developing.
43
44 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
45
46         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
47         * build-aux/do-release-commit-and-tag: Move variable definitions
48         together.
49         ($branch): Instead of defaulting to "master", default to the current
50         branch (as gnu-web-doc-update does).
51         (help): Display the current values of the option arguments.
52         * top/maint.mk (release-commit): New.
53         * top/README-release: Simplify the corresponding step.
54
55 2012-07-30  Eric Blake  <eblake@redhat.com>
56
57         passfd: fix comment on recvfd
58         * lib/passfd.c (recvfd): Fix comment.
59         Reported by Jann Horn <jannhorn@googlemail.com>.
60
61 2012-07-30  Jim Meyering  <meyering@redhat.com>
62
63         maint.mk: avoid a sub-shell
64         * top/maint.mk (release-prep): Remove unneeded sub-shell.
65
66 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
67
68         maint.mk: use silent-rules support from Automake
69         * top/maint.mk (news-check, vc-diff-check, announcement)
70         (no-submodule-changes, alpha beta stable, release-prep)
71         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
72
73 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
74
75         maint.mk: provide a web-manual-update target
76         * top/maint.mk: here.
77         * top/README-release: Use it to simplify the web manual update step.
78
79 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
80
81         README-release: shorten the circuit to post a news
82         * top/README-release: Point directly to the news submission form.
83
84 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
85
86         gnu-web-doc-update: fix --help
87         * build-aux/gnu-web-doc-update: The information "top level" was written
88         twice.
89
90 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
91
92         maint.mk: absolute VPATH issue
93         * top/maint.mk (release-prep): Help Git find .git/.
94         From Jim Meyering.
95
96 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
97
98         gitlog-to-changelog: fix previous change
99         * build-aux/gitlog-to-changelog: Fix condition.
100         Add missing ";".
101
102 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
103
104         gitlog-to-changelog: don't expect .git to be in $srcdir
105         Reported by Bruno Haible.
106         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
107         * build-aux/gitlog-to-changelog (&git_dir_option): New.
108         Use it.
109
110 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
111
112         maint.mk: absolute VPATH build fix
113         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
114         $(srcdir) is not a parent of $(builddir).
115
116 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
117
118         clean-temp: Fix memory leak.
119         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
120         'files' members of tmpdir.
121
122 2012-07-27  Jim Meyering  <meyering@redhat.com>
123
124         maint.mk: new rule: refresh-gnulib-patches
125         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
126         Use this rule to refresh them.
127         * top/maint.mk (refresh-gnulib-patches): New rule.
128
129 2012-07-24  Bruno Haible  <bruno@clisp.org>
130
131         gnulib-tool: Fix handling of inctests variable.
132         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
133         Reported by Nick Bowler <nbowler@elliptictech.com>.
134
135 2012-07-22  Bruno Haible  <bruno@clisp.org>
136
137         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
138         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
139         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
140         Remove exemption for getpass.h.
141         Suggested by Eric Blake.
142
143 2012-07-20  Eric Blake  <eblake@redhat.com>
144
145         verify: document conflict with -Wnested-externs
146         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
147
148         maint.mk: forbid exit(-1)
149         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
150
151 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
152
153         fsusage: port back to Solaris
154         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
155         error (fsd not declared) on Solaris 10.  Reported privately by
156         Andrew Borodin.
157
158 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
159
160         gnu-web-doc-update: fix error messages
161         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
162
163         gnu-web-doc-update: check the requirements.
164         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
165         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
166         * build-aux/bootstrap (find_tool): Comment change.
167
168 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
169
170         maint.mk: minor simplication.
171         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
172         for default values.
173
174 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
175
176         gitlog-to-changelog: VPATH build issues
177         If builddir is not a subdirectory of srcdir, running git from it will
178         fail.
179         * build-aux/gitlog-to-changelog (--srcdir): New option.
180
181 2012-07-15  Bruno Haible  <bruno@clisp.org>
182
183         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
184         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
185         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
186         Remove exemption for fpending.h.
187         Suggested by Eric Blake.
188
189 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
190
191         pthread_sigmask: fix bug on FreeBSD 9
192         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
193         Include string.h.
194         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
195         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
196         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
197         but pthread_sigmask (1729, NULL, NULL) returns zero.
198         See <http://bugs.gnu.org/11884>.
199         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
200         by inspecting whether the main call changed the old mask.
201
202 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
203
204         README-release: make it more legible
205         * top/README-release: Improve typography slightly.
206
207 2012-07-15  Jim Meyering  <meyering@redhat.com>
208
209         maint: require that each sc_... command start with "@"
210         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
211         "make sc_maint" helps us avoid this nit.
212
213 2012-07-15  Jim Meyering  <meyering@redhat.com>
214
215         maint.mk: add leading "@" to quiet new "make syntax-check" rule
216         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
217
218 2012-07-13  Eric Blake  <eblake@redhat.com>
219
220         maint.mk: new syntax check for HAVE_DECL checks
221         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
222         * cfg.mk
223         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
224         Exempt some false positives.
225         Based on a report by Karel Zak.
226
227         argp: make HAVE_DECL usage consistent
228         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
229         macros, not whether they are defined.
230         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
231         convention with other declaration checks.
232         Reported by Karel Zak, with suggestions from Paul Eggert.
233
234         stat-time: relax license to LGPLv2+
235         * modules/stat-time (License): Relax, with consent of all authors.
236
237         strndup: fix m4 usage error
238         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
239         defined, to either 0 or 1.
240         Reported by Karel Zak.
241
242 2012-07-11  Jim Meyering  <meyering@redhat.com>
243
244         maint: enable the sc_avoid_if_before_free syntax-check rule
245         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
246         (if_before_free_offenders_): Define.
247         (if_before_free_basename_re_): Define.
248         Exempt current files with useless if-before-free.
249
250 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
251
252         gettext: do not assume '#define ... defined ...' behavior
253         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
254         Do not use '#define FOO ... defined BAR ...', as the C standard says
255         it's not portable to expect that this works after macro expansion.
256         Problem reported for gzip by Steven M. Schweda in
257         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
258
259 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
260
261         getloadavg: clean out old Emacs and Autoconf cruft
262         See Glenn Morris in <http://bugs.gnu.org/11905>.
263         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
264         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
265         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
266         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
267
268 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
269
270         bootstrap: let warn be like tests/init.sh's warn_
271         Reported by Jim Meyering.
272         * build-aux/bootstrap (warn): Remove, replaced by...
273         (warnf_, warn_): these.
274         Adjust callers.
275         Shorten messages that no longer fit in 80 columns.
276
277 2012-07-09  Bruno Haible  <bruno@clisp.org>
278
279         getopt: Simplify after Emacs changed.
280         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
281         (gl_GETOPT_IFELSE): Remove macro.
282
283 2012-07-09  Jim Meyering  <meyering@redhat.com>
284
285         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
286         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
287
288         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
289         Bugs in both of those conspired to make the
290         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
291         _sc_search_regexp's handling of non-empty $in_files would filter
292         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
293         choice of in_files value meant there would be no match in most
294         projects, due to the presence of two or more Makefile.in files.
295         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
296         Fix a bug in how a non-empty $$in_files was processed:
297         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
298         in spite of the name, it's a regexp, not a list of file names.
299
300 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
301
302         getloadavg, getopt: fix commentary re configure.in
303         Autoconf is deprecating the name 'configure.in', so change it to
304         to the new name 'configure.ac' in a couple of places.
305         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
306         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
307         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
308         Emacs has renamed it to configure.ac, and it no longer refers
309         to these macros anyway.
310
311         timespec: mark functions with const attributes
312         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
313         Mark with _GL_ATTRIBUTE_CONST.
314
315 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
316
317         canonicalize[-lgpl]: handle "guessing" values when cross-building
318         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
319         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
320         matches "*yes" instead of just "yes".  Regression introduced in commit
321         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
322
323 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
324             Bruno Haible  <bruno@clisp.org>
325
326         canonicalize: make the right guess when cross-compiling to GNU
327         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
328         determine whether cross-compiling to glibc systems, so as to
329         include GNU/Hurd.
330
331 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
332
333         timespec-sub: avoid duplicate include
334         * lib/timespec-sub.c: Do not include <config.h> twice.
335         Reported by Juanma Barranquero.
336
337 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
338
339         bootstrap: use a more consistent error reporting scheme
340         * build-aux/bootstrap (warn, die): New.
341         Use them.
342
343 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
344
345         sys_time: allow too-wide tv_sec
346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
347         timeval even if tv_sec is wider than time_t.  This allows
348         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
349         as without this patch gnulib replaces struct timeval
350         and OpenBSD futimes therefore has a type mismatch.
351         * doc/posix-headers/sys_time.texi: Mention this.
352
353         pthread: check for both pthread_create and pthread_join
354         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
355         alter the check so that it tests for both pthread_create and
356         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
357         Suggested by Bruno Haible and Richard Yao in
358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
359
360         parse-datetime: doc tuneup
361         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
362         spacing issues.
363
364 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
365
366         do-release-commit-and-tag: fix the previous commit
367         * build-aux/do-release-commit-and-tag: Actually the test was right,
368         but the comment and the error message were misleading.
369         Fix comment, and improve error message.
370         Perform check first, so that NEWS is not modified uselessly.
371
372         do-release-commit-and-tag: fix typo
373         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
374         _not_ start with a stub.
375
376 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
377
378         pthread: check for pthread_create, not pthread_join
379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
380         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
381         pthread_join in libc.  I hope this removes the need for all the
382         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
383         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
384
385 2012-07-04  Jim Meyering  <meyering@redhat.com>
386
387         parse-datetime: fix failure to diagnose invalid input
388         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
389         rather than diagnosing the invalid input.  Now it reports this:
390         date: invalid date '\260'
391         * lib/parse-datetime.y (to_uchar): Define.
392         (yylex): Don't sign-extend "other" bytes.
393         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
394         Thanks to Bruno Haible for the patch to this file.
395         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
396         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
397
398 2012-07-03  Jim Meyering  <meyering@redhat.com>
399
400         bootstrap: do not require now-removed build-aux/missing
401         Now that build-aux/missing is, er, missing, bootstrap would
402         silently fail.
403         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
404         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
405         no longer part of gnulib.
406         Diagnose the failure.
407
408 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
409
410         alloca: add support for HP NonStop TNS/E native
411         * lib/alloca.in.h (alloca): Support the new host.
412         From a suggestion by Joachim Schmitz in
413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
414
415 2012-07-02  Pádraig Brady  <P@draigBrady.com>
416
417         fsusage: remove code not needed on non GNU/Linux systems.
418
419         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
420         Don't include headers no longer needed in this case.
421         * lib/fsusage.c [STAT_STATVFS &&
422         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
423         STAT_STATFS2_FRSIZE to exclude code not used in this case.
424
425 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
426
427         fsusage: include files needed for glibc 2.6 fallback
428         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
429         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
430         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
431         Problem reported by Ludovic Courtès in
432         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
433
434         fsusage: avoid needless check on GNU/Linux
435         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
436         on GNU/Linux systems, since it can't possibly work.
437
438 2012-07-01  Bruno Haible  <bruno@clisp.org>
439
440         log: Fix an autoconf >= 2.64 warning.
441         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
442         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
443
444 2012-06-28  Bruno Haible  <bruno@clisp.org>
445
446         log10f: Fix possible configuration problem.
447         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
448         $LOGF_LIBM.
449         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
450
451 2012-06-28  Bruno Haible  <bruno@clisp.org>
452
453         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
454         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
455         not gl_cv_func_unlink_works.
456         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
457
458 2012-06-27  Eric Blake  <eblake@redhat.com>
459
460         config: drop scripts that automake says are not independent
461         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
462         * build-aux/elisp-comp: Delete.
463         * build-aux/missing: Likewise.
464         * build-aux/ylwrap: Likewise.
465         * modules/elisp-comp: Likewise.
466         * MODULES.html.sh: Drop mention of elisp-comp.
467         * NEWS: Mention this.
468
469 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
470
471         root-uid: new module
472         This is for portability to Tandem's NonStop Kernel.
473         * lib/root-uid.h, modules/root-uid: New files.
474         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
475         * lib/write-any-file.c, tests/test-sethostname2.c:
476         Include "root-uid.h".
477         * lib/euidaccess.c (euidaccess):
478         * lib/pt_chown.c (main):
479         * lib/unlinkdir.c (cannot_unlink_dir):
480         * lib/write-any-file.c (can_write_any_file):
481         * m4/mknod.m4 (gl_FUNC_MKNOD):
482         * tests/test-sethostname2.c (geteuid, main):
483         Don't assume ROOT_UID == 0.
484         * modules/euidaccess (Depends-on):
485         * modules/pt_chown (Depends-on):
486         * modules/sethostname-tests (Depends-on):
487         * modules/unlinkdir (Depends-on):
488         * modules/write-any-file (Depends-on):
489         Add root-uid.
490
491         regex: use locale-independent comparison for codeset name
492         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
493         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
494         for codeset name.
495         * lib/regex_internal.h: Do not include <strings.h>, since we
496         no longer use strcasecmp.
497         * modules/regex (Depends-on): Remove strcase.
498
499 2012-06-23  Bruno Haible  <bruno@clisp.org>
500
501         getopt-posix: No longer guarantee that option processing is resettable.
502         * doc/posix-functions/getopt.texi: Drop description of problem with
503         internal state. Fix info about mingw and msvc9.
504         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
505         option processing by getopt(). Run three test programs instead of one.
506         Simplify cross-compilation guess.
507         * NEWS: Mention the change.
508         Reported by Rich Felker <dalias@aerifal.cx>.
509
510 2012-06-26  Bruno Haible  <bruno@clisp.org>
511
512         argp, regex: Ensure strcasecmp gets declared.
513         * lib/argp-help.c: Include <strings.h>.
514         * lib/regex_internal.h: Likewise.
515         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
516
517 2012-06-24  Bruno Haible  <bruno@clisp.org>
518
519         ptsname_r: Make it consistent with ptsname on AIX.
520         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
521         implementation as for OSF/1.
522         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
523         a pty master.
524
525         ptsname_r: Make it consistent with ptsname on OSF/1.
526         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
527         OSF/1.
528
529 2012-06-24  Bruno Haible  <bruno@clisp.org>
530
531         ttyname_r: Fix result on OSF/1, Solaris.
532         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
533
534 2012-06-24  Bruno Haible  <bruno@clisp.org>
535
536         ptsname_r: Add support for Solaris.
537         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
538         Solaris.
539
540         ptsname_r: Fix test failure on native Windows.
541         * modules/ptsname_r (Depends-on): Add isatty.
542
543         ptsname_r: Fix test failures on IRIX, Solaris.
544         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
545         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
546         accordingly.
547         * lib/ptsname_r.c: Include <fcntl.h>.
548         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
549         set errno if fd is invalid.
550         * tests/test-isatty.c (main): Update comments.
551
552 2012-06-24  Bruno Haible  <bruno@clisp.org>
553
554         ptsname test: Extend test.
555         * tests/test-ptsname.c: Include <errno.h>.
556         (main): Test behaviour with invalid file descriptor.
557
558 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
559
560         time: fix obsolete comment
561         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
562         reference to HAVE_STRUCT_TIMESPEC in comment.
563
564 2012-06-23  Bruno Haible  <bruno@clisp.org>
565
566         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
568         does not handle abbreviated long options with equivalent
569         disambiguations, set gl_replace_getopt to yes.
570         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
571
572 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
573
574         time_r: fix typo that always overrode localtime_r decl
575         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
576         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
577         not in a standard include.
578
579 2012-06-22  Bruno Haible  <bruno@clisp.org>
580
581         Write "Mac OS X" instead of "MacOS X".
582         * README: Write "Mac OS X" instead of "MacOS X".
583         * build-aux/bootstrap: Likewise.
584         * build-aux/install-reloc: Likewise.
585         * lib/acl-internal.h: Likewise.
586         * lib/acl_entries.c: Likewise.
587         * lib/argp-ba.c: Likewise.
588         * lib/argp-pv.c: Likewise.
589         * lib/config.charset: Likewise.
590         * lib/copy-acl.c: Likewise.
591         * lib/csharpexec.c: Likewise.
592         * lib/euidaccess.c: Likewise.
593         * lib/fbufmode.c: Likewise.
594         * lib/fflush.c: Likewise.
595         * lib/file-has-acl.c: Likewise.
596         * lib/filemode.h: Likewise.
597         * lib/fpurge.c: Likewise.
598         * lib/freadable.c: Likewise.
599         * lib/freadahead.c: Likewise.
600         * lib/freading.c: Likewise.
601         * lib/freadptr.c: Likewise.
602         * lib/freadseek.c: Likewise.
603         * lib/fseeko.c: Likewise.
604         * lib/fseterr.c: Likewise.
605         * lib/fsusage.c: Likewise.
606         * lib/fwritable.c: Likewise.
607         * lib/fwriting.c: Likewise.
608         * lib/get-rusage-as.c: Likewise.
609         * lib/get-rusage-data.c: Likewise.
610         * lib/getdomainname.c: Likewise.
611         * lib/idpriv-drop.c: Likewise.
612         * lib/idpriv-droptemp.c: Likewise.
613         * lib/localcharset.c: Likewise.
614         * lib/locale.in.h: Likewise.
615         * lib/localename.c: Likewise.
616         * lib/mbsrtowcs-state.c: Likewise.
617         * lib/nproc.c: Likewise.
618         * lib/passfd.c: Likewise.
619         * lib/posix_openpt.c: Likewise.
620         * lib/printf-parse.c: Likewise.
621         * lib/progreloc.c: Likewise.
622         * lib/safe-read.h: Likewise.
623         * lib/safe-write.h: Likewise.
624         * lib/sched.in.h: Likewise.
625         * lib/set-mode-acl.c: Likewise.
626         * lib/signal.in.h: Likewise.
627         * lib/stdint.in.h: Likewise.
628         * lib/stdio-impl.h: Likewise.
629         * lib/stdlib.in.h: Likewise.
630         * lib/strtod.c: Likewise.
631         * lib/sys_select.in.h: Likewise.
632         * lib/tcgetsid.c: Likewise.
633         * lib/unistd.in.h: Likewise.
634         * lib/unlockpt.c: Likewise.
635         * lib/vasnprintf.c: Likewise.
636         * lib/vma-iter.c: Likewise.
637         * lib/wcsrtombs-state.c: Likewise.
638         * m4/acl.m4: Likewise.
639         * m4/acosl.m4: Likewise.
640         * m4/asinl.m4: Likewise.
641         * m4/atanl.m4: Likewise.
642         * m4/c-stack.m4: Likewise.
643         * m4/cosl.m4: Likewise.
644         * m4/expl.m4: Likewise.
645         * m4/extensions.m4: Likewise.
646         * m4/fdatasync.m4: Likewise.
647         * m4/fmal.m4: Likewise.
648         * m4/frexp.m4: Likewise.
649         * m4/frexpf.m4: Likewise.
650         * m4/frexpl.m4: Likewise.
651         * m4/fsusage.m4: Likewise.
652         * m4/getdomainname.m4: Likewise.
653         * m4/getloadavg.m4: Likewise.
654         * m4/getopt.m4: Likewise.
655         * m4/gettext.m4: Likewise.
656         * m4/gnulib-common.m4: Likewise.
657         * m4/intdiv0.m4: Likewise.
658         * m4/intlmacosx.m4: Likewise.
659         * m4/largefile.m4: Likewise.
660         * m4/ldexpl.m4: Likewise.
661         * m4/link-follow.m4: Likewise.
662         * m4/locale-ar.m4: Likewise.
663         * m4/locale-fr.m4: Likewise.
664         * m4/locale-ja.m4: Likewise.
665         * m4/locale-tr.m4: Likewise.
666         * m4/locale-zh.m4: Likewise.
667         * m4/locale_h.m4: Likewise.
668         * m4/lock.m4: Likewise.
669         * m4/logl.m4: Likewise.
670         * m4/mathfunc.m4: Likewise.
671         * m4/minus-zero.m4: Likewise.
672         * m4/mktime.m4: Likewise.
673         * m4/mmap-anon.m4: Likewise.
674         * m4/multiarch.m4: Likewise.
675         * m4/nanosleep.m4: Likewise.
676         * m4/nocrash.m4: Likewise.
677         * m4/poll.m4: Likewise.
678         * m4/printf-frexpl.m4: Likewise.
679         * m4/printf.m4: Likewise.
680         * m4/signbit.m4: Likewise.
681         * m4/sinl.m4: Likewise.
682         * m4/sqrtl.m4: Likewise.
683         * m4/strerror_r.m4: Likewise.
684         * m4/tanl.m4: Likewise.
685         * m4/threadlib.m4: Likewise.
686         * m4/ttyname_r.m4: Likewise.
687         * m4/unlink.m4: Likewise.
688         * m4/visibility.m4: Likewise.
689         * m4/wcwidth.m4: Likewise.
690         * tests/minus-zero.h: Likewise.
691         * tests/test-alloca-opt.c: Likewise.
692         * tests/test-copy-acl.sh: Likewise.
693         * tests/test-copy-file.sh: Likewise.
694         * tests/test-fdatasync.c: Likewise.
695         * tests/test-file-has-acl.sh: Likewise.
696         * tests/test-flock.c: Likewise.
697         * tests/test-fsync.c: Likewise.
698         * tests/test-localename.c: Likewise.
699         * tests/test-malloca.c: Likewise.
700         * tests/test-nonblocking-pipe.h: Likewise.
701         * tests/test-nonblocking-socket.h: Likewise.
702         * tests/test-openpty.c: Likewise.
703         * tests/test-posix_openpt.c: Likewise.
704         * tests/test-ptsname.c: Likewise.
705         * tests/test-ptsname_r.c: Likewise.
706         * tests/test-sameacls.c: Likewise.
707         * tests/test-select.h: Likewise.
708         * tests/test-set-mode-acl.sh: Likewise.
709         * tests/test-snprintf-posix.h: Likewise.
710         * tests/test-sprintf-posix.h: Likewise.
711         * tests/test-strtod.c: Likewise.
712         * tests/test-time.c: Likewise.
713         * tests/test-vasnprintf-posix.c: Likewise.
714         * tests/test-vasprintf-posix.c: Likewise.
715         * doc/acl-resources.txt: Likewise.
716         * doc/**/*.texi: Likewise.
717         Reported by Max Horn <max@quendi.de>.
718
719 2012-06-22  Bruno Haible  <bruno@clisp.org>
720
721         grantpt: Relax requirement regarding invalid file descriptors.
722         * lib/grantpt.c: Don't include <fcntl.h>.
723         (grantpt): Don't verify the validity of the file descriptor.
724         * modules/grantpt (Depends-on): Remove fcntl-h.
725         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
726         file descriptors.
727         * doc/posix-functions/grantpt.texi: Document more platforms on which
728         grantpt succeeds for invalid file descriptors.
729         Reported by Rich Felker <dalias@aerifal.cx>.
730
731 2012-06-22  Bruno Haible  <bruno@clisp.org>
732
733         fbufmode test: Don't test unportable behaviour.
734         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
735         (main): Invoke it three times.
736         Reported by Szabolcs Nagy <nsz@port70.net>
737         and Rich Felker <dalias@aerifal.cx>.
738
739 2012-06-21  Bruno Haible  <bruno@clisp.org>
740
741         gnulib-tool: Refactor inctests variable.
742         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
743         (func_modules_transitive_closure,
744         func_modules_transitive_closure_separately,
745         func_import, func_create_testdir): Update.
746
747         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
748         * gnulib-tool: Accept option --without-tests.
749         (func_usage): Document --without-tests option. Rearrange.
750         (inctests): Normalize according to the mode.
751         * NEWS: Mention the change.
752         Suggested by Simon Josefsson.
753
754 2012-06-21  Bruce Korb  <bkorb@gnu.org>
755
756         parse-duration test: Avoid spurious output.
757         * tests/test-parse-duration.sh: Reindent with leading tabs.
758
759 2012-06-21  Jim Meyering  <meyering@redhat.com>
760
761         maint: disable the strncpy prohibition
762         * cfg.mk: Do not prohibit strncpy here.
763
764 2012-06-21  Bruno Haible  <bruno@clisp.org>
765
766         nonblocking: Avoid compilation error on mingw64.
767         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
768         fscanf.
769         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
770         * modules/vfscanf (configure.ac): Likewise.
771         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
772         definition only if stdio.h has prepared it.
773         Reported by Daniel P. Berrange <berrange@redhat.com>.
774
775 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
776
777         gnulib-tool: Use readlink if it is available.
778         * gnulib-tool (func_readlink): Choose function more appropriately.
779
780 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
781
782         posixtm-tests: port to buggy compiler
783         Problem reported by Simon Josefsson in
784         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
785         * modules/posixtm-tests (Depends-on): Add stdint.
786         * tests/test-posixtm.c (struct posixtm_test.t_expected):
787         Now of type int_least64_t, not int64_t, both because that's
788         what INT64_C returns and because int_least64_t works even
789         on 72-bit hosts.
790         (T): Use INT64_C on constants outside the traditional int range,
791         to work around compiler bug noted by Simon.
792
793         mktime: fix integer overflow in 'configure'-time test
794         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
795         after integer overflow.  Problem reported by Rich Felker in
796         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
797         Also, don't look for further instances of a bug if we've already
798         found one instance; this helps 'configure' run faster.
799
800 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
801
802         tmpfile, clean-temp: Fix invocation of GetVersionEx.
803         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
804         GetVersionEx correctly.
805         * lib/clean-temp.c (supports_delete_on_close): Likewise.
806
807 2012-06-20  Bruno Haible  <bruno@clisp.org>
808
809         fdopen: Allow implementations that don't reject invalid fd arguments.
810         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
811         succeeds.
812         Reported by Rich Felker <dalias@aerifal.cx>.
813
814 2012-06-20  Simon Josefsson  <simon@josefsson.org>
815
816         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
817         bring in LIBINTL.
818
819 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
820
821         init.sh: do not rely on autoupated PWD
822         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
823         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
824         Although Nelson's bug was not necessarily fixed by this patch,
825         it seems wise to make the change for safety.
826         * tests/init.sh (path_prepend_): Do not rely on PWD updating
827         automagically after 'cd'; this is not reliable on older shells.
828         (setup_): Fail if we cannot cd to temporary directory.
829
830 2012-06-19  Bruno Haible  <bruno@clisp.org>
831
832         stat, fstat: Avoid warnings on mingw64.
833         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
834         redefining.
835         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
836         Reported by Daniel P. Berrange <berrange@redhat.com>.
837
838 2012-06-19  Bruno Haible  <bruno@clisp.org>
839
840         stdioext: Add support for musl libc.
841
842         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
843         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
844
845         * m4/fseterr.m4: New file.
846         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
847         function exists.
848         * modules/fseterr (Files): Add m4/fseterr.m4.
849         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
850         __fseterr does not exist.
851         (Makefile.am): Remove fseterr.c from lib_SOURCES.
852
853         * lib/freadable.h: Update comment.
854
855         * lib/fwritable.h: Update comment.
856
857         * lib/freading.h: Update comment.
858
859         * lib/fwriting.h: Update comment.
860
861         * m4/freadahead.m4: New file.
862         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
863         that function exists.
864         * modules/freadahead (Files): Add m4/freadahead.m4.
865         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
866         __freadahead does not exist.
867         (Makefile.am): Remove freadahead.c from lib_SOURCES.
868
869         * m4/freadptr.m4: New file.
870         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
871         function exists.
872         * modules/freadptr (Files): Add m4/freadptr.m4.
873         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
874         __freadptr does not exist.
875         (Makefile.am): Remove freadptr.c from lib_SOURCES.
876
877         * m4/freadseek.m4: New file.
878         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
879         exists.
880         * modules/freadseek (Files): Add m4/freadseek.m4.
881         (configure.ac): Invoke gl_FUNC_FREADSEEK.
882
883         * lib/fpurge.c (fpurge): Update comment.
884
885         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
886
887 2012-06-19  Bruno Haible  <bruno@clisp.org>
888
889         *printf-posix: Put more info into config.log.
890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
891         exit code into config.log.
892
893 2012-06-19  Bruno Haible  <bruno@clisp.org>
894
895         getopt-gnu: Fix exit code overflow in autoconf test.
896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
897         to keep them below < 128.
898
899 2012-06-17  Jim Meyering  <meyering@redhat.com>
900
901         maint.mk: fix typo in code to derive GPG key at release time
902         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
903
904 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
905
906         regex: avoid warning when pointers are not long
907         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
908         and uintptr_t, not long, for portability to hosts where pointers and
909         long have different sizes.  Issue noted by Daniel P. Berrange in
910         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
911         and fix suggested by Bruno Haible in
912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
913
914 2012-06-17  Bruno Haible  <bruno@clisp.org>
915
916         dummy: Relicense into the public domain.
917         * modules/dummy (License): Set to "public domain".
918         Suggested by Reuben Thomas.
919
920 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
921
922         announce-gen: VPATH issues
923         * build-aux/announce-gen (--srcdir): New option, used to trim the
924         $srcdir part of the path from $builddir to NEWS.
925         * top/maint.mk (announcement): Adjust.
926
927 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
928
929         gnu-web-doc-update: VPATH builds
930         * build-aux/gnu-web-doc-update (--builddir): New option.
931         Revamp the handling of options.
932         Prefer $(...) to `...`.
933         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
934         the template, and it is GNU mktemp specific.
935         Prefer set -e to long series of &&.
936         Restore the initial git branch, not "master".
937         Properly initialize submodules (don't rely only on bootstrap).
938         Do not reconfigure blindly, use config.status.
939         * top/README-release: Update instructions for gnu-web-doc-update.
940
941 2012-06-11  Jim Meyering  <meyering@redhat.com>
942
943         maint.mk: revert most of the previous change re "all these"
944         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
945         For rationale, see the discussion at
946         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
947
948 2012-06-10  Karl Berry  <karl@gnu.org>
949
950         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
951
952         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
953
954 2012-06-10  Bruce Korb  <bkorb@gnu.org>
955
956         parse-duration: Relicense under LGPLv2+.
957         * modules/parse-duration (License): Change to LGPLv2+.
958
959 2012-06-10  Jim Meyering  <meyering@redhat.com>
960
961         maint.mk: prohibit common grammar error: "all these"
962         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
963         the list of prohibited word sequences.  It should be "all of these".
964         * lib/tempname.c (__gen_tempname): Fix one of them.
965
966 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
967
968         do-release-commit-and-tag: support VPATH builds
969         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
970         (noteworthy): Defined earlier to factor its value.
971         (noteworthy_stub): New.
972         Use it to factor.
973         (help_version): Split into...
974         (help, version): these.
975         Adjust the option processing part.
976         Support "--option=value" in addition to "--option value".
977         (builddir): New.
978         (--builddir): New option.
979         * top/README-release: Document this.
980         Reword slightly so that the reader cannot understand that he
981         has to do these steps before calling do-release-commit-and-tag.
982
983 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
984
985         readme-release: also require announce-gen and maintainer-makefile
986         * modules/readme-release (Depends-on): here.
987         * modules/announce-gen, modules/do-release-commit-and-tag,
988         modules/gnu-web-doc-update, modules/maintainer-makefile
989         (Description): Point to readme-release.
990
991 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
992
993         maint.mk: fix VPATH issues.
994         * top/maint.mk (news-check): GNU Make understand $< very well.
995         (release-prep): NEWS is in $(srcdir).
996
997 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
998
999         readme-release: require the promoted modules.
1000         * modules/readme-release (Depends-on): Add
1001         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1002         in this text.
1003
1004 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1005             Bruno Haible  <bruno@clisp.org>
1006
1007         error, strerror-override: Support mingw64 from Fedora 17.
1008         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1009         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1010         EINPROGRESS.
1011         * lib/strerror-override.h (strerror_override): Test it.
1012         * lib/strerror-override.c (strerror_override): Likewise.
1013         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1014
1015 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1016             Bruno Haible  <bruno@clisp.org>
1017
1018         error, strerror-override: Support mingw64 from Fedora 17.
1019         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1020         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1021         * lib/strerror-override.h (strerror_override): Test it.
1022         * lib/strerror-override.c (strerror_override): Likewise.
1023
1024 2012-06-03  Bruno Haible  <bruno@clisp.org>
1025
1026         error, strerror-override: Support new errno values from POSIX:2008.
1027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1028         ENOTRECOVERABLE.
1029         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1030         platforms.
1031         * lib/strerror-override.c (strerror_override): Conditionalize the
1032         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1033         * lib/strerror-override.h (strerror_override): Declare also if
1034         GNULIB_defined_EOWNERDEAD is defined.
1035         * tests/test-errno.c (e130, e131): New variables.
1036         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1037         ENOTRECOVERABLE.
1038         Reported by Paolo Bonzini.
1039
1040 2012-05-31  Jim Meyering  <meyering@redhat.com>
1041
1042         savewd: add missing dependency on sys_wait module
1043         * modules/savewd (Depends-on): Add sys_wait, needed at least
1044         for MSVC.  Report and suggested change by Michael Goffioul.
1045
1046 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1047
1048         system-quote-tests: port to CentOS 5
1049         Problem reported by Tom G. Christensen in
1050         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1051         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1052
1053 2012-05-29  Jim Meyering  <meyering@redhat.com>
1054
1055         maint: fix typos in comments and ChangeLog
1056         Culprits identified and fixed mostly automatically using these commands:
1057         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1058         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1059         using http://github.com/lyda/misspell-check
1060         * ChangeLog: Fix typos.
1061         * doc/solaris-versions: Likewise.
1062         * lib/regexec.c (re_search_stub): Likewise.
1063         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1064
1065 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1066
1067         manywarnings: remove duplicate -Wmultichar entry
1068         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1069         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1070         so keep the entry marked as documented.
1071
1072 2012-05-27  Karl Berry  <karl@gnu.org>
1073
1074         * config/srclist.txt (mktime.c): remove last libc sync,
1075         perhaps just temporarily.
1076
1077 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         regex: don't assume uint64_t or uint32_t
1080         * lib/regcomp.c (init_word_char): Don't assume that the types
1081         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1082         them, and on some 32-bit compilers there is no uint64_t.
1083         Problem reported by Gianluigi Tiesi in
1084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1085
1086 2012-05-25  Jim Meyering  <meyering@redhat.com>
1087
1088         maint.mk: add strncpy-prohibiting syntax-check rule
1089         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1090
1091 2012-05-24  Jim Meyering  <meyering@redhat.com>
1092
1093         maint.mk: compute $(gpg_key_ID) more portably
1094         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1095         That use of sed is not portable to some fringe systems.
1096         Reported by Paul Eggert in
1097         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1098
1099 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1100
1101         mktime: sync from glibc
1102         * config/srclist.txt: Uncomment mktime.c.
1103         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1104         First, indent with tabs, since glibc uses tabs and doesn't want to
1105         change and we'd rather be identical to glibc.  Also, two small
1106         coding changes:
1107         (isdst_differ): Use &&, not &, as && is the usual style.
1108         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1109         for clarity.
1110
1111 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1112
1113         announce-gen: du -h is more portable than du --human
1114         * build-aux/announce-gen (sizes): Invoke du with -h instead
1115         of --human.  Accept leading white space in its output.
1116
1117 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1118
1119         announce-gen: Improve diagnostics.
1120         * build-aux/announce-gen: When parsing command line options,
1121         prefer "announce-gen: option --release-type requires an argument"
1122         to "Option release-type requires an argument".
1123
1124 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1125
1126         maint.mk: gpg_key_ID: use sed more portably
1127         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1128         the closing brace.
1129         (refresh-po): Fuse two sed invocations into one.
1130
1131 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1132
1133         gitlog-to-changelog: support the log message format used in Bison.
1134         * build-aux/gitlog-to-changelog: Support --strip-tab and
1135         --strip-cherry-picked.
1136
1137 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1138
1139         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1140         the rest of the current time slice to another thread in the current
1141         process. So if the thread that feeds the file decscriptor we're
1142         polling is not in the current process, we get busy-waiting.
1143         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1144         Patch from Theodore Leblond.
1145         * lib/select.c: Split polling out of the loop that sets the output
1146         fd_sets.  Check for zero result and loop if the wait timeout is
1147         infinite.
1148
1149 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1150
1151         select: Fix build error on IRIX 6.5.
1152         * lib/select.c: Include stddef.h for NULL.
1153
1154 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1155
1156         gc: fix libgcrypt detection on older machines.
1157         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1158         copyright years because the file has been distributed every year
1159         since it was created.
1160
1161 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1162
1163         crypto: fix bug in large buffer handling
1164         Problem reported by Serge Belyshev for glibc in
1165         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1166         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1167         * lib/md4.c (md4_process_block):
1168         * lib/md5.c (md5_process_block):
1169         * lib/sha1.c (sha1_process_block):
1170         * lib/sha256.c (sha256_process_block):
1171         Don't assume the buffer length is less than 2**32.
1172         * lib/sha512.c (sha512_process_block): Likewise.
1173         Here, the bug is present only in the rare case where the host does
1174         not support uint64_t or where size_t is wider than 64 bits.
1175         Use u64size to work around the problems.
1176         * lib/u64.h (u64size): New macro.
1177
1178 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1179
1180         fsusage: fix block size returned on older Linux 2.6
1181
1182         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1183         which is available since Linux 2.6.
1184         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1185         when the member is available so it can be used as a fallback.
1186         * doc/posix-functions/statvfs.texi: Mention the hang issue
1187         on Linux < 2.6.36.
1188
1189 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         bootstrap: suppress stderr chatter
1192         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1193         Omit unnecessary chatter to stderr.  The main program chatter
1194         was there only inadvertantly.
1195
1196         bootstrap: .gitignore files created by autopoint, libtool
1197         I ran into this problem when bootstrapping the latest diffutils.
1198         After './bootstrap', 'git status' reported lots of untracked files
1199         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1200         autopoint and do not need to be version-controlled.
1201         * build-aux/bootstrap: Put into .gitignore the files that
1202         autopoint and libtool create, by keeping track of files that exist
1203         after but not before these programs are run.
1204         (version_controlled_file): Move up.  2nd arg is now full file
1205         name, not base name; this is more convenient.  Put CVS at the end,
1206         as it's now somewhat deprecated.
1207
1208 2012-05-14  Jim Meyering  <meyering@redhat.com>
1209
1210         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1211         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1212         definition.  Reported by Bruno Haible.
1213
1214 2012-05-13  Bruno Haible  <bruno@clisp.org>
1215             Paul Eggert  <eggert@cs.ucla.edu>
1216
1217         binary-io: Define set_binary_mode function.
1218         * lib/binary-io.h (set_binary_mode): New function.
1219         (SET_BINARY): Define in terms of set_binary_mode.
1220         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1221         * tests/test-binary-io.c (main): Accept an argument, and test either
1222         set_binary_mode or SET_BINARY depending on the argument.
1223         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1224         argument. Clean up also t-bin-out0.tmp.
1225
1226 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1227
1228         bootstrap: take advantage of POSIX shell features
1229
1230         The 'bootstrap' script offered by Gnulib script already uses POSIX
1231         shell features (like $((...)) arithmetic expansions) that are not
1232         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1233         means that bootstrap must already be run using a proper POSIX shell,
1234         which will thus provide more features, like ${var#pattern} parameter
1235         expansion or inversion of a command exit status with '!'.  We can
1236         thus use these features to improve the clarity and the performances
1237         of the bootstrap script.
1238
1239         Suggested by Eric Blake.
1240
1241         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1242         of sed/expr plus command substitutions, to save some forks.  While
1243         we are at it, prefer the POSIX $(...) form of command substitution,
1244         rather than the legacy form `...` (since the former is visually
1245         clearer and interacts better with quoting), and prefer the idiom:
1246           "if ! CMD; then ACTION ..."
1247         over the idiom:
1248           "if CMD; then :; else ACTION ..."
1249         which was required by legacy Bourne shells not supporting '!'.
1250
1251 2012-05-12  Bruno Haible  <bruno@clisp.org>
1252
1253         system-quote: Add more comments.
1254         * lib/system-quote.h: Add more comments about wilcards and limitations.
1255         Suggested by Eli Zaretskii <eliz@gnu.org>.
1256
1257         sh-quote, system-quote: Add comments about wildcards.
1258         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1259         * lib/system-quote.h: Likewise.
1260         Reported by Eli Zaretskii <eliz@gnu.org>.
1261
1262 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1263
1264         fsusage: check for GNU/Linux statvfs problem dynamically
1265         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1266         Define STAT_STATFS2_BSIZE too, since in this case the code now
1267         checks dynamically whether statvfs is reliable, falling back on
1268         Linux-style statfs otherwise.
1269         (statvfs_works): New function, for dynamically testing statvfs.
1270         (get_fs_usage) [STAT_STATVFS]: Use it.
1271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1272         statvfs on GNU/Linux hosts, since it's now done dynamically.
1273
1274 2012-05-10  Bruno Haible  <bruno@clisp.org>
1275
1276         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1277         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1278         '?' character.
1279         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1280         * tests/test-system-quote-main.c (check_all): Check also strings like
1281         "??????????".
1282         Reported by Eli Zaretskii <eliz@gnu.org>.
1283
1284 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         _Noreturn: port config.h to gcc -Wundef
1287         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1288         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1289         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1290
1291 2012-05-10  Bruno Haible  <bruno@clisp.org>
1292
1293         system-quote: Refactor.
1294         * lib/system-quote.h (system_quote_copy): Fix comment.
1295         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1296         New functions, extracted from system_quote_copy.
1297         (system_quote_length, system_quote_copy): Use these functions.
1298         Reported by Paul Eggert.
1299
1300 2012-05-08  Bruno Haible  <bruno@clisp.org>
1301
1302         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1303         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1304
1305 2012-05-08  Bruno Haible  <bruno@clisp.org>
1306
1307         Tests for module 'system-quote'.
1308         * modules/system-quote-tests: New file.
1309         * tests/test-system-quote.sh: New file.
1310         * tests/test-system-quote-main.c: New file.
1311         * tests/test-system-quote-child.c: New file.
1312
1313         New module 'system-quote'.
1314         * lib/system-quote.h: New file.
1315         * lib/system-quote.c: New file.
1316         * modules/system-quote: New file.
1317
1318 2012-05-08  Bruno Haible  <bruno@clisp.org>
1319
1320         sh-quote: Make C++ safe and allow multiple inclusion.
1321         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1322         declarations in extern "C".
1323
1324 2012-05-08  Bruno Haible  <bruno@clisp.org>
1325
1326         sh-quote tests: Make tests stricter.
1327         * tests/test-sh-quote.c (check_one): Check the return value of
1328         shell_quote_copy.
1329         (main): Check a string with a CR character. Check a string that
1330         contains UCHAR_MAX.
1331
1332 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1333
1334         warnings.m4: provide a means to specify the program to compile.
1335         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1336         (gl_WARN_ADD): here.
1337         Use gl_AS_VAR_APPEND.
1338         Support an argument to specify the program to compile.
1339         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1340         AC_SUBST the WARN_CFLAGS when they are used.
1341         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1342         leave this to gl_WARN_ADD.
1343
1344 2012-05-08  Eric Blake  <eblake@redhat.com>
1345
1346         doc: recommendations on gettext version
1347         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1348         choice between versions.
1349         * DEPENDENCIES (gettext): Cover both approaches.
1350
1351 2012-05-08  Jim Meyering  <meyering@redhat.com>
1352
1353         init.sh: explain why EXEEXT support uses aliases rather than functions
1354         * tests/init.sh: Add a comment.
1355
1356         init.sh: don't let bash aliases interfere with tests
1357         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1358         is bash.  This avoids problems for those who alias standard commands to
1359         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1360         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1361
1362 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         stdint: be more consistent with glibc, SunOS libc
1365         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1366         (gl_int_fast16_t, gl_uint_fast16_t)
1367         (gl_int_fast32_t, gl_uint_fast32_t)
1368         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1369         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1370         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1371         Be consistent with glibc by default, and with SunOS 5.10 and later
1372         if __sun is defined.  This lessens the likelihood of clashes if
1373         code compiled for older hosts is combined with code compiled for
1374         newer ones.  Problem reported by Niels Möller in
1375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1376
1377 2012-05-07  Eric Blake  <eblake@redhat.com>
1378
1379         isatty: relax license to LGPLv2+
1380         * modules/isatty (License): Relax license.
1381
1382 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1383
1384         stat-size: comment fix
1385         * lib/stat-size.h: Remove obsolete comment about indenting.
1386
1387 2012-05-06  Bruno Haible  <bruno@clisp.org>
1388
1389         Tests for module 'sh-quote'.
1390         * modules/sh-quote-tests: New file.
1391         * tests/test-sh-quote.c: New file.
1392
1393 2012-05-06  Bruno Haible  <bruno@clisp.org>
1394
1395         sh-quote: Improve shell_quote_argv's signature.
1396         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1397         * lib/sh-quote.c (shell_quote_argv): Likewise.
1398
1399 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1400
1401         stdint: document issues with int_fast8_t etc.
1402         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1403         stdint.h substitutes may define these types differently.  See
1404         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1405
1406 2012-05-05  Bruno Haible  <bruno@clisp.org>
1407
1408         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1409         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1410         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1411         or 'guessing no (mishandles large arguments)'.
1412
1413 2012-05-05  Bruno Haible  <bruno@clisp.org>
1414
1415         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1416         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1417         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1418         set gl_cv_func_link_follows_symlink to "guessing no".
1419
1420 2012-05-05  Bruno Haible  <bruno@clisp.org>
1421
1422         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1423         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1424         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1425         "guessing no".
1426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1427
1428 2012-05-05  Bruno Haible  <bruno@clisp.org>
1429
1430         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1431         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1432         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1433         set gl_cv_struct_dirent_d_ino to "guessing yes".
1434
1435 2012-05-05  Bruno Haible  <bruno@clisp.org>
1436
1437         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1438         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1439         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1440         "guessing yes".
1441
1442 2012-05-05  Bruno Haible  <bruno@clisp.org>
1443
1444         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1445         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1446         compiling to a glibc system, set gl_cv_func_signbit and
1447         gl_cv_func_signbit_gcc to "guessing yes".
1448
1449 2012-05-05  Bruno Haible  <bruno@clisp.org>
1450
1451         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1452         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1453         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1454         to "guessing yes".
1455         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1456         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1457
1458 2012-05-05  Bruno Haible  <bruno@clisp.org>
1459
1460         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1461         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1462         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1463         gl_cv_func_realpath_works to "guessing yes".
1464
1465 2012-05-05  Bruno Haible  <bruno@clisp.org>
1466
1467         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1469         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1470
1471 2012-05-04  Bruno Haible  <bruno@clisp.org>
1472
1473         Tweak last commit.
1474         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1475         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1476
1477 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         unistd_h: make it easier to avoid sys_types_h
1480         This is useful for Emacs, which has its own method of porting to
1481         Windows, and which therefore does not need the sys_types_h module.
1482         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1483         code moved here from gl_SYS_TYPES_H.
1484         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1485         using the code directly.
1486         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1487         gl_SYS_TYPES_H.
1488         * modules/sys_types (Files):
1489         * modules/unistd (Files): Add m4/off_t.m4.
1490
1491 2012-05-03  Bruno Haible  <bruno@clisp.org>
1492
1493         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1494         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1495         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1496         "guessing yes" or "guessing no".
1497         (gl_FUNC_LSTAT): Update.
1498         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1499         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1500         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1501
1502 2012-05-03  Bruno Haible  <bruno@clisp.org>
1503
1504         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1505         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1506         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1507         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1508         cross-compiling, choose the first alternative on glibc systems.
1509         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1510
1511 2012-05-03  Bruno Haible  <bruno@clisp.org>
1512
1513         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1514         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1515         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1516
1517 2012-05-03  Bruno Haible  <bruno@clisp.org>
1518
1519         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1520         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1521
1522 2012-05-03  Bruno Haible  <bruno@clisp.org>
1523
1524         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1525         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1526         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1527         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1528         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1529         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1530         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1531         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1532         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1533         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1534         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1535         gl_cv_func_chown_ctime_works to "guessing yes".
1536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1537         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1538         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1539         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1540         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1542         compiling to glibc systems, set gl_cv_func_open_directory_works to
1543         "guessing yes".
1544         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1546         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1547         "guessing yes".
1548         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1549         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1550         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1551         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1552         "guessing yes".
1553         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1554         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1555         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1556         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1557         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1558         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1559         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1560         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1561         "guessing yes".
1562         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1563         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1564         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1565         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1566         "guessing yes".
1567         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1568         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1569         "guessing yes".
1570         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1571         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1572         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1573         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1574         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1575         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1576         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1577         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1578         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1579         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1580         "guessing yes".
1581         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1582         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1583         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1584         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1585         "guessing yes".
1586         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1587         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1588         "guessing yes".
1589         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1590         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1591         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1592         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1593         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1594         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1595         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1596         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1597         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1598         "guessing yes".
1599         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1600         compiling to glibc systems, set gl_cv_func_mknod_works to
1601         "guessing yes".
1602         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1603         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1604         "guessing yes".
1605         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1606         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1607         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1608         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1609         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1610         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1611         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1612         compiling to glibc systems, set gl_cv_func_svid_putenv to
1613         "guessing yes".
1614         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1615         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1616         "guessing yes".
1617         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1618         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1619         "guessing yes".
1620         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1621         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1622         to "guessing yes".
1623         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1624         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1625         to "guessing yes".
1626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1627         compiling to glibc systems, set gl_cv_func_rmdir_works to
1628         "guessing yes".
1629         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1630         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1631         gl_cv_func_unlink_parent_fails to "guessing yes".
1632         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1633         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1634         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1635         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1636         gl_cv_func_rename_dest_works to "guessing yes".
1637         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1638         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1639         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1640         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1641         "guessing yes".
1642         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1643         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1644         "guessing yes".
1645         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1646         compiling to glibc systems, set gl_cv_func_setenv_works to
1647         "guessing yes".
1648         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1649         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1650         "guessing yes".
1651         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1652         compiling to glibc systems, set gl_cv_func_sleep_works to
1653         "guessing yes".
1654         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1655         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1656         "guessing yes".
1657         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1658         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1659         "guessing yes".
1660         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1661         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1662         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1663         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1664         "guessing yes".
1665         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1666         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1667         "guessing yes".
1668         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1669         compiling to glibc systems, set gl_cv_func_usleep_works to
1670         "guessing yes".
1671         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1672         compiling to glibc systems, set gl_cv_func_futimesat_works to
1673         "guessing yes".
1674
1675 2012-05-03  Bruno Haible  <bruno@clisp.org>
1676
1677         Say "guessing yes" or "guessing no" when cross-compiling.
1678         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1679         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1680         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1681         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1682         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1683         am_cv_func_working_getline to "guessing yes" or "guessing no".
1684         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1685         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1686         (gl_FUNC_MEMMEM): When cross-compiling, set
1687         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1688         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1689         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1691         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1692         "guessing no".
1693         (gl_FUNC_STRCASESTR): When cross-compiling, set
1694         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1695         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1696         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1697         (gl_FUNC_STRSTR): When cross-compiling, set
1698         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1699         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1700         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1701         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1702         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1703
1704 2012-05-01  Bruno Haible  <bruno@clisp.org>
1705
1706         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1707         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1708         * build-aux/reloc-ldflags: Likewise.
1709         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1710
1711 2012-05-01  Bruno Haible  <bruno@clisp.org>
1712
1713         gnulib-tool: Remove transitional code.
1714         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1715         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1716
1717 2012-05-01  Bruno Haible  <bruno@clisp.org>
1718
1719         getcwd: Fix misindentation.
1720         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1721
1722 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         exclude: process exclude and include directives in order
1725         This restores the pre-2009 behavior, and is part of a fix of a
1726         grep bug reported by Quentin Arce in
1727         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1728         * lib/exclude.c (struct exclude): Remove 'tail' member.
1729         (new_exclude_segment): Prepend the new segment instead of appending.
1730         Return void, since that's now more convenient.
1731         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1732         (file_name_matches): Renamed from excluded_file_name_p.
1733         (file_pattern_matches, file_name_matches):
1734         Return true if the pattern matches, not if it excludes.
1735         All callers changed.
1736         (excluded_file_name): Process the list in reverse order;
1737         since the list is now reversed this restores the pre-2009 behavior.
1738         (add_exclude): Adjust to new reversed-order list.  Use local var
1739         rather than macro, for clarity.
1740         * tests/test-exclude7.sh: Adjust to corrected behavior.
1741
1742         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1743         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1744         it's not possible here.  Handle the case of \ at end of pattern
1745         without dumping core.
1746         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1747
1748         _Noreturn: future-proof non-GNU and non-MSVC compilers
1749         * build-aux/snippet/_Noreturn.h (_Noreturn):
1750         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1751         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1752         C11 or later.  This is more likely to work with random future C
1753         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1754         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1755
1756         exclude: handle wildcards with FNM_EXTMATCH
1757         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1758         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1759         comment that "has wildcards" really means "has or may have
1760         wildcards".  Simplify by avoiding the need to call strcspn.
1761
1762 2012-04-29  Bruno Haible  <bruno@clisp.org>
1763
1764         gnulib-tool: Fix list of authors.
1765         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1766
1767 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1768
1769         bootstrap: support Automake-NG in $buildreq
1770         * bootstrap (check_versions): Handle automake and aclocal from
1771         Automake-NG specially.  They can be specified as respectively
1772         the "automake-ng" and "aclocal-ng" requirements.
1773
1774 2012-04-25  Eric Blake  <eblake@redhat.com>
1775
1776         bootstrap: only force latest Makefile.in.in for gettext module
1777         * build-aux/bootstrap (with_gettext): Only install latest
1778         Makefile.in.in for projects requesting bleeding edge gettext.
1779
1780 2012-04-22  Bruno Haible  <bruno@clisp.org>
1781
1782         doc: Mention reason for replacement on glibc/Linux systems.
1783         * doc/posix-functions/dprintf.texi: Mention the problem with special
1784         'long double' values.
1785         * doc/posix-functions/fprintf.texi: Likewise.
1786         * doc/posix-functions/printf.texi: Likewise.
1787         * doc/posix-functions/snprintf.texi: Likewise.
1788         * doc/posix-functions/sprintf.texi: Likewise.
1789         * doc/posix-functions/vdprintf.texi: Likewise.
1790         * doc/posix-functions/vfprintf.texi: Likewise.
1791         * doc/posix-functions/vprintf.texi: Likewise.
1792         * doc/posix-functions/vsnprintf.texi: Likewise.
1793         * doc/posix-functions/vsprintf.texi: Likewise.
1794         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1795         platforms with F_DUPFD_CLOEXEC problems.
1796         * doc/posix-functions/glob.texi: Mention which platforms are affected
1797         by the problem with symbolic links.
1798         * doc/posix-functions/linkat.texi: Mention the problem with
1799         AT_SYMLINK_FOLLOW on Linux.
1800
1801 2012-04-22  Bruno Haible  <bruno@clisp.org>
1802
1803         pwrite: Don't replace on all platforms.
1804         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1805
1806 2012-04-22  Bruno Haible  <bruno@clisp.org>
1807
1808         rint* tests: Avoid gcc warnings.
1809         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1810         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1811         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1812
1813 2012-04-21  Bruno Haible  <bruno@clisp.org>
1814
1815         users.txt: Update.
1816         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1817         switched from CVS to git, bzr, or svn.
1818
1819 2012-04-21  Bruno Haible  <bruno@clisp.org>
1820
1821         Large File Support for native Windows platforms.
1822
1823         * m4/largefile.m4 (gl_LARGEFILE): New macro.
1824         * modules/largefile (configure.ac): Require gl_LARGEFILE.
1825
1826         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
1827         type.
1828         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
1829         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
1830         * doc/posix-headers/sys_types.texi: Mention the effect of the
1831         'largefile' module.
1832
1833         * lib/fcntl.in.h: Add comments about off_t.
1834         * modules/fcntl-h (Depends-on): Add sys_types.
1835
1836         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
1837         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
1838         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
1839         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
1840         * modules/unistd (Depends-on): Add sys_types.
1841         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
1842
1843         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
1844         instead of lseek.
1845         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
1846         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
1847         * modules/lseek (Depends-on): Add sys_types.
1848
1849         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
1850         msvc-nothrow.h.
1851         (SetFileSize): New function.
1852         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
1853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
1854         if Large File Support is requested.
1855         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
1856         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
1857
1858         * lib/stdio.in.h: Add comments about off_t.
1859         * modules/stdio (Depends-on): Add sys_types.
1860
1861         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
1862         instead of ftello.
1863         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
1864         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
1865         (gl_PREREQ_FTELLO): New macro.
1866         * modules/ftello (Depends-on): Add sys_types.
1867         (configure.ac): Incoke gl_PREREQ_FTELLO.
1868
1869         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
1870         instead of fseeko.
1871         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
1872         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
1873         (gl_PREREQ_FSEEKO): New macro.
1874         * modules/fseeko (Depends-on): Add sys_types.
1875         (configure.ac): Invoke gl_PREREQ_FSEEKO.
1876
1877         * lib/sys_stat.in.h: Add comments about off_t.
1878         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
1879         64-bit integer for st_size in 'struct stat'.
1880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
1881         Define _GL_WINDOWS_64_BIT_ST_SIZE.
1882         * modules/sys_stat (Depends-on): Add sys_types.
1883         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
1884
1885         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
1886         instead of stat or _stat.
1887
1888         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
1889         'struct _stati64' instead of fstat and 'struct stat'.
1890         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
1891         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
1892
1893         Reported by Ray Satiro <raysatiro@yahoo.com>.
1894
1895 2012-04-19  Eric Blake  <eblake@redhat.com>
1896
1897         bootstrap: accommodate older libtool
1898         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
1899         Reported by Daniel P. Berrange.
1900
1901 2012-04-19  Jim Meyering  <meyering@redhat.com>
1902
1903         announce-gen: avoid failure due to lack of Digest::SHA1
1904         Even with the preferred Digest::SHA available, this script
1905         would fail when the backup module, Digest::SHA1, was not installed.
1906         * build-aux/announce-gen: Quote the conditional use of "use".
1907         Reported by Reuben Thomas in:
1908         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
1909
1910         bootstrap: don't let a user's CDPATH setting affect this script
1911         When CDPATH is set, cd will sometimes generate output.
1912         When "cd" is run in a subshell whose output matters, that
1913         surprising-to-some output can cause malfunction.
1914         Unsetting CDPATH turns off this shell "feature."
1915         * build-aux/bootstrap (CDPATH): Unset.
1916         Reported by Reuben Thomas in:
1917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
1918         and inspired by his patch here:
1919         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
1920
1921 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
1922         and Jim Meyering  <meyering@redhat.com>
1923
1924         maint.mk: catch "see @xref{}" and similar
1925         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
1926         prohibit "See also @xref{", "Also see @pxref{", and similar.
1927
1928 2012-04-16  Jim Meyering  <meyering@redhat.com>
1929
1930         bootstrap: really use gnulib's po/Makefile.in.in
1931         * build-aux/bootstrap: Correct the source file name in previous change.
1932         Reported by Akim Demaille.
1933
1934         configmake: correct minor inconsistency in Makefile rule
1935         * modules/configmake (Makefile.am): All other rules like this one
1936         run the final "mv -f ..." in the same backslash-continued command
1937         as the one that does everything else.  This one put the mv -f ...
1938         command on a separate, non-backslash-continued line.
1939         Make it like the others.
1940
1941         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
1942         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
1943         the one from gettext.  Reported by Akim Demaille.
1944
1945 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
1946
1947         Fix recursion of install-* into po directories.
1948         Bison's install-pdf bug reported by Hans Aberg at
1949         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1950         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1951         (install-info, install-pdf, install-ps): New targets.
1952
1953 2012-04-16  Jim Meyering  <meyering@redhat.com>
1954
1955         maint: avoid spurious "make sc_maint" failure
1956         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1957         exempt all *.class file names, for lib/javaversion.class.
1958
1959 2012-04-15  Bruno Haible  <bruno@clisp.org>
1960
1961         lseek: Make configure test independent of environment.
1962         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1963         Windows, we know that lseek() on pipes is broken; skip the runtime
1964         test.
1965
1966 2012-04-14  Bruno Haible  <bruno@clisp.org>
1967
1968         stat: Bypass buggy override in mingw64.
1969         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1970         * lib/stat.c (stat) [mingw64]: Define to _stat.
1971         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1972
1973 2012-04-14  Bruno Haible  <bruno@clisp.org>
1974
1975         pathmax: Fix compilation error on MSVC 9.
1976         * modules/pathmax (Depends-on): Add unistd.
1977
1978 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1979
1980         README: document pointer comparison assumption
1981         * README (Portability guidelines): Document assumption about
1982         pointer comparisons, in response to a recent bug-gnulib comment by
1983         Jeffrey Kegler.
1984
1985 2012-04-12  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for module 'getrusage'.
1988         * modules/getrusage-tests: New file.
1989         * tests/test-getrusage.c: New file.
1990
1991         New module 'getrusage'.
1992         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1993         warn-on-use.h.
1994         (getrusage): New declaration.
1995         * lib/getrusage.c: New file.
1996         * m4/getrusage.m4: New file.
1997         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1998         is declared.
1999         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2000         HAVE_GETRUSAGE.
2001         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2002         snippet/c++defs, snippet/warn-on-use.
2003         (Makefile.am): Update generation of sys/resource.h. Substitute
2004         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2005         * modules/getrusage: New file.
2006         * doc/posix-functions/getrusage.texi: Mention the new module.
2007
2008 2012-04-12  Bruno Haible  <bruno@clisp.org>
2009
2010         Tests for module 'sys_resource'.
2011         * modules/sys_resource-tests: New file.
2012         * tests/test-sys_resource.c: New file.
2013
2014         New module 'sys_resource'.
2015         * lib/sys_resource.in.h: New file.
2016         * m4/sys_resource_h.m4: New file.
2017         * modules/sys_resource: New file.
2018         * doc/posix-headers/sys_resource.texi: Mention the new module.
2019
2020 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2021
2022         ioctl: Fix compilation error on mingw.
2023         * lib/ioctl.c: Include <windows.h>.
2024         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2025
2026 2012-04-04  Jim Meyering  <meyering@redhat.com>
2027
2028         regex: correct #pragma guard expression
2029         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2030         not 4.3.  Correct its cpp guard expression.
2031
2032 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2033
2034         regex: remove unnecessary type punning
2035         Problem reported by Vladimir Serbinenko in
2036         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2037         * lib/regex.h (struct re_pattern_buffer): Change the type of
2038         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2039         Fix comment to match code.
2040         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2041         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2042         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2043         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2044         (set_regs):
2045         Omit no-longer-necessary casts.
2046
2047 2012-04-03  Bruno Haible  <bruno@clisp.org>
2048
2049         Tests for module 'ilogbl'.
2050         * modules/ilogbl-tests: New file.
2051         * tests/test-ilogbl.c: New file.
2052
2053         New module 'ilogbl'.
2054         * lib/math.in.h (ilogbl): New declaration.
2055         * lib/ilogbl.c: New file.
2056         * m4/ilogbl.m4: New file.
2057         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2059         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2060         Split sed invocation, to avoid the limit of 100 substitutions of
2061         HP-UX 'sed'.
2062         * modules/ilogbl: New file.
2063         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2064         * doc/posix-functions/ilogbl.texi: Mention the new module.
2065
2066 2012-04-03  Bruno Haible  <bruno@clisp.org>
2067
2068         Tests for module 'ilogbf'.
2069         * modules/ilogbf-tests: New file.
2070         * tests/test-ilogbf.c: New file.
2071
2072         New module 'ilogbf'.
2073         * lib/math.in.h (ilogbf): New declaration.
2074         * lib/ilogbf.c: New file.
2075         * m4/ilogbf.m4: New file.
2076         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2077         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2078         REPLACE_ILOGBF.
2079         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2080         REPLACE_ILOGBF.
2081         * modules/ilogbf: New file.
2082         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2083         * doc/posix-functions/ilogbf.texi: Mention the new module.
2084
2085 2012-04-03  Bruno Haible  <bruno@clisp.org>
2086
2087         Tests for module 'ilogb'.
2088         * modules/ilogb-tests: New file.
2089         * tests/test-ilogb.c: New file.
2090         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2091         tests/test-logb-ieee.h.
2092
2093         New module 'ilogb'.
2094         * lib/math.in.h (ilogb): New declaration.
2095         * lib/ilogb.c: New file.
2096         * m4/ilogb.m4: New file.
2097         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2099         REPLACE_ILOGB.
2100         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2101         REPLACE_ILOGB.
2102         * modules/ilogb: New file.
2103         * tests/test-math-c++.cc: Check the declaration of ilogb.
2104         * doc/posix-functions/ilogb.texi: Mention the new module.
2105
2106 2012-04-03  Bruno Haible  <bruno@clisp.org>
2107
2108         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2109         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2110         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2111         (main): Check their values.
2112         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2113         problem.
2114
2115 2012-04-03  Bruno Haible  <bruno@clisp.org>
2116
2117         Tests for module 'logbl-ieee'.
2118         * modules/logbl-ieee-tests: New file.
2119         * tests/test-logbl-ieee.c: New file.
2120
2121         New module 'logbl-ieee'.
2122         * modules/logbl-ieee: New file.
2123
2124         Tests for module 'logb-ieee'.
2125         * modules/logb-ieee-tests: New file.
2126         * tests/test-logb-ieee.c: New file.
2127
2128         New module 'logb-ieee'.
2129         * modules/logb-ieee: New file.
2130
2131         Tests for module 'logbf-ieee'.
2132         * modules/logbf-ieee-tests: New file.
2133         * tests/test-logbf-ieee.c: New file.
2134         * tests/test-logb-ieee.h: New file.
2135
2136         New module 'logbf-ieee'.
2137         * modules/logbf-ieee: New file.
2138
2139 2012-04-03  Bruno Haible  <bruno@clisp.org>
2140
2141         Tests for module 'logbl'.
2142         * modules/logbl-tests: New file.
2143         * tests/test-logbl.c: New file.
2144
2145         New module 'logbl'.
2146         * lib/math.in.h (logbl): New declaration.
2147         * lib/logbl.c: New file.
2148         * m4/logbl.m4: New file.
2149         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2150         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2151         REPLACE_LOGBL.
2152         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2153         REPLACE_LOGBL.
2154         * modules/logbl: New file.
2155         * tests/test-math-c++.cc: Check the declaration of logbl.
2156         * doc/posix-functions/logbl.texi: Mention the new module.
2157
2158 2012-04-02  Bruno Haible  <bruno@clisp.org>
2159
2160         Tests for module 'logbf'.
2161         * modules/logbf-tests: New file.
2162         * tests/test-logbf.c: New file.
2163
2164         New module 'logbf'.
2165         * lib/math.in.h (logbf): New declaration.
2166         * lib/logbf.c: New file.
2167         * m4/logbf.m4: New file.
2168         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2170         REPLACE_LOGBF.
2171         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2172         REPLACE_LOGBF.
2173         * modules/logbf: New file.
2174         * tests/test-math-c++.cc: Check the declaration of logbf.
2175         * doc/posix-functions/logbf.texi: Mention the new module.
2176
2177 2012-04-02  Bruno Haible  <bruno@clisp.org>
2178
2179         logb tests: More tests.
2180         * tests/test-logb.h: New file, based on tests/test-logb.c and
2181         tests/test-frexp.h.
2182         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2183         (main): Just invoke test_function.
2184         * modules/logb-tests (Files): Add tests/test-logb.h,
2185         tests/minus-zero.h, tests/randomd.c.
2186         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2187
2188         logb: Provide replacement and workarounds.
2189         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2190         is 1.
2191         * lib/logb.c: New file.
2192         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2193         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2194         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2195         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2196         * modules/logb (Files): Add lib/logb.c.
2197         (Depends-on): Add isfinite, frexp, isnand.
2198         (configure.ac): Compile the replacement code logb.c if needed.
2199         * tests/test-math-c++.cc: Check the declaration of logb.
2200         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2201         with subnormal numbers.
2202
2203 2012-04-02  Bruno Haible  <bruno@clisp.org>
2204
2205         log10* tests: Speed up.
2206         * tests/test-log10.h (test_function): Reduce amount of random numbers
2207         to test.
2208
2209 2012-04-01  Bruno Haible  <bruno@clisp.org>
2210
2211         logf-ieee: Fix test whether logf works.
2212         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2213
2214 2012-04-01  Bruno Haible  <bruno@clisp.org>
2215
2216         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2217         * lib/log10l.c: Include <float.h>
2218         (log10l): On IRIX, normalize the +Infinity value.
2219         * modules/log10l (Depends-on): Add 'float'.
2220         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2221         +Infinity.
2222
2223         log10f-ieee: Work around test failure on NetBSD 5.1.
2224         * m4/log10f-ieee.m4: New file.
2225         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2226         test whether log10f works with a negative argument. Replace it if not.
2227         * lib/log10f.c (log10f): For negative arguments, return NaN.
2228         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2229         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2230         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2231
2232         log10f-ieee: Work around test failure on Solaris 9.
2233         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2234         (configure.ac): Require gl_FUNC_LOG10F.
2235
2236         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2237         * m4/log10-ieee.m4: New file.
2238         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2239         whether log10 works with a negative argument. Replace it if not.
2240         * lib/log10.c (log10): For negative arguments, return NaN.
2241         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2242         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2243         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2244
2245         Tests for module 'log10l-ieee'.
2246         * modules/log10l-ieee-tests: New file.
2247         * tests/test-log10l-ieee.c: New file.
2248
2249         New module 'log10l-ieee'.
2250         * modules/log10l-ieee: New file.
2251
2252         Tests for module 'log10-ieee'.
2253         * modules/log10-ieee-tests: New file.
2254         * tests/test-log10-ieee.c: New file.
2255
2256         New module 'log10-ieee'.
2257         * modules/log10-ieee: New file.
2258
2259         Tests for module 'log10f-ieee'.
2260         * modules/log10f-ieee-tests: New file.
2261         * tests/test-log10f-ieee.c: New file.
2262         * tests/test-log10-ieee.h: New file.
2263
2264         New module 'log10f-ieee'.
2265         * modules/log10f-ieee: New file.
2266
2267 2012-04-01  Bruno Haible  <bruno@clisp.org>
2268
2269         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2270         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2271         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2272         workaround.
2273         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2274         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2275         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2276         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2277         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2278         (Depends-on): Update conditions.
2279         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2280         IRIX 6.5, OSF/1 5.1 problems.
2281
2282 2012-04-01  Bruno Haible  <bruno@clisp.org>
2283
2284         log10f: Work around OSF/1 5.1 bug.
2285         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2286         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2287         workaround.
2288         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2289         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2290         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2291         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2292         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2293         (Depends-on): Update conditions.
2294         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2295
2296 2012-04-01  Bruno Haible  <bruno@clisp.org>
2297
2298         log10: Work around OSF/1 5.1 bug.
2299         * lib/math.in.h (log10): New declaration.
2300         * lib/log10.c: New file.
2301         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2302         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2303         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2305         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2306         * modules/log10 (Files): Add lib/log10.c.
2307         (Depends-on): Add math.
2308         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2309         * tests/test-math-c++.cc: Check the declaration of log10.
2310         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2311
2312 2012-03-31  Bruno Haible  <bruno@clisp.org>
2313
2314         log10l tests: More tests.
2315         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2316         tests/minus-zero.h, tests/randoml.c.
2317         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2318         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2319         (main): Invoke test_function.
2320
2321         log10f tests: More tests.
2322         * modules/log10f-tests (Files): Add tests/test-log10.h,
2323         tests/minus-zero.h, tests/randomf.c.
2324         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2325         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2326         (main): Invoke test_function.
2327
2328         log10 tests: More tests.
2329         * tests/test-log10.h: New file.
2330         * modules/log10-tests (Files): Add tests/test-log10.h,
2331         tests/minus-zero.h, tests/randomd.c.
2332         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2333         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2334         (main): Invoke test_function.
2335
2336 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2337
2338         fflush: Fix syntax error.
2339         * lib/fflush.c: Include unused-parameter.h, needed for
2340         _GL_UNUSED_PARAMETER.
2341         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2342
2343 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2344
2345         regex: pacify GCC when compiling GRUB
2346         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2347         a diagnostic.  Reported by Vladimir Serbinenko in
2348         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2349
2350 2012-03-29  Eric Blake  <eblake@redhat.com>
2351
2352         stdio: don't assume gets any more
2353         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2354         support.
2355         * modules/stdio (Makefile.am): Likewise.
2356         * lib/stdio-read.c (gets): Likewise.
2357         * tests/test-stdio-c++.cc: Likewise.
2358         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2359         * lib/stdio.in.h (gets): Make warning occur in more places.
2360         * doc/posix-functions/gets.texi (gets): Update documentation.
2361         Reported by Christer Solskogen.
2362
2363         maint.mk: fix syntax checks without exclusions
2364         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2365         Reported by Daniel P. Berrange.
2366
2367         strerror_r: avoid compiler warning
2368         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2369         level.
2370
2371         fflush: avoid compiler warning
2372         * lib/fflush.c (update_fpos_cache): Mark variables that are
2373         potentially unused.
2374
2375 2012-03-25  Bruno Haible  <bruno@clisp.org>
2376
2377         Tests for module 'localeconv'.
2378         * modules/localeconv-tests: New file.
2379         * tests/test-localeconv.c: New file.
2380
2381         New module 'localeconv'.
2382         * lib/locale.in.h (localeconv): New declaration.
2383         * lib/localeconv.c: New file.
2384         * m4/localeconv.m4: New file.
2385         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2386         REPLACE_LOCALECONV.
2387         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2388         REPLACE_LOCALECONV.
2389         * modules/localeconv: New file.
2390         * modules/nl_langinfo (Depends-on): Add localeconv.
2391         * modules/human (Depends-on): Likewise.
2392         * doc/posix-functions/localeconv.texi: Mention the new module.
2393
2394 2012-03-25  Bruno Haible  <bruno@clisp.org>
2395
2396         locale: Provide a complete 'struct lconv'.
2397         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2398         'struct lconv' does not contain int_p_cs_precedes.
2399         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2400         * doc/posix-headers/locale.texi: Update.
2401
2402         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2403         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2404         * doc/posix-headers/locale.texi: Update.
2405
2406         locale: Provide a working 'struct lconv'.
2407         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2408         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2409         'struct lconv' does not even contain decimal_point.
2410         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2411         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2412         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2413         * doc/posix-headers/locale.texi: Mention the problems with
2414         'struct lconv'.
2415         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2416
2417 2012-03-24  Bruno Haible  <bruno@clisp.org>
2418
2419         Enable common subexpression optimization in GCC.
2420         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2421         macros.
2422         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2423         GCC attribute 'const'.
2424         (uc_locale_language): Declare with GCC attribute 'pure'.
2425         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2426         with GCC attribute 'const'.
2427         * lib/unictype.in.h (uc_is_general_category_withtable,
2428         uc_combining_class, uc_combining_class_name,
2429         uc_combining_class_long_name, uc_bidi_class_name,
2430         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2431         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2432         uc_decimal_value, uc_digit_value, uc_numeric_value,
2433         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2434         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2435         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2436         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2437         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2438         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2439         Declare with GCC attribute 'const'.
2440         (uc_general_category_name, uc_general_category_long_name,
2441         uc_general_category_byname, uc_general_category,
2442         uc_is_general_category, uc_combining_class_byname,
2443         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2444         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2445         Declare with GCC attribute 'pure'.
2446         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2447         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2448         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2449         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2450         with GCC attribute 'pure'.
2451         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2452         'const'.
2453         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2454         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2455         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2456         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2457         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2458         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2459         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2460         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2461         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2462         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2463         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2464         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2465         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2466         GCC attribute 'pure'.
2467         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2468         'const'.
2469         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2470         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2471         u32_strwidth): Declare with GCC attribute 'pure'.
2472
2473         Enable common subexpression optimization in GCC.
2474         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2475         (alphasort): Declare with GCC attribute 'pure'.
2476         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2477         (atoll): Declare with GCC attribute 'pure'.
2478         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2479         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2480         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2481         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2482         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2483         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2484         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2485
2486 2012-03-24  Bruno Haible  <bruno@clisp.org>
2487
2488         gnulib-tool: Avoid unintended error output from 'cmp'.
2489         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2490         "cmp -s", not "cmp > /dev/null".
2491
2492 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2493
2494         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2495
2496         It's not just Automake versions < 1.9b that creates an empty
2497         pkgdatadir at installation time if pkgdata_DATA is specified
2498         to empty; modern automake versions do this as well, at least
2499         until automake 1.11.4 (not yet released at the moment of writing,
2500         but soon to appear).  That behaviour was generally considered a
2501         feature rather than a bug, at least until this discussion:
2502         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2503
2504         See also automake bugs #10997 and #11030.
2505
2506         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2507         reference to relevant automake bug numbers.
2508         (func_emit_tests_Makefile_am): Likewise.
2509
2510 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2511
2512         announce-gen: use Digest::SHA when possible
2513         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2514         back to Digest::SHA1 if necessary.
2515
2516 2012-03-20  Jim Meyering  <meyering@redhat.com>
2517
2518         tests: avoid gcc warnings about argv vs. const initializers
2519         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2520         warnings about discarding 'const' qualifier from pointer target type.
2521         * tests/test-posix_spawn2.c (main): Likewise.
2522
2523 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2524
2525         README-release: simplify slightly
2526         * top/README-release: Run "git checkout master" only once.
2527
2528 2012-03-15  Mark Wielaard  <mark@klomp.org>
2529
2530         git-merge-changelog: add specific example on how to use with hg.
2531         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2532
2533 2012-03-18  Mark Wielaard  <mark@klomp.org>
2534
2535         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2536
2537 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2538
2539         git-version-gen: don't let "prefix" envvar cause trouble
2540         * build-aux/git-version-gen (prefix): Initialize properly,
2541         so as not to use a value specified via the environment.
2542         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2543
2544 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2545
2546         regex: diagnose too-large repeat counts in EREs
2547         Previously, the code did not diagnose the too-large repeat count
2548         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2549         as if it were 'b\{1000000000}', which is unexpected.
2550         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2551         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2552         is a reasonable one for this problem.  Another option would be to
2553         create a new REG_OVERFLOW error for repeat counts that are too large.
2554         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2555         count is too large, so that the caller can distinguish the two cases.
2556         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2557         "Too large" return code, and that repeat counts are one example of this.
2558
2559 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2560
2561         doc: some glibc x32 integer width issues
2562         * doc/posix-headers/sys_types.texi (sys/types.h):
2563         * doc/posix-headers/time.texi (time.h):
2564         Mention that glibc x32 does not conform to POSIX in a couple of
2565         areas related to integer widths.
2566
2567 2012-03-15  Bruno Haible  <bruno@clisp.org>
2568
2569         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2570         * lib/fma.c (VOLATILE): New macro.
2571         (FUNC): Use it to work around a GCC compiler bug.
2572
2573 2012-03-13  Bruno Haible  <bruno@clisp.org>
2574
2575         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2576         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2577         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2578         REPLACE_HYPOTL to 1.
2579         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2580
2581 2012-03-13  Bruno Haible  <bruno@clisp.org>
2582
2583         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2584         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2585         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2586         REPLACE_REMAINDERL to 1.
2587         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2588         bug.
2589
2590 2012-03-13  Bruno Haible  <bruno@clisp.org>
2591
2592         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2593         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2594         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2595         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2596         too big rounding errors.
2597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2598         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2599         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2600         (Depends-on): Update conditions.
2601         * tests/test-sqrtl.c (my_ldexpl): New function.
2602         (main): Add test of a particular value.
2603         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2604
2605 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2606
2607         doc: Update timer_* platform portability notes.
2608         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2609         that always return ENOSYS.
2610         * doc/posix-functions/timer_delete.texi: Likewise.
2611         * doc/posix-functions/timer_gettime.texi: Likewise.
2612         * doc/posix-functions/timer_settime.texi: Likewise.
2613
2614 2012-03-13  Bruno Haible  <bruno@clisp.org>
2615
2616         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2617         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2618         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2619         REPLACE_CBRTL to 1.
2620         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2621
2622 2012-03-13  Bruno Haible  <bruno@clisp.org>
2623
2624         remainderl: Avoid compilation error on AIX >= 5.2.
2625         * lib/math.in.h (remainderl): Undefine macro from the system header.
2626
2627 2012-03-13  Bruno Haible  <bruno@clisp.org>
2628
2629         Avoid compilation errors with MSVC option -fp:strict.
2630         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2631         * lib/cbrtf.c: Likewise.
2632         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2633
2634 2012-03-12  Bruno Haible  <bruno@clisp.org>
2635
2636         uninorm: Don't crash in out-of-memory conditions.
2637         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2638         gracefully.
2639         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2640         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2641
2642 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2643
2644         quote: fix syntax-check
2645         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2646         also exports quote_quoting_options.
2647
2648 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2649
2650         Collapse list of copyright years to ranges.  See
2651         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2652         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2653         build-aux/csharpexec.sh.in, build-aux/gnupload,
2654         build-aux/install-reloc, build-aux/javacomp.sh.in,
2655         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2656         build-aux/move-if-change, build-aux/reloc-ldflags,
2657         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2658
2659 2012-03-11  Bruno Haible  <bruno@clisp.org>
2660
2661         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2662         * m4/log2f-ieee.m4: New file.
2663         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2664         whether log2f works with a minus zero argument. Replace it if not.
2665         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2666         (Depends-on): Add log2-ieee.
2667         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2668         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2669
2670         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2671         * m4/log2-ieee.m4: New file.
2672         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2673         whether log2 works with a minus zero argument. Replace it if not.
2674         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2675         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2676         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2677
2678         Tests for module 'log2l-ieee'.
2679         * modules/log2l-ieee-tests: New file.
2680         * tests/test-log2l-ieee.c: New file.
2681
2682         New module 'log2l-ieee'.
2683         * modules/log2l-ieee: New file.
2684
2685         Tests for module 'log2-ieee'.
2686         * modules/log2-ieee-tests: New file.
2687         * tests/test-log2-ieee.c: New file.
2688
2689         New module 'log2-ieee'.
2690         * modules/log2-ieee: New file.
2691
2692         Tests for module 'log2f-ieee'.
2693         * modules/log2f-ieee-tests: New file.
2694         * tests/test-log2f-ieee.c: New file.
2695         * tests/test-log2-ieee.h: New file.
2696
2697         New module 'log2f-ieee'.
2698         * modules/log2f-ieee: New file.
2699
2700 2012-03-11  Bruno Haible  <bruno@clisp.org>
2701
2702         Tests for module 'log2l'.
2703         * modules/log2l-tests: New file.
2704         * tests/test-log2l.c: New file.
2705
2706         New module 'log2l'.
2707         * lib/math.in.h (log2l): New declaration.
2708         * lib/log2l.c: New file.
2709         * m4/log2l.m4: New file.
2710         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2712         REPLACE_LOG2L.
2713         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2714         REPLACE_LOG2L.
2715         * modules/log2l: New file.
2716         * tests/test-math-c++.cc: Check the declaration of log2l.
2717         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2718         and OSF/1 problems.
2719
2720 2012-03-11  Bruno Haible  <bruno@clisp.org>
2721
2722         Tests for module 'log2f'.
2723         * modules/log2f-tests: New file.
2724         * tests/test-log2f.c: New file.
2725
2726         New module 'log2f'.
2727         * lib/math.in.h (log2f): New declaration.
2728         * lib/log2f.c: New file.
2729         * m4/log2f.m4: New file.
2730         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2732         REPLACE_LOG2F.
2733         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2734         REPLACE_LOG2F.
2735         * modules/log2f: New file.
2736         * tests/test-math-c++.cc: Check the declaration of log2f.
2737         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2738         and OSF/1 and Cygwin problems.
2739
2740 2012-03-11  Bruno Haible  <bruno@clisp.org>
2741
2742         Tests for module 'log2'.
2743         * modules/log2-tests: New file.
2744         * tests/test-log2.c: New file.
2745         * tests/test-log2.h: New file.
2746
2747         New module 'log2'.
2748         * lib/math.in.h (log2): New declaration.
2749         * lib/log2.c: New file.
2750         * m4/log2.m4: New file.
2751         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2753         REPLACE_LOG2.
2754         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2755         REPLACE_LOG2.
2756         * modules/log2: New file.
2757         * tests/test-math-c++.cc: Check the declaration of log2.
2758         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2759         and OSF/1 and Cygwin problems.
2760
2761 2012-03-11  Bruno Haible  <bruno@clisp.org>
2762
2763         exp2* tests: More tests.
2764         * tests/test-exp2.h (test_function): Test all integral arguments that
2765         don't need to overflow or denormalized numbers.
2766         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2767         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2768         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2769
2770 2012-03-10  Bruno Haible  <bruno@clisp.org>
2771
2772         log1pl-ieee: Work around test failure on AIX 7.1.
2773         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2774
2775         log1pl-ieee: Work around test failure on IRIX 6.5.
2776         * m4/log1pl-ieee.m4: New file.
2777         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2778         test whether log1pl works with a minus zero argument. Replace it if
2779         not.
2780         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2782         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2783         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2784         (Depends-on): Update conditions.
2785         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2786         m4/signbit.m4.
2787         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2788         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2789
2790         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2791         * m4/log1pf-ieee.m4: New file.
2792         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2793         test whether log1pf works with a minus zero argument. Replace it if
2794         not.
2795         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2796         m4/signbit.m4.
2797         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2798         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2799
2800         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2801         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2802         (configure.ac): Require gl_FUNC_LOG1PF.
2803
2804         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2805         * m4/log1p-ieee.m4: New file.
2806         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2807         whether log1p works with a minus zero argument. Replace it if not.
2808         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2810         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2811         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2812         (Depends-on): Update conditions.
2813         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2814         m4/signbit.m4.
2815         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2816         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2817
2818         Tests for module 'log1pl-ieee'.
2819         * modules/log1pl-ieee-tests: New file.
2820         * tests/test-log1pl-ieee.c: New file.
2821
2822         New module 'log1pl-ieee'.
2823         * modules/log1pl-ieee: New file.
2824
2825         Tests for module 'log1p-ieee'.
2826         * modules/log1p-ieee-tests: New file.
2827         * tests/test-log1p-ieee.c: New file.
2828
2829         New module 'log1p-ieee'.
2830         * modules/log1p-ieee: New file.
2831
2832         Tests for module 'log1pf-ieee'.
2833         * modules/log1pf-ieee-tests: New file.
2834         * tests/test-log1pf-ieee.c: New file.
2835         * tests/test-log1p-ieee.h: New file.
2836
2837         New module 'log1pf-ieee'.
2838         * modules/log1pf-ieee: New file.
2839
2840 2012-03-10  Bruno Haible  <bruno@clisp.org>
2841
2842         Tests for module 'log1pl'.
2843         * modules/log1pl-tests: New file.
2844         * tests/test-log1pl.c: New file.
2845
2846         New module 'log1pl'.
2847         * lib/math.in.h (log1pl): New declaration.
2848         * lib/log1pl.c: New file.
2849         * m4/log1pl.m4: New file.
2850         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
2851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
2852         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
2853         * modules/log1pl: New file.
2854         * tests/test-math-c++.cc: Check the declaration of log1pl.
2855         * doc/posix-functions/log1pl.texi: Mention the new module.
2856
2857 2012-03-10  Bruno Haible  <bruno@clisp.org>
2858
2859         Tests for module 'log1pf'.
2860         * modules/log1pf-tests: New file.
2861         * tests/test-log1pf.c: New file.
2862
2863         New module 'log1pf'.
2864         * lib/math.in.h (log1pf): New declaration.
2865         * lib/log1pf.c: New file.
2866         * m4/log1pf.m4: New file.
2867         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
2868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
2869         REPLACE_LOG1PF.
2870         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
2871         REPLACE_LOG1PF.
2872         * modules/log1pf: New file.
2873         * tests/test-math-c++.cc: Check the declaration of log1pf.
2874         * doc/posix-functions/log1pf.texi: Mention the new module.
2875
2876 2012-03-10  Bruno Haible  <bruno@clisp.org>
2877
2878         log1p tests: More tests.
2879         * tests/test-log1p.h: New file.
2880         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
2881         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
2882         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
2883         (main): Invoke test_function.
2884
2885         log1p: Provide replacement for Minix and MSVC.
2886         * lib/math.in.h (log1p): New declaration.
2887         * lib/log1p.c: New file.
2888         * m4/log1p.m4: New file.
2889         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
2890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
2891         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
2892         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
2893         (Depends-on): Add math, isnand, log, round.
2894         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
2895         HAVE_LOG1P is 0.
2896         * tests/test-math-c++.cc: Check the declaration of log1p.
2897         * doc/posix-functions/log1p.texi: Mention the replacement.
2898
2899 2012-03-10  Bruno Haible  <bruno@clisp.org>
2900
2901         math tests: Small simplification.
2902         * tests/test-exp.h (test_function): Use the same err_bound for
2903         'double' on platforms with sizeof (long double) == sizeof (double)
2904         than on platforms with sizeof (long double) > sizeof (double).
2905         * tests/test-exp2.h (test_function): Likewise.
2906         * tests/test-expm1.h (test_function): Likewise.
2907         * tests/test-log.h (test_function): Likewise.
2908
2909 2012-03-10  Bruno Haible  <bruno@clisp.org>
2910
2911         Fix some comments.
2912         * lib/expl.c: Fix an ambiguous comment.
2913         * lib/expm1.c: Likewise.
2914         * lib/expm1l.c: Likewise.
2915         * lib/exp2.c: Likewise.
2916         * lib/exp2l.c: Likewise.
2917
2918 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
2919
2920         regex: allow inclusion of <regex.h> before <limits.h>
2921         Without this patch, portable programs had to include <limits.h> before
2922         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
2923         I ran into this problem with a test version of GNU grep on Solaris 8.
2924         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
2925         This is done conditionally so that this change can be merged
2926         back to glibc.
2927         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
2928         using the included regex.
2929
2930         fts: depend on fdopendir
2931         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
2932         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
2933         problem was introduced when fdopendir was split out.
2934
2935 2012-03-10  Bruno Haible  <bruno@clisp.org>
2936
2937         Remove unused variables.
2938         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
2939         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2940
2941 2012-03-10  Bruno Haible  <bruno@clisp.org>
2942
2943         isnanf-nolibm: Fix last commit.
2944         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
2945
2946         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
2947         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
2948
2949 2012-03-10  Bruno Haible  <bruno@clisp.org>
2950
2951         logf-ieee: Work around test failure on NetBSD 5.1.
2952         * m4/logf-ieee.m4: New file.
2953         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2954         whether logf works with a negative argument. Replace it if not.
2955         * lib/logf.c (logf): For negative arguments, return NaN.
2956         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2957         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2958         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2959
2960         logf-ieee: Work around test failure on Solaris 9.
2961         * modules/logf-ieee (Depends-on): Add log-ieee.
2962         (configure.ac): Require gl_FUNC_LOGF.
2963
2964         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2965         * m4/log-ieee.m4: New file.
2966         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2967         log works with a negative argument. Replace it if not.
2968         * lib/log.c (log): For negative arguments, return NaN.
2969         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2970         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2971         * doc/posix-functions/log.texi: Mention the log-ieee module.
2972
2973         Tests for module 'logl-ieee'.
2974         * modules/logl-ieee-tests: New file.
2975         * tests/test-logl-ieee.c: New file.
2976
2977         New module 'logl-ieee'.
2978         * modules/logl-ieee: New file.
2979
2980         Tests for module 'log-ieee'.
2981         * modules/log-ieee-tests: New file.
2982         * tests/test-log-ieee.c: New file.
2983
2984         New module 'log-ieee'.
2985         * modules/log-ieee: New file.
2986
2987         Tests for module 'logf-ieee'.
2988         * modules/logf-ieee-tests: New file.
2989         * tests/test-logf-ieee.c: New file.
2990         * tests/test-log-ieee.h: New file.
2991
2992         New module 'logf-ieee'.
2993         * modules/logf-ieee: New file.
2994
2995 2012-03-10  Bruno Haible  <bruno@clisp.org>
2996
2997         log: Fix bug introduced on 2012-03-09.
2998         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2999
3000 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3001
3002         timer-time: link explicitly with pthreads on glibc
3003         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3004         to support static linking, when newer glibc is
3005         detected, as that contains pthread emulation of
3006         POSIX timer functions where required.
3007         * modules/timer-time: Depend on threadlib to
3008         pull in the appropriate library to link.
3009
3010 2012-03-10  Bruno Haible  <bruno@clisp.org>
3011
3012         log* tests: More tests.
3013         * tests/test-log.h: New file.
3014         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3015         (main): Invoke test_function.
3016         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3017         (main): Invoke test_function.
3018         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3019         (main): Invoke test_function.
3020         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3021         tests/randomd.c.
3022         (Makefile.am): Add randomd.c to test_log_SOURCES.
3023         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3024         tests/randomf.c.
3025         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3026         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3027         tests/randoml.c.
3028         (Depends-on): Add 'float'.
3029         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3030
3031 2012-03-09  Bruno Haible  <bruno@clisp.org>
3032
3033         logl: Work around OSF/1 5.1 bug.
3034         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3035         * lib/logl.c (logl): If logl exists, use it and provide just the
3036         workaround.
3037         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3038         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3039         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3040         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3041         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3042         (Depends-on): Update conditions.
3043         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3044
3045 2012-03-09  Bruno Haible  <bruno@clisp.org>
3046
3047         logf: Work around OSF/1 5.1 bug.
3048         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3049         * lib/logf.c (logf): If logf exists, use it and provide just the
3050         workaround.
3051         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3052         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3054         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3055         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3056         (Depends-on): Update conditions.
3057         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3058
3059 2012-03-09  Bruno Haible  <bruno@clisp.org>
3060
3061         log: Work around OSF/1 5.1 bug.
3062         * lib/math.in.h (log): New declaration.
3063         * lib/log.c: New file.
3064         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3065         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3066         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3068         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3069         * modules/log (Files): Add lib/log.c.
3070         (Depends-on): Add math.
3071         (configure.ac): If REPLACE_LOG is 1, compile an override.
3072         * tests/test-math-c++.cc: Check the declaration of log.
3073         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3074
3075 2012-03-09  Jim Meyering  <meyering@redhat.com>
3076
3077         readtokens.c: adjust wording in a comment
3078         * lib/readtokens.c: Insert omitted "that" in a comment.
3079
3080 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3081
3082         modechange: add notations +40, 00440, etc.
3083         * lib/modechange.c (mode_compile): Support new notations
3084         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3085
3086 2012-03-08  Bruno Haible  <bruno@clisp.org>
3087
3088         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3089         * m4/exp2l-ieee.m4: New file.
3090         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3091         test whether exp2l works with a NaN argument and with a negative
3092         infinity argument. Replace it if not.
3093         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3094         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3095         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3096         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3097         (Depends-on): Update conditions.
3098         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3099         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3100         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3101
3102         Tests for module 'exp2l-ieee'.
3103         * modules/exp2l-ieee-tests: New file.
3104         * tests/test-exp2l-ieee.c: New file.
3105
3106         New module 'exp2l-ieee'.
3107         * modules/exp2l-ieee: New file.
3108
3109         Tests for module 'exp2-ieee'.
3110         * modules/exp2-ieee-tests: New file.
3111         * tests/test-exp2-ieee.c: New file.
3112
3113         New module 'exp2-ieee'.
3114         * modules/exp2-ieee: New file.
3115
3116         Tests for module 'exp2f-ieee'.
3117         * modules/exp2f-ieee-tests: New file.
3118         * tests/test-exp2f-ieee.c: New file.
3119         * tests/test-exp2-ieee.h: New file.
3120
3121         New module 'exp2f-ieee'.
3122         * modules/exp2f-ieee: New file.
3123
3124 2012-03-08  Bruno Haible  <bruno@clisp.org>
3125
3126         Tests for module 'exp2l'.
3127         * modules/exp2l-tests: New file.
3128         * tests/test-exp2l.c: New file.
3129
3130         New module 'exp2l'.
3131         * lib/math.in.h (exp2l): New declaration.
3132         * lib/exp2l.c: New file.
3133         * lib/expl-table.c: New file, extracted from lib/expl.c.
3134         * lib/expl.c (gl_expl_table): New declaration.
3135         (expl): Remove expl_table. Update reference.
3136         * m4/exp2l.m4: New file.
3137         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3139         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3140         * modules/exp2l: New file.
3141         * modules/expl (Files): Add lib/expl-table.c.
3142         (configure.ac): Compile also expl-table.c.
3143         * tests/test-math-c++.cc: Check the declaration of exp2l.
3144         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3145         problem.
3146
3147 2012-03-08  Bruno Haible  <bruno@clisp.org>
3148
3149         Tests for module 'exp2f'.
3150         * modules/exp2f-tests: New file.
3151         * tests/test-exp2f.c: New file.
3152
3153         New module 'exp2f'.
3154         * lib/math.in.h (exp2f): New declaration.
3155         * lib/exp2f.c: New file.
3156         * m4/exp2f.m4: New file.
3157         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3159         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3160         * modules/exp2f: New file.
3161         * tests/test-math-c++.cc: Check the declaration of exp2f.
3162         * doc/posix-functions/exp2f.texi: Mention the new module and the
3163         IRIX problem.
3164
3165 2012-03-08  Bruno Haible  <bruno@clisp.org>
3166
3167         Tests for module 'exp2'.
3168         * modules/exp2-tests: New file.
3169         * tests/test-exp2.c: New file.
3170         * tests/test-exp2.h: New file.
3171
3172         New module 'exp2'.
3173         * lib/math.in.h (exp2): New declaration.
3174         * lib/exp2.c: New file.
3175         * m4/exp2.m4: New file.
3176         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3178         REPLACE_EXP2.
3179         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3180         REPLACE_EXP2.
3181         * modules/exp2: New file.
3182         * tests/test-math-c++.cc: Check the declaration of exp2.
3183         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3184         and OpenBSD problems.
3185
3186 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3187
3188         savedir: fix comment typo
3189         * lib/savedir.c (savedirstream): Fix typo in comment.
3190
3191 2012-03-08  Bruno Haible  <bruno@clisp.org>
3192
3193         test-readtokens.c: use const; remove unwarranted cast
3194         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3195
3196 2012-03-08  Bruno Haible  <bruno@clisp.org>
3197
3198         fmal: Avoid compilation error on AIX.
3199         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3200         AIX 5.2..7.1.
3201
3202 2012-03-08  Bruno Haible  <bruno@clisp.org>
3203
3204         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3205         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3206         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3207         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3208         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3209         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3210         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3211
3212 2012-03-08  Bruno Haible  <bruno@clisp.org>
3213
3214         remainderf: Override buggy system function on IRIX 6.5.
3215         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3216         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3217         when it exists.
3218         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3219
3220 2012-03-08  Jim Meyering  <meyering@redhat.com>
3221
3222         test-readtokens.c: avoid const-related compilation warnings
3223         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3224
3225 2012-03-07  Jim Meyering  <meyering@redhat.com>
3226             Bruno Haible  <bruno@clisp.org>
3227
3228         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3229         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3230         tests/randomd.c.
3231         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3232         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3233         tests/randoml.c.
3234         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3235
3236 2012-03-07  Bruno Haible  <bruno@clisp.org>
3237
3238         expm1l: Avoid compilation error on AIX.
3239         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3240         AIX 5.2..7.1.
3241
3242 2012-03-07  Bruno Haible  <bruno@clisp.org>
3243
3244         expm1l: Don't override undeclared system function on IRIX 6.5.
3245         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3246         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3247         it exists. Set HAVE_DECL_EXPM1L.
3248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3249         HAVE_EXPM1L.
3250         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3251         HAVE_EXPM1L.
3252         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3253
3254 2012-03-07  Bruno Haible  <bruno@clisp.org>
3255
3256         remainderl: Don't override undeclared system function on IRIX 6.5.
3257         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3258         HAVE_REMAINDERL.
3259         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3260         declared when it exists. Set HAVE_DECL_REMAINDERL.
3261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3262         not HAVE_REMAINDERL.
3263         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3264         HAVE_REMAINDERL.
3265         * doc/posix-functions/remainderl.texi: Mention missing declaration
3266         problem.
3267
3268 2012-03-07  Bruno Haible  <bruno@clisp.org>
3269
3270         rintf: Don't override undeclared system function on IRIX 6.5.
3271         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3272         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3273         exists. Set HAVE_DECL_RINTF.
3274         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3275         HAVE_RINTF.
3276         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3277         HAVE_RINTF.
3278         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3279
3280 2012-03-07  Bruno Haible  <bruno@clisp.org>
3281
3282         roundl: Avoid compilation error on AIX.
3283         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3284         AIX 5.2..7.1.
3285
3286 2012-03-07  Bruno Haible  <bruno@clisp.org>
3287
3288         roundl: Don't override undeclared system function on IRIX 6.5.
3289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3290         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3291         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3292         * modules/roundl (configure.ac): For replacement code, test
3293         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3294         (Depends-on): Update conditions.
3295         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3296
3297 2012-03-07  Bruno Haible  <bruno@clisp.org>
3298
3299         roundf: Don't override undeclared system function on IRIX 6.5.
3300         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3301         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3302         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3303         * modules/roundf (configure.ac): For replacement code, test
3304         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3305         (Depends-on): Update conditions.
3306         * modules/roundf-ieee (Depends-on): Update conditions.
3307         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3308
3309 2012-03-07  Bruno Haible  <bruno@clisp.org>
3310
3311         round: Don't override undeclared system function on IRIX 6.5.
3312         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3313         argument.
3314         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3315         also when it is not declared. Set HAVE_ROUND. For replacement code,
3316         test HAVE_ROUND, not HAVE_DECL_ROUND.
3317         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3318         not HAVE_DECL_ROUND.
3319         (Depends-on): Update conditions.
3320         * modules/round-ieee (Depends-on): Update conditions.
3321         * doc/posix-functions/round.texi: Mention the IRIX problem.
3322
3323 2012-03-07  Bruno Haible  <bruno@clisp.org>
3324
3325         copysignf: Don't override undeclared system function on IRIX 6.5.
3326         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3327         HAVE_COPYSIGNF.
3328         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3329         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3330         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3331         not HAVE_COPYSIGNF.
3332         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3333         HAVE_COPYSIGNF.
3334         * doc/posix-functions/copysignf.texi: Mention missing declaration
3335         problem.
3336
3337 2012-03-07  Jim Meyering  <meyering@redhat.com>
3338
3339         readtokens: add tests
3340         * modules/readtokens-tests: New file.
3341         * tests/test-readtokens.c: New file.
3342
3343 2012-03-07  Jim Meyering  <meyering@redhat.com>
3344
3345         quotearg: the module must now include quote.h
3346         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3347         So must the module.
3348         * modules/quotearg (Files): Add quote.h.
3349
3350 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3351
3352         readtokens: avoid core dumps with unusual calling patterns
3353         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3354         * lib/readtokens.c: Include limits.h.
3355         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3356         (readtoken): Don't cache the delimiters; the cache code was buggy
3357         if !delim && saved_delim, or if the new n_delim differs from the old.
3358         Also, it wasn't thread-safe.
3359
3360 2012-03-07  Bruno Haible  <bruno@clisp.org>
3361
3362         quote: Adhere to common module description layout.
3363         * modules/quote (Makefile.am): Add back empty section.
3364
3365 2012-03-06  Akim Demaille  <demaille@gostai.com>
3366
3367         quote: fuse into quotearg
3368         This patch is made for the benefit of Bison.
3369         quote does not leave the choice of the quoting style to the user.
3370         quoting_style provides poor customizability, yet quoting_options,
3371         which is very rich, is hidden inside quotearg.c.  So in order to
3372         allow quote customization, move its implementation to quotearg.c.
3373         * lib/quote.c: Remove.
3374         * modules/quote: Adjust.
3375         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3376         warning: provide all the members of literal structs.
3377         (quote_quoting_options): New.
3378         (quote, quote_n): Import implementation from quote.c.
3379         * lib/quote.h: Import the comments from quote.c.
3380         (quote_quoting_options): New.
3381
3382 2012-03-06  Bruno Haible  <bruno@clisp.org>
3383
3384         Tests for module 'expm1l-ieee'.
3385         * modules/expm1l-ieee-tests: New file.
3386         * tests/test-expm1l-ieee.c: New file.
3387
3388         New module 'expm1l-ieee'.
3389         * modules/expm1l-ieee: New file.
3390
3391         Tests for module 'expm1f-ieee'.
3392         * modules/expm1f-ieee-tests: New file.
3393         * tests/test-expm1f-ieee.c: New file.
3394
3395         New module 'expm1f-ieee'.
3396         * modules/expm1f-ieee: New file.
3397
3398         Tests for module 'expm1-ieee'.
3399         * modules/expm1-ieee-tests: New file.
3400         * tests/test-expm1-ieee.c: New file.
3401         * tests/test-expm1-ieee.h: New file.
3402
3403         New module 'expm1-ieee'.
3404         * modules/expm1-ieee: New file.
3405         * m4/expm1-ieee.m4: New file.
3406         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3407         whether expm1 works with a minus zero argument. Replace it if not.
3408         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3410         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3411         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3412         (Depends-on): Update conditions.
3413         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3414         AIX problem.
3415
3416 2012-03-06  Bruno Haible  <bruno@clisp.org>
3417
3418         Work around expm1f bug on IRIX 6.5.
3419         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3420         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3421         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3422         not work.
3423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3424         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3425         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3426         (Depends-on): Update conditions.
3427         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3428
3429 2012-03-06  Bruno Haible  <bruno@clisp.org>
3430
3431         Tests for module 'expm1l'.
3432         * modules/expm1l-tests: New file.
3433         * tests/test-expm1l.c: New file.
3434
3435         New module 'expm1l'.
3436         * lib/math.in.h (expm1l): New declaration.
3437         * lib/expm1l.c: New file.
3438         * m4/expm1l.m4: New file.
3439         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3441         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3442         * modules/expm1l: New file.
3443         * tests/test-math-c++.cc: Check the declaration of expm1l.
3444         * doc/posix-functions/expm1l.texi: Mention the new module.
3445
3446 2012-03-06  Bruno Haible  <bruno@clisp.org>
3447
3448         Tests for module 'expm1f'.
3449         * modules/expm1f-tests: New file.
3450         * tests/test-expm1f.c: New file.
3451
3452         New module 'expm1f'.
3453         * lib/math.in.h (expm1f): New declaration.
3454         * lib/expm1f.c: New file.
3455         * m4/expm1f.m4: New file.
3456         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3458         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3459         * modules/expm1f: New file.
3460         * tests/test-math-c++.cc: Check the declaration of expm1f.
3461         * doc/posix-functions/expm1f.texi: Mention the new module.
3462
3463 2012-03-06  Bruno Haible  <bruno@clisp.org>
3464
3465         Tests for module 'expm1'.
3466         * modules/expm1-tests: New file.
3467         * tests/test-expm1.c: New file.
3468         * tests/test-expm1.h: New file.
3469
3470         New module 'expm1'.
3471         * lib/math.in.h (expm1): New declaration.
3472         * lib/expm1.c: New file.
3473         * m4/expm1.m4: New file.
3474         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3476         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3477         * modules/expm1: New file.
3478         * tests/test-math-c++.cc: Check the declaration of expm1.
3479         * doc/posix-functions/expm1.texi: Mention the new module.
3480
3481 2012-03-06  Bruno Haible  <bruno@clisp.org>
3482
3483         math: Ensure declarations of math functions.
3484         * modules/acosf (Depends-on): Add 'extensions'.
3485         * modules/asinf (Depends-on): Likewise.
3486         * modules/atan2f (Depends-on): Likewise.
3487         * modules/atanf (Depends-on): Likewise.
3488         * modules/cbrt (Depends-on): Likewise.
3489         * modules/cbrtf (Depends-on): Likewise.
3490         * modules/cbrtl (Depends-on): Likewise.
3491         * modules/copysignf (Depends-on): Likewise.
3492         * modules/copysignl (Depends-on): Likewise.
3493         * modules/cosf (Depends-on): Likewise.
3494         * modules/coshf (Depends-on): Likewise.
3495         * modules/expf (Depends-on): Likewise.
3496         * modules/fabsf (Depends-on): Likewise.
3497         * modules/fabsl (Depends-on): Likewise.
3498         * modules/fmaf (Depends-on): Likewise.
3499         * modules/fmal (Depends-on): Likewise.
3500         * modules/fmodf (Depends-on): Likewise.
3501         * modules/fmodl (Depends-on): Likewise.
3502         * modules/frexpf (Depends-on): Likewise.
3503         * modules/frexpl (Depends-on): Likewise.
3504         * modules/hypot (Depends-on): Likewise.
3505         * modules/hypotf (Depends-on): Likewise.
3506         * modules/hypotl (Depends-on): Likewise.
3507         * modules/ldexpf (Depends-on): Likewise.
3508         * modules/ldexpl (Depends-on): Likewise.
3509         * modules/log10f (Depends-on): Likewise.
3510         * modules/log10l (Depends-on): Likewise.
3511         * modules/log1p (Depends-on): Likewise.
3512         * modules/logb (Depends-on): Likewise.
3513         * modules/logf (Depends-on): Likewise.
3514         * modules/modff (Depends-on): Likewise.
3515         * modules/modfl (Depends-on): Likewise.
3516         * modules/powf (Depends-on): Likewise.
3517         * modules/remainderf (Depends-on): Likewise.
3518         * modules/remainderl (Depends-on): Likewise.
3519         * modules/rintf (Depends-on): Likewise.
3520         * modules/rintl (Depends-on): Likewise.
3521         * modules/sinf (Depends-on): Likewise.
3522         * modules/sinhf (Depends-on): Likewise.
3523         * modules/sqrtf (Depends-on): Likewise.
3524         * modules/tanf (Depends-on): Likewise.
3525         * modules/tanhf (Depends-on): Likewise.
3526         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3527         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3528         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3529         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3530         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3531         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3532         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3533         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3534         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3535         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3536         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3537         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3538         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3539         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3540         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3541         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3542         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3543         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3544         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3545         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3546         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3547         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3548         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3549         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3550         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3551         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3552         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3553         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3554         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3555         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3556         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3557         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3559         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3560         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3561         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3562         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3563         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3564         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3565         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3566         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3567
3568 2012-03-06  Bruno Haible  <bruno@clisp.org>
3569
3570         math: Update module names in warnings.
3571         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3572         tanl): Use specific module name in warn-on-use warning.
3573
3574 2012-03-06  Bruno Haible  <bruno@clisp.org>
3575
3576         expl: Simplify computation.
3577         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3578
3579 2012-03-05  Bruno Haible  <bruno@clisp.org>
3580
3581         exp* tests: More tests.
3582         * tests/test-exp.h: New file.
3583         * tests/test-exp.c: Include <float.h> and test-exp.h.
3584         (main): Invoke test_function.
3585         * tests/test-expf.c: Include <float.h> and test-exp.h.
3586         (main): Invoke test_function.
3587         * tests/test-expl.c: Include <float.h> and test-exp.h.
3588         (main): Invoke test_function.
3589         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3590         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3591         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3592         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3593         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3594         (Depends-on): Add 'float'.
3595         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3596
3597         expl: Fix precision of computed result.
3598         * lib/expl.c: Completely rewritten.
3599         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3600         (Maintainer): Add me.
3601         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3602
3603 2012-03-05  Bruno Haible  <bruno@clisp.org>
3604
3605         cbrt* tests: More tests.
3606         * tests/test-cbrt.h: New file.
3607         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3608         (main): Invoke test_function.
3609         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3610         (main): Invoke test_function.
3611         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3612         (main): Invoke test_function.
3613         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3614         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3615         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3616         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3617         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3618         (Depends-on): Add 'float'.
3619         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3620
3621 2012-03-05  Bruno Haible  <bruno@clisp.org>
3622
3623         hypot* tests: More tests.
3624         * tests/test-hypot.h: New file, partially extracted from
3625         tests/test-hypotl.c.
3626         * tests/test-hypot.c: Include test-hypot.h.
3627         (main): Invoke test_function.
3628         * tests/test-hypotf.c: Include test-hypot.h.
3629         (main): Invoke test_function.
3630         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3631         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3632         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3633         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3634         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3635         tests/randomf.c.
3636         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3637         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3638         tests/randoml.c.
3639         (Depends-on): Add 'fpucw', 'float'.
3640         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3641
3642 2012-03-05  Bruno Haible  <bruno@clisp.org>
3643
3644         fpucw: Doc about FreeBSD.
3645         * lib/fpucw.h: Mention FreeBSD in comments.
3646
3647 2012-03-04  Bruno Haible  <bruno@clisp.org>
3648
3649         sqrt* tests: More tests.
3650         * tests/test-sqrt.h: New file.
3651         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3652         (main): Invoke test_function.
3653         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3654         (main): Invoke test_function.
3655         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3656         (main): Invoke test_function.
3657         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3658         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3659         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3660         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3661         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3662         (Depends-on): Add 'float'.
3663         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3664
3665 2012-03-04  Bruno Haible  <bruno@clisp.org>
3666
3667         remainder* tests: More tests.
3668         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3669         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3670         (main): Invoke test_function.
3671         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3672         (main): Invoke test_function.
3673         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3674         (main): Invoke test_function.
3675         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3676         tests/randomd.c.
3677         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3678         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3679         tests/randomf.c.
3680         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3681         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3682         tests/randoml.c.
3683         (Depends-on): Add 'float'.
3684         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3685
3686 2012-03-04  Bruno Haible  <bruno@clisp.org>
3687
3688         remainder, remainderf, remainderl: Fix computation for large quotients.
3689         * lib/remainder.c: Completely rewritten.
3690         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3691         USE_FLOAT.
3692         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3693         USE_LONG_DOUBLE.
3694         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3695         isnand, isinf. Remove round, fma.
3696         * modules/remainderf (Files): Add lib/remainder.c.
3697         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3698         Remove roundf, fmaf.
3699         * modules/remainderl (Files): Add lib/remainder.c.
3700         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3701         isinf. Remove roundl, fmal.
3702         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3703         REMAINDER_LIBM.
3704         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3705         REMAINDERF_LIBM.
3706         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3707         REMAINDERL_LIBM.
3708
3709 2012-03-04  Bruno Haible  <bruno@clisp.org>
3710
3711         fmod* tests: More tests.
3712         * tests/test-fmod.h (my_ldexp): New function.
3713         (test_function): Reduce amount of random numbers to test. Add tests
3714         of very large quotients x / y.
3715         * tests/test-fmod.c (MAX_EXP): New macro.
3716         * tests/test-fmodf.c (MAX_EXP): Likewise.
3717         * tests/test-fmodl.c (MAX_EXP): Likewise.
3718
3719 2012-03-04  Bruno Haible  <bruno@clisp.org>
3720
3721         fmod, fmodl: Fix computation for large quotients x / y.
3722         * lib/fmod.c: Completely rewritten.
3723         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3724         USE_LONG_DOUBLE.
3725         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3726         isnand. Remove fma.
3727         * modules/fmodl (Files): Add lib/fmod.c.
3728         (Depends-on): Add float, isfinite, signbit, fabsl,
3729         frexpl, ldexpl, isnanl. Remove fma.
3730         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3731         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3732
3733 2012-03-03  Bruno Haible  <bruno@clisp.org>
3734
3735         fmod* tests: More tests.
3736         * tests/test-fmod.h: New file.
3737         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3738         (main): Invoke test_function.
3739         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3740         (main): Invoke test_function.
3741         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3742         (main): Invoke test_function.
3743         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3744         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3745         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3746         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3747         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3748         (Depends-on): Add 'float'.
3749         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3750
3751 2012-03-03  Bruno Haible  <bruno@clisp.org>
3752
3753         rint* tests: More tests.
3754         * tests/test-rint.h: New file, partially extracted from
3755         tests/test-rintl.c.
3756         * tests/test-rint.c: Include test-rint.h.
3757         (main): Invoke test_function.
3758         * tests/test-rintf.c: Include test-rint.h.
3759         (main): Invoke test_function.
3760         * tests/test-rintl.c: Include test-rint.h.
3761         (main): Invoke test_function.
3762         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3763         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3764         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3765         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3766         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3767         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3768
3769 2012-03-03  Bruno Haible  <bruno@clisp.org>
3770
3771         modf* tests: More tests.
3772         * tests/test-modf.h: New file.
3773         * tests/test-modf.c: Include <float.h> and test-modf.h.
3774         (main): Invoke test_function.
3775         * tests/test-modff.c: Include <float.h> and test-modf.h.
3776         (main): Invoke test_function.
3777         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3778         (main): Invoke test_function.
3779         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3780         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3781         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3782         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3783         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3784         (Depends-on): Add 'float'.
3785         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3786
3787 2012-03-03  Bruno Haible  <bruno@clisp.org>
3788
3789         fabs* tests: More tests.
3790         * tests/test-fabs.h: New file, partially extracted from
3791         tests/test-fabsl.c.
3792         * tests/test-fabs.c (RANDOM): New macro.
3793         * tests/test-fabsf.c (RANDOM): New macro.
3794         * tests/test-fabsl.c (RANDOM): New macro.
3795         * modules/fabs-tests (Files): Add tests/randomd.c.
3796         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3797         * modules/fabsf-tests (Files): Add tests/randomf.c.
3798         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3799         * modules/fabsl-tests (Files): Add tests/randoml.c.
3800         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3801
3802 2012-03-03  Bruno Haible  <bruno@clisp.org>
3803
3804         ldexp* tests: More tests.
3805         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3806         * tests/test-ldexp.c (RANDOM): New macro.
3807         * tests/test-ldexpf.c (RANDOM): New macro.
3808         * tests/test-ldexpl.c (RANDOM): New macro.
3809         * modules/ldexp-tests (Files): Add tests/randomd.c.
3810         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3811         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3812         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3813         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3814         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3815
3816 2012-03-03  Bruno Haible  <bruno@clisp.org>
3817
3818         frexp* tests: More tests.
3819         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
3820         * tests/test-frexp.c (RANDOM): New macro.
3821         * tests/test-frexpf.c (RANDOM): New macro.
3822         * tests/test-frexpl.c (RANDOM): New macro.
3823         * modules/frexp-tests (Files): Add tests/randomd.c.
3824         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
3825         * modules/frexpf-tests (Files): Add tests/randomf.c.
3826         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
3827         * modules/frexpl-tests (Files): Add tests/randoml.c.
3828         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
3829
3830 2012-03-03  Bruno Haible  <bruno@clisp.org>
3831
3832         Support for pseudo-random numbers in tests.
3833         * tests/randomf.c: New file.
3834         * tests/randomd.c: New file.
3835         * tests/randoml.c: New file.
3836         * tests/macros.h (randomf, randomd, randoml): New declarations.
3837
3838 2012-03-03  Bruno Haible  <bruno@clisp.org>
3839
3840         frexp* tests: Refactor.
3841         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
3842         * tests/test-frexp.c: Include and use it.
3843         * tests/test-frexpf.c: Likewise.
3844         * tests/test-frexpl.c: Likewise.
3845         * modules/frexp-tests (Files): Add tests/test-frexp.h.
3846         * modules/frexpf-tests (Files): Likewise.
3847         * modules/frexpl-tests (Files): Likewise.
3848
3849 2012-03-02  Jim Meyering  <meyering@redhat.com>
3850
3851         maint: don't specify XZ_OPT=-9ev in dist-related rule
3852         Using xz's -9 option is warranted only if you have a very large
3853         tarball (see xz's documentation for the sizes vs. presets), and
3854         requires 64MiB of memory at decompression time.
3855         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
3856         Automake's default of just "-e" is fine.  Override on a
3857         per-package basis by setting XZ_OPT e.g., in cfg.mk.
3858
3859 2012-03-01  Eric Blake  <eblake@redhat.com>
3860
3861         maint.mk: allow announcement for non-gnulib project
3862         * maint.mk (announcement): Skip gnulib version if not used.
3863
3864 2012-03-01  Jim Meyering  <meyering@redhat.com>
3865
3866         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
3867         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
3868         envvar settings cannot interfere.  Otherwise, setting envvars like
3869         prohibit=foo require=bar, etc. would cause spurious test failures.
3870
3871 2012-03-01  Eric Blake  <eblake@redhat.com>
3872
3873         maint.mk: add per-line exclusions to prohibitions
3874         * maint.mk (_sc_search_regexp): Add $exclude parameter.
3875         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3876         (sc_const_long_option): Use it.
3877
3878 2012-03-01  Bruno Haible  <bruno@clisp.org>
3879
3880         Tests for module 'expl-ieee'.
3881         * modules/expl-ieee-tests: New file.
3882         * tests/test-expl-ieee.c: New file.
3883
3884         New module 'expl-ieee'.
3885         * modules/expl-ieee: New file.
3886
3887         Tests for module 'exp-ieee'.
3888         * modules/exp-ieee-tests: New file.
3889         * tests/test-exp-ieee.c: New file.
3890
3891         New module 'exp-ieee'.
3892         * modules/exp-ieee: New file.
3893
3894         Tests for module 'expf-ieee'.
3895         * modules/expf-ieee-tests: New file.
3896         * tests/test-expf-ieee.c: New file.
3897         * tests/test-exp-ieee.h: New file.
3898
3899         New module 'expf-ieee'.
3900         * modules/expf-ieee: New file.
3901
3902 2012-02-29  Bruno Haible  <bruno@clisp.org>
3903
3904         cbrtl-ieee: Work around test failure on IRIX 6.5.
3905         * m4/cbrtl-ieee.m4: New file.
3906         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
3907         test whether cbrtl works with a minus zero argument. Replace it if not.
3908         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
3909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
3910         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
3911         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
3912         (Depends-on): Update conditions.
3913         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
3914         m4/signbit.m4.
3915         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
3916         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
3917         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
3918
3919         Tests for module 'cbrtl-ieee'.
3920         * modules/cbrtl-ieee-tests: New file.
3921         * tests/test-cbrtl-ieee.c: New file.
3922
3923         New module 'cbrtl-ieee'.
3924         * modules/cbrtl-ieee: New file.
3925
3926         Tests for module 'cbrt-ieee'.
3927         * modules/cbrt-ieee-tests: New file.
3928         * tests/test-cbrt-ieee.c: New file.
3929
3930         New module 'cbrt-ieee'.
3931         * modules/cbrt-ieee: New file.
3932
3933         Tests for module 'cbrtf-ieee'.
3934         * modules/cbrtf-ieee-tests: New file.
3935         * tests/test-cbrtf-ieee.c: New file.
3936         * tests/test-cbrt-ieee.h: New file.
3937
3938         New module 'cbrtf-ieee'.
3939         * modules/cbrtf-ieee: New file.
3940
3941 2012-02-29  Bruno Haible  <bruno@clisp.org>
3942
3943         cbrtf: Work around bug in IRIX 6.5 system function.
3944         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
3945         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
3946         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
3947         work.
3948         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3949         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3950         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3951         (Depends-on): Update conditions.
3952         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3953
3954 2012-02-29  Bruno Haible  <bruno@clisp.org>
3955
3956         Tests for module 'cbrtl'.
3957         * modules/cbrtl-tests: New file.
3958         * tests/test-cbrtl.c: New file.
3959
3960         New module 'cbrtl'.
3961         * lib/math.in.h (cbrtl): New declaration.
3962         * lib/cbrtl.c: New file.
3963         * m4/cbrtl.m4: New file.
3964         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3965         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3966         HAVE_DECL_CBRTL.
3967         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3968         HAVE_DECL_CBRTL.
3969         * modules/cbrtl: New file.
3970         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3971         * doc/posix-functions/cbrtl.texi: Mention the new module.
3972
3973 2012-02-29  Bruno Haible  <bruno@clisp.org>
3974
3975         Tests for module 'cbrtf'.
3976         * modules/cbrtf-tests: New file.
3977         * tests/test-cbrtf.c: New file.
3978
3979         New module 'cbrtf'.
3980         * lib/math.in.h (cbrtf): New declaration.
3981         * lib/cbrtf.c: New file.
3982         * m4/cbrtf.m4: New file.
3983         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3985         HAVE_DECL_CBRTF.
3986         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3987         HAVE_DECL_CBRTF.
3988         * modules/cbrtf: New file.
3989         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3990         * doc/posix-functions/cbrtf.texi: Mention the new module.
3991
3992 2012-02-29  Bruno Haible  <bruno@clisp.org>
3993
3994         cbrt: Provide replacement on MSVC and Minix.
3995         * lib/math.in.h (cbrt): New declaration.
3996         * lib/cbrt.c: New file.
3997         * m4/cbrt.m4: New file.
3998         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4000         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4001         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4002         (Depends-on): Add dependencies.
4003         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4004         * tests/test-math-c++.cc: Check the declaration of cbrt.
4005         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4006         replacement.
4007
4008 2012-02-29  Bruno Haible  <bruno@clisp.org>
4009
4010         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4011         * m4/hypotl-ieee.m4: New file.
4012         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4013         test whether hypotl works with mixed NaN and Infinity arguments.
4014         Replace it if not.
4015         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4017         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4018         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4019         (Depends-on): Update conditions.
4020         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4021         (Depends-on): Add hypot-ieee.
4022         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4023         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4024
4025         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4026         * m4/hypotf-ieee.m4: New file.
4027         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4028         test whether hypotf works with mixed NaN and Infinity arguments.
4029         Replace it if not.
4030         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4031         (Depends-on): Add hypot-ieee.
4032         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4033         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4034
4035         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4036         * lib/math.in.h (hypot): New declaration.
4037         * lib/hypot.c: New file.
4038         * m4/hypot-ieee.m4: New file.
4039         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4040         whether hypot works with mixed NaN and Infinity arguments. Replace it
4041         if not.
4042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4043         REPLACE_HYPOT.
4044         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4045         * modules/hypot (Files): Add lib/hypot.c.
4046         (Depends-on): Add dependencies.
4047         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4048         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4049         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4050         * tests/test-math-c++.cc: Check the declaration of hypot.
4051         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4052
4053         Tests for module 'hypotl-ieee'.
4054         * modules/hypotl-ieee-tests: New file.
4055         * tests/test-hypotl-ieee.c: New file.
4056
4057         New module 'hypotl-ieee'.
4058         * modules/hypotl-ieee: New file.
4059
4060         Tests for module 'hypot-ieee'.
4061         * modules/hypot-ieee-tests: New file.
4062         * tests/test-hypot-ieee.c: New file.
4063
4064         New module 'hypot-ieee'.
4065         * modules/hypot-ieee: New file.
4066
4067         Tests for module 'hypotf-ieee'.
4068         * modules/hypotf-ieee-tests: New file.
4069         * tests/test-hypotf-ieee.c: New file.
4070         * tests/test-hypot-ieee.h: New file.
4071
4072         New module 'hypotf-ieee'.
4073         * modules/hypotf-ieee: New file.
4074
4075 2012-02-29  Bruno Haible  <bruno@clisp.org>
4076
4077         Remove unused variables.
4078         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4079         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4080         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4081         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4082
4083 2012-02-29  Eric Blake  <eblake@redhat.com>
4084
4085         termios: fix pid_t always, not just for tcgetsid
4086         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4087         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4088         just when building tcgetsid.
4089
4090 2012-02-29  Bruno Haible  <bruno@clisp.org>
4091
4092         Tests for module 'hypotl'.
4093         * modules/hypotl-tests: New file.
4094         * tests/test-hypotl.c: New file.
4095
4096         New module 'hypotl'.
4097         * lib/math.in.h (hypotl): New declaration.
4098         * lib/hypotl.c: New file.
4099         * m4/hypotl.m4: New file.
4100         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4102         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4103         * modules/hypotl: New file.
4104         * tests/test-math-c++.cc: Check the hypotl declaration.
4105         * doc/posix-functions/hypotl.texi: Mention the new module.
4106
4107 2012-02-29  Eric Blake  <eblake@redhat.com>
4108
4109         tcgetsid: fix cygwin header bug
4110         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4111
4112         docs: update cygwin progress
4113         * doc/posix-functions/llround.texi (llround): Added in cygwin
4114         1.7.8.
4115         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4116         * doc/glibc-functions/program_invocation_name.texi
4117         (program_invocation_name): Likewise.
4118         * doc/glibc-functions/program_invocation_short_name.texi
4119         (program_invocation_short_name): Likewise.
4120         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4121         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4122         Likewise.
4123         * doc/posix-functions/pthread_spin_destroy.texi
4124         (pthread_spin_destroy): Added in cygwin 1.7.10.
4125         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4126         Likewise.
4127         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4128         Likewise.
4129         * doc/posix-functions/pthread_spin_trylock.texi
4130         (pthread_spin_trylock): Likewise.
4131         * doc/posix-functions/pthread_spin_unlock.texi
4132         (pthread_spin_unlock): Likewise.
4133         * doc/posix-functions/pthread_setschedprio.texi
4134         (pthread_setschedprio): Likewise.
4135         * doc/posix-functions/pthread_attr_getstack.texi
4136         (pthread_attr_getstack): Likewise.
4137         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4138         (pthread_attr_getstackaddr): Likewise.
4139         * doc/glibc-functions/pthread_getattr_np.texi
4140         (pthread_getattr_np): Likewise.
4141         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4142         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4143         * doc/posix-functions/clock_settime.texi (clock_settime):
4144         Likewise.
4145         * doc/posix-functions/pthread_attr_getguardsize.texi
4146         (pthread_attr_getguardsize): Likewise.
4147         * doc/posix-functions/pthread_attr_setguardsize.texi
4148         (pthread_attr_setguardsize): Likewise.
4149         * doc/posix-functions/pthread_attr_setstack.texi
4150         (pthread_attr_setstack): Likewise.
4151         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4152         (pthread_attr_setstackaddr): Likewise.
4153         * doc/posix-functions/clock_getcpuclockid.texi
4154         (clock_getcpuclockid): Likewise.
4155         * doc/posix-functions/pthread_getcpuclockid.texi
4156         (pthread_getcpuclockid): Likewise.
4157         * doc/glibc-functions/error.texi (error): Likewise.
4158         * doc/glibc-functions/error_at_line.texi (error_at_line):
4159         Likewise.
4160         * doc/glibc-functions/error_message_count.texi
4161         (error_message_count): Likewise.
4162         * doc/glibc-functions/error_one_per_line.texi
4163         (error_one_per_line): Likewise.
4164         * doc/glibc-functions/error_print_progname.texi
4165         (error_print_progname): Likewise.
4166         * doc/posix-functions/pthread_condattr_getclock.texi
4167         (pthread_condattr_getclock): Likewise.
4168         * doc/posix-functions/pthread_condattr_setclock.texi
4169         (pthread_condattr_setclock): Likewise.
4170         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4171         Likewise.
4172         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4173         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4174         * doc/glibc-functions/get_current_dir_name.texi
4175         (get_current_dir_name): Likewise.
4176         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4177         Likewise.
4178         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4179         wrong return type.
4180         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4181         1.7.11.
4182
4183 2012-02-29  Bruno Haible  <bruno@clisp.org>
4184
4185         Tests for module 'hypotf'.
4186         * modules/hypotf-tests: New file.
4187         * tests/test-hypotf.c: New file.
4188
4189         New module 'hypotf'.
4190         * lib/math.in.h (hypotf): New declaration.
4191         * lib/hypotf.c: New file.
4192         * m4/hypotf.m4: New file.
4193         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4195         REPLACE_HYPOTF.
4196         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4197         REPLACE_HYPOTF.
4198         * modules/hypotf: New file.
4199         * tests/test-math-c++.cc: Check the hypotf declaration.
4200         * doc/posix-functions/hypotf.texi: Mention the new module.
4201
4202         hypot: Prepare for hypotf module.
4203         * m4/hypot.m4: New file.
4204         * modules/hypot (Files): Add m4/hypot.m4.
4205         (configure.ac): Invoke gl_FUNC_HYPOT.
4206
4207 2012-02-29  Bruno Haible  <bruno@clisp.org>
4208
4209         hypot tests: More tests.
4210         * tests/test-hypot.c: Include <float.h>.
4211         (main): Add tests about overflow and underflow.
4212
4213 2012-02-29  Bruno Haible  <bruno@clisp.org>
4214
4215         math code: Add comments.
4216         * lib/acosl.c: Add comment about related glibc source files.
4217         * lib/asinl.c: Likewise.
4218         * lib/atanl.c: Likewise.
4219         * lib/expl.c: Likewise.
4220         * lib/logl.c: Likewise.
4221         * lib/sincosl.c: Likewise.
4222         * lib/sinl.c: Likewise.
4223         * lib/tanl.c: Likewise.
4224         * lib/trigl.c: Likewise.
4225         * lib/cosl.c: Likewise. Fix comments.
4226
4227 2012-02-28  Bruno Haible  <bruno@clisp.org>
4228
4229         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4230         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4231         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4232         HUGE_VALL are defined.
4233         (numeric_equald): Renamed from numeric_equal.
4234         (numeric_equalf, numeric_equall): New functions.
4235         (main): Check also HUGE_VALF, HUGE_VALL.
4236         * modules/math-tests (Files): Add tests/macros.h.
4237         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4238         HUGE_VALL.
4239
4240 2012-02-28  Bruno Haible  <bruno@clisp.org>
4241
4242         doc: Move ISO C11 feature notes into POSIX chapters.
4243         * doc/posix-functions/aligned_alloc.texi: Renamed from
4244         doc/glibc-functions/aligned_alloc.texi.
4245         * doc/posix-functions/quick_exit.texi: Renamed from
4246         doc/glibc-functions/quick_exit.texi.
4247         * doc/posix-headers/uchar.texi: Renamed from
4248         doc/glibc-headers/uchar.texi.
4249         * doc/posix-functions/c16rtomb.texi: Renamed from
4250         doc/glibc-functions/c16rtomb.texi.
4251         * doc/posix-functions/c32rtomb.texi: Renamed from
4252         doc/glibc-functions/c32rtomb.texi.
4253         * doc/posix-functions/mbrtoc16.texi: Renamed from
4254         doc/glibc-functions/mbrtoc16.texi.
4255         * doc/posix-functions/mbrtoc32.texi: Renamed from
4256         doc/glibc-functions/mbrtoc32.texi.
4257         * doc/gnulib.texi: Update.
4258         (Glibc uchar.h): Remove section.
4259         Suggested by Eric Blake.
4260
4261 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4262
4263         stdnoreturn: port to MSVC better
4264         MSVC standard headers use __declspec(noreturn), so #define noreturn
4265         to empty on that platform.  Reported by Bruno Haible in
4266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4267         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4268         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4269
4270 2012-02-28  Bruno Haible  <bruno@clisp.org>
4271
4272         doc: Mention new glibc headers and functions.
4273         * doc/glibc-headers/uchar.texi: New file.
4274         * doc/glibc-functions/aligned_alloc.texi: New file.
4275         * doc/glibc-functions/c16rtomb.texi: New file.
4276         * doc/glibc-functions/c32rtomb.texi: New file.
4277         * doc/glibc-functions/clock_adjtime.texi: New file.
4278         * doc/glibc-functions/fanotify_init.texi: New file.
4279         * doc/glibc-functions/fanotify_mark.texi: New file.
4280         * doc/glibc-functions/inet6_opt_append.texi: New file.
4281         * doc/glibc-functions/inet6_opt_find.texi: New file.
4282         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4283         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4284         * doc/glibc-functions/inet6_opt_init.texi: New file.
4285         * doc/glibc-functions/inet6_opt_next.texi: New file.
4286         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4287         * doc/glibc-functions/inet6_rth_add.texi: New file.
4288         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4289         * doc/glibc-functions/inet6_rth_init.texi: New file.
4290         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4291         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4292         * doc/glibc-functions/inet6_rth_space.texi: New file.
4293         * doc/glibc-functions/login.texi: New file.
4294         * doc/glibc-functions/mbrtoc16.texi: New file.
4295         * doc/glibc-functions/mbrtoc32.texi: New file.
4296         * doc/glibc-functions/name_to_handle_at.texi: New file.
4297         * doc/glibc-functions/ntp_gettimex.texi: New file.
4298         * doc/glibc-functions/open_by_handle_at.texi: New file.
4299         * doc/glibc-functions/prlimit.texi: New file.
4300         * doc/glibc-functions/process_vm_readv.texi: New file.
4301         * doc/glibc-functions/process_vm_writev.texi: New file.
4302         * doc/glibc-functions/recvmmsg.texi: New file.
4303         * doc/glibc-functions/scandirat.texi: New file.
4304         * doc/glibc-functions/sendmmsg.texi: New file.
4305         * doc/glibc-functions/setns.texi: New file.
4306         * doc/glibc-functions/timespec_get.texi: New file.
4307         * doc/gnulib.texi: Include them.
4308         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4309         sections.
4310         Reported by Eric Blake.
4311
4312 2012-02-28  Bruno Haible  <bruno@clisp.org>
4313
4314         Avoid compilation errors with MSVC option -fp:strict.
4315         * lib/floor.c: Use MSVC specific pragma fenv_access.
4316         * lib/ceil.c: Likewise.
4317         * lib/trunc.c: Likewise.
4318         * lib/round.c: Likewise.
4319         * lib/rint.c: Likewise.
4320         * lib/fma.c: Likewise.
4321         * lib/integer_length.c: Likewise.
4322         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4324         * tests/test-floor2.c: Likewise.
4325         * tests/test-floorf2.c: Likewise.
4326         * tests/test-ceil2.c: Likewise.
4327         * tests/test-ceilf2.c: Likewise.
4328         * tests/test-trunc2.c: Likewise.
4329         * tests/test-truncf2.c: Likewise.
4330         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4331
4332 2012-02-27  Bruno Haible  <bruno@clisp.org>
4333
4334         Tests for module 'sqrtl-ieee'.
4335         * modules/sqrtl-ieee-tests: New file.
4336         * tests/test-sqrtl-ieee.c: New file.
4337
4338         New module 'sqrtl-ieee'.
4339         * modules/sqrtl-ieee: New file.
4340
4341         Tests for module 'sqrt-ieee'.
4342         * modules/sqrt-ieee-tests: New file.
4343         * tests/test-sqrt-ieee.c: New file.
4344
4345         New module 'sqrt-ieee'.
4346         * modules/sqrt-ieee: New file.
4347
4348         Tests for module 'sqrtf-ieee'.
4349         * modules/sqrtf-ieee-tests: New file.
4350         * tests/test-sqrtf-ieee.c: New file.
4351         * tests/test-sqrt-ieee.h: New file.
4352
4353         New module 'sqrtf-ieee'.
4354         * modules/sqrtf-ieee: New file.
4355
4356 2012-02-27  Bruno Haible  <bruno@clisp.org>
4357
4358         remainderl-ieee: Work around test failure on OSF/1.
4359         * m4/remainderl-ieee.m4: New file.
4360         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4361         present, test whether remainderl works with a zero second argument.
4362         Replace it if not.
4363         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4365         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4366         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4367         (Depends-on): Update conditions.
4368         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4369         (Depends-on): Add remainder-ieee.
4370         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4371         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4372         module.
4373
4374         remainderf-ieee: Work around test failure on OSF/1.
4375         * m4/remainderf-ieee.m4: New file.
4376         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4377         present, test whether remainderf works with a zero second argument.
4378         Replace it if not.
4379         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4381         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4382         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4383         (Depends-on): Update conditions.
4384         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4385         (Depends-on): Add remainder-ieee.
4386         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4387         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4388         module.
4389
4390         remainder-ieee: Work around test failure on OSF/1.
4391         * m4/remainder-ieee.m4: New file.
4392         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4393         present, test whether remainder works with a zero second argument.
4394         Replace it if not.
4395         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4397         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4398         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4399         (Depends-on): Update dependencies.
4400         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4401         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4402         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4403
4404         Tests for module 'remainderl-ieee'.
4405         * modules/remainderl-ieee-tests: New file.
4406         * tests/test-remainderl-ieee.c: New file.
4407
4408         New module 'remainderl-ieee'.
4409         * modules/remainderl-ieee: New file.
4410
4411         Tests for module 'remainder-ieee'.
4412         * modules/remainder-ieee-tests: New file.
4413         * tests/test-remainder-ieee.c: New file.
4414
4415         New module 'remainder-ieee'.
4416         * modules/remainder-ieee: New file.
4417
4418         Tests for module 'remainderf-ieee'.
4419         * modules/remainderf-ieee-tests: New file.
4420         * tests/test-remainderf-ieee.c: New file.
4421         * tests/test-remainder-ieee.h: New file.
4422
4423         New module 'remainderf-ieee'.
4424         * modules/remainderf-ieee: New file.
4425
4426 2012-02-27  Bruno Haible  <bruno@clisp.org>
4427
4428         modff, modfl: Fix configure syntax error.
4429         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4430         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4431
4432 2012-02-27  Bruno Haible  <bruno@clisp.org>
4433
4434         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4435         * m4/fmodl-ieee.m4: New file.
4436         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4437         whether fmodl works with zero arguments. Replace it if not.
4438         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4439         (Depends-on): Add fmod-ieee.
4440         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4441         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4442
4443         fmodf-ieee: Work around test failure on OSF/1.
4444         * m4/fmodf-ieee.m4: New file.
4445         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4446         whether fmodf works with zero arguments. Replace it if not.
4447         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4449         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4450         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4451         (Depends-on): Update dependencies.
4452         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4453         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4454         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4455
4456         fmodf-ieee: Work around test failure on MSVC 9.
4457         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4458         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4459
4460         fmod-ieee: Work around test failures on OSF/1, mingw.
4461         * m4/fmod-ieee.m4: New file.
4462         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4463         whether fmod works with zero arguments. Replace it if not.
4464         * lib/math.in.h (fmod): New declaration.
4465         * lib/fmod.c: New file.
4466         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4467         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4468         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4469         * modules/fmod (Files): Add lib/fmod.c.
4470         (Depends-on): Add math, isinf, trunc, fma.
4471         (configure.ac): Arrange to compile lib/fmod.c if needed.
4472         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4473         m4/signbit.m4.
4474         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4475         * tests/test-math-c++.cc: Check the declaration of fmod.
4476         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4477
4478         fmodl-ieee: Fix test failures.
4479         * lib/fmodl.c (fmodl): Treat Inf specially.
4480         * modules/fmodl (Depends-on): Add isinf.
4481
4482         Tests for module 'fmodl-ieee'.
4483         * modules/fmodl-ieee-tests: New file.
4484         * tests/test-fmodl-ieee.c: New file.
4485
4486         New module 'fmodl-ieee'.
4487         * modules/fmodl-ieee: New file.
4488
4489         Tests for module 'fmod-ieee'.
4490         * modules/fmod-ieee-tests: New file.
4491         * tests/test-fmod-ieee.c: New file.
4492
4493         New module 'fmod-ieee'.
4494         * modules/fmod-ieee: New file.
4495
4496         Tests for module 'fmodf-ieee'.
4497         * modules/fmodf-ieee-tests: New file.
4498         * tests/test-fmodf-ieee.c: New file.
4499         * tests/test-fmod-ieee.h: New file.
4500
4501         New module 'fmodf-ieee'.
4502         * modules/fmodf-ieee: New file.
4503
4504 2012-02-27  Bruno Haible  <bruno@clisp.org>
4505
4506         Tests for module 'rintl-ieee'.
4507         * modules/rintl-ieee-tests: New file.
4508         * tests/test-rintl-ieee.c: New file.
4509
4510         New module 'rintl-ieee'.
4511         * modules/rintl-ieee: New file.
4512
4513         Tests for module 'rint-ieee'.
4514         * modules/rint-ieee-tests: New file.
4515         * tests/test-rint-ieee.c: New file.
4516
4517         New module 'rint-ieee'.
4518         * modules/rint-ieee: New file.
4519
4520         Tests for module 'rintf-ieee'.
4521         * modules/rintf-ieee-tests: New file.
4522         * tests/test-rintf-ieee.c: New file.
4523         * tests/test-rint-ieee.h: New file.
4524
4525         New module 'rintf-ieee'.
4526         * modules/rintf-ieee: New file.
4527
4528 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4529
4530         regex: re_search etc. should return -2 when memory exhausted
4531         This bug was uncovered when testing 'grep'.  Without the fix,
4532         re_search and friends return -1 when memory is exhausted, but -1
4533         means no match, and this causes grep to falsely report no-match
4534         instead of memory-exhaustion.  See
4535         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4536         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4537         trouble; this can occur if re_search_internal ran out of memory.
4538
4539 2012-02-26  Bruno Haible  <bruno@clisp.org>
4540
4541         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4542         * m4/modfl-ieee.m4: New file.
4543         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4544         whether modfl works with Inf. Replace it if not.
4545         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4547         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4548         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4549         (Depends-on): Update dependencies.
4550         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4551         m4/signbit.m4.
4552         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4553         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4554
4555         modfl-ieee: Fix dependencies.
4556         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4557
4558         modfl-ieee: Fix test failures.
4559         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4560         * modules/modfl (Depends-on): Add isfinite, isinf.
4561
4562         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4563         * m4/modff-ieee.m4: New file.
4564         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4565         whether modff works with NaN and Inf. Replace it if not.
4566         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4568         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4569         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4570         (Depends-on): Update dependencies.
4571         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4572         m4/signbit.m4.
4573         (Depends-on): Add modf-ieee.
4574         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4575         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4576
4577         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4578         * m4/modf-ieee.m4: New file.
4579         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4580         whether modf works with NaN and Inf. Replace it if not.
4581         * lib/math.in.h (modf): New declaration.
4582         * lib/modf.c: New file.
4583         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4585         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4586         * modules/modf (Files): Add lib/modf.c.
4587         (Depends-on): Add math, isfinite, trunc, isinf.
4588         (configure.ac): Addrange to compile lib/modf.c if needed.
4589         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4590         m4/signbit.m4.
4591         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4592         * tests/test-math-c++.cc: Check the declaration of modf.
4593         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4594
4595         Tests for module 'modfl-ieee'.
4596         * modules/modfl-ieee-tests: New file.
4597         * tests/test-modfl-ieee.c: New file.
4598
4599         New module 'modfl-ieee'.
4600         * modules/modfl-ieee: New file.
4601
4602         Tests for module 'modf-ieee'.
4603         * modules/modf-ieee-tests: New file.
4604         * tests/test-modf-ieee.c: New file.
4605
4606         New module 'modf-ieee'.
4607         * modules/modf-ieee: New file.
4608
4609         Tests for module 'modff-ieee'.
4610         * modules/modff-ieee-tests: New file.
4611         * tests/test-modff-ieee.c: New file.
4612         * tests/test-modf-ieee.h: New file.
4613
4614         New module 'modff-ieee'.
4615         * modules/modff-ieee: New file.
4616
4617 2012-02-26  Bruno Haible  <bruno@clisp.org>
4618
4619         Tests for module 'fabsl-ieee'.
4620         * modules/fabsl-ieee-tests: New file.
4621         * tests/test-fabsl-ieee.c: New file.
4622
4623         New module 'fabsl-ieee'.
4624         * modules/fabsl-ieee: New file.
4625
4626         Tests for module 'fabs-ieee'.
4627         * modules/fabs-ieee-tests: New file.
4628         * tests/test-fabs-ieee.c: New file.
4629
4630         New module 'fabs-ieee'.
4631         * modules/fabs-ieee: New file.
4632
4633         Tests for module 'fabsf-ieee'.
4634         * modules/fabsf-ieee-tests: New file.
4635         * tests/test-fabsf-ieee.c: New file.
4636         * tests/test-fabs-ieee.h: New file.
4637
4638         New module 'fabsf-ieee'.
4639         * modules/fabsf-ieee: New file.
4640
4641 2012-02-26  Bruno Haible  <bruno@clisp.org>
4642
4643         Tests for module 'fmal-ieee'.
4644         * modules/fmal-ieee-tests: New file.
4645         * tests/test-fmal-ieee.c: New file.
4646
4647         New module 'fmal-ieee'.
4648         * modules/fmal-ieee: New file.
4649
4650         Tests for module 'fma-ieee'.
4651         * modules/fma-ieee-tests: New file.
4652         * tests/test-fma-ieee.c: New file.
4653
4654         New module 'fma-ieee'.
4655         * modules/fma-ieee: New file.
4656
4657         Tests for module 'fmaf-ieee'.
4658         * modules/fmaf-ieee-tests: New file.
4659         * tests/test-fmaf-ieee.c: New file.
4660         * tests/test-fma-ieee.h: New file.
4661
4662         New module 'fmaf-ieee'.
4663         * modules/fmaf-ieee: New file.
4664
4665 2012-02-26  Bruno Haible  <bruno@clisp.org>
4666
4667         Tests for module 'ldexpl-ieee'.
4668         * modules/ldexpl-ieee-tests: New file.
4669         * tests/test-ldexpl-ieee.c: New file.
4670
4671         New module 'ldexpl-ieee'.
4672         * modules/ldexpl-ieee: New file.
4673
4674         Tests for module 'ldexp-ieee'.
4675         * modules/ldexp-ieee-tests: New file.
4676         * tests/test-ldexp-ieee.c: New file.
4677
4678         New module 'ldexp-ieee'.
4679         * modules/ldexp-ieee: New file.
4680
4681         Tests for module 'ldexpf-ieee'.
4682         * modules/ldexpf-ieee-tests: New file.
4683         * tests/test-ldexpf-ieee.c: New file.
4684         * tests/test-ldexp-ieee.h: New file.
4685
4686         New module 'ldexpf-ieee'.
4687         * modules/ldexpf-ieee: New file.
4688
4689 2012-02-26  Bruno Haible  <bruno@clisp.org>
4690
4691         Refactor frexp*-ieee tests.
4692         * tests/test-frexp-ieee.h: New file.
4693         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4694         (main): Just call test_function.
4695         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4696         (main): Just call test_function.
4697         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4698         (main): Just call test_function.
4699         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4700         * modules/frexp-ieee-tests (Files): Likewise.
4701         * modules/frexpl-ieee-tests (Files): Likewise.
4702
4703         Tests for module 'frexpl-ieee'.
4704         * modules/frexpl-ieee-tests: New file.
4705         * tests/test-frexpl-ieee.c: New file.
4706
4707         New module 'frexpl-ieee'.
4708         * modules/frexpl-ieee: New file.
4709
4710         Tests for module 'frexp-ieee'.
4711         * modules/frexp-ieee-tests: New file.
4712         * tests/test-frexp-ieee.c: New file.
4713
4714         New module 'frexp-ieee'.
4715         * modules/frexp-ieee: New file.
4716
4717         Tests for module 'frexpf-ieee'.
4718         * modules/frexpf-ieee-tests: New file.
4719         * tests/test-frexpf-ieee.c: New file.
4720
4721         New module 'frexpf-ieee'.
4722         * modules/frexpf-ieee: New file.
4723
4724 2012-02-26  Bruno Haible  <bruno@clisp.org>
4725
4726         roundl-ieee tests: More tests.
4727         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4728         (main): Add tests for [MX] shaded specification in POSIX.
4729         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4730         (Depends-on): Add isnanl-nolibm.
4731
4732         round-ieee tests: More tests.
4733         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4734         (main): Add tests for [MX] shaded specification in POSIX.
4735         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4736         (Depends-on): Add isnand-nolibm.
4737
4738         roundf-ieee tests: More tests.
4739         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4740         (main): Add tests for [MX] shaded specification in POSIX.
4741         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4742         (Depends-on): Add isnanf-nolibm.
4743
4744         truncl-ieee tests: More tests.
4745         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4746         (main): Add tests for [MX] shaded specification in POSIX.
4747         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4748         (Depends-on): Add isnanl-nolibm.
4749
4750         trunc-ieee tests: More tests.
4751         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4752         (main): Add tests for [MX] shaded specification in POSIX.
4753         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4754         (Depends-on): Add isnand-nolibm.
4755
4756         truncf-ieee tests: More tests.
4757         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4758         (main): Add tests for [MX] shaded specification in POSIX.
4759         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4760         (Depends-on): Add isnanf-nolibm.
4761
4762         ceill-ieee tests: More tests.
4763         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4764         (main): Add tests for [MX] shaded specification in POSIX.
4765         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4766         (Depends-on): Add isnanl-nolibm.
4767
4768         ceil-ieee tests: More tests.
4769         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4770         (main): Add tests for [MX] shaded specification in POSIX.
4771         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4772         (Depends-on): Add isnand-nolibm.
4773
4774         ceilf-ieee tests: More tests.
4775         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4776         (main): Add tests for [MX] shaded specification in POSIX.
4777         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4778         (Depends-on): Add isnanf-nolibm.
4779
4780         floorl-ieee tests: More tests.
4781         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4782         (main): Add tests for [MX] shaded specification in POSIX.
4783         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4784         (Depends-on): Add isnanl-nolibm.
4785
4786         floor-ieee tests: More tests.
4787         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4788         (main): Add tests for [MX] shaded specification in POSIX.
4789         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4790         (Depends-on): Add isnand-nolibm.
4791
4792         floorf-ieee tests: More tests.
4793         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4794         (main): Add tests for [MX] shaded specification in POSIX.
4795         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4796         (Depends-on): Add isnanf-nolibm.
4797
4798 2012-02-26  Bruno Haible  <bruno@clisp.org>
4799
4800         fpieee: More comments.
4801         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4802
4803 2012-02-25  Bruno Haible  <bruno@clisp.org>
4804
4805         Tests for module 'log10l'.
4806         * modules/log10l-tests: New file.
4807         * tests/test-log10l.c: New file.
4808         * tests/test-math-c++.cc: Check the declaration of log10l.
4809
4810         New module 'log10l'.
4811         * lib/math.in.h (log10l): New declaration.
4812         * lib/log10l.c: New file.
4813         * m4/log10l.m4: New file.
4814         * modules/log10l: New file.
4815         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4817         HAVE_DECL_LOG10L.
4818         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
4819         HAVE_DECL_LOG10L.
4820         * doc/posix-functions/log10l.texi: Mention the new module.
4821
4822 2012-02-25  Bruno Haible  <bruno@clisp.org>
4823
4824         fmodl, remainder*: Avoid wrong results due to rounding errors.
4825         * lib/fmodl.c (fmodl): Correct the result if it is not within the
4826         expected bounds.
4827         * lib/remainderf.c (remainderf): Likewise.
4828         * lib/remainder.c (remainder): Likewise.
4829         * lib/remainderl.c (remainderl): Likewise.
4830
4831 2012-02-25  Bruno Haible  <bruno@clisp.org>
4832
4833         Tests for module 'remainderl'.
4834         * modules/remainderl-tests: New file.
4835         * tests/test-remainderl.c: New file.
4836         * tests/test-math-c++.cc: Check the declaration of remainderl.
4837
4838         New module 'remainderl'.
4839         * lib/math.in.h (remainderl): New declaration.
4840         * lib/remainderl.c: New file.
4841         * m4/remainderl.m4: New file.
4842         * modules/remainderl: New file.
4843         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
4844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
4845         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
4846         HAVE_REMAINDERL.
4847         * doc/posix-functions/remainderl.texi: Mention the new module.
4848
4849 2012-02-25  Bruno Haible  <bruno@clisp.org>
4850
4851         Tests for module 'remainderf'.
4852         * modules/remainderf-tests: New file.
4853         * tests/test-remainderf.c: New file.
4854         * tests/test-math-c++.cc: Check the declaration of remainderf.
4855
4856         New module 'remainderf'.
4857         * lib/math.in.h (remainderf): New declaration.
4858         * lib/remainderf.c: New file.
4859         * m4/remainderf.m4: New file.
4860         * modules/remainderf: New file.
4861         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
4862         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
4863         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
4864         HAVE_REMAINDERF.
4865         * doc/posix-functions/remainderf.texi: Mention the new module.
4866
4867 2012-02-25  Bruno Haible  <bruno@clisp.org>
4868
4869         remainder: Support for MSVC.
4870         * lib/math.in.h (remainder): New declaration.
4871         * lib/remainder.c: New file.
4872         * m4/remainder.m4: New file.
4873         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
4874         (Depends-on): Add math, round, fma.
4875         (configure.ac): Use results of gl_FUNC_REMAINDER.
4876         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
4877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
4878         HAVE_DECL_REMAINDER.
4879         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
4880         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
4881         * tests/test-math-c++.cc: Check the declaration of remainder.
4882         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
4883         problems are fixed.
4884
4885 2012-02-25  Bruno Haible  <bruno@clisp.org>
4886
4887         Tests for module 'fmodl'.
4888         * modules/fmodl-tests: New file.
4889         * tests/test-fmodl.c: New file.
4890         * tests/test-math-c++.cc: Check the declaration of fmodl.
4891
4892         New module 'fmodl'.
4893         * lib/math.in.h (fmodl): New declaration.
4894         * lib/fmodl.c: New file.
4895         * m4/fmodl.m4: New file.
4896         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
4897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
4898         REPLACE_FMODL.
4899         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
4900         REPLACE_FMODL.
4901         * modules/fmodl: New file.
4902         * doc/posix-functions/fmodl.texi: Mention the new module.
4903
4904 2012-02-25  Bruno Haible  <bruno@clisp.org>
4905
4906         Tests for module 'modfl'.
4907         * modules/modfl-tests: New file.
4908         * tests/test-modfl.c: New file.
4909         * tests/test-math-c++.cc: Check the declaration of modfl.
4910
4911         New module 'modfl'.
4912         * lib/math.in.h (modfl): New declaration.
4913         * lib/modfl.c: New file.
4914         * m4/modfl.m4: New file.
4915         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
4916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
4917         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
4918         * modules/modfl: New file.
4919         * doc/posix-functions/modfl.texi: Mention the new module.
4920
4921 2012-02-25  Bruno Haible  <bruno@clisp.org>
4922
4923         Tests for module 'fabsl'.
4924         * modules/fabsl-tests: New file.
4925         * tests/test-fabsl.c: New file.
4926         * tests/test-math-c++.cc: Check the declaration of fabsl.
4927
4928         New module 'fabsl'.
4929         * lib/math.in.h (fabsl): New declaration.
4930         * lib/fabsl.c: New file.
4931         * m4/fabsl.m4: New file.
4932         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
4933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
4934         REPLACE_FABSL.
4935         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
4936         REPLACE_FABSL.
4937         * modules/fabsl: New file.
4938         * doc/posix-functions/fabsl.texi: Mention the new module.
4939
4940 2012-02-25  Bruno Haible  <bruno@clisp.org>
4941
4942         fabs tests: More tests.
4943         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
4944         (zero): New variable.
4945         (main): Add tests for signed zero.
4946         * modules/fabs-tests (Files): Add tests/minus-zero.h.
4947
4948         fabsf tests: More tests.
4949         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4950         (zero): New variable.
4951         (main): Add tests for signed zero.
4952         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4953
4954 2012-02-24  Bruno Haible  <bruno@clisp.org>
4955
4956         atanl: Provide function definition on MSVC.
4957         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4958         function pointer.
4959         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4960
4961 2012-02-24  Bruno Haible  <bruno@clisp.org>
4962
4963         acosl: Provide function definition on MSVC.
4964         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4965         function pointer.
4966         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4967
4968 2012-02-24  Bruno Haible  <bruno@clisp.org>
4969
4970         asinl: Provide function definition on MSVC.
4971         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4972         function pointer.
4973         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4974
4975 2012-02-24  Bruno Haible  <bruno@clisp.org>
4976
4977         tanl: Provide function definition on MSVC.
4978         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4979         function pointer.
4980         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4981
4982 2012-02-24  Bruno Haible  <bruno@clisp.org>
4983
4984         cosl: Provide function definition on MSVC.
4985         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4986         function pointer.
4987         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4988
4989 2012-02-24  Bruno Haible  <bruno@clisp.org>
4990
4991         sinl: Provide function definition on MSVC.
4992         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4993         function pointer.
4994         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4995
4996 2012-02-24  Bruno Haible  <bruno@clisp.org>
4997
4998         logl: Provide function definition on MSVC.
4999         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5000         function pointer.
5001         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5002
5003 2012-02-24  Bruno Haible  <bruno@clisp.org>
5004
5005         expl: Provide function definition on MSVC.
5006         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5007         function pointer.
5008         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5009
5010 2012-02-24  Bruno Haible  <bruno@clisp.org>
5011
5012         sqrtl: Provide function definition on MSVC.
5013         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5014         a function pointer.
5015         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5016
5017 2012-02-24  Bruno Haible  <bruno@clisp.org>
5018
5019         ceill: Provide function definition on MSVC.
5020         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5021         used as a function pointer.
5022         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5023
5024 2012-02-24  Bruno Haible  <bruno@clisp.org>
5025
5026         floorl: Provide function definition on MSVC.
5027         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5028         used as a function pointer.
5029         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5030
5031 2012-02-24  Bruno Haible  <bruno@clisp.org>
5032
5033         ceilf: Provide function definition on MSVC.
5034         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5035         used as a function pointer.
5036         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5037
5038 2012-02-24  Bruno Haible  <bruno@clisp.org>
5039
5040         floorf: Provide function definition on MSVC.
5041         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5042         used as a function pointer.
5043         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5044
5045 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5046
5047         stdnoreturn: new module
5048         This implements a replacement for C11's <stdnoreturn.h>.
5049         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5050         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5051         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5052         * tests/test-stdnoreturn.c: New files.
5053
5054 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5055
5056         regex: fix false multibyte matches in some regular expressions
5057         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5058         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5059         * lib/regex_internal.c (re_string_skip_chars):
5060         Fix miscomputation of remain_len that may cause incomplete
5061         multi-byte character and false match.
5062
5063 2012-02-24  Jim Meyering  <meyering@redhat.com>
5064
5065         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5066         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5067         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5068         Remove now-unnecessary str''cmp obfuscation.
5069         Suggested by Akim Demaille.
5070
5071 2012-02-24  Bruno Haible  <bruno@clisp.org>
5072
5073         streq: Rename macro.
5074         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5075         * NEWS: Mention the change.
5076         * lib/mbrtowc.c (mbrtowc): Update.
5077         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5078         * lib/wcwidth.c (wcwidth): Update.
5079         Suggested by Akim Demaille and Jim Meyering.
5080
5081 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5082
5083         regex: fix typo in definition of MIN
5084         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5085         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5086
5087 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5088             Bruno Haible  <bruno@clisp.org>
5089
5090         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5091         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5092         entries into a stack-allocated buffer directly.
5093         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5094
5095 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5096             Bruno Haible  <bruno@clisp.org>
5097
5098         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5099
5100          - There were several instances of this pattern:
5101
5102              for (;;) {
5103                n = acl (f, GETACLCNT, 0, NULL);
5104                [ allocate an array A of size N ]
5105                if (acl (f, GETACL, n, a) == n)
5106                  break;
5107              }
5108
5109            This loop might never terminate if some other process is constantly
5110            manipulating the file's ACL.  The loop should be rewritten to
5111            terminate.
5112
5113          - The acl (... GETACLNT ...) call is merely an optimization; its value
5114            is merely a hint as to how big to make the array.  A better
5115            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5116            and just guess a reasonably-big size, growing the size and trying
5117            again if it's not large enough.  This guarantees termination, and
5118            saves a system call.
5119
5120         * lib/acl-internal.h: Include <limits.h>.
5121         (MIN, SIZE_MAX): New macros.
5122         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5123         a stack-allocated buffer, and use malloc if it does not fit. Don't
5124         use GETACLCNT.
5125         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5126
5127 2012-02-19  Bruno Haible  <bruno@clisp.org>
5128
5129         acl: Fix endless loop on Solaris with vxfs.
5130         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5131         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5132         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5133         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5134         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5135         Reported by Bill Jones in
5136         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5137
5138 2012-02-19  Bruno Haible  <bruno@clisp.org>
5139
5140         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5141         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5142         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5143         that this function returns 0 in some more cases.
5144
5145 2012-02-19  Bruno Haible  <bruno@clisp.org>
5146
5147         acl: Update doc references.
5148         * doc/acl-resources.txt: Update links to Solaris documentation.
5149
5150 2012-02-19  Bruno Haible  <bruno@clisp.org>
5151
5152         Fix test failure in many locales on Solaris 11.
5153         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5154         'tr' arguments.
5155         * tests/test-pipe-filter-ii1.c (main): Likewise.
5156         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5157         expressions in the C locale.
5158         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5159         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5160
5161 2012-02-19  Bruno Haible  <bruno@clisp.org>
5162
5163         gnulib-tool: Improve usage message.
5164         * gnulib-tool (func_usage): Move doc of --help and --version to the
5165         section "Operation modes".
5166
5167 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5168
5169         README-release: make it easier to execute commands
5170         * top/README-release: break commands out on to separate lines.
5171
5172 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5173
5174         GNUmakefile: simplify detection of unconfigured trees
5175         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5176         whether the tree make is being run from is already configured or
5177         not.  Related simplifications.
5178
5179 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5180
5181         * gnulib-tool (func_usage): Document --help and --version.
5182
5183 2012-02-11  Jim Meyering  <meyering@redhat.com>
5184
5185         bootstrap: don't exit 0 upon gnulib-tool failure
5186         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5187         its exit status, not 0.
5188
5189 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5190
5191         README-release: various improvements
5192         * top/README-release: Give a command to push changes for the
5193         release.  Add "distcheck" to list of other pre-release checks.
5194         Fix instance of "make stable" which should be "make TYPE".
5195
5196 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5197
5198         maint: replace FSF snail-mail addresses with URLs
5199         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5200         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5201         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5202         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5203         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5204         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5205         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5206         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5207         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5208         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5209         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5210         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5211         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5212         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5213         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5214         * lib/glthread/thread.c, lib/glthread/thread.h:
5215         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5216         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5217         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5218         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5219         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5220         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5221         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5222         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5223         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5224         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5225         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5226         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5227         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5228         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5229         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5230         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5231         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5232         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5233         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5234         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5235         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5236         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5237         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5238         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5239         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5240         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5241         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5242         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5243         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5244         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5245         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5246         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5247         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5248         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5249         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5250         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5251         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5252         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5253         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5254         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5255         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5256         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5257         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5258         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5259         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5260         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5261         * tests/test-poll.c, tests/test-quotearg-simple.c:
5262         * tests/test-quotearg.c, tests/test-quotearg.h:
5263         * tests/test-round-ieee.c, tests/test-round1.c:
5264         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5265         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5266         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5267         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5268         * tests/test-strerror.c, tests/test-strerror_r.c:
5269         * tests/test-strsignal.c, tests/test-strverscmp.c:
5270         * tests/test-xmemdup0.c:
5271         Replace FSF snail mail addresses with URLs, as per GNU coding
5272         standards.  See glibc bug
5273         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5274
5275 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5276
5277         README-release: capitalize a word and split a line
5278         * top/README-release: Fix punctuation and spacing.
5279
5280 2012-02-08  Akim Demaille  <demaille@gostai.com>
5281
5282         fatal-signal: use C prototypes (with explicit void).
5283         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5284         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5285
5286 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5287
5288         regex: spelling fix
5289         * lib/regexec.c: spelling fix
5290
5291         regex: rely on stdint.h for SIZE_MAX
5292         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5293
5294 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5295
5296         regex: merge glibc changes
5297
5298         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5299         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5300         (init_word_char): Work even if bitset words are not exactly 32 or
5301         64 bits wide.  Don't assume there are no padding bits.
5302         * lib/regex.c [_LIBC]: Do not include <config.h>.
5303         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5304         and -Wtype-limits.
5305         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5306         needless disagreement with glibc.  All uses changed.  Define it to
5307         1 only if _GNU_SOURCE, to match glibc.
5308         (_REG_RM_NAME): Remove; no longer needed, since the names in
5309         question are now all protected by __USE_GNU.
5310         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5311         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5312         * lib/regex_internal.h (MIN): New macro.
5313
5314         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5315         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5316
5317         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5318         * lib/regex_internal.c (re_string_fetch_byte_case):
5319         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5320         is miscompiled, and it turns out it is because of an incorrect
5321         attribute on re_string_fetch_byte_case.  Unlike
5322         re_string_peek_byte_case, this one is really not pure, it modifies
5323         memory (increments pstr->cur_idx), and with the pure attribute GCC
5324         assumed it doesn't and it cached the presumed value of
5325         regexp->cur_idx in a variable across the
5326          for (;; ++i)
5327            {
5328              if (i >= BRACKET_NAME_BUF_SIZE)
5329                return REG_EBRACK;
5330              if (token->type == OP_OPEN_CHAR_CLASS)
5331                ch = re_string_fetch_byte_case (regexp);
5332              else
5333                ch = re_string_fetch_byte (regexp);
5334              if (re_string_eoi(regexp))
5335                return REG_EBRACK;
5336              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5337                break;
5338              elem->opr.name[i] = ch;
5339            }
5340
5341         2011-11-29 Andreas Schwab <schwab@redhat.com>
5342         * lib/regcomp.c (build_equiv_class):
5343         Fix access after end of search string in regex matcher.
5344
5345         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5346         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5347
5348         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5349         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5350
5351         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5352         * lib/regcomp.c (parse_branch, parse_sub_exp):
5353         More regex memory leak fixes and tests.
5354         (parse_sub_exp, parse_bracket_exp):
5355         Fix memory leak for some invalid regular expressions.
5356
5357         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5358         * lib/regex_internal.c, lib/regexec.c:
5359         Fix unnecessary overallocation due to incomplete character.  When
5360         incomplete characters are found at the end of a string the code
5361         ran amok and allocated lots of memory.  Stricter limits are now in
5362         place.
5363
5364         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5365         * lib/regex.h: Update documentation.
5366
5367         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5368         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5369
5370         2010-05-05 Andreas Schwab <schwab@redhat.com>
5371         * lib/regexec.c (find_collation_sequence_value):
5372         Fix lookup of collation sequence value during regexp matching.
5373
5374         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5375         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5376
5377         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5378         * lib/regex.h: Cleanup namespace.
5379
5380         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5381         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5382
5383         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5384         * lib/regex_internal.h: Prevent some declarations and definitions
5385         to be seen when used in tests.
5386
5387         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5388         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5389         __libc_lock_* macros if not _LIBC.
5390         (struct re_dfa_t): Add lock.
5391
5392 2012-02-07  Eric Blake  <eblake@redhat.com>
5393
5394         maint.mk: also prohibit lower-case @var@
5395         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5396         lower case, like @top_srcdir@.
5397
5398 2012-02-04  Eric Blake  <eblake@redhat.com>
5399
5400         canonicalize: avoid uninitialized memory use
5401         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5402         random '/' left in dest.
5403         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5404
5405 2012-02-04  Bruno Haible  <bruno@clisp.org>
5406
5407         isatty: Fix test failure of ptsname_r on native Windows.
5408         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5409         and don't set errno.
5410         (isatty): Test first whether fd is valid. Set errno when returning 0.
5411
5412 2012-02-04  Bruno Haible  <bruno@clisp.org>
5413
5414         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5415         * tests/test-spawn-pipe-main.c: Include progname.h.
5416         (main): Invoke set_program_name.
5417         * modules/spawn-pipe-tests (Depends-on): Add progname.
5418
5419         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5420         * tests/test-nonblocking-socket-main.c: Include progname.h.
5421         (main): Invoke set_program_name.
5422         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5423
5424         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5425         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5426         (main): Invoke set_program_name.
5427         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5428
5429 2012-02-04  Eric Blake  <eblake@redhat.com>
5430
5431         canonicalize-lgpl: fix // handling
5432         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5433
5434         canonicalize: fix // handling
5435         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5436         /// to //, since only // is special.
5437
5438 2012-02-04  Bruno Haible  <bruno@clisp.org>
5439
5440         ioctl: Fix test failure on native Windows.
5441         * lib/ioctl.c: Include msvc-nothrow.h.
5442         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5443
5444 2012-02-04  Bruno Haible  <bruno@clisp.org>
5445
5446         fsync: Avoid test failure on native Windows.
5447         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5448         read-only.
5449
5450 2012-02-04  Bruno Haible  <bruno@clisp.org>
5451
5452         sys_select: Avoid syntax error on OpenBSD 5.0.
5453         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5454         currently being included, just include the system's <sys/select.h>.
5455
5456 2012-02-04  Bruno Haible  <bruno@clisp.org>
5457
5458         sys_select: Avoid syntax error on OpenBSD 5.0.
5459         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5460         <sys/select.h>, not before.
5461         Reported by Jiri B <jirib@devio.us>.
5462
5463 2012-02-04  Bruno Haible  <bruno@clisp.org>
5464
5465         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5466         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5467         global variables.
5468         * tests/test-get-rusage-data.c (main): Likewise.
5469         Reported by Jim Meyering.
5470
5471 2012-02-04  Bruno Haible  <bruno@clisp.org>
5472
5473         stdioext: Fix last commit.
5474         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5475
5476 2012-02-03  Bruno Haible  <bruno@clisp.org>
5477
5478         stdioext: Add tentative support for Plan9.
5479         * lib/stdio-impl.h: Include <errno.h>.
5480         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5481         * lib/freadable.c (freadable): Likewise.
5482         * lib/fwritable.c (fwritable): Likewise.
5483         * lib/fbufmode.c (fbufmode): Likewise.
5484         * lib/freading.c (freading): Likewise.
5485         * lib/fwriting.c (fwriting): Likewise.
5486         * lib/freadptr.c (freadptr): Likewise.
5487         * lib/freadseek.c (freadptrinc): Likewise.
5488         * lib/freadahead.c (freadahead): Likewise.
5489         * lib/fpurge.c (fpurge): Likewise.
5490         * lib/fseeko.c (rpl_fseeko): Likewise.
5491         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5492         Reported by Jens Staal <staal1978@gmail.com>.
5493
5494 2012-02-02  Jim Meyering  <meyering@redhat.com>
5495
5496         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5497         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5498         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5499         not even to try to add the attribute.  Instead, add a pragma to suppress
5500         the suggestion/warning.
5501
5502 2012-01-31  Karl Berry  <karl@gnu.org>
5503
5504         setstate doc: typo.
5505         * doc/posix-functions/setstate.texi (setstate): { not (.
5506
5507 2012-01-31  Bruno Haible  <bruno@clisp.org>
5508
5509         popen: Make more robust on Windows.
5510         * lib/popen.c: On native Windows, use the _popen based code even if
5511         HAVE_POPEN is set.
5512         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5513         environment variable on native Windows.
5514
5515 2012-01-30  Bruno Haible  <bruno@clisp.org>
5516
5517         pclose: Fix typo.
5518         * lib/stdio.in.h (pclose): Fix typo in warning message.
5519
5520 2012-01-30  Bruno Haible  <bruno@clisp.org>
5521
5522         doc about getlogin_r, setstate.
5523         * doc/posix-functions/getlogin_r.texi: List the incompatible
5524         declaration problem under "not fixed by gnulib".
5525         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5526         problem on Solaris 11 and other platforms.
5527
5528 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5529             Bruno Haible  <bruno@clisp.org>
5530
5531         poll tests: Make test more robust.
5532         * tests/test-poll.c: Include macros.h.
5533         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5534         return value of various I/O operations.
5535         * modules/poll-tests (Files): Add tests/macros.h.
5536
5537 2012-01-30  Bruno Haible  <bruno@clisp.org>
5538
5539         sys_stat: Fix support for mingw64 and MSVC.
5540         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5541         header files already do it.
5542         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5543         stat itself.
5544         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5545
5546 2012-01-30  Bruno Haible  <bruno@clisp.org>
5547
5548         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5549         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5550         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5551
5552 2012-01-29  Bruno Haible  <bruno@clisp.org>
5553
5554         quotearg: Fix test failure on MacOS X 10.5.
5555         * tests/test-quotearg-simple.c: Include localcharset.h.
5556         (main): If the locale encoding is not ASCII, bypass the tests of
5557         locale_quoting_style and clocale_quoting_style.
5558         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5559
5560 2012-01-29  Jim Meyering  <meyering@redhat.com>
5561
5562         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5563         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5564         detect uses of canonicalize_file_name.
5565
5566 2012-01-28  Bruno Haible  <bruno@clisp.org>
5567
5568         test-framework-sh: Fix test failure with AIX 7.1 diff.
5569         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5570         in column 1, like 'diff -c' does.
5571         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5572         whether 'diff -u' is used. Instead, test whether the output contains
5573         some '@' character.
5574
5575 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5576
5577         strtoimax: eliminate need for stdint.h, inttypes.h checks
5578         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5579         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5580         the prerequisites for a recently-introduced strtoimax test.
5581         I guess this might cause strtoimax to be replaced when not
5582         strictly necessary on older hosts, but this shouldn't introduce
5583         any bugs and it should make Emacs 'configure' faster on typical
5584         modern hosts.  Problem discovered when importing the latest gnulib
5585         to an Emacs test version.
5586         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5587
5588 2012-01-28  Bruno Haible  <bruno@clisp.org>
5589
5590         sys_time: Override 'struct timeval' on some native Windows platforms.
5591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5592         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5593         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5594         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5595         needs to be overridden.
5596         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5597         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5598         * tests/test-sys_select.c: Check that the tv_sec member has the same
5599         size as a 'time_t'.
5600         * tests/test-sys_time.c: Likewise.
5601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5602         is set, set also REPLACE_GETTIMEOFDAY.
5603         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5604         convert the resulting 'struct timeval' before returning.
5605         * lib/select.c: Include <sys/time.h>.
5606         (select, timeval): Undefine at the right place.
5607         * modules/select (Depends-on): Add sys_time.
5608         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5609         some Windows platforms.
5610         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5611
5612 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5613
5614         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5615         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5616         an integer.
5617         * lib/fcntl.c (dupfd): Likewise.
5618         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5619
5620 2012-01-28  Bruno Haible  <bruno@clisp.org>
5621
5622         fcntl: Avoid compilation error on native Windows.
5623         * modules/fcntl (Depends-on): Add 'close'.
5624
5625 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5626
5627         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5628         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5629         pointer to an integer.
5630         * lib/poll.c (IsConsoleHandle): Likewise.
5631         * lib/isatty.c (IsConsoleHandle): Likewise.
5632
5633 2012-01-28  Jim Meyering  <meyering@redhat.com>
5634
5635         doc: clarify README-release
5636         * top/README-release: Clarify: you should make a point to have
5637         the latest stable versions of build tools in your PATH, and the
5638         reference to buildreq is solely for its list of tool names, not
5639         for its minimal-functional version numbers.
5640         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5641
5642         maint.mk: use more readable (yet functionally equivalent) quoting
5643         It is common to quote a single quote in a single quoted string like
5644         this:  '...'\''...'.  Unless you know the idiom, that looks like
5645         gibberish, so prefer to double-quote the string when possible.
5646         Then you can use a more readable, lone single quote: "...'..."
5647         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5648         "don't" is more readable than the equivalent 'don'\''t'.
5649         (sc_cast_of_x_alloc_return_value): Likewise.
5650         (sc_cast_of_alloca_return_value): Likewise.
5651         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5652         rather than '\'':'\''.
5653
5654 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5655
5656         stdalign: relax _Alignof and tighten _Alignas test
5657         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5658         as it was too strict: alignof must divide offsetof, but it need
5659         not equal offsetof.  Inspired by Joseph S. Myers's comment
5660         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5661         Conversely, tighten the _Alignas test a bit, as the resulting
5662         alignment must be exactly 8.
5663
5664 2012-01-27  Bruno Haible  <bruno@clisp.org>
5665
5666         stdalign: Document the last change.
5667         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5668
5669 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         stdalign: check that alignof and offsetof are consistent
5672         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5673         Problem reported for gnulib by Richard W.M. Jones in
5674         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5675
5676 2012-01-27  Jim Meyering  <meyering@redhat.com>
5677
5678         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5679         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5680         convert a sequence with gaps to the minimal containing range.
5681         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5682         * tests/test-update-copyright.sh: Test for this.
5683         The FSF confirmed it is ok to do this, assuming there is at
5684         least one significant change per year in the affected range:
5685         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5686
5687 2012-01-26  Bruno Haible  <bruno@clisp.org>
5688
5689         pipe2: refine doc about thread-safety
5690         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5691         multithread-safety problem.
5692         * doc/glibc-functions/accept4.texi: Likewise.
5693
5694 2012-01-26  Bruno Haible  <bruno@clisp.org>
5695
5696         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5697         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5698         In the test program, include <fcntl.h>, for O_RDONLY.
5699
5700 2012-01-26  Eric Blake  <eblake@redhat.com>
5701
5702         pipe2: document lack of thread-safety in replacement
5703         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5704         issue in replacement.
5705         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5706         Based on a report by Eric Wong.
5707
5708 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5709             Bruno Haible  <bruno@clisp.org>
5710
5711         malloca: Avoid warnings on x86_64 mingw64.
5712         * lib/malloca.c: Include <stdint.h>.
5713         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5714         * modules/malloca (Depends-on): Add stdint.
5715         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5716
5717 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5718
5719         obstack: remove __STDC__ conditionals
5720         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5721         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5722         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5723         m4/include_next.m4 as the only gnulib-maintained places that still
5724         refer to __STDC__.
5725
5726 2012-01-24  Bruno Haible  <bruno@clisp.org>
5727
5728         havelib: Modern quoting.
5729         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5730         the recent change to the GNU coding standards.
5731
5732 2012-01-24  Bruno Haible  <bruno@clisp.org>
5733
5734         stdint: Improve support for Android.
5735         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5736         Reported by Simon Josefsson <simon@josefsson.org>.
5737
5738 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5739
5740         doc: omit trailing empty lines from INSTALL etc.
5741         * doc/Makefile (INSTALL): Omit trailing empty lines.
5742         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5743         omit trailing empty lines.  This simplifies the build procedure.
5744
5745 2012-01-23  Jim Meyering  <meyering@redhat.com>
5746
5747         tests: avoid spurious warnings about gl_sockets_startup
5748         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5749         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5750         reporting a "statement with no effect".
5751         * tests/test-accept.c (main): Mark as "(void)".
5752         * tests/test-accept4.c (main): Likewise.
5753         * tests/test-bind.c (main): Likewise.
5754         * tests/test-connect.c (main): Likewise.
5755         * tests/test-getpeername.c (main): Likewise.
5756         * tests/test-getsockname.c (main): Likewise.
5757         * tests/test-getsockopt.c (main): Likewise.
5758         * tests/test-listen.c (main): Likewise.
5759         * tests/test-recv.c (main): Likewise.
5760         * tests/test-recvfrom.c (main): Likewise.
5761         * tests/test-send.c (main): Likewise.
5762         * tests/test-sendto.c (main): Likewise.
5763         * tests/test-setsockopt.c (main): Likewise.
5764         * tests/test-shutdown.c (main): Likewise.
5765
5766 2012-01-21  Bruno Haible  <bruno@clisp.org>
5767
5768         locale-fr.m4: Fix for Android.
5769         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5770         failure of the test program on Bionic libc.
5771
5772 2012-01-21  Jim Meyering  <meyering@redhat.com>
5773
5774         bootstrap: fail when bootstrap_post_import_hook fails
5775         Otherwise, it's far too easy to miss diagnostics emitted
5776         between gnulib-tool's output and that of running configure.
5777         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5778
5779 2012-01-17  Jim Meyering  <meyering@redhat.com>
5780
5781         maint: enable sc_trailing_blank
5782         * build-aux/pmccabe.css: Remove trailing blanks.
5783         * doc/acl-cygwin.txt: Likewise.
5784         * doc/gnu-oids.texi: Likewise
5785         * cfg.mk: Enable sc_trailing_blank.
5786         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5787
5788 2012-01-17  Jim Meyering  <meyering@redhat.com>
5789
5790         maint: enable sc_prohibit_openat_without_use
5791         * cfg.mk: Enable sc_prohibit_openat_without_use.
5792         Exempt lib/selinux-at.c.
5793
5794 2012-01-17  Jim Meyering  <meyering@redhat.com>
5795
5796         maint: enable sc_prohibit_cloexec_without_use
5797         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5798         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5799
5800 2012-01-17  Jim Meyering  <meyering@redhat.com>
5801
5802         maint: enable sc_prohibit_intprops_without_use
5803         * cfg.mk: Enable sc_prohibit_intprops_without_use
5804         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5805
5806 2012-01-17  Jim Meyering  <meyering@redhat.com>
5807
5808         maint: enable sc_prohibit_hash_pjw_without_use
5809         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5810         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5811         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5812         following " (".
5813
5814 2012-01-17  Jim Meyering  <meyering@redhat.com>
5815
5816         maint: enable double-word-prohibiting rule
5817         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
5818         Exempt three files.
5819
5820 2012-01-17  Jim Meyering  <meyering@redhat.com>
5821
5822         maint: remove empty lines at EOF, but excluding modules/*
5823         Apply syntax rules at home as well as abroad.  Most changes
5824         were induced by running this:
5825           make srcdir=. _build-aux=build-aux -f top/maint.mk \
5826             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
5827             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
5828         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
5829         Exempt modules/* and two binary files.
5830         Also exempt doc/INSTALL*, per request from Bruno Haible.
5831         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
5832         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
5833         * doc/Copyright/request-assign.future: Likewise.
5834         * doc/Copyright/request-disclaim.changes: Likewise.
5835         * doc/INSTALL: Likewise.
5836         * doc/INSTALL.ISO: Likewise.
5837         * doc/INSTALL.UTF-8: Likewise.
5838         * doc/acl-cygwin.txt: Likewise.
5839         * doc/acl-resources.txt: Likewise.
5840         * doc/fdl-1.2.texi: Likewise.
5841         * doc/fdl-1.3.texi: Likewise.
5842         * doc/fdl.texi: Likewise.
5843         * lib/argp-pin.c: Likewise.
5844         * lib/round.c: Likewise.
5845         * lib/unicase/u16-totitle.c: Likewise.
5846         * lib/unictype/block_test.c: Likewise.
5847         * lib/uninorm/canonical-decomposition.c: Likewise.
5848         * m4/README: Likewise.
5849         * m4/relocatable-lib.m4: Likewise.
5850         * tests/test-isnand-nolibm.c: Likewise.
5851         * tests/test-isnand.c: Likewise.
5852         * tests/uninorm/NormalizationTest.txt: Likewise.
5853
5854 2012-01-17  Jim Meyering  <meyering@redhat.com>
5855
5856         maint: add framework to run syntax-check rules against gnulib sources
5857         * cfg.mk: New file, to disable all currently-failing tests.
5858         We'll enable them one by one, as they are made to pass.
5859         * Makefile (sc_maint): New rule.
5860
5861 2012-01-21  Bruno Haible  <bruno@clisp.org>
5862
5863         stdint: Add support for Android.
5864         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
5865         include the system's <stdint.h>.
5866         Reported by Simon Josefsson <simon@josefsson.org>.
5867
5868 2012-01-19  Jim Meyering  <meyering@redhat.com>
5869
5870         bootstrap: add bootstrap_post_import_hook
5871         Bison does still need something like the gnulib_mk_hook whose
5872         invocation I had to remove along with slurp in commit 767ccd40.
5873         Technically, we could get along without it, but doing so would
5874         have required living with a warning and a mandatory post-bootstrap
5875         automake rerun.
5876         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
5877         (bootstrap_post_import_hook): New function.
5878         Invoke it after gnulib-tool --import and before autoreconf.
5879
5880 2012-01-18  Jim Meyering  <meyering@redhat.com>
5881
5882         gitlog-to-changelog: don't use "no_"-prefixed variable name
5883         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
5884         to enable both --cluster and --no-cluster.  Change variable name,
5885         s/\$no_cluster/$cluster/, and reverse usage to match.
5886
5887         gitlog-to-changelog: use "||", not "or" in expressions
5888         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
5889         expressions.
5890
5891 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
5892
5893         gitlog-to-changelog: new option --no-cluster
5894         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
5895         clustering of adjacent commit messages.
5896
5897 2012-01-17  Jim Meyering  <meyering@redhat.com>
5898
5899         maint: spell file systems with two words, not one
5900         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5901         two words, not one.
5902
5903 2012-01-16  Jim Meyering  <meyering@redhat.com>
5904
5905         bootstrap: add a FIXME comment to ensure we eventually remove the hack
5906         * build-aux/bootstrap (gnulib_tool_options): Add comment.
5907
5908 2012-01-16  Eric Blake  <eblake@redhat.com>
5909
5910         bootstrap: cater to autoconf 2.59
5911         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
5912         is not available.
5913
5914         bootstrap: properly check for libtool
5915         * build-aux/bootstrap (libtoolize): Also run libtool when older
5916         usage is detected.
5917
5918 2012-01-15  Bruno Haible  <bruno@clisp.org>
5919
5920         Improve support for MSVC 9.
5921         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
5922         clashes on MSVC.
5923         * lib/fcntl.in.h: Likewise.
5924         * lib/stdlib.in.h: Likewise.
5925         * lib/sys_stat.in.h: Likewise.
5926
5927 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
5928
5929         gnupload: we hold the master copy of this script now
5930         For motivation and more information, see:
5931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
5932         * build-aux/gnupload: Make it clear in the heading comments that the
5933         master copy of this file is maintained by gnulib.  Since we are at
5934         it, bump its copyright year and ...
5935         ($scriptversion): ... the date in its version.
5936         ($usage): Patches and bug reports should be sent to the gnulib list,
5937         not the automake one.
5938         * config/srclist.txt: Don't try to sync 'gnupload' from automake
5939         anymore.
5940
5941 2012-01-15  Bruno Haible  <bruno@clisp.org>
5942
5943         Fix module 'random'.
5944         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
5945         initstate, setstate are declared.
5946
5947 2012-01-14  Bruno Haible  <bruno@clisp.org>
5948
5949         Tests for module 'random'.
5950         * modules/random-tests: New file.
5951         * tests/test-random.c: New file, based on tests/test-random_r.c.
5952
5953         New module 'random'.
5954         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5955         declarations.
5956         * lib/random.c: New file, based on glibc/stdlib/random.c.
5957         * m4/random.m4: New file.
5958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5959         HAVE_RANDOM.
5960         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5961         * modules/random: New file.
5962         * config/srclist.txt: Add an entry for random.c.
5963         * doc/posix-functions/random.texi: Mention the 'random' module.
5964         * doc/posix-functions/initstate.texi: Likewise.
5965         * doc/posix-functions/setstate.texi: Likewise.
5966         * doc/posix-functions/srandom.texi: Likewise.
5967
5968 2012-01-12  Bruno Haible  <bruno@clisp.org>
5969
5970         random_r: Use common idioms.
5971         * lib/random_r.c: Include <stdlib.h> first.
5972
5973         random_r: Override incompatible API on AIX, OSF/1.
5974         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5975         Override the system function if REPLACE_RANDOM_R is 1.
5976         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5977         and OSF/1, set REPLACE_RANDOM_R.
5978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5979         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5980         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5981         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5982         * doc/glibc-functions/random_r.texi: Likewise.
5983         * doc/glibc-functions/setstate_r.texi: Likewise.
5984
5985         random_r: Support for MSVC 9.
5986         * lib/random_r.c: Include stdint.h, not inttypes.h.
5987
5988 2012-01-12  Eric Blake  <eblake@redhat.com>
5989
5990         inet_ntop: guard extra work by IF_LINT
5991         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5992         better code generation when not checking for warnings.
5993         Suggested by Paul Eggert and Jim Meyering.
5994
5995         strptime: fix regression on mingw
5996         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5997         Fix regression.  Reported by Bruno Haible.
5998
5999 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6000             Bruno Haible  <bruno@clisp.org>
6001
6002         copy-file: add error-code-returning variant.
6003         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6004         (qcopy_file_preserving): New declaration.
6005         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6006         copy_file_preserving. Change return type to 'int'. Don't emit an error
6007         message here.
6008         (copy_file_preserving): New function.
6009         * tests/test-copy-file.c: Include <stdlib.h>.
6010         (main): Test qcopy_file_preserving if the environment variable
6011         NO_STDERR_OUTPUT is set.
6012         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6013         with NO_STDERR_OUTPUT
6014         * tests/test-copy-file-2.sh: Likewise.
6015
6016 2012-01-10  Bruno Haible  <bruno@clisp.org>
6017
6018         copy-file: Use 'quote' module consistently.
6019         * lib/copy-file.c (copy_file_preserving): Use quote().
6020
6021         copy-file: Refactor.
6022         * lib/copy-file.c: Include quote.h.
6023         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6024         message here.
6025         * modules/copy-file (Depends-on): Add quote.
6026
6027         acl: Export qcopy_acl.
6028         * lib/acl.h (qcopy_acl): New declaration.
6029         * lib/copy-acl.c (qcopy_acl): Make non-static.
6030
6031         acl: Rename a local variable.
6032         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6033
6034         acl: Align return values of copy_acl and qcopy_acl.
6035         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6036         maybe < -1.
6037
6038 2012-01-11  Eric Blake  <eblake@redhat.com>
6039
6040         strptime: silence gcc warnings
6041         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6042         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6043         Reported by Daniel P. Berrange.
6044
6045         inet_ntop: silence gcc warning
6046         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6047         Reported by Daniel P. Berrange.
6048
6049 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6050
6051         getloadavg test: skip the test on GNU/Linux without /proc mounted
6052         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6053         file.  When /proc is not mounted, it always fails with ENOENT.
6054         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6055         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6056
6057 2012-01-10  Bruno Haible  <bruno@clisp.org>
6058
6059         regex: Avoid link error on MSVC 9.
6060         * modules/regex (Depends-on): Add wctype.
6061
6062 2012-01-10  Bruno Haible  <bruno@clisp.org>
6063
6064         doc: Mention --with-tests option.
6065         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6066         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6067         --with-tests.
6068         Reported by Reuben Thomas.
6069
6070 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6071
6072         users.txt: order package names lexicographically.
6073         * users.txt: Order package names lexicographically.
6074
6075 2012-01-10  Jim Meyering  <meyering@redhat.com>
6076
6077         maint.mk: fix description in comment
6078         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6079
6080         ignore-value: remove deprecated ignore_ptr function
6081         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6082         * NEWS: Note this.
6083
6084 2012-01-09  Jim Meyering  <meyering@redhat.com>
6085
6086         test-init.sh: avoid a subshell
6087         * tests/test-init.sh: Remove protective subshell.
6088         Suggested by Bernhard Voelker.  While a subshell is normally
6089         required to protect against older shells (Solaris, FreeBSD) that
6090         warn about a missing program before performing redirection, the
6091         shell-selection tests performed by init.sh probably exclude any
6092         offending shell.
6093
6094 2012-01-08  Bruno Haible  <bruno@clisp.org>
6095
6096         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6097         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6098         variable.
6099
6100 2012-01-08  Bruno Haible  <bruno@clisp.org>
6101
6102         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6103         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6104         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6105         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6106         macro.
6107         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6109         * lib/spawn_faction_addopen.c: Add workaround implementation if
6110         HAVE_WORKING_POSIX_SPAWN.
6111         * modules/spawn (Makefile): Substitute
6112         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6113         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6114         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6115         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6116         (Depends-on): Update conditions.
6117         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6118         the Solaris 11 bug.
6119
6120 2012-01-08  Bruno Haible  <bruno@clisp.org>
6121
6122         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6123         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6124         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6125         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6126         macro.
6127         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6128         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6129         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6130         HAVE_WORKING_POSIX_SPAWN.
6131         * modules/spawn (Makefile): Substitute
6132         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6133         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6134         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6135         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6136         (Depends-on): Update conditions.
6137         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6138         the Solaris 11 bug.
6139
6140 2012-01-08  Bruno Haible  <bruno@clisp.org>
6141
6142         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6143         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6144         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6145         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6146         HAVE_WORKING_POSIX_SPAWN.
6147         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6148         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6149         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6150         * lib/spawn_faction_addclose.c: Add workaround implementation if
6151         HAVE_WORKING_POSIX_SPAWN.
6152         * modules/spawn (Makefile): Substitute
6153         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6154         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6155         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6156         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6157         (Depends-on): Update conditions.
6158         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6159         the Solaris 11 bug.
6160
6161 2012-01-08  Bruno Haible  <bruno@clisp.org>
6162
6163         doc: Update for Solaris 11 2011-11.
6164         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6165         * m4/printf.m4: Update comments.
6166
6167 2012-01-08  Bruno Haible  <bruno@clisp.org>
6168
6169         mktime: Avoid compilation error on Solaris 11.
6170         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6171
6172 2012-01-08  Bruno Haible  <bruno@clisp.org>
6173
6174         doc: Small fix.
6175         * doc/posix-headers/nl_types.texi: Correct platforms list.
6176
6177 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6178
6179         Add lgpl-3.0 module.
6180         * MODULES.html.sh (Support for building documentation): Add
6181         lgpl-3.0.
6182         * modules/lgpl-3.0: New file.
6183
6184 2012-01-08  Jim Meyering  <meyering@redhat.com>
6185
6186         select.c: indent with spaces, not TABs
6187         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6188
6189 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6190
6191         quotearg: do not use grave accent for left quote
6192         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6193         locale_quoting_style.
6194         (quotearg_buffer_restyled): Fix example.
6195         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6196
6197 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6198
6199         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6200         Most programs do not have translation catalogs for English and much
6201         less separate catalogs for British and American English.  Drop the
6202         suggestion to translators about these two, and provide it
6203         automatically for Unicode locales.  Like most programs, even those
6204         using American English, we use single quotation marks.  This conflicts
6205         with the American typographic convention, but works better when you
6206         cite the entire error message within double quotes.  It also tries not
6207         to clash with established practice and with what non-gnulib programs
6208         will usually do.
6209         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6210         using an UTF-8 or GB-18030 locale.  The list of other locales with
6211         quotes was provided by Bruno Haible.
6212         (quotearg_buffer_restyled): Adjust instructions to translators.
6213         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6214         text, since this would be wrong when using Unicode.
6215         * modules/quotearg: Depend on c-strcaseeq.
6216
6217 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6218
6219         quotearg: fix Wikipedia link
6220         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6221
6222 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6223
6224         Fix for mingw with MSVC9.
6225         * m4/ld-version-script.m4: Check that compiler rejects version
6226         scripts with syntax errors.  Reported by Bruno Haible
6227         <bruno@clisp.org>.
6228
6229 2012-01-06  Bruno Haible  <bruno@clisp.org>
6230
6231         Talk about "native Windows API", not "Woe32".
6232         * lib/accept4.c: Update comments to mention native Windows.
6233         * lib/execute.c: Likewise.
6234         * lib/fatal-signal.c: Likewise.
6235         * lib/localcharset.c: Likewise.
6236         * lib/nanosleep.c: Likewise.
6237         * lib/nl_langinfo.c: Likewise.
6238         * lib/pclose.c: Likewise.
6239         * lib/pipe-filter-gi.c: Likewise.
6240         * lib/pipe-filter-ii.c: Likewise.
6241         * lib/pipe.c: Likewise.
6242         * lib/pipe2.c: Likewise.
6243         * lib/popen.c: Likewise.
6244         * lib/progreloc.c: Likewise.
6245         * lib/relocatable.c: Likewise.
6246         * lib/sigaction.c: Likewise.
6247         * lib/sigprocmask.c: Likewise.
6248         * lib/spawn-pipe.h: Likewise.
6249         * lib/spawn-pipe.c: Likewise.
6250         * lib/spawni.c: Likewise.
6251         * lib/stat-time.h: Likewise.
6252         * lib/w32spawn.h: Likewise.
6253         * tests/test-isatty.c: Likewise.
6254         * lib/config.charset: More comments.
6255         * doc/gnulib-intro.texi: Mention native Windows.
6256         * doc/posix-functions/_Exit_C99.texi: Likewise.
6257         * doc/posix-headers/fcntl.texi: Likewise.
6258
6259 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6260
6261         argp: Avoid crash if translator uses % characters in a translation.
6262         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6263         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6264
6265 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6266
6267         doc: C11 and C++11 are now official
6268         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6269         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6270         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6271         * modules/stdalign:
6272         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6273
6274 2012-01-06  Bruno Haible  <bruno@clisp.org>
6275
6276         uc-is-grapheme-break tests: Tweak.
6277         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6278         message.
6279
6280 2012-01-06  Bruno Haible  <bruno@clisp.org>
6281
6282         test-init.sh: correct the test for diff -u
6283         * tests/test-init.sh: Also redirect stdout to /dev/null.
6284
6285 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6286
6287         Use ', not `, for quoting output.
6288         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6289         (print_changelog_deltas, get_tool_versions, main program):
6290         * build-aux/git-version-gen:
6291         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6292         * build-aux/move-if-change (help):
6293         * build-aux/useless-if-before-free (usage, main program):
6294         * check-module (parse_module_file, usage)
6295         (find_included_lib_files, check_module):
6296         * lib/argmatch.c (main) [TEST]:
6297         * lib/argp-help.c (_help):
6298         * lib/getopt1.c (main) [TEST]:
6299         * lib/git-merge-changelog.c (usage):
6300         * lib/xstrtol-error.c (xstrtol_error):
6301         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6302         * m4/argz.m4 (gl_FUNC_ARGZ):
6303         * m4/bison.m4 (gl_BISON):
6304         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6305         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6306         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6307         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6308         * m4/gc-random.m4 (gl_GC_RANDOM):
6309         * m4/intl.m4 (gt_CHECK_DECL):
6310         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6311         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6312         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6313         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6314         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6315         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6316         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6317         * tests/test-dirname.c (main):
6318         * tests/test-getpass.c (main):
6319         * tests/test-iconvme.c (main):
6320         * tests/test-parse-datetime.c (LOG):
6321         * tests/test-xstrtoimax.sh:
6322         * tests/test-xstrtol.sh:
6323         * tests/test-xstrtoll.sh:
6324         * tests/test-xstrtoumax.sh:
6325         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6326         * top/GNUmakefile (abort-due-to-no-makefile):
6327         Quote 'like this', not `like this', as per the recent change to
6328         the GNU coding standards.
6329
6330 2012-01-05  Bruno Haible  <bruno@clisp.org>
6331
6332         strtoimax: Don't force a replacement on systems where intmax_t is int.
6333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6334         'intmax_t' is not larger than 'int'.
6335         Reported by Pádraig Brady <P@draigBrady.com>.
6336
6337 2012-01-05  Bruno Haible  <bruno@clisp.org>
6338
6339         doc: Mention NetBSD bugs.
6340         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6341         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6342
6343 2012-01-05  Bruno Haible  <bruno@clisp.org>
6344
6345         strtoumax tests: Enhance tests.
6346         * tests/test-strtoumax.c (main): Add tests for large values.
6347
6348 2012-01-05  Bruno Haible  <bruno@clisp.org>
6349
6350         strtoimax: Work around AIX 5.1 bug.
6351         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6352         definition.
6353         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6354         Set HAVE_STRTOIMAX.
6355         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6356         REPLACE_STRTOIMAX.
6357         * modules/inttypes-incomplete (Makefile.am): Substitute
6358         REPLACE_STRTOIMAX.
6359         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6360         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6361         (Depends-on): Update conditions.
6362         * tests/test-strtoimax.c (main): Add tests for large values.
6363         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6364
6365 2012-01-05  Bruno Haible  <bruno@clisp.org>
6366
6367         inttypes: Modernize.
6368         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6369         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6370         (Makefile.am): Update inttypes.h rule.
6371
6372 2012-01-05  Jim Meyering  <meyering@redhat.com>
6373
6374         init.sh: don't waste a subshell just to redirect stderr
6375         * tests/init.sh: In testing for diff -u and diff -c, use a
6376         stderr-redirecting exec inside `...` rather than a subshell.
6377
6378         test-init.sh: avoid failure on HP-UX 11.00
6379         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6380         resolves to diff -c or cmp.  Reported by Bruno Haible.
6381
6382 2012-01-05  Bruno Haible  <bruno@clisp.org>
6383
6384         Tests for module 'strtoull'.
6385         * modules/strtoull-tests: New file.
6386         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6387
6388 2012-01-05  Bruno Haible  <bruno@clisp.org>
6389
6390         Tests for module 'strtoll'.
6391         * modules/strtoll-tests: New file.
6392         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6393
6394 2012-01-05  Bruno Haible  <bruno@clisp.org>
6395
6396         Tests for module 'strtoul'.
6397         * modules/strtoul-tests: New file.
6398         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6399
6400 2012-01-05  Bruno Haible  <bruno@clisp.org>
6401
6402         Tests for module 'strtol'.
6403         * modules/strtol-tests: New file.
6404         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6405
6406 2012-01-04  Jim Meyering  <meyering@redhat.com>
6407
6408         test-init.sh: accommodate Solaris 5.10's different diff -u output
6409         * tests/test-init.sh: Also exempt @@ lines from the comparison
6410         of diff output, since Solaris 5.10 and GNU diff formats differ.
6411         Reported by Stefano Lattarini.
6412
6413 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6414
6415         test-posixtm: don't assume signed integer wraparound
6416         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6417         after signed integer overflow.  Inspired by (though it may not
6418         fix) Bruno Haible's bug report in
6419         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6420
6421         Spell out "Windows 9x" and "Windows XP".
6422         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6423         "Windows 9x" and "WinXP" with "Windows XP".
6424
6425 2012-01-04  Jim Meyering  <meyering@redhat.com>
6426
6427         test-vc-list-files-cvs.sh: remove obsolete comment
6428         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6429         double exit.  Now that's all encapsulated via skip_ and Exit.
6430
6431 2012-01-04  Bruno Haible  <bruno@clisp.org>
6432
6433         Talk about "native Windows API", not "Win32".
6434         * lib/classpath.c: Update comments to mention native Windows.
6435         * lib/csharpexec.c: Likewise.
6436         * lib/dup2.c: Likewise.
6437         * lib/error.c: Likewise.
6438         * lib/fcntl.c: Likewise.
6439         * lib/filename.h: Likewise.
6440         * lib/findprog.c: Likewise.
6441         * lib/get-rusage-as.c: Likewise.
6442         * lib/get-rusage-data.c: Likewise.
6443         * lib/getpagesize.c: Likewise.
6444         * lib/javaexec.c: Likewise.
6445         * lib/msvc-inval.c: Likewise.
6446         * lib/msvc-nothrow.c: Likewise.
6447         * lib/nanosleep.c: Likewise.
6448         * lib/nonblocking.c: Likewise.
6449         * lib/printf-parse.c: Likewise.
6450         * lib/setlocale.c: Likewise.
6451         * lib/sigaction.c: Likewise.
6452         * lib/strerror_r.c: Likewise.
6453         * lib/tmpdir.c: Likewise.
6454         * lib/vasnprintf.c: Likewise.
6455         * lib/w32spawn.h: Likewise.
6456         * lib/waitpid.c: Likewise.
6457         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6458         * m4/locale-ar.m4: Likewise.
6459         * m4/locale-fr.m4: Likewise.
6460         * m4/locale-ja.m4: Likewise.
6461         * m4/locale-tr.m4: Likewise.
6462         * m4/locale-zh.m4: Likewise.
6463         * m4/printf.m4: Likewise.
6464         * tests/test-cloexec.c: Likewise.
6465         * tests/test-copy-acl.sh: Likewise.
6466         * tests/test-copy-file.sh: Likewise.
6467         * tests/test-file-has-acl.sh: Likewise.
6468         * tests/test-set-mode-acl.sh: Likewise.
6469         * tests/test-dup-safer.c: Likewise.
6470         * tests/test-dup2.c: Likewise.
6471         * tests/test-dup3.c: Likewise.
6472         * tests/test-fcntl.c: Likewise.
6473         * tests/test-nonblocking-pipe.h: Likewise.
6474         * tests/test-nonblocking-socket.h: Likewise.
6475         * tests/test-pipe.c: Likewise.
6476         * tests/test-pipe2.c: Likewise.
6477         * tests/test-spawn-pipe-child.c: Likewise.
6478         * doc/acl-resources.txt: Likewise.
6479         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6480         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6481         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6482         * lib/localcharset.c: Update comments to mention native Windows.
6483         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6484         * lib/localename.c: Likewise.
6485         * lib/progreloc.c: Likewise.
6486         * lib/relocatable.c: Likewise.
6487         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6488         (windows_compute_revents): Renamed from win32_compute_revents.
6489         (windows_compute_revents_socket): Renamed from
6490         win32_compute_revents_socket.
6491         * lib/select.c: Update comments to mention native Windows.
6492         (windows_poll_handle): Renamed from win32_poll_handle.
6493         * m4/threadlib.m4: Update comments to mention native Windows.
6494         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6495         --enable-threads=windows instead of --enable-threads=win32. Set
6496         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6497         * lib/glthread/lock.h: Update comments to mention native Windows.
6498         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6499         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6500         USE_WIN32_THREADS.
6501         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6502         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6503         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6504         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6505         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6506         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6507         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6508         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6509         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6510         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6511         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6512         * tests/test-tls.c: Likewise.
6513         Rationale:
6514         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6515         on both 32-bit and 64-bit Windows systems.
6516         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6517         line of distinction is between "native Windows" on one side and Unix/
6518         POSIX systems on the other side. More details in
6519         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6520         Suggested by Paul Eggert.
6521
6522 2012-01-03  Bruno Haible  <bruno@clisp.org>
6523
6524         isatty: Support for MSVC 9.
6525         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6526         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6527         (_isatty_nothrow): New function.
6528         (isatty): Use it instead of _isatty.
6529         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6530         * lib/poll.c (IsConsoleHandle): Likewise.
6531         * lib/select.c (IsConsoleHandle): Likewise.
6532         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6533         (gl_PREREQ_ISATTY): New macro.
6534         * modules/isatty (Depends-on): Add msvc-inval.
6535         (configure.ac): Invoke gl_PREREQ_ISATTY.
6536
6537 2012-01-03  Jim Meyering  <meyering@redhat.com>
6538
6539         maint.mk: remove temporary transition aid from over 1.5 years ago
6540         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6541         purpose was to aid in the transition (avoiding silent malfunction)
6542         from that old name to the new _sc_search_regexp.  This shim was
6543         added by commit 219c504b.
6544
6545         init.sh: do not try to accommodate compare arguments starting with "-"
6546         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6547         compare arguments that start with "-".  Besides, we do not worry
6548         about this when invoking diff or cmp; why start now with sed?
6549         Using "--" to separate options from argument would trigger sed
6550         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6551         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6552
6553 2012-01-02  Bruno Haible  <bruno@clisp.org>
6554
6555         Enhance tests for module 'isatty'.
6556         * modules/isatty-tests (Depends-on): Add pipe-posix.
6557         * tests/test-isatty.c: Include <fcntl.h>.
6558         (DEV_NULL): New macro.
6559         (main): Test the resut of isatty() also on regular files, pipes, and
6560         /dev/null.
6561
6562         New module 'isatty'.
6563         * lib/unistd.in.h (isatty): New declaration.
6564         * lib/isatty.c: New file, based on an idea of
6565         Bastien Roucariès <roucaries.bastien@gmail.com>.
6566         * m4/isatty.m4: New file.
6567         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6568         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6569         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6570         REPLACE_ISATTY.
6571         * modules/isatty: New file.
6572         * doc/posix-functions/isatty.texi: Mention the new module.
6573         Suggested by Paolo Bonzini.
6574
6575 2012-01-02  Bruno Haible  <bruno@clisp.org>
6576
6577         canonicalize: Tweak 2011-12-29 commit.
6578         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6579         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6580
6581 2012-01-02  Jim Meyering  <meyering@redhat.com>
6582
6583         gitlog-to-changelog: describe input syntax in --help output
6584         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6585
6586         gitlog-to-changelog: fix typo in --help: show backslash before email @
6587         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6588         in sources, but not in actual output.
6589
6590 2011-12-30  Jim Meyering  <meyering@redhat.com>
6591
6592         gitlog-to-changelog: don't malfunction when name contains %-directive
6593         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6594         in a name string cause trouble.  E.g., with a user name of "%s",
6595         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6596
6597 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6598
6599         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6600         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6601         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6602         the "  (tiny change)" notation that is appended to the standard
6603         ChangeLog "date  name  email" header line.
6604
6605 2012-01-01  Jim Meyering  <meyering@redhat.com>
6606
6607         test-framework-sh: init.sh: fix "make dist" failure
6608         When using gnulib-tool's --with-tests option and any module that
6609         depends on test-framework-sh, "make dist" would fail due to the
6610         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6611         in the gltests directory, and not in the gllib/ directory.
6612         One way to work around that is to move the EXTRA_DIST += init.sh
6613         from the primary module to the -tests one:
6614         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6615         * modules/test-framework-sh (Makefile.am): ...not here.
6616         Reported by Tom G. Christensen in
6617         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6618
6619         version-etc: update copyright year reported by --version
6620         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6621
6622 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6623
6624         canonicalize: only stat() if required
6625         * lib/canonicalize.c (canonicalize_filename_mode):
6626         Avoid calling l?stat() when both CAN_MISSING,
6627         and CAN_NOLINKS are set, as we neither need
6628         to resolve symlinks or test component existence.
6629
6630 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6631
6632         doc: cover st_ino issues once; add OpenVMS etc.
6633         * doc/posix-functions/stat.texi (stat):
6634         * doc/posix-functions/lstat.texi (lstat):
6635         * doc/posix-functions/fstatat.texi (fstatat):
6636         * doc/posix-functions/fstat.texi (fstat):
6637         Move general 'struct stat' stuff to sys_stat.texi,
6638         leaving behind a pointer.
6639         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6640         Merge duplicate info about 'struct stat' problems into here.
6641         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6642         and suggest partial workarounds.
6643
6644         same-inode: port to OpenVMS
6645         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6646         three st_ino values.
6647
6648 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6649
6650         canonicalize: fix references to stat() and lstat()
6651         * lib/canonicalize.c (canonicalize_filename_mode):
6652         Ensure references always resolve to a replacement
6653         function if required (even via a macro).
6654
6655 2011-12-30  Jim Meyering  <meyering@redhat.com>
6656
6657         gitlog-to-changelog: remove a little duplication
6658         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6659         rather than twice.
6660
6661 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6662
6663         canonicalize: add support for not resolving symlinks
6664         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6665         indicate we don't want to follow symlinks.  Also
6666         provide CAN_MODE_MASK to aid setting these existing
6667         mutually exclusive values.
6668         * lib/canonicalize.c (canonicalize_filename_mode):
6669         Extract the flags from can_mode parameter, which
6670         are currently just used to select between stat()
6671         and lstat().  Also ensure that mutually exclusive
6672         values are flagged immediately as invalid.
6673         * tests/test-canonicalize.c: Verify symlinks are
6674         not followed, and that invalid flag combinations
6675         are diagnosed.
6676
6677 2011-12-25  Jim Meyering  <meyering@redhat.com>
6678
6679         gitlog-to-changelog: do not clump multi-paragraph entries
6680         Identical header lines (date,name,email+coauthors) are suppressed,
6681         thus putting all entries with those same characteristics under
6682         a single header.  However, when a log entry consists of two or
6683         more paragraphs, it may not be clear where it starts and ends.
6684         This change makes it so that such an entry is always separated
6685         from others by a header line, even when that header would
6686         otherwise be suppressed.
6687         * build-aux/gitlog-to-changelog: Implement the above.
6688         Inspired by a related request from Stefano Lattarini in
6689         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6690
6691 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6692
6693         announce-gen: fix `cmd' typo in diagnostic
6694         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6695         diagnostic: a missing '$' meant that the command was not output.
6696
6697 2011-12-23  Jim Meyering  <meyering@redhat.com>
6698
6699         test-framework-sh: distribute init.sh
6700         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6701         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6702         fail due to the lack of init.sh.
6703
6704         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6705         * modules/atexit-tests: Rather than listing tests/init.sh,
6706         now that there's a module for it, simply depend on that new module.
6707         * modules/closein-tests: Likewise.
6708         * modules/exclude-tests: Likewise.
6709         * modules/getcwd-tests: Likewise.
6710         * modules/perror-tests: Likewise.
6711         * modules/pread-tests: Likewise.
6712         * modules/pwrite-tests: Likewise.
6713         * modules/vc-list-files-tests: Likewise.
6714         * modules/verify-tests: Likewise.
6715         * modules/xalloc-die-tests: Likewise.
6716         * modules/xstrtoimax-tests: Likewise.
6717         * modules/xstrtol-tests: Likewise.
6718         * modules/xstrtoll-tests: Likewise.
6719         * modules/xstrtoumax-tests: Likewise.
6720         * modules/yesno-tests: Likewise.
6721
6722 2011-12-22  Jim Meyering  <meyering@redhat.com>
6723
6724         test-framework-sh: add minimal tests of init.sh's compare function
6725         * modules/test-framework-sh-tests: New file.
6726         * tests/test-init.sh: New file.
6727
6728         test-framework-sh: new module
6729         * modules/test-framework-sh: New file.
6730         * MODULES.html.sh (Support for maintaining and releasing projects):
6731         List it.
6732
6733         init.sh: do not emit simulated diff output to stderr
6734         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6735
6736 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6737
6738         .gitignore: ignore gnulib.dvi and regex.info
6739         * doc/.gitignore:add gnulib.dvi and regex.info
6740
6741 2011-12-22  Jim Meyering  <meyering@redhat.com>
6742
6743         init.sh: correct previous change
6744         * tests/init.sh (compare): My previous change was wrong.
6745         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6746
6747         init.sh: avoid unwarranted test failure when using "set -e"
6748         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6749         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6750         a use like "compare exp out" would get evoke an unconditional failure.
6751
6752 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6753
6754         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6755         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6756         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6757         autoreconf that did not.
6758         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6759         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6760
6761 2011-12-17  Jim Meyering  <meyering@redhat.com>
6762
6763         bootstrap: remove some now-unneeded code
6764         This script arose back when gnulib-tool was young.
6765         Since then, it has seen improvements that render much of this
6766         script unnecessary.  In particular, it can now make symlinks
6767         to the files it uses.  Also, I no longer see as much value in
6768         marking files as read-only via comments.
6769         If you relied on the symlink-creation feature of the preceding
6770         version of this script, you can get most of that functionality
6771         by adding the --symlink option to the definition of
6772         gnulib_tool_option_extras in your bootstrap.conf file.
6773         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6774         Run autopoint and libtoolize *before* gnulib-tool.
6775         After it, run an abbreviated autoreconf, rather than a loop around
6776         all tools.
6777         (slirp, bt_mark_as_generated): Remove functions.
6778
6779 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6780
6781         ftoastr: fix typo
6782         * lib/ftoastr.h: Fix misspelling in comment.
6783
6784 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6785
6786         * top/README-release: fix punctuation.
6787
6788 2011-12-17  Jim Meyering  <meyering@redhat.com>
6789
6790         bootstrap: correct the recent buildreq change
6791         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6792         had no effect.
6793         * build-aux/bootstrap (buildreq): Bracket each search term with
6794         "*...*", so that the shell "case" statement works as intended.
6795         Add comments.
6796
6797 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6798
6799         build: let bootstrap resort to wget when downloading .po files
6800         * build-aux/bootstrap (download_po_files): Fallback to wget when
6801         downloading the .po files via rsync fails.  This is necessary to
6802         bootstrap from behind a strict firewall.
6803
6804 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6805
6806         stdint: don't assume C++11 when compiling with g++
6807         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6808         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6809         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6810         work also in C++ before C++11, as that improperly inhibits
6811         generating a substitute stdint.h for that case.
6812
6813 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         alloca: protect comment from gnulib-tool
6816         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6817         that gnulib-tool doesn't think it's a license, and munge it to
6818         say "GCC version 3".
6819
6820 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
6821
6822         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
6823         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
6824         $(abs_top_builddir) instead of $(top_builddir).
6825
6826 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
6827
6828         strftime-tests: also test nanoseconds
6829         * tests/test-strftime.c (T): Add a test of %N.
6830
6831 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
6832
6833         inttypes, stdint: add C++11 support
6834         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
6835         when including inttypes.h and stdint.h.  Support this change to
6836         the standard.
6837         * doc/posix-headers/inttypes.texi (inttypes.h):
6838         * doc/posix-headers/stdint.texi (stdint.h): Document this.
6839         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
6840         Define if not defined already, for the benefit of pre-C++11 hosts.
6841         Define the standard format macros (e.g., PRId8) always.
6842         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
6843         Likewise, if __cpluspus.  Define the standard constant and limit
6844         macros (e.g., INT8_C, INT8_MAX) always.
6845         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
6846         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
6847         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
6848         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
6849         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
6850         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
6851         Likewise.
6852
6853 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
6854
6855         nonblocking tests: Fix test failure on Linux/PPC.
6856         Suggested by Prerna Saxena in
6857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
6858         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
6859         Set to 1100000.
6860
6861 2011-12-12  Jim Meyering  <meyering@redhat.com>
6862
6863         argmatch: don't hard-code `' when listing valid option arguments
6864         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
6865         use the quote function to add quotes.  Use fputs rather than
6866         fprintf for the format string with no format directive.
6867
6868 2011-12-07  Eric Blake  <eblake@redhat.com>
6869
6870         bootstrap: detect tools required by gnulib-tool
6871         * build-aux/bootstrap (buildreq): Provide minimum implicit
6872         dependencies.
6873         * DEPENDENCIES: Mention patch as a prereq.
6874
6875 2011-12-04  Bruno Haible  <bruno@clisp.org>
6876
6877         sethostname: Port to Windows platforms.
6878         * lib/sethostname.c: Provide an alternate implementation for Windows
6879         platforms.
6880         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
6881         (main): Skip the test if sethostname() fails with EPERM. On Windows
6882         platforms, don't check the result of gethostname().
6883
6884 2011-12-04  Bruno Haible  <bruno@clisp.org>
6885             Jim Meyering  <meyering@redhat.com>
6886
6887         tests: Avoid spurious error message on platforms without mktemp program.
6888         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6889
6890 2011-12-04  Bruno Haible  <bruno@clisp.org>
6891
6892         sethostname: Fix documentation.
6893         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
6894         "not fixed" section.
6895
6896 2011-12-03  Bruno Haible  <bruno@clisp.org>
6897
6898         gnulib-tool: Verify that the License field is present and non-empty.
6899         * gnulib-tool (func_get_license_raw): New function, extracted from
6900         func_get_license.
6901         (func_get_license): Use it. Warn if the module is not a test module and
6902         has no license.
6903         Suggested by Jim Meyering.
6904
6905 2011-12-03  Bruno Haible  <bruno@clisp.org>
6906
6907         sethostname tests: Fix link error on mingw.
6908         * tests/test-sethostname1.c: New file, extracted from
6909         tests/test-sethostname.c.
6910         * tests/test-sethostname2.c: New file, extracted from
6911         tests/test-sethostname.c.
6912         * tests/test-sethostname.c: Remove file.
6913         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
6914         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
6915         (Depends-on): Add gethostname.
6916         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
6917         Link the latter with $(GETHOSTNAME_LIB).
6918
6919         sethostname tests: Fix compilation error on mingw.
6920         * tests/test-sethostname.c: Don't include <sys/types.h>.
6921         (geteuid): Use a dummy value without uid_t.
6922         * modules/sethostname-tests (Depends-on): Remove sys_types.
6923
6924         sethostname tests: Avoid a gcc warning.
6925         * tests/test-sethostname.c (main): Remove an unused variable.
6926
6927         Tweak last commit.
6928         * modules/sethostname-tests (Files): Sort by decreasing importance.
6929         (configure.ac): Check for geteuid.
6930         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
6931         the test when there's nothing to test. Drop an unnecessary cast.
6932         Improve an error message. Verify that the final sethostname() call
6933         succeeds.
6934
6935 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6936
6937         Add a test suite for the sethostname module.
6938         * modules/sethostname-tests: New file.  A test program
6939         for the sethostname module.
6940         * tests/test-sethostname.c: Likewise.
6941
6942 2011-12-03  Bruno Haible  <bruno@clisp.org>
6943
6944         Tweak last commit.
6945         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
6946         Fix preprocessor directives indentation. Fix typos.
6947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
6948         * modules/unistd (Makefile): Likewise.
6949
6950 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6951
6952         Integrate the sethostname module into unistd.
6953         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6954         into the unistd.h header.
6955         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6956         preprocessor directives.
6957         * modules/unistd: Setup the Makefile substitutions of the
6958         SETHOSTNAME preprocessor directives.
6959
6960 2011-12-03  Bruno Haible  <bruno@clisp.org>
6961
6962         Tweak last commit.
6963         * lib/sethostname.c: Don't include <string.h>.
6964         (sethostname): No need to copy the argument string to the stack. Don't
6965         call clearerr. Preserve errno when fprintf failed.
6966         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6967         Don't invoke AC_REPLACE_FUNCS.
6968         * modules/sethostname (Link): Remove empty section.
6969         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6970         failure problem.
6971
6972 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6973
6974         New module 'sethostname'.
6975         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6976         for systems that lack it.
6977         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6978         sethostname declaration and function.
6979         * modules/sethostname: New file.  Define the sethostname module.
6980
6981 2011-12-03  Bruno Haible  <bruno@clisp.org>
6982
6983         Tweak last commit.
6984         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6985
6986 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6987
6988         Split the HOST_NAME_MAX detection into a separate m4 macro.
6989         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6990         macro so it can be used by the pending sethostname module.
6991
6992 2011-12-03  Bruno Haible  <bruno@clisp.org>
6993
6994         Fix module descriptions syntax.
6995         * modules/argv-iter (License): Fix syntax.
6996         * modules/di-set (License): Likewise.
6997         * modules/ino-map (License): Likewise.
6998         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6999
7000 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7001
7002         stdalign: port to Clang 3.0
7003         Problem reported by Simon Josefsson in
7004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7005         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7006         which has <stdalign.h> but which does not define alignof.
7007         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7008
7009 2011-12-01  Eric Blake  <eblake@redhat.com>
7010
7011         mktempd: silence dd usage
7012         * build-aux/mktempd (rand_bytes): Silence dd.
7013
7014 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7015
7016         manywarnings: Don't mention gcc version in docstring.
7017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7018         Jim Meyering <meyering@redhat.com>.
7019
7020 2011-11-30  Jim Meyering  <meyering@redhat.com>
7021
7022         hash: mark a few floating point constants with "f" suffix
7023         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7024         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7025         floating point constants with "f", since they're destined to be
7026         saved/used as "float"s.
7027
7028 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7029
7030         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7031         * tests/test-float.c (test_long_double): Correct and re-enable the
7032         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7033
7034 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7035
7036         Avoid subtracting two pointers that don't point into the same block.
7037         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7038         only pointers into the same memory block are subtracted. We cannot
7039         assume that sizeof (ptrdiff_t) == sizeof (void *).
7040
7041 2011-11-29  Eric Blake  <eblake@redhat.com>
7042
7043         maint.mk: add syntax check for use of compare from init.sh
7044         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7045         moved here from coreutils.
7046
7047         manywarnings: drop -Wunsuffixed-float-constants
7048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7049         '1.0D', which is the only way to silence this warning for 'double'.
7050
7051 2011-11-29  Jim Meyering  <meyering@redhat.com>
7052
7053         hash: mark compute_bucket_size with the pure attribute
7054         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7055
7056         quotearg, propername: correct pragma guard expression
7057         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7058         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7059
7060 2011-11-28  Jim Meyering  <meyering@redhat.com>
7061
7062         propername: do not mark proper_name with the const attribute
7063         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7064         since it examines data pointed to by its parameter.
7065         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7066         the suggestion from -Wsuggest-attribute=const.
7067
7068         propername: mark one more function as const
7069         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7070
7071 2011-11-27  Jim Meyering  <meyering@redhat.com>
7072
7073         mark functions with const and pure attributes
7074
7075         Mark functions per suggestions from gcc-4.6 when using these options:
7076         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7077         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7078         Follow these guidelines: when possible, apply the attribute to
7079         an extern declaration, not to its definition.  Apply it to the
7080         definition only when the definition is static.
7081         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7082         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7083         * lib/base64.h (isbase64): Likewise.
7084         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7085         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7086         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7087         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7088         (c_tolower, c_toupper): Likewise.
7089         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7090         * lib/chdir-long.c (find_non_slash): Likewise.
7091         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7092         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7093         * lib/file-type.h (file_type): Likewise.
7094         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7095         * lib/filevercmp.c (verrevcmp): Likewise.
7096         * lib/freadahead.h (freadahead): Likewise.
7097         * lib/fts.c (fts_maxarglen): Likewise.
7098         * lib/hash-pjw.h (hash_pjw): Likewise.
7099         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7100         * lib/hash.c (is_prime, next_prime): Likewise.
7101         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7102         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7103         (hash_table_ok, hash_get_first, hash_string): Likewise.
7104         (compute_bucket_size): Likewise.
7105         * lib/i-ring.h (i_ring_empty): Likewise.
7106         * lib/isnan.c (isnanl): Likewise.
7107         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7108         * lib/memcasecmp.h (memcasecmp): Likewise.
7109         * lib/memchr2.h (memchr2): Likewise.
7110         * lib/memcmp2.h (memcmp2): Likewise.
7111         * lib/parse-datetime.y (lookup_zone): Likewise.
7112         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7113         [!WINDOWS_SOCKETS]: Likewise.
7114         * lib/strnlen1.h (strnlen1): Likewise.
7115         * lib/uniwidth.in.h (uc_width): Likewise.
7116         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7117         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7118         (quoting_options_from_style): Add a comment.
7119         * lib/propername.h (proper_name): Add a comment.
7120
7121 2011-11-27  Bruno Haible  <bruno@clisp.org>
7122
7123         Remove unused macros from !_LIBC code in glibc-borrowed files.
7124         * lib/fnmatch.c (STRCOLL): Remove macro.
7125         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7126         * lib/glob.c (__stat, __readdir64): Remove macros.
7127         * lib/tempname.c (__open64, __xstat64): Remove macros.
7128         Suggested by Paul Eggert.
7129
7130 2011-11-27  Bruno Haible  <bruno@clisp.org>
7131
7132         getcwd: Fix link error on MSVC 9.
7133         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7134
7135 2011-11-27  Bruno Haible  <bruno@clisp.org>
7136
7137         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7138         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7139         HAVE_OPENDIR is 0.
7140         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7141         HAVE_CLOSEDIR is 0.
7142         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7143         is 0.
7144         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7145
7146 2011-11-27  Bruno Haible  <bruno@clisp.org>
7147
7148         getcwd: Fix bug from 2011-08-17.
7149         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7150         platforms that need it.
7151         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7152         code of 4 to be a failure, not a success. This ensures that
7153         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7154
7155 2011-11-27  Bruno Haible  <bruno@clisp.org>
7156
7157         binary-io tests: Avoid test failure on mingw when libtool is used.
7158         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7159         Don't verify the size of t-bin-out1.tmp here.
7160         * tests/test-binary-io.sh: Verify it here.
7161         Reported by Simon Josefsson.
7162
7163 2011-11-26  Bruno Haible  <bruno@clisp.org>
7164
7165         Fix conflict between two instantiations of module 'unistd'.
7166         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7167         ${include_guard_prefix} also in the autoconf snippet.
7168         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7170         GNULIB_UNISTD_H_GETOPT.
7171         * modules/getopt-posix (configure.ac): Set the
7172         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7173         * modules/getopt-gnu (configure.ac): Likewise.
7174         * modules/unistd (Makefile.am): Change the substitution value of
7175         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7176         Reported by Simon Josefsson.
7177
7178 2011-11-25  Bruno Haible  <bruno@clisp.org>
7179
7180         pagealign_alloc: Doc and comments.
7181         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7182         module.
7183         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7184
7185 2011-11-25  Jim Meyering  <meyering@redhat.com>
7186
7187         test-update-copyright.sh: avoid false-positive failure
7188         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7189         around false positive failure on Cygwin/Windows.  The latter was
7190         matching erroneously-created files with names like
7191         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7192
7193 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7194
7195         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7196         * m4/valgrind-tests.m4: Check that the parameters that will be
7197         used works, not just a subset of them.  Reported by Bruno Haible
7198         <bruno@clisp.org>.
7199
7200 2011-11-24  Jim Meyering  <meyering@redhat.com>
7201
7202         test-stdalign.c: comment out long double tests
7203         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7204         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7205         error: '_Alignas' specifiers cannot reduce alignment of \
7206         'static_longdouble_alignas'.
7207
7208 2011-11-22  Jim Meyering  <meyering@redhat.com>
7209
7210         init.sh: make "compare /dev/null FILE" output more readable
7211         * tests/init.sh (compare_): Document the preferred order of arguments.
7212         (emit_diff_u_header_): New function.
7213         (compare_dev_null_): Emit a simulated diff, rather than just the
7214         contents of the unexpected file.  Suggestion from Bruno Haible.
7215
7216 2011-11-21  Jim Meyering  <meyering@redhat.com>
7217             Eric Blake  <eblake@redhat.com>
7218
7219         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7220         * tests/init.sh: Make our compare function slightly more portable.
7221         Reported by Bruno Haible in
7222         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7223
7224 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7225
7226         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7227         before using it, in code that ends up in config.h.
7228
7229 2011-11-20  Bruno Haible  <bruno@clisp.org>
7230
7231         getcwd: Work around getcwd bug on AIX 5..7.
7232         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7233         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7234         Use a different value for gl_cv_func_getcwd_path_max. Move the
7235         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7236         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7237         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7238         Define HAVE_MINIMALLY_WORKING_GETCWD.
7239         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7240         where it is not even minimally working, that is, on AIX.
7241         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7242         m4/getcwd-path-max.m4.
7243         (main): Update exit code computation.
7244         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7245         getcwd does not handle long file names.
7246
7247 2011-11-20  Bruno Haible  <bruno@clisp.org>
7248
7249         getcwd: Fix bug from 2009-09-10.
7250         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7251         like "no".
7252
7253 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7254
7255         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7256
7257 2011-11-20  Bruno Haible  <bruno@clisp.org>
7258
7259         fma tests: Avoid shadowing local variables.
7260         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7261         expected.
7262
7263 2011-11-20  Bruno Haible  <bruno@clisp.org>
7264
7265         copysignf tests: Fix.
7266         * tests/test-copysignf.c: Fix signature check.
7267
7268 2011-11-20  Bruno Haible  <bruno@clisp.org>
7269
7270         fma: Remove unused code.
7271         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7272         unused macros.
7273
7274 2011-11-20  Bruno Haible  <bruno@clisp.org>
7275
7276         sethostname: Fix doc about AIX.
7277         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7278         sethostname; it has it.
7279
7280         sethostname: Mention more portability problems.
7281         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7282         problem.
7283         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7284
7285 2011-11-19  Bruno Haible  <bruno@clisp.org>
7286
7287         Depend on module fcntl-h when AT_FDCWD is used.
7288         * modules/utimens (Depends-on): Add fcntl-h.
7289         * modules/areadlinkat (Depends-on): Likewise.
7290         * modules/areadlinkat-with-size (Depends-on): Likewise.
7291         * modules/faccessat (Depends-on): Likewise.
7292         * modules/fchmodat (Depends-on): Likewise.
7293         * modules/fchownat (Depends-on): Likewise.
7294         * modules/getcwd (Depends-on): Likewise.
7295         * modules/mkdirat (Depends-on): Likewise.
7296         * modules/mkfifoat (Depends-on): Likewise.
7297         * modules/readlinkat (Depends-on): Likewise.
7298         * modules/symlinkat (Depends-on): Likewise.
7299         * modules/dup2-tests (Depends-on): Likewise.
7300         * modules/fdutimensat-tests (Depends-on): Likewise.
7301         * modules/futimens-tests (Depends-on): Likewise.
7302
7303 2011-11-19  Bruno Haible  <bruno@clisp.org>
7304
7305         euidaccess: Update a comment.
7306         * lib/euidaccess.c: Update comment about platforms with faccessat.
7307
7308 2011-11-19  Bruno Haible  <bruno@clisp.org>
7309
7310         openat: Fix file list.
7311         * modules/openat (Files): Remove lib/at-func.c.
7312
7313 2011-11-19  Bruno Haible  <bruno@clisp.org>
7314
7315         fstatat: Simplify.
7316         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7317         gnulib should define rpl_fstatat, there is a
7318         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7319
7320 2011-11-19  Bruno Haible  <bruno@clisp.org>
7321
7322         Ensure 'inline' can be used in tests/test-utimens-common.h.
7323         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7324         * modules/futimens-tests (configure.ac): Likewise.
7325         * modules/utimens-tests (configure.ac): Likewise.
7326         * modules/utimensat-tests (configure.ac): Likewise.
7327
7328 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7329
7330         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7331         not hash_insert0.
7332         (hash_insert_if_absent): Doc fix.
7333
7334 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7335
7336         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7337
7338 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7339
7340         test-getcwd: disambiguate exit status
7341         * tests/test-getcwd.c (test_long_name): Return 0..7.
7342         (main): Exit with an unambiguous exit status.  The old
7343         code yielded a mysterious mixture of two failure codes.
7344
7345         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7346         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7347         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7348         rpl_fstatat or fstatat.  This should fix the other problem
7349         reported by Kai Habel in
7350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7351         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7353         and I reproduced it on a Solaris 8 host we still have in production.
7354
7355 2011-11-18  Jim Meyering  <meyering@redhat.com>
7356
7357         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7358         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7359         Add a sentence to the comment.
7360         (hash_insert0): New function that simply calls hash_insert_if_absent.
7361         * lib/hash.h (hash_insert_if_absent): Declare it.
7362         (hash_insert0): Add deprecation attribute.
7363         (_GL_ATTRIBUTE_DEPRECATED): Define.
7364         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7365         not hash_insert0.
7366         * NEWS: Mention it, even though it's not really an incompatible change.
7367
7368 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7369
7370         openat: avoid compilation failure due to lack of <errno.h> inclusion
7371         * lib/openat.c: Include <errno.h>.
7372
7373 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7374
7375         * modules/getcwd (Depends-on): Add fdopendir.
7376         This fixes one of the two problems reported by Kai Habel in
7377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7378
7379         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7380         stdalign problem reported by Ian Beckwith in
7381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7382         * modules/crypto/gc-arcfour (Depends-on):
7383         Depend conditionally on crypto/arcfour.
7384         * modules/crypto/gc-arctwo (Depends-on):
7385         Depend conditionally on crypto/arctwo.
7386         * modules/crypto/gc-des (Depends-on):
7387         Depend conditionally on crypto/des.
7388         * modules/crypto/gc-hmac-md5 (Depends-on):
7389         Depend conditionally on crypto/hmac-md5.
7390         * modules/crypto/gc-hmac-sha1 (Depends-on):
7391         Depend conditionally on crypto/hmac-sha1.
7392         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7393         * modules/crypto/gc-md4 (Depends-on):
7394         Depend conditionally on crypto/md4.
7395         * modules/crypto/gc-md5 (Depends-on):
7396         Depend conditionally on crypto/md5.
7397         * modules/crypto/gc-rijndael (Depends-on):
7398         Depend conditionally on crypto/rijndael.
7399         * modules/crypto/gc-sha1 (Depends-on):
7400         Depend conditionally on crypto/sha1.
7401         * modules/crypto/gc-arcfour:
7402         * modules/crypto/gc-arctwo:
7403         * modules/crypto/gc-des:
7404         * modules/crypto/gc-hmac-md5:
7405         * modules/crypto/gc-hmac-sha1:
7406         * modules/crypto/gc-md2:
7407         * modules/crypto/gc-md4:
7408         * modules/crypto/gc-md5:
7409         * modules/crypto/gc-rijndael:
7410         * modules/crypto/gc-sha1:
7411         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7412         now that the conditional dependencies do the work for us.
7413
7414 2011-11-17  Jim Meyering  <meyering@redhat.com>
7415
7416         tests: factor st_ctime-comparison out of two headers
7417         * tests/test-utimens-common.h (ctime_compare): Define.
7418         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7419         * tests/test-lutimens.h (test_lutimens): Likewise.
7420         * tests/test-utimens.h (test_utimens): Likewise.
7421
7422         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7423         Invoke the test program via an init.sh-using wrapper.
7424         * tests/test-getcwd.sh: New file.
7425         * modules/getcwd-tests (Files): Add it.
7426         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7427
7428 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7429
7430         gitlog-to-changelog: support multi-author commits.
7431         The FSF cares about keeping track of all authors of patches to its
7432         projects, but Git doesn't provide obvious support for multi-author
7433         changesets. Consensus seems to be forming around the use of extra
7434         Signed-off-by inspired lines in the log message formatted as
7435         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7436         multi-author commits between version control systems.
7437         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7438         log message and output in standard ChangeLog multi-author format.
7439         Reported by Peter Rosin <peda@lysator.liu.se>
7440
7441 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7442             Bruno Haible  <bruno@clisp.org>
7443
7444         Fix some modules' file list.
7445         * modules/fstatat (Files): Add m4/lstat.m4.
7446         * modules/openat (Files): Likewise.
7447         * modules/unlinkat (Files): Likewise.
7448
7449 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7450
7451         maint.mk: fix tight-scope.mk generation in VPATH builds.
7452         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7453         reference with $(srcdir) so that the file is found correctly even
7454         when running `make syntax-check' in a VPATH build.
7455
7456 2011-11-13  Bruno Haible  <bruno@clisp.org>
7457             Jim Meyering  <meyering@redhat.com>
7458
7459         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7460         * tests/init.sh (compare): Remove "No differences encountered" or
7461         synonymous output from the 'diff' program.
7462
7463 2011-11-13  Bruno Haible  <bruno@clisp.org>
7464
7465         Makefile: Tweak indentation.
7466         * Makefile: Use tab as first character in every line that contains rule
7467         commands.
7468
7469 2011-11-13  Bruno Haible  <bruno@clisp.org>
7470
7471         Syntax check for copyright statements.
7472         * check-copyright: New file.
7473         * Makefile (sc_check_copyright): New rule.
7474
7475 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7476
7477         * build-aux/git-version-gen: Add --prefix to configure the tag
7478         match string.
7479
7480 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7481
7482         * build-aux/git-version-gen: Add --help and --version.
7483
7484 2011-11-12  Jim Meyering  <meyering@redhat.com>
7485
7486         revamp the other test-exclude?.sh scripts to use init.sh, too
7487         * tests/test-exclude1.sh: Use init.sh.
7488         * tests/test-exclude2.sh: Likewise.
7489         * tests/test-exclude3.sh: Likewise.
7490         * tests/test-exclude4.sh: Likewise.
7491         * tests/test-exclude5.sh: Likewise.
7492         * tests/test-exclude6.sh: Likewise.
7493         * tests/test-exclude7.sh: Likewise.
7494         * tests/test-exclude8.sh: Likewise.
7495         * modules/exclude-tests (Files): List init.sh.
7496
7497         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7498         These shell scripts ignored failure of the binary test-exclude,
7499         so making the latter return 77 didn't cause them to be skipped.
7500         * tests/test-exclude5.sh: Exit with test-exclude's error status
7501         when that program fails.  Revamp to use init.sh.
7502         * tests/test-exclude2.sh: Likewise.
7503
7504         test-exclude: fix a typo
7505         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7506
7507 2011-11-11  Bruno Haible  <bruno@clisp.org>
7508
7509         obstack: Fix compilation error on MSVC 9.
7510         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7511
7512 2011-11-11  Jim Meyering  <meyering@redhat.com>
7513
7514         test-exclude: skip tests rather than failing on deficient systems
7515         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7516         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7517         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7518         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7519
7520 2011-11-10  Bruno Haible  <bruno@clisp.org>
7521
7522         ptsname_r test: Avoid gcc warning on glibc systems.
7523         * tests/test-ptsname_r.c (null_ptr): New function.
7524         (test_errors): Use it.
7525
7526 2011-11-10  Bruno Haible  <bruno@clisp.org>
7527
7528         ptsname_r: Avoid compilation error on OSF/1 5.1.
7529         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7531         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7532         function is not declared or incompatibly declared.
7533         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7534         * modules/ptsname_r (Depends-on, configure.ac): Update.
7535         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7536
7537 2011-11-10  Bruno Haible  <bruno@clisp.org>
7538
7539         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7540         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7541         When cross-compiling, guess yes on all platforms except AIX.
7542         Reported by Ludovic Courtès <ludo@gnu.org>.
7543
7544 2011-11-09  Bruno Haible  <bruno@clisp.org>
7545
7546         ptsname_r tests: Fix bugs.
7547         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7548         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7549
7550 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         fstatat: work with cross-compilation
7553         Problem reported by Ludovic Courtès in
7554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7555         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7556         "cross-compiling" and assume the bug is present.  Replace
7557         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7558         an inverted sense, to be more conservative about our assumptions.
7559         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7560
7561 2011-11-09  Bruno Haible  <bruno@clisp.org>
7562
7563         Improve MODULES.html output.
7564         * modules/mkfifoat (Description): Use the word "function".
7565         * modules/readlinkat (Description): Likewise.
7566         * modules/symlinkat (Description): Likewise.
7567
7568 2011-11-09  Eric Blake  <eblake@redhat.com>
7569
7570         ptsname_r-tests: new test module
7571         * modules/ptsname_r-tests: New module.
7572         * tests/test-ptsname_r.c: New file.
7573
7574         ptsname_r: new module
7575         * modules/ptsname_r: New module.
7576         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7577         * lib/ptsname.c (__ptsname_r): Split...
7578         * lib/ptsname_r.c: ...into new file.
7579         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7580         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7581         * modules/stdlib (Makefile.am): Substitute witnesses.
7582         * lib/stdlib.in.h (ptsname_r): Declare it.
7583         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7584         * MODULES.html.sh (Misc): Likewise.
7585         * modules/ptsname (Depends-on): Alter dependency.
7586         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7587
7588 2011-11-09  Jim Meyering  <meyering@redhat.com>
7589
7590         announce-gen: be more concise when there's only one URL+tarball
7591         * build-aux/announce-gen (get_tool_versions): When you distribute
7592         only one type of tarball, combine the first two "Here are..."
7593         sections and make the key-checking grammar independent of
7594         how many tarballs there are.
7595
7596 2011-11-09  Eric Blake  <eblake@redhat.com>
7597
7598         openpty: provide a stub on mingw
7599         * lib/pty.in.h (includes): Provide forward declarations.
7600         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7601
7602         raise: fix mingw handling of SIGPIPE
7603         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7604
7605 2011-11-08  Bruno Haible  <bruno@clisp.org>
7606
7607         More conditional dependencies.
7608         * modules/faccessat (Depends-on): Add conditions.
7609         * modules/fchmodat (Depends-on): Likewise.
7610         * modules/fchownat (Depends-on): Likewise.
7611         * modules/fstatat (Depends-on): Likewise.
7612         * modules/mkfifoat (Depends-on): Likewise.
7613         * modules/readlinkat (Depends-on): Likewise.
7614         * modules/symlinkat (Depends-on): Likewise.
7615         * modules/unlinkat (Depends-on): Likewise.
7616         * modules/utimensat (Depends-on): Likewise.
7617         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7618         * modules/linkat (Depends-on): Refine the conditions.
7619         * modules/renameat (Depends-on): Likewise.
7620
7621 2011-11-08  Bruno Haible  <bruno@clisp.org>
7622
7623         faccessat: Move AC_LIBOBJ invocation to module description.
7624         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7625         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7626         invocation from here...
7627         * modules/faccessat (configure.ac): ... to here. Invoke
7628         gl_PREREQ_FACCESSAT.
7629
7630 2011-11-08  Bruno Haible  <bruno@clisp.org>
7631
7632         faccessat: Simplify autoconf macro.
7633         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7634         gl_FUNC_EUIDACCESS.
7635
7636 2011-11-08  Bruno Haible  <bruno@clisp.org>
7637
7638         renameat: Fix dependencies.
7639         * modules/renameat (Depends-on): Add stdbool.
7640
7641 2011-11-08  Bruno Haible  <bruno@clisp.org>
7642
7643         mkfifoat: Fix module description.
7644         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7645         not gl_UNISTD_MODULE_INDICATOR.
7646
7647 2011-11-08  Bruno Haible  <bruno@clisp.org>
7648
7649         fstatat: Remove unused dependency.
7650         * modules/fstatat (Depends-on): Remove fstat.
7651
7652 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7653
7654         GNUmakefile: behave when Makefile is missing.
7655         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7656
7657 2011-11-08  Bruno Haible  <bruno@clisp.org>
7658
7659         openat: Conditionalize dependencies.
7660         * lib/openat.c: Reduce the scope of some #includes.
7661         * modules/openat (Depends-on): Add conditions.
7662
7663 2011-11-07  Jim Meyering  <meyering@redhat.com>
7664
7665         maint.mk: extract GPG key ID without using a temporary file
7666         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7667         without using a temporary file.  Based on a suggestion from Werner Koch
7668         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7669
7670 2011-11-07  Eric Blake  <eblake@redhat.com>
7671
7672         grantpt: fix typo
7673         * lib/stdlib.in.h (grantpt): Check correct function.
7674
7675         maint.mk: silence new syntax check
7676         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7677
7678 2011-11-06  Bruno Haible  <bruno@clisp.org>
7679
7680         Doc about floating-point and math API.
7681         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7682         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7683
7684 2011-11-06  Bruno Haible  <bruno@clisp.org>
7685
7686         stdalign tests: Skip the test when compiled by Sun C.
7687         * tests/test-stdalign.c (main): Skip the test on Sun C.
7688
7689 2011-11-06  Bruno Haible  <bruno@clisp.org>
7690
7691         ansi-c++-opt: Complete the 2011-06-05 change.
7692         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7693         does not support namespaces, set the variable to "no", not to ":".
7694
7695 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7696
7697         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7698
7699 2011-11-06  Bruno Haible  <bruno@clisp.org>
7700
7701         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7702         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7703         (minus_zerol) [HP-UX]: New macro.
7704         (unary_minus) [HP-UX]: New function.
7705         (copysignl) [HP-UX]: Use unary_minus function.
7706
7707 2011-11-06  Bruno Haible  <bruno@clisp.org>
7708
7709         ldexp, ldexpf, ldexpl: Enhance tests.
7710         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7711         and tests/test-ldexpl.c.
7712         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7713         LDEXP, MIN_EXP, MAX_EXP): New macros.
7714         Include test-ldexp.h.
7715         (main): Just call test_function.
7716         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7717         infinity.h, nan.h.
7718         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7719         MAX_EXP): New macros.
7720         Include test-ldexp.h.
7721         (x, y): Remove variables.
7722         (main): Just call test_function.
7723         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7724         infinity.h, nan.h.
7725         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7726         MAX_EXP): New macros.
7727         Include test-ldexp.h.
7728         (x, y): Remove variables.
7729         (main): Just call test_function.
7730         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7731         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7732         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7733         (Depends-on): Add isnand-nolibm, signbit, float.
7734         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7735         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7736         (Depends-on): Add isnanf-nolibm, signbit, float.
7737
7738 2011-11-06  Bruno Haible  <bruno@clisp.org>
7739
7740         math tests: Cosmetics.
7741         * tests/test-math-c++.cc: Reorder declarations.
7742
7743 2011-11-05  Bruno Haible  <bruno@clisp.org>
7744
7745         fma*: Simplify test.
7746         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7747         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7748
7749         Tests for module 'fmal'.
7750         * modules/fmal-tests: New file.
7751         * tests/test-fmal1.c: New file.
7752         * tests/test-fmal2.c: New file.
7753
7754         New module 'fmal'.
7755         * lib/math.in.h (fmal): New declaration.
7756         * lib/fmal.c: New file.
7757         * m4/fmal.m4: New file.
7758         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7760         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7761         REPLACE_FMAL.
7762         * modules/fmal: New file.
7763         * doc/posix-functions/fmal.texi: Mention the new module and the various
7764         bugs.
7765
7766         Tests for module 'fmaf'.
7767         * modules/fmaf-tests: New file.
7768         * tests/test-fmaf1.c: New file.
7769         * tests/test-fmaf2.c: New file.
7770
7771         New module 'fmaf'.
7772         * lib/math.in.h (fmaf): New declaration.
7773         * lib/fmaf.c: New file.
7774         * m4/fmaf.m4: New file.
7775         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7777         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7778         REPLACE_FMAF.
7779         * modules/fmaf: New file.
7780         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7781         bugs.
7782
7783         Tests for module 'fma'.
7784         * modules/fma-tests: New file.
7785         * tests/test-fma1.c: New file.
7786         * tests/test-fma1.h: New file.
7787         * tests/test-fma2.c: New file.
7788         * tests/test-fma2.h: New file.
7789
7790         New module 'fma'.
7791         * lib/math.in.h (fma): New declaration.
7792         * lib/fma.c: New file.
7793         * m4/fma.m4: New file.
7794         * m4/fegetround.m4: New file.
7795         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7796         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7797         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7798         REPLACE_FMA.
7799         * modules/fma: New file.
7800         * doc/posix-functions/fma.texi: Mention the new module and the various
7801         bugs.
7802
7803         Extend gl_MATHFUNC.
7804         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7805         Support 'void' as argument type.
7806         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7807
7808 2011-11-05  Jim Meyering  <meyering@redhat.com>
7809
7810         maint.mk: also prohibit inclusion of dirent.h without use
7811         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7812
7813 2011-11-05  Bruno Haible  <bruno@clisp.org>
7814
7815         ldexpl tests: Avoid test failure on MSVC 9.
7816         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7817         value. Needed in order to enforce the conversion from a value greater
7818         than LDBL_MAX to Infinity.
7819
7820 2011-11-05  Bruno Haible  <bruno@clisp.org>
7821
7822         New modules 'at-internal', 'openat-h', split off from module 'openat'.
7823         * modules/at-internal: New file, extracted from modules/openat.
7824         * modules/openat-h: New file.
7825         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
7826         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
7827         * modules/openat (Description): Add reference to POSIX function.
7828         (Files): Remove lib/openat.h, lib/openat-proc.c.
7829         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
7830         intprops, unistd.
7831         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
7832         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
7833         gl_FCNTL_MODULE_INDICATOR.
7834         (Include): Remove unistd.h, openat.h.
7835         * modules/areadlinkat (Files): Add lib/at-func.c.
7836         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7837         openat-die, openat-h, save-cwd.
7838         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
7839         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7840         openat-die, openat-h, save-cwd, unistd.
7841         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
7842         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7843         openat-h, save-cwd. Remove fcntl-h, openat.
7844         * modules/fchmodat (Files): Remove lib/openat.h.
7845         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7846         openat, stdbool, unistd.
7847         * modules/fchownat (Files): Remove lib/openat.h.
7848         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7849         openat, stdbool, sys_stat.
7850         * modules/fdopendir (Files): Remove lib/openat-priv.h,
7851         lib/openat-proc.c.
7852         (Depends-on): Add at-internal.
7853         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
7854         * modules/fstatat (Files): Remove lib/openat.h.
7855         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7856         stdbool, unistd.
7857         * modules/fts (Depends-on): Add openat-h.
7858         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
7859         openat.
7860         * modules/mkdirat (Files): Remove lib/openat.h.
7861         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
7862         openat, stdbool, sys_stat.
7863         * modules/mkfifoat (Files): Add lib/at-func.c.
7864         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7865         openat-h, save-cwd. Remove fcntl-h, openat.
7866         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
7867         * modules/readlinkat (Files): Add lib/at-func.c.
7868         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7869         openat-h, save-cwd. Remove fcntl-h, openat.
7870         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
7871         openat.
7872         * modules/selinux-at (Files): Add lib/at-func.c.
7873         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
7874         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
7875         * modules/symlinkat (Files): Add lib/at-func.c.
7876         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
7877         openat-h, save-cwd. Remove fcntl-h, openat.
7878         * modules/unlinkat (Files): Remove lib/openat.h.
7879         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
7880         stdbool.
7881         * modules/utimensat (Files): Add lib/at-func.c.
7882         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
7883         openat-die, openat-h, save-cwd.
7884         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
7885         * modules/fdutimensat-tests (Depends-on): Add openat.
7886         * modules/fstatat-tests (Depends-on): Add openat-h.
7887         * modules/readlinkat-tests (Depends-on): Add openat.
7888         * modules/symlinkat-tests (Depends-on): Add openat.
7889
7890 2011-11-05  Bruno Haible  <bruno@clisp.org>
7891
7892         openat: Include <stdbool.h>.
7893         * lib/openat.c: Include <stdbool.h>.
7894
7895 2011-11-04  Bruno Haible  <bruno@clisp.org>
7896
7897         fchownat, renameat, unlinkat: Fix dependencies.
7898         * modules/fchownat (Depends-on): Add fstatat.
7899         * modules/renameat (Depends-on): Likewise.
7900         * modules/unlinkat (Depends-on): Likewise.
7901
7902 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
7903
7904         openat: remove direct dependency on dirent
7905         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
7906         and hasn't been needed ever since fdopendir was split into its own
7907         module on 2009-08-31.
7908         * modules/openat (Depends-on): Remove dirent.
7909
7910 2011-11-04  Bruno Haible  <bruno@clisp.org>
7911
7912         renameat: Optimize code size.
7913         * modules/renameat (configure.ac): Don't compile at-func2.c if
7914         REPLACE_RENAMEAT is 1.
7915
7916 2011-11-04  Bruno Haible  <bruno@clisp.org>
7917
7918         openat tests: Fix file list.
7919         * modules/openat-tests (Files): Add tests/test-open.h.
7920
7921 2011-11-04  Bruno Haible  <bruno@clisp.org>
7922
7923         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
7924         * modules/fchmodat (Depends-on): Add openat-die.
7925         * modules/fchownat (Depends-on): Likewise.
7926         * modules/linkat (Depends-on): Likewise.
7927         * modules/renameat (Depends-on): Likewise.
7928         * modules/openat (Depends-on): Add dirent.
7929
7930 2011-11-04  Jim Meyering  <meyering@redhat.com>
7931
7932         at-func*.c: fix comments
7933         * lib/at-func2.c: Correct/improve first-line comment.
7934         * lib/at-func.c: Correct grammar in first-line comment.
7935
7936 2011-11-04  Bruno Haible  <bruno@clisp.org>
7937
7938         New module 'mkdirat', split off from module 'openat'.
7939         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
7940         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
7941         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
7942         * modules/mkdirat: New file, extracted from modules/openat.
7943         * modules/openat (Files): Remove lib/mkdirat.c.
7944         (Depends-on): Remove mkdir.
7945         (configure.ac): Remove AC_LIBOBJ of mkdirat.
7946         (Include): Remove <sys/stat.h>.
7947         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
7948         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7949         tests/test-mkdir.h.
7950         (Depends-on): Remove ignore-value.
7951         (Makefile.am): Remove rules for test-mkdirat.
7952         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7953         of module 'openat'.
7954         * NEWS: Mention the change.
7955
7956 2011-11-04  Bruno Haible  <bruno@clisp.org>
7957
7958         closedir: Avoid warning on mingw.
7959         * lib/closedir.c: Include <unistd.h>.
7960
7961 2011-11-04  Bruno Haible  <bruno@clisp.org>
7962
7963         New module 'fstatat', split off from module 'openat'.
7964         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7965         defined.
7966         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7967         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7968         gl_FUNC_FSTATAT.
7969         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7970         * modules/fstatat: New file, extracted from modules/openat.
7971         * modules/openat (Files): Remove lib/fstatat.c.
7972         (Depends-on): Remove lstat.
7973         (configure.ac): Remove AC_LIBOBJ of fstatat.
7974         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7975         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7976         tests/test-lstat.h, tests/test-stat.h.
7977         (Depends-on): Remove getcwd-lgpl.
7978         (Makefile.am): Remove rules for test-fstatat.
7979         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7980         of module 'openat'.
7981         * NEWS: Mention the change.
7982         * modules/getcwd (Depends-on): Add fstatat.
7983         * modules/linkat (Depends-on): Likewise.
7984         * modules/mkfifoat-tests (Depends-on): Likewise.
7985         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7986
7987 2011-11-03  Bruno Haible  <bruno@clisp.org>
7988
7989         New module 'unlinkat', split off from module 'openat'.
7990         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7991         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7992         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7993         * modules/unlinkat: New file, extracted from modules/openat. Correct
7994         the dependency conditions.
7995         * modules/openat (Files): Remove lib/unlinkat.c.
7996         (Depends-on): Remove rmdir, unlink.
7997         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7998         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7999         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8000         tests/test-rmdir.h, tests/test-unlink.h.
8001         (Depends-on): Remove unlinkdir.
8002         (Makefile.am): Remove rules for test-unlinkat.
8003         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8004         of module 'openat'.
8005         * NEWS: Mention the change.
8006         * modules/linkat-tests (Depends-on): Add unlinkat.
8007         * modules/mkfifoat-tests (Depends-on): Likewise.
8008         * modules/readlinkat-tests (Depends-on): Likewise.
8009
8010 2011-11-02  Bruno Haible  <bruno@clisp.org>
8011
8012         New module 'fchmodat', split off from module 'openat'.
8013         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8014         defined.
8015         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8016         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8017         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8018         * modules/fchmodat: New file, extracted from modules/openat.
8019         * modules/openat (Files): Remove lib/fchmodat.c.
8020         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8021         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8022         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8023         (Makefile.am): Remove rules for test-fchmodat.
8024         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8025         of module 'openat'.
8026         * NEWS: Mention the change.
8027
8028 2011-11-02  Jim Meyering  <meyering@redhat.com>
8029
8030         putenv: indent #definition of "environ" to placate cppi
8031         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8032
8033         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8034         Git logs are often treated as immutable, because editing them
8035         changes the SHA1 checksums of all descendants.  Thus, errors in
8036         git logs tend to stay there forever.  However, when we generate
8037         a ChangeLog file -- typically for distribution -- from that git log,
8038         we can actually make corrections in the generated file.  The key
8039         lies in recording in machine-readable/applicable form the desired
8040         corrections.  See --help for description and an example.
8041         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8042         (usage): Describe it; alphabetize option descriptions.
8043         (main): Honor the new option, carefully.
8044
8045 2011-11-01  Jim Meyering  <meyering@redhat.com>
8046
8047         gitlog-to-changelog: avoid an infloop
8048         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8049         that ends up being empty.
8050
8051 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8054         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8055         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8056         contains (possibly-quoted) backslashes.  This should avoid
8057         all-too-common shell bugs if COMPLICATED contains backslashes in
8058         the "wrong" places.  Reported by David Evans in
8059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8060         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8061         because we want ASCII ranges.  Is there some reason we don't use
8062         the C locale everywhere in this script?
8063         (func_module, top level): Avoid unwanted pathname expansion when
8064         $repo_url_prefix or $repo_url_suffix_repl contain shell
8065         metacharacters like '?' and '*'.
8066
8067 2011-11-01  Bruno Haible  <bruno@clisp.org>
8068
8069         fchownat: Improve description.
8070         * modules/fchownat (Description): Add link to function.
8071
8072 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8073
8074         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8075         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8076         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8077         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8078
8079 2011-11-01  Bruno Haible  <bruno@clisp.org>
8080
8081         alignof: Avoid collision with stdalign module.
8082         * lib/alignof.h (alignof): Remove macro.
8083         * NEWS: Mention the change.
8084         Reported by Paul Eggert.
8085
8086 2011-11-01  Bruno Haible  <bruno@clisp.org>
8087
8088         New module 'fchownat', split off from module 'openat'.
8089         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8090         defined.
8091         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8092         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8093         invoke gl_FUNC_FCHOWNAT.
8094         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8095         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8096         * modules/fchownat: New file, extracted from modules/openat.
8097         * modules/openat (Files): Remove lib/fchownat.c.
8098         (Depends-on): Remove lchown.
8099         (configure.ac): Remove AC_LIBOBJ of fchownat.
8100         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8101         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8102         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8103         (Depends-on): Remove mgetgroups, usleep, stat-time.
8104         (configure.ac): Remove test for getegid.
8105         (Makefile.am): Remove rules for test-fchownat.
8106         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8107         of module 'openat'.
8108         * NEWS: Mention the change.
8109
8110 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         stdalign: port better to MSVC and to Sun C 5.11
8113         This fixes some of the problems reported by Bruno Haible in
8114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8115         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8116         shortcomings of MSVC and of Sun C 5.11.
8117         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8118         around __declspec arg.
8119         * modules/stdalign-tests (Files): Add tests/macros.h.
8120         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8121         Include macros.h, for ASSERT.
8122         (DECLARE_ALIGNED): Remove.
8123         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8124         to catch bug), and to 1 if not (simplifies the rest of the code).
8125         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8126         (CHECK_AUTO): Remove.
8127         (CHECK_ALIGNED): Check only the alignment of the static vars,
8128         since auto var alignment isn't supported by Sun C 5.11.
8129         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8130         ASSERT failures are easier to diagnose.
8131
8132 2011-10-31  Bruno Haible  <bruno@clisp.org>
8133
8134         doc about some IRIX 5.3 problems.
8135         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8136         on IRIX 5.3.
8137         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8138         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8139         5.3.
8140         * doc/posix-functions/grantpt.texi: Likewise.
8141         * doc/posix-functions/unlockpt.texi: Likewise.
8142         * doc/posix-functions/lgamma.texi: Likewise.
8143         * doc/posix-functions/nextafter.texi: Likewise.
8144         * doc/posix-functions/remainder.texi: Likewise.
8145         * doc/posix-functions/select.texi: Mention misplaced declaration on
8146         IRIX 5.3.
8147         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8148
8149 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8150
8151         gitlog-to-changelog: fix git-log invocation.
8152         git-log mishandles date strings before 1970-01-01 UTC, and there is
8153         no use to specify --since=1970-01-01 by default anyway.
8154         * build-aux/gitlog-to-changelog: By default, when no --since option
8155         was given, do not specify explicit --since option to git-log.
8156
8157 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8158
8159         gitlog-to-changelog: new option --append-dot.
8160         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8161         first non-blank line of each commit message terminated with a dot.
8162
8163 2011-10-30  Bruno Haible  <bruno@clisp.org>
8164
8165         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8166         * lib/ffsl.h: Include <config.h>.
8167         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8168
8169 2011-10-30  Jim Meyering  <meyering@redhat.com>
8170
8171         GNUmakefile: reenable "make syntax-check" for most projects
8172         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8173         build-aux variable", "syntax-check" would do nothing but succeed with
8174         the "No version control files detected..." diagnostic (unless you
8175         happened to override _build-aux via cfg.mk).
8176         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8177         to precede inclusion of maint.mk.  Otherwise, these variables would
8178         be used undefined in any project that does not override the default.
8179
8180 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8181
8182         gitlog-to-changelog: treat a message with only blank lines as empty.
8183         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8184         trailing blank lines before the code that issues a warning about an
8185         empty commit message.
8186
8187 2011-10-30  Jim Meyering  <meyering@redhat.com>
8188
8189         test-parse-datetime.c: avoid new DST-related false positive test failure
8190         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8191         based on the time/date we'll convert, not the current time.
8192         Otherwise, the moment we cross a DST boundary like today's in
8193         Europe, (CEST to CET), that offset ends up being one hour off.
8194
8195 2011-10-27  Bruno Haible  <bruno@clisp.org>
8196
8197         fstat: Tweak documentation.
8198         * modules/fstat (Description): More precise description.
8199
8200 2011-10-27  Bruno Haible  <bruno@clisp.org>
8201
8202         Update documentation regarding 'largefile' module.
8203         * doc/posix-functions/fstat.texi: Tweak wording.
8204         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8205         problems with huge directories and/or small ino_t types.
8206         * doc/posix-functions/readdir.texi: Likewise.
8207         * doc/posix-functions/rewinddir.texi: Likewise.
8208
8209 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8210
8211         maint.mk: don't maintain a second build-aux variable.
8212         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8213         depends on GNUmakefile, which already maintains a cfg.mk
8214         overridable $(_build-aux) for projects with a non-standard
8215         build-aux directory location, although without the $(srcdir)
8216         prefix.  Use that variable consistently instead of introducing a
8217         second one.  Adjust all call sites.
8218
8219 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8220
8221         Add stdalign module and use it in other modules.
8222         This is based on a previous proposal by Bruno Haible
8223         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8224
8225         stdalign: new module
8226         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8227         * modules/stdalign: New files.
8228         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8229         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8230
8231         stdalign-tests: new module
8232         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8233
8234         argp: use stdalign
8235         * lib/argp-parse.c: Include <stdalign.h>.
8236         (alignof): Remove.
8237         * modules/argp (Depends-on): Add stdalign.
8238
8239         crypto libraries: use stdalign
8240         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8241         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8242         Do not include <stdlib.h> twice, in md4.c.
8243         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8244         because we are accessing a pointer's bit-pattern, not a size.
8245         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8246         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8247         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8248         * modules/crypto/sha512: Likewise.
8249
8250         sys_socket: use stdalign, not alignof
8251         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8252         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8253
8254 2011-10-27  Bruno Haible  <bruno@clisp.org>
8255
8256         raise test: Avoid a test failure on Linux/MIPS.
8257         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8258         because 99 is a valid signal on Linux/MIPS.
8259
8260 2011-10-27  Bruno Haible  <bruno@clisp.org>
8261
8262         nonblocking tests: Fix test failure on Linux/MIPS.
8263         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8264         Set to 270000.
8265
8266 2011-10-27  Bruno Haible  <bruno@clisp.org>
8267
8268         utimensat: Work around problem on Linux/hppa.
8269         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8270         values.
8271         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8272
8273 2011-10-25  Jim Meyering  <meyering@redhat.com>
8274
8275         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8276         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8277         after symbols like NULL, size_t, etc.
8278         Reported by Alfred M. Szmidt.
8279
8280         maint.mk: exempt ENODATA from a syntax-check rule
8281         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8282         from the sc_prohibit_always-defined_macros syntax-check rule.
8283         Add a comment.  See this for more details:
8284         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8285
8286 2011-10-23  Jim Meyering  <meyering@redhat.com>
8287
8288         fts: close parent dir FD before returning from post-traversal fts_read
8289         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8290         unlink A, even though an FD open on A remained.  This is suboptimal
8291         (holding a file descriptor open longer than needed), but otherwise not
8292         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8293         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8294         that represents a real problem: it causes the removal of A to fail
8295         with e.g., "rm: cannot remove `A': Device or resource busy"
8296
8297         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8298         directory file descriptors.  After completing the final, FTS_DP,
8299         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8300         cache, but then proceeded to add a new FD to it via the subsequent
8301         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8302         final file descriptor would be closed only via fts_close's call to
8303         fd_ring_clear.  Now, it is usually closed earlier, via the final
8304         FTS_DP-returning fts_read call.
8305         * lib/fts.c (restore_initial_cwd): New function, converted from
8306         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8307         Update callers.
8308         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8309         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8310
8311 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8312             Bruno Haible  <bruno@clisp.org>
8313             Jim Meyering  <jim@meyering.net>
8314
8315         readme-release: improve safety of release prep instructions.
8316         * README-release: Don't git pull all branches when only master
8317         is needed for the release process.
8318         Run make maintainer-clean before changing trees and merging.
8319         Don't try to run ./configure right after git pull in case files
8320         that influence the bootstrap process have changed, move the
8321         ./configure step to after running ./bootstrap.
8322         Don't bootstrap "one last time"... it's the first time!
8323
8324 2011-10-22  Bruno Haible  <bruno@clisp.org>
8325
8326         errno, strerror-override: Support for MSVC 10.
8327         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8328         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8329         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8330         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8331         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8332         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8333         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8334         Assign values compatible with MSVC 10.
8335         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8336         New macros.
8337         (GNULIB_defined_EWINSOCK): New macro.
8338         * lib/strerror-override.c (strerror_override): Update accordingly.
8339         * lib/strerror-override.h: Likewise.
8340         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8341         longer equal to the corresponding errno value.
8342         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8343
8344 2011-10-22  Bruno Haible  <bruno@clisp.org>
8345
8346         perror: Recognize when test program crashes.
8347         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8348         strerror, set gl_cv_func_perror_works to no.
8349         Reported by Daniel Richard G. <skunk@iskunk.org>.
8350
8351         perror: Fix indentation.
8352         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8353
8354 2011-10-22  Bruno Haible  <bruno@clisp.org>
8355
8356         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8357         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8358         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8359         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8360         functions, not as a macro.
8361         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8362         macros.
8363         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8364         absence of macro.
8365         Suggested by Eric Blake.
8366         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8367
8368 2011-10-21  Bruno Haible  <bruno@clisp.org>
8369
8370         relocatable-prog-wrapper: Don't leave object files behind.
8371         * build-aux/install-reloc: Re-synchronize list of .o files to be
8372         removed with list of compilation units.
8373
8374 2011-10-20  Bruno Haible  <bruno@clisp.org>
8375
8376         openpty, posix_openpt: Remove code duplication.
8377         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8378         * lib/openpty.c: Include <stdlib.h>.
8379         (openpty): Use posix_openpt on all platforms except IRIX.
8380         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8381
8382 2011-10-20  Bruno Haible  <bruno@clisp.org>
8383
8384         unlockpt: Detect invalid argument.
8385         * lib/unlockpt.c: Include <fcntl.h>.
8386         (unlockpt): Check whether fd is valid, using fcntl().
8387         * modules/unlockpt (Depends-on): Add fcntl-h.
8388
8389 2011-10-20  Bruno Haible  <bruno@clisp.org>
8390
8391         openpty: Avoid compilation error on AIX 6.1.
8392         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8393
8394 2011-10-20  Bruno Haible  <bruno@clisp.org>
8395
8396         posix_openpt: Support for OpenBSD.
8397         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8398         (posix_openpt) [OpenBSD]: New code.
8399         * lib/grantpt.c: Include <fcntl.h>.
8400         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8401         * modules/grantpt (Depends-on): Add fcntl-h.
8402
8403 2011-10-20  Bruno Haible  <bruno@clisp.org>
8404
8405         posix_openpt test: Coding style.
8406         * tests/test-posix_openpt.c: Use GNU coding style.
8407
8408 2011-10-20  Bruno Haible  <bruno@clisp.org>
8409
8410         grantpt: Support --avoid=pt_chown.
8411         * modules/grantpt (Files): Add lib/pty-private.h.
8412
8413 2011-10-20  Bruno Haible  <bruno@clisp.org>
8414
8415         posix_openpt: Fix autoconf macro.
8416         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8417         unneeded check for _getpty.
8418
8419 2011-10-20  Bruno Haible  <bruno@clisp.org>
8420
8421         openpty: Update comments.
8422         * lib/openpty.c: Add comments about Minix.
8423
8424 2011-10-19  Eric Blake  <eblake@redhat.com>
8425
8426         openpty: relax license
8427         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8428
8429         pt_chown: use configmake to simplify build
8430         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8431
8432         ptsname and others: relax license
8433         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8434         * modules/unlockpt (License): Likewise.
8435         * modules/pt_chown (License): Likewise.
8436         * modules/ptsname (License): Likewise.
8437         * modules/ttyname_r (License): Likewise.
8438
8439 2011-10-19  Jim Meyering  <meyering@redhat.com>
8440
8441         posix_openpt: remove spurious #endif
8442         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8443
8444 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8445
8446         maint.mk: Respect $(build_aux) in web-manual rule.
8447         * top/maint.mk (web-manual): Find gen-announce script in user's
8448         $(build_aux) directory instead of hard-coding 'build-aux'.
8449
8450 2011-10-19  Bruno Haible  <bruno@clisp.org>
8451
8452         posix_openpt: Fix compilation error.
8453         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8454         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8455         Mention the openpty module as an alternative.
8456
8457 2011-10-19  Bruno Haible  <bruno@clisp.org>
8458
8459         Support for old NeXTstep 3.3 frexp().
8460         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8461         execution time of the test to 5 seconds.
8462         Reported by Daniel Richard G. <skunk@iskunk.org>.
8463
8464 2011-10-19  Bruno Haible  <bruno@clisp.org>
8465
8466         Support for old NeXTstep 3.3 sed.
8467         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8468         part, use /.../, not \|...|. Escape periods in the header file name.
8469         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8470         Reported by Daniel Richard G. <skunk@iskunk.org>.
8471
8472 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8473
8474         Support for old NeXTstep 3.3 gcc.
8475         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8476         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8477         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8478         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8479         * lib/regex.h (_Restrict_arr_): Likewise.
8480         * lib/regex_internal.h (re_token_t): Likewise.
8481         * lib/regexec.c (check_node_accept_bytes): Likewise.
8482         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8483
8484 2011-10-18  Eric Blake  <eblake@redhat.com>
8485
8486         posix_openpt: new module
8487         * modules/posix_openpt: New module.
8488         * m4/posix_openpt.m4: New file.
8489         * lib/posix_openpt.c: Likewise.
8490         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8491         (gl_STDLIB_H_DEFAULTS): Set defaults.
8492         * modules/stdlib (Makefile.am): Substitute macros.
8493         * lib/stdlib.in.h (posix_openpt): Declare.
8494         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8495         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8496         * modules/posix_openpt-tests: New test module.
8497         * tests/test-posix_openpt.c: New test.
8498
8499 2011-10-15  Bruno Haible  <bruno@clisp.org>
8500
8501         xstrtoll: Fix compilation failure.
8502         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8503         from lib/strtol.c.
8504         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8505         some platforms.
8506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8507
8508 2011-10-15  Bruno Haible  <bruno@clisp.org>
8509
8510         vasnprintf: Optimize bit search operation.
8511         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8513         gl_DOUBLE_EXPONENT_LOCATION.
8514         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8515         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8516         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8517         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8518         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8519         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8520         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8521         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8522         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8523
8524 2011-10-15  Bruno Haible  <bruno@clisp.org>
8525
8526         vasnprintf: Fix comments.
8527         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8528
8529 2011-10-14  Bruno Haible  <bruno@clisp.org>
8530
8531         Tests for module 'integer_length_ll'.
8532         * modules/integer_length_ll-tests: New file.
8533         * tests/test-integer_length_ll.c: New file.
8534
8535         New module 'integer_length_ll'.
8536         * lib/integer_length_ll.c: New file.
8537         * modules/integer_length_ll: New file.
8538
8539 2011-10-14  Bruno Haible  <bruno@clisp.org>
8540
8541         Tests for module 'integer_length_l'.
8542         * modules/integer_length_l-tests: New file.
8543         * tests/test-integer_length_l.c: New file.
8544
8545         New module 'integer_length_l'.
8546         * lib/integer_length_l.c: New file.
8547         * modules/integer_length_l: New file.
8548
8549 2011-10-14  Bruno Haible  <bruno@clisp.org>
8550
8551         Tests for module 'integer_length'.
8552         * modules/integer_length-tests: New file.
8553         * tests/test-integer_length.c: New file.
8554
8555         New module 'integer_length'.
8556         * lib/integer_length.h: New file.
8557         * lib/integer_length.c: New file.
8558         * modules/integer_length: New file.
8559
8560 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8561
8562         popen: Fix dependency conditions.
8563         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8564
8565 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8566
8567         perror: Fix autoconf test.
8568         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8569         <stdlib.h> and <string.h>.
8570
8571 2011-10-14  Bruno Haible  <bruno@clisp.org>
8572
8573         ffsl: Optimize on 64-bit platforms.
8574         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8575         unrolling.
8576
8577 2011-10-13  Bruno Haible  <bruno@clisp.org>
8578
8579         ffsl: Optimize on 32-bit platforms.
8580         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8581         use ffs() without a loop.
8582
8583         ffsl, ffsll: Optimize for GCC.
8584         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8585         * lib/ffsl.c (GCC_BUILTIN): New macro.
8586         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8587
8588 2011-10-13  Bruno Haible  <bruno@clisp.org>
8589
8590         ffs, bcopy, memset: Support symbol renaming via config.h.
8591         * lib/ffs.c: Include <config.h>.
8592         * lib/bcopy.c: Likewise.
8593         * lib/memset.c: Likewise.
8594
8595 2011-10-10  Bruno Haible  <bruno@clisp.org>
8596
8597         atanl: Simplify for platforms where 'long double' == 'double'.
8598         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8599         alternative implementation.
8600         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8601         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8602         * modules/atanl (Depends-on): Add atan. Update conditions.
8603
8604 2011-10-10  Bruno Haible  <bruno@clisp.org>
8605
8606         acosl: Simplify for platforms where 'long double' == 'double'.
8607         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8608         alternative implementation.
8609         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8610         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8611         * modules/acosl (Depends-on): Add acos. Update conditions.
8612
8613 2011-10-10  Bruno Haible  <bruno@clisp.org>
8614
8615         asinl: Simplify for platforms where 'long double' == 'double'.
8616         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8617         alternative implementation.
8618         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8619         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8620         * modules/asinl (Depends-on): Add asin. Update conditions.
8621
8622 2011-10-10  Bruno Haible  <bruno@clisp.org>
8623
8624         tanl: Simplify for platforms where 'long double' == 'double'.
8625         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8626         implementation.
8627         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8628         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8629         * modules/tanl (Depends-on): Add tan. Update conditions.
8630         (configure.ac): Don't compile trigl.c if
8631         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8632
8633 2011-10-10  Bruno Haible  <bruno@clisp.org>
8634
8635         cosl: Simplify for platforms where 'long double' == 'double'.
8636         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8637         implementation.
8638         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8639         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8640         * modules/cosl (Depends-on): Add cos. Update conditions.
8641         (configure.ac): Don't compile sincosl.c and trigl.c if
8642         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8643
8644 2011-10-10  Bruno Haible  <bruno@clisp.org>
8645
8646         sinl: Simplify for platforms where 'long double' == 'double'.
8647         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8648         implementation.
8649         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8650         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8651         * modules/sinl (Depends-on): Add sin. Update conditions.
8652         (configure.ac): Don't compile sincosl.c and trigl.c if
8653         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8654
8655 2011-10-10  Bruno Haible  <bruno@clisp.org>
8656
8657         logl: Simplify for platforms where 'long double' == 'double'.
8658         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8659         implementation.
8660         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8661         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8662         * modules/logl (Depends-on): Add log. Update conditions.
8663
8664 2011-10-10  Bruno Haible  <bruno@clisp.org>
8665
8666         expl: Simplify for platforms where 'long double' == 'double'.
8667         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8668         implementation.
8669         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8670         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8671         * modules/expl (Depends-on): Add exp. Update conditions.
8672
8673 2011-10-10  Bruno Haible  <bruno@clisp.org>
8674
8675         sqrtl: Simplify for platforms where 'long double' == 'double'.
8676         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8677         alternative implementation.
8678         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8679         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8680         * modules/sqrtl (Depends-on): Update conditions.
8681
8682 2011-10-10  Bruno Haible  <bruno@clisp.org>
8683
8684         ldexpl: Simplify for platforms where 'long double' == 'double'.
8685         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8686         alternative implementation.
8687         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8688         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8689         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8690
8691 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8692
8693         ffsll: set correct witness
8694         * modules/ffsll (configure.ac): Fix typo.
8695
8696 2011-10-10  Bruno Haible  <bruno@clisp.org>
8697
8698         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8699         * lib/printf-frexpl.c: Include <config.h>.
8700         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8701         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8702         second time.
8703         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8704         gl_LONG_DOUBLE_VS_DOUBLE.
8705         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8706         conditions.
8707
8708 2011-10-10  Bruno Haible  <bruno@clisp.org>
8709
8710         frexpl: Simplify for platforms where 'long double' == 'double'.
8711         * lib/frexpl.c: Include <config.h>.
8712         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8713         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8714         time.
8715         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8716         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8717         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8718         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8719         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8720         conditions.
8721
8722 2011-10-10  Jim Meyering  <meyering@redhat.com>
8723
8724         test-renameat: don't leave behind a temporary file
8725         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8726           ERROR: files left in build directory after distclean:
8727           ./gltests/test-renameat.too
8728           make[1]: *** [distcleancheck] Error 1
8729         Reported by Tom G. Christensen.
8730
8731 2011-10-09  Bruno Haible  <bruno@clisp.org>
8732
8733         rint: Determine RINT_LIBM correctly on AIX 7.
8734         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8735         directly, not only through a function pointer. Also accept an optional
8736         4th argument with extra code.
8737         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8738         rintf() call by gcc when optimizing.
8739
8740         mathfunc.m4: Refactor.
8741         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8742         m4 variable.
8743
8744 2011-10-09  Bruno Haible  <bruno@clisp.org>
8745
8746         rintl: Simplify for platforms where 'long double' == 'double'.
8747         * lib/rintl.c: Include <config.h>.
8748         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8749         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8750         time.
8751         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8752         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8753         * modules/rintl (Depends-on): Add rint. Update conditions.
8754
8755 2011-10-09  Bruno Haible  <bruno@clisp.org>
8756
8757         roundl: Simplify for platforms where 'long double' == 'double'.
8758         * lib/roundl.c: Include <config.h>.
8759         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8760         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8761         time.
8762         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8763         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8764         * modules/roundl (Depends-on): Add round. Update conditions.
8765
8766 2011-10-09  Bruno Haible  <bruno@clisp.org>
8767
8768         truncl: Simplify for platforms where 'long double' == 'double'.
8769         * lib/truncl.c: Include <config.h>.
8770         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8771         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8772         time.
8773         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8774         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8775         * modules/truncl (Depends-on): Add trunc. Update conditions.
8776
8777 2011-10-09  Bruno Haible  <bruno@clisp.org>
8778
8779         ceill: Simplify for platforms where 'long double' == 'double'.
8780         * lib/ceill.c: Include <config.h>.
8781         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8782         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8783         time.
8784         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8785         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8786         * modules/ceill (Depends-on): Add ceil. Update conditions.
8787
8788 2011-10-09  Bruno Haible  <bruno@clisp.org>
8789
8790         floorl: Simplify for platforms where 'long double' == 'double'.
8791         * lib/floorl.c: Include <config.h>.
8792         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8793         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8794         time.
8795         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8796         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8797         * modules/floorl (Depends-on): Add floor. Update conditions.
8798
8799 2011-10-09  Bruno Haible  <bruno@clisp.org>
8800
8801         rint: Fix ordering constraints.
8802         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8803         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8804         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8805
8806 2011-10-09  Bruno Haible  <bruno@clisp.org>
8807
8808         copysignl: Simplify for platforms where 'long double' == 'double'.
8809         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8810         alternative.
8811         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8812         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8813         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8814
8815 2011-10-09  Bruno Haible  <bruno@clisp.org>
8816
8817         Tests for module 'rintl'.
8818         * modules/rintl-tests: New file.
8819         * tests/test-rintl.c: New file.
8820
8821         New module 'rintl'.
8822         * lib/math.in.h (rintl): New declaration.
8823         * lib/rintl.c: New file.
8824         * m4/rintl.m4: New file.
8825         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
8826         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
8827         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
8828         * modules/rintl: New file.
8829         * tests/test-math-c++.cc: Check the declaration of rintl.
8830         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8831         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
8832         * doc/posix-functions/rintl.texi: Mention the new module.
8833
8834 2011-10-09  Bruno Haible  <bruno@clisp.org>
8835
8836         Tests for module 'rintf'.
8837         * modules/rintf-tests: New file.
8838         * tests/test-rintf.c: New file.
8839
8840         New module 'rintf'.
8841         * lib/math.in.h (rintf): New declaration.
8842         * lib/rintf.c: New file.
8843         * m4/rintf.m4: New file.
8844         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
8845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
8846         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
8847         * modules/rintf: New file.
8848         * tests/test-math-c++.cc: Check the declaration of rintf.
8849         * doc/posix-functions/rintf.texi: Mention the new module.
8850
8851 2011-10-09  Bruno Haible  <bruno@clisp.org>
8852
8853         rint: Support for MSVC.
8854         * lib/math.in.h (rint): New declaration.
8855         * lib/rint.c: New file.
8856         * m4/rint.m4: New file.
8857         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
8858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
8859         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
8860         * modules/rint (Description): Fix.
8861         (Files): Add lib/rint.c, m4/rint.m4.
8862         (Depends-on): Add math.
8863         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
8864         gl_MATH_MODULE_INDICATOR.
8865         * tests/test-math-c++.cc: Check the declaration of rint.
8866         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8867         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
8868         * doc/posix-functions/rint.texi: Mention the replacement provided by
8869         the module.
8870
8871         rint tests: More tests.
8872         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
8873         minus-zero.h, infinity.h, nan.h.
8874         (main): Skip the test if the current rounding mode is not standard. Add
8875         tests for negative numbers, minus zero, infinity, NaN.
8876         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
8877         tests/nan.h.
8878         (Depends-on): Add isnand-nolibm.
8879
8880 2011-10-09  Bruno Haible  <bruno@clisp.org>
8881
8882         Tests for module 'copysignl'.
8883         * modules/copysignl-tests: New file.
8884         * tests/test-copysignl.c: New file.
8885
8886         New module 'copysignl'.
8887         * lib/math.in.h (copysignl): New declaration.
8888         * lib/copysignl.c: New file.
8889         * m4/copysignl.m4: New file.
8890         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
8891         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
8892         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
8893         HAVE_COPYSIGNL.
8894         * modules/copysignl: New file.
8895         * tests/test-math-c++.cc: Check the declaration of copysignl.
8896         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
8897         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
8898         * doc/posix-functions/copysignl.texi: Mention the new module.
8899
8900 2011-10-09  Bruno Haible  <bruno@clisp.org>
8901
8902         Tests for module 'copysignf'.
8903         * modules/copysignf-tests: New file.
8904         * tests/test-copysignf.c: New file.
8905
8906         New module 'copysignf'.
8907         * lib/math.in.h (copysignf): New declaration.
8908         * lib/copysignf.c: New file.
8909         * m4/copysignf.m4: New file.
8910         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
8911         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
8912         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
8913         HAVE_COPYSIGNF.
8914         * modules/copysignf: New file.
8915         * tests/test-math-c++.cc: Check the declaration of copysignf.
8916         * doc/posix-functions/copysignf.texi: Mention the new module.
8917
8918 2011-10-09  Bruno Haible  <bruno@clisp.org>
8919
8920         Ensure that HAVE_* variables are set to 1 before they are set to 0.
8921         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
8922         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
8923         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
8925         gl_SIGNAL_H_DEFAULTS.
8926
8927 2011-10-09  Bruno Haible  <bruno@clisp.org>
8928
8929         poll: Make macro safer.
8930         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
8931         ac_cv_header_poll_h is not set.
8932
8933 2011-10-09  Bruno Haible  <bruno@clisp.org>
8934
8935         copysign: Provide replacement.
8936         * lib/math.in.h (copysign): New declaration.
8937         * lib/copysign.c: New file.
8938         * m4/copysign.m4: New file.
8939         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
8940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
8941         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
8942         HAVE_COPYSIGN.
8943         * modules/copysign (Description): Clarify.
8944         (Files): Add lib/copysign.c, m4/copysign.m4.
8945         (Depends-on): Add math, signbit.
8946         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
8947         gl_MATH_MODULE_INDICATOR.
8948         * tests/test-math-c++.cc: Check the declaration of copysign.
8949         * doc/posix-functions/copysign.texi: Mention the effects of the module
8950         on Minix and MSVC.
8951
8952 2011-10-09  Bruno Haible  <bruno@clisp.org>
8953
8954         isinf: Ensure macro on AIX 5.1.
8955         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8956         macro.
8957         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8958
8959 2011-10-09  Bruno Haible  <bruno@clisp.org>
8960
8961         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8962         * modules/snprintf-posix-tests (configure.ac): Require
8963         gl_LONG_DOUBLE_VS_DOUBLE.
8964         * modules/sprintf-posix-tests (configure.ac): Likewise.
8965         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8966         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8967         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8968         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8969         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8970         tests on platforms where 'long double' is the same as 'double'.
8971         * tests/test-sprintf-posix.h (test_function): Likewise.
8972         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8973         * tests/test-vasprintf-posix.c (test_function): Likewise.
8974
8975         *printf: Fix for platforms where 'long double' == 'double'.
8976         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8977         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8978         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8979         * modules/fprintf-posix (Files): Likewise.
8980         * modules/obstack-printf-posix (Files): Likewise.
8981         * modules/snprintf-posix (Files): Likewise.
8982         * modules/sprintf-posix (Files): Likewise.
8983         * modules/vasnprintf (Files): Likewise.
8984         * modules/vasnprintf-posix (Files): Likewise.
8985         * modules/vasprintf-posix (Files): Likewise.
8986         * modules/vdprintf-posix (Files): Likewise.
8987         * modules/vfprintf-posix (Files): Likewise.
8988         * modules/vsnprintf-posix (Files): Likewise.
8989         * modules/vsprintf-posix (Files): Likewise.
8990         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8991         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8992         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8993         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8994         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8995         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8996         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8997
8998         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8999         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9000         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9001         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9002         'long double'.
9003         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9004
9005         isinf: Fix for platforms where 'long double' == 'double'.
9006         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9007         Don't blindly assume 80-bit 'long double'.
9008
9009         isfinite: Fix for platforms where 'long double' == 'double'.
9010         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9011         Don't blindly assume 80-bit 'long double'.
9012
9013         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9014         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9015         * modules/isfinite-tests (configure.ac): Require
9016         gl_LONG_DOUBLE_VS_DOUBLE.
9017         * modules/isinf-tests (configure.ac): Likewise.
9018         * modules/isnan-tests (configure.ac): Likewise.
9019         * modules/isnanl-tests (configure.ac): Likewise.
9020         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9021         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9022         tests on platforms where 'long double' is the same as 'double'.
9023         * tests/test-isinf.c (test_isinfl): Likewise.
9024         * tests/test-isnan.c (test_long_double): Likewise.
9025         * tests/test-isnanl.h (main): Likewise.
9026
9027 2011-10-08  Bruno Haible  <bruno@clisp.org>
9028
9029         Tests for module 'tanhf'.
9030         * modules/tanhf-tests: New file.
9031         * tests/test-tanhf.c: New file.
9032
9033         New module 'tanhf'.
9034         * lib/math.in.h (tanhf): New declaration.
9035         * lib/tanhf.c: New file.
9036         * m4/tanhf.m4: New file.
9037         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9039         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9040         * modules/tanhf: New file.
9041         * tests/test-math-c++.cc: Check the declaration of tanhf.
9042         * doc/posix-functions/tanhf.texi: Mention the new module.
9043
9044         tanh: Use a .m4 file.
9045         * m4/tanh.m4: New file.
9046         * modules/tanh (Files): Add it.
9047         (configure.ac): Just invoke gl_FUNC_TANH.
9048
9049 2011-10-08  Bruno Haible  <bruno@clisp.org>
9050
9051         Tests for module 'coshf'.
9052         * modules/coshf-tests: New file.
9053         * tests/test-coshf.c: New file.
9054
9055         New module 'coshf'.
9056         * lib/math.in.h (coshf): New declaration.
9057         * lib/coshf.c: New file.
9058         * m4/coshf.m4: New file.
9059         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9061         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9062         * modules/coshf: New file.
9063         * tests/test-math-c++.cc: Check the declaration of coshf.
9064         * doc/posix-functions/coshf.texi: Mention the new module.
9065
9066         cosh: Use a .m4 file.
9067         * m4/cosh.m4: New file.
9068         * modules/cosh (Files): Add it.
9069         (configure.ac): Just invoke gl_FUNC_COSH.
9070
9071 2011-10-08  Bruno Haible  <bruno@clisp.org>
9072
9073         Tests for module 'sinhf'.
9074         * modules/sinhf-tests: New file.
9075         * tests/test-sinhf.c: New file.
9076
9077         New module 'sinhf'.
9078         * lib/math.in.h (sinhf): New declaration.
9079         * lib/sinhf.c: New file.
9080         * m4/sinhf.m4: New file.
9081         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9083         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9084         * modules/sinhf: New file.
9085         * tests/test-math-c++.cc: Check the declaration of sinhf.
9086         * doc/posix-functions/sinhf.texi: Mention the new module.
9087
9088         sinh: Use a .m4 file.
9089         * m4/sinh.m4: New file.
9090         * modules/sinh (Files): Add it.
9091         (configure.ac): Just invoke gl_FUNC_SINH.
9092
9093 2011-10-08  Bruno Haible  <bruno@clisp.org>
9094
9095         Tests for module 'atan2f'.
9096         * modules/atan2f-tests: New file.
9097         * tests/test-atan2f.c: New file.
9098
9099         New module 'atan2f'.
9100         * lib/math.in.h (atan2f): New declaration.
9101         * lib/atan2f.c: New file.
9102         * m4/atan2f.m4: New file.
9103         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9105         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9106         * modules/atan2f: New file.
9107         * tests/test-math-c++.cc: Check the declaration of atan2f.
9108         * doc/posix-functions/atan2f.texi: Mention the new module.
9109
9110         atan2: Use a .m4 file.
9111         * m4/atan2.m4: New file.
9112         * modules/atan2 (Files): Add it.
9113         (configure.ac): Just invoke gl_FUNC_ATAN2.
9114
9115 2011-10-08  Bruno Haible  <bruno@clisp.org>
9116
9117         Tests for module 'atanf'.
9118         * modules/atanf-tests: New file.
9119         * tests/test-atanf.c: New file.
9120
9121         New module 'atanf'.
9122         * lib/math.in.h (atanf): New declaration.
9123         * lib/atanf.c: New file.
9124         * m4/atanf.m4: New file.
9125         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9127         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9128         * modules/atanf: New file.
9129         * tests/test-math-c++.cc: Check the declaration of atanf.
9130         * doc/posix-functions/atanf.texi: Mention the new module.
9131
9132         atan: Use a .m4 file.
9133         * m4/atan.m4: New file.
9134         * modules/atan (Files): Add it.
9135         (configure.ac): Just invoke gl_FUNC_ATAN.
9136
9137 2011-10-08  Bruno Haible  <bruno@clisp.org>
9138
9139         Tests for module 'acosf'.
9140         * modules/acosf-tests: New file.
9141         * tests/test-acosf.c: New file.
9142
9143         New module 'acosf'.
9144         * lib/math.in.h (acosf): New declaration.
9145         * lib/acosf.c: New file.
9146         * m4/acosf.m4: New file.
9147         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9148         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9149         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9150         * modules/acosf: New file.
9151         * tests/test-math-c++.cc: Check the declaration of acosf.
9152         * doc/posix-functions/acosf.texi: Mention the new module.
9153
9154         acos: Use a .m4 file.
9155         * m4/acos.m4: New file.
9156         * modules/acos (Files): Add it.
9157         (configure.ac): Just invoke gl_FUNC_ACOS.
9158
9159 2011-10-08  Bruno Haible  <bruno@clisp.org>
9160
9161         Tests for module 'asinf'.
9162         * modules/asinf-tests: New file.
9163         * tests/test-asinf.c: New file.
9164
9165         New module 'asinf'.
9166         * lib/math.in.h (asinf): New declaration.
9167         * lib/asinf.c: New file.
9168         * m4/asinf.m4: New file.
9169         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9170         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9171         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9172         * modules/asinf: New file.
9173         * tests/test-math-c++.cc: Check the declaration of asinf.
9174         * doc/posix-functions/asinf.texi: Mention the new module.
9175
9176         asin: Use a .m4 file.
9177         * m4/asin.m4: New file.
9178         * modules/asin (Files): Add it.
9179         (configure.ac): Just invoke gl_FUNC_ASIN.
9180
9181 2011-10-08  Bruno Haible  <bruno@clisp.org>
9182
9183         Tests for module 'tanf'.
9184         * modules/tanf-tests: New file.
9185         * tests/test-tanf.c: New file.
9186
9187         New module 'tanf'.
9188         * lib/math.in.h (tanf): New declaration.
9189         * lib/tanf.c: New file.
9190         * m4/tanf.m4: New file.
9191         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9193         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9194         * modules/tanf: New file.
9195         * tests/test-math-c++.cc: Check the declaration of tanf.
9196         * doc/posix-functions/tanf.texi: Mention the new module.
9197
9198         tan: Use a .m4 file.
9199         * m4/tan.m4: New file.
9200         * modules/tan (Files): Add it.
9201         (configure.ac): Just invoke gl_FUNC_TAN.
9202
9203 2011-10-08  Bruno Haible  <bruno@clisp.org>
9204
9205         Tests for module 'cosf'.
9206         * modules/cosf-tests: New file.
9207         * tests/test-cosf.c: New file.
9208
9209         New module 'cosf'.
9210         * lib/math.in.h (cosf): New declaration.
9211         * lib/cosf.c: New file.
9212         * m4/cosf.m4: New file.
9213         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9215         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9216         * modules/cosf: New file.
9217         * tests/test-math-c++.cc: Check the declaration of cosf.
9218         * doc/posix-functions/cosf.texi: Mention the new module.
9219
9220         cos: Use a .m4 file.
9221         * m4/cos.m4: New file.
9222         * modules/cos (Files): Add it.
9223         (configure.ac): Just invoke gl_FUNC_COS.
9224
9225 2011-10-08  Bruno Haible  <bruno@clisp.org>
9226
9227         Tests for module 'sinf'.
9228         * modules/sinf-tests: New file.
9229         * tests/test-sinf.c: New file.
9230
9231         New module 'sinf'.
9232         * lib/math.in.h (sinf): New declaration.
9233         * lib/sinf.c: New file.
9234         * m4/sinf.m4: New file.
9235         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9237         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9238         * modules/sinf: New file.
9239         * tests/test-math-c++.cc: Check the declaration of sinf.
9240         * doc/posix-functions/sinf.texi: Mention the new module.
9241
9242         sin: Use a .m4 file.
9243         * m4/sin.m4: New file.
9244         * modules/sin (Files): Add it.
9245         (configure.ac): Just invoke gl_FUNC_SIN.
9246
9247 2011-10-08  Bruno Haible  <bruno@clisp.org>
9248
9249         Tests for module 'powf'.
9250         * modules/powf-tests: New file.
9251         * tests/test-powf.c: New file.
9252
9253         New module 'powf'.
9254         * lib/math.in.h (powf): New declaration.
9255         * lib/powf.c: New file.
9256         * m4/powf.m4: New file.
9257         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9259         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9260         * modules/powf: New file.
9261         * tests/test-math-c++.cc: Check the declaration of powf.
9262         * doc/posix-functions/powf.texi: Mention the new module.
9263
9264         pow: Use a .m4 file.
9265         * m4/pow.m4: New file.
9266         * modules/pow (Files): Add it.
9267         (configure.ac): Just invoke gl_FUNC_POW.
9268
9269 2011-10-08  Bruno Haible  <bruno@clisp.org>
9270
9271         Tests for module 'log10f'.
9272         * modules/log10f-tests: New file.
9273         * tests/test-log10f.c: New file.
9274
9275         New module 'log10f'.
9276         * lib/math.in.h (log10f): New declaration.
9277         * lib/log10f.c: New file.
9278         * m4/log10f.m4: New file.
9279         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9281         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9282         * modules/log10f: New file.
9283         * tests/test-math-c++.cc: Check the declaration of log10f.
9284         * doc/posix-functions/log10f.texi: Mention the new module.
9285
9286         log10: Use a .m4 file.
9287         * m4/log10.m4: New file.
9288         * modules/log10 (Files): Add it.
9289         (configure.ac): Just invoke gl_FUNC_LOG10.
9290
9291 2011-10-08  Bruno Haible  <bruno@clisp.org>
9292
9293         Tests for module 'logf'.
9294         * modules/logf-tests: New file.
9295         * tests/test-logf.c: New file.
9296
9297         New module 'logf'.
9298         * lib/math.in.h (logf): New declaration.
9299         * lib/logf.c: New file.
9300         * m4/logf.m4: New file.
9301         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9302         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9303         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9304         * modules/logf: New file.
9305         * tests/test-math-c++.cc: Check the declaration of logf.
9306         * doc/posix-functions/logf.texi: Mention the new module.
9307
9308         log: Use a .m4 file.
9309         * m4/log.m4: New file.
9310         * modules/log (Files): Add it.
9311         (configure.ac): Just invoke gl_FUNC_LOG.
9312
9313 2011-10-08  Bruno Haible  <bruno@clisp.org>
9314
9315         Tests for module 'expf'.
9316         * modules/expf-tests: New file.
9317         * tests/test-expf.c: New file.
9318
9319         New module 'expf'.
9320         * lib/math.in.h (expf): New declaration.
9321         * lib/expf.c: New file.
9322         * m4/expf.m4: New file.
9323         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9324         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9325         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9326         * modules/expf: New file.
9327         * tests/test-math-c++.cc: Check the declaration of expf.
9328         * doc/posix-functions/expf.texi: Mention the new module.
9329
9330         exp: Use a .m4 file.
9331         * m4/exp.m4: New file.
9332         * modules/exp (Files): Add it.
9333         (configure.ac): Just invoke gl_FUNC_EXP.
9334
9335 2011-10-08  Bruno Haible  <bruno@clisp.org>
9336
9337         Tests for module 'sqrtf'.
9338         * modules/sqrtf-tests: New file.
9339         * tests/test-sqrtf.c: New file.
9340
9341         New module 'sqrtf'.
9342         * lib/math.in.h (sqrtf): New declaration.
9343         * lib/sqrtf.c: New file.
9344         * m4/sqrtf.m4: New file.
9345         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9346         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9347         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9348         * modules/sqrtf: New file.
9349         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9350         * doc/posix-functions/sqrtf.texi: Mention the new module.
9351
9352 2011-10-08  Bruno Haible  <bruno@clisp.org>
9353
9354         Tests: Avoid link failures w.r.t. libintl.
9355         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9356         $(LIBINTL).
9357         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9358         $(LIBINTL).
9359         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9360         against $(LIBINTL).
9361         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9362         $(LIBINTL).
9363         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9364         $(LIBINTL).
9365         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9366
9367 2011-10-08  Bruno Haible  <bruno@clisp.org>
9368
9369         pow tests: Defeat compiler optimizations.
9370         * tests/test-pow.c (main): Assign arguments to x and y before use.
9371
9372 2011-10-08  Bruno Haible  <bruno@clisp.org>
9373
9374         gnulib-tool: Improve last commit.
9375         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9376         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9377         ignore dependencies that are not among the modules list.
9378
9379 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9380
9381         gnulib-tool: don't follow dependencies to avoided modules
9382         This fixes a bug that is related to the previous one.
9383         * gnulib-tool (func_modules_transitive_closure)
9384         (func_emit_autoconf_snippets):
9385         Check whether a dependency is acceptable before using it.
9386         (--extract-dependencies): Report an error if --avoid is also used,
9387         since this combination of options is not yet supported.
9388
9389         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9390         Problem reported by Peter Dyballa in
9391         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9392         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9393         when echoing "$condition".
9394
9395 2011-10-07  Bruno Haible  <bruno@clisp.org>
9396
9397         Fix documentation about math functions on MacOS X.
9398         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9399         MacOS X 10.5.
9400         * doc/posix-functions/fdim.texi: Likewise.
9401         * doc/posix-functions/feclearexcept.texi: Likewise.
9402         * doc/posix-functions/fegetenv.texi: Likewise.
9403         * doc/posix-functions/fegetround.texi: Likewise.
9404         * doc/posix-functions/feholdexcept.texi: Likewise.
9405         * doc/posix-functions/feraiseexcept.texi: Likewise.
9406         * doc/posix-functions/fesetenv.texi: Likewise.
9407         * doc/posix-functions/fesetround.texi: Likewise.
9408         * doc/posix-functions/fetestexcept.texi: Likewise.
9409         * doc/posix-functions/feupdateenv.texi: Likewise.
9410         * doc/posix-functions/fmax.texi: Likewise.
9411         * doc/posix-functions/fmin.texi: Likewise.
9412         * doc/posix-functions/log2.texi: Likewise.
9413         * doc/posix-functions/modff.texi: Likewise.
9414         * doc/posix-functions/nan.texi: Likewise.
9415         * doc/posix-functions/nanf.texi: Likewise.
9416         * doc/posix-functions/nextafterf.texi: Likewise.
9417         * doc/posix-functions/remquo.texi: Likewise.
9418
9419 2011-10-07  Bruno Haible  <bruno@clisp.org>
9420
9421         modff: Drop assumption about library that defines modff.
9422         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9423         AC_CHECK_FUNCS.
9424         * modules/modff (Files): Add m4/mathfunc.m4.
9425
9426 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9427
9428         raise tests: Avoid a GCC warning.
9429         * tests/test-raise.c (handler): Use _Noreturn.
9430
9431 2011-10-07  Bruno Haible  <bruno@clisp.org>
9432
9433         Tests for module 'ldexpf'.
9434         * modules/ldexpf-tests: New file.
9435         * tests/test-ldexpf.c: New file.
9436
9437         New module 'ldexpf'.
9438         * lib/math.in.h (ldexpf): New declaration.
9439         * lib/ldexpf.c: New file.
9440         * m4/ldexpf.m4: New file.
9441         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9443         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9444         * modules/ldexpf: New file.
9445         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9446         * doc/posix-functions/ldexpf.texi: Mention the new module.
9447
9448 2011-10-06  Bruno Haible  <bruno@clisp.org>
9449
9450         frexpf: Work around problems on IRIX and mingw.
9451         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9453         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9454         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9455         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9456         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9457         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9458
9459 2011-10-06  Bruno Haible  <bruno@clisp.org>
9460
9461         fabsf: Drop assumption about library that defines fabsf.
9462         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9463         AC_CHECK_FUNCS.
9464         * modules/fabsf (Files): Add m4/mathfunc.m4.
9465
9466 2011-10-06  Bruno Haible  <bruno@clisp.org>
9467
9468         frexpf: Drop assumption about library that defines frexpf.
9469         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9470         'int *', 'float *', 'long double *', 'float', 'long double'.
9471         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9472         AC_CHECK_FUNCS.
9473         * modules/frexpf (Files): Add m4/mathfunc.m4.
9474
9475         Tests for module 'frexpf'.
9476         * modules/frexpf-tests: New file.
9477         * tests/test-frexpf.c: New file.
9478
9479         New module 'frexpf'.
9480         * lib/math.in.h (frexpf): New declaration.
9481         * lib/frexpf.c: New file.
9482         * m4/frexpf.m4: New file.
9483         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9485         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9486         * modules/frexpf: New file.
9487         * tests/test-math-c++.cc: Check the declaration of frexpf.
9488         * doc/posix-functions/frexpf.texi: Mention the new module.
9489
9490 2011-10-06  Bruno Haible  <bruno@clisp.org>
9491
9492         math: Sort function declarations of math.in.h.
9493         * lib/math.in.h (frexp, logb): Move declarations.
9494
9495 2011-10-05  Bruno Haible  <bruno@clisp.org>
9496
9497         Tests for module 'modff'.
9498         * modules/modff-tests: New file.
9499         * tests/test-modff.c: New file.
9500
9501         New module 'modff'.
9502         * lib/math.in.h (modff): New declaration.
9503         * lib/modff.c: New file.
9504         * m4/modff.m4: New file.
9505         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9507         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9508         * modules/modff: New file.
9509         * tests/test-math-c++.cc: Check the declaration of modff.
9510         * doc/posix-functions/modff.texi: Mention the new module.
9511
9512         modf tests: Make test sharper.
9513         * tests/test-modf.c (main): Strengthen upper bound.
9514
9515         modf: Use a .m4 file.
9516         * m4/modf.m4: New file.
9517         * modules/modf (Files): Add it.
9518         (configure.ac): Just invoke gl_FUNC_MODF.
9519
9520 2011-10-05  Bruno Haible  <bruno@clisp.org>
9521
9522         Tests for module 'fmodf'.
9523         * modules/fmodf-tests: New file.
9524         * tests/test-fmodf.c: New file.
9525
9526         New module 'fmodf'.
9527         * lib/math.in.h (fmodf): New declaration.
9528         * lib/fmodf.c: New file.
9529         * m4/fmodf.m4: New file.
9530         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9532         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9533         * modules/fmodf: New file.
9534         * tests/test-math-c++.cc: Check the declaration of fmodf.
9535         * doc/posix-functions/fmodf.texi: Mention the new module.
9536
9537         fmod: Use a .m4 file.
9538         * m4/fmod.m4: New file.
9539         * modules/fmod (Files): Add it.
9540         (configure.ac): Just invoke gl_FUNC_FMOD.
9541
9542 2011-10-05  Bruno Haible  <bruno@clisp.org>
9543
9544         Tests for module 'fabsf'.
9545         * modules/fabsf-tests: New file.
9546         * tests/test-fabsf.c: New file.
9547
9548         New module 'fabsf'.
9549         * lib/math.in.h (fabsf): New declaration.
9550         * lib/fabsf.c: New file.
9551         * m4/fabsf.m4: New file.
9552         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9553         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9554         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9555         * modules/fabsf: New file.
9556         * tests/test-math-c++.cc: Check the declaration of fabsf.
9557         * doc/posix-functions/fabsf.texi: Mention the new module.
9558
9559         fabs: Use a .m4 file.
9560         * m4/fabs.m4: New file.
9561         * modules/fabs (Files): Add it.
9562         (configure.ac): Just invoke gl_FUNC_FABS.
9563
9564 2011-10-05  Jim Meyering  <meyering@redhat.com>
9565
9566         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9567         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9568         ls -lL regression introduced in coreutils-8.12, it does so at the
9569         cost of an additional stat call in the common case.  Besides, now
9570         that the kernel change that prompted commit 95f7c57f has been reverted
9571         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9572         we have no use for commit 95f7c57f, "file-has-acl: use
9573         acl_extended_file_nofollow if available".
9574
9575 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9576
9577         file-has-acl: revert unintended change in behavior of ls -L
9578         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9579         derived from...
9580         (file_has_acl): ...code here.  Call it.
9581         This problem was introduced with 2011-07-22 commit 95f7c57f,
9582         "file-has-acl: use acl_extended_file_nofollow if available".
9583         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9584
9585 2011-10-03  Bruno Haible  <bruno@clisp.org>
9586
9587         poll: Avoid link errors on MSVC.
9588         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9589         * modules/poll (Depends-on): Add sockets.
9590         (Link): New section.
9591         * NEWS: Mention the change.
9592         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9593         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9594         $(LIB_POLL) instead of $(LIBSOCKET).
9595
9596 2011-10-03  Bruno Haible  <bruno@clisp.org>
9597
9598         sys_select tests: Fix link error on MSVC 9.
9599         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9600         with $(LIB_SELECT) instead of $(LIBSOCKET).
9601
9602 2011-10-03  Bruno Haible  <bruno@clisp.org>
9603
9604         sys_select: Fix compilation error on mingw.
9605         * lib/sys_select.in.h: On native Windows, include <io.h>.
9606
9607 2011-10-03  Bruno Haible  <bruno@clisp.org>
9608
9609         wmemset: Support for MSVC.
9610         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9611         whether wmemset() exists.
9612
9613 2011-10-03  Bruno Haible  <bruno@clisp.org>
9614
9615         wmemmove: Support for MSVC.
9616         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9617         whether wmemmove() exists.
9618
9619 2011-10-03  Bruno Haible  <bruno@clisp.org>
9620
9621         wmemcpy: Support for MSVC.
9622         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9623         whether wmemcpy() exists.
9624
9625 2011-10-03  Bruno Haible  <bruno@clisp.org>
9626
9627         wmemcmp: Support for MSVC.
9628         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9629         whether wmemcmp() exists.
9630
9631 2011-10-03  Bruno Haible  <bruno@clisp.org>
9632
9633         wmemchr: Support for MSVC.
9634         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9635         whether wmemchr() exists.
9636
9637 2011-10-03  Bruno Haible  <bruno@clisp.org>
9638
9639         glthread/*, strsignal: Support for MSVC.
9640         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9641         including <winsock.h> on MSVC 9.
9642         * lib/glthread/lock.h: Likewise.
9643         * lib/glthread/thread.h: Likewise.
9644         * lib/glthread/tls.h: Likewise.
9645         * lib/glthread/yield.h: Likewise.
9646         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9647         if HAVE_UNISTD_H is false.
9648         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9649
9650 2011-10-03  Bruno Haible  <bruno@clisp.org>
9651
9652         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9653         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9654         Set to 100000.
9655
9656 2011-10-03  Bruno Haible  <bruno@clisp.org>
9657
9658         acl: Fix specification.
9659         * lib/file-has-acl.c (file_has_acl): Fix specification.
9660
9661 2011-10-03  Bruno Haible  <bruno@clisp.org>
9662
9663         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9664         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9665         (compute_curr_prefix, shared_library_fullname,
9666         find_shared_library_fullname, get_shared_library_fullname, relocate):
9667         Use it together with PIC && INSTALLDIR.
9668         Reported by <jojelino@gmail.com>
9669         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9670
9671 2011-10-01  Jim Meyering  <meyering@redhat.com>
9672
9673         maint.mk: adjust a release-related rule not to require use of gzip
9674         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9675         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9676         projects that build only .tar.xz files.  Also fix an erroneous test.
9677
9678         test-linkat: don't leave behind a temporary file
9679         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9680         Otherwise, coreutils' "make distcheck" would fail with this:
9681           Only in /c/cu/tests/torture/coreutils/test/\
9682             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9683           make[2]: *** [my-distcheck] Error 1
9684
9685         float, math: add omitted file
9686         * lib/itold.c: Add file, required for yesterday's float change.
9687
9688 2011-10-01  Bruno Haible  <bruno@clisp.org>
9689
9690         isinf: Fix for OpenBSD/x86.
9691         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9692         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9693         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9694
9695 2011-10-01  Bruno Haible  <bruno@clisp.org>
9696
9697         isfinite: Fix syntax error in configure test.
9698         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9699
9700         isfinite: Fix typo.
9701         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9702         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9703
9704 2011-10-01  Bruno Haible  <bruno@clisp.org>
9705
9706         nonblocking tests: Fix test failure on Linux/IA-64.
9707         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9708         Set to 270000.
9709
9710 2011-10-01  Bruno Haible  <bruno@clisp.org>
9711
9712         mkfifoat tests: Fix a test failure on mingw.
9713         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9714         with error ENOSYS.
9715
9716 2011-09-30  Bruno Haible  <bruno@clisp.org>
9717
9718         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9719         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9720         'long double'. Set REPLACE_ITOLD.
9721         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9722         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9723         * lib/itold.c: New file.
9724         * modules/float (Files): Add lib/itold.c.
9725         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9726         (Makefile.am): Substitute REPLACE_ITOLD.
9727         * modules/math (Depends-on): Add float.
9728         (Makefile.am): Substitute REPLACE_ITOLD.
9729         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9730         * doc/posix-headers/math.texi: Likewise.
9731         * doc/posix-functions/logl.texi: Likewise.
9732
9733 2011-09-30  Bruno Haible  <bruno@clisp.org>
9734
9735         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9736         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9737         Set to 140000.
9738
9739 2011-09-30  Bruno Haible  <bruno@clisp.org>
9740
9741         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9742         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9743         invocation, say "right after AC_PROG_CC_STDC", not "right after
9744         AC_PROG_CC".
9745         Reported by Gary V. Vaughan <gary@gnu.org>.
9746
9747 2011-09-30  Bruno Haible  <bruno@clisp.org>
9748
9749         Centralize C99 requirement.
9750         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9751         * modules/stdarg (configure.ac-early): Invoke it instead of
9752         AC_PROG_CC_STDC.
9753         Reported by Gary V. Vaughan and Paul Eggert.
9754
9755 2011-09-29  Bruno Haible  <bruno@clisp.org>
9756
9757         float: Fix LDBL_MAX value on Linux/PowerPC.
9758         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9759         on Linux/PowerPC.
9760         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9761         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9762         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9763         platform.
9764         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9765
9766 2011-09-29  Bruno Haible  <bruno@clisp.org>
9767
9768         doc: Improve doc about gl_EARLY.
9769         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9770         AC_PROG_CC_STDC invocation.
9771         Reported by Gary V. Vaughan <gary@gnu.org>.
9772
9773 2011-09-28  Bruno Haible  <bruno@clisp.org>
9774
9775         fgetc, fputc, fread, fwrite tests: Fix link error.
9776         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9777         on non-MSVC platforms.
9778         * tests/test-fputc.c (main): Likewise.
9779         * tests/test-fread.c (main): Likewise.
9780         * tests/test-fwrite.c (main): Likewise.
9781         Reported by Jim Meyering.
9782
9783 2011-09-27  Bruno Haible  <bruno@clisp.org>
9784
9785         fputc, fwrite tests: Avoid test failure on MSVC.
9786         * tests/test-fgetc.c: Include msvc-inval.h.
9787         (main): Invoke gl_msvc_inval_ensure_handler.
9788         * tests/test-fputc.c: Include msvc-inval.h.
9789         (main): Invoke gl_msvc_inval_ensure_handler.
9790         * tests/test-fread.c: Include msvc-inval.h.
9791         (main): Invoke gl_msvc_inval_ensure_handler.
9792         * tests/test-fwrite.c: Include msvc-inval.h.
9793         (main): Invoke gl_msvc_inval_ensure_handler.
9794         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9795         * modules/fputc-tests (Depends-on): Likewise.
9796         * modules/fread-tests (Depends-on): Likewise.
9797         * modules/fwrite-tests (Depends-on): Likewise.
9798
9799 2011-09-27  Bruno Haible  <bruno@clisp.org>
9800
9801         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9802         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9803         (raise): Remove older, duplicated declaration.
9804         (_gl_raise_SIGPIPE): New declaration.
9805         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9806         (rpl_raise): Remove function.
9807         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9808         a gnulib-defined SIGPIPE here.
9809         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9810         'sigprocmask' has detected missing signal-blocking and the module
9811         'sigpipe' is enabled.
9812         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9813
9814 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9815
9816         base64-tests: avoid memory leak
9817         * tests/test-base64.c (main): Plug memory leak.
9818
9819         base32: new module
9820         * modules/base32: New module.
9821         * lib/base32.c: New file.
9822         * lib/base32.h: Likewise.
9823         * m4/base32.m4: Likewise.
9824         * modules/base32-tests: New test.
9825         * tests/test-base32.c: Likewise.
9826         * MODULES.html.sh (Misc): Mention it.
9827
9828 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
9829
9830         gnulib: use more-standard license notice wording
9831         * gnulib-tool (func_emit_copyright_notice): When emitting a
9832         license notice into a file, use the standard wording as suggested
9833         by the current information for GNU maintainers, except say "file"
9834         rather than "program".  The new wording gives a license version
9835         number, which addresses an issue raised by Glenn Morris in
9836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
9837         * m4/onceonly.m4: Use that same wording here, too.
9838
9839         dup2: minor simplification
9840         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
9841         as lib/dup2.c no longer uses 'inline'.
9842
9843 2011-09-25  Bruno Haible  <bruno@clisp.org>
9844
9845         strings: Fix compilation error on MSVC.
9846         * lib/strings.in.h: Include <stddef.h> for size_t.
9847
9848 2011-09-25  Bruno Haible  <bruno@clisp.org>
9849
9850         fflush et al.: Document limitation on MSVC.
9851         * doc/posix-functions/fflush.texi: Document possible crash in handling
9852         mode other than DEFAULT_HANDLING.
9853         * doc/posix-functions/fgetc.texi: Likewise.
9854         * doc/posix-functions/fputc.texi: Likewise.
9855         * doc/posix-functions/fread.texi: Likewise.
9856         * doc/posix-functions/fwrite.texi: Likewise.
9857
9858 2011-09-25  Bruno Haible  <bruno@clisp.org>
9859
9860         msvc-inval: Allow three invalid parameter handling modes.
9861         * lib/msvc-inval.h: Don't include <stdlib.h> here.
9862         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
9863         macros.
9864         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
9865         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
9866         SANE_LIBRARY_HANDLING as a no-op.
9867         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
9868         <stdlib.h>.
9869         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
9870
9871 2011-09-25  Bruno Haible  <bruno@clisp.org>
9872
9873         msvc-inval: Make handler multithread-safe.
9874         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
9875         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
9876         declarations.
9877         (gl_msvc_inval_current): New declaration.
9878         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9879         Operate on the structure returned by gl_msvc_inval_current().
9880         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
9881         Remove varaiables.
9882         (tls_index, tls_initialized): New variables.
9883         (not_per_thread): New variable.
9884         (gl_msvc_inval_current): New function.
9885         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
9886         returned by gl_msvc_inval_current().
9887
9888 2011-09-25  Bruno Haible  <bruno@clisp.org>
9889
9890         msvc-inval: Install handler globally.
9891         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
9892         !_MSC_VER.
9893         (gl_msvc_invalid_parameter_handler): Remove declaration.
9894         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
9895         declarations.
9896         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
9897         Install the handler globally, don't uninstall it.
9898         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
9899         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
9900         currently valid, call RaiseException instead.
9901         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
9902         for !_MSC_VER.
9903
9904 2011-09-25  Bruno Haible  <bruno@clisp.org>
9905
9906         strerror_r-posix: Fix for MSVC 9.
9907         * lib/strerror_r.c (local_snprintf): New function.
9908         (snprintf): Define to local_snprintf, not to _snprintf.
9909
9910 2011-09-25  Bruno Haible  <bruno@clisp.org>
9911
9912         ftruncate: Support for MSVC 9.
9913         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
9914         (chsize_nothrow): New function.
9915         (chsize): Redefine as a macro.
9916         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
9917         * modules/ftruncate (Depends-on): Add msvc-inval.
9918
9919 2011-09-25  Bruno Haible  <bruno@clisp.org>
9920
9921         New module 'fstat'.
9922         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
9923         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
9924         * lib/fchdir.c (rpl_fstat): Remove function.
9925         * m4/fstat.m4: New file.
9926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
9927         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
9928         declared.
9929         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
9930         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
9931         * modules/fstat: New file.
9932         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
9933         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
9934         is set.
9935         * doc/posix-functions/fstat.texi: Mention the new module and the
9936         problem on MSVC.
9937         * NEWS: Mention the change.
9938         * modules/acl (Depends-on): Add fstat.
9939         * modules/chdir-safer (Depends-on): Likewise.
9940         * modules/chown (Depends-on): Likewise.
9941         * modules/copy-file (Depends-on): Likewise.
9942         * modules/fchdir (Depends-on): Likewise.
9943         * modules/fdopendir (Depends-on): Likewise.
9944         * modules/fopen (Depends-on): Likewise.
9945         * modules/fts (Depends-on): Likewise.
9946         * modules/getcwd (Depends-on): Likewise.
9947         * modules/isapipe (Depends-on): Likewise.
9948         * modules/linkat (Depends-on): Likewise.
9949         * modules/lseek (Depends-on): Likewise.
9950         * modules/mkdir-p (Depends-on): Likewise.
9951         * modules/open (Depends-on): Likewise.
9952         * modules/openat (Depends-on): Likewise.
9953         * modules/read-file (Depends-on): Likewise.
9954         * modules/renameat (Depends-on): Likewise.
9955         * modules/utimens (Depends-on): Likewise.
9956
9957 2011-09-25  Bruno Haible  <bruno@clisp.org>
9958
9959         linkat: Fix compilation on MSVC 9.
9960         * lib/linkat.c: Don't include <stdint.h>.
9961
9962 2011-09-25  Bruno Haible  <bruno@clisp.org>
9963
9964         fclose: Support for MSVC 9.
9965         * lib/fclose.c: Include msvc-inval.h.
9966         (fclose_nothrow): New function.
9967         (rpl_fclose): Use it.
9968         * modules/fclose (Depends-on): Add msvc-inval.
9969         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9970
9971 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9972
9973         dup2: minor simplifications
9974         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9975         that it's a performance win.
9976         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9977         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9978
9979 2011-09-24  Jim Meyering  <meyering@redhat.com>
9980
9981         test-futimens: avoid a warning from gcc -Wshadow
9982         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9983         to avoid a shadowing warning.
9984
9985 2011-09-24  Bruno Haible  <bruno@clisp.org>
9986
9987         fdopen: Support for MSVC 9.
9988         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9989         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9990         * lib/fdopen.c: Include msvc-inval.h.
9991         (fdopen_nothrow): New function.
9992         (rpl_fdopen): Use it.
9993         * modules/fdopen (Depends-on): Add msvc-inval.
9994         * modules/fclose-tests (Depends-on): Add fdopen.
9995         * modules/fflush-tests (Depends-on): Likewise.
9996         * modules/fgetc-tests (Depends-on): Likewise.
9997         * modules/fputc-tests (Depends-on): Likewise.
9998         * modules/fread-tests (Depends-on): Likewise.
9999         * modules/freopen-tests (Depends-on): Likewise.
10000         * modules/fseeko-tests (Depends-on): Likewise.
10001         * modules/ftello-tests (Depends-on): Likewise.
10002         * modules/fwrite-tests  (Depends-on): Likewise.
10003         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10004
10005 2011-09-24  Bruno Haible  <bruno@clisp.org>
10006
10007         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10008         * modules/fgetc-tests (Depends-on): Add unistd.
10009         * modules/fputc-tests (Depends-on): Likewise.
10010         * modules/fread-tests (Depends-on): Likewise.
10011         * modules/fwrite-tests (Depends-on): Likewise.
10012
10013 2011-09-24  Bruno Haible  <bruno@clisp.org>
10014
10015         dup: Simplify autoconf test.
10016         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10017         on gl_MSVC_INVAL's result.
10018
10019 2011-09-24  Bruno Haible  <bruno@clisp.org>
10020
10021         Tests for function fwrite().
10022         * modules/fwrite-tests: New file.
10023         * tests/test-fwrite.c: New file.
10024         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10025
10026         Tests for function fread().
10027         * modules/fread-tests: New file.
10028         * tests/test-fread.c: New file.
10029         * modules/stdio-tests (Depends-on): Add fread-tests.
10030
10031         Activate fputc tests.
10032         * modules/stdio-tests (Depends-on): Add fputc-tests.
10033
10034         Enhance fgetc, fputc tests.
10035         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10036         * tests/test-fputc.c (main): Likewise.
10037
10038 2011-09-24  Bruno Haible  <bruno@clisp.org>
10039
10040         write: Support for MSVC 9.
10041         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10042         is not 1.
10043         * lib/write.c (write_nothrow): New function.
10044         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10045         not 1. Use write_nothrow.
10046         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10047         invalid parameter handler.
10048         (gl_PREREQ_WRITE): New macro.
10049         * modules/write (Depends-on): Add msvc-inval.
10050         (configure.ac): Invoke gl_PREREQ_WRITE.
10051         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10052
10053 2011-09-24  Bruno Haible  <bruno@clisp.org>
10054
10055         read: Fix last commit.
10056         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10057
10058 2011-09-24  Bruno Haible  <bruno@clisp.org>
10059
10060         dup2: Fix last commit.
10061         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10062         (rpl_dup2): Disable fcntl workaround on native Windows.
10063
10064         sigprocmask: Make code safer.
10065         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10066         section that changes macro definitions for this compilation unit.
10067
10068 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10069
10070         dup2: clarify by coalescing Windows-specific material
10071         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10072         "msvc-nothrow.h"' to the Windows-specific section, so that the
10073         Emacs source need not contain these include files.
10074         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10075         Windows-specific fixes into this function rather than just the
10076         nothrow fix, as this shortens and clarifies the code.  Always
10077         define as a function, as that's a bit cleaner than having it be
10078         sometimes a function and sometimes a macro.
10079         (rpl_dup2): Move the Windows-specific stuff out of here and into
10080         ms_windows_dup2.  Don't protect the Haiku-related fix with
10081         "#if !defined __linux__", as the same code also works around
10082         a Linux kernel bug, and it doesn't add any system calls on any
10083         platform.  Add comment about FreeBSD 6.1.
10084
10085         sigprocmask: move #include directive
10086         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10087         Windows-specific section, so that the Emacs source need not
10088         contain msvc-inval.h.
10089
10090 2011-09-23  Bruno Haible  <bruno@clisp.org>
10091
10092         read: Support for MSVC 9.
10093         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10094         is not 1.
10095         * lib/read.c (read_nothrow): New function.
10096         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10097         read_nothrow.
10098         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10099         invalid parameter handler.
10100         (gl_PREREQ_READ): New macro.
10101         * modules/read (Depends-on): Add msvc-inval.
10102         (configure.ac): Invoke gl_PREREQ_READ.
10103         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10104
10105 2011-09-23  Bruno Haible  <bruno@clisp.org>
10106
10107         close: Support for MSVC 9.
10108         * lib/close.c: Include <errno.h>, msvc-inval.h.
10109         (close_nothrow): New function.
10110         (rpl_close): Use it.
10111         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10112         invalid parameter handler.
10113         * modules/close (Depends-on): Add msvc-inval.
10114         * modules/dup2-tests (Depends-on): Add close.
10115         * modules/dup3-tests (Depends-on): Likewise.
10116         * modules/fcntl-tests (Depends-on): Likewise.
10117         * modules/spawn-pipe-tests (Depends-on): Likewise.
10118         * modules/unistd-safer-tests (Depends-on): Likewise.
10119         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10120
10121 2011-09-23  Bruno Haible  <bruno@clisp.org>
10122
10123         New module 'dup'.
10124         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10125         Allow replacement.
10126         * lib/dup.c: New file.
10127         * lib/fchdir.c (rpl_dup): Remove function.
10128         * m4/dup.m4: New file.
10129         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10130         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10131         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10132         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10133         * modules/dup: New file.
10134         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10135         'dup' module is in use.
10136         * modules/fdopendir (Depends-on): Add dup.
10137         * modules/fdutimensat-tests (Depends-on): Likewise.
10138         * modules/fts (Depends-on): Likewise.
10139         * modules/futimens-tests (Depends-on): Likewise.
10140         * modules/posix_spawnp-tests (Depends-on): Likewise.
10141         * modules/unistd-safer-tests (Depends-on): Likewise.
10142         * modules/utimens-tests (Depends-on): Likewise.
10143         * doc/posix-functions/dup.texi: Mention the new module and the problem
10144         on MSVC.
10145
10146 2011-09-23  Bruno Haible  <bruno@clisp.org>
10147
10148         getdtablesize: Support for MSVC 9.
10149         * lib/getdtablesize.c: Include msvc-inval.h.
10150         (_setmaxstdio_nothrow): New function.
10151         (_setmaxstdio): Redefine it.
10152         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10153         * modules/getdtablesize (Depends-on): Add msvc-inval.
10154         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10155
10156 2011-09-23  Bruno Haible  <bruno@clisp.org>
10157
10158         signal-h: Rename from signal.
10159         * modules/signal-h: Renamed from modules/signal.
10160         * modules/pthread_sigmask (Depends-on): Update.
10161         * modules/raise (Depends-on): Likewise.
10162         * modules/sigaction (Depends-on): Likewise.
10163         * modules/sigpipe (Depends-on): Likewise.
10164         * modules/sigprocmask (Depends-on): Likewise.
10165         * modules/sys_select (Depends-on): Likewise.
10166         * modules/signal-h-tests: Renamed from modules/signal-tests.
10167         (Files, Depends-on, Makefile.am): Update.
10168         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10169         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10170         (Files, Makefile.am): Update.
10171         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10172         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10173         * modules/signal: New placeholder file.
10174         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10175         * doc/posix-headers/signal.texi: Update.
10176         * NEWS: Mention the change.
10177
10178 2011-09-23  Bruno Haible  <bruno@clisp.org>
10179
10180         sigprocmask: Avoid crashes through signal() on MSVC 9.
10181         * lib/sigprocmask.c: Include msvc-inval.h.
10182         (signal_nothrow): New function.
10183         (signal): Redefine it.
10184         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10185         * modules/sigprocmask (Depends-on): Add msvc-inval.
10186         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10187
10188 2011-09-23  Bruno Haible  <bruno@clisp.org>
10189
10190         Tests for module 'raise'.
10191         * modules/raise-tests: New file.
10192         * tests/test-raise.c: New file.
10193
10194         raise: Support for MSVC.
10195         * lib/signal.in.h (raise): New declaration.
10196         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10197         for native Windows platforms.
10198         * m4/raise.m4: New file.
10199         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10200         HAVE_RAISE, REPLACE_RAISE.
10201         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10202         REPLACE_RAISE.
10203         * modules/raise (Status, Notice): Remove fields.
10204         (Files): Add m4/raise.m4.
10205         (Depends-on): Add signal, msvc-inval.
10206         (configure.ac): Use the common idioms.
10207         (Maintainer): Add me.
10208         * tests/test-signal-c++.cc: Check the signature of raise.
10209         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10210
10211 2011-09-23  Bruno Haible  <bruno@clisp.org>
10212
10213         pipe2: Fix compilation on pre-C99 compilers.
10214         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10215
10216 2011-09-23  Bruno Haible  <bruno@clisp.org>
10217
10218         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10219         * lib/msvc-nothrow.h: New file.
10220         * lib/msvc-nothrow.c: New file.
10221         * m4/msvc-nothrow.m4: New file.
10222         * modules/msvc-nothrow: New file.
10223         * lib/dup2.c: Include msvc-nothrow.h.
10224         (rpl_dup2): No need to protect _get_osfhandle call here.
10225         * lib/accept4.c: Include msvc-nothrow.h.
10226         * lib/error.c: Likewise.
10227         * lib/fcntl.c: Likewise.
10228         * lib/lseek.c: Likewise.
10229         * lib/nonblocking.c: Likewise.
10230         * lib/poll.c: Likewise.
10231         * lib/read.c: Likewise.
10232         * lib/select.c: Likewise.
10233         * lib/sockets.h: Likewise.
10234         * lib/sockets.c: Likewise.
10235         * lib/stdio-read.c: Likewise.
10236         * lib/stdio-write.c: Likewise.
10237         * lib/write.c: Likewise.
10238         * lib/w32sock.h: Likewise.
10239         * lib/w32spawn.h: Likewise.
10240         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10241         * lib/fsync.c: Likewise.
10242         * lib/isapipe.c: Likewise.
10243         * modules/dup2 (Depends-on): Add msvc-nothrow.
10244         * modules/accept4 (Depends-on): Likewise.
10245         * modules/error (Depends-on): Likewise.
10246         * modules/fcntl (Depends-on): Likewise.
10247         * modules/lseek (Depends-on): Likewise.
10248         * modules/nonblocking (Depends-on): Likewise.
10249         * modules/poll (Depends-on): Likewise.
10250         * modules/read (Depends-on): Likewise.
10251         * modules/select (Depends-on): Likewise.
10252         * modules/sockets (Depends-on): Likewise.
10253         * modules/sigpipe (Depends-on): Likewise.
10254         * modules/write (Depends-on): Likewise.
10255         * modules/accept (Depends-on): Likewise.
10256         * modules/bind (Depends-on): Likewise.
10257         * modules/connect (Depends-on): Likewise.
10258         * modules/gethostname (Depends-on): Likewise.
10259         * modules/getpeername (Depends-on): Likewise.
10260         * modules/getsockname (Depends-on): Likewise.
10261         * modules/getsockopt (Depends-on): Likewise.
10262         * modules/ioctl (Depends-on): Likewise.
10263         * modules/listen (Depends-on): Likewise.
10264         * modules/recv (Depends-on): Likewise.
10265         * modules/recvfrom (Depends-on): Likewise.
10266         * modules/send (Depends-on): Likewise.
10267         * modules/sendto (Depends-on): Likewise.
10268         * modules/setsockopt (Depends-on): Likewise.
10269         * modules/shutdown (Depends-on): Likewise.
10270         * modules/socket (Depends-on): Likewise.
10271         * modules/execute (Depends-on): Likewise.
10272         * modules/spawn-pipe (Depends-on): Likewise.
10273         * modules/flock (Depends-on): Likewise.
10274         * modules/fsync (Depends-on): Likewise.
10275         * modules/isapipe (Depends-on): Likewise.
10276         * tests/test-cloexec.c: Include msvc-nothrow.h.
10277         * tests/test-dup-safer.c: Likewise.
10278         * tests/test-dup2.c: Likewise.
10279         * tests/test-dup3.c: Likewise.
10280         * tests/test-fcntl.c: Likewise.
10281         * tests/test-pipe.c: Likewise.
10282         * tests/test-pipe2.c: Likewise.
10283         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10284         * modules/unistd-safer-tests (Depends-on): Likewise.
10285         * modules/dup2-tests (Depends-on): Likewise.
10286         * modules/dup3-tests (Depends-on): Likewise.
10287         * modules/fcntl-tests (Depends-on): Likewise.
10288         * modules/pipe-posix-tests (Depends-on): Likewise.
10289         * modules/pipe2-tests (Depends-on): Likewise.
10290
10291 2011-09-23  Bruno Haible  <bruno@clisp.org>
10292
10293         dup2: Make code more maintainable.
10294         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10295         (rpl_dup2): Use it.
10296         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10297         * modules/dup2 (configure.ac): Invoke it.
10298         Reported by Paul Eggert.
10299
10300 2011-09-23  Bruno Haible  <bruno@clisp.org>
10301
10302         msvc-inval: Fix compilation error.
10303         * lib/msvc-inval.h: Include <excpt.h>.
10304
10305 2011-09-23  Bruno Haible  <bruno@clisp.org>
10306
10307         mkdir: Tweak for MSVC 9.
10308         * lib/sys_stat.in.h: Update comments.
10309         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10310
10311         Tests for module 'chdir'.
10312         * modules/chdir-tests: New file.
10313         * tests/test-chdir.c: New file.
10314
10315         New module 'chdir'.
10316         * modules/chdir: New file.
10317         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10318         (chdir): New declaration.
10319         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10320         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10321         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10322         * tests/test-unistd-c++.cc: Check signature of chdir.
10323         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10324         * modules/chdir-long (Depends-on): Add chdir.
10325         * modules/fchdir (Depends-on): Likewise.
10326         * modules/rename (Depends-on): Likewise.
10327         * modules/savewd (Depends-on): Likewise.
10328
10329         rmdir: Support for mingw, MSVC 9.
10330         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10331         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10332
10333         getcwd: Tweak for MSVC 9.
10334         * lib/unistd.in.h: Update comments.
10335         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10336
10337 2011-09-22  Bruno Haible  <bruno@clisp.org>
10338
10339         strerror_r-posix: Avoid a link error on MSVC.
10340         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10341         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10342
10343 2011-09-22  Bruno Haible  <bruno@clisp.org>
10344
10345         select: Avoid link errors on MSVC.
10346         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10347         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10348         * modules/pselect (Link): Likewise.
10349         * NEWS: Mention the change.
10350         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10351         test-select-stdin against $(LIB_SELECT).
10352         * modules/pselect-tests (Makefile.am): Link test-pselect against
10353         $(LIB_SELECT).
10354
10355 2011-09-22  Bruno Haible  <bruno@clisp.org>
10356
10357         select: Avoid compilation error on MSVC.
10358         * lib/select.c: Don't include <stdbool.h>.
10359
10360 2011-09-21  Bruno Haible  <bruno@clisp.org>
10361
10362         Consolidate all uses of PATH_MAX in *.m4 files.
10363         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10364         macros.
10365         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10366         and gl_PATHMAX_SNIPPET.
10367         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10369         * modules/chdir-long (Files): Add m4/pathmax.m4.
10370         * modules/getcwd (Files): Likewise.
10371
10372 2011-09-21  Bruno Haible  <bruno@clisp.org>
10373
10374         ftruncate: Un-deprecate, concentrate on Win32 support.
10375         * modules/ftruncate (Status, Notice): Remove sections.
10376         (Depends-on): Add largefile.
10377         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10378         non-mingw platforms.
10379         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10380         include <io.h>.
10381         * modules/perror-tests (Depends-on): Add ftruncate.
10382         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10383         'ftruncate' module.
10384
10385 2011-09-21  Bruno Haible  <bruno@clisp.org>
10386
10387         Add dependencies to new dirent related modules.
10388         * modules/opendir (Depends-on): Add closedir.
10389         * modules/getcwd (Depends-on): Add opendir, closedir.
10390         * modules/dirent-safer-tests (Depends-on): Likewise.
10391         * modules/fdopendir-tests (Depends-on): Likewise.
10392         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10393         * modules/renameat-tests (Depends-on): Likewise.
10394
10395 2011-09-21  Bruno Haible  <bruno@clisp.org>
10396
10397         opendir: Avoid compilation error on mingw.
10398         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10399         * modules/opendir (Depends-on): Add unistd.
10400
10401 2011-09-21  Bruno Haible  <bruno@clisp.org>
10402
10403         ftruncate tests: Avoid a test failure on mingw.
10404         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10405
10406 2011-09-21  Bruno Haible  <bruno@clisp.org>
10407
10408         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10409         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10410         native Windows.
10411
10412 2011-09-21  Bruno Haible  <bruno@clisp.org>
10413
10414         New module 'fdopen'.
10415         * lib/stdio.in.h (fdopen): New declaration.
10416         * lib/fdopen.c: New file.
10417         * m4/fdopen.m4: New file.
10418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10419         REPLACE_FDOPEN.
10420         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10421         REPLACE_FDOPEN.
10422         * modules/fdopen: New file.
10423         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10424         * tests/test-stdio-c++.cc: Check signature of fdopen.
10425         * doc/posix-functions/fdopen.texi: Mention the new module.
10426
10427 2011-09-21  Bruno Haible  <bruno@clisp.org>
10428
10429         unlockpt tests: Avoid test failure on NetBSD 5.1.
10430         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10431         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10432
10433 2011-09-21  Bruno Haible  <bruno@clisp.org>
10434
10435         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10436         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10437         * tests/test-getlogin_r.c (main): Likewise.
10438
10439 2011-09-20  Bruno Haible  <bruno@clisp.org>
10440
10441         time tests: Don't require pid_t.
10442         * doc/posix-headers/time.texi: Revert last change.
10443         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10444         * tests/test-time.c: Comment out the check for pid_t.
10445
10446 2011-09-20  Bruno Haible  <bruno@clisp.org>
10447
10448         fsync tests: Avoid a test failure on mingw.
10449         * tests/test-fsync.c (main): Allow a failure with EIO.
10450
10451 2011-09-20  Bruno Haible  <bruno@clisp.org>
10452
10453         euidaccess: Update comments.
10454         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10455
10456 2011-09-20  Bruno Haible  <bruno@clisp.org>
10457
10458         Ensure EBADF returns for socket functions on mingw.
10459         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10460         descriptor is invalid.
10461         * lib/bind.c (rpl_bind): Likewise.
10462         * lib/connect.c (rpl_connect): Likewise.
10463         * lib/getpeername.c (rpl_getpeername): Likewise.
10464         * lib/getsockname.c (rpl_getsockname): Likewise.
10465         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10466         * lib/listen.c (rpl_listen): Likewise.
10467         * lib/recv.c (rpl_recv): Likewise.
10468         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10469         * lib/send.c (rpl_send): Likewise.
10470         * lib/sendto.c (rpl_sendto): Likewise.
10471         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10472         * lib/shutdown.c (rpl_shutdown): Likewise.
10473
10474 2011-09-20  Bruno Haible  <bruno@clisp.org>
10475
10476         select tests: EBADF tests.
10477         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10478         test_bad_fd): New functions.
10479         (test_function): Invoke also test_bad_fd.
10480
10481 2011-09-20  Bruno Haible  <bruno@clisp.org>
10482
10483         Tests for module 'posix_spawn_file_actions_addopen.
10484         * modules/posix_spawn_file_actions_addopen-tests: New file.
10485         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10486
10487         Tests for module 'posix_spawn_file_actions_adddup2'.
10488         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10489         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10490
10491         Tests for module 'posix_spawn_file_actions_addclose'.
10492         * modules/posix_spawn_file_actions_addclose-tests: New file.
10493         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10494
10495 2011-09-20  Bruno Haible  <bruno@clisp.org>
10496
10497         Tests for module 'unlockpt'.
10498         * modules/unlockpt-tests: New file.
10499         * tests/test-unlockpt.c: New file.
10500         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10501
10502         Tests for module 'grantpt'.
10503         * modules/grantpt-tests: New file.
10504         * tests/test-grantpt.c: New file.
10505         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10506
10507 2011-09-20  Bruno Haible  <bruno@clisp.org>
10508
10509         freopen tests: EBADF tests.
10510         * tests/test-freopen.c: Include errno.h, unistd.h.
10511         (main): Add tests for EBADF, commented out for the moment.
10512
10513         fclose tests: EBADF tests.
10514         * tests/test-fclose.c (main): Add tests for EBADF.
10515
10516         fflush tests: EBADF tests.
10517         * tests/test-fflush.c: Include errno.h, macros.h.
10518         (main): Add tests for EBADF.
10519
10520         ftello tests: EBADF tests.
10521         * tests/test-ftello4.sh: New file.
10522         * tests/test-ftello4.c: New file.
10523         * modules/ftello-tests (Files): Add them.
10524         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10525
10526         fseeko tests: EBADF tests.
10527         * tests/test-fseeko4.sh: New file.
10528         * tests/test-fseeko4.c: New file.
10529         * modules/fseeko-tests (Files): Add them.
10530         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10531
10532         Tests for function fputc().
10533         * modules/fputc-tests: New file.
10534         * tests/test-fputc.c: New file.
10535         * modules/stdio-tests (Depends-on): Add fputc-tests.
10536
10537         Tests for function fgetc().
10538         * modules/fgetc-tests: New file.
10539         * tests/test-fgetc.c: New file.
10540         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10541
10542         Tests for function fdopen().
10543         * modules/fdopen-tests: New file.
10544         * tests/test-fdopen.c: New file.
10545         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10546
10547         Tests for module 'vdprintf'.
10548         * modules/vdprintf-tests: New file.
10549         * tests/test-vdprintf.c: New file.
10550
10551         Tests for module 'dprintf'.
10552         * modules/dprintf-tests: New file.
10553         * tests/test-dprintf.c: New file.
10554
10555 2011-09-20  Bruno Haible  <bruno@clisp.org>
10556
10557         Tests for module 'ioctl'.
10558         * modules/ioctl-tests: New file.
10559         * tests/test-ioctl.c: New file.
10560
10561 2011-09-20  Bruno Haible  <bruno@clisp.org>
10562
10563         fcntl tests: EBADF tests.
10564         * tests/test-fcntl.c (main): Add more tests for EBADF.
10565
10566 2011-09-20  Bruno Haible  <bruno@clisp.org>
10567
10568         utimensat tests: EBADF tests.
10569         * tests/test-utimensat.c (main): Add tests for EBADF.
10570
10571         renameat tests: EBADF tests.
10572         * tests/test-renameat.c (main): Add tests for EBADF.
10573
10574         mkfifoat tests: EBADF tests.
10575         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10576
10577         readlinkat tests: EBADF tests.
10578         * tests/test-readlinkat.c (main): Add tests for EBADF.
10579
10580         symlinkat tests: EBADF tests.
10581         * tests/test-symlinkat.c (main): Add tests for EBADF.
10582
10583         linkat tests: EBADF tests.
10584         * tests/test-linkat.c (main): Add tests for EBADF.
10585
10586         Tests for module 'faccessat'.
10587         * modules/faccessat-tests: New file.
10588         * tests/test-faccessat.c: New file.
10589
10590         fdopendir tests: EBADF tests.
10591         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10592
10593         openat tests: EBADF tests.
10594         * tests/test-fchownat.c (main): Add tests for EBADF.
10595         * tests/test-fstatat.c (main): Likewise.
10596         * tests/test-mkdirat.c (main): Likewise.
10597         * tests/test-openat.c (main): Likewise.
10598         * tests/test-unlinkat.c (main): Likewise.
10599         * tests/test-fchmodat.c: New file.
10600         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10601         (Makefile.am): Also run 'test-fchmodat'.
10602
10603 2011-09-20  Bruno Haible  <bruno@clisp.org>
10604
10605         utimens, futimens, fdutimensat tests: EBADF tests.
10606         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10607
10608         Tests for function fstat().
10609         * modules/fstat-tests: New file.
10610         * tests/test-fstat.c: New file.
10611         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10612
10613 2011-09-20  Bruno Haible  <bruno@clisp.org>
10614
10615         test-ttyname_r tests: EBADF tests.
10616         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10617
10618         Tests for module 'isatty'.
10619         * modules/isatty-tests: New file.
10620         * tests/test-isatty.c: New file.
10621
10622         Tests for module 'write'.
10623         * modules/write-tests: New file.
10624         * tests/test-write.c: New file.
10625
10626         Tests for module 'read'.
10627         * modules/read-tests: New file.
10628         * tests/test-read.c: New file.
10629
10630         pwrite tests: EBADF tests.
10631         * tests/test-pwrite.c (main): Add tests for EBADF.
10632
10633         pread tests: EBADF tests.
10634         * tests/test-pread.c (main): Add tests for EBADF.
10635
10636         lseek tests: EBADF tests.
10637         * tests/test-lseek.c (main): Add more tests for EBADF.
10638
10639         Tests for module 'ftruncate'.
10640         * modules/ftruncate-tests: New file.
10641         * tests/test-ftruncate.sh: New file.
10642         * tests/test-ftruncate.c: New file.
10643
10644         fsync tests: EBADF tests.
10645         * tests/test-fsync.c (main): Add more tests for EBADF.
10646
10647         fdatasync tests: EBADF tests.
10648         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10649
10650         Tests for module 'fchown'.
10651         * modules/fchown-tests: New file.
10652         * tests/test-fchown.c: New file.
10653
10654         Tests for module 'fchmod'.
10655         * modules/fchmod-tests: New file.
10656         * tests/test-fchmod.c: New file.
10657
10658         fchdir tests: EBADF tests.
10659         * tests/test-fchdir.c (main): Add more tests for EBADF.
10660
10661         dup2 tests: EBADF tests.
10662         * tests/test-dup2.c (main): Add more tests for EBADF.
10663
10664         Tests for module 'dup'.
10665         * modules/dup-tests: New file.
10666         * tests/test-dup.c: New file.
10667
10668         Tests for module 'close'.
10669         * modules/close-tests: New file.
10670         * tests/test-close.c: New file.
10671
10672 2011-09-20  Bruno Haible  <bruno@clisp.org>
10673
10674         Tests for module 'shutdown'.
10675         * modules/shutdown-tests: New file.
10676         * tests/test-shutdown.c: New file.
10677
10678         Tests for module 'setsockopt'.
10679         * modules/setsockopt-tests: New file.
10680         * tests/test-setsockopt.c: New file.
10681
10682         Tests for module 'sendto'.
10683         * modules/sendto-tests: New file.
10684         * tests/test-sendto.c: New file.
10685
10686         Tests for module 'send'.
10687         * modules/send-tests: New file.
10688         * tests/test-send.c: New file.
10689
10690         Tests for module 'recvfrom'.
10691         * modules/recvfrom-tests: New file.
10692         * tests/test-recvfrom.c: New file.
10693
10694         Tests for module 'recv'.
10695         * modules/recv-tests: New file.
10696         * tests/test-recv.c: New file.
10697
10698         Tests for module 'listen'.
10699         * modules/listen-tests: New file.
10700         * tests/test-listen.c: New file.
10701
10702         Tests for module 'getsockopt'.
10703         * modules/getsockopt-tests: New file.
10704         * tests/test-getsockopt.c: New file.
10705
10706         Tests for module 'getsockname'.
10707         * modules/getsockname-tests: New file.
10708         * tests/test-getsockname.c: New file.
10709
10710         Tests for module 'getpeername'.
10711         * modules/getpeername-tests: New file.
10712         * tests/test-getpeername.c: New file.
10713
10714         Tests for module 'connect'.
10715         * modules/connect-tests: New file.
10716         * tests/test-connect.c: New file.
10717
10718         Tests for module 'bind'.
10719         * modules/bind-tests: New file.
10720         * tests/test-bind.c: New file.
10721
10722         accept4 tests: Fix for native Windows.
10723         * tests/test-accept4.c: Include sockets.h.
10724         (main): Invoke gl_sockets_startup.
10725         * modules/accept4-tests (Depends-on): Add sockets.
10726
10727         accept tests: Fix for native Windows.
10728         * tests/test-accept.c: Include sockets.h.
10729         (main): Invoke gl_sockets_startup.
10730         * modules/accept-tests (Depends-on): Add sockets.
10731
10732 2011-09-19  Bruno Haible  <bruno@clisp.org>
10733
10734         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10735         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10736         do...while(0).
10737         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10738         Suggested by Paul Eggert.
10739
10740 2011-09-19  Bruno Haible  <bruno@clisp.org>
10741
10742         sched: Ensure pid_t is defined.
10743         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10744         not define pid_t.
10745         * lib/sched.in.h: Include <sys/types.h>.
10746         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10748
10749 2011-09-19  Bruno Haible  <bruno@clisp.org>
10750
10751         msvc-inval: Ensure the entire expansion is a single statement.
10752         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10753         of braces.
10754
10755 2011-09-19  Jim Meyering  <meyering@redhat.com>
10756
10757         tests: use printf, not echo in init.sh's warn_ function
10758         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10759         misbehave when given strings containing a backslash or starting
10760         with e.g., -n.  James Youngman suggested setting IFS.
10761
10762 2011-09-19  Eric Blake  <eblake@redhat.com>
10763
10764         futimens: enhance test
10765         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10766         closed non-negative fd.
10767
10768         date: accept 'hence' as opposite of 'ago'
10769         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10770         * tests/test-parse-datetime.c (main): Enhance test.
10771         Suggested by Jesse Wilson.
10772
10773 2011-09-19  Jim Meyering  <meyering@redhat.com>
10774
10775         getcwd: don't fail in a deep directory on a system without openat
10776         Before this change, getcwd would fail when called from a directory
10777         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10778         the non-openat implementation used "..", "../..", "../../..", etc.
10779         to access ancestor directories.  With too many, that string would
10780         be longer than PATH_MAX.
10781         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10782         using gnulib's openat replacement.
10783         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10784         we're using the replacement function.
10785
10786 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10787
10788         maint.mk: avoid warnings from perl about missing files
10789         * top/maint.mk (def_sym_regex): Ignore files listed in
10790         $(gl_other_headers_) that do not exist, say because a project
10791         does not use a corresponding module.
10792
10793 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10794
10795         stat: use pathmax.h only if needed
10796         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10797         This is better for Emacs, which does not have a mingw port and
10798         therefore can avoid the pathmax module.
10799
10800         utimens: remove dependency on dup2
10801         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10802         to work around the Linux kernel bug.
10803         * modules/utimens (Depends-on): Remove dup2.
10804
10805 2011-09-18  Bruno Haible  <bruno@clisp.org>
10806
10807         inet_ntop, inet_pton: Look for it also in libresolv.
10808         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10809         libnsl, search for it in libresolv.
10810         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10811         Needed on Solaris 7.
10812
10813 2011-09-18  Bruno Haible  <bruno@clisp.org>
10814
10815         accept, accept4 tests: Avoid link error on Solaris.
10816         * modules/accept-tests (Makefile.am): Link test-accept against
10817         $(LIBSOCKET).
10818         * modules/accept4-tests (Makefile.am): Link test-accept4 against
10819         $(LIBSOCKET).
10820
10821         accept4: Avoid link error on Solaris.
10822         * modules/accept4 (Link): New section.
10823
10824         socket functions: Avoid link errors on Solaris.
10825         * modules/accept (Depends-on): Add socketlib.
10826         (Link): New section.
10827         * modules/bind (Depends-on): Add socketlib.
10828         (Link): New section.
10829         * modules/connect (Depends-on): Add socketlib.
10830         (Link): New section.
10831         * modules/getpeername (Depends-on): Add socketlib.
10832         (Link): New section.
10833         * modules/getsockname (Depends-on): Add socketlib.
10834         (Link): New section.
10835         * modules/getsockopt (Depends-on): Add socketlib.
10836         (Link): New section.
10837         * modules/listen (Depends-on): Add socketlib.
10838         (Link): New section.
10839         * modules/recv (Depends-on): Add socketlib.
10840         (Link): New section.
10841         * modules/recvfrom (Depends-on): Add socketlib.
10842         (Link): New section.
10843         * modules/send (Depends-on): Add socketlib.
10844         (Link): New section.
10845         * modules/sendto (Depends-on): Add socketlib.
10846         (Link): New section.
10847         * modules/setsockopt (Depends-on): Add socketlib.
10848         (Link): New section.
10849         * modules/shutdown (Depends-on): Add socketlib.
10850         (Link): New section.
10851         * modules/socket (Depends-on): Add socketlib.
10852         (Link): New section.
10853
10854 2011-09-18  Bruno Haible  <bruno@clisp.org>
10855
10856         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
10857         * tests/test-ptsname.c (main): Terminate the test if it takes longer
10858         than 5 seconds.
10859         * modules/ptsname-tests (configure.ac): Test for alarm.
10860
10861 2011-09-18  Bruno Haible  <bruno@clisp.org>
10862
10863         posix_spawn_file_actions_add*: Fix module dependencies.
10864         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
10865         posix_spawn_file_actions_init.
10866         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
10867         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
10868
10869 2011-09-18  Bruno Haible  <bruno@clisp.org>
10870
10871         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
10872         * tests/test-rename.h (test_rename): Allow error code EEXIST.
10873         * tests/test-renameat.c (main): Likewise.
10874
10875 2011-09-18  Bruno Haible  <bruno@clisp.org>
10876
10877         Tests for module 'accept4'.
10878         * modules/accept4-tests: New file.
10879         * tests/test-accept4.c: New file.
10880
10881 2011-09-18  Bruno Haible  <bruno@clisp.org>
10882
10883         Tests for module 'accept'.
10884         * modules/accept-tests: New file.
10885         * tests/test-accept.c: New file.
10886
10887 2011-09-18  Bruno Haible  <bruno@clisp.org>
10888
10889         dup2: Support for MSVC.
10890         * lib/dup2.c: Include msvc-inval.h.
10891         (rpl_dup2): Handle invalid parameter notifications during dup2 and
10892         _get_osfhandle calls.
10893         * modules/dup2 (Depends-on): Add msvc-inval.
10894         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
10895
10896         New module 'msvc-inval'.
10897         * lib/msvc-inval.h: New file.
10898         * lib/msvc-inval.c: New file.
10899         * m4/msvc-inval.m4: New file.
10900         * modules/msvc-inval: New file.
10901
10902 2011-09-17  Bruno Haible  <bruno@clisp.org>
10903
10904         Tests for module 'pclose'.
10905         * modules/pclose-tests: New file.
10906
10907         New module 'pclose'.
10908         * lib/stdio.in.h (pclose): New declaration.
10909         * lib/pclose.c: New file.
10910         * m4/pclose.m4: New file.
10911         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
10912         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
10913         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
10914         * modules/pclose: New file.
10915         * modules/popen-tests (Depends-on): Add pclose.
10916         * modules/popen-safer-tests (Depends-on): Likewise.
10917         * doc/posix-functions/pclose.texi: Mention the new module.
10918
10919 2011-09-17  Bruno Haible  <bruno@clisp.org>
10920
10921         popen: Support for MSVC.
10922         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
10923         * lib/popen.c (popen): Provide alternate definition for native Windows.
10924         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
10925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
10926         * modules/popen (Depends-on, configure.ac): Update condition.
10927         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
10928         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
10929         fixed.
10930
10931 2011-09-17  Bruno Haible  <bruno@clisp.org>
10932
10933         isnanl, isnand, isnanf: Work around MSVC bug.
10934         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
10935
10936 2011-09-17  Bruno Haible  <bruno@clisp.org>
10937
10938         sys_socket tests: Fix recent mistake.
10939         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
10940
10941 2011-09-17  Bruno Haible  <bruno@clisp.org>
10942
10943         putenv: Support for MSVC.
10944         * modules/putenv (Depends-on): Add environ.
10945         * lib/putenv.c (environ): Disable declaration.
10946         * lib/unistd.in.h: Update comment.
10947
10948 2011-09-17  Bruno Haible  <bruno@clisp.org>
10949
10950         math: Avoid macro redefinition warnings on MSVC.
10951         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10952         Undefine before redefining.
10953
10954 2011-09-17  Bruno Haible  <bruno@clisp.org>
10955
10956         doc: Mention functions which are declared as macros.
10957         * doc/posix-functions/*[fl].texi: Mention that some functions are
10958         defined as macros with arguments only.
10959
10960 2011-09-17  Bruno Haible  <bruno@clisp.org>
10961
10962         Add dependencies to new dirent related modules.
10963         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10964         * modules/fts (Depends-on): Likewise.
10965         * modules/glob (Depends-on): Likewise.
10966         * modules/savedir (Depends-on): Likewise.
10967         * modules/scandir (Depends-on): Likewise.
10968         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10969         * modules/fdopendir (Depends-on): Add opendir.
10970
10971 2011-09-17  Bruno Haible  <bruno@clisp.org>
10972
10973         inet_pton: Support for MSVC on Windows Vista or newer.
10974         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10975         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10976         HAVE_DECL_INET_PTON is defined.
10977         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10978         On platforms with <winsock2.h>, test whether inet_pton is declared in
10979         <ws2tcpip.h>. If so, arrange to replace it.
10980         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10981         REPLACE_INET_PTON.
10982         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10983         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10984         (Depends-on, configure.ac): Update condition.
10985         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10986
10987 2011-09-17  Bruno Haible  <bruno@clisp.org>
10988
10989         inet_ntop: Support for MSVC on Windows Vista or newer.
10990         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10991         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10992         HAVE_DECL_INET_NTOP is defined.
10993         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10994         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10995         <ws2tcpip.h>. If so, arrange to replace it.
10996         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10997         REPLACE_INET_NTOP.
10998         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10999         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11000         (Depends-on, configure.ac): Update condition.
11001         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11002
11003 2011-09-16  Eric Blake  <eblake@redhat.com>
11004
11005         test-fsync: yet another enhancement
11006         * tests/test-fsync.c (main): Also test behavior on read-only text
11007         file.
11008
11009 2011-09-16  Bruno Haible  <bruno@clisp.org>
11010
11011         Enhance fsync, fdatasync tests.
11012         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11013         * tests/test-fdatasync.c (main): Likewise.
11014
11015 2011-09-16  Bruno Haible  <bruno@clisp.org>
11016
11017         Support for MSVC compiler: Ensure mode_t gets defined.
11018         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11019         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11020         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11021         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11022         * tests/test-fcntl-h.c: Check that mode_t is defined.
11023         * tests/test-sys_stat.c: Likewise.
11024         * tests/test-sys_types.c: Likewise.
11025         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11026         * doc/posix-headers/sys_stat.texi: Likewise.
11027         * doc/posix-headers/sys_types.texi: Likewise.
11028
11029 2011-09-16  Bruno Haible  <bruno@clisp.org>
11030
11031         sys_stat: Support for MSVC.
11032         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11033         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11034         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11035         MSVC.
11036
11037 2011-09-16  Bruno Haible  <bruno@clisp.org>
11038
11039         Support for MSVC compiler: Ensure off_t gets defined.
11040         * lib/unistd.in.h: Include <sys/types.h>.
11041         * tests/test-fcntl-h.c: Check that off_t is defined.
11042         * tests/test-sys_stat.c: Likewise.
11043         * tests/test-sys_types.c: Likewise.
11044
11045 2011-09-16  Eric Blake  <eblake@redhat.com>
11046
11047         fdatasync: port to Solaris
11048         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11049         * modules/fdatasync (Link): Document it.
11050         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11051
11052         fdatasync: port to MacOS X 10.7
11053         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11054         declared.
11055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11056         * modules/unistd (Makefile.am): Substitute it.
11057         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11058         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11059
11060         fdatasync: minor improvements
11061         * modules/fdatasync (Depends-on): Add condition for fsync.
11062         * lib/fdatasync.c (fdatasync): Add comment.
11063         * tests/test-unistd-c++.cc: Test fdatasync.
11064
11065         unistd: update refs to newer POSIX
11066         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11067         Suggested by Bruno Haible.
11068
11069         fdatasync: new module
11070         * modules/fsync (Description): Document difference to fdatasync.
11071         * modules/fdatasync: New module.
11072         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11073         * lib/fdatasync.c (fdatasync): Likewise.
11074         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11075         defaults.
11076         * modules/unistd (Makefile.am): Set witnesses.
11077         * lib/unistd.in.h (fdatasync): Declare.
11078         * MODULES.html.sh: Document it.
11079         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11080         * modules/fdatasync-tests: New test.
11081         * tests/test-fdatasync.c: Likewise.
11082
11083 2011-09-16  Eric Blake  <eblake@redhat.com>
11084
11085         test-fsync: enhance tests
11086         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11087         * tests/test-fsync.c (main): Enhance test.
11088
11089 2011-09-15  Bruno Haible  <bruno@clisp.org>
11090
11091         Support for MSVC compiler: Ensure ssize_t gets defined.
11092         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11093         * doc/posix-headers/stdio.texi: Likewise.
11094         * modules/stdio (Depends-on): Add ssize_t.
11095         * modules/sys_socket (Depends-on): Likewise.
11096         * modules/sys_types (Depends-on): Likewise.
11097         * modules/sys_uio (Depends-on): Likewise.
11098         * modules/unistd (Depends-on): Likewise.
11099         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11100         * tests/test-sys_types.c: Check that ssize_t is defined.
11101
11102 2011-09-14  Bruno Haible  <bruno@clisp.org>
11103
11104         Avoid using #, the m4 comment starter character, near brackets.
11105         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11106         delimiter character in sed expressions.
11107         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11108         Suggested by Eric Blake.
11109
11110         Properly quote AC_CHECK_DECLS' 4th argument.
11111         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11112         argument.
11113         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11114         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11115         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11116         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11117         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11118         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11120         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11121         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11122         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11123         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11124         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11125         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11126         * m4/isinf.m4 (gl_ISINF): Likewise.
11127         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11128         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11129         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11130         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11131         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11132         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11133         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11134         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11135         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11136         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11137         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11140         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11141         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11142         Reported by Eric Blake.
11143
11144         Properly quote AC_CHECK_DECL's 4th argument.
11145         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11146         argument.
11147         * m4/argp.m4 (gl_ARGP): Likewise.
11148         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11149         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11150         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11151         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11152         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11153         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11154         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11155         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11157         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11158         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11159         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11160         Reported by Eric Blake.
11161
11162 2011-09-14  Eric Blake  <eblake@redhat.com>
11163
11164         opendir: avoid compile warning
11165         * lib/opendir.c (includes): Always include errno.h.
11166         Reported by Tatsuro MATSUOKA.
11167
11168 2011-09-14  Jim Meyering  <meyering@redhat.com>
11169
11170         maint.mk: sc_tight_scope: propagate failure from sub-make
11171         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11172         Reported by Martin von Gagern.
11173
11174 2011-09-13  Bruno Haible  <bruno@clisp.org>
11175
11176         tempname: Support for MSVC.
11177         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11178         MSVC.
11179         * modules/tempname (Depends-on): Add fcntl-h.
11180
11181 2011-09-13  Bruno Haible  <bruno@clisp.org>
11182
11183         sys_time: Support for MSVC.
11184         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11185         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11186         include <winsock2.h>.
11187         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11188         function declarations that collide with POSIX.
11189         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11190         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11191
11192 2011-09-13  Bruno Haible  <bruno@clisp.org>
11193
11194         stat: Support for MSVC.
11195         * lib/stat.c: Include pathmax.h.
11196         * modules/stat (Depends-on): Add pathmax.
11197
11198         pathmax: Support for native Windows.
11199         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11200
11201 2011-09-12  Bruno Haible  <bruno@clisp.org>
11202
11203         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11204         * lib/dirent.in.h (struct dirent): New type.
11205         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11206         DT_WHT): New macros.
11207         (DIR): New type.
11208         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11209         (readdir, rewinddir): New declarations.
11210         * lib/dirent-private.h: New file.
11211         * lib/opendir.c: New file.
11212         * lib/readdir.c: New file.
11213         * lib/rewinddir.c: New file.
11214         * lib/closedir.c: New file.
11215         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11216         * m4/opendir.m4: New file.
11217         * m4/readdir.m4: New file.
11218         * m4/rewinddir.m4: New file.
11219         * m4/closedir.m4: New file.
11220         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11221         REPLACE_CLOSEDIR here.
11222         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11223         readdir, rewinddir are declared.
11224         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11225         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11226         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11227         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11228         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11229         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11230         * modules/opendir: New file.
11231         * modules/readdir: New file.
11232         * modules/rewinddir: New file.
11233         * modules/closedir: New file.
11234         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11235         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11236         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11237         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11238         * NEWS: Mention the 'fchdir' change.
11239
11240 2011-09-11  Bruno Haible  <bruno@clisp.org>
11241
11242         asm-underscore.m4: Support for MSVC.
11243         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11244         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11245
11246 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11247
11248         Doc about crypt functions.
11249         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11250         needing for _GNU_SOURCE to get crypt.
11251         * doc/posix-functions/encrypt.texi: Likewise.
11252         * doc/posix-functions/setkey.texi: Likewise.
11253
11254 2011-09-11  Bruno Haible  <bruno@clisp.org>
11255
11256         doc: Update regarding MSVC 9.
11257         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11258         tested".
11259         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11260         * doc/posix-headers/*.texi: Likewise.
11261         * doc/pastposix-functions/*.texi: Likewise.
11262         * doc/glibc-functions/*.texi: Likewise.
11263         * doc/glibc-headers/*.texi: Likewise.
11264
11265 2011-09-11  Bruno Haible  <bruno@clisp.org>
11266
11267         unistd et al.: Don't assume <unistd.h> exists.
11268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11269         does not exist.
11270         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11271         exist. But include <stdlib.h>.
11272         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11273         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11274         symlink() does not exist.
11275         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11276         include <io.h> instead.
11277         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11278         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11279         include <direct.h> instead.
11280         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11281         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11282         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11283         <io.h> instead.
11284         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11285         correctly if the system does not have hard links.
11286         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11287         <direct.h> instead.
11288         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11289         it when looking for function declarations.
11290         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11291         <direct.h> and <io.h> instead.
11292         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11293
11294 2011-09-11  Bruno Haible  <bruno@clisp.org>
11295
11296         strcase: Support for MSVC.
11297         * modules/strcase (Status, Notice): Remove obsoletion mark.
11298         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11299         * doc/posix-functions/strncasecmp.texi: Likewise.
11300
11301         strings: Don't assume <strings.h> exists.
11302         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11303         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11304         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11305         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11306
11307 2011-09-11  Bruno Haible  <bruno@clisp.org>
11308
11309         dirent: Don't assume <dirent.h> exists.
11310         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11311         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11312         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11313         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11314
11315 2011-09-11  Bruno Haible  <bruno@clisp.org>
11316
11317         Fix wint_t on MSVC.
11318         * lib/wchar.in.h (wint_t): On MSVC, override it.
11319         * lib/wctype.in.h (wint_t): Likewise.
11320         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11321         MSVC.
11322         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11323         * doc/posix-headers/wctype.texi: Likewise.
11324
11325 2011-09-11  Bruno Haible  <bruno@clisp.org>
11326
11327         sys_types: Fix typo.
11328         * lib/sys_types.in.h: Fix typo in comment.
11329         Reported by Paul Eggert.
11330
11331         Support for MSVC compiler: Ensure size_t gets defined.
11332         * modules/strings (Depends-on): Add 'sys_types'.
11333         * modules/sys_uio (Depends-on): Likewise.
11334         * lib/sys_uio.in.h: Update comment.
11335
11336         C++ tests for module 'sys_types'.
11337         * modules/sys_types-c++-tests: New file.
11338         * tests/test-sys_types-c++.cc: New file.
11339
11340         Tests for module 'sys_types'.
11341         * modules/sys_types-tests: New file.
11342         * tests/test-sys_types.c: New file.
11343
11344         New module 'sys_types'.
11345         * lib/sys_types.in.h: New file.
11346         * m4/sys_types_h.m4: New file.
11347         * modules/sys_types: New file.
11348         * doc/posix-headers/sys_types.texi: Mention the new module and the
11349         size_t problem on MSVC 9.
11350
11351 2011-09-11  Bruno Haible  <bruno@clisp.org>
11352
11353         Support for MSVC compiler: Avoid division by a literal 0.
11354         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11355         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11356         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11357         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11358         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11359         * tests/infinity.h: New file.
11360         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11361         on MSVC.
11362         * tests/test-ceilf1.c: Include infinity.h.
11363         (main): Use Infinityf.
11364         * tests/test-ceil1.c: Include infinity.h.
11365         (main): Use Infinityd.
11366         * tests/test-ceill.c: Include infinity.h.
11367         (main): Use Infinityl.
11368         * tests/test-dprintf-posix.c: Include infinity.h.
11369         (test_function): Use Infinityd.
11370         * tests/test-floorf1.c: Include infinity.h.
11371         (main): Use Infinityf.
11372         * tests/test-floor1.c: Include infinity.h.
11373         (main): Use Infinityd.
11374         * tests/test-floorl.c: Include infinity.h.
11375         (main): Use Infinityl.
11376         * tests/test-fprintf-posix.c: Include infinity.h.
11377         (test_function): Use Infinityd.
11378         * tests/test-frexp.c: Include infinity.h.
11379         (main): Use Infinityd.
11380         * tests/test-frexpl.c: Include infinity.h.
11381         (main): Use Infinityl.
11382         * tests/test-isfinite.c: Include infinity.h.
11383         (test_isfinitef): Use Infinityf.
11384         (test_isfinited): Use Infinityd.
11385         (test_isfinitel): Use Infinityl.
11386         * tests/test-isinf.c: Include infinity.h.
11387         (test_isinff): Use Infinityf.
11388         (test_isinfd): Use Infinityd.
11389         (test_isinfl): Use Infinityl.
11390         * tests/test-isnan.c: Include infinity.h.
11391         (test_float): Use Infinityf.
11392         (test_double): Use Infinityd.
11393         (test_long_double): Use Infinityl.
11394         * tests/test-isnanf.h: Include infinity.h.
11395         (main): Use Infinityf.
11396         * tests/test-isnand.h: Include infinity.h.
11397         (main): Use Infinityd.
11398         * tests/test-isnanl.h: Include infinity.h.
11399         (main): Use Infinityl.
11400         * tests/test-ldexpl.c: Include infinity.h.
11401         (main): Use Infinityl.
11402         * tests/test-printf-posix.h: Include infinity.h.
11403         (test_function): Use Infinityd.
11404         * tests/test-roundf1.c: Include infinity.h.
11405         (main): Use Infinityf.
11406         * tests/test-round1.c: Include infinity.h.
11407         (main): Use Infinityd.
11408         * tests/test-roundl.c: Include infinity.h.
11409         (main): Use Infinityl.
11410         * tests/test-signbit.c: Include infinity.h.
11411         (test_signbitf): Use Infinityf.
11412         (test_signbitd): Use Infinityd.
11413         (test_signbitl): Use Infinityl.
11414         * tests/test-snprintf-posix.h: Include infinity.h.
11415         (test_function): Use Infinityd, Infinityl.
11416         * tests/test-sprintf-posix.h: Include infinity.h.
11417         (test_function): Use Infinityd, Infinityl.
11418         * tests/test-truncf1.c: Include infinity.h.
11419         (main): Use Infinityf.
11420         * tests/test-trunc1.c: Include infinity.h.
11421         (main): Use Infinityd.
11422         * tests/test-truncl.c: Include infinity.h.
11423         (main): Use Infinityl.
11424         * tests/test-vasnprintf-posix.c: Include infinity.h.
11425         (test_function): Use Infinityd, Infinityl.
11426         * tests/test-vasprintf-posix.c: Include infinity.h.
11427         (test_function): Use Infinityd, Infinityl.
11428         * modules/ceilf-tests (Files): Add tests/infinity.h.
11429         * modules/ceil-tests (Files): Likewise.
11430         * modules/ceill-tests (Files): Likewise.
11431         * modules/dprintf-posix-tests (Files): Likewise.
11432         * modules/floorf-tests (Files): Likewise.
11433         * modules/floor-tests (Files): Likewise.
11434         * modules/floorl-tests (Files): Likewise.
11435         * modules/fprintf-posix-tests (Files): Likewise.
11436         * modules/frexp-tests (Files): Likewise.
11437         * modules/frexp-nolibm-tests (Files): Likewise.
11438         * modules/frexpl-tests (Files): Likewise.
11439         * modules/frexpl-nolibm-tests (Files): Likewise.
11440         * modules/isfinite-tests (Files): Likewise.
11441         * modules/isinf-tests (Files): Likewise.
11442         * modules/isnan-tests (Files): Likewise.
11443         * modules/isnanf-tests (Files): Likewise.
11444         * modules/isnanf-nolibm-tests (Files): Likewise.
11445         * modules/isnand-tests (Files): Likewise.
11446         * modules/isnand-nolibm-tests (Files): Likewise.
11447         * modules/isnanl-tests (Files): Likewise.
11448         * modules/isnanl-nolibm-tests (Files): Likewise.
11449         * modules/ldexpl-tests (Files): Likewise.
11450         * modules/printf-posix-tests (Files): Likewise.
11451         * modules/roundf-tests (Files): Likewise.
11452         * modules/round-tests (Files): Likewise.
11453         * modules/roundl-tests (Files): Likewise.
11454         * modules/signbit-tests (Files): Likewise.
11455         * modules/snprintf-posix-tests (Files): Likewise.
11456         * modules/sprintf-posix-tests (Files): Likewise.
11457         * modules/truncf-tests (Files): Likewise.
11458         * modules/trunc-tests (Files): Likewise.
11459         * modules/truncl-tests (Files): Likewise.
11460         * modules/vasnprintf-posix-tests (Files): Likewise.
11461         * modules/vasprintf-posix-tests (Files): Likewise.
11462         * modules/vdprintf-posix-tests (Files): Likewise.
11463         * modules/vfprintf-posix-tests (Files): Likewise.
11464         * modules/vprintf-posix-tests (Files): Likewise.
11465         * modules/vsnprintf-posix-tests (Files): Likewise.
11466         * modules/vsprintf-posix-tests (Files): Likewise.
11467         * modules/xprintf-posix-tests (Files): Likewise.
11468
11469 2011-09-11  Bruno Haible  <bruno@clisp.org>
11470
11471         Ensure pid_t gets defined.
11472         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11473         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11474         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11475         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11476         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11477         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11478         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11479         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11480         * tests/test-fcntl-h.c: Check that pid_t is defined.
11481         * tests/test-sched.c: Likewise.
11482         * tests/test-termios.c: Likewise.
11483         * tests/test-time.c: Likewise.
11484         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11485         * doc/posix-headers/signal.texi: Likewise.
11486         * doc/posix-headers/sys_types.texi: Likewise.
11487         * doc/posix-headers/time.texi: Likewise.
11488
11489 2011-09-11  Bruno Haible  <bruno@clisp.org>
11490
11491         acl: Fix compilation on Solaris 10 (older version).
11492         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11493         of ACE_EVERYONE.
11494         * lib/set-mode-acl.c (qset_acl): Likewise.
11495         Reported by Christian Jullien <eligis@orange.fr>.
11496
11497 2011-09-10  Bruno Haible  <bruno@clisp.org>
11498
11499         iconv, unsetenv: Add support for MSVC compiler.
11500         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11501         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11502
11503 2011-09-10  Bruno Haible  <bruno@clisp.org>
11504
11505         *printf: Add support for MSVC compiler.
11506         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11507         handles the exception caused by the %n directive. When cross-compiling,
11508         guess no on native Windows.
11509         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11510         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11511         emulate it through vsnprintf.
11512         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11513         * doc/posix-functions/dprintf.texi: Update documentation regarding
11514         MSVC 9.
11515         * doc/posix-functions/fprintf.texi: Likewise.
11516         * doc/posix-functions/printf.texi: Likewise.
11517         * doc/posix-functions/snprintf.texi: Likewise.
11518         * doc/posix-functions/sprintf.texi: Likewise.
11519         * doc/posix-functions/swprintf.texi: Likewise.
11520         * doc/posix-functions/vdprintf.texi: Likewise.
11521         * doc/posix-functions/vfprintf.texi: Likewise.
11522         * doc/posix-functions/vprintf.texi: Likewise.
11523         * doc/posix-functions/vsnprintf.texi: Likewise.
11524         * doc/posix-functions/vsprintf.texi: Likewise.
11525         * doc/glibc-functions/asprintf.texi: Likewise.
11526         * doc/glibc-functions/obstack_printf.texi: Likewise.
11527         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11528         * doc/glibc-functions/vasprintf.texi: Likewise.
11529
11530 2011-09-10  Bruno Haible  <bruno@clisp.org>
11531
11532         nocrash: Add support for native Windows.
11533         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11534
11535 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11536             Bruno Haible  <bruno@clisp.org>
11537
11538         absolute-header, include-next: Add support for MSVC compiler.
11539         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11540         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11541         directory separator in #line directives.
11542         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11543         recognize also backslash as directory separator in #line directives.
11544
11545 2011-09-08  Jim Meyering  <meyering@redhat.com>
11546
11547         maint.mk: mark the post-release commit log with "maint: " prefix
11548         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11549         one-line commit-log summary.
11550
11551 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11552             Bruno Haible  <bruno@clisp.org>
11553
11554         Doc about crypt functions.
11555         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11556         systems.
11557         * doc/posix-functions/encrypt.texi: Likewise.
11558         * doc/posix-functions/setkey.texi: Likewise.
11559
11560 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11561
11562         * lib/gc.h: Fix copyright header.
11563
11564 2011-09-07  Bruno Haible  <bruno@clisp.org>
11565
11566         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11567         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11568         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11569
11570 2011-09-07  Bruno Haible  <bruno@clisp.org>
11571
11572         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11573         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11574         * lib/freopen.c: Likewise.
11575         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11576         * lib/lstat.c: Likewise.
11577         * lib/stat.c: Likewise.
11578         * lib/open.c: Use different syntax for include of <fcntl.h>.
11579         * lib/openat.c: Include fcntl.h again, explicitly.
11580
11581 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11582
11583         parse-datetime: document the newly accepted format
11584         * doc/parse-datetime.texi (Combined date and time of day items):
11585         New section.
11586
11587 2011-09-06  Bruno Haible  <bruno@clisp.org>
11588
11589         acl: Fix a test failure on newer Solaris 10 with ZFS.
11590         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11591         ENOSYS as no ACL.
11592         Reported by Jim Meyering.
11593
11594 2011-09-06  Bruno Haible  <bruno@clisp.org>
11595
11596         acl: Update for AIX >= 5.3 with NFS.
11597         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11598         ENOSYS as no ACL.
11599
11600         acl: Fix a test failure on AIX >= 5.3 with NFS.
11601         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11602         as no ACL.
11603
11604 2011-09-06  Bruno Haible  <bruno@clisp.org>
11605
11606         acl: Fix a test failure on IRIX 6.5 with NFS.
11607         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11608         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11609         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11610         * lib/copy-acl.c (qcopy_acl): Likewise.
11611
11612 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11613
11614         openat: port to AIX 7.1 with large files
11615         AIX 7.1 does a "#define openat open64at" if large files are in use,
11616         so we can't simply #undef openat.  Use the orig_openat trick (similar
11617         to orig_open in lib/open.c) to work around the problem.  Problem
11618         reported by Kevin Brott for GNU tar, in the thread containing
11619         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11620         * lib/openat.c (__need_system_fcntl_h): Define first.
11621         Include <fcntl.h> and <sys/types.h> before undefining.
11622         (orig_openat) [HAVE_OPENAT]: New inline function.
11623         (openat) [HAVE_OPENAT]: Do not undef.
11624         (rpl_openat): Use orig_openat, not openat.
11625
11626 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11627             Bruno Haible  <bruno@clisp.org>
11628
11629         acl: Avoid errors on NonStop Kernel.
11630         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11631         ENOTSUP errors.
11632
11633 2011-09-05  Bruno Haible  <bruno@clisp.org>
11634
11635         acl: Clean up Solaris code.
11636         * lib/acl-internal.h: Remove no-op #if.
11637         * lib/file-has-acl.c: Likewise.
11638         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11639         * lib/copy-acl.c (qcopy_acl): Likewise.
11640
11641 2011-09-05  Bruno Haible  <bruno@clisp.org>
11642
11643         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11644         binaries built on the original Solaris 10.
11645         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11646         trivial.
11647
11648 2011-09-05  Bruno Haible  <bruno@clisp.org>
11649
11650         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11651         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11652         10.
11653         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11654         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11655         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11656         instead of acl_get, facl_get, acl_set, facl_set.
11657
11658 2011-09-05  Bruno Haible  <bruno@clisp.org>
11659
11660         copy-file: Try unit tests on more file systems.
11661         * tests/test-copy-file-1.sh: New file.
11662         * tests/test-copy-file-2.sh: New file.
11663         * modules/copy-file-tests (Files): Add them.
11664         (Makefile.am): Add them to TESTS.
11665
11666         acl: Try unit tests on more file systems.
11667         * tests/test-file-has-acl-1.sh: New file.
11668         * tests/test-file-has-acl-2.sh: New file.
11669         * tests/test-set-mode-acl-1.sh: New file.
11670         * tests/test-set-mode-acl-2.sh: New file.
11671         * tests/test-copy-acl-1.sh: New file.
11672         * tests/test-copy-acl-2.sh: New file.
11673         * modules/acl-tests (Files): Add them.
11674         (Makefile.am): Add them to TESTS.
11675
11676 2011-09-04  Bruno Haible  <bruno@clisp.org>
11677
11678         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11679         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11680         10.
11681         (OLD_ALLOW, OLD_DENY): New macros.
11682         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11683         ACE_ACCESS_ALLOWED_ACE_TYPE.
11684         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11685         ACE_ACCESS_DENIED_ACE_TYPE.
11686         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11687         (NEW_ACE_EXECUTE): Fix value.
11688         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11689         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11690         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11691         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11692         NEW_ACE_SYNCHRONIZE): New macros.
11693         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11694         instead of acl_fromtext, acl_set, facl_set.
11695         Fixes a coreutils/tests/cp/perm failure.
11696
11697 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11698
11699         openat: test for fstatat (..., 0) bug
11700         Further testing with tar suggests that fstatat (..., 0)
11701         does not work in general, on AIX 7.1; see
11702         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11703         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11704         replacement fstatat (which is what older AIX releases were using
11705         anyway).
11706         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11707         use is now changed to orig_fstatat.  This was probably the right
11708         thing to do anyway.
11709         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11710         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11711         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11712         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11713         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11714         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11715         if the bug is found.
11716
11717         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11718         This tests for another fstatat bug on AIX 7.1:
11719         fstatat (AT_FDCWD, ..., 0) does not work.  See
11720         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11721         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11722         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11723         (rpl_fstatat): Adjust so that it works around either (or both)
11724         bugs if present.
11725         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11726
11727 2011-09-03  Karl Berry  <karl@gnu.org>
11728
11729         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11730         in index entries.
11731
11732 2011-09-02  Bruno Haible  <bruno@clisp.org>
11733
11734         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11735         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11736         values of AR, ARFLAGS, RANLIB.
11737         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11738
11739 2011-09-02  Bruno Haible  <bruno@clisp.org>
11740
11741         Find 'ar' program that fits with --host argument.
11742         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11743
11744 2011-09-02  Bruno Haible  <bruno@clisp.org>
11745
11746         tests: init.sh: Support any non-GNU diff.
11747         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11748         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11749         Solaris 8.
11750
11751 2011-09-02  Bruno Haible  <bruno@clisp.org>
11752
11753         tests: init.sh: work also with any non-GNU diff that supports -u
11754         * tests/init.sh: Relax check for diff -u support.
11755         Rather than checking for GNU diff via --version, simply check
11756         for support for -u itself.  Useful at least on OpenBSD 4.9,
11757         AIX 7.1, IRIX 6.5, and Solaris 10.
11758
11759 2011-09-01  Bruno Haible  <bruno@clisp.org>
11760
11761         strtoimax, strtoumax: Document problem on HP-UX 11.
11762         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11763         * doc/posix-functions/strtoumax.texi: Likewise.
11764
11765 2011-09-01  Bruno Haible  <bruno@clisp.org>
11766
11767         strtoumax: Avoid link error on OSF/1 with DTK cc.
11768         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11769         defined as a function.
11770         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11771         strtoumax is defined, not whether it is declared.
11772
11773 2011-09-01  Bruno Haible  <bruno@clisp.org>
11774
11775         strtoimax: Avoid link error on OSF/1 with DTK cc.
11776         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11777         defined as a function.
11778         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11779         strtoimax is defined, not whether it is declared.
11780
11781 2011-09-01  Bruno Haible  <bruno@clisp.org>
11782
11783         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11784         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11785         as a function.
11786         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11787         whether it is declared.
11788
11789 2011-09-01  Bruno Haible  <bruno@clisp.org>
11790
11791         imaxabs: Avoid link error on OSF/1 with DTK cc.
11792         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11793         as a function.
11794         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11795         whether it is declared.
11796
11797 2011-09-01  Bruno Haible  <bruno@clisp.org>
11798
11799         Tests for module 'strtoumax'.
11800         * modules/strtoumax-tests: New file.
11801         * tests/test-strtoumax.c: New file.
11802
11803         Tests for module 'strtoimax'.
11804         * modules/strtoimax-tests: New file.
11805         * tests/test-strtoimax.c: New file.
11806
11807         Tests for module 'imaxdiv'.
11808         * modules/imaxdiv-tests: New file.
11809         * tests/test-imaxdiv.c: New file.
11810
11811         Tests for module 'imaxabs'.
11812         * modules/imaxabs-tests: New file.
11813         * tests/test-imaxabs.c: New file.
11814
11815 2011-09-01  Bruno Haible  <bruno@clisp.org>
11816
11817         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
11818         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
11819         pthread_create.
11820
11821 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11822
11823         openat: work around AIX 7.1 fstatat issue
11824         This should fix the problem that was not properly fixed
11825         in the previous change, dated 2011-08-30.
11826         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
11827         __need_system_stat_h defined.
11828         (orig_fstatat) [HAVE_FSTATAT]: New function.
11829         (rpl_fstatat): Go back to the old way of doing things,
11830         except call orig_fstatat instead of fstatat.
11831         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
11832         Remove unnecessary check whether fstatat fills in st_size etc.
11833
11834 2011-09-01  Bruno Haible  <bruno@clisp.org>
11835
11836         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
11837         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
11838         just include the system's header.
11839
11840 2011-08-31  Jim Meyering  <meyering@redhat.com>
11841
11842         tests: avoid spurious assertion failure in test-float.c on ppc64
11843         * tests/test-float.c (test_long_double): Comment out an assertion,
11844         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
11845         with gcc-4.4.4.
11846
11847         maint: indent with spaces, not TABs
11848         I need to get in the habit of running gnulib's "make check".
11849         Both of these would have been caught.
11850         * m4/largefile.m4: Indent with spaces, not TABs.
11851         * lib/parse-datetime.y (iso_8601_time): Likewise.
11852         Spotted by Pádraig Brady.
11853
11854         test-parse-datetime.c: accommodate a relatively strict gcc warning
11855         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
11856         to avoid a warning from gcc's -Werror=missing-declarations.
11857         Insert a few spaces-before-funcall-parenthesis.
11858
11859 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
11860
11861         parse-datetime: accept ISO 8601 date and time rep with "T" separator
11862         The parser now accepts ISO 8601 date-time strings with "T" as the
11863         separator.  It has long parsed dates like "2004-02-29 16:21:42"
11864         with a space between the date and time strings.  Now it also parses
11865         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
11866         variants like "2004-02-29T16:21:42.333-07:00"
11867         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
11868         of day representation using the 'T' separator character.
11869         * doc/parse-datetime.texi (General date syntax): replace use of
11870         deprecated --iso-8601 option with --rfc-3339 in example of date
11871         command output formats that can be parsed.
11872         * tests/test-parse-datetime.c (tm_diff): New function, taken from
11873         lib/parse-datetime.y.
11874         (gmt_offset): New function.
11875         (main): Add additional test cases to validate ISO8601 extended
11876         date and time of day parsing.
11877
11878 2011-08-31  Bruno Haible  <bruno@clisp.org>
11879
11880         freopen: Documentation.
11881         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
11882         name.
11883         Reported by Claudio Bley <claudio.bley@gmail.com>.
11884
11885 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
11886
11887         freopen: Don't crash if the filename argument is NULL.
11888         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
11889         NULL.
11890
11891 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
11892
11893         openat: work around AIX 7.1 fstatat bug
11894         Problem reported by Kevin Brott for GNU tar, in the thread containing
11895         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
11896         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
11897         FSTATAT_ST_SIZE_ETC_BROKEN.
11898         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
11899         rpl_fstatat.
11900         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
11901         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
11902         AC_CHECK_FUNCS_ONCE for fstatat.
11903         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
11904         fchmodat, mkdirat, openat and unlinkat.
11905
11906 2011-08-30  Bruno Haible  <bruno@clisp.org>
11907
11908         Avoid endless recursions if config.h includes some header files.
11909         * lib/fopen.c (__need_FILE): Define already before including config.h.
11910         * lib/freopen.c (__need_FILE): Likewise.
11911         * lib/open.c (__need_system_fcntl_h): Likewise.
11912         * lib/stat.c (__need_system_sys_stat_h): Likewise.
11913         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
11914         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11915
11916 2011-08-25  Karl Berry  <karl@gnu.org>
11917
11918         * config/srclist.txt (ylwrap): new try.
11919         * build-aux/ylwrap: new file.
11920
11921 2011-08-23  Bruno Haible  <bruno@clisp.org>
11922
11923         tmpdir: Use a good default directory on native Windows.
11924         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
11925         (P_tmpdir): Default to _P_tmpdir on native Windows.
11926         (path_search): On native Windows, try the value returned by GetTempPath
11927         before trying P_tmpdir.
11928         * modules/tmpdir (Depends-on): Add pathmax.
11929         Suggested by John Darrington <john@darrington.wattle.id.au>.
11930
11931 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
11932
11933         doc: fix typo in README-release
11934         * top/README-release: Capitalize first word of a sentence.
11935
11936 2011-08-19  Jim Meyering  <meyering@redhat.com>
11937
11938         fts: do not exhaust memory when processing million-entry directories
11939         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
11940         directory would require about 256*N bytes of memory.  Thus, it was
11941         easy to construct a directory too large to be processed by any of
11942         those tools.  With this change, fts' maximum memory utilization is
11943         now limited to around 30MB.
11944         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
11945         (fts_read): When we've processed the final entry (i.e., when
11946         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
11947         using the parent entry to read any remaining entries.  Dispatch
11948         depending on what fts_build returns:
11949         - NULL+stop, aka failure: stop
11950         - NULL otherwise: move up in the dir hierarchy
11951         - non-NULL: handle this new entry
11952         (fts_build): Declare and use new local, continue_readdir.
11953         Prepare to be called from fts_read, when the entries
11954         from a partially-read directory have just been exhausted.
11955         In that case, we'll skip the opendir and instead use the parent's
11956         fts_dirp and derive dir_fd from that.
11957         Finally, in the readdir loop, if we read max_entries entries,
11958         exit the loop ensuring *not* to call closedir.  This is required
11959         so that fts_dirp can be reused on a subsequent call.
11960         Prompted by Ben England's report of memory exhaustion in find
11961         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11962
11963         maint: fts: move decl of `dp' down into while loop; split a long line
11964         * lib/fts.c (fts_build): No semantic change.
11965
11966         fts: add/use new struct member, fts_dirp
11967         We are about to use this to manage any directory with
11968         too many entries to read all of them into memory at once.
11969         To do that, we'll need to save the DIR* pointer in each
11970         affected FTSENT struct.
11971         * lib/fts_.h: Include <dirent.h>.
11972         (struct FTSENT) [fts_dirp]: New member.
11973         * lib/fts.c (closedir_and_clear): Define.
11974         Use it in place of closedir so that we are sure to
11975         clear the new fts_dirp member when done with it.
11976         (fts_alloc): Initialize the new member.
11977         (fts_lfree): Free, if needed.
11978
11979         maint: fts: give __opendir2 a new parameter and rename
11980         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11981         than surreptitiously using sole caller's "dir_fd".
11982         (fts_opendir): Rename from __opendir2.
11983
11984         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11985         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11986
11987         maint: fts.c: correct off-by-one indentation
11988         * lib/fts.c (fts_build): Correct indentation, change style
11989         of a couple of block comments, and bracing style.
11990
11991         maint: fts.c: move __opendir2 #define "up" out of function body
11992         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11993
11994         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11995         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11996         out for a long time and besides was useful only on BSD systems.
11997
11998 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11999
12000         regex: port to Stratus OpenVOS
12001         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12002         define to empty, rather than attempting nonportable optimizations.
12003         Problem reported by Paul Green in:
12004         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12005         and fix suggested by Eric Blake in:
12006         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12007
12008 2011-08-17  Eric Blake  <eblake@redhat.com>
12009
12010         getcwd: fix test failures on mingw
12011         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12012         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12013         test if long directory cannot be created, and allow mingw errno.
12014
12015         getcwd-lgpl: fix m4 to match relaxed test for BSD
12016         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12017         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12018         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12019         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12020         signature problem.
12021
12022         getcwd: fix compilation on mingw64
12023         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12024         getcwd.
12025         Reported by Marc-André Lureau.
12026
12027         pipe2: silence compiler warning
12028         * lib/pipe2.c (pipe2): Hide label if it is not used.
12029
12030 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12031
12032         relocatable-prog: fix link error
12033         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12034         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12035         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12036         into modules/relocatable-lib without noticing that
12037         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12038         also needs to build relocatable.c.
12039
12040 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12041
12042         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12043         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12044         shell code: it contained a 'break' that was not in a loop.
12045         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12046         via a shell-language loop; this may have been true in old Autoconf
12047         versions, but it's not true in Autoconf 2.68.  I found this bug
12048         when testing coreutils git on Solaris 8, whose shell complains
12049         about the syntax error.
12050
12051 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12052
12053         * lib/base64.c: Fix comment to reference RFC 4648.
12054         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12055         <gvtulder@gmail.com>.
12056
12057 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12058
12059         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12060
12061         po/Makefile.in.in: fix make -q problem
12062         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12063         rule, since there's no file named 'check-macro-version' and its
12064         use as a file breaks make -q.
12065         (all): Don't depend on check-macro-version.
12066         (CHECK_MACRO_VERSION): New macro.
12067         (stamp-po): Use it.
12068
12069         configmake: fix make -q problem
12070         * modules/configmake (configmake.h): Update configmake.h's time stamp
12071         even if the file does not change.  Otherwise, 'make -q' fails.
12072         Problem reported by Simon Josefsson in
12073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12074
12075 2011-08-11  Jim Meyering  <meyering@redhat.com>
12076
12077         git-version-gen: correct the advice in a comment
12078         * build-aux/git-version-gen: Correct comment.
12079         Don't recommend to list .tarball-version in .gitignore.
12080
12081 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12082
12083         base64: fix off-by-one buffer size bug
12084         Problem and (trivial) fix reported by Gijs van Tulder in
12085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12086         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12087         * tests/test-base64.c (main): Catch the bug.
12088
12089 2011-08-10  Eric Blake  <eblake@redhat.com>
12090
12091         closein: correct comments
12092         * lib/closein.c (close_stdin): Improve comments.
12093
12094 2011-08-09  Bruno Haible  <bruno@clisp.org>
12095
12096         More tests for 'fseeko'.
12097         * tests/test-fseeko3.c: New file, from Eric Blake.
12098         * tests/test-fseeko3.sh: New file.
12099         * modules/fseeko-tests (Files): Add them.
12100         (TESTS): Add test-fseeko3.sh.
12101         (check_PROGRAMS): Add test-fseeko3.
12102
12103 2011-08-09  Eric Blake  <eblake@redhat.com>
12104
12105         fseeko: remove unneeded hack
12106         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12107
12108         fseeko: fix bug on glibc
12109         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12110         Reported by John W. Eaton.
12111
12112 2011-08-08  Bruno Haible  <bruno@clisp.org>
12113
12114         unictype/base: Fix interoperability with preinstalled libunistring.
12115         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12116         Reported by Simon Josefsson.
12117
12118 2011-08-08  Bruno Haible  <bruno@clisp.org>
12119
12120         iswblank: Detect declaration correctly.
12121         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12122         AC_CHECK_DECLS invocation.
12123
12124 2011-08-08  Bruno Haible  <bruno@clisp.org>
12125
12126         tcgetsid: Detect declaration correctly.
12127         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12128         AC_CHECK_DECLS invocation.
12129         Reported by Simon Josefsson.
12130
12131 2011-08-08  Eric Blake  <eblake@redhat.com>
12132
12133         largefile: fix typo that regressed large file support
12134         * modules/largefile (configure.ac-early): Fix section name.
12135
12136 2011-08-06  Karl Berry  <karl@gnu.org>
12137
12138         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12139         a separate module.
12140
12141 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12142
12143         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12144         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12145         get prototype for free.
12146
12147 2011-08-04  Bruno Haible  <bruno@clisp.org>
12148
12149         Tests for module 'pathmax'.
12150         * modules/pathmax-tests: New file.
12151         * tests/test-pathmax.c: New file.
12152
12153         canonicalize-lgpl: Support larger filenames on the Hurd.
12154         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12155         Reported by Paul Eggert.
12156
12157         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12158         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12159         * lib/chdir-long.h: Include pathmax.h.
12160         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12161         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12162         (PATH_MAX): Remove code that is done by pathmax.h.
12163         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12164         * lib/tmpfile.c: Add a comment.
12165         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12166         * modules/chdir-long (Depends-on): Add pathmax.
12167         * modules/getcwd (Depends-on): Add pathmax.
12168         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12169         is not defined.
12170         * doc/posix-headers/limits.texi: Mention the pathmax module.
12171         * NEWS: Mention the change.
12172
12173 2011-08-02  Bruno Haible  <bruno@clisp.org>
12174
12175         pthread_sigmask: Actually use results of gl_THREADLIB.
12176         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12177         gl_THREADLIB, not gl_[]THREADLIB.
12178         Reported by Eric Blake.
12179
12180 2011-08-02  Jim Meyering  <meyering@redhat.com>
12181
12182         maint.mk: relax the default _gl_TS_function_match regexp
12183         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12184         space between function name and "(" in an "extern" declaration.
12185         That would fail to match a decl with no space there: extern void foo();
12186
12187 2011-07-31  Iain Nicol  <iain@thenicols.net>
12188
12189         git-version-gen: document that EXTRA_DIST must include .version
12190         * build-aux/git-version-gen: In the how-to-use comment, document
12191         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12192         will fail when run from an unpacked distribution tarball.
12193
12194 2011-08-01  Bruno Haible  <bruno@clisp.org>
12195
12196         wctype-h: Fix last change.
12197         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12198         REPLACE_TOWLOWER to 0.
12199         Reported by Sam Steingold <sds@gnu.org>.
12200
12201 2011-07-31  Bruno Haible  <bruno@clisp.org>
12202
12203         frexpl: Update autoconf test.
12204         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12205         according to changes of 2011-06-20.
12206
12207 2011-07-31  Bruno Haible  <bruno@clisp.org>
12208
12209         sys_utsname: Add support for Minix.
12210         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12211         <sys/utsname.h>.
12212         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12213         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12214
12215 2011-07-31  Bruno Haible  <bruno@clisp.org>
12216
12217         strings: Add support for Minix.
12218         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12219         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12220         * doc/posix-headers/strings.texi: Document the Minix problem.
12221
12222 2011-07-31  Bruno Haible  <bruno@clisp.org>
12223
12224         wctype-h: Add support for Minix.
12225         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12226         REPLACE_TOWLOWER.
12227         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12228         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12229         REPLACE_ISWCNTRL.
12230
12231 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12232
12233         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12234         This is a performance improvement for 64-bit hosts: it causes the
12235         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12236
12237 2011-07-31  Bruno Haible  <bruno@clisp.org>
12238
12239         stdioext: Add support for Minix.
12240         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12241         * lib/fpurge.c (fpurge): Likewise.
12242         * lib/freadahead.c (freadahead): Likewise.
12243         * lib/freadable.c (freadable): Likewise.
12244         * lib/freading.c (freading): Likewise.
12245         * lib/freadptr.c (freadptr): Likewise.
12246         * lib/freadseek.c (freadptrinc): Likewise.
12247         * lib/fseeko.c (rpl_fseeko): Likewise.
12248         * lib/fseterr.c (fseterr): Likewise.
12249         * lib/fwritable.c (fwritable): Likewise.
12250         * lib/fwriting.c (fwriting): Likewise.
12251         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12252         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12253
12254 2011-07-31  Bruno Haible  <bruno@clisp.org>
12255
12256         errno: Port to Minix.
12257         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12258         ECONNABORTED are defined.
12259         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12260         GNULIB_defined_ECONNABORTED): New macros.
12261         * lib/strerror-override.h (strerror_override): Test also
12262         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12263         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12264         ECONNABORTED.
12265         * doc/posix-headers/errno.texi: Mention the Minix problem.
12266
12267 2011-07-31  Bruno Haible  <bruno@clisp.org>
12268
12269         Work around declaration collisions on Minix.
12270         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12271         defined, set REPLACE_MBSINIT.
12272         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12273         defined, set REPLACE_MBRTOWC.
12274         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12275         set REPLACE_MBRLEN.
12276         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12277         defined, set REPLACE_MBSRTOWCS.
12278         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12279         defined, set REPLACE_WCRTOMB.
12280         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12281         defined, set REPLACE_WCSRTOMBS.
12282
12283 2011-07-31  Bruno Haible  <bruno@clisp.org>
12284
12285         Add support for Minix with ACK compiler.
12286         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12287         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12288         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12289
12290 2011-07-31  Bruno Haible  <bruno@clisp.org>
12291
12292         Documentation about Minix.
12293         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12294         * doc/glibc-headers/*.texi: Likewise.
12295         * doc/posix-functions/*.texi: Likewise.
12296         * doc/glibc-functions/*.texi: Likewise.
12297
12298 2011-07-31  Bruno Haible  <bruno@clisp.org>
12299
12300         snippet/warn-on-use: Fix indentation.
12301         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12302
12303 2011-07-25  Jim Meyering  <meyering@redhat.com>
12304
12305         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12306         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12307         commands.
12308
12309 2011-07-27  Jim Meyering  <meyering@redhat.com>
12310
12311         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12312         * top/maint.mk (gl_extract_significant_defines_): Now that
12313         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12314         gnulib/lib/signal.in.h, and now that we recommend to
12315         define-if-undefined those two symbols in application code,
12316         we must filter them out of the "significant" list.
12317         This avoids a "make syntax-check" failure in coreutils.
12318
12319 2011-07-26  Eric Blake  <eblake@redhat.com>
12320
12321         warnings: add comments about previous patch
12322         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12323         * m4/include_next.m4: Likewise.
12324         * m4/warn-on-use.m4: Likewise.
12325         * m4/warnings.m4: Likewise, and simplify use.
12326         Suggested by Stefano Lattarini.
12327
12328         include-next, warnings: support older autoconf
12329         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12330         AS_VAR_PUSHDEF in a way that works with older autoconf.
12331         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12332         Reported by Daniel P. Berrange.
12333
12334 2011-07-25  Bruno Haible  <bruno@clisp.org>
12335
12336         fseek, ftell: Fix doc.
12337         * doc/posix-functions/fseek.texi: Reword statement about
12338         AC_SYS_LARGEFILE.
12339         * doc/posix-functions/ftell.texi: Likewise.
12340
12341 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12342             Bruno Haible  <bruno@clisp.org>
12343
12344         Add dependencies to the 'largefile' module.
12345         * modules/fopen (Depends-on): Add 'largefile'.
12346         * modules/freopen (Depends-on): Likewise.
12347         * modules/fseeko (Depends-on): Likewise.
12348         * modules/ftello (Depends-on): Likewise.
12349         * modules/glob (Depends-on): Likewise.
12350         * modules/lseek (Depends-on): Likewise.
12351         * modules/lstat (Depends-on): Likewise.
12352         * modules/mkostemp (Depends-on): Likewise.
12353         * modules/mkostemps (Depends-on): Likewise.
12354         * modules/mkstemp (Depends-on): Likewise.
12355         * modules/mkstemps (Depends-on): Likewise.
12356         * modules/open (Depends-on): Likewise.
12357         * modules/openat (Depends-on): Likewise.
12358         * modules/pread (Depends-on): Likewise.
12359         * modules/pwrite (Depends-on): Likewise.
12360         * modules/scandir (Depends-on): Likewise.
12361         * modules/stat (Depends-on): Likewise.
12362         * modules/tmpfile (Depends-on): Likewise.
12363         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12364         since the containing module now depends on the largefile module.
12365         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12366         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12367         off_t is fixed by gnulib.
12368         * doc/posix-functions/freopen.texi: Likewise.
12369         * doc/posix-functions/fseeko.texi: Likewise.
12370         * doc/posix-functions/fstatat.texi: Likewise.
12371         * doc/posix-functions/ftello.texi: Likewise.
12372         * doc/posix-functions/glob.texi: Likewise.
12373         * doc/posix-functions/lseek.texi: Likewise.
12374         * doc/posix-functions/lstat.texi: Likewise.
12375         * doc/posix-functions/mkstemp.texi: Likewise.
12376         * doc/posix-functions/open.texi: Likewise.
12377         * doc/posix-functions/openat.texi: Likewise.
12378         * doc/posix-functions/pread.texi: Likewise.
12379         * doc/posix-functions/pwrite.texi: Likewise.
12380         * doc/posix-functions/scandir.texi: Likewise.
12381         * doc/posix-functions/stat.texi: Likewise.
12382         * doc/posix-functions/tmpfile.texi: Likewise.
12383         * doc/glibc-functions/mkostemp.texi: Likewise.
12384         * doc/glibc-functions/mkostemps.texi: Likewise.
12385         * doc/glibc-functions/mkstemps.texi: Likewise.
12386
12387 2011-07-25  Bruno Haible  <bruno@clisp.org>
12388
12389         fcntl: Move AC_LIBOBJ invocation to module description.
12390         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12391         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12392
12393         fcntl: Remove call-in from fchdir.m4.
12394         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12396
12397         dup3: Remove potential call-in from fchdir.m4.
12398         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12399         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12400
12401         dup2: Move AC_LIBOBJ invocation to module description.
12402         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12403         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12404         Don't invoke AC_LIBOBJ.
12405         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12406
12407         dup2: Remove call-in from fchdir.m4.
12408         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12410
12411         fclose: Move AC_LIBOBJ invocation to module description.
12412         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12413         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12414         to 1.
12415         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12416
12417         fclose: Remove call-in from close.m4.
12418         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12419         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12420
12421         close: Move AC_LIBOBJ invocation to module description.
12422         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12423         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12424         1.
12425         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12426
12427         close: Remove call-in from fchdir.m4.
12428         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12430
12431         open: Move AC_LIBOBJ invocation to module description.
12432         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12433         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12434         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12435
12436         open: Remove call-in from fchdir.m4.
12437         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12438         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12439
12440         fchdir: Start to remove gl_REPLACE_* idiom.
12441         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12442         (gl_FUNC_FCHDIR): Invoke it.
12443
12444 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12445
12446         * lib/ftell.c (ftell): Comment out cast.
12447
12448         close: use gl_REPLACE_FCLOSE only if defined
12449         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12450         is defined.  The close module doesn't depend on the fclose module
12451         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12453         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12454
12455 2011-07-24  Jim Meyering  <meyering@redhat.com>
12456
12457         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12458         * tests/test-select.h (test_function): Declare as "static".
12459
12460 2011-07-24  Bruno Haible  <bruno@clisp.org>
12461
12462         doc: Mention the effects of AC_SYS_LARGEFILE.
12463         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12464         on this function.
12465         * doc/posix-functions/aio_error.texi: Likewise.
12466         * doc/posix-functions/aio_fsync.texi: Likewise.
12467         * doc/posix-functions/aio_read.texi: Likewise.
12468         * doc/posix-functions/aio_return.texi: Likewise.
12469         * doc/posix-functions/aio_suspend.texi: Likewise.
12470         * doc/posix-functions/aio_write.texi: Likewise.
12471         * doc/posix-functions/fgetpos.texi: Likewise.
12472         * doc/posix-functions/fopen.texi: Likewise.
12473         * doc/posix-functions/freopen.texi: Likewise.
12474         * doc/posix-functions/fsetpos.texi: Likewise.
12475         * doc/posix-functions/fstatvfs.texi: Likewise.
12476         * doc/posix-functions/ftruncate.texi: Likewise.
12477         * doc/posix-functions/ftw.texi: Likewise.
12478         * doc/posix-functions/getrlimit.texi: Likewise.
12479         * doc/posix-functions/glob.texi: Likewise.
12480         * doc/posix-functions/lio_listio.texi: Likewise.
12481         * doc/posix-functions/lockf.texi: Likewise.
12482         * doc/posix-functions/mkstemp.texi: Likewise.
12483         * doc/posix-functions/mmap.texi: Likewise.
12484         * doc/posix-functions/nftw.texi: Likewise.
12485         * doc/posix-functions/openat.texi: Likewise.
12486         * doc/posix-functions/opendir.texi: Likewise.
12487         * doc/posix-functions/posix_fadvise.texi: Likewise.
12488         * doc/posix-functions/posix_fallocate.texi: Likewise.
12489         * doc/posix-functions/pread.texi: Likewise.
12490         * doc/posix-functions/pwrite.texi: Likewise.
12491         * doc/posix-functions/readdir.texi: Likewise.
12492         * doc/posix-functions/readdir_r.texi: Likewise.
12493         * doc/posix-functions/rewinddir.texi: Likewise.
12494         * doc/posix-functions/scandir.texi: Likewise.
12495         * doc/posix-functions/seekdir.texi: Likewise.
12496         * doc/posix-functions/setrlimit.texi: Likewise.
12497         * doc/posix-functions/statvfs.texi: Likewise.
12498         * doc/posix-functions/telldir.texi: Likewise.
12499         * doc/posix-functions/tmpfile.texi: Likewise.
12500         * doc/posix-functions/truncate.texi: Likewise.
12501         * doc/glibc-functions/fallocate.texi: Likewise.
12502         * doc/glibc-functions/fstatfs.texi: Likewise.
12503         * doc/glibc-functions/fts_children.texi: Likewise.
12504         * doc/glibc-functions/fts_read.texi: Likewise.
12505         * doc/glibc-functions/getdirentries.texi: Likewise.
12506         * doc/glibc-functions/mkostemp.texi: Likewise.
12507         * doc/glibc-functions/mkostemps.texi: Likewise.
12508         * doc/glibc-functions/mkstemps.texi: Likewise.
12509         * doc/glibc-functions/preadv.texi: Likewise.
12510         * doc/glibc-functions/pwritev.texi: Likewise.
12511         * doc/glibc-functions/sendfile.texi: Likewise.
12512         * doc/glibc-functions/statfs.texi: Likewise.
12513
12514 2011-07-24  Bruno Haible  <bruno@clisp.org>
12515
12516         doc: Fix typo.
12517         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12518
12519 2011-07-24  Bruno Haible  <bruno@clisp.org>
12520
12521         doc: Mention fsusage.
12522         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12523
12524 2011-07-24  Bruno Haible  <bruno@clisp.org>
12525
12526         doc: Mention new glibc headers and functions.
12527         * doc/glibc-headers/gshadow.texi: New file.
12528         * doc/glibc-functions/endsgent.texi: New file.
12529         * doc/glibc-functions/fgetsgent.texi: New file.
12530         * doc/glibc-functions/fgetsgent_r.texi: New file.
12531         * doc/glibc-functions/getsgent.texi: New file.
12532         * doc/glibc-functions/getsgent_r.texi: New file.
12533         * doc/glibc-functions/getsgnam.texi: New file.
12534         * doc/glibc-functions/getsgnam_r.texi: New file.
12535         * doc/glibc-functions/putsgent.texi: New file.
12536         * doc/glibc-functions/setsgent.texi: New file.
12537         * doc/glibc-functions/sgetsgent.texi: New file.
12538         * doc/glibc-functions/sgetsgent_r.texi: New file.
12539         * doc/glibc-functions/malloc_info.texi: New file.
12540         * doc/glibc-functions/preadv.texi: New file.
12541         * doc/glibc-functions/pwritev.texi: New file.
12542         * doc/glibc-functions/register_printf_modifier.texi: New file.
12543         * doc/glibc-functions/register_printf_specifier.texi: New file.
12544         * doc/glibc-functions/register_printf_type.texi: New file.
12545         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12546         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12547         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12548         * doc/glibc-functions/pthread_getname_np.texi: New file.
12549         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12550         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12551         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12552         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12553         * doc/glibc-functions/pthread_setname_np.texi: New file.
12554         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12555         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12556         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12557         * doc/glibc-functions/qsort_r.texi: New file.
12558         * doc/glibc-functions/quick_exit.texi: New file.
12559         * doc/glibc-functions/syncfs.texi: New file.
12560         * doc/gnulib.texi: Include them.
12561         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12562         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12563         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12564         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12565         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12566         * doc/glibc-functions/execvpe.texi: Likewise.
12567
12568 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         ftell: don't include <unistd.h>
12571         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12572         guaranteed to define off_t, and the ftell module depends on the
12573         stdio module.
12574
12575         ftell: do not assume wraparound signed arithmetic
12576         * lib/ftell.c: Include <limits.h>.
12577         (ftell): Don't assume wraparound signed arithmetic.
12578
12579 2011-07-24  Bruno Haible  <bruno@clisp.org>
12580
12581         close: No longer depend on module 'fclose'.
12582         * modules/close (Depends-on): Remove fclose.
12583         * NEWS: Mention the change.
12584         Suggested by Sam Steingold <sds@gnu.org>.
12585
12586 2011-07-24  Bruno Haible  <bruno@clisp.org>
12587
12588         fsusage: Enable large volume support on AIX >= 5.2.
12589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12590         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12591         instead of STAT_STATVFS.
12592         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12593
12594         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12596         f_blocks field only on MacOS X.
12597
12598         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12599         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12600         * modules/fsusage (Depends-on): Add largefile.
12601
12602 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12603
12604         * README: Modernize discussion of signed integers.
12605         Assuming overflow wraparound is no longer safe.
12606         Mention ones' complement and signed magnitude.
12607
12608 2011-07-22  Bruno Haible  <bruno@clisp.org>
12609
12610         select tests, pselect tests: Refactor.
12611         * tests/test-select.h: New file, extracted from tests/test-select.c.
12612         (select_fn): New type.
12613         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12614         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12615         test_pipe): Add my_select argument.
12616         (test_function): Renamed from main. Add my_select argument.
12617         * tests/test-select.c: Move most code to tests/test-select.h. Include
12618         test-select.h.
12619         * modules/select-tests (Files): Add tests/test-select.h.
12620         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12621         (my_select, main): New functions.
12622         * modules/pselect-tests (Files): Add tests/test-select.h,
12623         tests/macros.h, tests/signature.h.
12624         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12625         (configure.ac): Check for <sys/wait.h>.
12626
12627 2011-07-22  Bruno Haible  <bruno@clisp.org>
12628
12629         sys_select tests: Check the signature of FD_*.
12630         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12631         signature tests from here...
12632         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12633         here.
12634         * modules/sys_select-tests (Files): Add tests/signature.h.
12635
12636 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12637
12638         largefile: new module, replacing large-inode
12639         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12640         * MODULES.html.sh: Add largefile, remove large-inode.
12641         * modules/largefile, m4/largefile.m4: New files.
12642         * modules/large-inode, m4/large-inode.m4: Remove.
12643
12644         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12645         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12646         implementations that use only 32 bits to count blocks.
12647         On typical hosts with 1024-byte blocks, this fails with file
12648         systems as small as 4 TiB.  Problem reported by Herb Wartens
12649         <http://debbugs.gnu.org/9140> and this should also fix a similar
12650         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12651
12652         large-inode: New module
12653         * MODULES.html.sh: Add it.
12654         * modules/large-inode, m4/large-inode.m4: New files.
12655
12656         extensions: Enable extensions on MacOS X 10.5 and later.
12657         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12658
12659 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12660
12661         file-has-acl: use acl_extended_file_nofollow if available
12662         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12663         (acl_extended_file): New macro.
12664         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12665         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12666
12667 2011-07-21  Bruno Haible  <bruno@clisp.org>
12668
12669         Declare system functions in a way that works with C++.
12670         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12671         declare fdopendir as extern "C".
12672         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12673         declare frexpl as extern "C".
12674         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12675         declare gai_strerror as extern "C".
12676         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12677         programs, declare gai_strerror as extern "C".
12678         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12679         declare getlogin_r as extern "C".
12680         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12681         as extern "C".
12682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12683         declare ldexpl as extern "C".
12684         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12685         as extern "C".
12686         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12687         program, declare getmntinfo as extern "C".
12688         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12689         stpncpy as extern "C".
12690         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12691         program, declare __xpg_strerror_r as extern "C".
12692         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12693         strndup as extern "C".
12694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12695         declare memset and bzero as extern "C".
12696         Reported by Sam Steingold <sds@gnu.org>.
12697
12698 2011-07-12  Jim Meyering  <meyering@redhat.com>
12699
12700         maint.mk: prohibit inclusion of "verify.h" without use
12701         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12702
12703 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12704
12705         timer-time: A new module to check for timer_settime()
12706         * m4/timer_time.m4: Check for the posix function.
12707         * modules/timer-time: Add the new module.
12708         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12709         Mention it.
12710
12711 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12712             Bruno Haible  <bruno@clisp.org>
12713
12714         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12715         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12716         not defined, assume POSIX threads and look for pthread_sigmask in
12717         $LIBS, without changing $CPPFLAGS.
12718
12719 2011-07-19  Bruno Haible  <bruno@clisp.org>
12720
12721         strstr: Update cross-compilation guess.
12722         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12723         CPUs, guess no, in view of glibc
12724         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12725         Suggested by Eric Blake. Reported by Reuben Thomas.
12726
12727 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12728
12729         getopt-gnu: suppress core dumps from detection code
12730         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12731         to suppress core dumps that may well occur on glibc systems.
12732         * modules/getopt-gnu: Depend on nocrash.
12733
12734 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12735
12736         pthread_sigmask: ensure usleep is declared
12737         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12738         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12739
12740 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12741
12742         doc: Document NonStop portability issues.
12743         * doc/posix-functions/sigaction.texi (sigaction):
12744         * doc/posix-headers/signal.texi (signal.h):
12745         Document NonStop.  See Joachim Schmitz in
12746         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12747
12748 2011-07-15  Bruno Haible  <bruno@clisp.org>
12749
12750         ffsl, ffsll: Avoid unportable behaviour.
12751         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12752
12753 2011-07-15  Bruno Haible  <bruno@clisp.org>
12754
12755         ffs: More tests.
12756         * tests/test-ffs.c (NBITS): New macro.
12757         (main): Add more tests.
12758         * tests/test-ffsl.c (NBITS): New macro.
12759         (main): Add more tests.
12760         * tests/test-ffsll.c (NBITS): New macro.
12761         (main): Add more tests.
12762
12763 2011-07-15  Eric Blake  <eblake@redhat.com>
12764
12765         ffsl, ffsll: new modules
12766         * modules/ffsl: New file.
12767         * modules/ffsll: Likewise.
12768         * m4/ffsl.m4: Likewise.
12769         * m4/ffsll.m4: Likewise.
12770         * lib/ffsl.c: Likewise.
12771         * lib/ffsl.h: Likewise.
12772         * lib/ffsll.c: Likewise.
12773         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12774         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12775         * modules/string (Makefile.am): Substitute witnesses.
12776         * lib/strings.in.h (ffsl, ffsll): Declare.
12777         * modules/ffsl-tests: New test file.
12778         * modules/ffsll-tests: Likewise.
12779         * tests/test-ffsl.c: Likewise.
12780         * tests/test-ffsll.c: Likewise.
12781         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12782         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12783         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12784
12785         ffs: fix m4 prerequisite
12786         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12787
12788         ffs: avoid undefined behavior
12789         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12790         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12791         Reported by Bruno Haible.
12792
12793 2011-07-12  Bruno Haible  <bruno@clisp.org>
12794
12795         pthread_sigmask: Rely on module 'threadlib'.
12796         * modules/pthread_sigmask (Depends-on): Add threadlib.
12797         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12798         is defined.
12799
12800 2011-07-12  Bruno Haible  <bruno@clisp.org>
12801
12802         regex: Depend on module 'strcase'.
12803         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12804
12805 2011-07-12  Jim Meyering  <meyering@redhat.com>
12806
12807         warn-on-use: fix typo in file name
12808         * modules/snippet/warn-on-use (Files): Correct file name:
12809         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12810
12811 2011-07-12  Bruno Haible  <bruno@clisp.org>
12812
12813         strings: Document module.
12814         * doc/posix-headers/strings.texi: Mention module 'strings'.
12815
12816 2011-07-12  Bruno Haible  <bruno@clisp.org>
12817
12818         Rename module '_Noreturn' to 'snippet/_Noreturn'.
12819         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
12820         (Files, Makefile.am): Update.
12821         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
12822         * modules/stdlib (Depends-on): Update.
12823
12824 2011-07-12  Bruno Haible  <bruno@clisp.org>
12825
12826         * NEWS: Mention the changes.
12827
12828         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
12829         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
12830         (Files, Makefile.am): Update.
12831         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
12832         * modules/arpa_inet (Depends-on): Update.
12833         * modules/ctype (Depends-on): Update.
12834         * modules/dirent (Depends-on): Update.
12835         * modules/fcntl-h (Depends-on): Update.
12836         * modules/glob (Depends-on): Update.
12837         * modules/iconv-h (Depends-on): Update.
12838         * modules/inttypes-incomplete (Depends-on): Update.
12839         * modules/langinfo (Depends-on): Update.
12840         * modules/locale (Depends-on): Update.
12841         * modules/math (Depends-on): Update.
12842         * modules/netdb (Depends-on): Update.
12843         * modules/poll-h (Depends-on): Update.
12844         * modules/pty (Depends-on): Update.
12845         * modules/search (Depends-on): Update.
12846         * modules/signal (Depends-on): Update.
12847         * modules/spawn (Depends-on): Update.
12848         * modules/stdio (Depends-on): Update.
12849         * modules/stdlib (Depends-on): Update.
12850         * modules/string (Depends-on): Update.
12851         * modules/strings (Depends-on): Update.
12852         * modules/sys_file (Depends-on): Update.
12853         * modules/sys_ioctl (Depends-on): Update.
12854         * modules/sys_select (Depends-on): Update.
12855         * modules/sys_socket (Depends-on): Update.
12856         * modules/sys_stat (Depends-on): Update.
12857         * modules/sys_time (Depends-on): Update.
12858         * modules/sys_times (Depends-on): Update.
12859         * modules/sys_utsname (Depends-on): Update.
12860         * modules/sys_wait (Depends-on): Update.
12861         * modules/termios (Depends-on): Update.
12862         * modules/time (Depends-on): Update.
12863         * modules/unistd (Depends-on): Update.
12864         * modules/wchar (Depends-on): Update.
12865         * modules/wctype-h (Depends-on): Update.
12866         * MODULES.html.sh (Support for building libraries and executables):
12867         Update.
12868
12869         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
12870         * modules/snippet/unused-parameter: Renamed from
12871         modules/unused-parameter.
12872         (Files, Makefile.am): Update.
12873         * build-aux/snippet/unused-parameter.h: Renamed from
12874         build-aux/unused-parameter.h.
12875         * modules/selinux-h (Depends-on): Update.
12876         * modules/unistr/base (Depends-on): Update.
12877         * MODULES.html.sh (Core language properties): Update.
12878
12879         Rename module 'link-warning' to 'snippet/link-warning'.
12880         * modules/snippet/link-warning: Renamed from modules/link-warning.
12881         (Files, Makefile.am): Update.
12882         * build-aux/snippet/link-warning.h: Renamed from
12883         build-aux/link-warning.h.
12884         * MODULES.html.sh (Support for building libraries and executables):
12885         Update.
12886
12887         Rename module 'c++defs' to 'snippet/c++defs'.
12888         * modules/snippet/c++defs: Renamed from modules/c++defs.
12889         (Files, Makefile.am): Update.
12890         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
12891         * modules/arpa_inet (Depends-on): Update.
12892         * modules/ctype (Depends-on): Update.
12893         * modules/dirent (Depends-on): Update.
12894         * modules/fcntl-h (Depends-on): Update.
12895         * modules/glob (Depends-on): Update.
12896         * modules/iconv-h (Depends-on): Update.
12897         * modules/langinfo (Depends-on): Update.
12898         * modules/locale (Depends-on): Update.
12899         * modules/math (Depends-on): Update.
12900         * modules/netdb (Depends-on): Update.
12901         * modules/poll-h (Depends-on): Update.
12902         * modules/pty (Depends-on): Update.
12903         * modules/search (Depends-on): Update.
12904         * modules/signal (Depends-on): Update.
12905         * modules/spawn (Depends-on): Update.
12906         * modules/stdio (Depends-on): Update.
12907         * modules/stdlib (Depends-on): Update.
12908         * modules/string (Depends-on): Update.
12909         * modules/strings (Depends-on): Update.
12910         * modules/sys_ioctl (Depends-on): Update.
12911         * modules/sys_select (Depends-on): Update.
12912         * modules/sys_socket (Depends-on): Update.
12913         * modules/sys_stat (Depends-on): Update.
12914         * modules/sys_time (Depends-on): Update.
12915         * modules/sys_wait (Depends-on): Update.
12916         * modules/termios (Depends-on): Update.
12917         * modules/time (Depends-on): Update.
12918         * modules/unistd (Depends-on): Update.
12919         * modules/wchar (Depends-on): Update.
12920         * modules/wctype-h (Depends-on): Update.
12921
12922         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
12923         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
12924         (Files, Makefile.am): Update.
12925         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
12926         * modules/argv-iter (Depends-on): Update.
12927         * modules/arpa_inet (Depends-on): Update.
12928         * modules/dirent (Depends-on): Update.
12929         * modules/fcntl-h (Depends-on): Update.
12930         * modules/fnmatch (Depends-on): Update.
12931         * modules/getopt-posix (Depends-on): Update.
12932         * modules/glob (Depends-on): Update.
12933         * modules/iconv-h (Depends-on): Update.
12934         * modules/inttypes-incomplete (Depends-on): Update.
12935         * modules/locale (Depends-on): Update.
12936         * modules/math (Depends-on): Update.
12937         * modules/netdb (Depends-on): Update.
12938         * modules/search (Depends-on): Update.
12939         * modules/signal (Depends-on): Update.
12940         * modules/spawn (Depends-on): Update.
12941         * modules/stdio (Depends-on): Update.
12942         * modules/stdlib (Depends-on): Update.
12943         * modules/string (Depends-on): Update.
12944         * modules/strings (Depends-on): Update.
12945         * modules/sys_socket (Depends-on): Update.
12946         * modules/sys_stat (Depends-on): Update.
12947         * modules/sys_time (Depends-on): Update.
12948         * modules/sys_times (Depends-on): Update.
12949         * modules/sys_utsname (Depends-on): Update.
12950         * modules/time (Depends-on): Update.
12951         * modules/unistd (Depends-on): Update.
12952         * modules/wchar (Depends-on): Update.
12953         * MODULES.html.sh (Support for building libraries and executables):
12954         Update.
12955
12956 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         Improvements on _Noreturn and related modules.
12959
12960         modules/_Exit-tests: test _Noreturn too
12961         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12962         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12963         (main): Use them.
12964
12965         stdnoreturn, stdnoreturn-tests: remove modules
12966         They're not needed here and a bit premature for use elsewhere.  See
12967         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12968         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12969         * tests/test-stdnoreturn.c: Remove files.
12970         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12971         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12972         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12973         and using noreturn.
12974         * modules/openat, modules/sigpipe-die, modules/xalloc:
12975         * modules/xmemdup0, modules/xstrtol:
12976         Remove dependency on stdnoreturn.
12977
12978         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12979         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12980         Reparenthesize to avoid GCC warning.
12981         Support Microsoft's syntax.
12982         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12983
12984         _Noreturn-tests: remove module
12985         * modules/_Noreturn-tests: Remove.
12986         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12987         * tests/test-_Noreturn.c: Remove.
12988         * tests/test-stdnoreturn.c: Merge from the old
12989         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12990
12991 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12992
12993         _Noreturn, stdnoreturn, and related modules.
12994
12995         * top/maint.mk: Adjust to new noreturn support.
12996         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12997         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12998
12999         xalloc: use stdnoreturn.h
13000         * lib/xalloc.h: Include <stdnoreturn.h>.
13001         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13002         * modules/xalloc (Depends-on): Add stdnoreturn.
13003
13004         xstrtol: use stdnoreturn.h
13005         * lib/xstrtol.h: Include <stdnoreturn.h>.
13006         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13007         * modules/xstrtol (Depends-on): Add stdnoreturn.
13008
13009         xmemdup0: use stdnoreturn.h
13010         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13011         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13012         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13013
13014         sigpipe-die: use stdnoreturn.h
13015         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13016         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13017         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13018
13019         openat: use stdnoreturn.h
13020         * lib/openat.h: Include <stdnoreturn.h>.
13021         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13022         * modules/openat (Depends-on): Add stdnoreturn.
13023
13024         * lib/openat-die.c (openat_save_fail): Modernize comment.
13025
13026         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13027
13028         * lib/glthread/thread.h: Modernize comment.
13029
13030         obstack: use _Noreturn
13031         * lib/obstack.c (__attribute__): Remove macro.
13032         (print_and_abort): Use _Noreturn.
13033
13034         c-stack: use _Noreturn
13035         * lib/c-stack.c (die, overflow_handler, segv_handler):
13036         Use _Noreturn rather than __attribute__((noreturn)).
13037
13038         argmatch-tests, exclude_tests: use _Noreturn
13039         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13040         Remove.
13041         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13042
13043         stdlib: use _Noreturn
13044         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13045         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13046         * modules/stdlib (Depends-on): Add _Noreturn.
13047         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13048
13049         stdnoreturn-tests: new module
13050         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13051
13052         stdnoreturn: new module
13053         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13054         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13055
13056         _Noreturn-tests: new module
13057         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13058
13059         _Noreturn: new module
13060         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13061         New section, mentioning it.
13062         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13063
13064         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13065
13066 2011-07-11  Eric Blake  <eblake@redhat.com>
13067
13068         ffs: new module
13069         * modules/ffs: New file.
13070         * m4/ffs.m4: Likewise.
13071         * lib/ffs.c: Likewise.
13072         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13073         * modules/strings (Makefile.am): Substitute witness.
13074         (Depends-on): Add c++defs.
13075         * lib/strings.in.h (ffs): Declare.
13076         * modules/ffs-tests: New test file.
13077         * tests/test-ffs.c: Test new module.
13078         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13079         * doc/posix-functions/ffs.texi (ffs): Likewise.
13080
13081         regex: avoid compiler warning
13082         * lib/regex.c (includes): Include <strings.h>, for use of
13083         strcasecmp in regcomp.c.
13084         Reported by Joachim Schmitz.
13085
13086 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13087
13088         stdint: respect system's intmax_t if INTMAX_MAX
13089         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13090         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13091         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13092         long but int64_t is long long, and where we will clash with the
13093         system intmax_t if we override it.  See
13094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13095         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13096         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13097         similarly for UINTMAX_C.
13098
13099 2011-07-08  Bruno Haible  <bruno@clisp.org>
13100
13101         pthread_sigmask tests: Avoid a compiler warning.
13102         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13103         non-zero.
13104
13105         sigprocmask tests: A better way to avoid a compiler warning.
13106         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13107         (main): Complain if system() returns non-zero.
13108         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13109
13110 2011-07-08  Bruno Haible  <bruno@clisp.org>
13111
13112         pthread_sigmask: Work around IRIX bug.
13113         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13114         bug.
13115         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13116         there may be unblocked pending signals.
13117         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13118
13119 2011-07-08  Bruno Haible  <bruno@clisp.org>
13120
13121         pthread_sigmask: Work around Cygwin bug.
13122         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13123         bug.
13124         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13125         the system's pthread_sigmask function.
13126         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13127
13128 2011-07-08  Bruno Haible  <bruno@clisp.org>
13129
13130         pthread_sigmask: Work around bug in single-threaded implementation.
13131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13132         FreeBSD, HP-UX, Solaris bug.
13133         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13134         * lib/pthread_sigmask.c: Include <stddef.h>.
13135         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13136         the system's pthread_sigmask function.
13137         * modules/pthread_sigmask (configure.ac): Invoke
13138         gl_PREREQ_PTHREAD_SIGMASK.
13139         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13140         HP-UX, Solaris.
13141
13142 2011-07-08  Eric Blake  <eblake@redhat.com>
13143
13144         test-sigprocmask: avoid compiler warning
13145         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13146         * tests/test-sigprocmask.c (main): Use it to silence warning.
13147         Reported by Jim Meyering.
13148
13149         test-snprintf: avoid compiler warning
13150         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13151         * tests/test-vsnprintf.c (main): Likewise.
13152         Reported by Jim Meyering.
13153
13154 2011-07-08  Bruno Haible  <bruno@clisp.org>
13155
13156         Tests for module 'pthread_sigmask'.
13157         * modules/pthread_sigmask-tests: New file.
13158         * tests/test-pthread_sigmask1.c: New file, based on
13159         tests/test-sigprocmask.c.
13160         * tests/test-pthread_sigmask2.c: New file.
13161
13162 2011-07-08  Jim Meyering  <meyering@redhat.com>
13163
13164         test-getopt.h: avoid warning about an unused variable
13165         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13166
13167 2011-07-07  Jim Meyering  <meyering@redhat.com>
13168
13169         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13170         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13171         now that it no longer contains leading TABs.
13172         Remove unused "url=FIXME" statement.
13173
13174 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13175
13176         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13177         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13178         When gl_THREADLIB is not in use, assume that the POSIX sematics
13179         are desired.  This is better for Emacs, which uses POSIX semantics
13180         on GNUish and/or POSIXish platforms, and does not use threads at
13181         all otherwise.
13182
13183         pthread_sigmask: fix typo when testing for libraries
13184         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13185         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13186
13187 2011-07-08  Eric Blake  <eblake@redhat.com>
13188
13189         fts: introduce FTS_NOATIME
13190         * lib/fts_.h (FTS_NOATIME): New bit flag.
13191         (FTS_OPTIONMASK): Adjust.
13192         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13193         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13194
13195 2011-07-08  Bruno Haible  <bruno@clisp.org>
13196
13197         Tests for module 'thread'.
13198         * modules/thread-tests: New file.
13199         * tests/test-thread_self.c: New file.
13200         * tests/test-thread_create.cc: New file.
13201
13202 2011-07-08  Bruno Haible  <bruno@clisp.org>
13203
13204         thread: Avoid gcc warnings when using gl_thread_self().
13205         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13206         'void *'.
13207         (gl_thread_self_pointer): Update.
13208
13209 2011-07-07  Bruno Haible  <bruno@clisp.org>
13210
13211         signal-c++-tests: Check declaration of pthread_sigmask.
13212         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13213         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13214         $(LIB_PTHREAD_SIGMASK).
13215
13216 2011-07-07  Bruno Haible  <bruno@clisp.org>
13217
13218         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13219         * lib/signal.in.h (pthread_sigmask): Override if
13220         REPLACE_PTHREAD_SIGMASK is 1.
13221         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13222         REPLACE_PTHREAD_SIGMASK.
13223         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13224         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13225         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13226         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13227         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13228
13229 2011-07-07  Bruno Haible  <bruno@clisp.org>
13230
13231         pthread_sigmask: Ensure declaration in <signal.h>.
13232         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13233         include <pthread.h>.
13234         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13235         problem.
13236
13237 2011-07-07  Bruno Haible  <bruno@clisp.org>
13238
13239         pthread_sigmask: Document the module.
13240         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13241
13242 2011-07-07  Bruno Haible  <bruno@clisp.org>
13243
13244         pthread_sigmask: Follow gnulib conventions.
13245         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13246         gl_PTHREAD_SIGMASK.
13247         * modules/pthread_sigmask (configure.ac): Update.
13248
13249 2011-07-07  Bruno Haible  <bruno@clisp.org>
13250
13251         pthread_sigmask: Make declaration C++ safe.
13252         * lib/signal.in.h: In two special conditions, just do an #include_next.
13253         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13254         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13255         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13256         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13257         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13258         not REPLACE_PTHREAD_MASK.
13259         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13260         not REPLACE_PTHREAD_MASK.
13261         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13262
13263 2011-07-07  Bruno Haible  <bruno@clisp.org>
13264
13265         pthread_sigmask: Fix return value.
13266         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13267         * lib/pthread_sigmask.c: New file.
13268         * modules/pthread_sigmask (Files): Add it.
13269         (configure.ac): Invoke AC_LIBOBJ.
13270
13271 2011-07-07  Eric Blake  <eblake@redhat.com>
13272
13273         getopt: more portable argv creation
13274         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13275         const, use char arrays rather than strings.
13276         Suggested by Paul Eggert.
13277
13278 2011-07-07  Bruno Haible  <bruno@clisp.org>
13279
13280         Tests for module 'sigprocmask'.
13281         * modules/sigprocmask-tests: New file.
13282         * tests/test-sigprocmask.c: New file.
13283
13284 2011-07-07  Bruno Haible  <bruno@clisp.org>
13285
13286         float tests: Tweak.
13287         * tests/test-float.c (main): Tweak skip message.
13288
13289 2011-07-07  Eric Blake  <eblake@redhat.com>
13290
13291         getopt: avoid compiler warning during configure
13292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13293         assigning string literals to non-const pointer.
13294
13295         getopt-gnu: avoid crash in glibc getopt
13296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13297         * tests/test-getopt.h (test_getopt): Enhance test.
13298         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13299         * doc/posix-functions/getopt.texi (getopt): Document it.
13300         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13301         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13302         Likewise.
13303
13304 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13305
13306         getopt: handle W; without long options in getopt [BZ #12922]
13307         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13308         but no long options are defined, just return 'W'.
13309
13310 2011-07-07  Bruno Haible  <bruno@clisp.org>
13311
13312         Avoid literal tabs.
13313         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13314         variable containing a tab instead of a literal tab.
13315         Reported by Jim Meyering.
13316
13317 2011-07-07  Bruno Haible  <bruno@clisp.org>
13318
13319         Comments.
13320         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13321
13322 2011-07-06  Bruno Haible  <bruno@clisp.org>
13323
13324         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13325         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13326         <winsock2.h>.
13327         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13328         lib/sys_socket.in.h.
13329         (close, gethostname): Hide declarations from <winsock2.h>.
13330         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13331         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13332         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13333         (select): Don't override if gnulib's <sys/select.h> was already
13334         included.
13335         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13336         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13337         setsockopt, shutdown, select): Tweak indentation.
13338
13339 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13342         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13343         in an application that does not use the sys_select module.
13344
13345 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13346
13347         poll: do not return 0 on timeout=-1
13348         * lib/poll.c: Loop with yield if no events occured
13349
13350 2011-07-06  Eric Blake  <eblake@redhat.com>
13351
13352         pthread_sigmask: always replace when not using pthread
13353         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13354         replacement when using some threading other than pthread.  Fix
13355         logic bug.
13356
13357 2011-07-06  Bruno Haible  <bruno@clisp.org>
13358
13359         Comments.
13360         * m4/printf.m4: Update comments about mingw.
13361
13362 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13363
13364         sys_select: define sigset_t more portably
13365         * lib/sys_select.in.h: Always include <sys/types.h>, since
13366         we now need sigset_t and mingw defines it there.
13367         Include <signal.h> before split inclusion guard, to avoid
13368         mishaps on Solaris, whose <signal.h> eventually includes us.
13369         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13370         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13371         which come from ...
13372         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13373         gl_CHECK_TYPE_SIGSET_T.
13374         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13375         does the real work.
13376         * modules/sys_select (Depends-on): Add 'signal'.
13377
13378         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13379         Suggested by Bruno Haible.
13380
13381         pselect: Use pthread_sigmask, not sigprocmask.
13382         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13383         multithreaded apps better than sigprocmask does.
13384         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13385         sigprocmask directly.
13386
13387 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13388
13389         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13390         Don't #undef,  since we don't need any underlying pselect.
13391         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13392         (Depends-on): Add select.
13393         (Link): Add $(LIBSOCKET).
13394         These changes suggested by Bruno Haible.
13395
13396         pselect: document better
13397         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13398         * doc/posix-functions/pselect.texi (pselect): Document new module.
13399
13400         pthread_sigmask: new module
13401         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13402         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13403         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13404         This is done only as a macro; I don't know how well that'll
13405         work for C++.  Move <sys/types.h> include before the include_next,
13406         to avoid mishap on Solaris.
13407         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13408         * modules/signal (Makefile.am): Substitute the check's results.
13409         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13410
13411         test-pselect: new module
13412         * modules/pselect-tests, tests/test-pselect.c: New files.
13413         * tests/test-select.c, tests/test-sys_select-c++.cc:
13414         If TEST_PSELECT is defined, test pselect instead of testing select.
13415
13416         * tests/test-sys_select.c (sigset_t): Test for it, too.
13417         Suggested by Bruno Haible.
13418
13419 2011-07-05  Eric Blake  <eblake@redhat.com>
13420
13421         snprintf: guarantee %1$d, for libintl
13422         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13423         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13424         * doc/posix-functions/snprintf.texi (snprintf): Update.
13425         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13426         * tests/test-snprintf.c (main): Enhance test.
13427         * tests/test-vsnprintf.c (main): Likewise.
13428
13429 2011-07-05  Jim Meyering  <meyering@redhat.com>
13430
13431         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13432         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13433         per Bruno's request, to accommodate this idiom (no space after "#")
13434         even when the function is inside an #if block:
13435         char *
13436         gets (char *s)
13437         #undef gets
13438         {
13439           ...
13440         }
13441
13442 2011-07-04  Jim Meyering  <meyering@redhat.com>
13443
13444         maint: indent with spaces, not TABs, and add a rule to check this
13445         * tests/test-userspec.c: Indent with spaces, not TABs.
13446         * tests/test-argp.c: Likewise.
13447         * tests/test-c-stack2.sh: Likewise.
13448         * tests/test-parse-duration.sh: Likewise
13449         * m4/strtod.m4: Likewise.
13450         * m4/alloca.m4: Likewise.
13451         * m4/pselect.m4: Likewise.
13452         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13453
13454 2011-07-03  Jim Meyering  <meyering@redhat.com>
13455
13456         maint.mk: correct omissions in prohibit_argmatch_without_use check
13457         This rule would mistakenly report that argmatch.h is included without
13458         use even when both the argmatch and invalid_arg macro were used.
13459         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13460         of argmatch and invalid_arg.
13461
13462 2011-07-03  Bruno Haible  <bruno@clisp.org>
13463
13464         Comments about EINTR.
13465         * lib/safe-read.h: Explain the purpose of this module.
13466         * lib/safe-write.h: Likewise.
13467         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13468         module.
13469         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13470         module.
13471         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13472
13473 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         xnanosleep: Rewrite to use new dtotimespec module.
13476         It has the conversion code that used to be in xnanosleep.
13477         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13478         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13479         (TIME_T_MAX): Remove.
13480         (xnanosleep): Rewrite in terms of dtotimespec.
13481         * modules/xnanosleep (Depends-on): Add dtotimespec.
13482         Remove intprops, stdbool.
13483
13484         timespec-add, timespec-sub: new modules
13485         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13486         * lib/timespec-add.c, lib/timespec-sub.c:
13487         * modules/timespec-add, modules/timespec-sub: New files.
13488
13489         dtotimespec: new module
13490         * lib/timespec.h (dtotimespec): New decl.
13491         * lib/dtotimespec.c, modules/dtotimespec: New files.
13492
13493         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13494
13495         pselect: new module
13496         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13497         (pselect): New decls.
13498         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13499         since the standard pselect decl uses 'restrict'.
13500         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13501         HAVE_PSELECT, REPLACE_PSELECT.
13502         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13503         HAVE_PSELECT, REPLACE_PSELECT.
13504         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13505
13506         sys_select: don't depend on sys_socket
13507         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13509         This fix works on GNU and GNU-like platforms, but has not been tested
13510         on native Windows.
13511         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13512         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13513         gl_HEADER_SYS_SOCKET.
13514         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13515         gl_PREREQ_SYS_H_WINSOCK2.
13516
13517 2011-06-29  Eric Blake  <eblake@redhat.com>
13518
13519         pipe2: fix C89 compile problem
13520         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13521         Reported by Bruno Haible.
13522
13523         pipe, pipe2: don't corrupt fd on error
13524         * lib/pipe.c (pipe): Leave fd unchanged on error.
13525         * lib/pipe2.c (pipe2): Likewise.
13526         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13527         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13528
13529 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13530
13531         mmap-anon: do not use regular expressions inadvertently
13532         * m4/mmap-anon.m4: Remove trailing period from strings sought
13533         in the output.
13534
13535 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         nanosleep: fix integer overflow problem
13538         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13539         arithmetic wraps around on overflow.
13540
13541         nanosleep: simplify carrying
13542         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13543         first call to the underyling nanosleep, not for the last one.
13544         This doesn't fix any bugs, but it simplifies the computation of
13545         the remaining delay.  Found while auditing integer overflow issues.
13546
13547         dup2: remove test for existence of fcntl
13548         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13549         "#if HAVE_FCNTL", in the configure-time test program.
13550         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13551         and therefore speeds up "configure" a bit.  Found while
13552         adding the dup2 module to Emacs.
13553
13554 2011-06-24  Eric Blake  <eblake@redhat.com>
13555
13556         maint.mk: enhance useless header checks
13557         * top/maint.mk (_sc_header_without_use): Check both include
13558         styles.
13559         (sc_prohibit_assert_without_use)
13560         (sc_prohibit_close_stream_without_use)
13561         (sc_prohibit_getopt_without_use)
13562         (sc_prohibit_quotearg_without_use)
13563         (sc_prohibit_quote_without_use)
13564         (sc_prohibit_long_options_without_use)
13565         (sc_prohibit_inttostr_without_use)
13566         (sc_prohibit_ignore_value_without_use)
13567         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13568         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13569         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13570         (sc_prohibit_hash_pjw_without_use)
13571         (sc_prohibit_safe_read_without_use)
13572         (sc_prohibit_argmatch_without_use)
13573         (sc_prohibit_canonicalize_without_use)
13574         (sc_prohibit_root_dev_ino_without_use)
13575         (sc_prohibit_openat_without_use)
13576         (sc_prohibit_c_ctype_without_use)
13577         (sc_prohibit_signal_without_use)
13578         (sc_prohibit_stdio--_without_use)
13579         (sc_prohibit_stdio-safer_without_use)
13580         (sc_prohibit_strings_without_use)
13581         (sc_prohibit_intprops_without_use)
13582         (sc_prohibit_stddef_without_use)
13583         (sc_prohibit_xfreopen_without_use): Update clients.
13584
13585 2011-06-24  Jim Meyering  <meyering@redhat.com>
13586
13587         syntax-check: keep one maint.mk rule in sync with its header
13588         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13589         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13590         I prefer to avoid temporary files here, so use <(...), but that
13591         is not supported by /bin/sh, so...
13592         (SHELL): Define to /bin/bash.
13593
13594 2011-06-24  Eric Blake  <eblake@redhat.com>
13595
13596         maint.mk: update sc_prohibit_intprops_without_use
13597         * top/maint.mk (_intprops_names): Match recent changes.
13598
13599 2011-06-24  Bruno Haible  <bruno@clisp.org>
13600
13601         strerror-override: No-op tweak.
13602         * lib/strerror-override.h (strerror_override): Reorder conditions,
13603         for consistency with lib/strerror-override.c.
13604
13605 2011-06-23  Eric Blake  <eblake@redhat.com>
13606
13607         maint.mk: test further PATH_MAX issues
13608         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13609         (sc_prohibit_path_max_allocation): ...and also test alloca.
13610         Suggested by Jim Meyering.
13611
13612 2011-06-22  Eric Blake  <eblake@redhat.com>
13613
13614         maint.mk: add syntax-check to avoid char[PATH_MAX]
13615         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13616
13617         stat: be robust to PATH_MAX definition
13618         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13619         * modules/stat (Depends-on): Add verify.
13620
13621         link: work around IRIX bug
13622         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13623         * lib/link.c (rpl_link): Work around it.
13624         * tests/test-link.h (test_link): Enhance test.
13625         * doc/posix-functions/link.texi (link): Document the bug.
13626
13627         getopt: silence clang warning
13628         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13629         dereference.
13630         Reported by Gustavo Martin Domato.
13631
13632 2011-06-22  Jim Meyering  <meyering@redhat.com>
13633
13634         bootstrap: do not insert a blank line into each .gitignore file
13635         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13636
13637 2011-06-21  Eric Blake  <eblake@redhat.com>
13638
13639         perror: test for output mismatch
13640         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13641         perror on IRIX.
13642
13643         strerror_r: fix OpenBSD behavior on out-of-range
13644         * lib/strerror_r.c (strerror_r): Always use maximal string.
13645         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13646
13647         strerror_r: fix OpenBSD behavior on 0
13648         * lib/strerror-override.c (strerror_override): Also override 0
13649         when needed.
13650         * lib/strerror-override.h (strerror_override): Likewise.
13651         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13652         earlier.
13653         * lib/strerror_r.c (strerror_r): Likewise.
13654         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13655         behavior...
13656         (gl_FUNC_STRERROR_0): ...into new macro.
13657         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13658         is overridden.
13659         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13660         * modules/strerror-override (Files): Add strerror.m4.
13661         (configure.ac): Also provide override for 0 when needed.
13662         * doc/posix-functions/strerror.texi (strerror): Document this.
13663         * doc/posix-functions/perror.texi (perror): Likewise.
13664
13665         perror: adjust array size
13666         * modules/perror (Depends-on): Add strerror-override.
13667         * lib/perror.c (perror): Use it to avoid magic number.
13668
13669         strerror-override: reduce size
13670         * lib/strerror-override.c (strerror_override): Use fewer lines.
13671
13672 2011-06-20  Bruno Haible  <bruno@clisp.org>
13673
13674         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13675         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13676
13677 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13678
13679         alloca: port to compilers that can optimize like GCC 4.6.0
13680         * lib/alloca.c (find_stack_direction): New signature, taken from
13681         Autoconf git.  This works with GCC 4.6.0.  This code should never
13682         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13683         be used with other compilers that optimize as well as GCC 4.6.0 does.
13684         (alloca): Adjust to new signature.
13685         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13686         New macro, which patches Autoconf in a similar way.
13687
13688         c-stack: stop worrying about stack direction
13689         * lib/c-stack.c (find_stack_direction): Remove.
13690         (segv_handler): Don't worry about stack direction growth, as it's
13691         too much of a pain to configure this correctly, given how compilers
13692         are optimizing-away our stack-growth detection code.  Instead, assume
13693         that any access to just before or just after the stack is OK.
13694         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13695         Don't require AC_FUNC_ALLOCA; no longer needed.
13696
13697 2011-06-20  Eric Blake  <eblake@redhat.com>
13698
13699         test-stat: don't allocate PATH_MAX bytes
13700         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13701         PATH_MAX-sized buffer.
13702         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13703         * modules/stat-tests (Depends-on): Likewise.
13704         * tests/test-fstatat.c (includes): Drop pathmax.h.
13705         * tests/test-stat.c (includes): Likewise.
13706         Reported by Bruno Haible.
13707
13708 2011-06-20  Bruno Haible  <bruno@clisp.org>
13709
13710         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13711         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13712         * lib/float.c: New file.
13713         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13714         REPLACE_FLOAT_LDBL.
13715         * modules/float (Files): Add lib/float.c.
13716         (configure.ac): Invoke AC_LIBOBJ.
13717         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13718
13719 2011-06-20  Bruno Haible  <bruno@clisp.org>
13720
13721         Tests for module 'float'.
13722         * modules/float-tests: New file.
13723         * tests/test-float.c: New file.
13724
13725 2011-06-19  Bruno Haible  <bruno@clisp.org>
13726
13727         isinf: Coding style.
13728         * lib/isinf.c: Use GNU coding style.
13729
13730 2011-06-19  Bruno Haible  <bruno@clisp.org>
13731
13732         linkat test: Avoid test failure on AIX 7.1.
13733         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13734         * tests/test-link.h (test_link): Likewise.
13735
13736 2011-06-19  Bruno Haible  <bruno@clisp.org>
13737
13738         pread test: Avoid test failure on OpenBSD 4.9.
13739         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13740
13741 2011-06-19  Bruno Haible  <bruno@clisp.org>
13742
13743         sprintf-posix: Fix test failure on AIX 7.1.
13744         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13745         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13746         on AIX.
13747         * doc/posix-functions/fprintf.texi: Likewise.
13748         * doc/posix-functions/printf.texi: Likewise.
13749         * doc/posix-functions/snprintf.texi: Likewise.
13750         * doc/posix-functions/sprintf.texi: Likewise.
13751         * doc/posix-functions/vdprintf.texi: Likewise.
13752         * doc/posix-functions/vfprintf.texi: Likewise.
13753         * doc/posix-functions/vprintf.texi: Likewise.
13754         * doc/posix-functions/vsnprintf.texi: Likewise.
13755         * doc/posix-functions/vsprintf.texi: Likewise.
13756
13757 2011-06-19  Bruno Haible  <bruno@clisp.org>
13758
13759         roundl-ieee: Fix test failure on AIX 7.1.
13760         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13761         * doc/posix-functions/roundl.texi: Mention problem with negative
13762         arguments.
13763
13764 2011-06-19  Bruno Haible  <bruno@clisp.org>
13765
13766         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13767         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13768         * doc/posix-functions/round.texi: Mention problem with negative
13769         arguments.
13770         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13771
13772 2011-06-19  Bruno Haible  <bruno@clisp.org>
13773
13774         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13775         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13776         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13777         * doc/posix-functions/roundf.texi: Mention problem with negative
13778         arguments.
13779         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13780
13781 2011-06-19  Bruno Haible  <bruno@clisp.org>
13782
13783         ceilf-ieee: Work around bug on MacOS X 10.5.
13784         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13785
13786         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13787         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13788         IEEE compliant, avoid compiler optimizations.
13789         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13790         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13791         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13792         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13793         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13794         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13795         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13797         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13798         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13799
13800 2011-06-19  Bruno Haible  <bruno@clisp.org>
13801
13802         ceilf-ieee: Work around bug on AIX 7.1.
13803         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13804         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13805
13806 2011-06-19  Bruno Haible  <bruno@clisp.org>
13807
13808         ceil-ieee: Work around bug on AIX 7.1.
13809         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13810         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13811
13812 2011-06-18  Bruno Haible  <bruno@clisp.org>
13813
13814         fsync test: Avoid test failure on MacOS X and AIX.
13815         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13816         EINVAL.
13817
13818 2011-06-18  Bruno Haible  <bruno@clisp.org>
13819
13820         openat, fdopendir tests: Fix link errors.
13821         * modules/openat-tests (Depends-on): Add progname.
13822         * modules/fdopendir-tests (Depends-on): Likewise.
13823         * tests/test-fchownat.c: Include progname.h.
13824         (main): Call set_program_name.
13825         * tests/test-fstatat.c: Include progname.h.
13826         (main): Call set_program_name.
13827         * tests/test-mkdirat.c: Include progname.h.
13828         (main): Call set_program_name.
13829         * tests/test-openat.c: Include progname.h.
13830         (main): Call set_program_name.
13831         * tests/test-unlinkat.c: Include progname.h.
13832         (main): Call set_program_name.
13833         * tests/test-fdopendir.c: Include progname.h.
13834         (main): Call set_program_name.
13835
13836 2011-06-18  Bruno Haible  <bruno@clisp.org>
13837
13838         Doc update.
13839         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
13840         HP-UX.
13841         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
13842
13843 2011-06-18  Bruno Haible  <bruno@clisp.org>
13844
13845         getcwd tests: Avoid compilation error on HP-UX 11.31.
13846         * modules/getcwd-tests (Depends-on): Add pathmax.
13847         * tests/test-getcwd.c: Include pathmax.h.
13848
13849 2011-06-18  Bruno Haible  <bruno@clisp.org>
13850
13851         isfinite, isinf: Fix link error on AIX 6 and 7.
13852         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
13853         needed, also test the macro with a 'float' argument.
13854         * m4/isinf.m4 (gl_ISINF): Likewise.
13855
13856 2011-06-18  Bruno Haible  <bruno@clisp.org>
13857
13858         getloadavg: Don't clobber LIBS. Regression from previous commit.
13859         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
13860         AC_CHECK_LIB from here...
13861         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
13862         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
13863         gl_func_getloadavg_done.
13864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13865
13866 2011-06-18  Bruno Haible  <bruno@clisp.org>
13867
13868         clean-temp: Improve documentation.
13869         * lib/clean-temp.h: Explain better how to use this module.
13870         Reported by John Darrington <john@darrington.wattle.id.au>.
13871
13872 2011-06-17  Bruno Haible  <bruno@clisp.org>
13873
13874         pread, pwrite: Avoid cc warning on AIX.
13875         * lib/unistd.in.h (pread): Undefine before defining as a macro.
13876         (pwrite): Likewise.
13877
13878 2011-06-17  Bruno Haible  <bruno@clisp.org>
13879
13880         spawn-pipe tests: Fix link error.
13881         * tests/test-spawn-pipe-child.c: Undefine fprintf.
13882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13883
13884 2011-06-17  Bruno Haible  <bruno@clisp.org>
13885
13886         Tests: Remove unnecessary dependency.
13887         * modules/canonicalize-tests (Depends-on): Remove progname.
13888         * modules/chown-tests (Depends-on): Likewise.
13889         * modules/dirname-tests (Depends-on): Likewise.
13890         * modules/fdopendir-tests (Depends-on): Likewise.
13891         * modules/fdutimensat-tests (Depends-on): Likewise.
13892         * modules/hash-tests (Depends-on): Likewise.
13893         * modules/lchown-tests (Depends-on): Likewise.
13894         * modules/linkat-tests (Depends-on): Likewise.
13895         * modules/renameat-tests (Depends-on): Likewise.
13896         * modules/spawn-pipe-tests (Depends-on): Likewise.
13897         * modules/utimensat-tests (Depends-on): Likewise.
13898
13899 2011-06-17  Bruno Haible  <bruno@clisp.org>
13900
13901         spawn-pipe tests: Fix link error.
13902         * tests/test-spawn-pipe-child.c: Undefine fflush.
13903
13904 2011-06-17  Bruno Haible  <bruno@clisp.org>
13905
13906         Fix tests link errors.
13907         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
13908         * modules/chown-tests (Makefile.am): Don't link test-chown with
13909         LIBINTL.
13910         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
13911         LIBINTL.
13912         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
13913         LIBINTL.
13914         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
13915         LIBINTL.
13916
13917 2011-06-16  Bruno Haible  <bruno@clisp.org>
13918
13919         crypto/gc-sha1: Fix recent regression.
13920         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
13921         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
13922
13923         crypto/gc-md5: Fix recent regression.
13924         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
13925
13926         crypto/gc-md4: Fix recent regression.
13927         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
13928         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
13929
13930         crypto/gc-arctwo: Fix recent regression.
13931         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
13932         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
13933
13934         crypto/gc-rijndael: Fix recent regression.
13935         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
13936         (configure.ac): Invoke AC_LIBOBJ here.
13937         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
13938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13939
13940         crypto/gc-hmac-sha1: Fix recent regression.
13941         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
13942         (configure.ac): Invoke AC_LIBOBJ here.
13943         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
13944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13945
13946         crypto/gc-hmac-md5: Fix recent regression.
13947         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
13948         (configure.ac): Invoke AC_LIBOBJ here.
13949         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13951
13952         crypto/gc-des: Fix recent regression.
13953         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13954         (configure.ac): Invoke AC_LIBOBJ here.
13955         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13957
13958         crypto/gc-arcfour: Fix recent regression.
13959         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13960         (configure.ac): Invoke AC_LIBOBJ here.
13961         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13963
13964 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13967         After the 2011-05-21 change, this macro requires
13968         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13969         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13970
13971 2011-06-16  Bruno Haible  <bruno@clisp.org>
13972
13973         fprintftime: Move AC_LIBOBJ invocations to module description.
13974         * m4/fprintftime.m4: Remove file.
13975         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13976         (configure.ac): Remove gl_FPRINTFTIME call.
13977         (Makefile.am): Augment lib_SOURCES.
13978         Reported by Jim Meyering.
13979
13980 2011-06-16  Bruno Haible  <bruno@clisp.org>
13981
13982         tmpfile-safer: Finish 2011-05-23 commit.
13983         * m4/stdio-safer.m4: Really remove file.
13984         Reported by Jim Meyering.
13985
13986 2011-06-16  Bruno Haible  <bruno@clisp.org>
13987
13988         syntax-check: Fix typo.
13989         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13990         printf-posix.m4.
13991         Reported by Jim Meyering.
13992
13993 2011-06-13  Jim Meyering  <meyering@redhat.com>
13994
13995         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13996         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13997
13998 2011-05-23  Bruno Haible  <bruno@clisp.org>
13999
14000         yesno: Move AC_LIBOBJ invocations to module description.
14001         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14002         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14003
14004 2011-05-23  Bruno Haible  <bruno@clisp.org>
14005
14006         xstrtol: Move AC_LIBOBJ invocations to module description.
14007         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14008         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14009
14010 2011-05-23  Bruno Haible  <bruno@clisp.org>
14011
14012         xstrtold: Move AC_LIBOBJ invocations to module description.
14013         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14014         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14015
14016 2011-05-23  Bruno Haible  <bruno@clisp.org>
14017
14018         xstrtod: Move AC_LIBOBJ invocations to module description.
14019         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14020         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14021
14022 2011-05-23  Bruno Haible  <bruno@clisp.org>
14023
14024         xnanosleep: Move AC_LIBOBJ invocations to module description.
14025         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14026         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14027
14028 2011-05-23  Bruno Haible  <bruno@clisp.org>
14029
14030         xgetcwd: Move AC_LIBOBJ invocations to module description.
14031         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14032         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14033
14034 2011-05-23  Bruno Haible  <bruno@clisp.org>
14035
14036         xalloc: Move AC_LIBOBJ invocations to module description.
14037         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14038         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14039
14040 2011-05-23  Bruno Haible  <bruno@clisp.org>
14041
14042         write-any-file: Move AC_LIBOBJ invocations to module description.
14043         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14044         invocation.
14045         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14046
14047 2011-05-23  Bruno Haible  <bruno@clisp.org>
14048
14049         utimens: Move AC_LIBOBJ invocations to module description.
14050         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14051         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14052
14053 2011-05-23  Bruno Haible  <bruno@clisp.org>
14054
14055         utimecmp: Move AC_LIBOBJ invocations to module description.
14056         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14057         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14058
14059 2011-05-23  Bruno Haible  <bruno@clisp.org>
14060
14061         userspec: Move AC_LIBOBJ invocations to module description.
14062         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14063         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14064
14065 2011-05-23  Bruno Haible  <bruno@clisp.org>
14066
14067         unlinkdir: Move AC_LIBOBJ invocations to module description.
14068         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14069         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14070
14071 2011-05-23  Bruno Haible  <bruno@clisp.org>
14072
14073         unistd-safer: Move AC_LIBOBJ invocations to module description.
14074         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14075         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14076
14077 2011-05-23  Bruno Haible  <bruno@clisp.org>
14078
14079         tempname: Move AC_LIBOBJ invocations to module description.
14080         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14081         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14082
14083 2011-05-23  Bruno Haible  <bruno@clisp.org>
14084
14085         strftime: Move AC_LIBOBJ invocations to module description.
14086         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14087         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14088
14089 2011-05-23  Bruno Haible  <bruno@clisp.org>
14090
14091         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14092         * m4/stdlib-safer.m4: Remove file.
14093         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14094         (configure.ac): Remove gl_STDLIB_SAFER call.
14095         (Makefile.am): Augment lib_SOURCES.
14096
14097 2011-05-23  Bruno Haible  <bruno@clisp.org>
14098
14099         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14100         * m4/stdio-safer.m4: Remove file.
14101         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14102         (configure.ac): Remove gl_TMPFILE_SAFER call.
14103         (Makefile.am): Augment lib_SOURCES.
14104
14105 2011-05-23  Bruno Haible  <bruno@clisp.org>
14106
14107         popen-safer: Move AC_LIBOBJ invocations to module description.
14108         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14109         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14110         (configure.ac): Remove gl_POPEN_SAFER call.
14111         (Makefile.am): Augment lib_SOURCES.
14112
14113 2011-05-23  Bruno Haible  <bruno@clisp.org>
14114
14115         freopen-safer: Move AC_LIBOBJ invocations to module description.
14116         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14117         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14118         (configure.ac): Remove gl_FREOPEN_SAFER call.
14119         (Makefile.am): Augment lib_SOURCES.
14120
14121 2011-05-23  Bruno Haible  <bruno@clisp.org>
14122
14123         fopen-safer: Move AC_LIBOBJ invocations to module description.
14124         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14125         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14126         (configure.ac): Remove gl_FOPEN_SAFER call.
14127         (Makefile.am): Augment lib_SOURCES.
14128
14129 2011-05-23  Bruno Haible  <bruno@clisp.org>
14130
14131         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14132         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14133         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14134
14135 2011-05-23  Bruno Haible  <bruno@clisp.org>
14136
14137         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14138         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14139         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14140
14141 2011-05-23  Bruno Haible  <bruno@clisp.org>
14142
14143         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14144         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14145         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14146
14147 2011-05-23  Bruno Haible  <bruno@clisp.org>
14148
14149         settime: Move AC_LIBOBJ invocations to module description.
14150         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14151         * modules/settime (Makefile.am): Augment lib_SOURCES.
14152
14153 2011-05-23  Bruno Haible  <bruno@clisp.org>
14154
14155         savedir: Move AC_LIBOBJ invocations to module description.
14156         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14157         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14158
14159 2011-05-23  Bruno Haible  <bruno@clisp.org>
14160
14161         save-cwd: Move AC_LIBOBJ invocations to module description.
14162         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14163         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14164
14165 2011-05-23  Bruno Haible  <bruno@clisp.org>
14166
14167         same: Move AC_LIBOBJ invocations to module description.
14168         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14169         * modules/same (Makefile.am): Augment lib_SOURCES.
14170
14171 2011-05-23  Bruno Haible  <bruno@clisp.org>
14172
14173         safe-write: Move AC_LIBOBJ invocations to module description.
14174         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14175         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14176         instead of gl_SAFE_WRITE.
14177         (Makefile.am): Augment lib_SOURCES.
14178
14179 2011-05-23  Bruno Haible  <bruno@clisp.org>
14180
14181         safe-read: Move AC_LIBOBJ invocations to module description.
14182         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14183         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14184         of gl_SAFE_READ.
14185         (Makefile.am): Augment lib_SOURCES.
14186
14187 2011-05-23  Bruno Haible  <bruno@clisp.org>
14188
14189         safe-alloc: Move AC_LIBOBJ invocations to module description.
14190         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14191         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14192
14193 2011-05-23  Bruno Haible  <bruno@clisp.org>
14194
14195         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14196         * m4/rijndael.m4: Remove file.
14197         * modules/crypto/rijndael (Files): Remove it.
14198         (configure.ac): Remove gl_RIJNDAEL call.
14199         (Makefile.am): Augment lib_SOURCES.
14200
14201 2011-05-23  Bruno Haible  <bruno@clisp.org>
14202
14203         readtokens: Move AC_LIBOBJ invocations to module description.
14204         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14205         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14206
14207 2011-05-23  Bruno Haible  <bruno@clisp.org>
14208
14209         read-file: Move AC_LIBOBJ invocations to module description.
14210         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14211         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14212         of gl_FUNC_READ_FILE.
14213         (Makefile.am): Augment lib_SOURCES.
14214
14215 2011-05-23  Bruno Haible  <bruno@clisp.org>
14216
14217         quotearg: Move AC_LIBOBJ invocations to module description.
14218         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14219         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14220
14221 2011-05-23  Bruno Haible  <bruno@clisp.org>
14222
14223         quote: Move AC_LIBOBJ invocations to module description.
14224         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14225         * modules/quote (Makefile.am): Augment lib_SOURCES.
14226
14227 2011-05-23  Bruno Haible  <bruno@clisp.org>
14228
14229         posixver: Move AC_LIBOBJ invocations to module description.
14230         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14231         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14232
14233 2011-05-23  Bruno Haible  <bruno@clisp.org>
14234
14235         posixtm: Move AC_LIBOBJ invocations to module description.
14236         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14237         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14238
14239 2011-05-23  Bruno Haible  <bruno@clisp.org>
14240
14241         physmem: Move AC_LIBOBJ invocations to module description.
14242         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14243         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14244
14245 2011-05-23  Bruno Haible  <bruno@clisp.org>
14246
14247         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14248         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14249         invocation.
14250         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14251
14252 2011-05-23  Bruno Haible  <bruno@clisp.org>
14253
14254         mpsort: Move AC_LIBOBJ invocations to module description.
14255         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14256         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14257
14258 2011-05-23  Bruno Haible  <bruno@clisp.org>
14259
14260         modechange: Move AC_LIBOBJ invocations to module description.
14261         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14262         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14263
14264 2011-05-23  Bruno Haible  <bruno@clisp.org>
14265
14266         mkdir-p: Move AC_LIBOBJ invocations to module description.
14267         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14268         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14269
14270 2011-05-23  Bruno Haible  <bruno@clisp.org>
14271
14272         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14273         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14274         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14275
14276 2011-05-23  Bruno Haible  <bruno@clisp.org>
14277
14278         mgetgroups: Move AC_LIBOBJ invocations to module description.
14279         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14280         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14281
14282 2011-05-23  Bruno Haible  <bruno@clisp.org>
14283
14284         memxor: Move AC_LIBOBJ invocations to module description.
14285         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14286         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14287
14288 2011-05-23  Bruno Haible  <bruno@clisp.org>
14289
14290         memcoll: Move AC_LIBOBJ invocations to module description.
14291         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14292         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14293
14294 2011-05-23  Bruno Haible  <bruno@clisp.org>
14295
14296         memcasecmp: Move AC_LIBOBJ invocations to module description.
14297         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14298         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14299
14300 2011-05-23  Bruno Haible  <bruno@clisp.org>
14301
14302         crypto/md5: Move AC_LIBOBJ invocations to module description.
14303         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14304         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14305
14306 2011-05-23  Bruno Haible  <bruno@clisp.org>
14307
14308         crypto/md4: Move AC_LIBOBJ invocations to module description.
14309         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14310         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14311
14312 2011-05-23  Bruno Haible  <bruno@clisp.org>
14313
14314         crypto/md2: Move AC_LIBOBJ invocations to module description.
14315         * m4/md2.m4: Remove file.
14316         * modules/crypto/md2 (Files): Remove it.
14317         (configure.ac): Remove gl_MD2 call.
14318         (Makefile.am): Augment lib_SOURCES.
14319
14320 2011-05-23  Bruno Haible  <bruno@clisp.org>
14321
14322         long-options: Move AC_LIBOBJ invocations to module description.
14323         * m4/long-options.m4: Remove file.
14324         * modules/long-options (Files): Remove it.
14325         (configure.ac): Remove gl_LONG_OPTIONS call.
14326         (Makefile.am): Augment lib_SOURCES.
14327
14328 2011-05-23  Bruno Haible  <bruno@clisp.org>
14329
14330         i-ring: Move AC_LIBOBJ invocations to module description.
14331         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14332         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14333
14334 2011-05-23  Bruno Haible  <bruno@clisp.org>
14335
14336         idcache: Move AC_LIBOBJ invocations to module description.
14337         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14338         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14339
14340 2011-05-23  Bruno Haible  <bruno@clisp.org>
14341
14342         human: Move AC_LIBOBJ invocations to module description.
14343         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14344         * modules/human (Makefile.am): Augment lib_SOURCES.
14345
14346 2011-05-23  Bruno Haible  <bruno@clisp.org>
14347
14348         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14349         * m4/hmac-sha1.m4: Remove file.
14350         * modules/crypto/hmac-sha1 (Files): Remove it.
14351         (configure.ac): Remove gl_HMAC_SHA1 call.
14352         (Makefile.am): Augment lib_SOURCES.
14353
14354 2011-05-23  Bruno Haible  <bruno@clisp.org>
14355
14356         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14357         * m4/hmac-md5.m4: Remove file.
14358         * modules/crypto/hmac-md5 (Files): Remove it.
14359         (configure.ac): Remove gl_HMAC_MD5 call.
14360         (Makefile.am): Augment lib_SOURCES.
14361
14362 2011-05-23  Bruno Haible  <bruno@clisp.org>
14363
14364         hash: Move AC_LIBOBJ invocations to module description.
14365         * m4/hash.m4: Remove file.
14366         * modules/hash (Files): Remove it.
14367         (configure.ac): Remove gl_HASH call.
14368         (Makefile.am): Augment lib_SOURCES.
14369
14370 2011-05-23  Bruno Haible  <bruno@clisp.org>
14371
14372         hard-locale: Move AC_LIBOBJ invocations to module description.
14373         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14374         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14375
14376 2011-05-23  Bruno Haible  <bruno@clisp.org>
14377
14378         getugroups: Move AC_LIBOBJ invocations to module description.
14379         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14380         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14381
14382 2011-05-23  Bruno Haible  <bruno@clisp.org>
14383
14384         gettime: Move AC_LIBOBJ invocations to module description.
14385         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14386         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14387
14388 2011-05-23  Bruno Haible  <bruno@clisp.org>
14389
14390         getndelim2: Move AC_LIBOBJ invocations to module description.
14391         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14392         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14393
14394 2011-05-23  Bruno Haible  <bruno@clisp.org>
14395
14396         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14397         * m4/gc-pbkdf2-sha1.m4: Remove file.
14398         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14399         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14400         (Makefile.am): Augment lib_SOURCES.
14401
14402 2011-05-23  Bruno Haible  <bruno@clisp.org>
14403
14404         fts: Move AC_LIBOBJ invocations to module description.
14405         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14406         * modules/fts (configure.ac): ... to here.
14407
14408 2011-05-23  Bruno Haible  <bruno@clisp.org>
14409
14410         file-type: Move AC_LIBOBJ invocations to module description.
14411         * m4/file-type.m4: Remove file.
14412         * modules/file-type (Files): Remove it.
14413         (configure.ac): Remove gl_FILE_TYPE call.
14414         (Makefile.am): Augment lib_SOURCES.
14415
14416 2011-05-23  Bruno Haible  <bruno@clisp.org>
14417
14418         filenamecat*: Respect rules for use of AC_LIBOBJ.
14419         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14420         Remove AC_LIBOBJ invocation.
14421         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14422         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14423
14424 2011-05-23  Bruno Haible  <bruno@clisp.org>
14425
14426         filemode: Move AC_LIBOBJ invocations to module description.
14427         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14428         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14429
14430 2011-05-23  Bruno Haible  <bruno@clisp.org>
14431
14432         openat-safer: Move AC_LIBOBJ invocations to module description.
14433         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14434         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14435
14436 2011-05-23  Bruno Haible  <bruno@clisp.org>
14437
14438         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14440         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14441
14442 2011-05-23  Bruno Haible  <bruno@clisp.org>
14443
14444         exclude: Move AC_LIBOBJ invocations to module description.
14445         * m4/exclude.m4: Remove file.
14446         * modules/exclude (Files): Remove it.
14447         (configure.ac): Remove gl_EXCLUDE call.
14448         (Makefile.am): Augment lib_SOURCES.
14449
14450 2011-05-23  Bruno Haible  <bruno@clisp.org>
14451
14452         dirname*: Respect rules for use of AC_LIBOBJ.
14453         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14454         invocations.
14455         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14456         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14457
14458 2011-05-23  Bruno Haible  <bruno@clisp.org>
14459
14460         dirent-safer: Move AC_LIBOBJ invocations to module description.
14461         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14462         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14463
14464 2011-05-23  Bruno Haible  <bruno@clisp.org>
14465
14466         crypto/des: Move AC_LIBOBJ invocations to module description.
14467         * m4/des.m4: Remove file.
14468         * modules/crypto/des (Files): Remove it.
14469         (configure.ac): Remove gl_DES call.
14470         (Makefile.am): Augment lib_SOURCES.
14471
14472 2011-05-23  Bruno Haible  <bruno@clisp.org>
14473
14474         cycle-check: Move AC_LIBOBJ invocations to module description.
14475         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14476         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14477
14478 2011-05-23  Bruno Haible  <bruno@clisp.org>
14479
14480         c-strtold: Move AC_LIBOBJ invocations to module description.
14481         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14482         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14483
14484 2011-05-23  Bruno Haible  <bruno@clisp.org>
14485
14486         c-strtod: Move AC_LIBOBJ invocations to module description.
14487         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14488         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14489
14490 2011-05-23  Bruno Haible  <bruno@clisp.org>
14491
14492         crc: Move AC_LIBOBJ invocations to module description.
14493         * m4/crc.m4: Remove file.
14494         * modules/crc (Files): Remove it.
14495         (configure.ac): Remove gl_CRC call.
14496         (Makefile.am): Augment lib_SOURCES.
14497
14498 2011-05-23  Bruno Haible  <bruno@clisp.org>
14499
14500         close-stream: Move AC_LIBOBJ invocations to module description.
14501         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14502         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14503
14504 2011-05-23  Bruno Haible  <bruno@clisp.org>
14505
14506         closeout: Move AC_LIBOBJ invocations to module description.
14507         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14508         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14509
14510 2011-05-23  Bruno Haible  <bruno@clisp.org>
14511
14512         closein: Move AC_LIBOBJ invocations to module description.
14513         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14514         * modules/closein (Makefile.am): Augment lib_SOURCES.
14515
14516 2011-05-23  Bruno Haible  <bruno@clisp.org>
14517
14518         cloexec: Move AC_LIBOBJ invocations to module description.
14519         * m4/cloexec.m4: Remove file.
14520         * modules/cloexec (Files): Remove it.
14521         (configure.ac): Remove gl_CLOEXEC call.
14522         (Makefile.am): Augment lib_SOURCES.
14523
14524 2011-05-23  Bruno Haible  <bruno@clisp.org>
14525
14526         check-version: Move AC_LIBOBJ invocations to module description.
14527         * m4/check-version.m4: Remove file.
14528         * modules/check-version (Files): Remove it.
14529         (configure.ac): Remove gl_CHECK_VERSION call.
14530         (Makefile.am): Augment lib_SOURCES.
14531
14532 2011-05-23  Bruno Haible  <bruno@clisp.org>
14533
14534         chdir-safer: Move AC_LIBOBJ invocations to module description.
14535         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14536         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14537
14538 2011-05-23  Bruno Haible  <bruno@clisp.org>
14539
14540         canonicalize: Move AC_LIBOBJ invocations to module description.
14541         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14542         AC_LIBOBJ invocation.
14543         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14544
14545 2011-05-23  Bruno Haible  <bruno@clisp.org>
14546
14547         canon-host: Move AC_LIBOBJ invocations to module description.
14548         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14549         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14550         instead of gl_CANON_HOST.
14551         (Makefile.am): Augment lib_SOURCES.
14552
14553 2011-05-23  Bruno Haible  <bruno@clisp.org>
14554
14555         backupfile: Move AC_LIBOBJ invocations to module description.
14556         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14557         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14558
14559 2011-05-23  Bruno Haible  <bruno@clisp.org>
14560
14561         argmatch: Move AC_LIBOBJ invocations to module description.
14562         * m4/argmatch.m4: Remove file.
14563         * modules/argmatch (Files): Remove it.
14564         (configure.ac): Remove gl_ARGMATCH call.
14565         (Makefile.am): Augment lib_SOURCES.
14566
14567 2011-05-23  Bruno Haible  <bruno@clisp.org>
14568
14569         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14570         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14571         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14572
14573 2011-05-23  Bruno Haible  <bruno@clisp.org>
14574
14575         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14576         * m4/arcfour.m4: Remove file.
14577         * modules/crypto/arcfour (Files): Remove it.
14578         (configure.ac): Remove gl_ARCFOUR call.
14579         (Makefile.am): Augment lib_SOURCES.
14580
14581 2011-05-22  Bruno Haible  <bruno@clisp.org>
14582
14583         write: Move AC_LIBOBJ invocations to module description.
14584         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14585         * modules/write (configure.ac): ... to here.
14586
14587 2011-05-22  Bruno Haible  <bruno@clisp.org>
14588
14589         wmemset: Move AC_LIBOBJ invocations to module description.
14590         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14591         here...
14592         * modules/wmemset (configure.ac): ... to here.
14593
14594 2011-05-22  Bruno Haible  <bruno@clisp.org>
14595
14596         wmemmove: Move AC_LIBOBJ invocations to module description.
14597         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14598         here...
14599         * modules/wmemmove (configure.ac): ... to here.
14600
14601 2011-05-22  Bruno Haible  <bruno@clisp.org>
14602
14603         wmemcpy: Move AC_LIBOBJ invocations to module description.
14604         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14605         here...
14606         * modules/wmemcpy (configure.ac): ... to here.
14607
14608 2011-05-22  Bruno Haible  <bruno@clisp.org>
14609
14610         wmemcmp: Move AC_LIBOBJ invocations to module description.
14611         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14612         here...
14613         * modules/wmemcmp (configure.ac): ... to here.
14614
14615 2011-05-22  Bruno Haible  <bruno@clisp.org>
14616
14617         wmemchr: Move AC_LIBOBJ invocations to module description.
14618         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14619         here...
14620         * modules/wmemchr (configure.ac): ... to here.
14621
14622 2011-05-22  Bruno Haible  <bruno@clisp.org>
14623
14624         wcswidth: Move AC_LIBOBJ invocations to module description.
14625         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14626         here...
14627         * modules/wcswidth (configure.ac): ... to here.
14628
14629 2011-05-22  Bruno Haible  <bruno@clisp.org>
14630
14631         wcwidth: Respect rules for use of AC_LIBOBJ.
14632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14633         invocation from here...
14634         * modules/wcwidth (configure.ac): ... to here.
14635         (Depends-on): Update conditions.
14636
14637 2011-05-22  Bruno Haible  <bruno@clisp.org>
14638
14639         wctype: Move AC_LIBOBJ invocations to module description.
14640         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14641         invocation from here...
14642         * modules/wctype (configure.ac): ... to here.
14643         (Depends-on): Update conditions.
14644
14645 2011-05-22  Bruno Haible  <bruno@clisp.org>
14646
14647         wctrans: Move AC_LIBOBJ invocations to module description.
14648         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14649         invocation from here...
14650         * modules/wctrans (configure.ac): ... to here.
14651
14652 2011-05-22  Bruno Haible  <bruno@clisp.org>
14653
14654         wctomb: Move AC_LIBOBJ invocations to module description.
14655         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14656         invocations from here...
14657         * modules/wctomb (configure.ac): ... to here.
14658
14659 2011-05-22  Bruno Haible  <bruno@clisp.org>
14660
14661         wctob: Move AC_LIBOBJ invocations to module description.
14662         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14663         gl_PREREQ_WCTOB invocations from here...
14664         * modules/wctob (configure.ac): ... to here.
14665         (Depends-on): Update conditions.
14666
14667 2011-05-22  Bruno Haible  <bruno@clisp.org>
14668
14669         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14670         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14671         here...
14672         * modules/wcsxfrm (configure.ac): ... to here.
14673
14674 2011-05-22  Bruno Haible  <bruno@clisp.org>
14675
14676         wcstok: Move AC_LIBOBJ invocations to module description.
14677         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14678         * modules/wcstok (configure.ac): ... to here.
14679
14680 2011-05-22  Bruno Haible  <bruno@clisp.org>
14681
14682         wcsstr: Move AC_LIBOBJ invocations to module description.
14683         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14684         * modules/wcsstr (configure.ac): ... to here.
14685
14686 2011-05-22  Bruno Haible  <bruno@clisp.org>
14687
14688         wcsspn: Move AC_LIBOBJ invocations to module description.
14689         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14690         * modules/wcsspn (configure.ac): ... to here.
14691
14692 2011-05-22  Bruno Haible  <bruno@clisp.org>
14693
14694         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14695         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14696         gl_PREREQ_WCSRTOMBS invocations from here...
14697         * modules/wcsrtombs (configure.ac): ... to here.
14698
14699 2011-05-22  Bruno Haible  <bruno@clisp.org>
14700
14701         wcsrchr: Move AC_LIBOBJ invocations to module description.
14702         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14703         here...
14704         * modules/wcsrchr (configure.ac): ... to here.
14705
14706 2011-05-22  Bruno Haible  <bruno@clisp.org>
14707
14708         wcspbrk: Move AC_LIBOBJ invocations to module description.
14709         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14710         here...
14711         * modules/wcspbrk (configure.ac): ... to here.
14712
14713 2011-05-22  Bruno Haible  <bruno@clisp.org>
14714
14715         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14716         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14717         gl_PREREQ_WCSNRTOMBS invocations from here...
14718         * modules/wcsnrtombs (configure.ac): ... to here.
14719
14720 2011-05-22  Bruno Haible  <bruno@clisp.org>
14721
14722         wcsnlen: Move AC_LIBOBJ invocations to module description.
14723         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14724         here...
14725         * modules/wcsnlen (configure.ac): ... to here.
14726
14727 2011-05-22  Bruno Haible  <bruno@clisp.org>
14728
14729         wcsncpy: Move AC_LIBOBJ invocations to module description.
14730         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14731         here...
14732         * modules/wcsncpy (configure.ac): ... to here.
14733
14734 2011-05-22  Bruno Haible  <bruno@clisp.org>
14735
14736         wcsncmp: Move AC_LIBOBJ invocations to module description.
14737         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14738         here...
14739         * modules/wcsncmp (configure.ac): ... to here.
14740
14741 2011-05-22  Bruno Haible  <bruno@clisp.org>
14742
14743         wcsncat: Move AC_LIBOBJ invocations to module description.
14744         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14745         here...
14746         * modules/wcsncat (configure.ac): ... to here.
14747
14748 2011-05-22  Bruno Haible  <bruno@clisp.org>
14749
14750         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14751         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14752         from here...
14753         * modules/wcsncasecmp (configure.ac): ... to here.
14754
14755 2011-05-22  Bruno Haible  <bruno@clisp.org>
14756
14757         wcslen: Move AC_LIBOBJ invocations to module description.
14758         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14759         * modules/wcslen (configure.ac): ... to here.
14760
14761 2011-05-22  Bruno Haible  <bruno@clisp.org>
14762
14763         wcsdup: Move AC_LIBOBJ invocations to module description.
14764         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14765         * modules/wcsdup (configure.ac): ... to here.
14766
14767 2011-05-22  Bruno Haible  <bruno@clisp.org>
14768
14769         wcscspn: Move AC_LIBOBJ invocations to module description.
14770         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14771         here...
14772         * modules/wcscspn (configure.ac): ... to here.
14773
14774 2011-05-22  Bruno Haible  <bruno@clisp.org>
14775
14776         wcscpy: Move AC_LIBOBJ invocations to module description.
14777         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14778         * modules/wcscpy (configure.ac): ... to here.
14779
14780 2011-05-22  Bruno Haible  <bruno@clisp.org>
14781
14782         wcscoll: Move AC_LIBOBJ invocations to module description.
14783         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14784         here...
14785         * modules/wcscoll (configure.ac): ... to here.
14786
14787 2011-05-22  Bruno Haible  <bruno@clisp.org>
14788
14789         wcscmp: Move AC_LIBOBJ invocations to module description.
14790         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14791         * modules/wcscmp (configure.ac): ... to here.
14792
14793 2011-05-22  Bruno Haible  <bruno@clisp.org>
14794
14795         wcschr: Move AC_LIBOBJ invocations to module description.
14796         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14797         * modules/wcschr (configure.ac): ... to here.
14798
14799 2011-05-22  Bruno Haible  <bruno@clisp.org>
14800
14801         wcscat: Move AC_LIBOBJ invocations to module description.
14802         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14803         * modules/wcscat (configure.ac): ... to here.
14804
14805 2011-05-22  Bruno Haible  <bruno@clisp.org>
14806
14807         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14808         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14809         here...
14810         * modules/wcscasecmp (configure.ac): ... to here.
14811
14812 2011-05-22  Bruno Haible  <bruno@clisp.org>
14813
14814         wcrtomb: Move AC_LIBOBJ invocations to module description.
14815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14816         invocations from here...
14817         * modules/wcrtomb (configure.ac): ... to here.
14818
14819 2011-05-22  Bruno Haible  <bruno@clisp.org>
14820
14821         wcpncpy: Move AC_LIBOBJ invocations to module description.
14822         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
14823         here...
14824         * modules/wcpncpy (configure.ac): ... to here.
14825
14826 2011-05-22  Bruno Haible  <bruno@clisp.org>
14827
14828         wcpcpy: Move AC_LIBOBJ invocations to module description.
14829         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
14830         * modules/wcpcpy (configure.ac): ... to here.
14831
14832 2011-05-22  Bruno Haible  <bruno@clisp.org>
14833
14834         waitpid: Move AC_LIBOBJ invocations to module description.
14835         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
14836         invocation from here...
14837         * modules/waitpid (configure.ac): ... to here.
14838
14839 2011-05-22  Bruno Haible  <bruno@clisp.org>
14840
14841         utimensat: Move AC_LIBOBJ invocations to module description.
14842         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
14843         here...
14844         * modules/utimensat (configure.ac): ... to here.
14845
14846 2011-05-22  Bruno Haible  <bruno@clisp.org>
14847
14848         usleep: Move AC_LIBOBJ invocations to module description.
14849         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
14850         here...
14851         * modules/usleep (configure.ac): ... to here.
14852
14853 2011-05-22  Bruno Haible  <bruno@clisp.org>
14854
14855         unlockpt: Move AC_LIBOBJ invocations to module description.
14856         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
14857         gl_PREREQ_UNLOCKPT invocations from here...
14858         * modules/unlockpt (configure.ac): ... to here.
14859
14860 2011-05-22  Bruno Haible  <bruno@clisp.org>
14861
14862         unlink: Respect rules for use of AC_LIBOBJ.
14863         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
14864         * modules/unlink (configure.ac): ... to here.
14865
14866 2011-05-22  Bruno Haible  <bruno@clisp.org>
14867
14868         uname: Move AC_LIBOBJ invocations to module description.
14869         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
14870         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
14871         here...
14872         * modules/uname (configure.ac): ... to here.
14873
14874 2011-05-22  Bruno Haible  <bruno@clisp.org>
14875
14876         ttyname_r: Move AC_LIBOBJ invocations to module description.
14877         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
14878         gl_PREREQ_TTYNAME_R invocations from here...
14879         * modules/ttyname_r (configure.ac): ... to here.
14880
14881 2011-05-22  Bruno Haible  <bruno@clisp.org>
14882
14883         tsearch: Move AC_LIBOBJ invocations to module description.
14884         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
14885         invocations from here...
14886         * modules/tsearch (configure.ac): ... to here.
14887
14888 2011-05-22  Bruno Haible  <bruno@clisp.org>
14889
14890         towctrans: Move AC_LIBOBJ invocations to module description.
14891         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
14892         AC_LIBOBJ invocation from here...
14893         * modules/towctrans (configure.ac): ... to here.
14894
14895 2011-05-22  Bruno Haible  <bruno@clisp.org>
14896
14897         tmpfile: Move AC_LIBOBJ invocations to module description.
14898         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
14899         invocations from here...
14900         * modules/tmpfile (configure.ac): ... to here.
14901
14902 2011-05-22  Bruno Haible  <bruno@clisp.org>
14903
14904         times: Move AC_LIBOBJ invocations to module description.
14905         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
14906         * modules/times (configure.ac): ... to here.
14907
14908 2011-05-22  Bruno Haible  <bruno@clisp.org>
14909
14910         time_r: Move AC_LIBOBJ invocations to module description.
14911         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
14912         invocations from here...
14913         * modules/time_r (configure.ac): ... to here.
14914
14915 2011-05-22  Bruno Haible  <bruno@clisp.org>
14916
14917         timegm: Move AC_LIBOBJ invocations to module description.
14918         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
14919         invocations from here...
14920         * modules/timegm (configure.ac): ... to here.
14921
14922 2011-05-22  Bruno Haible  <bruno@clisp.org>
14923
14924         tcgetsid: Move AC_LIBOBJ invocations to module description.
14925         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
14926         and gl_PREREQ_TCGETSID invocations from here...
14927         * modules/tcgetsid (configure.ac): ... to here.
14928         (Depends-on): Update conditions.
14929
14930 2011-05-22  Bruno Haible  <bruno@clisp.org>
14931
14932         symlinkat: Move AC_LIBOBJ invocations to module description.
14933         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
14934         here...
14935         * modules/symlinkat (configure.ac): ... to here.
14936
14937 2011-05-22  Bruno Haible  <bruno@clisp.org>
14938
14939         symlink: Move AC_LIBOBJ invocations to module description.
14940         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
14941         here...
14942         * modules/symlink (configure.ac): ... to here.
14943
14944 2011-05-22  Bruno Haible  <bruno@clisp.org>
14945
14946         strverscmp: Move AC_LIBOBJ invocations to module description.
14947         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
14948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14949         from here...
14950         * modules/strverscmp (configure.ac): ... to here.
14951
14952 2011-05-22  Bruno Haible  <bruno@clisp.org>
14953
14954         strtok_r: Move AC_LIBOBJ invocations to module description.
14955         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14956         and gl_PREREQ_STRTOK_R invocations from here...
14957         * modules/strtok_r (configure.ac): ... to here.
14958         (Depends-on): Update conditions.
14959
14960 2011-05-22  Bruno Haible  <bruno@clisp.org>
14961
14962         strtoumax: Move AC_LIBOBJ invocations to module description.
14963         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14965         from here...
14966         * modules/strtoumax (configure.ac): ... to here.
14967
14968 2011-05-22  Bruno Haible  <bruno@clisp.org>
14969
14970         strtoimax: Move AC_LIBOBJ invocations to module description.
14971         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14973         from here...
14974         * modules/strtoimax (configure.ac): ... to here.
14975
14976 2011-05-22  Bruno Haible  <bruno@clisp.org>
14977
14978         strtoull: Move AC_LIBOBJ invocations to module description.
14979         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14980         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14981         from here...
14982         * modules/strtoull (configure.ac): ... to here.
14983
14984 2011-05-22  Bruno Haible  <bruno@clisp.org>
14985
14986         strtoll: Move AC_LIBOBJ invocations to module description.
14987         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14989         here...
14990         * modules/strtoll (configure.ac): ... to here.
14991
14992 2011-05-22  Bruno Haible  <bruno@clisp.org>
14993
14994         strtoul: Move AC_LIBOBJ invocations to module description.
14995         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14996         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14997         * modules/strtoul (configure.ac): ... to here.
14998
14999 2011-05-22  Bruno Haible  <bruno@clisp.org>
15000
15001         strtol: Move AC_LIBOBJ invocations to module description.
15002         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15003         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15004         * modules/strtol (configure.ac): ... to here.
15005
15006 2011-05-22  Bruno Haible  <bruno@clisp.org>
15007
15008         strtod: Move AC_LIBOBJ invocations to module description.
15009         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15010         invocations from here...
15011         * modules/strtod (configure.ac): ... to here.
15012
15013 2011-05-22  Bruno Haible  <bruno@clisp.org>
15014
15015         strstr*: Move AC_LIBOBJ invocations to module description.
15016         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15017         invocations from here...
15018         * modules/strstr-simple (configure.ac): ... to here.
15019         * modules/strstr (configure.ac): ... and here.
15020
15021 2011-05-22  Bruno Haible  <bruno@clisp.org>
15022
15023         strsignal: Move AC_LIBOBJ invocations to module description.
15024         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15025         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15026         * modules/strsignal (configure.ac): ... to here.
15027         (Depends-on): Update conditions.
15028
15029 2011-05-22  Bruno Haible  <bruno@clisp.org>
15030
15031         strsep: Move AC_LIBOBJ invocations to module description.
15032         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15034         here...
15035         * modules/strsep (configure.ac): ... to here.
15036
15037 2011-05-22  Bruno Haible  <bruno@clisp.org>
15038
15039         strptime: Move AC_LIBOBJ invocations to module description.
15040         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15041         gl_PREREQ_STRPTIME invocations from here...
15042         * modules/strptime (configure.ac): ... to here.
15043
15044 2011-05-22  Bruno Haible  <bruno@clisp.org>
15045
15046         strpbrk: Move AC_LIBOBJ invocations to module description.
15047         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15048         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15049         here...
15050         * modules/strpbrk (configure.ac): ... to here.
15051
15052 2011-05-22  Bruno Haible  <bruno@clisp.org>
15053
15054         strnlen: Move AC_LIBOBJ invocations to module description.
15055         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15056         invocations from here...
15057         * modules/strnlen (configure.ac): ... to here.
15058
15059 2011-05-22  Bruno Haible  <bruno@clisp.org>
15060
15061         strndup: Move AC_LIBOBJ invocations to module description.
15062         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15063         invocations from here...
15064         * modules/strndup (configure.ac): ... to here.
15065         (Depends-on): Update conditions.
15066
15067 2011-05-22  Bruno Haible  <bruno@clisp.org>
15068
15069         strncat: Move AC_LIBOBJ invocations to module description.
15070         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15071         invocations from here...
15072         * modules/strncat (configure.ac): ... to here.
15073
15074 2011-05-22  Bruno Haible  <bruno@clisp.org>
15075
15076         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15077         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15078         invocations from here...
15079         * modules/strdup (configure.ac): ... to here.
15080         * modules/strdup-posix (configure.ac): ... and here.
15081
15082 2011-05-22  Bruno Haible  <bruno@clisp.org>
15083
15084         strcspn: Move AC_LIBOBJ invocations to module description.
15085         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15086         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15087         here...
15088         * modules/strcspn (configure.ac): ... to here.
15089
15090 2011-05-22  Bruno Haible  <bruno@clisp.org>
15091
15092         strchrnul: Move AC_LIBOBJ invocations to module description.
15093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15094         gl_PREREQ_STRCHRNUL invocations from here...
15095         * modules/strchrnul (configure.ac): ... to here.
15096
15097 2011-05-22  Bruno Haible  <bruno@clisp.org>
15098
15099         strcasestr*: Move AC_LIBOBJ invocations to module description.
15100         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15101         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15102         * modules/strcasestr-simple (configure.ac): ... to here.
15103         * modules/strcasestr (configure.ac): ... and here.
15104
15105 2011-05-22  Bruno Haible  <bruno@clisp.org>
15106
15107         strcase: Move AC_LIBOBJ invocations to module description.
15108         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15109         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15110         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15111         gl_PREREQ_STRNCASECMP invocations from here...
15112         * modules/strcase (configure.ac): ... to here.
15113
15114 2011-05-22  Bruno Haible  <bruno@clisp.org>
15115
15116         stpncpy: Move AC_LIBOBJ invocations to module description.
15117         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15118         here...
15119         * modules/stpncpy (configure.ac): ... to here.
15120
15121 2011-05-22  Bruno Haible  <bruno@clisp.org>
15122
15123         stpcpy: Move AC_LIBOBJ invocations to module description.
15124         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15125         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15126         here...
15127         * modules/stpcpy (configure.ac): ... to here.
15128
15129 2011-05-21  Bruno Haible  <bruno@clisp.org>
15130
15131         stat: Move AC_LIBOBJ invocations to module description.
15132         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15133         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15134         here...
15135         * modules/stat (configure.ac): ... to here.
15136
15137 2011-05-21  Bruno Haible  <bruno@clisp.org>
15138
15139         sleep: Move AC_LIBOBJ invocations to module description.
15140         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15141         * modules/sleep (configure.ac): ... to here.
15142
15143 2011-05-21  Bruno Haible  <bruno@clisp.org>
15144
15145         signbit: Move AC_LIBOBJ invocations to module description.
15146         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15147         * modules/signbit (configure.ac): ... to here.
15148
15149 2011-05-21  Bruno Haible  <bruno@clisp.org>
15150
15151         sigprocmask: Move AC_LIBOBJ invocations to module description.
15152         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15153         gl_PREREQ_SIGPROMASK invocations from here...
15154         * modules/sigprocmask (configure.ac): ... to here.
15155
15156 2011-05-21  Bruno Haible  <bruno@clisp.org>
15157
15158         sigaction: Move AC_LIBOBJ invocations to module description.
15159         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15160         gl_PREREQ_SIGACTION invocations from here...
15161         * modules/sigaction (configure.ac): ... to here.
15162
15163 2011-05-21  Bruno Haible  <bruno@clisp.org>
15164
15165         sig2str: Move AC_LIBOBJ invocations to module description.
15166         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15167         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15168         here...
15169         * modules/sig2str (configure.ac): ... to here.
15170
15171 2011-05-21  Bruno Haible  <bruno@clisp.org>
15172
15173         setlocale: Move AC_LIBOBJ invocations to module description.
15174         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15175         gl_PREREQ_SETLOCALE invocations from here...
15176         * modules/setlocale (configure.ac): ... to here.
15177
15178 2011-05-21  Bruno Haible  <bruno@clisp.org>
15179
15180         unsetenv: Move AC_LIBOBJ invocations to module description.
15181         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15182         and gl_PREREQ_UNSETENV invocations from here...
15183         * modules/unsetenv (configure.ac): ... to here.
15184         (Depends-on): Update.
15185
15186 2011-05-21  Bruno Haible  <bruno@clisp.org>
15187
15188         setenv: Move AC_LIBOBJ invocations to module description.
15189         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15190         here...
15191         * modules/setenv (configure.ac): ... to here.
15192
15193 2011-05-21  Bruno Haible  <bruno@clisp.org>
15194
15195         selinux-h: Move AC_LIBOBJ invocations to module description.
15196         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15197         AC_LIBOBJ invocation from here...
15198         * modules/selinux-h (configure.ac): ... to here.
15199
15200 2011-05-21  Bruno Haible  <bruno@clisp.org>
15201
15202         select: Respect rules for use of AC_LIBOBJ.
15203         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15204         here...
15205         * modules/select (configure.ac): ... to here.
15206
15207 2011-05-21  Bruno Haible  <bruno@clisp.org>
15208
15209         scandir: Move AC_LIBOBJ invocations to module description.
15210         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15211         invocations from here...
15212         * modules/scandir (configure.ac): ... to here.
15213
15214 2011-05-21  Bruno Haible  <bruno@clisp.org>
15215
15216         rpmatch: Move AC_LIBOBJ invocations to module description.
15217         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15219         here...
15220         * modules/rpmatch (configure.ac): ... to here.
15221
15222 2011-05-21  Bruno Haible  <bruno@clisp.org>
15223
15224         rmdir: Respect rules for use of AC_LIBOBJ.
15225         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15226         * modules/rmdir (configure.ac): ... to here.
15227
15228 2011-05-21  Bruno Haible  <bruno@clisp.org>
15229
15230         renameat: Move AC_LIBOBJ invocations to module description.
15231         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15232         here...
15233         * modules/renameat (configure.ac): ... to here.
15234
15235 2011-05-21  Bruno Haible  <bruno@clisp.org>
15236
15237         rename: Respect rules for use of AC_LIBOBJ.
15238         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15239         here...
15240         * modules/rename (configure.ac): ... to here.
15241
15242 2011-05-21  Bruno Haible  <bruno@clisp.org>
15243
15244         remove: Move AC_LIBOBJ invocations to module description.
15245         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15246         here...
15247         * modules/remove (configure.ac): ... to here.
15248
15249 2011-05-21  Bruno Haible  <bruno@clisp.org>
15250
15251         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15252         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15253         macro.
15254         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15255         * modules/relocatable-lib (configure.ac): ... to here.
15256         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15257         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15258
15259 2011-05-21  Bruno Haible  <bruno@clisp.org>
15260
15261         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15262         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15263         here...
15264         * modules/relocatable-prog (configure.ac): ... to here.
15265
15266 2011-05-21  Bruno Haible  <bruno@clisp.org>
15267
15268         regex: Move AC_LIBOBJ invocations to module description.
15269         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15270         invocations from here...
15271         * modules/regex (configure.ac): ... to here.
15272
15273 2011-05-21  Bruno Haible  <bruno@clisp.org>
15274
15275         realloc-*: Move AC_LIBOBJ invocations to module description.
15276         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15277         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15278         AC_LIBOBJ invocations from here...
15279         * modules/realloc-gnu (configure.ac): ... to here.
15280         * modules/realloc-posix (configure.ac): ... and here.
15281
15282 2011-05-21  Bruno Haible  <bruno@clisp.org>
15283
15284         readutmp: Move AC_LIBOBJ invocations to module description.
15285         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15286         * modules/readutmp (configure.ac): ... to here.
15287
15288 2011-05-21  Bruno Haible  <bruno@clisp.org>
15289
15290         readlinkat: Move AC_LIBOBJ invocations to module description.
15291         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15292         here...
15293         * modules/readlinkat (configure.ac): ... to here.
15294
15295 2011-05-21  Bruno Haible  <bruno@clisp.org>
15296
15297         readlink: Move AC_LIBOBJ invocations to module description.
15298         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15299         gl_PREREQ_READLINK invocations from here...
15300         * modules/readlink (configure.ac): ... to here.
15301
15302 2011-05-21  Bruno Haible  <bruno@clisp.org>
15303
15304         readline: Move AC_LIBOBJ invocations to module description.
15305         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15306         gl_PREREQ_READLINE invocations from here...
15307         * modules/readline (configure.ac): ... to here.
15308
15309 2011-05-21  Bruno Haible  <bruno@clisp.org>
15310
15311         read: Move AC_LIBOBJ invocations to module description.
15312         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15313         * modules/read (configure.ac): ... to here.
15314
15315 2011-05-21  Bruno Haible  <bruno@clisp.org>
15316
15317         rawmemchr: Move AC_LIBOBJ invocations to module description.
15318         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15320         from here...
15321         * modules/rawmemchr (configure.ac): ... to here.
15322
15323 2011-05-21  Bruno Haible  <bruno@clisp.org>
15324
15325         random_r: Move AC_LIBOBJ invocations to module description.
15326         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15327         gl_PREREQ_RANDOM_R invocations from here...
15328         * modules/random_r (configure.ac): ... to here.
15329
15330 2011-05-21  Bruno Haible  <bruno@clisp.org>
15331
15332         pwrite: Move AC_LIBOBJ invocations to module description.
15333         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15334         * modules/pwrite (configure.ac): ... to here.
15335
15336 2011-05-21  Bruno Haible  <bruno@clisp.org>
15337
15338         putenv: Move AC_LIBOBJ invocations to module description.
15339         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15340         * modules/putenv (configure.ac): ... to here.
15341
15342 2011-05-21  Bruno Haible  <bruno@clisp.org>
15343
15344         login_tty: Move AC_LIBOBJ invocations to module description.
15345         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15346         * modules/login_tty (configure.ac): ... to here.
15347
15348 2011-05-21  Bruno Haible  <bruno@clisp.org>
15349
15350         openpty: Move AC_LIBOBJ invocations to module description.
15351         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15352         * modules/openpty (configure.ac): ... to here.
15353
15354 2011-05-21  Bruno Haible  <bruno@clisp.org>
15355
15356         forkpty: Move AC_LIBOBJ invocations to module description.
15357         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15358         * modules/forkpty (configure.ac): ... to here.
15359
15360 2011-05-21  Bruno Haible  <bruno@clisp.org>
15361
15362         ptsname: Move AC_LIBOBJ invocations to module description.
15363         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15364         invocations from here...
15365         * modules/ptsname (configure.ac): ... to here.
15366
15367 2011-05-21  Bruno Haible  <bruno@clisp.org>
15368
15369         pread: Move AC_LIBOBJ invocations to module description.
15370         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15371         * modules/pread (configure.ac): ... to here.
15372
15373 2011-05-21  Bruno Haible  <bruno@clisp.org>
15374
15375         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15376         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15377         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15378         * modules/posix_spawn (configure.ac): ... to here.
15379         * modules/posix_spawnp (configure.ac): ... and here.
15380
15381 2011-05-21  Bruno Haible  <bruno@clisp.org>
15382
15383         popen: Move AC_LIBOBJ invocations to module description.
15384         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15385         invocations from here...
15386         * modules/popen (configure.ac): ... to here.
15387
15388 2011-05-21  Bruno Haible  <bruno@clisp.org>
15389
15390         poll: Move AC_LIBOBJ invocations to module description.
15391         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15392         invocations from here...
15393         * modules/poll (configure.ac): ... to here.
15394
15395 2011-05-21  Bruno Haible  <bruno@clisp.org>
15396
15397         pipe-posix: Move AC_LIBOBJ invocations to module description.
15398         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15399         * modules/pipe-posix (configure.ac): ... to here.
15400
15401 2011-05-21  Bruno Haible  <bruno@clisp.org>
15402
15403         openat: Respect rules for use of AC_LIBOBJ.
15404         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15405         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15406         * modules/openat (configure.ac): ... to here.
15407
15408 2011-05-21  Bruno Haible  <bruno@clisp.org>
15409
15410         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15411         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15412         invocation from here...
15413         * modules/obstack-printf (configure.ac): ... to here.
15414         * modules/obstack-printf-posix (configure.ac): ... and here.
15415
15416 2011-05-21  Bruno Haible  <bruno@clisp.org>
15417
15418         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15419         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15420         from here...
15421         * modules/nl_langinfo (configure.ac): ... to here.
15422
15423 2011-05-21  Bruno Haible  <bruno@clisp.org>
15424
15425         nanosleep: Move AC_LIBOBJ invocations to module description.
15426         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15427         gl_PREREQ_NANOSLEEP invocations from here...
15428         * modules/nanosleep (configure.ac): ... to here.
15429
15430 2011-05-21  Bruno Haible  <bruno@clisp.org>
15431
15432         mountlist: Move AC_LIBOBJ invocations to module description.
15433         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15434         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15435         * modules/mountlist (configure.ac): ... to here.
15436
15437 2011-05-21  Bruno Haible  <bruno@clisp.org>
15438
15439         mktime: Respect rules for use of AC_LIBOBJ.
15440         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15441         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15442         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15443         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15444         * modules/mktime (configure.ac): ... to here.
15445         * modules/mktime-internal (configure.ac): ... and here.
15446         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15447
15448 2011-05-21  Bruno Haible  <bruno@clisp.org>
15449
15450         mkstemps: Move AC_LIBOBJ invocations to module description.
15451         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15452         here...
15453         * modules/mkstemps (configure.ac): ... to here.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         mkstemp: Move AC_LIBOBJ invocations to module description.
15458         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15459         gl_PREREQ_MKSTEMP invocations from here...
15460         * modules/mkstemp (configure.ac): ... to here.
15461
15462 2011-05-21  Bruno Haible  <bruno@clisp.org>
15463
15464         mkostemps: Move AC_LIBOBJ invocations to module description.
15465         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15466         here...
15467         * modules/mkostemps (configure.ac): ... to here.
15468
15469 2011-05-21  Bruno Haible  <bruno@clisp.org>
15470
15471         mkostemp: Move AC_LIBOBJ invocations to module description.
15472         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15473         gl_PREREQ_MKOSTEMP invocations from here...
15474         * modules/mkostemp (configure.ac): ... to here.
15475
15476 2011-05-21  Bruno Haible  <bruno@clisp.org>
15477
15478         mknod: Move AC_LIBOBJ invocations to module description.
15479         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15480         * modules/mknod (configure.ac): ... to here.
15481
15482 2011-05-21  Bruno Haible  <bruno@clisp.org>
15483
15484         mkfifoat: Move AC_LIBOBJ invocations to module description.
15485         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15486         here...
15487         * modules/mkfifoat (configure.ac): ... to here.
15488
15489 2011-05-21  Bruno Haible  <bruno@clisp.org>
15490
15491         mkfifo: Respect rules for use of AC_LIBOBJ.
15492         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15493         here...
15494         * modules/mkfifo (configure.ac): ... to here.
15495
15496 2011-05-21  Bruno Haible  <bruno@clisp.org>
15497
15498         mkdtemp: Move AC_LIBOBJ invocations to module description.
15499         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15500         invocations from here...
15501         * modules/mkdtemp (configure.ac): ... to here.
15502
15503 2011-05-21  Bruno Haible  <bruno@clisp.org>
15504
15505         mkdir: Move AC_LIBOBJ invocations to module description.
15506         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15507         * modules/mkdir (configure.ac): ... to here.
15508
15509 2011-05-21  Bruno Haible  <bruno@clisp.org>
15510
15511         memset: Move AC_LIBOBJ invocations to module description.
15512         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15514         here...
15515         * modules/memset (configure.ac): ... to here.
15516
15517 2011-05-21  Bruno Haible  <bruno@clisp.org>
15518
15519         memrchr: Move AC_LIBOBJ invocations to module description.
15520         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15522         here...
15523         * modules/memrchr (configure.ac): ... to here.
15524
15525 2011-05-21  Bruno Haible  <bruno@clisp.org>
15526
15527         mempcpy: Move AC_LIBOBJ invocations to module description.
15528         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15529         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15530         here...
15531         * modules/mempcpy (configure.ac): ... to here.
15532
15533 2011-05-21  Bruno Haible  <bruno@clisp.org>
15534
15535         memmove: Move AC_LIBOBJ invocations to module description.
15536         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15537         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15538         here...
15539         * modules/memmove (configure.ac): ... to here.
15540
15541 2011-05-21  Bruno Haible  <bruno@clisp.org>
15542
15543         memmem*: Move AC_LIBOBJ invocations to module description.
15544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15545         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15546         here...
15547         (gl_FUNC_MEMMEM): ... and here...
15548         * modules/memmem-simple (configure.ac): ... to here.
15549         * modules/memmem (configure.ac): ... and here.
15550
15551 2011-05-21  Bruno Haible  <bruno@clisp.org>
15552
15553         memcpy: Move AC_LIBOBJ invocations to module description.
15554         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15555         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15556         here...
15557         * modules/memcpy (configure.ac): ... to here.
15558
15559 2011-05-21  Bruno Haible  <bruno@clisp.org>
15560
15561         memcmp: Simplify autoconf macro.
15562         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15563         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15564         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15565
15566 2011-05-21  Bruno Haible  <bruno@clisp.org>
15567
15568         memcmp: Move AC_LIBOBJ invocations to module description.
15569         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15570         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15571         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15572         * modules/memcmp (configure.ac): ... to here.
15573         (Depends-on): Update conditions.
15574
15575 2011-05-21  Bruno Haible  <bruno@clisp.org>
15576
15577         memchr: Respect rules for use of AC_LIBOBJ.
15578         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15579         invocations from here...
15580         * modules/memchr (configure.ac): ... to here.
15581
15582 2011-05-21  Bruno Haible  <bruno@clisp.org>
15583
15584         mbtowc: Move AC_LIBOBJ invocations to module description.
15585         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15586         invocations from here...
15587         * modules/mbtowc (configure.ac): ... to here.
15588
15589 2011-05-21  Bruno Haible  <bruno@clisp.org>
15590
15591         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15592         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15593         gl_PREREQ_MBSRTOWCS invocations from here...
15594         * modules/mbsrtowcs (configure.ac): ... to here.
15595
15596 2011-05-21  Bruno Haible  <bruno@clisp.org>
15597
15598         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15599         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15600         gl_PREREQ_MBSNRTOWCS invocations from here...
15601         * modules/mbsnrtowcs (configure.ac): ... to here.
15602
15603 2011-05-21  Bruno Haible  <bruno@clisp.org>
15604
15605         mbsinit: Move AC_LIBOBJ invocations to module description.
15606         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15607         invocations from here...
15608         * modules/mbsinit (configure.ac): ... to here.
15609
15610 2011-05-21  Bruno Haible  <bruno@clisp.org>
15611
15612         mbrlen: Move AC_LIBOBJ invocations to module description.
15613         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15614         invocations from here...
15615         * modules/mbrlen (configure.ac): ... to here.
15616
15617 2011-05-21  Bruno Haible  <bruno@clisp.org>
15618
15619         mbrtowc: Respect rules for use of AC_LIBOBJ.
15620         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15621         invocations from here...
15622         * modules/mbrtowc (configure.ac): ... to here.
15623
15624 2011-05-21  Bruno Haible  <bruno@clisp.org>
15625
15626         malloc-*: Move AC_LIBOBJ invocations to module description.
15627         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15628         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15629         AC_LIBOBJ invocations from here...
15630         * modules/malloc-gnu (configure.ac): ... to here.
15631         * modules/malloc-posix (configure.ac): ... and here.
15632
15633 2011-05-21  Bruno Haible  <bruno@clisp.org>
15634
15635         lstat, openat: Respect rules for use of AC_LIBOBJ.
15636         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15638         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15639         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15640         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15641         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15642         here.
15643         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15644
15645 2011-05-21  Bruno Haible  <bruno@clisp.org>
15646
15647         lseek: Move AC_LIBOBJ invocations to module description.
15648         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15649         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15650         * modules/lseek (configure.ac): ... to here.
15651
15652 2011-05-21  Bruno Haible  <bruno@clisp.org>
15653
15654         linkat: Move AC_LIBOBJ invocations to module description.
15655         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15656         here...
15657         * modules/linkat (configure.ac): ... to here.
15658
15659 2011-05-21  Bruno Haible  <bruno@clisp.org>
15660
15661         link: Respect rules for use of AC_LIBOBJ.
15662         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15663         * modules/link (configure.ac): ... to here.
15664
15665 2011-05-21  Bruno Haible  <bruno@clisp.org>
15666
15667         lchown: Move AC_LIBOBJ invocations to module description.
15668         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15669         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15670         * modules/lchown (configure.ac): ... to here.
15671
15672 2011-05-21  Bruno Haible  <bruno@clisp.org>
15673
15674         iswctype: Move AC_LIBOBJ invocations to module description.
15675         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15676         here...
15677         * modules/iswctype (configure.ac): ... to here.
15678
15679 2011-05-21  Bruno Haible  <bruno@clisp.org>
15680
15681         iswblank: Move AC_LIBOBJ invocations to module description.
15682         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15683         here...
15684         * modules/iswblank (configure.ac): ... to here.
15685
15686 2011-05-21  Bruno Haible  <bruno@clisp.org>
15687
15688         atanl: Move AC_LIBOBJ invocations to module description.
15689         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15690         * modules/atanl (configure.ac): ... to here.
15691
15692 2011-05-21  Bruno Haible  <bruno@clisp.org>
15693
15694         acosl: Move AC_LIBOBJ invocations to module description.
15695         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15696         * modules/acosl (configure.ac): ... to here.
15697
15698 2011-05-21  Bruno Haible  <bruno@clisp.org>
15699
15700         asinl: Respect rules for use of AC_LIBOBJ.
15701         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15702         * modules/asinl (configure.ac): ... to here.
15703
15704 2011-05-21  Bruno Haible  <bruno@clisp.org>
15705
15706         tanl: Move AC_LIBOBJ invocations to module description.
15707         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15708         * modules/tanl (configure.ac): ... to here.
15709
15710 2011-05-21  Bruno Haible  <bruno@clisp.org>
15711
15712         cosl: Move AC_LIBOBJ invocations to module description.
15713         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15714         * modules/cosl (configure.ac): ... to here.
15715
15716 2011-05-21  Bruno Haible  <bruno@clisp.org>
15717
15718         sinl: Move AC_LIBOBJ invocations to module description.
15719         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15720         * modules/sinl (configure.ac): ... to here.
15721
15722 2011-05-21  Bruno Haible  <bruno@clisp.org>
15723
15724         logl: Move AC_LIBOBJ invocations to module description.
15725         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15726         * modules/logl (configure.ac): ... to here.
15727
15728 2011-05-21  Bruno Haible  <bruno@clisp.org>
15729
15730         expl: Move AC_LIBOBJ invocations to module description.
15731         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15732         * modules/expl (configure.ac): ... to here.
15733
15734 2011-05-21  Bruno Haible  <bruno@clisp.org>
15735
15736         roundl: Move AC_LIBOBJ invocations to module description.
15737         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15738         * modules/roundl (configure.ac): ... to here.
15739
15740 2011-05-21  Bruno Haible  <bruno@clisp.org>
15741
15742         round: Move AC_LIBOBJ invocations to module description.
15743         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15744         * modules/round (configure.ac): ... to here.
15745
15746 2011-05-21  Bruno Haible  <bruno@clisp.org>
15747
15748         roundf: Move AC_LIBOBJ invocations to module description.
15749         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15750         * modules/roundf (configure.ac): ... to here.
15751
15752 2011-05-21  Bruno Haible  <bruno@clisp.org>
15753
15754         truncl: Move AC_LIBOBJ invocations to module description.
15755         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15756         * modules/truncl (configure.ac): ... to here.
15757
15758 2011-05-21  Bruno Haible  <bruno@clisp.org>
15759
15760         trunc: Move AC_LIBOBJ invocations to module description.
15761         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15762         * modules/trunc (configure.ac): ... to here.
15763
15764 2011-05-21  Bruno Haible  <bruno@clisp.org>
15765
15766         truncf: Move AC_LIBOBJ invocations to module description.
15767         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15768         * modules/truncf (configure.ac): ... to here.
15769
15770 2011-05-21  Bruno Haible  <bruno@clisp.org>
15771
15772         ceill: Move AC_LIBOBJ invocations to module description.
15773         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15774         * modules/ceill (configure.ac): ... to here.
15775
15776 2011-05-21  Bruno Haible  <bruno@clisp.org>
15777
15778         ceil: Move AC_LIBOBJ invocations to module description.
15779         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15780         * modules/ceil (configure.ac): ... to here.
15781
15782 2011-05-21  Bruno Haible  <bruno@clisp.org>
15783
15784         ceilf: Move AC_LIBOBJ invocations to module description.
15785         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15786         * modules/ceilf (configure.ac): ... to here.
15787
15788 2011-05-21  Bruno Haible  <bruno@clisp.org>
15789
15790         floorl: Respect rules for use of AC_LIBOBJ.
15791         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15792         * modules/floorl (configure.ac): ... to here.
15793
15794 2011-05-21  Bruno Haible  <bruno@clisp.org>
15795
15796         floor: Respect rules for use of AC_LIBOBJ.
15797         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15798         * modules/floor (configure.ac): ... to here.
15799
15800 2011-05-21  Bruno Haible  <bruno@clisp.org>
15801
15802         floorf: Move AC_LIBOBJ invocations to module description.
15803         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15804         * modules/floorf (configure.ac): ... to here.
15805
15806 2011-05-20  Bruno Haible  <bruno@clisp.org>
15807
15808         sqrtl: Respect rules for use of AC_LIBOBJ.
15809         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15810         * modules/sqrtl (configure.ac): ... to here.
15811
15812 2011-05-20  Bruno Haible  <bruno@clisp.org>
15813
15814         ldexpl: Respect rules for use of AC_LIBOBJ.
15815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15816         * modules/ldexpl (configure.ac): ... to here.
15817
15818 2011-05-20  Bruno Haible  <bruno@clisp.org>
15819
15820         frexpl*: Respect rules for use of AC_LIBOBJ.
15821         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
15822         invocation from here...
15823         * modules/frexpl (configure.ac): ... to here.
15824         * modules/frexpl-nolibm (configure.ac): ... and here.
15825
15826 2011-05-20  Bruno Haible  <bruno@clisp.org>
15827
15828         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
15829         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
15830         invocation from here...
15831         * modules/frexp (configure.ac): ... to here.
15832         * modules/frexp-nolibm (configure.ac): ... and here.
15833
15834 2011-05-20  Bruno Haible  <bruno@clisp.org>
15835
15836         isnan: Respect rules for use of AC_LIBOBJ.
15837         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
15838         invocations here.
15839         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
15840         REPLACE_ISNAN.
15841         * modules/isnand (configure.ac): Likewise.
15842         * modules/isnanl (configure.ac): Likewise.
15843
15844 2011-05-20  Bruno Haible  <bruno@clisp.org>
15845
15846         isnanl*: Respect rules for use of AC_LIBOBJ.
15847         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
15848         invocation from here...
15849         * modules/isnanl (configure.ac): ... to here.
15850         * modules/isnanl-nolibm (configure.ac): ... and here.
15851
15852 2011-05-20  Bruno Haible  <bruno@clisp.org>
15853
15854         isnand*: Move AC_LIBOBJ invocations to module description.
15855         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
15856         invocation from here...
15857         * modules/isnand (configure.ac): ... to here.
15858         * modules/isnand-nolibm (configure.ac): ... and here.
15859
15860 2011-05-20  Bruno Haible  <bruno@clisp.org>
15861
15862         isnanf*: Move AC_LIBOBJ invocations to module description.
15863         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
15864         invocation from here...
15865         * modules/isnanf (configure.ac): ... to here.
15866         * modules/isnanf-nolibm (configure.ac): ... and here.
15867
15868 2011-05-20  Bruno Haible  <bruno@clisp.org>
15869
15870         isnan*: Separate the AC_LIBOBJ invocations.
15871         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
15872         AC_LIBOBJ invocation.
15873         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
15874         here.
15875         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
15876         AC_LIBOBJ invocation.
15877         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
15878         here.
15879         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
15880         AC_LIBOBJ invocation.
15881         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
15882         here.
15883         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
15884
15885 2011-05-08  Bruno Haible  <bruno@clisp.org>
15886
15887         isinf: Move AC_LIBOBJ invocations to module description.
15888         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
15889         * modules/isinf (configure.ac): ... to here.
15890
15891 2011-05-08  Bruno Haible  <bruno@clisp.org>
15892
15893         isfinite: Move AC_LIBOBJ invocations to module description.
15894         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
15895         * modules/isfinite (configure.ac): ... to here.
15896
15897 2011-05-08  Bruno Haible  <bruno@clisp.org>
15898
15899         isblank: Move AC_LIBOBJ invocations to module description.
15900         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
15901         here...
15902         * modules/isblank (configure.ac): ... to here.
15903
15904 2011-05-08  Bruno Haible  <bruno@clisp.org>
15905
15906         isapipe: Move AC_LIBOBJ invocations to module description.
15907         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
15908         gl_PREREQ_ISAPIPE invocations from here...
15909         * modules/isapipe (configure.ac): ... to here.
15910         (Depends-on): Update condition.
15911
15912 2011-05-08  Bruno Haible  <bruno@clisp.org>
15913
15914         ioctl: Move AC_LIBOBJ invocations to module description.
15915         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
15916         invocations from here...
15917         * modules/ioctl (configure.ac): ... to here.
15918         (Depends-on): Update condition.
15919
15920 2011-05-08  Bruno Haible  <bruno@clisp.org>
15921
15922         imaxdiv: Move AC_LIBOBJ invocations to module description.
15923         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
15924         invocations from here...
15925         * modules/imaxdiv (configure.ac): ... to here.
15926
15927 2011-05-08  Bruno Haible  <bruno@clisp.org>
15928
15929         imaxabs: Move AC_LIBOBJ invocations to module description.
15930         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
15931         invocations from here...
15932         * modules/imaxabs (configure.ac): ... to here.
15933
15934 2011-05-08  Bruno Haible  <bruno@clisp.org>
15935
15936         getaddrinfo: Move AC_LIBOBJ invocations to module description.
15937         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
15938         AC_LIBOBJ invocations from here...
15939         * modules/getaddrinfo (configure.ac): ... to here.
15940         (Depends-on): Add conditions.
15941
15942 2011-05-08  Bruno Haible  <bruno@clisp.org>
15943
15944         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15945         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
15946         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15947         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
15948         (gl_PREREQ_INET_PTON): ... from here.
15949         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15950         gl_PREREQ_INET_PTON here.
15951         (Depends-on): Update condition.
15952
15953 2011-05-08  Bruno Haible  <bruno@clisp.org>
15954
15955         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15956         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15957         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15958         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15959         (gl_PREREQ_INET_NTOP): ... from here.
15960         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15961         gl_PREREQ_INET_NTOP here.
15962         (Depends-on): Update condition.
15963
15964 2011-05-08  Bruno Haible  <bruno@clisp.org>
15965
15966         iconv_open: Move AC_LIBOBJ invocations to module description.
15967         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15968         AC_LIBOBJ invocations from here...
15969         * modules/iconv_open (configure.ac): ... to here.
15970
15971 2011-05-08  Bruno Haible  <bruno@clisp.org>
15972
15973         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15974         If module 'iconv_open' is among the main modules and module
15975         'iconv_open-utf' is among the tests dependencies, then
15976         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15977         return the special iconv_t values. Therefore iconv() and iconv_close()
15978         must support these special iconv_t values, already in lib, not only in
15979         tests.
15980         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15981         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15982         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15983         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15984         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15985         (Depends-on): Add the dependencies of iconv_open-utf.
15986         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15987         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15988         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15989
15990 2011-05-08  Bruno Haible  <bruno@clisp.org>
15991
15992         group-member: Move AC_LIBOBJ invocations to module description.
15993         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15994         gl_PREREQ_GROUP_MEMBER invocations from here...
15995         * modules/group-member (configure.ac): ... to here.
15996
15997 2011-05-08  Bruno Haible  <bruno@clisp.org>
15998
15999         grantpt: Move AC_LIBOBJ invocations to module description.
16000         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16001         invocations from here...
16002         * modules/grantpt (configure.ac): ... to here.
16003
16004 2011-05-08  Bruno Haible  <bruno@clisp.org>
16005
16006         glob: Move AC_LIBOBJ invocations to module description.
16007         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16008         from here...
16009         * modules/glob (configure.ac): ... to here.
16010
16011 2011-05-08  Bruno Haible  <bruno@clisp.org>
16012
16013         getusershell: Move AC_LIBOBJ invocations to module description.
16014         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16015         Move AC_LIBOBJ invocation from here...
16016         * modules/getusershell (configure.ac): ... to here.
16017         (Depends-on): Update condition.
16018
16019 2011-05-08  Bruno Haible  <bruno@clisp.org>
16020
16021         gettimeofday: Move AC_LIBOBJ invocations to module description.
16022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16023         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16024         gl_PREREQ_GETTIMEOFDAY invocations from here...
16025         * modules/gettimeofday (configure.ac): ... to here.
16026
16027 2011-05-08  Bruno Haible  <bruno@clisp.org>
16028
16029         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16030         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16031         just gl_FUNC_TZSET.
16032         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16033         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16035         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16036
16037 2011-05-08  Bruno Haible  <bruno@clisp.org>
16038
16039         getsubopt: Move AC_LIBOBJ invocations to module description.
16040         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16041         gl_PREREQ_GETSUBOPT invocations from here...
16042         * modules/getsubopt (configure.ac): ... to here.
16043
16044 2011-05-08  Bruno Haible  <bruno@clisp.org>
16045
16046         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16047         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16048         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16049         * modules/getpass-gnu (configure.ac): ... to here.
16050
16051 2011-05-08  Bruno Haible  <bruno@clisp.org>
16052
16053         getpass: Move AC_LIBOBJ invocations to module description.
16054         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16055         gl_PREREQ_GETPASS invocations from here...
16056         * modules/getpass (configure.ac): ... to here.
16057
16058 2011-05-08  Bruno Haible  <bruno@clisp.org>
16059
16060         getpagesize: Move AC_LIBOBJ invocations to module description.
16061         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16062         from here...
16063         * modules/getpagesize (configure.ac): ... to here.
16064
16065 2011-05-08  Bruno Haible  <bruno@clisp.org>
16066
16067         getopt: Move AC_LIBOBJ invocations to module description.
16068         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16069         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16070         invocations from here...
16071         * modules/getopt-gnu (configure.ac): ... to here.
16072         * modules/getopt-posix (configure.ac): ... and here.
16073         (Depends-on): Update condition.
16074
16075 2011-05-08  Bruno Haible  <bruno@clisp.org>
16076
16077         getopt, argp: Respect rules for use of AC_LIBOBJ.
16078         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16079         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16080         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16081         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16082
16083 2011-05-08  Bruno Haible  <bruno@clisp.org>
16084
16085         getlogin_r: Move AC_LIBOBJ invocations to module description.
16086         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16087         gl_PREREQ_GETLOGIN_R invocations from here...
16088         * modules/getlogin_r (configure.ac): ... to here.
16089
16090 2011-05-08  Bruno Haible  <bruno@clisp.org>
16091
16092         getlogin: Move AC_LIBOBJ invocations to module description.
16093         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16094         here...
16095         * modules/getlogin (configure.ac): ... to here.
16096
16097 2011-05-08  Bruno Haible  <bruno@clisp.org>
16098
16099         getloadavg: Move AC_LIBOBJ invocations to module description.
16100         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16101         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16102         * modules/getloadavg (configure.ac): ... to here.
16103
16104 2011-05-08  Bruno Haible  <bruno@clisp.org>
16105
16106         gethrxtime: Move AC_LIBOBJ invocations to module description.
16107         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16108         LIB_GETHRXTIME from here...
16109         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16110         invocations from here...
16111         * modules/gethrxtime (configure.ac): ... to here.
16112
16113 2011-05-08  Bruno Haible  <bruno@clisp.org>
16114
16115         gethostname: Move AC_LIBOBJ invocations to module description.
16116         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16117         gl_PREREQ_GETHOSTNAME invocations from here...
16118         * modules/gethostname (configure.ac): ... to here.
16119
16120 2011-05-08  Bruno Haible  <bruno@clisp.org>
16121
16122         getgroups: Move AC_LIBOBJ invocations to module description.
16123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16124         here...
16125         * modules/getgroups (configure.ac): ... to here.
16126
16127 2011-05-08  Bruno Haible  <bruno@clisp.org>
16128
16129         getdtablesize: Move AC_LIBOBJ invocations to module description.
16130         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16131         invocation from here...
16132         * modules/getdtablesize (configure.ac): ... to here.
16133
16134 2011-05-08  Bruno Haible  <bruno@clisp.org>
16135
16136         getdomainname: Move AC_LIBOBJ invocations to module description.
16137         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16138         gl_PREREQ_GETDOMAINNAME invocations from here...
16139         * modules/getdomainname (configure.ac): ... to here.
16140
16141 2011-05-08  Bruno Haible  <bruno@clisp.org>
16142
16143         getline: Move AC_LIBOBJ invocations to module description.
16144         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16145         invocations from here...
16146         * modules/getline (configure.ac): ... to here.
16147
16148 2011-05-08  Bruno Haible  <bruno@clisp.org>
16149
16150         getline: Simplify.
16151         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16152         It's already handled through the module dependency.
16153
16154 2011-05-08  Bruno Haible  <bruno@clisp.org>
16155
16156         getdelim: Move AC_LIBOBJ invocations to module description.
16157         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16158         and gl_PREREQ_GETDELIM invocations from here...
16159         * modules/getdelim (configure.ac): ... to here.
16160         (Depends-on): Fix condition.
16161
16162 2011-05-08  Bruno Haible  <bruno@clisp.org>
16163
16164         getcwd: Move AC_LIBOBJ invocations to module description.
16165         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16166         invocations from here...
16167         * modules/getcwd (configure.ac): ... to here.
16168
16169 2011-05-08  Bruno Haible  <bruno@clisp.org>
16170
16171         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16172         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16173         here...
16174         * modules/getcwd-lgpl (configure.ac): ... to here.
16175
16176 2011-05-07  Bruno Haible  <bruno@clisp.org>
16177
16178         crypto/gc: Move AC_LIBOBJ invocations to module description.
16179         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16180         * modules/crypto/gc (configure.ac): ... to here.
16181
16182 2011-05-07  Bruno Haible  <bruno@clisp.org>
16183
16184         fwriting: Move AC_LIBOBJ invocations to module description.
16185         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16186         here...
16187         * modules/fwriting (configure.ac): ... to here.
16188
16189 2011-05-07  Bruno Haible  <bruno@clisp.org>
16190
16191         fwritable: Move AC_LIBOBJ invocations to module description.
16192         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16193         here...
16194         * modules/fwritable (configure.ac): ... to here.
16195
16196 2011-05-07  Bruno Haible  <bruno@clisp.org>
16197
16198         futimens: Move AC_LIBOBJ invocations to module description.
16199         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16200         here...
16201         * modules/futimens (configure.ac): ... to here.
16202
16203 2011-05-07  Bruno Haible  <bruno@clisp.org>
16204
16205         ftruncate: Move AC_LIBOBJ invocations to module description.
16206         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16207         gl_PREREQ_FTRUNCATE invocations from here...
16208         * modules/ftruncate (configure.ac): ... to here.
16209
16210 2011-05-07  Bruno Haible  <bruno@clisp.org>
16211
16212         fsync: Move AC_LIBOBJ invocations to module description.
16213         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16214         invocations from here...
16215         * modules/fsync (configure.ac): ... to here.
16216
16217 2011-05-07  Bruno Haible  <bruno@clisp.org>
16218
16219         fsusage: Move AC_LIBOBJ invocations to module description.
16220         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16221         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16222         * modules/fsusage (configure.ac): ... to here.
16223
16224 2011-05-07  Bruno Haible  <bruno@clisp.org>
16225
16226         freopen: Move AC_LIBOBJ invocations to module description.
16227         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16228         invocations from here...
16229         * modules/freopen (configure.ac): ... to here.
16230
16231 2011-05-07  Bruno Haible  <bruno@clisp.org>
16232
16233         free: Move AC_LIBOBJ invocations to module description.
16234         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16235         invocations from here...
16236         * modules/free (configure.ac): ... to here.
16237
16238 2011-05-07  Bruno Haible  <bruno@clisp.org>
16239
16240         freadable: Move AC_LIBOBJ invocations to module description.
16241         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16242         here...
16243         * modules/freadable (configure.ac): ... to here.
16244
16245 2011-05-07  Bruno Haible  <bruno@clisp.org>
16246
16247         fpurge: Move AC_LIBOBJ invocations to module description.
16248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16249         invocations from here...
16250         * modules/fpurge (configure.ac): ... to here.
16251
16252 2011-05-07  Bruno Haible  <bruno@clisp.org>
16253
16254         fpending: Move AC_LIBOBJ invocations to module description.
16255         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16256         gl_FUNC_FPENDING.
16257         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16258         invocations from here...
16259         * modules/fpending (configure.ac): ... to here.
16260
16261 2011-05-07  Bruno Haible  <bruno@clisp.org>
16262
16263         fopen: Move AC_LIBOBJ invocations to module description.
16264         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16265         invocations from here...
16266         * modules/fopen (configure.ac): ... to here.
16267
16268 2011-05-07  Bruno Haible  <bruno@clisp.org>
16269
16270         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16271         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16272         gl_FUNC_FNMATCH_POSIX.
16273         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16274         invocations from here...
16275         * modules/fnmatch (configure.ac): ... to here.
16276         * modules/fnmatch-gnu (configure.ac): ... and here.
16277
16278 2011-05-07  Bruno Haible  <bruno@clisp.org>
16279
16280         flock: Move AC_LIBOBJ invocations to module description.
16281         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16282         invocations from here...
16283         * modules/flock (configure.ac): ... to here.
16284
16285 2011-05-07  Bruno Haible  <bruno@clisp.org>
16286
16287         fileblocks: Move AC_LIBOBJ invocations to module description.
16288         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16289         gl_PREREQ_FILEBLOCKS invocations from here...
16290         * modules/fileblocks (configure.ac): ... to here.
16291
16292 2011-05-06  Bruno Haible  <bruno@clisp.org>
16293
16294         fflush: Move AC_LIBOBJ invocations to module description.
16295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16296         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16297         invocations from here...
16298         * modules/fflush (configure.ac): ... to here.
16299
16300 2011-05-06  Bruno Haible  <bruno@clisp.org>
16301
16302         fdopendir: Move AC_LIBOBJ invocations to module description.
16303         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16304         here...
16305         * modules/fdopendir (configure.ac): ... to here.
16306         (Depends-on): Improve conditions.
16307
16308 2011-05-06  Bruno Haible  <bruno@clisp.org>
16309
16310         _Exit: Move AC_LIBOBJ invocations to module description.
16311         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16312         invocations from here...
16313         * modules/_Exit (configure.ac): ... to here.
16314
16315 2011-05-21  Bruno Haible  <bruno@clisp.org>
16316
16317         euidaccess: Respect rules for use of AC_LIBOBJ.
16318         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16320         from here...
16321         * modules/euidaccess (configure.ac): ... to here.
16322
16323 2011-05-06  Bruno Haible  <bruno@clisp.org>
16324
16325         error: Move AC_LIBOBJ invocations to module description.
16326         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16327         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16328         invocations from here...
16329         * modules/error (configure.ac): ... to here.
16330
16331 2011-05-06  Bruno Haible  <bruno@clisp.org>
16332
16333         duplocale: Move AC_LIBOBJ invocations to module description.
16334         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16335         gl_PREREQ_DUPLOCALE invocations from here...
16336         * modules/duplocale (configure.ac): ... to here.
16337
16338 2011-05-05  Bruno Haible  <bruno@clisp.org>
16339
16340         dirfd: Move AC_LIBOBJ invocations to module description.
16341         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16342         gl_FUNC_DIRFD.
16343         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16344         here...
16345         * modules/dirfd (configure.ac): ... to here.
16346         (Depends-on): Fix condition.
16347
16348 2011-05-05  Bruno Haible  <bruno@clisp.org>
16349
16350         chown: Respect rules for use of AC_LIBOBJ.
16351         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16352         * modules/chown (configure.ac): ... to here.
16353
16354 2011-05-05  Bruno Haible  <bruno@clisp.org>
16355
16356         chdir-long: Move AC_LIBOBJ invocations to module description.
16357         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16358         gl_PREREQ_CHDIR_LONG invocations from here...
16359         * modules/chdir-long (configure.ac): ... to here.
16360
16361 2011-05-05  Bruno Haible  <bruno@clisp.org>
16362
16363         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16364         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16365         from here...
16366         * modules/canonicalize-lgpl (configure.ac): ... to here.
16367
16368 2011-05-05  Bruno Haible  <bruno@clisp.org>
16369
16370         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16371         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16372         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16373         REPLACE_CALLOC.
16374         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16375         * modules/calloc-gnu (configure.ac): Likewise.
16376
16377 2011-05-05  Bruno Haible  <bruno@clisp.org>
16378
16379         btowc: Move AC_LIBOBJ invocations to module description.
16380         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16381         invocations from here...
16382         * modules/btowc (configure.ac): ... to here.
16383
16384 2011-05-21  Bruno Haible  <bruno@clisp.org>
16385
16386         atexit: Move AC_LIBOBJ invocations to module description.
16387         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16388         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16389         here...
16390         * modules/atexit (configure.ac): ... to here.
16391
16392 2011-05-05  Bruno Haible  <bruno@clisp.org>
16393
16394         atoll: Move AC_LIBOBJ invocations to module description.
16395         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16396         invocations from here...
16397         * modules/atoll (configure.ac): ... to here.
16398
16399 2011-05-05  Bruno Haible  <bruno@clisp.org>
16400
16401         argz: Move AC_LIBOBJ invocations to module description.
16402         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16403         * modules/argz (configure.ac): ... to here.
16404
16405 2011-05-05  Bruno Haible  <bruno@clisp.org>
16406
16407         alphasort: Move AC_LIBOBJ invocations to module description.
16408         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16409         gl_PREREQ_ALPHASORT invocations from here...
16410         * modules/alphasort (configure.ac): ... to here.
16411
16412 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16413
16414         verify: new macro verify_expr; verify_true deprecated
16415         * NEWS: Mention this.
16416         * doc/verify.texi (Compile-time Assertions): Document this.
16417         * lib/verify.h (verify_true): Deprecate.
16418         (verify_expr): New macro.
16419         * tests/test-verify.c (function): Test verify_expr.
16420
16421 2011-06-14  Jim Meyering  <meyering@redhat.com>
16422
16423         init.sh: give more portable redirection-related advice in a comment
16424         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16425         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16426         for lots of discussion.  Stefano Lattarini suggested the solution
16427         of putting "9>&2" after the command.  Reported by Bruno Haible.
16428
16429 2011-06-13  Bruno Haible  <bruno@clisp.org>
16430
16431         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16432         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16433         'none'.
16434
16435 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         ftoastr: use strtof only if HAVE_STRTOF
16438         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16440         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16441         * modules/ftoastr (configure.ac): Check for strtof.
16442
16443 2011-06-13  Bruno Haible  <bruno@clisp.org>
16444
16445         gnulib-tool: Addendum to 2011-06-08 commit.
16446         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16447         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16448
16449 2011-06-13  Bruno Haible  <bruno@clisp.org>
16450
16451         fseeko: Provide a non-inline replacement of fseek().
16452         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16453         * modules/fseeko (Depends-on): Add fseek.
16454         * modules/fseek (License): Change to LGPLv2+.
16455
16456 2011-06-13  Bruno Haible  <bruno@clisp.org>
16457
16458         ftello: Provide a non-inline replacement of ftell().
16459         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16460         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16461         not have ftello() (such as on mingw).
16462         * modules/ftello (Depends-on): Add ftell.
16463         * modules/ftell (License): Change to LGPLv2+.
16464
16465 2011-05-07  Bruno Haible  <bruno@clisp.org>
16466
16467         ftell: Move AC_LIBOBJ invocations to module description.
16468         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16469         * modules/ftell (configure.ac): ... to here.
16470
16471 2011-05-07  Bruno Haible  <bruno@clisp.org>
16472
16473         ftello: Respect rules for use of AC_LIBOBJ.
16474         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16475         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16476         here...
16477         * modules/ftello (configure.ac): ... to here.
16478
16479 2011-05-07  Bruno Haible  <bruno@clisp.org>
16480
16481         fseeko: Simplify.
16482         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16483         (gl_FUNC_FSEEKO): Inline it here.
16484
16485 2011-05-07  Bruno Haible  <bruno@clisp.org>
16486
16487         fseek: Move AC_LIBOBJ invocations to module description.
16488         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16489         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16490         * modules/fseek (configure.ac): ... to here.
16491
16492 2011-05-07  Bruno Haible  <bruno@clisp.org>
16493
16494         fseek: Respect rules for use of AC_LIBOBJ.
16495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16496         here...
16497         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16498
16499 2011-05-07  Bruno Haible  <bruno@clisp.org>
16500
16501         fseeko: Respect rules for use of AC_LIBOBJ.
16502         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16503         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16504         here...
16505         * modules/fseeko (configure.ac): ... to here.
16506
16507 2011-06-13  Bruno Haible  <bruno@clisp.org>
16508
16509         gnulib-tool: Allow comments in the 'Depends-on' section.
16510         * doc/gnulib.texi (Module description): Mention comment syntax in the
16511         Depends-on section.
16512         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16513
16514 2011-06-13  Bruno Haible  <bruno@clisp.org>
16515
16516         file-set.h: guard __attibute__ use, now that it's not always defined
16517         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16518         versions that support it.  This fixes a coreutils build failure with
16519         the vendor cc on HP-UX 11.31.
16520
16521 2011-06-12  Bruno Haible  <bruno@clisp.org>
16522
16523         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16524         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16525         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16526         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16527         (acl, aclsort): New declarations.
16528         (aclv_nontrivial): New declaration.
16529         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16530         (file_has_acl): Read also the second kind of HP-UX ACLs.
16531         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16532         kind of HP-UX ACLs if the first kind fails.
16533         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16534         second kind of HP-UX ACLs.
16535         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16536         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16537         agree.
16538         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16539         hpuxjfs.
16540         Handle hpuxjfs.
16541         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16542         hpuxjfs.
16543         Handle hpuxjfs.
16544         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16545         (func_test_same_acls): Use both lsacl and getacl.
16546         Handle hpuxjfs.
16547         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16548         (func_test_same_acls): Use both lsacl and getacl.
16549         Handle hpuxjfs.
16550
16551 2011-06-12  Bruno Haible  <bruno@clisp.org>
16552
16553         acl: Complete the 2010-08-10 fix.
16554         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16555         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16556         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16557         explicitly.
16558         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16559         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16560
16561 2011-06-12  Bruno Haible  <bruno@clisp.org>
16562
16563         spawn-pipe tests: Comments.
16564         * tests/test-spawn-pipe-child.c (main): Update comment.
16565         Reported by James Youngman <jay@gnu.org>.
16566
16567 2011-06-11  James Youngman  <jay@gnu.org>
16568
16569         New module 'stat-size'.
16570         * modules/stat-size: New module.  Provides macros for accessing
16571         file size information in instances of struct stat.  Depends on the
16572         fileblocks module because it calls st_blocks.
16573         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16574         * doc/gnulib.texi: Include stat-size.texi.
16575         * doc/stat-size.texi: Documentation for this module.
16576         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16577         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16578         AC_STRUCT_ST_BLOCKS.
16579
16580 2011-06-09  Bruno Haible  <bruno@clisp.org>
16581
16582         thread: Support pthreads-win32.
16583         * lib/glthread/thread.h (gl_thread_self): Define differently on
16584         pthreads-win32.
16585         (gl_null_thread): New declaration.
16586         (gl_thread_self_pointer): New macro.
16587         * lib/glthread/thread.c (gl_null_thread): New constant.
16588         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16589         gl_thread_self.
16590         * tests/test-tls.c: Likewise.
16591         Suggested by Paul Eggert. Reported by Eric Blake.
16592
16593 2011-06-09  Bruno Haible  <bruno@clisp.org>
16594
16595         thread: Fix confusion between NULL and 0.
16596         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16597         Reported by Paul Eggert.
16598
16599 2011-06-09  Bruno Haible  <bruno@clisp.org>
16600
16601         spawn-pipe tests: Avoid test failure on HP-UX 11.
16602         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16603         is closed.
16604
16605 2011-06-09  Bruno Haible  <bruno@clisp.org>
16606
16607         acl tests: Fix compilation error on HP-UX 11.
16608         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16609
16610 2011-06-09  Bruno Haible  <bruno@clisp.org>
16611
16612         rmdir: Avoid test failure on HP-UX 10.20.
16613         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16614         EEXIST.
16615
16616 2011-06-08  Eric Blake  <eblake@redhat.com>
16617
16618         perror: fix test on mingw
16619         * modules/perror-tests (Depends-on): Add dup2.
16620
16621         strerror_r-posix: fix on MacOS
16622         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16624         logic bug.
16625         * lib/strerror_r.c (strerror_r): Fix the bug.
16626         * lib/strerror.c (strerror): Likewise.
16627         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16628         problem.
16629         * doc/posix-functions/strerror.texi (strerror): Likewise.
16630         * doc/posix-functions/perror.texi (perror): Likewise.
16631         * tests/test-strerror.c (main): Enhance test.
16632         * tests/test-strerror_r.c (main): Likewise.
16633
16634 2011-06-08  Bruno Haible  <bruno@clisp.org>
16635
16636         gnulib-tool: Better isolation between different gnulib-tool invocations.
16637         * gnulib-tool: New option --witness-c-macro.
16638         (witness_c_macro): New variable.
16639         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16640         AM_CPPFLAGS define it as a C macro.
16641         (func_emit_tests_Makefile_am): Likewise.
16642         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16643         read it from there.
16644         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16645         m4_define, not AC_DEFUN.
16646         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16647         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16648         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16649         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16650         s|...|...|, to substitute the values of the GNULIB_* module indicator
16651         variables.
16652         * modules/dirent (Makefile.am): Likewise.
16653         * modules/fcntl-h (Makefile.am): Likewise.
16654         * modules/iconv-h (Makefile.am): Likewise.
16655         * modules/langinfo (Makefile.am): Likewise.
16656         * modules/locale (Makefile.am): Likewise.
16657         * modules/math (Makefile.am): Likewise.
16658         * modules/netdb (Makefile.am): Likewise.
16659         * modules/poll-h (Makefile.am): Likewise.
16660         * modules/pty (Makefile.am): Likewise.
16661         * modules/search (Makefile.am): Likewise.
16662         * modules/signal (Makefile.am): Likewise.
16663         * modules/spawn (Makefile.am): Likewise.
16664         * modules/stdio (Makefile.am): Likewise.
16665         * modules/stdlib (Makefile.am): Likewise.
16666         * modules/string (Makefile.am): Likewise.
16667         * modules/sys_ioctl (Makefile.am): Likewise.
16668         * modules/sys_select (Makefile.am): Likewise.
16669         * modules/sys_socket (Makefile.am): Likewise.
16670         * modules/sys_stat (Makefile.am): Likewise.
16671         * modules/sys_times (Makefile.am): Likewise.
16672         * modules/sys_utsname (Makefile.am): Likewise.
16673         * modules/sys_wait (Makefile.am): Likewise.
16674         * modules/termios (Makefile.am): Likewise.
16675         * modules/time (Makefile.am): Likewise.
16676         * modules/unistd (Makefile.am): Likewise.
16677         * modules/wchar (Makefile.am): Likewise.
16678
16679 2011-06-08  Eric Blake  <eblake@redhat.com>
16680
16681         strerror: simplify replacement
16682         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16683         * modules/strerror (configure.ac): No prereqs needed here...
16684         * modules/strerror-override (configure.ac): ...but this needs it.
16685         (Files): Add file for needed prereq macro.
16686
16687 2011-06-08  Bruno Haible  <bruno@clisp.org>
16688
16689         strerror_r-posix: Tweaks.
16690         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16691         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16692         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16693         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16694         (gl_FUNC_STRERROR_R): ... to here.
16695         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16696
16697 2011-06-07  Eric Blake  <eblake@redhat.com>
16698
16699         perror: document fixed bugs
16700         * doc/posix-functions/perror.texi (perror): Document recent
16701         patches.
16702
16703 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         stat-time: get_stat_birthtime failure is better-defined
16706         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16707         return a timestamp whose tv_sec and tv_nsec values are both -1.
16708         Previously, the spec said only that the tv_nsec value was negative.
16709         This upward-compatible change simplifies GNU tar a bit.
16710
16711 2011-06-07  Eric Blake  <eblake@redhat.com>
16712
16713         strerror_r-posix: work around cygwin 1.7.9
16714         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16715         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16716         bug without replacing strerror_r.
16717         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16718         strerror_r is buggy, but without requiring strerror_r compilation.
16719         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16720
16721         test-perror: relax test to ignore cygwin bug
16722         * tests/test-perror2.c (main): Relax test on requiring detection
16723         of stream errors, and use unbuffered stream.
16724         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16725         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16726         * doc/posix-functions/fputc.texi (fputc): Likewise.
16727         * doc/posix-functions/fputs.texi (fputs): Likewise.
16728         * doc/posix-functions/fputws.texi (fputws): Likewise.
16729         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16730         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16731         * doc/posix-functions/getopt.texi (getopt): Likewise.
16732         * doc/posix-functions/perror.texi (perror): Likewise.
16733         * doc/posix-functions/printf.texi (printf): Likewise.
16734         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16735         * doc/posix-functions/psignal.texi (psignal): Likewise.
16736         * doc/posix-functions/putc.texi (putc): Likewise.
16737         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16738         Likewise.
16739         * doc/posix-functions/putchar.texi (putchar): Likewise.
16740         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16741         Likewise.
16742         * doc/posix-functions/puts.texi (puts): Likewise.
16743         * doc/posix-functions/putwc.texi (putwc): Likewise.
16744         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16745         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16746         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16747         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16748         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16749         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16750         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16751         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16752
16753 2011-05-22  Bruno Haible  <bruno@clisp.org>
16754
16755         strerror: Move AC_LIBOBJ invocations to module description.
16756         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16757         gl_PREREQ_STRERROR invocations from here...
16758         * modules/strerror (configure.ac): ... to here.
16759
16760 2011-05-21  Bruno Haible  <bruno@clisp.org>
16761
16762         perror: Use common idiom.
16763         * modules/perror (configure.ac): Reorder statements.
16764
16765 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16766
16767         tests: fix usage message in 'mktempd_'
16768         * tests/init.sh (mktempd_): In the usage message, use literal
16769         'mktempd_', not '$ME' (which is even undefined), as the name of
16770         the subroutine.
16771
16772 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16773
16774         tests init: new function 'fatal_', for hard errors
16775         Before this patch, the only way offered by tests/init.sh to
16776         properly signal a hard error was the `framework_failure_'
16777         function.  But the error message issued by that function,
16778         as its name would suggest, refers to a set-up failure in the
16779         testsuite, while hard errors can obviously also be due to
16780         other reasons.  The best way to fix this inconsistency is to
16781         introduce a new function with a more general error message.
16782         * tests/init.sh (fatal_): New function.
16783
16784 2011-06-06  Eric Blake  <eblake@redhat.com>
16785
16786         canonicalize-lgpl: use common idiom
16787         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16788         over newer POSIX -Rf.
16789         Reported by Bruno Haible.
16790
16791         canonicalize-lgpl: work around AIX realpath bug
16792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16793         * doc/posix-functions/realpath.texi (realpath): Document it.
16794         Reported by Bruno Haible.
16795
16796         strerror: work around FreeBSD bug
16797         * lib/strerror.c (strerror): Special case 0.
16798         Reported by Bruno Haible.
16799
16800         strerror-override: avoid bloating errno module
16801         * modules/errno (Files, configure.ac): Move replacement strings...
16802         * modules/strerror-override: ...to new module.
16803         * modules/strerror (Depends-on): Add strerror-override.
16804         * modules/strerror_r-posix (Depends-on): Likewise.
16805         * MODULES.html.sh: Document new module.
16806         Reported by Bruno Haible.
16807
16808 2011-06-06  Bruno Haible  <bruno@clisp.org>
16809
16810         spawn-pipe tests: Rename program.
16811         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16812         * tests/test-spawn-pipe-child.c: Update comment.
16813         * tests/test-spawn-pipe.sh: Update.
16814         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16815
16816         spawn-pipe tests: Link the child program only against libc.
16817         * tests/test-spawn-pipe-child.c: New file, extracted from
16818         tests/test-spawn-pipe.c.
16819         (main): Expect only one argument.
16820         (is_open): New function, copied from tests/test-pipe.c.
16821         * tests/test-spawn-pipe.c: Don't include <errno.h>.
16822         (child_main): Remove function.
16823         (test_pipe): Pass only one argument to the child program.
16824         (main): Remove child process code. Expect the child program's name as
16825         first argument.
16826         * tests/test-spawn-pipe.sh: Pass the child program's name as first
16827         argument.
16828         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
16829         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
16830         test-spawn-pipe-child against no libraries.
16831
16832 2011-06-06  Bruno Haible  <bruno@clisp.org>
16833
16834         careadlinkat: Avoid mismatch between ssize_t and int.
16835         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
16836         * lib/careadlinkat.c (careadlinkatcwd): Define always.
16837
16838 2011-06-06  Jim Meyering  <meyering@redhat.com>
16839
16840         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
16841         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
16842         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
16843
16844 2011-06-05  Bruno Haible  <bruno@clisp.org>
16845
16846         ansi-c++-opt: Interoperability with libtool.
16847         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
16848         set the variable to "no", not to ":".
16849         * NEWS: Mention the change.
16850
16851 2011-06-05  Bruno Haible  <bruno@clisp.org>
16852
16853         acl: Fix test failure on AIX 7.
16854         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
16855         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
16856
16857 2011-06-05  Bruno Haible  <bruno@clisp.org>
16858
16859         pipe-filter-ii: Fix test failure on AIX and IRIX.
16860         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
16861         with EAGAIN, retry with a smaller buffer size.
16862
16863 2011-06-05  Bruno Haible  <bruno@clisp.org>
16864
16865         localename: Fix link dependencies.
16866         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
16867         * modules/localename-tests (Makefile.am): Link test-localename with
16868         $(LIBTHREAD).
16869
16870 2011-06-05  Bruno Haible  <bruno@clisp.org>
16871
16872         error: Avoid gcc warning.
16873         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
16874
16875 2011-06-05  Bruno Haible  <bruno@clisp.org>
16876
16877         unsetenv: Avoid gcc warning.
16878         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
16879
16880 2011-06-05  Bruno Haible  <bruno@clisp.org>
16881
16882         setenv: Avoid gcc warning.
16883         * lib/setenv.c (setenv): Provide declaration if system lacks it.
16884
16885 2011-06-05  Bruno Haible  <bruno@clisp.org>
16886
16887         sys_select: Ensure memset is declared also on AIX 7.
16888         * lib/sys_select.in.h: Include <string.h> also on AIX.
16889         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
16890         self-contained also on AIX 7.1.
16891
16892 2011-06-04  Jim Meyering  <meyering@redhat.com>
16893
16894         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
16895         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
16896         function name, "error".
16897         (_gl_translatable_diag_func_re): New configurable variable.
16898
16899 2011-06-04  Bruno Haible  <bruno@clisp.org>
16900
16901         getopt: Avoid gcc warning.
16902         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
16903
16904 2011-06-04  Bruno Haible  <bruno@clisp.org>
16905
16906         strerror_r: Fix comments.
16907         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
16908         commit.
16909
16910 2011-06-04  Bruno Haible  <bruno@clisp.org>
16911
16912         perror: Fix compilation error.
16913         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
16914         Undefine fprintf, not sprintf.
16915         * modules/perror (Depends-on): Remove intprops, verify.
16916
16917 2011-06-04  Bruno Haible  <bruno@clisp.org>
16918
16919         setlocale: Enable replacement on Cygwin 1.5.
16920         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
16921         Cygwin 1.5.x.
16922         * doc/posix-functions/setlocale.texi: Mention that the problem with the
16923         LC_CTYPE category also exists on Cygwin 1.5.x.
16924
16925 2011-06-04  Bruno Haible  <bruno@clisp.org>
16926
16927         strerror-override: Don't disable symbol renamings.
16928         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
16929         * lib/strerror-override.c: Include config.h.
16930         (strerror_override): Don't undefine.
16931
16932 2011-06-03  Bruno Haible  <bruno@clisp.org>
16933
16934         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
16935         * lib/localename.h: Update copyright header.
16936         * lib/localename.c: Likewise.
16937         * lib/relocatable.h: Likewise.
16938         * lib/relocatable.c: Likewise.
16939
16940 2011-06-02  Bruno Haible  <bruno@clisp.org>
16941
16942         doc: Fix a module name.
16943         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
16944
16945 2011-06-02  Bruno Haible  <bruno@clisp.org>
16946
16947         pipe2: Remove dependency on 'nonblocking' module.
16948         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16949         O_NONBLOCK is defined by gnulib.
16950         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16951         is zero.
16952         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16953         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16954         defined by gnulib.
16955         (get_nonblocking_flag): New function.
16956         (main): Test O_NONBLOCK flag only if it is nonzero.
16957         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16958
16959 2011-06-03  Jim Meyering  <meyering@redhat.com>
16960
16961         maint: three new prohibit-header-without-use rules
16962         Prohibit use of cloexec.h, posixver.h, same.h without use.
16963         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16964         (sc_prohibit_posixver_without_use): Likewise.
16965         (sc_prohibit_same_without_use): Likewise.
16966
16967 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16968
16969         allocator: 'die' routine is now given requested size
16970         * lib/allocator.h (struct allocator.die): New size arg.
16971         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16972         If the actual problem is an ssize_t limitation, not a size_t or
16973         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16974
16975 2011-06-01  Eric Blake  <eblake@redhat.com>
16976
16977         strerror: drop strerror_r dependency
16978         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16979         * lib/strerror-override.c (strerror_override): ...to new file.
16980         * lib/strerror-override.h: Add prototype.
16981         * lib/strerror-impl.h: Delete.
16982         * lib/strerror.c (strerror): New implementation.
16983         * modules/errno (Files): Add new files.
16984         (configure.ac): Compile new file as appropriate.
16985         * modules/strerror (Files): Drop unused file.
16986         (Depends-on): Drop strerror_r-posix.
16987         * MODULES.html.sh: Document strerror_r-posix.
16988         Requested by Sam Steingold.
16989
16990         perror: call strerror_r directly
16991         * modules/perror (Files): Drop strerror-impl.h.
16992         * lib/perror.c (perror): Use our own stack buffer, rather than
16993         calling a wrapper that uses static storage.
16994         * doc/posix-functions/perror.texi (perror): Document a limitation
16995         of our replacement.
16996
16997         strerror_r: fix includes for FreeBSD
16998         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16999         since we use abort on some platforms.
17000         Reported by Matthias Bolte.
17001
17002 2011-05-31  Bruno Haible  <bruno@clisp.org>
17003
17004         Fix link errors in tests: openat-die uses gettext-h.
17005         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17006         against $(LIBINTL).
17007         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17008         against $(LIBINTL).
17009         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17010         $(LIBINTL).
17011         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17012         against $(LIBINTL).
17013         * modules/linkat-tests (Makefile.am): Link test-linkat against
17014         $(LIBINTL).
17015         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17016         $(LIBINTL).
17017         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17018         against $(LIBINTL).
17019         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17020         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17021         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17022         $(LIBINTL).
17023         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17024         $(LIBINTL).
17025         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17026         $(LIBINTL).
17027         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17028
17029 2011-05-31  Bruno Haible  <bruno@clisp.org>
17030
17031         Fix link errors in tests: wait-process uses gettext-h.
17032         * modules/nonblocking-pipe-tests (Makefile.am): Set
17033         test_nonblocking_pipe_main_LDADD.
17034         * modules/nonblocking-socket-tests (Makefile.am): Link
17035         test-nonblocking-socket-main against $(LIBINTL).
17036         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17037
17038 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17039
17040         assert-h: work around 'verify' incompatibility
17041         * lib/verify.h: Use @...@ directives, not ifdef.
17042         * modules/assert-h (assert.h): Implement the directives.
17043         (assert.h): Substitute the symbol-prefix more consistently.
17044
17045 2011-05-29  Jim Meyering  <meyering@redhat.com>
17046
17047         trim: remove three superfluous assignments
17048         * lib/trim.c (trim2): Remove three superfluous assignments
17049         and correct brace positioning.
17050
17051 2011-05-29  Bruno Haible  <bruno@clisp.org>
17052
17053         wctype-h: Avoid namespace pollution on Solaris 2.6.
17054         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17055         identifiers.
17056         * doc/posix-headers/wctype.texi: Mention the problem.
17057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17058
17059 2011-05-28  Jim Meyering  <meyering@redhat.com>
17060
17061         parse-datetime.y: accommodate -Wstrict-overflow
17062         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17063         placate -Wstrict-overflow.
17064
17065         trim: avoid a warning from -O2 -Wstrict-overflow
17066         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17067
17068 2011-05-29  Bruno Haible  <bruno@clisp.org>
17069
17070         gnulib-tool: Fix bug in yesterday's commit.
17071         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17072         twice.
17073
17074 2011-05-29  Bruno Haible  <bruno@clisp.org>
17075
17076         Allow multiple gnulib generated include files to be combined.
17077         * gnulib-tool (func_compute_include_guard_prefix): New function.
17078         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17079         ${gl_include_guard_prefix} references.
17080         (func_import, func_create_testdir): Invoke
17081         func_compute_include_guard_prefix.
17082         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17083         * lib/ctype.in.h: Likewise.
17084         * lib/dirent.in.h: Likewise.
17085         * lib/errno.in.h: Likewise.
17086         * lib/fcntl.in.h: Likewise.
17087         * lib/float.in.h: Likewise.
17088         * lib/getopt.in.h: Likewise.
17089         * lib/iconv.in.h: Likewise.
17090         * lib/langinfo.in.h: Likewise.
17091         * lib/locale.in.h: Likewise.
17092         * lib/math.in.h: Likewise.
17093         * lib/netdb.in.h: Likewise.
17094         * lib/netinet_in.in.h: Likewise.
17095         * lib/poll.in.h: Likewise.
17096         * lib/pthread.in.h: Likewise.
17097         * lib/pty.in.h: Likewise.
17098         * lib/sched.in.h: Likewise.
17099         * lib/se-selinux.in.h: Likewise.
17100         * lib/search.in.h: Likewise.
17101         * lib/signal.in.h: Likewise.
17102         * lib/spawn.in.h: Likewise.
17103         * lib/stdarg.in.h: Likewise.
17104         * lib/stddef.in.h: Likewise.
17105         * lib/stdint.in.h: Likewise.
17106         * lib/stdio.in.h: Likewise.
17107         * lib/stdlib.in.h: Likewise.
17108         * lib/string.in.h: Likewise.
17109         * lib/strings.in.h: Likewise.
17110         * lib/sys_file.in.h: Likewise.
17111         * lib/sys_ioctl.in.h: Likewise.
17112         * lib/sys_select.in.h: Likewise.
17113         * lib/sys_socket.in.h: Likewise.
17114         * lib/sys_stat.in.h: Likewise.
17115         * lib/sys_time.in.h: Likewise.
17116         * lib/sys_times.in.h: Likewise.
17117         * lib/sys_uio.in.h: Likewise.
17118         * lib/sys_utsname.in.h: Likewise.
17119         * lib/sys_wait.in.h: Likewise.
17120         * lib/sysexits.in.h: Likewise.
17121         * lib/termios.in.h: Likewise.
17122         * lib/time.in.h: Likewise.
17123         * lib/unistd.in.h: Likewise.
17124         * lib/wchar.in.h: Likewise.
17125         * lib/wctype.in.h: Likewise.
17126         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17127         * modules/ctype (Makefile.am): Likewise.
17128         * modules/dirent (Makefile.am): Likewise.
17129         * modules/errno (Makefile.am): Likewise.
17130         * modules/fcntl-h (Makefile.am): Likewise.
17131         * modules/float (Makefile.am): Likewise.
17132         * modules/getopt-posix (Makefile.am): Likewise.
17133         * modules/iconv-h (Makefile.am): Likewise.
17134         * modules/langinfo (Makefile.am): Likewise.
17135         * modules/locale (Makefile.am): Likewise.
17136         * modules/math (Makefile.am): Likewise.
17137         * modules/netdb (Makefile.am): Likewise.
17138         * modules/netinet_in (Makefile.am): Likewise.
17139         * modules/poll-h (Makefile.am): Likewise.
17140         * modules/pthread (Makefile.am): Likewise.
17141         * modules/pty (Makefile.am): Likewise.
17142         * modules/sched (Makefile.am): Likewise.
17143         * modules/search (Makefile.am): Likewise.
17144         * modules/selinux-h (Makefile.am): Likewise.
17145         * modules/signal (Makefile.am): Likewise.
17146         * modules/spawn (Makefile.am): Likewise.
17147         * modules/stdarg (Makefile.am): Likewise.
17148         * modules/stddef (Makefile.am): Likewise.
17149         * modules/stdint (Makefile.am): Likewise.
17150         * modules/stdio (Makefile.am): Likewise.
17151         * modules/stdlib (Makefile.am): Likewise.
17152         * modules/string (Makefile.am): Likewise.
17153         * modules/strings (Makefile.am): Likewise.
17154         * modules/sys_file (Makefile.am): Likewise.
17155         * modules/sys_ioctl (Makefile.am): Likewise.
17156         * modules/sys_select (Makefile.am): Likewise.
17157         * modules/sys_socket (Makefile.am): Likewise.
17158         * modules/sys_stat (Makefile.am): Likewise.
17159         * modules/sys_time (Makefile.am): Likewise.
17160         * modules/sys_times (Makefile.am): Likewise.
17161         * modules/sys_uio (Makefile.am): Likewise.
17162         * modules/sys_utsname (Makefile.am): Likewise.
17163         * modules/sys_wait (Makefile.am): Likewise.
17164         * modules/sysexits (Makefile.am): Likewise.
17165         * modules/termios (Makefile.am): Likewise.
17166         * modules/time (Makefile.am): Likewise.
17167         * modules/unistd (Makefile.am): Likewise.
17168         * modules/wchar (Makefile.am): Likewise.
17169         * modules/wctype-h (Makefile.am): Likewise.
17170         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17171
17172 2011-05-29  Bruno Haible  <bruno@clisp.org>
17173
17174         assert-h: Allow multiple gnulib generated replacements to coexist.
17175         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17176
17177 2011-05-29  Bruno Haible  <bruno@clisp.org>
17178
17179         argp: Allow coexistence with strerror_r-posix module.
17180         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17181         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17182         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17183         not the glibc signature.
17184
17185 2011-05-28  Bruno Haible  <bruno@clisp.org>
17186
17187         gnulib-tool: Alternative structure of testdirs, similar to --import.
17188         * gnulib-tool: New option --single-configure.
17189         (func_usage): Document it.
17190         (single_configure): New variable.
17191         (func_modules_transitive_closure_separately,
17192         func_modules_transitive_closure_separately,
17193         func_determine_use_libtests, func_modules_add_dummy_separately,
17194         func_modules_to_filelist_separately): New functions, extracted from
17195         func_import.
17196         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17197         (func_import): Use the new functions.
17198         (func_create_testdir): Set final_modules. Handle $single_configure =
17199         true case.
17200
17201 2011-05-28  Bruno Haible  <bruno@clisp.org>
17202
17203         getloadavg: Remove an unreliable safety check.
17204         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17205         getloadavg.c is in place.
17206         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17207         Reported by Sam Steingold <sds@gnu.org>.
17208
17209 2011-05-28  Bruno Haible  <bruno@clisp.org>
17210
17211         doc: Cleanup yet another file produced by texinfo.tex.
17212         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17213
17214 2011-05-28  Bruno Haible  <bruno@clisp.org>
17215
17216         Finish the conditional dependencies mechanism.
17217         * gnulib-tool: New option --no-conditional-dependencies.
17218         (func_usage): Document it. Don't mark --conditional-dependencies as
17219         experimental.
17220         (cond_dependencies): The possible values can now be true, false, empty.
17221         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17222         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17223         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17224
17225 2011-05-28  Bruno Haible  <bruno@clisp.org>
17226
17227         doc: Use a recent texinfo.tex.
17228         * doc/Makefile (tex_opts): New variable.
17229         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17230
17231 2011-05-28  Jim Meyering  <meyering@redhat.com>
17232
17233         intprops.h: adjust comment to match code change
17234         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17235         only once, it *may* have side effects.  Also fix an unrelated typo.
17236         (_GL_INT_SIGNED): Likewise.
17237
17238 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17239
17240         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17241
17242 2011-05-26  Bruno Haible  <bruno@clisp.org>
17243
17244         mbsrchr: Avoid collision with system function on Interix.
17245         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17246         Reported by Markus Duft <mduft@gentoo.org>.
17247
17248 2011-05-15  James Youngman  <jay@gnu.org>
17249
17250         getopt: for ambiguous options, enumerate the possibilities.
17251         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17252         the ambiguous options when an ambiguous prefix is given. This was
17253         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17254         glibc change was
17255         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17256
17257 2011-05-25  Eric Blake  <eblake@redhat.com>
17258
17259         getcwd: work around mingw bug
17260         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17261         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17262         Reported by Matthias Bolte.
17263
17264 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17265
17266         test-intprops: disable -Wtype-limits diagnostics
17267         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17268         diagnostics.  Otherwise, the integer overflow macros generate many
17269         diagnostics.  Reported by Jim Meyering in
17270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17271
17272         intprops: shorten, to pacify gcc -Woverlength-strings
17273         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17274         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17275         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17276         likely to run afoul of C compiler limits for string constant lengths.
17277         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17278
17279 2011-05-24  Eric Blake  <eblake@redhat.com>
17280
17281         docs: document recently fixed glibc printf bug
17282         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17283         * doc/posix-functions/printf.texi (printf): Likewise.
17284         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17285         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17286
17287         closein-tests: convert to init.sh
17288         * modules/closein-tests (Files): Add init.sh
17289         * tests/test-closein.sh Use it.
17290
17291         yesno-tests: convert to init.sh
17292         * modules/yesno-tests (Files): Add init.sh.
17293         * tests/test-yesno.sh: Use it.
17294
17295         atexit-tests: ensure reliable exit status
17296         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17297         Reported by Bruno Haible.
17298
17299 2011-05-24  Bruno Haible  <bruno@clisp.org>
17300
17301         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17302         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17303         gl_PREREQ_STRERROR_R invocations from here...
17304         * modules/strerror_r-posix (configure.ac): ... to here.
17305
17306 2011-05-24  Eric Blake  <eblake@redhat.com>
17307
17308         strerror_r: fix missing header
17309         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17310
17311         strerror_r: fix AIX test failures
17312         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17313         ERANGE failure.
17314
17315         strerror_r: fix Solaris test failures
17316         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17317         failures.
17318         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17319
17320         strerror_r: enforce POSIX recommendations
17321         * lib/strerror_r.c (safe_copy): New helper method.
17322         (strerror_r): Guarantee a non-empty string.
17323         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17324         recent POSIX rulings and to match our strerror guarantees.
17325         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17326
17327 2011-05-24  Jim Meyering  <meyering@redhat.com>
17328
17329         test-perror2.c: avoid warning about unused variable
17330         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17331
17332 2011-05-24  Eric Blake  <eblake@redhat.com>
17333
17334         perror: avoid spurious test failure on HP-UX
17335         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17336
17337         tests: fix logic bug in init.sh
17338         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17339         shell.
17340
17341 2011-05-24  Jim Meyering  <meyering@redhat.com>
17342
17343         utimensat: do not reference an out-of-scope buffer
17344         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17345         declared in an inner scope, yet "times" would be dereferenced outside
17346         the scope in which "ts" was valid.
17347         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17348         of ts[2] "out/up", so that the use of aliased "times" (via
17349         "times = ts;") does not end up referencing an out-of-scope "ts"
17350
17351         opendir-safer.c: don't clobber errno; don't close negative FD
17352         * lib/opendir-safer.c (opendir_safer):
17353         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17354         file descriptor, and more importantly, don't clobber the
17355         offending errno value with EINVAL.  Before, upon failure
17356         of dup_safer, we would pass the negative file descriptor to
17357         fdopendir, which would clobber errno.
17358
17359 2011-05-23  Bruno Haible  <bruno@clisp.org>
17360
17361         idcache: Fix module description.
17362         * modules/idcache (Include): Set to "idcache.h".
17363
17364 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17365
17366         gnulib-tool: fix portability problem with MacOS sed
17367         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17368         before the "}".  Problem reported by Leo in
17369         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17370         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17371         sed_extract_condition1, sed_extract_condition2.
17372
17373 2011-05-23  Bruno Haible  <bruno@clisp.org>
17374
17375         hash: Simplify autoconf macro.
17376         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17377
17378 2011-05-23  Bruno Haible  <bruno@clisp.org>
17379
17380         getugroups: Fix module description.
17381         * modules/getugroups (Include): Set to "getugroups.h".
17382
17383 2011-05-23  Bruno Haible  <bruno@clisp.org>
17384
17385         linkat: Simplify autoconf macro.
17386         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17387
17388 2011-05-23  Bruno Haible  <bruno@clisp.org>
17389             Eric Blake  <eblake@redhat.com>
17390
17391         linkat, renameat: Update dependencies.
17392         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17393         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17394         symlinkat.
17395
17396 2011-05-23  Jim Meyering  <meyering@redhat.com>
17397
17398         maint.mk: more tight_scope improvements
17399         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17400         (_gl_TS_headers): Define only in if-0'd block.
17401         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17402         sometimes we must *not* use it.  Adjust uses accordingly.
17403         (sc_tight_scope): Use much simpler grep-based test to determine
17404         whether we skip this rule.
17405
17406         maint.mk: generalize/improve the tight-scope rule
17407         * top/maint.mk: Emit a warning when the test is skipped.
17408         (_gl_TS_dir): Add $(srcdir)/ prefix.
17409         (_gl_TS_function_match): Simplify, rather than trying
17410         to enumerate common types.  Otherwise, it would fail to match an
17411         "extern unsigned char const *" declaration in idutils.
17412         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17413         a way to support use of that type of macro.
17414         (_gl_TS_var_match): Simplify regexp.
17415         (_gl_TS_obj_files): New configurable variable.
17416         (_gl_TS_headers): Likewise.
17417
17418 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17419
17420         verify: fix bug when gnulib <assert.h> is also included
17421         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17422         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17423         Perhaps there's a better way, but this fixes the immediate problem.
17424         Problem reported by Bruno Haible in
17425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17426
17427 2011-05-22  Bruno Haible  <bruno@clisp.org>
17428
17429         xgetcwd: Simplify autoconf macro.
17430         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17431
17432 2011-05-22  Bruno Haible  <bruno@clisp.org>
17433
17434         New module 'mktime-internal'.
17435         * modules/mktime-internal: New file.
17436         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17437         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17438         mktime_internal as a C macro if libc has __mktime_internal.
17439         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17440         conditions.
17441         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17442
17443 2011-05-22  Bruno Haible  <bruno@clisp.org>
17444
17445         timegm: Correct mktime replacement statements.
17446         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17447         defining mktime as a C macro. This completes a 2009-07-28 commit.
17448
17449 2011-05-22  Bruno Haible  <bruno@clisp.org>
17450
17451         timegm: Simplify autoconf macro.
17452         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17453
17454 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17455
17456         clock-time: change to LGPLv2+.
17457         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17458         BSD-like but we have no mark for that; this is good enough for now.
17459
17460 2011-05-21  Bruno Haible  <bruno@clisp.org>
17461
17462         strerror_r: Fix comments.
17463         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17464
17465 2011-05-21  Bruno Haible  <bruno@clisp.org>
17466
17467         relocatable-prog-wrapper: Fix possible link error.
17468         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17469         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17470         (gl_FUNC_SETENV): ... to here.
17471         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17472         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17473
17474 2011-05-21  Bruno Haible  <bruno@clisp.org>
17475
17476         relocatable-prog-wrapper: Assume strerror() exists.
17477         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17478         m4/strerror.m4.
17479         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17480         * lib/relocwrapper.c: Remove mention of strerror module.
17481         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17482         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17483         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17484         C macro.
17485
17486 2011-05-21  Bruno Haible  <bruno@clisp.org>
17487
17488         select: Simplify replacement idiom.
17489         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17490         Win32 platforms.
17491         * lib/sys_select.in.h (select): Simplify accordingly.
17492         * modules/select (Depends-on): Likewise.
17493
17494 2011-05-21  Bruno Haible  <bruno@clisp.org>
17495
17496         mkdir-p: Simplify autoconf macro.
17497         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17498         gl_FUNC_LCHOWN.
17499
17500 2011-05-21  Eric Blake  <eblake@redhat.com>
17501
17502         strerror_r: avoid clobbering strerror on cygwin
17503         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17504         fall back instead to sys_errlist.
17505         * modules/strerror (configure.ac): Add witness.
17506         * tests/test-strerror_r.c (main): Enhance test.
17507         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17508         * tests/test-perror2.c (main): Free memory before exit.
17509
17510 2011-05-21  Bruno Haible  <bruno@clisp.org>
17511
17512         mkdtemp: Use gnulib naming conventions.
17513         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17514         * modules/mkdtemp (configure.ac): Update.
17515
17516 2011-05-20  Eric Blake  <eblake@redhat.com>
17517
17518         strerror_r: avoid corrupting errno on Solaris
17519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17520         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17521
17522         strerror_r: avoid compiler warning
17523         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17524
17525         strerror_r: simplify AIX code
17526         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17527
17528         test-perror: avoid spurious failure on FreeBSD
17529         * modules/perror-tests (Depends-on): Add strerror, now that
17530         strerror_r no longer pulls it in.
17531
17532 2011-05-20  Bruno Haible  <bruno@clisp.org>
17533
17534         strerror_r-posix: Remove unused dependencies.
17535         * modules/strerror_r-posix (Depends-on): Remove strerror.
17536         Reported by Eric Blake.
17537
17538 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17539
17540         intprops: remove assumption about A|B representation
17541         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17542         is a valid integer if both A and B are.  Although this is true for
17543         all known practical hosts, the C standard doesn't guarantee it,
17544         and the code need not assume it.  Also, this change may work around
17545         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17547
17548 2011-05-20  Eric Blake  <eblake@redhat.com>
17549
17550         perror: work around FreeBSD bug
17551         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17552         is broken.  Move AC_LIBOBJ...
17553         * modules/perror (configure.ac): Here.
17554         * doc/posix-functions/perror.texi (perror): Document this.
17555         * tests/test-perror2.c (main): Enhance test.
17556
17557         test-perror: check for strerror interactions
17558         * tests/macros.h (STREQ): Add macro.
17559         * modules/perror-tests (Files): Add second test.
17560         * tests/test-perror2.c (main): New file.
17561         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17562
17563         test-perror: rewrite to use init script
17564         * modules/perror-tests (Files): Add init.sh.
17565         * tests/test-perror.sh: Use temporary directory.
17566
17567 2011-05-20  Jim Meyering  <meyering@redhat.com>
17568
17569         maint: replace misused "a" with "an"
17570         * doc/intprops.texi: "a integer"
17571         * doc/regex.texi: "a explanation"
17572         * lib/alignof.h: "a object"
17573         * lib/argmatch.h: "a explanation"
17574         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17575         * lib/stdint.in.h: "a integer"
17576         * lib/userspec.c: "a owner"
17577         * doc/gnulib.texi: Fix "a idea", and reword.
17578
17579 2011-05-19  Jim Meyering  <meyering@redhat.com>
17580
17581         maint: correct misuse of "a" and "an"
17582         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17583         * lib/argp-help.c: "an docum...": s/an/a/
17584         * lib/argp-parse.c: "An vector": s/An/A/
17585         * lib/execute.c: "an native": s/an/a/
17586         * lib/spawn-pipe.c: Likewise.
17587         * lib/gc.h: "an Gc_rc": s/an/a/
17588         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17589         * lib/fts.c: "an stat.st_dev": s/an/a/
17590
17591 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17592
17593         intprops-tests: work around HP-UX 11.23 cc bug with constants
17594         * tests/test-intprops.c (VERIFY): New macro.
17595         (main): Use it, instead of verify, to work around the compiler bug; see
17596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17597
17598         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17599         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17600         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17601         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17602         (_GL_REMAINDER_OVERFLOW): Use it.
17603
17604         intprops-tests: revert unsigned part of previous change
17605         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17606         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17607         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17609
17610 2011-05-19  Bruno Haible  <bruno@clisp.org>
17611
17612         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17613         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17614         strerror_r() returned without filling the buffer.
17615         Reported by Eric Blake.
17616
17617 2011-05-19  Eric Blake  <eblake@redhat.com>
17618
17619         strerror_r: guarantee unchanged errno
17620         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17621         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17622         failure.
17623         * tests/test-strerror_r.c (main): Enhance test.
17624
17625 2011-05-19  Bruno Haible  <bruno@clisp.org>
17626
17627         strerror_r: Reorder #if blocks.
17628         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17629         for consistency with the previous commit.
17630
17631 2011-05-19  Bruno Haible  <bruno@clisp.org>
17632
17633         perror: Avoid clobbering the strerror buffer when possible.
17634         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17635         * lib/strerror.c: Include it.
17636         * modules/strerror (Files): Add lib/strerror-impl.h.
17637         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17638         (my_strerror): New function, defined through lib/strerror-impl.h.
17639         (perror): Use it instead of strerror.
17640         * modules/perror (Files): Add lib/strerror-impl.h.
17641         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17642
17643 2011-05-19  Eric Blake  <eblake@redhat.com>
17644
17645         strerror_r: fix on newer cygwin
17646         * lib/strerror_r.c (strerror_r): Cygwin now has
17647         __xpg_strerror_r, use it.
17648
17649 2011-05-19  Bruno Haible  <bruno@clisp.org>
17650
17651         strerror_r: Avoid clobbering the strerror buffer when possible.
17652         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17653         (sys_nerr, sys_errlist): New declarations.
17654         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17655         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17656         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17657
17658 2011-05-19  Bruno Haible  <bruno@clisp.org>
17659
17660         strerror_r: Fix test failure on mingw.
17661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17662         EXTEND_STRERROR_R.
17663         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17664         macros from errno.in.h instead.
17665
17666 2011-05-19  Eric Blake  <eblake@redhat.com>
17667
17668         strerror: relax test for Solaris
17669         * tests/test-strerror.c (main): Permit Solaris behavior.
17670         * tests/test-strerror_r.c (main): Likewise.
17671
17672         strerror: enforce POSIX ruling on strerror(0)
17673         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17674         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17675         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17676         * doc/posix-functions/strerror.texi (strerror): Document it.
17677         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17678         * tests/test-strerror.c (main): Strengthen test.
17679         * tests/test-strerror_r.c (main): Likewise.
17680
17681 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17682
17683         intprop-tests: port to older and more-pedantic compilers
17684         * modules/intprops-tests (Files): Add tests/macros.h.
17685         * tests/test-intprops.c: Include macros.h.
17686         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17687         it's no longer documented to expand to an integer constant expression.
17688         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17689         argument is floating point, as it's no longer documented to expand
17690         to an integer constant expression in that case.
17691         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17692         compiler bugs reported by Bruno Haible.  See
17693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17694         (U0, U1): New constants, to work around the same bugs.  Also,
17695         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17696
17697         intprops: work around C compiler bugs
17698         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17699         bug in Sun C 5.11 2010/08/13 and other compilers; see
17700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17701
17702         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17703         * doc/intprops.texi (Integer Type Determination): Fix
17704         documentation for TYPE_IS_INTEGER: it returns an constant
17705         expression, not an integer constant expression.  Fix doc for
17706         TYPE_SIGNED: it returns an integer constant expression only if its
17707         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17708         hardly worth documented that way....)
17709
17710 2011-05-18  Bruno Haible  <bruno@clisp.org>
17711
17712         strerror_r: Avoid clobbering the strerror buffer when possible.
17713         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17714         Handle gnulib defined errno values here. When strerror() returns NULL
17715         or an empty string, return EINVAL.
17716         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17717         gnulib defined errno values here.
17718         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17719
17720 2011-05-18  Eric Blake  <eblake@redhat.com>
17721
17722         fnmatch: avoid compiler warning
17723         * lib/fnmatch_loop.c (FCT): Use correct type.
17724         Reported by Matthias Bolte.
17725
17726 2011-05-13  Jim Meyering  <meyering@redhat.com>
17727
17728         maint.mk: three new prohibit_<HDR>_without_use rules
17729         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17730         (sc_prohibit_stdio-safer_without_use): Likewise.
17731         (sc_prohibit_xfreopen_without_use): Likewise.
17732
17733 2011-05-17  Jim Meyering  <meyering@redhat.com>
17734
17735         announce-gen: fail if the NEWS delta is empty
17736         If there's nothing noteworthy in NEWS, then either you forgot
17737         or you shouldn't be releasing.
17738         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17739
17740 2011-05-17  Pádraig Brady <P@draigBrady.com>
17741
17742         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17743         reserved symbols starting with double underscore from the check.
17744
17745 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17746
17747         intprops: add doc
17748         * doc/intprops.texi: New file, documenting intprops.
17749         * doc/gnulib.texi (Particular Modules): Include it.
17750
17751         verify: add doc to gnulib manual and fix example
17752         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17753         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17754         (Compile-time Assertions): Fix example so it can't overflow.
17755
17756 2011-05-17  Jim Meyering  <meyering@redhat.com>
17757
17758         warnings.m4: don't usurp save_CPPFLAGS variable name
17759         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17760
17761         doc: fix typo
17762         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17763
17764 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17765             Bruno Haible  <bruno@clisp.org>
17766
17767         doc: Tweak recent change.
17768         * README (Portability guidelines): Tweak new text.
17769         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17770         Interix 6.1.
17771
17772 2011-05-16  Eric Blake  <eblake@redhat.com>
17773
17774         inttypes: avoid autoconf warning
17775         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17776         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17777
17778 2011-05-16  Sam Steingold <sds@gnu.org>
17779         and Eric Blake  <eblake@redhat.com>
17780
17781         vc-list-files: accept multiple directory operands
17782         * build-aux/vc-list-files: Iterate over all remaining operands.
17783
17784 2011-05-16  Bruno Haible  <bruno@clisp.org>
17785
17786         Fix confusion regarding deprecated modules.
17787         * modules/calloc (Status, Notice): Mark module as deprecated, not
17788         obsolete.
17789         * modules/fnmatch-posix (Status, Notice): Likewise.
17790         * modules/getdate (Status, Notice): Likewise.
17791         * modules/getopt (Status, Notice): Likewise.
17792         * modules/malloc (Status, Notice): Likewise.
17793         * modules/pipe (Status, Notice): Likewise.
17794         * modules/realloc (Status, Notice): Likewise.
17795         * modules/rename-dest-slash (Status, Notice): Likewise.
17796         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17797         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17798         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17799         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17800         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17801
17802 2011-05-16  Bruno Haible  <bruno@clisp.org>
17803
17804         doc: List the target platforms.
17805         * doc/gnulib-intro.texi (Target Platforms): New section.
17806         * doc/gnulib.texi (Introduction): Update menu.
17807         * README (Portability guidelines): Refer to the new section. Update
17808         statement about oldest supported environment. Remove rationale why
17809         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17810         unportable C89 function.
17811         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17812         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17813
17814 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17815
17816         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17817
17818 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17819
17820         intprops-tests: new module
17821         * modules/intprops-tests, tests/test-intprops.c: New files.
17822
17823         intprops: add safe, portable integer overflow checking
17824         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
17825         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
17826         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
17827         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
17828         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
17829         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
17830         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
17831         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
17832         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
17833         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
17834         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
17835
17836 2011-05-12  James Youngman  <jay@gnu.org>
17837
17838         Add a test for glibc's Bugzilla bug #12378.
17839         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
17840         doesn't allow the literal matching of a lone "[" (which is
17841         required by POSIX).
17842         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
17843
17844 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
17845
17846         Sync glibc change fixing Bugzilla bug #12378.
17847         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
17848         beginning and fall back to matching as normal character if the
17849         string ends before the matching ']' is found.  This is what POSIX
17850         requires.
17851
17852 2011-05-13  Eric Blake  <eblake@redhat.com>
17853
17854         getcwd-lgpl: relax test for FreeBSD
17855         * doc/posix-functions/getcwd.texi (getcwd): Document portability
17856         issue.
17857         * tests/test-getcwd-lgpl.c (main): Relax test.
17858         Reported by Matthias Bolte.
17859
17860 2011-05-11  Eric Blake  <eblake@redhat.com>
17861
17862         test-fflush: silence compiler warning
17863         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
17864
17865 2011-05-11  Bruno Haible  <bruno@clisp.org>
17866
17867         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
17868         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
17869         * modules/canonicalize (Depends-on): Add 'nocrash'.
17870         * modules/canonicalize-lgpl (Depends-on): Likewise.
17871         * doc/posix-functions/realpath.texi: Update platforms list.
17872         Reported by Ryan Schmidt <ryandesign@macports.org>.
17873
17874 2011-05-11  Bruno Haible  <bruno@clisp.org>
17875
17876         group-member: Declare function in <unistd.h>.
17877         * lib/unistd.in.h (group_member): New declaration.
17878         * lib/group-member.h: Remove file.
17879         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
17880         * tests/test-unistd-c++.cc: Check signature of group_member.
17881         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
17882         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
17883         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
17884         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
17885         HAVE_GROUP_MEMBER.
17886         * modules/group-member (Files): Remove lib/group-member.h.
17887         (Depends-on): Add unistd. Specify conditions.
17888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17889         (Include): Change to <unistd.h>.
17890         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
17891         HAVE_GROUP_MEMBER.
17892         * NEWS: Mention the change.
17893         * lib/euidaccess.c: Don't include group-member.h.
17894
17895 2011-05-11  Bruno Haible  <bruno@clisp.org>
17896
17897         group-member: Document module.
17898         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
17899         module.
17900
17901 2011-05-11  Bruno Haible  <bruno@clisp.org>
17902
17903         fclose: Fix mistake earlier today.
17904         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
17905
17906 2011-05-11  Eric Blake  <eblake@redhat.com>
17907
17908         fclose: preserve fflush errors
17909         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
17910         Reported by Jim Meyering.
17911
17912         bootstrap: support a prereq of 'rpcgen -' on RHEL5
17913         * build-aux/bootstrap (check_versions): When no specific version
17914         is required, merely check that the app produces an exit status
17915         that indicates its existence.
17916
17917         maint.mk: drop redundant check
17918         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
17919         the same but better.
17920
17921 2011-05-11  Bruno Haible  <bruno@clisp.org>
17922
17923         fclose: Fix possible link error.
17924         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
17925         unregister_shadow_fd. Improve comments.
17926         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
17927         Eric Blake.
17928
17929 2011-05-11  Jim Meyering  <meyering@redhat.com>
17930
17931         maint.mk: improve "can not" detection and generalize rule name
17932         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
17933         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
17934         Use the same technique as in sc_prohibit_doubled_word, so that
17935         we recognize "can not" also when the words are separated by a newline.
17936         Suggested by Eric Blake.
17937         (perl_filename_lineno_text_): Define.  Factored out of...
17938         (prohibit_doubled_word_): ...here.  Use the new definition.
17939         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
17940         (prohibit_undesirable_word_seq_RE_): New overridable variable.
17941         (ignore_undesirable_word_sequence_RE_): New overridable variable.
17942
17943 2011-05-10  Eric Blake  <eblake@redhat.com>
17944
17945         fclose: avoid double close race when possible
17946         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
17947         all but WINDOWS_SOCKETS.
17948
17949 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17950
17951         openat: correct new comment
17952         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17953
17954 2011-05-10  Jim Meyering  <meyering@redhat.com>
17955
17956         openat: add comments
17957         * lib/openat-proc.c (openat_proc_name): Add comments,
17958         mostly from Eric Blake.
17959
17960 2011-05-09  Eric Blake  <eblake@redhat.com>
17961
17962         openat: reduce syscalls in first probe of /proc
17963         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17964         be a directory.  Simplify the probe for .. bugs.
17965         * modules/openat (Depends-on): Drop same-inode.
17966         Reported by Bastien ROUCARIES.
17967
17968 2011-05-09  Jim Meyering  <meyering@redhat.com>
17969
17970         maint.mk: change semantics/name of tight_scope variables
17971         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17972         Rename variables to align with semantics that make them more useful.
17973
17974         maint.mk: tweak new rule's name not to impinge
17975         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17976         (sc_tight_scope): Use new rule name rather than $@-0.
17977
17978         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17979         * top/maint.mk (sc_tight_scope): New rule.
17980         (sc_tight_scope-0): New rule, ifdef'd out.
17981         (_gl_TS_dir): Default.
17982         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17983         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17984
17985 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17986
17987         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17988         Haible <bruno@clisp.org>.
17989
17990 2011-05-08  Bruno Haible  <bruno@clisp.org>
17991
17992         Comments.
17993         * m4/isnanf.m4: Add comment.
17994         * m4/isnanl.m4: Likewise.
17995
17996 2011-05-08  Bruno Haible  <bruno@clisp.org>
17997
17998         glob: Remove obsolete macro.
17999         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18000
18001 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18002
18003         intprops: Sun C 5.11 supports __typeof__
18004         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18005         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18006         which is new.
18007         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18008
18009         intprops: switch to usual gnulib indenting and naming
18010         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18011         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18012
18013         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18014
18015 2011-05-08  Jim Meyering  <meyering@redhat.com>
18016
18017         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18018         * top/maint.mk (release-prep): Use make's --no-print-directory
18019         option when generating the announcement.  This eliminates the
18020         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18021         generated announcement template.
18022
18023 2011-05-08  Bruno Haible  <bruno@clisp.org>
18024
18025         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18026         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18027         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18028
18029 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18030
18031         ignore-value, verify: Omit include files from lib_SOURCES.
18032         * modules/ignore-value, modules/verify (Makefile.am):
18033         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18034         that leads Automake to duplicate use of am__objects_... variables
18035         in Makefile.in.  See
18036         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18037
18038 2011-05-07  Bruno Haible  <bruno@clisp.org>
18039
18040         fclose: Simplify autoconf macro.
18041         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18042         defined.
18043
18044 2011-05-07  Bruno Haible  <bruno@clisp.org>
18045
18046         canonicalize-lgpl: Fix autoconf macro ordering bug.
18047         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18048         gl_STDLIB_H_DEFAULTS.
18049
18050 2011-05-06  Eric Blake  <eblake@redhat.com>
18051
18052         maintainer-makefile: make sc_po_check easier to tune
18053         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18054         to probe for strings, such as an alternate location for gnulib.
18055
18056         fclose: guarantee behavior on seekable stdin
18057         * modules/fclose (Depends-on): Add fflush.
18058         * doc/posix-functions/fclose.texi (fclose): Document this.
18059         * tests/test-fclose.c (main): Make test for this unconditional.
18060
18061 2011-05-06  Bruno Haible  <bruno@clisp.org>
18062
18063         fflush, fpurge: Relicense under LGPLv2+.
18064         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18065         * modules/fpurge (License): Likewise.
18066         With permission from Eric Blake and Jim Meyering.
18067         Suggested by Eric Blake.
18068
18069 2011-05-06  Karl Berry  <karl@gnu.org>
18070
18071         * MODULES.html.sh (func_all_modules): remove exit.
18072
18073 2011-05-06  Jim Meyering  <meyering@redhat.com>
18074
18075         maint.mk: use info-gnu@ as the default only for a stable release
18076         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18077         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18078         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18079         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18080
18081 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18082
18083         assert-h: new module, which supports C1X-style static_assert
18084         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18085         * lib/verify.h: Revamp so that this can be copied into assert.h,
18086         while retaining the ability to use it standalone as before.
18087         Rename private identifiers so as not to encroach on the
18088         standard C namespace, since this is now used by assert.h.
18089         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18090         the old verify_true.
18091         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18092         the old verify_true.  Use _GL_VERIFY_TYPE.
18093         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18094         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18095         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18096         defined when this file is copied into the replacement assert.h.
18097         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18098         and _Static_assert is not built in.
18099         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18100         defined, and use the new macros mentioned above.
18101         * doc/posix-headers/assert.texi: Document this.
18102
18103 2011-05-05  Bruno Haible  <bruno@clisp.org>
18104
18105         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18106         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18107         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18108         gl_REPLACE_FCLOSE here.
18109         * modules/fflush (Depends-on): Remove fclose.
18110         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18111         combination with module 'fclose'.
18112
18113 2011-05-05  Bruno Haible  <bruno@clisp.org>
18114
18115         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18116         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18117         gl_FUNC_FFLUSH.
18118         (gl_FUNC_FFLUSH): Use it.
18119         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18121         gl_REPLACE_FSEEKO here.
18122
18123 2011-05-05  Bruno Haible  <bruno@clisp.org>
18124
18125         tzset: Relicense under LGPL.
18126         * modules/tzset (License): Change to LGPL.
18127         No agreement needed; it's a no-op.
18128
18129         strtoimax, strtoumax: Relicense under LGPL.
18130         * modules/strtoimax (License): Change to LGPL.
18131         * modules/strtoumax (License): Likewise.
18132         With permission from Jim Meyering, Paul Eggert:
18133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18135
18136         getgroups: Relicense under LGPL.
18137         * modules/getgroups (License): Change to LGPL.
18138         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18142
18143         nanosleep: Relicense under LGPL.
18144         * modules/nanosleep (License): Change to LGPL.
18145         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18146         Haible:
18147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18148         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18151
18152         futimens: Relicense under LGPL.
18153         * modules/futimens (License): Change to LGPL.
18154         With permission from Eric Blake:
18155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18156
18157         fflush: Relicense under LGPL.
18158         * modules/fflush (License): Change to LGPL.
18159         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18162         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18163
18164         tmpfile: Relicense under LGPL.
18165         * modules/tmpfile (License): Change to LGPL.
18166         With permission from Ben Pfaff:
18167         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18168
18169         isfinite: Relicense under LGPL.
18170         * modules/isfinite (License): Change to LGPL.
18171         With permission from Ben Pfaff, Bruno Haible:
18172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18174
18175         acosl..tanl: Relicense under LGPL.
18176         * modules/acosl (License): Change to LGPL.
18177         * modules/asinl (License): Likewise.
18178         * modules/atanl (License): Likewise.
18179         * modules/cosl (License): Likewise.
18180         * modules/expl (License): Likewise.
18181         * modules/logl (License): Likewise.
18182         * modules/sinl (License): Likewise.
18183         * modules/sqrtl (License): Likewise.
18184         * modules/tanl (License): Likewise.
18185         Source code originally from glibc and Paolo Bonzini. Agreements:
18186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18188
18189 2011-05-05  Bruno Haible  <bruno@clisp.org>
18190
18191         signal: Define sighandler_t.
18192         * lib/signal.in.h (sighandler_t): New type.
18193         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18194         whether sighandler_t is defined.
18195         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18196         * modules/signal (Depends-on): Add extensions.
18197         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18198         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18199         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18200
18201 2011-05-05  Eric Blake  <eblake@redhat.com>
18202
18203         maint: remove useless REPLACE_*_H macros
18204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18205         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18206         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18207         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18208         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18209         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18210         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18211         * m4/btowc.m4: Update callers.
18212         * m4/dirfd.m4: Likewise.
18213         * m4/duplocale.m4: Likewise.
18214         * m4/fchdir.m4: Likewise.
18215         * m4/fdopendir.m4: Likewise.
18216         * m4/inet_ntop.m4: Likewise.
18217         * m4/inet_pton.m4: Likewise.
18218         * m4/ioctl.m4: Likewise.
18219         * m4/mbrlen.m4: Likewise.
18220         * m4/mbrtowc.m4: Likewise.
18221         * m4/mbsinit.m4: Likewise.
18222         * m4/mbsnrtowcs.m4: Likewise.
18223         * m4/mbsrtowcs.m4: Likewise.
18224         * m4/poll.m4: Likewise.
18225         * m4/setlocale.m4: Likewise.
18226         * m4/wcrtomb.m4: Likewise.
18227         * m4/wcsnrtombs.m4: Likewise.
18228         * m4/wcsrtombs.m4: Likewise.
18229         * m4/wctob.m4: Likewise.
18230         * m4/wcwidth.m4: Likewise.
18231         * modules/posix_spawn: Likewise.
18232         * modules/posix_spawn_file_actions_addclose: Likewise.
18233         * modules/posix_spawn_file_actions_adddup2: Likewise.
18234         * modules/posix_spawn_file_actions_addopen: Likewise.
18235         * modules/posix_spawn_file_actions_destroy: Likewise.
18236         * modules/posix_spawn_file_actions_init: Likewise.
18237         * modules/posix_spawnattr_destroy: Likewise.
18238         * modules/posix_spawnattr_getflags: Likewise.
18239         * modules/posix_spawnattr_getpgroup: Likewise.
18240         * modules/posix_spawnattr_getschedparam: Likewise.
18241         * modules/posix_spawnattr_getschedpolicy: Likewise.
18242         * modules/posix_spawnattr_getsigdefault: Likewise.
18243         * modules/posix_spawnattr_getsigmask: Likewise.
18244         * modules/posix_spawnattr_init: Likewise.
18245         * modules/posix_spawnattr_setflags: Likewise.
18246         * modules/posix_spawnattr_setpgroup: Likewise.
18247         * modules/posix_spawnattr_setschedparam: Likewise.
18248         * modules/posix_spawnattr_setschedpolicy: Likewise.
18249         * modules/posix_spawnattr_setsigdefault: Likewise.
18250         * modules/posix_spawnattr_setsigmask: Likewise.
18251         * modules/posix_spawnp: Likewise.
18252
18253 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18254
18255         Add option to do-release-commit-and-tag to specify branch.
18256         * build-aux/do-release-commit-and-tag: Add --branch.
18257
18258 2011-05-03  Bruno Haible  <bruno@clisp.org>
18259
18260         Avoid unnecessary compilation units, through conditional dependencies.
18261         * modules/accept (Depends-on): Add conditions to the dependencies.
18262         * modules/acosl (Depends-on): Likewise.
18263         * modules/argz (Depends-on): Likewise.
18264         * modules/asinl (Depends-on): Likewise.
18265         * modules/atanl (Depends-on): Likewise.
18266         * modules/atoll (Depends-on): Likewise.
18267         * modules/bind (Depends-on): Likewise.
18268         * modules/btowc (Depends-on): Likewise.
18269         * modules/canonicalize-lgpl (Depends-on): Likewise.
18270         * modules/ceil (Depends-on): Likewise.
18271         * modules/ceilf (Depends-on): Likewise.
18272         * modules/ceill (Depends-on): Likewise.
18273         * modules/chdir-long (Depends-on): Likewise.
18274         * modules/chown (Depends-on): Likewise.
18275         * modules/close (Depends-on): Likewise.
18276         * modules/connect (Depends-on): Likewise.
18277         * modules/cosl (Depends-on): Likewise.
18278         * modules/dirfd (Depends-on): Likewise.
18279         * modules/dprintf (Depends-on): Likewise.
18280         * modules/dprintf-posix (Depends-on): Likewise.
18281         * modules/error (Depends-on): Likewise.
18282         * modules/euidaccess (Depends-on): Likewise.
18283         * modules/expl (Depends-on): Likewise.
18284         * modules/faccessat (Depends-on): Likewise.
18285         * modules/fchdir (Depends-on): Likewise.
18286         * modules/fclose (Depends-on): Likewise.
18287         * modules/fcntl (Depends-on): Likewise.
18288         * modules/fdopendir (Depends-on): Likewise.
18289         * modules/fflush (Depends-on): Likewise.
18290         * modules/floor (Depends-on): Likewise.
18291         * modules/floorf (Depends-on): Likewise.
18292         * modules/floorl (Depends-on): Likewise.
18293         * modules/fnmatch (Depends-on): Likewise.
18294         * modules/fopen (Depends-on): Likewise.
18295         * modules/fprintf-posix (Depends-on): Likewise.
18296         * modules/frexp (Depends-on): Likewise.
18297         * modules/frexp-nolibm (Depends-on): Likewise.
18298         * modules/frexpl (Depends-on): Likewise.
18299         * modules/frexpl-nolibm (Depends-on): Likewise.
18300         * modules/fseek (Depends-on): Likewise.
18301         * modules/fsusage (Depends-on): Likewise.
18302         * modules/ftell (Depends-on): Likewise.
18303         * modules/ftello (Depends-on): Likewise.
18304         * modules/futimens (Depends-on): Likewise.
18305         * modules/getcwd (Depends-on): Likewise.
18306         * modules/getcwd-lgpl (Depends-on): Likewise.
18307         * modules/getdelim (Depends-on): Likewise.
18308         * modules/getdomainname (Depends-on): Likewise.
18309         * modules/getgroups (Depends-on): Likewise.
18310         * modules/gethostname (Depends-on): Likewise.
18311         * modules/getline (Depends-on): Likewise.
18312         * modules/getlogin_r (Depends-on): Likewise.
18313         * modules/getopt-posix (Depends-on): Likewise.
18314         * modules/getpeername (Depends-on): Likewise.
18315         * modules/getsockname (Depends-on): Likewise.
18316         * modules/getsockopt (Depends-on): Likewise.
18317         * modules/getsubopt (Depends-on): Likewise.
18318         * modules/getusershell (Depends-on): Likewise.
18319         * modules/glob (Depends-on): Likewise.
18320         * modules/grantpt (Depends-on): Likewise.
18321         * modules/iconv_open (Depends-on): Likewise.
18322         * modules/iconv_open-utf (Depends-on): Likewise.
18323         * modules/inet_ntop (Depends-on): Likewise.
18324         * modules/inet_pton (Depends-on): Likewise.
18325         * modules/ioctl (Depends-on): Likewise.
18326         * modules/isapipe (Depends-on): Likewise.
18327         * modules/isfinite (Depends-on): Likewise.
18328         * modules/isinf (Depends-on): Likewise.
18329         * modules/lchown (Depends-on): Likewise.
18330         * modules/ldexpl (Depends-on): Likewise.
18331         * modules/link (Depends-on): Likewise.
18332         * modules/linkat (Depends-on): Likewise.
18333         * modules/listen (Depends-on): Likewise.
18334         * modules/logl (Depends-on): Likewise.
18335         * modules/lstat (Depends-on): Likewise.
18336         * modules/mbrlen (Depends-on): Likewise.
18337         * modules/mbrtowc (Depends-on): Likewise.
18338         * modules/mbsinit (Depends-on): Likewise.
18339         * modules/mbsnrtowcs (Depends-on): Likewise.
18340         * modules/mbsrtowcs (Depends-on): Likewise.
18341         * modules/mbtowc (Depends-on): Likewise.
18342         * modules/memcmp (Depends-on): Likewise.
18343         * modules/mkdir (Depends-on): Likewise.
18344         * modules/mkdtemp (Depends-on): Likewise.
18345         * modules/mkfifo (Depends-on): Likewise.
18346         * modules/mkfifoat (Depends-on): Likewise.
18347         * modules/mknod (Depends-on): Likewise.
18348         * modules/mkostemp (Depends-on): Likewise.
18349         * modules/mkostemps (Depends-on): Likewise.
18350         * modules/mkstemp (Depends-on): Likewise.
18351         * modules/mkstemps (Depends-on): Likewise.
18352         * modules/mktime (Depends-on): Likewise.
18353         * modules/nanosleep (Depends-on): Likewise.
18354         * modules/open (Depends-on): Likewise.
18355         * modules/openat (Depends-on): Likewise.
18356         * modules/perror (Depends-on): Likewise.
18357         * modules/poll (Depends-on): Likewise.
18358         * modules/popen (Depends-on): Likewise.
18359         * modules/posix_spawn (Depends-on): Likewise.
18360         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18361         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18362         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18363         * modules/posix_spawnp (Depends-on): Likewise.
18364         * modules/pread (Depends-on): Likewise.
18365         * modules/printf-posix (Depends-on): Likewise.
18366         * modules/ptsname (Depends-on): Likewise.
18367         * modules/putenv (Depends-on): Likewise.
18368         * modules/pwrite (Depends-on): Likewise.
18369         * modules/readline (Depends-on): Likewise.
18370         * modules/readlink (Depends-on): Likewise.
18371         * modules/readlinkat (Depends-on): Likewise.
18372         * modules/recv (Depends-on): Likewise.
18373         * modules/recvfrom (Depends-on): Likewise.
18374         * modules/regex (Depends-on): Likewise.
18375         * modules/remove (Depends-on): Likewise.
18376         * modules/rename (Depends-on): Likewise.
18377         * modules/renameat (Depends-on): Likewise.
18378         * modules/rmdir (Depends-on): Likewise.
18379         * modules/round (Depends-on): Likewise.
18380         * modules/roundf (Depends-on): Likewise.
18381         * modules/roundl (Depends-on): Likewise.
18382         * modules/rpmatch (Depends-on): Likewise.
18383         * modules/select (Depends-on): Likewise.
18384         * modules/send (Depends-on): Likewise.
18385         * modules/sendto (Depends-on): Likewise.
18386         * modules/setenv (Depends-on): Likewise.
18387         * modules/setlocale (Depends-on): Likewise.
18388         * modules/setsockopt (Depends-on): Likewise.
18389         * modules/shutdown (Depends-on): Likewise.
18390         * modules/sigaction (Depends-on): Likewise.
18391         * modules/signbit (Depends-on): Likewise.
18392         * modules/sigprocmask (Depends-on): Likewise.
18393         * modules/sinl (Depends-on): Likewise.
18394         * modules/sleep (Depends-on): Likewise.
18395         * modules/snprintf (Depends-on): Likewise.
18396         * modules/snprintf-posix (Depends-on): Likewise.
18397         * modules/socket (Depends-on): Likewise.
18398         * modules/sprintf-posix (Depends-on): Likewise.
18399         * modules/sqrtl (Depends-on): Likewise.
18400         * modules/stat (Depends-on): Likewise.
18401         * modules/strchrnul (Depends-on): Likewise.
18402         * modules/strdup-posix (Depends-on): Likewise.
18403         * modules/strerror (Depends-on): Likewise.
18404         * modules/strerror_r-posix (Depends-on): Likewise.
18405         * modules/strndup (Depends-on): Likewise.
18406         * modules/strnlen (Depends-on): Likewise.
18407         * modules/strptime (Depends-on): Likewise.
18408         * modules/strsep (Depends-on): Likewise.
18409         * modules/strsignal (Depends-on): Likewise.
18410         * modules/strstr-simple (Depends-on): Likewise.
18411         * modules/strtod (Depends-on): Likewise.
18412         * modules/strtoimax (Depends-on): Likewise.
18413         * modules/strtok_r (Depends-on): Likewise.
18414         * modules/strtoumax (Depends-on): Likewise.
18415         * modules/symlink (Depends-on): Likewise.
18416         * modules/symlinkat (Depends-on): Likewise.
18417         * modules/tanl (Depends-on): Likewise.
18418         * modules/tcgetsid (Depends-on): Likewise.
18419         * modules/tmpfile (Depends-on): Likewise.
18420         * modules/trunc (Depends-on): Likewise.
18421         * modules/truncf (Depends-on): Likewise.
18422         * modules/truncl (Depends-on): Likewise.
18423         * modules/uname (Depends-on): Likewise.
18424         * modules/unlink (Depends-on): Likewise.
18425         * modules/unlockpt (Depends-on): Likewise.
18426         * modules/unsetenv (Depends-on): Likewise.
18427         * modules/usleep (Depends-on): Likewise.
18428         * modules/utimensat (Depends-on): Likewise.
18429         * modules/vasprintf (Depends-on): Likewise.
18430         * modules/vdprintf (Depends-on): Likewise.
18431         * modules/vdprintf-posix (Depends-on): Likewise.
18432         * modules/vfprintf-posix (Depends-on): Likewise.
18433         * modules/vprintf-posix (Depends-on): Likewise.
18434         * modules/vsnprintf (Depends-on): Likewise.
18435         * modules/vsnprintf-posix (Depends-on): Likewise.
18436         * modules/vsprintf-posix (Depends-on): Likewise.
18437         * modules/wcrtomb (Depends-on): Likewise.
18438         * modules/wcscasecmp (Depends-on): Likewise.
18439         * modules/wcscspn (Depends-on): Likewise.
18440         * modules/wcsdup (Depends-on): Likewise.
18441         * modules/wcsncasecmp (Depends-on): Likewise.
18442         * modules/wcsnrtombs (Depends-on): Likewise.
18443         * modules/wcspbrk (Depends-on): Likewise.
18444         * modules/wcsrtombs (Depends-on): Likewise.
18445         * modules/wcsspn (Depends-on): Likewise.
18446         * modules/wcsstr (Depends-on): Likewise.
18447         * modules/wcstok (Depends-on): Likewise.
18448         * modules/wcswidth (Depends-on): Likewise.
18449         * modules/wctob (Depends-on): Likewise.
18450         * modules/wctomb (Depends-on): Likewise.
18451         * modules/wctype (Depends-on): Likewise.
18452         * modules/wcwidth (Depends-on): Likewise.
18453         * modules/write (Depends-on): Likewise.
18454
18455 2011-05-03  Bruno Haible  <bruno@clisp.org>
18456
18457         Support for conditional dependencies.
18458         * doc/gnulib.texi (Module description): Document the syntax of
18459         conditional dependencies.
18460         * gnulib-tool: New option --conditional-dependencies.
18461         (func_usage): Document it.
18462         (cond_dependencies): New variable.
18463         (func_get_automake_snippet_conditional,
18464         func_get_automake_snippet_unconditional): New functions, extracted from
18465         func_get_automake_snippet.
18466         (func_get_automake_snippet): Use them.
18467         (sed_first_32_chars): New variable.
18468         (func_module_shellfunc_name): New function.
18469         (func_module_shellvar_name): New function.
18470         (func_module_conditional_name): New function.
18471         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18472         func_cond_module_condition): New functions.
18473         (func_modules_transitive_closure): Add support for conditional
18474         dependencies.
18475         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18476         conditional automake snippet in an automake conditional.
18477         (func_emit_autoconf_snippets): Emit shell functions that contain the
18478         code for conditional modules.
18479         (func_import, func_create_testdir): Update specification.
18480
18481 2011-05-03  Eric Blake  <eblake@redhat.com>
18482
18483         test-getaddrinfo: report error information
18484         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18485
18486 2011-05-03  Jim Meyering  <meyering@redhat.com>
18487
18488         bootstrap: avoid build failure when $GZIP is set
18489         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18490         program name.  If defined at all, it is supposed to list gzip options.
18491         Reported by Alan Curry in http://debbugs.gnu.org/8609
18492
18493 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18494
18495         readme-release: new module with release instructions
18496         * modules/readme-release: New module.
18497         * top/README-release: New file, from coreutils, grep, diffutils.
18498         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18499
18500 2011-05-02  Eric Blake  <eblake@redhat.com>
18501
18502         fflush: also replace fclose when fixing fflush
18503         * modules/fflush (Depends-on): Add fclose.
18504         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18505         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18506         memstreams with no backing fd.
18507         * doc/posix-functions/fclose.texi (fclose): Document the use of
18508         fflush module to fix the bug.
18509         * tests/test-fclose.c (main): Relax test when fclose is used in
18510         isolation.
18511
18512         fclose: add some tests
18513         * modules/fclose-tests: New test module.
18514         * tests/test-fclose.c: New file.
18515         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18516
18517         fclose: reduced dependencies
18518         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18519         simpler lseek.
18520         * lib/fclose.c (rpl_fclose): Likewise.
18521         Reported by Simon Josefsson.
18522
18523         exit: drop remaining clients
18524         * modules/argmatch (Depends-on): Replace exit with stdlib.
18525         * modules/copy-file (Depends-on): Likewise.
18526         * modules/execute (Depends-on): Likewise.
18527         * modules/exitfail (Depends-on): Likewise.
18528         * modules/obstack (Depends-on): Likewise.
18529         * modules/pagealign_alloc (Depends-on): Likewise.
18530         * modules/pipe-filter-gi (Depends-on): Likewise.
18531         * modules/pipe-filter-ii (Depends-on): Likewise.
18532         * modules/savewd (Depends-on): Likewise.
18533         * modules/spawn-pipe (Depends-on): Likewise.
18534         * modules/wait-process (Depends-on): Likewise.
18535         * modules/xsetenv (Depends-on): Likewise.
18536         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18537         * modules/git-merge-changelog (Depends-on): Likewise.
18538         * modules/long-options (Depends-on): Likewise.
18539         * modules/pt_chown (Depends-on): Likewise.
18540         * modules/sysexits (Depends-on): Likewise.
18541
18542         freading: relax license from LGPLv3+ to LGPLv2+
18543         * modules/freading (License): Relax LGPL version.
18544
18545 2011-05-02  Bruno Haible  <bruno@clisp.org>
18546
18547         fchdir: Remove unused dependencies.
18548         * modules/fchdir (Depends-on): Remove include_next.
18549
18550 2011-05-02  Bruno Haible  <bruno@clisp.org>
18551
18552         gnulib-tool: Refactor.
18553         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18554         from func_emit_autoconf_snippets.
18555         (func_emit_autoconf_snippets): Use it.
18556
18557 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18558
18559         * NEWS: Document removal of 'exit'.
18560         * modules/exit: Remove file.
18561
18562 2011-05-01  Bruno Haible  <bruno@clisp.org>
18563
18564         Update DEPENDENCIES.
18565         * DEPENDENCIES (gettext): Recommend the newest release.
18566         Reported by Simon Josefsson.
18567
18568 2011-05-01  Bruno Haible  <bruno@clisp.org>
18569
18570         gnulib-tool: Reduce code duplication.
18571         * gnulib-tool (func_emit_autoconf_snippets): New function.
18572         (func_import, func_create_testdir): Use it.
18573
18574 2011-04-30  Eric Blake  <eblake@redhat.com>
18575
18576         fclose: don't fail on non-seekable input stream
18577         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18578         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18579         since fflush is allowed to fail in that case.
18580
18581 2011-04-30  Bruno Haible  <bruno@clisp.org>
18582
18583         dup3: cleanup
18584         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18585
18586 2011-04-30  Bruno Haible  <bruno@clisp.org>
18587
18588         netdb: Make it work in C++ mode.
18589         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18590         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18591         module.
18592         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18593         gl_MODULE_INDICATOR_FOR_TESTS.
18594         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18595         * modules/netdb-c++-tests: New file.
18596         * tests/test-netdb-c++.cc: New file.
18597
18598 2011-04-30  Bruno Haible  <bruno@clisp.org>
18599
18600         New modules 'vfscanf', 'vscanf'.
18601         * modules/vfscanf: New file.
18602         * modules/vscanf: New file.
18603         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18604         here.
18605         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18606         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18607
18608 2011-04-30  Bruno Haible  <bruno@clisp.org>
18609
18610         passfd: Add comments.
18611         * lib/passfd.c: Add comments about platforms.
18612
18613 2011-04-30  Bruno Haible  <bruno@clisp.org>
18614
18615         sys_uio: Make <sys/uio.h> self-contained.
18616         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18617         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18618
18619 2011-04-30  Bruno Haible  <bruno@clisp.org>
18620
18621         sys_socket: Ensure 'struct iovec' definition.
18622         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18623         <sys/socket.h>.
18624         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18625
18626 2011-04-30  Bruno Haible  <bruno@clisp.org>
18627
18628         sys_uio: Protect definition of 'struct iovec'.
18629         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18630         it as a C struct.
18631
18632 2011-04-30  Bruno Haible  <bruno@clisp.org>
18633
18634         manywarnings: fix indentation
18635         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18636
18637 2011-04-30  Pádraig Brady <P@draigBrady.com>
18638
18639         manywarnings: add -Wno-missing-field-initializers if needed.
18640         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18641         option if it's needed to allow initialization with { 0, }
18642
18643 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18644
18645         announce-gen: cosmetic improvement
18646         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18647
18648 2011-04-29  Jim Meyering  <meyering@redhat.com>
18649
18650         vc-list-files: indent with spaces, not TABs
18651         * build-aux/vc-list-files: Convert leading TABs to spaces,
18652         to match the style of most other files in gnulib.
18653
18654         announce-gen: indent with spaces, not TABs
18655         * build-aux/announce-gen: Convert all TABs to spaces, to match
18656         the style of most other files in gnulib.
18657
18658 2011-04-29  Eric Blake  <eblake@redhat.com>
18659
18660         quotearg: avoid uninitialized variable use
18661         * lib/quotearg.c (quoting_options_from_style): Initialize
18662         remaining fields, and ensure that custom styles are only used via
18663         quoting_options rather than quoting_style.
18664
18665 2011-04-29  Jim Meyering  <meyering@redhat.com>
18666
18667         maint.mk: remove unused VC-tag variable
18668         * top/maint.mk (VC-tag): Remove unused variable.
18669
18670 2011-04-29  Bruno Haible  <bruno@clisp.org>
18671
18672         netdb: fix gai_strerror replacements
18673         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18674         * modules/netdb: Substitute it.
18675
18676 2011-04-29  Jim Meyering  <meyering@redhat.com>
18677
18678         test-getcwd.c: avoid new set-but-not-used warning
18679         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18680         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18681         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18682         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18683
18684         test-hash.c: avoid a new shadowing warning
18685         * tests/test-hash.c (main): Don't shadow "dup".
18686
18687 2011-04-28  Eric Blake  <eblake@redhat.com>
18688
18689         getaddrinfo: fix gai_strerror signature
18690         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18691         and work around mingw with UNICODE defined.
18692         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18693         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18694         * modules/netdb (Makefile.am): Substitute it.
18695         * lib/netdb.in.h (gai_strerror): Declare replacement.
18696         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18697         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18698         the fix.
18699
18700         getsockopt: avoid compiler warning
18701         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18702         Reported by Matthias Bolte.
18703
18704         tests: drop unused link dependency
18705         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18706         * modules/dirent-safer-tests (Makefile.am): Likewise.
18707         * modules/fdopendir-tests (Makefile.am): Likewise.
18708         * modules/mkfifoat-tests (Makefile.am): Likewise.
18709         * modules/openat-safer-tests (Makefile.am): Likewise.
18710         * modules/openat-tests (Makefile.am): Likewise.
18711         * modules/readlinkat-tests (Makefile.am): Likewise.
18712         * modules/symlinkat-tests (Makefile.am): Likewise.
18713         * modules/linkat-tests (Makefile.am): Likewise.
18714         (Depends-on): Switch to filenamecat-lgpl.
18715         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18716         LIBINTL.
18717         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18718         * tests/test-linkat.c (main): Don't require xalloc.
18719
18720         hash, mgetgroups: drop xalloc dependency
18721         * lib/hash.c (includes): Adjust includes.
18722         * lib/mgetgroups.c (includes): Likewise.
18723         (xgetgroups): Move...
18724         * lib/xgetgroups.c: ...to new file.
18725         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18726         * modules/xgetgroups: New file, split from...
18727         * modules/mgetgroups: ...here.
18728         (Depends-on): Add xalloc-oversized.
18729         * modules/hash (Depends-on): Likewise.
18730         * modules/hash-tests (Depends-on): Drop xalloc.
18731         (test_hash_LDADD): Drop unused library.
18732         * tests/test-hash.c (main): Break xalloc dependency.
18733         (includes): Drop unused include.
18734
18735         xalloc-oversized: new module
18736         * modules/xalloc-oversized: New module.
18737         * modules/xalloc (Depends-on): Add it.
18738         * lib/xalloc.h (xalloc_oversized): Move...
18739         * lib/xalloc-oversized.h: ...into new file.
18740
18741         utimecmp: drop dependency on xmalloc
18742         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18743         due to memory pressure.
18744         * modules/utimecmp (Depends-on): Drop xalloc.
18745
18746 2011-04-27  Eric Blake  <eblake@redhat.com>
18747
18748         getcwd: fix mingw bugs
18749         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18750         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18751         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18752
18753 2011-04-27  Bruno Haible  <bruno@clisp.org>
18754
18755         mkstemps: Ensure declaration on MacOS X 10.5.
18756         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18757         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18758         MacOS X.
18759
18760 2011-04-27  Bruno Haible  <bruno@clisp.org>
18761
18762         mkstemp: More documentation.
18763         * doc/posix-functions/mkstemp.texi: Document header file problem on
18764         MacOS X.
18765
18766 2011-04-27  Bruno Haible  <bruno@clisp.org>
18767
18768         mkstemp: Tweak configure message when cross-compiling.
18769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18770         result as a guess.
18771
18772 2011-04-27  Bruno Haible  <bruno@clisp.org>
18773
18774         clean-temp: Clarify what it does.
18775         * lib/clean-temp.h: Add more comments.
18776         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18777         module.
18778         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18779         * doc/glibc-functions/mkstemps.texi: Likewise.
18780         * doc/glibc-functions/mkostemps.texi: Likewise.
18781
18782 2011-04-27  Eric Blake  <eblake@redhat.com>
18783
18784         fchdir: avoid extra chdir and fix test
18785         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18786         getcwd-lgpl.
18787         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18788         have to be canonical.
18789         (canonicalize_file_name): Drop unused macro.
18790         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18791
18792         filenamecat-lgpl: fix licence
18793         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18794         when it was first created.
18795
18796         linkat, renameat: add missing dependency
18797         * modules/linkat (Depends-on): Require getcwd-lgpl.
18798         * modules/renameat (Depends-on): Likewise.
18799
18800         tests: reduce dependencies
18801         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18802         * tests/test-renameat.c (main): Likewise.
18803         * modules/linkat-tests (Depends-on): Relax dependency.
18804         * modules/renameat-tests (Depends-on): Likewise.
18805         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18806         dependency explicit.
18807
18808         save-cwd: reduce default dependency
18809         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18810         * lib/save-cwd.c: Update comments.
18811         * NEWS: Document the semantic change.
18812
18813         getcwd: enhance tests
18814         * tests/test-getcwd-lgpl.c: New file, taken from...
18815         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18816         repeat long path stress tests from m4 probe.
18817         * modules/getcwd-lgpl-tests: New module.
18818         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
18819         * m4/getcwd-abort-bug.m4: Update comment.
18820         * m4/getcwd-path-max.m4: Likewise.
18821
18822         getcwd-lgpl: new module
18823         * modules/getcwd-lgpl: New module.
18824         * lib/getcwd-lgpl.c: New file.
18825         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18826         * MODULES.html.sh (lacking POSIX:2008): Likewise.
18827         * modules/getcwd (configure.ac): Set C witness.
18828         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
18829
18830         getcwd: tweak comments
18831         * m4/getcwd-abort-bug.m4: Fix comments.
18832         * m4/getcwd-path-max.m4: Likewise.
18833         * m4/getcwd.m4: Likewise.
18834
18835 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18836         and Eric Blake  <eblake@redhat.com>
18837
18838         mkstemp: replace if system version uses wrong permissions
18839         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
18840         read/write mode bits set in file created by mkstemp.
18841         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
18842
18843 2011-04-27  Eric Blake  <eblake@redhat.com>
18844
18845         passfd: avoid compiler warning
18846         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
18847         Reported by Laine Stump.
18848
18849 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
18850
18851         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
18852         required by the NetBSD (and perhaps other 4.4BSD derived) join.
18853
18854 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
18855         and Eric Blake  <eblake@redhat.com>
18856
18857         mkstemp: mention clean-temp module
18858         * lib/mkstemp.c: Add comment.
18859         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
18860
18861 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
18862
18863         inttypes: also provide default values for 32-bit tests
18864         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
18865         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
18866
18867 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
18868
18869         strtoumax: remove dependency on strtoimax
18870         This is like the strtoull change of yesterday.
18871         * modules/strtoumax (Files): Add lib/strtoimax.c.
18872         (Depends-on): Remove strtoimax and add verify.
18873
18874         inttypes-incomplete: new module
18875         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
18876         all but the PRI* and SCN* parts of gl_INTTYPES_H.
18877         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
18878         of gl_INTTYPES_H.
18879         (gl_INTTYPES_H): Rewrite in terms of these new macros.
18880         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
18881         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
18882         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
18883         * modules/strtoumax, modules/xstrtol (Depends-on):
18884         Depend on inttypes-incomplete, not inttypes.
18885         * modules/inttypes-incomplete: New module, containing the contents
18886         of the old modules/inttypes module, except that the Files: section
18887         omits m4/inttypes-pri.m4, and the configure.ac section invokes
18888         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
18889         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
18890         (Depends-on): Depend only on inttypes-incomplete.
18891         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
18892
18893         inttypes: omit now-redundant strtoimax and strtoumax work
18894         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
18895         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
18896
18897         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
18898         This supports apps that need pointers to strtoimax and strtoumax,
18899         and ports to HP-UX 11.00 64.bit, which has macros that expand to
18900         nonexistent functions.  See
18901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
18902         et seq.
18903         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
18904         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
18905         a macro.
18906         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18907
18908 2011-04-25  Simon Josefsson  <simon@josefsson.org>
18909
18910         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
18911
18912 2011-04-25  Bruno Haible  <bruno@clisp.org>
18913
18914         strtol, strtoul: Mark modules as obsolete.
18915         * modules/strtol (Status, Notice): New sections.
18916         * modules/strtoul (Status, Notice): New sections.
18917
18918 2011-04-25  Bruno Haible  <bruno@clisp.org>
18919
18920         strtod: Remove check for strtod, unless supporting old platforms.
18921         * modules/strtod-obsolete: New file.
18922         * m4/strtod-obsolete.m4: New file.
18923         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
18924         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
18925         * modules/strtod (Depends-on): Add strtod-obsolete.
18926         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
18927
18928 2011-04-25  Bruno Haible  <bruno@clisp.org>
18929
18930         strcase: Make module obsolete.
18931         * modules/strcase (Status, Notice): New sections.
18932
18933 2011-04-25  Bruno Haible  <bruno@clisp.org>
18934
18935         dup2: Remove check for dup2, unless supporting old obsolete platforms.
18936         * modules/dup2-obsolete: New file.
18937         * m4/dup2-obsolete.m4: New file.
18938         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
18939         gl_FUNC_DUP2_OBSOLETE is not also defined.
18940         * modules/dup2 (Depends-on): Add dup2-obsolete.
18941         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
18942
18943 2011-04-25  Bruno Haible  <bruno@clisp.org>
18944
18945         strnlen: Avoid memchr related link error on old obsolete platforms.
18946         * modules/memchr-obsolete: New file.
18947         * m4/memchr-obsolete.m4: New file.
18948         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18949         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18950         * modules/memchr (Depends-on): Add memchr-obsolete.
18951         * modules/strnlen (Depends-on): Likewise.
18952         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18953
18954 2011-04-25  Jim Meyering  <meyering@redhat.com>
18955
18956         maint.mk: makefile_at_at_check extend and clean up
18957         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18958         in addition to */Makefile.am.
18959         Exempt legitimate uses of @VAR@ notation, e.g.,
18960         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18961         Remove obsolete coreutils-specific comment.
18962         Prompted by discussion here:
18963         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18964
18965 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18966
18967         strtoul: remove dependency on strtol
18968         This is so that 'configure' need not check for strtol merely because
18969         the application needs strtoul.
18970         * modules/strtoul (Files): Add lib/strtol.c.
18971         (Depends-on): Remove strtol.
18972
18973         strtoull: remove dependency on strtoul
18974         This is like the strtoll change.
18975         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18976         (Depends-on): Remove strtoul.
18977
18978         strtoll: remove dependency on strtol
18979         This is so that 'configure' need not check for strtol merely because
18980         the application needs strtoll.
18981         * modules/strtoll (Files): Add lib/strtol.c.
18982         (Depends-on): Remove strtol.
18983
18984 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18985
18986         inttypes: Move some configure check to module 'imaxdiv'.
18987         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18988         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18989         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18990
18991 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18992
18993         inttypes: Move some configure check to module 'imaxabs'.
18994         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18995         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18996         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18997
18998 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         inttypes: Remove configure tests that are not needed since 2009-12-31.
19001         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19002         gl_cv_header_working_inttypes_h.
19003
19004 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19005
19006         * modules/strnlen (Depends-on): Remove memchr.
19007         The strnlen implementation doesn't need the memchr module's fixes; see
19008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19009
19010         strtol: remove dependency on wchar
19011         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19012         * modules/strtol (Depends-on): Remove wchar.
19013
19014 2011-04-21  Eric Blake  <eblake@redhat.com>
19015
19016         passfd: fix test regression on Linux
19017         * modules/passfd-tests (configure.ac): Correct socketpair check.
19018
19019         passfd: speed up configure and drop unused code
19020         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19021         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19022         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19023         Instead of probing at configure for unix_scm_rights_bsd44_way,
19024         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19025         check to a struct member probe.
19026         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19027         (sendfd, recvfd): Update preprocessor checks.
19028         * modules/passfd (Files): Reflect rename, and drop unused file.
19029         (Depends-on): Drop unused dependency.
19030
19031         passfd: allow compilation on mingw
19032         * modules/sys_socket (Depends-on): Add sys_uio.
19033         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19034         iovec and a minimal struct msghdr.
19035         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19036         * tests/test-sys_socket.c (main): Enhance test.
19037         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19038         guaranteed to provide what we need.
19039         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19040         * modules/passfd-tests (Depends-on): Add sys_wait.
19041         * tests/test-passfd.c (main): Skip test on mingw, for now.
19042         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19043         partial 'struct msghdr' implementation.
19044
19045         sys_uio: new module
19046         * modules/sys_uio: New module.
19047         * modules/sys_uio-tests: Likewise.
19048         * lib/sys_uio.in.h: New file.
19049         * m4/sys_uio_h.m4: Likewise.
19050         * tests/test-sys_uio.c: Likewise.
19051         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19052         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19053
19054 2011-04-20  Jim Meyering  <meyering@redhat.com>
19055
19056         useless-if-before-free: avoid false-positive
19057         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19058         disjunct so that it too requires a terminating ";".  Without that,
19059         this script would identify as useless one statement from gcc that
19060         was not:
19061           if (aligned_ptr)
19062             free (((void **) aligned_ptr) [-1]);
19063
19064 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19065
19066         doc: update users.txt.
19067         * users.txt: Add barcode.
19068
19069 2011-04-19  Bruno Haible  <bruno@clisp.org>
19070
19071         ioctl: Remove link dependency on native Windows.
19072         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19073         (gl_close_fn, gl_ioctl_fn): New types.
19074         (struct fd_hook): Renamed from struct close_hook. Change type of
19075         private_close_fn field. Add private_ioctl_fn field.
19076         (close_hook_fn): Add parameter for primary close method.
19077         (execute_close_hooks, execute_all_close_hooks): Likewise.
19078         (ioctl_hook_fn): New type.
19079         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19080         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19081         argument.
19082         (unregister_fd_hook): Renamed from unregister_close_hook.
19083         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19084         Don't include <unistd.h>.
19085         (close): Remove undef.
19086         (anchor): Update.
19087         (execute_close_hooks): Add argument for primary close method.
19088         (execute_all_close_hooks): Likewise.
19089         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19090         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19091         argument. Allow each argument to be NULL.
19092         (unregister_fd_hook): Renamed from unregister_close_hook.
19093         * lib/close.c (rpl_close): Pass 'close' function pointer to
19094         execute_all_close_hooks.
19095         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19096         (primary_ioctl): New function.
19097         (ioctl): Don't call ioctlsocket here. Instead, call
19098         execute_all_ioctl_hooks.
19099         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19100         close method.
19101         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19102         (fd_sockets_hook): Renamed from close_sockets_hook.
19103         (gl_sockets_startup, gl_sockets_cleanup): Update.
19104         * modules/fd-hook: Renamed from modules/close-hook. Update.
19105         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19106         * modules/sockets (Depends-on): Likewise.
19107         * modules/ioctl (Depends-on): Add fd-hook.
19108         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19109         GNULIB_SOCKET.
19110
19111 2011-04-19  Bruno Haible  <bruno@clisp.org>
19112
19113         Move the support of O_NONBLOCK in open() to the 'open' module.
19114         * modules/nonblocking (Depends-on): Remove 'open'.
19115         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19116         gl_cv_have_open_O_NONBLOCK.
19117         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19118         O_NONBLOCK support.
19119         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19120
19121 2011-04-17  Bruno Haible  <bruno@clisp.org>
19122
19123         pipe2: Simplify code.
19124         * lib/pipe2.c (pipe2): Reduce code duplication.
19125
19126 2011-04-17  Bruno Haible  <bruno@clisp.org>
19127
19128         nonblocking: Add comment.
19129         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19130
19131 2011-04-17  Bruno Haible  <bruno@clisp.org>
19132
19133         nonblocking: Add tests for sockets.
19134         * tests/test-nonblocking-socket.sh: New file.
19135         * tests/test-nonblocking-socket-main.c: New file.
19136         * tests/test-nonblocking-socket-child.c: New file.
19137         * tests/test-nonblocking-socket.h: New file.
19138         * tests/socket-server.h: New file.
19139         * tests/socket-client.h: New file.
19140         * modules/nonblocking-socket-tests: New file.
19141         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19142
19143 2011-04-17  Bruno Haible  <bruno@clisp.org>
19144
19145         nonblocking: Add tests for pipes.
19146         * tests/test-nonblocking-pipe.sh: New file.
19147         * tests/test-nonblocking-pipe-main.c: New file.
19148         * tests/test-nonblocking-pipe-child.c: New file.
19149         * tests/test-nonblocking-pipe.h: New file.
19150         * tests/test-nonblocking-writer.h: New file.
19151         * tests/test-nonblocking-reader.h: New file.
19152         * tests/test-nonblocking-misc.h: New file.
19153         * modules/nonblocking-pipe-tests: New file.
19154         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19155
19156 2011-04-16  Bruno Haible  <bruno@clisp.org>
19157
19158         gettext: Clarify the needed programmer actions.
19159         * modules/gettext (Notice): New field.
19160         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19161
19162 2011-04-16  Bruno Haible  <bruno@clisp.org>
19163
19164         strchrnul: Tweak last commit.
19165         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19166         bug.
19167         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19168         as in _GL_FUNCDECL_SYS.
19169         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19170         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19171
19172 2011-04-15  Eric Blake  <eblake@redhat.com>
19173
19174         strchrnul: work around cygwin bug
19175         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19176         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19178         * modules/string (Makefile.am): Substitute it.
19179         * lib/string.in.h (strchrnul): Use it.
19180
19181 2011-04-15  Bruno Haible  <bruno@clisp.org>
19182
19183         Don't require lib/stdio-write.c when only module 'stdio' is used.
19184         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19185         invocation.
19186         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19187
19188 2011-04-14  Bruno Haible  <bruno@clisp.org>
19189
19190         Support non-blocking pipe I/O in read() on native Windows.
19191         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19192         (read): New declaration.
19193         * lib/read.c: New file.
19194         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19195         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19196         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19197         vscanf): New declarations.
19198         * lib/stdio-read.c: New file.
19199         * m4/read.m4: New file.
19200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19201         REPLACE_READ.
19202         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19203         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19204         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19205         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19206         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19207         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19208         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19209         * modules/read: New file.
19210         * modules/nonblocking (Files): Add lib/stdio-read.c.
19211         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19212         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19213         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19214         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19215         * modules/pread (Depends-on): Add read.
19216         * modules/safe-read (Depends-on): Likewise.
19217         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19218         gets, scanf, vfscanf, vscanf): Verify signatures.
19219         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19220         problem with non-blocking pipes.
19221         * doc/posix-functions/fgetc.texi: Likewise.
19222         * doc/posix-functions/fgets.texi: Likewise.
19223         * doc/posix-functions/fread.texi: Likewise.
19224         * doc/posix-functions/fscanf.texi: Likewise.
19225         * doc/posix-functions/getc.texi: Likewise.
19226         * doc/posix-functions/getchar.texi: Likewise.
19227         * doc/posix-functions/gets.texi: Likewise.
19228         * doc/posix-functions/scanf.texi: Likewise.
19229         * doc/posix-functions/vfscanf.texi: Likewise.
19230         * doc/posix-functions/vscanf.texi: Likewise.
19231
19232 2011-04-14  Bruno Haible  <bruno@clisp.org>
19233
19234         Support non-blocking pipe I/O in write() on native Windows.
19235         * lib/write.c (rpl_write): Split a write request that failed merely
19236         because the byte count was larger than the pipe buffer's size.
19237         * doc/posix-functions/write.texi: Mention the problem with large byte
19238         counts.
19239
19240 2011-04-14  Bruno Haible  <bruno@clisp.org>
19241
19242         wchar: Ensure that wchar_t gets defined on uClibc.
19243         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19244         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19245
19246 2011-04-13  Bruno Haible  <bruno@clisp.org>
19247
19248         safe-write, full-read: Avoid unnecessary compilation units.
19249         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19250         (Depends-on): Remove safe-read. Add ssize_t.
19251         * modules/full-read (Files): Add lib/full-write.c.
19252         (Depends-on): Add full-write.
19253
19254 2011-04-13  Bruno Haible  <bruno@clisp.org>
19255
19256         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19257         * modules/pwrite (Depends-on): Add 'write'.
19258
19259 2011-04-13  Bruno Haible  <bruno@clisp.org>
19260
19261         Support non-blocking pipe I/O in write() on native Windows.
19262         * lib/unistd.in.h (write): Enable replacement also if
19263         GNULIB_UNISTD_H_NONBLOCKING is 1.
19264         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19265         (rpl_write): When failing to write on a non-blocking pipe, change
19266         errno from ENOSPC to EAGAIN.
19267         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19268         putchar, puts, vfprintf, vprintf): Enable replacement also if
19269         GNULIB_STDIO_H_NONBLOCKING is 1.
19270         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19271         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19272         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19273         CALL_WITH_SIGPIPE_EMULATION.
19274         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19275         * m4/nonblocking.m4: New file.
19276         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19277         for non-blocking I/O support.
19278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19279         GNULIB_UNISTD_H_NONBLOCKING.
19280         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19281         required for non-blocking I/O support.
19282         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19283         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19284         lib/stdio-write.c, m4/asm-underscore.m4.
19285         (Depends-on): Add stdio, unistd.
19286         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19287         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19288         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19289         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19290         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19291         problem with non-blocking pipes.
19292         * doc/posix-functions/fputc.texi: Likewise.
19293         * doc/posix-functions/fputs.texi: Likewise.
19294         * doc/posix-functions/fwrite.texi: Likewise.
19295         * doc/posix-functions/printf.texi: Likewise.
19296         * doc/posix-functions/putc.texi: Likewise.
19297         * doc/posix-functions/putchar.texi: Likewise.
19298         * doc/posix-functions/puts.texi: Likewise.
19299         * doc/posix-functions/vfprintf.texi: Likewise.
19300         * doc/posix-functions/vprintf.texi: Likewise.
19301         * doc/posix-functions/write.texi: Likewise.
19302
19303 2011-04-10  Jim Meyering  <meyering@redhat.com>
19304
19305         maint.mk: prohibit doubled words
19306         Detect them also when they're separated by a newline.
19307         There are 3 ways to customize it:
19308           - disable the test on a per file basis, as usual with rules using
19309             $(VC_LIST_EXCEPT)
19310           - replace the default doubled-word-selecting regexp (affects all files)
19311           - ignore a particular file-vs-doubled-word match
19312         I nearly used that last one to ignore the "is is" match in
19313         coreutils' NEWS file, since the text was "ls -is is ..."
19314         To do that, I would have added this line to cfg.mk:
19315           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19316         but it would have ignored any "is is" match in NEWS.
19317         Low probability, but still...
19318         Instead, I changed the text, slightly:
19319           -  ls -is is now consistent with ls -lis in ignoring values returned
19320           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19321         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19322         (prohibit_doubled_word_): Define.
19323         (sc_prohibit_doubled_word): New rule.
19324         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19325
19326 2011-04-10  Jim Meyering  <meyering@redhat.com>
19327
19328         maint: fix doubled-word typo in comment
19329         * m4/gethostname.m4: s/is is/it is/
19330         * m4/getdomainname.m4: Likewise.
19331
19332 2011-04-10  Jim Meyering  <meyering@redhat.com>
19333
19334         maint: remove doubled word: s/it it/it/
19335         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19336
19337 2011-04-10  Jim Meyering  <meyering@redhat.com>
19338
19339         maint.mk: remove useless semicolon and backslash
19340         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19341         semicolon and backslash.
19342
19343 2011-04-10  Bruno Haible  <bruno@clisp.org>
19344
19345         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19346         * modules/stdint-tests (Depends-on): Add wchar.
19347
19348 2011-04-10  Jim Meyering  <meyering@redhat.com>
19349
19350         maint: remove doubled words in comments, e.g., s/a a/a/
19351         * lib/strptime.c (day_of_the_week): s/the the/the/
19352         * tests/test-chown.h (test_chown): s/a a/a/
19353
19354         test-chown.h: correct a cast
19355         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19356         when the destination is a stat.st_gid.
19357
19358 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19359
19360         getaddrinfo: Fix test for sa_len member.
19361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19362         include <sys/types.h> before <sys/socket.h>.
19363
19364 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19365
19366         maint: change "can not" to "cannot"
19367         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19368         boundaries.
19369
19370 2011-04-09  Jim Meyering  <meyering@redhat.com>
19371
19372         maint: change "a a" to "a"
19373         * tests/test-lchown.h (test_lchown): s/a a/a/
19374
19375         maint.mk: prohibit \<the the\>
19376         * top/maint.mk (sc_prohibit_the_the): New rule.
19377
19378         maint: fix "the the" in comment
19379         * lib/count-one-bits.h: s/the the/the/
19380
19381         maint: change "can not" to "cannot"
19382         But do not change the occurrences in maintain.texi or in
19383         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19384         * doc/gnulib-tool.texi: s/can not/cannot/
19385         * doc/posix-functions/accept.texi (accept): Likewise.
19386         * doc/posix-functions/socket.texi (socket): Likewise.
19387         * lib/mbrtowc.c: Likewise.
19388
19389         maint.mk: prohibit use of "can not"
19390         * top/maint.mk (sc_prohibit_can_not): New rule.
19391         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19392
19393 2011-04-09  Bruno Haible  <bruno@clisp.org>
19394
19395         careadlinkat: Guard against misuse of careadlinkatcwd.
19396         * lib/careadlinkat.c: Include <stdlib.h>.
19397         (careadlinkatcwd): Check that the fd argument is as expected.
19398
19399 2011-04-09  Bruno Haible  <bruno@clisp.org>
19400
19401         careadlinkat: Use common coding style.
19402         * lib/careadlinkat.c: Move gnulib includes after system includes.
19403
19404 2011-04-09  Bruno Haible  <bruno@clisp.org>
19405
19406         careadlinkat: Clarify specification.
19407         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19408         (careadlinkatcwd): Add comment.
19409         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19410
19411 2011-04-09  Bruno Haible  <bruno@clisp.org>
19412
19413         areadlinkat: Avoid link error on many platforms.
19414         * modules/areadlinkat (Depends-on): Add areadlink.
19415
19416 2011-04-09  Bruno Haible  <bruno@clisp.org>
19417
19418         allocator, careadlinkat: Fix double-inclusion guard.
19419         * lib/allocator.h: Fix double-inclusion guard.
19420         * lib/careadlinkat.h: Likewise.
19421
19422 2011-04-09  Bruno Haible  <bruno@clisp.org>
19423
19424         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19425         * lib/relocwrapper.c: Update dependencies hierarchy.
19426         * build-aux/install-reloc: Update list of files to be compiled.
19427         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19428         lib/allocator.[hc].
19429
19430 2011-04-08  Eric Blake  <eblake@redhat.com>
19431
19432         strftime: silence gnulib-tool warning
19433         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19434
19435 2011-04-08  Bruno Haible  <bruno@clisp.org>
19436
19437         verify: Fix syntax error with GCC 4.6 in C++ mode.
19438         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19439         (HAVE_STATIC_ASSERT): New macro.
19440         (verify_true, verify): Use 'static_assert' if it is supported and
19441         '_Static_assert' is not supported.
19442
19443 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19444
19445         allocator: New module.
19446         * modules/allocator, lib/allocator.c: New files.
19447         * lib/allocator.h (stdlib_allocator): New decl.
19448         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19449         Remove.  Do not include <stdlib.h>.
19450         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19451         * modules/careadlinkat (Files): Remove lib/allocator.h.
19452         (Depends-on): Add allocator.
19453
19454         stdlib: let modules use system malloc, realloc
19455         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19456         if !_GL_USE_STDLIB_ALLOC.
19457         (malloc, realloc): Limit this change to a smaller scope.
19458
19459         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19460         (malloc, realloc): Don't #undef; no longer needed.
19461         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19462         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19463         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19464         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19465         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19466         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19467         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19468         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19469
19470         careadlinkat: rename members to avoid problem
19471         * lib/allocator.h (struct allocator): Rename members from
19472         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19473         and realloc are #define'd.  Reported by Eric Blake in
19474         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19475         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19476
19477 2011-04-08  Eric Blake  <eblake@redhat.com>
19478
19479         nonblocking: reduce dependency
19480         * tests/test-nonblocking.c: Only test sockets when in use.
19481         * modules/nonblocking-tests (Depends-on): Drop socket.
19482         (Makefile.am): Link even if sockets are not present.
19483         * modules/pipe2-tests (Makefile.am): Likewise.
19484         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19485
19486         pipe2: fix O_NONBLOCK support on mingw
19487         * modules/pipe2 (Depends-on): Add nonblocking.
19488         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19489         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19490         * tests/test-nonblocking.c (main): Likewise.
19491         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19492
19493         fcntl-h: fix O_ACCMODE on cygwin
19494         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19495         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19496
19497         pipe-filter: drop O_NONBLOCK workarounds
19498         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19499         * modules/pipe-filter-ii (Depends-on): Likewise.
19500         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19501
19502         nonblocking: provide O_NONBLOCK for mingw
19503         * modules/nonblocking (Depends-on): Add open.
19504         (configure.ac): Set new witness macro.
19505         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19506         * modules/fcntl-h (Makefile.am): Substitute it.
19507         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19508         nonblocking module is in use.
19509         * lib/nonblocking.c: Adjust portability test.
19510         * lib/open.c (open): Don't let native open see gnulib flag.
19511         * tests/test-fcntl-h.c (main): Enhance test.
19512         * tests/test-open.h (test_open): Likewise.
19513         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19514
19515         careadlinkat: fix compilation error on mingw
19516         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19517         within struct allocator.
19518
19519 2011-04-06  Eric Blake  <eblake@redhat.com>
19520
19521         binary-io: relicense under LGPLv2+
19522         * modules/binary-io (License): Relax to LGPLv2+.
19523         Requested for libvirt, and required by pipe2.
19524
19525 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19526
19527         verify: use _Static_assert if available
19528         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19529         (verify_true, verify): Use it if available.  This generates better
19530         diagnostics with GCC 4.6.0 and later.
19531
19532 2011-04-05  Bruno Haible  <bruno@clisp.org>
19533
19534         Remove leftover generated .h files after config.status changed.
19535
19536         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19537         GL_GENERATE_ALLOCA_H.
19538         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19539         GL_GENERATE_ALLOCA_H evaluates to false.
19540
19541         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19542         GL_GENERATE_ARGZ_H.
19543         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19544         evaluates to false.
19545
19546         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19547         GL_GENERATE_BYTESWAP_H.
19548         * modules/byteswap (Makefile.am): Remove byteswap.h if
19549         GL_GENERATE_BYTESWAP_H evaluates to false.
19550
19551         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19552         GL_GENERATE_ERRNO_H.
19553         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19554         evaluates to false.
19555
19556         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19557         GL_GENERATE_FLOAT_H.
19558         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19559         evaluates to false.
19560
19561         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19562         GL_GENERATE_FNMATCH_H.
19563         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19564         GL_GENERATE_FNMATCH_H evaluates to false.
19565
19566         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19567         GL_GENERATE_GLOB_H.
19568         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19569         evaluates to false.
19570
19571         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19572         automake conditional GL_GENERATE_ICONV_H.
19573         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19574         evaluates to false.
19575
19576         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19577         GL_GENERATE_NETINET_IN_H.
19578         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19579         GL_GENERATE_NETINET_IN_H evaluates to false.
19580
19581         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19582         conditional GL_GENERATE_PTHREAD_H.
19583         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19584         * modules/pthread (Makefile.am): Remove pthread.h if
19585         GL_GENERATE_PTHREAD_H evaluates to false.
19586
19587         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19588         GL_GENERATE_SCHED_H.
19589         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19590         evaluates to false.
19591
19592         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19593         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19594         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19595         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19596
19597         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19598         GL_GENERATE_STDARG_H.
19599         * modules/stdarg (Makefile.am): Remove stdarg.h if
19600         GL_GENERATE_STDARG_H evaluates to false.
19601
19602         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19603         GL_GENERATE_STDBOOL_H.
19604         * modules/stdbool (Makefile.am): Remove stdbool.h if
19605         GL_GENERATE_STDBOOL_H evaluates to false.
19606
19607         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19608         conditional GL_GENERATE_STDDEF_H.
19609         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19610         * modules/stddef (Makefile.am): Remove stddef.h if
19611         GL_GENERATE_STDDEF_H evaluates to false.
19612
19613         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19614         GL_GENERATE_STDINT_H.
19615         * modules/stdint (Makefile.am): Remove stdint.h if
19616         GL_GENERATE_STDINT_H evaluates to false.
19617
19618         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19619         GL_GENERATE_SYSEXITS_H.
19620         * modules/sysexits (Makefile.am): Remove sysexits.h if
19621         GL_GENERATE_SYSEXITS_H evaluates to false.
19622
19623         Reported by Karl Berry and Ralf Wildenhues.
19624
19625 2011-04-05  Bruno Haible  <bruno@clisp.org>
19626
19627         Ensure to rebuild generated .h files when config.status has changed.
19628         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19629         config.status.
19630         * modules/ctype (Makefile.am): Likewise.
19631         * modules/dirent (Makefile.am): Likewise.
19632         * modules/errno (Makefile.am): Likewise.
19633         * modules/fcntl-h (Makefile.am): Likewise.
19634         * modules/float (Makefile.am): Likewise.
19635         * modules/getopt-posix (Makefile.am): Likewise.
19636         * modules/glob (Makefile.am): Likewise.
19637         * modules/iconv-h (Makefile.am): Likewise.
19638         * modules/inttypes (Makefile.am): Likewise.
19639         * modules/langinfo (Makefile.am): Likewise.
19640         * modules/locale (Makefile.am): Likewise.
19641         * modules/math (Makefile.am): Likewise.
19642         * modules/netdb (Makefile.am): Likewise.
19643         * modules/netinet_in (Makefile.am): Likewise.
19644         * modules/poll-h (Makefile.am): Likewise.
19645         * modules/pthread (Makefile.am): Likewise.
19646         * modules/pty (Makefile.am): Likewise.
19647         * modules/sched (Makefile.am): Likewise.
19648         * modules/search (Makefile.am): Likewise.
19649         * modules/selinux-h (Makefile.am): Likewise.
19650         * modules/signal (Makefile.am): Likewise.
19651         * modules/spawn (Makefile.am): Likewise.
19652         * modules/stdarg (Makefile.am): Likewise.
19653         * modules/stdbool (Makefile.am): Likewise.
19654         * modules/stddef (Makefile.am): Likewise.
19655         * modules/stdint (Makefile.am): Likewise.
19656         * modules/stdio (Makefile.am): Likewise.
19657         * modules/stdlib (Makefile.am): Likewise.
19658         * modules/string (Makefile.am): Likewise.
19659         * modules/strings (Makefile.am): Likewise.
19660         * modules/sys_file (Makefile.am): Likewise.
19661         * modules/sys_ioctl (Makefile.am): Likewise.
19662         * modules/sys_select (Makefile.am): Likewise.
19663         * modules/sys_socket (Makefile.am): Likewise.
19664         * modules/sys_stat (Makefile.am): Likewise.
19665         * modules/sys_time (Makefile.am): Likewise.
19666         * modules/sys_times (Makefile.am): Likewise.
19667         * modules/sys_utsname (Makefile.am): Likewise.
19668         * modules/sys_wait (Makefile.am): Likewise.
19669         * modules/sysexits (Makefile.am): Likewise.
19670         * modules/termios (Makefile.am): Likewise.
19671         * modules/time (Makefile.am): Likewise.
19672         * modules/unistd (Makefile.am): Likewise.
19673         * modules/wchar (Makefile.am): Likewise.
19674         * modules/wctype-h (Makefile.am): Likewise.
19675         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19676
19677 2011-04-05  Bruno Haible  <bruno@clisp.org>
19678
19679         pipe2: Relicense under LGPLv2+.
19680         * modules/pipe2 (License): Change to LGPLv2+.
19681         Requested by Eric Blake, for libvirt.
19682
19683 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19684
19685         bootstrap: compute gnulib_extra_files after updating build_aux
19686         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19687         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19688
19689 2011-04-05  Eric Blake  <eblake@redhat.com>
19690
19691         bootstrap: preserve git whitelist item sorting
19692         * build-aux/bootstrap (sort_patterns): New function.
19693         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19694
19695 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19696
19697         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19698         sc_space_tab check.
19699
19700 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19701
19702         areadlink, areadlinkat: rewrite in terms of careadlinkat
19703         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19704         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19705         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19706         (malloc, realloc): Remove #undefs.
19707         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19708         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19709         readlink, ssize_t, stdint, unistd.
19710         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19711         areadlink, stdint.
19712
19713         careadlinkat: new module
19714         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19715         * modules/careadlinkat: New files, written by me with
19716         a review and feedback from Ben Pfaff in
19717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19718
19719 2011-04-01  Bruno Haible  <bruno@clisp.org>
19720
19721         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19722         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19723         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19724         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19725         Reported by Bruce Korb <bruce.korb@gmail.com>.
19726
19727 2011-04-01  Bruno Haible  <bruno@clisp.org>
19728
19729         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19730         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19731         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19732         * modules/wcpcpy (Depends-on): Add extensions.
19733         * modules/wcpncpy (Depends-on): Likewise.
19734         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19735         systems.
19736         * doc/posix-functions/wcpncpy.texi: Likewise.
19737         * doc/posix-functions/wcwidth.texi: Likewise.
19738
19739 2011-03-31  Eric Blake  <eblake@redhat.com>
19740
19741         nonblocking: fix mingw test failures
19742         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19743         non-blocking flag on regular file.
19744         (get_nonblocking_flag): Set errno on invalid fd.
19745         * tests/test-nonblocking.c (main): Avoid test failure on
19746         directories if fchdir is not active.
19747         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19748
19749 2011-03-31  Bruno Haible  <bruno@clisp.org>
19750
19751         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19752         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19753         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19754         Reported by Simon Josefsson <simon@josefsson.org>.
19755
19756 2011-03-31  Bruno Haible  <bruno@clisp.org>
19757         and Eric Blake  <eblake@redhat.com>
19758
19759         nonblocking: new module
19760         * modules/nonblocking: New module.
19761         * modules/nonblocking-tests: Likewise.
19762         * lib/nonblocking.h: New file.
19763         * lib/nonblocking.c: Likewise.
19764         * tests/test-nonblocking.c: New test.
19765         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19766
19767 2011-03-30  Bruno Haible  <bruno@clisp.org>
19768
19769         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19770         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19771         instead of 'printf' format for GCC >= 4.4.
19772         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19773         (fprintf, printf, vfprintf, vprintf): Declare with
19774         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19775         the system's vfprintf() function.
19776         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19777
19778 2011-03-30  Eric Blake  <eblake@redhat.com>
19779
19780         passfd: fix scoping bug
19781         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19782         before sendmsg/recvmsg.
19783
19784         passfd: standardize coding conventions
19785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19786         can be learned at compile time.
19787         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19788         ifdefs.
19789         (sendfd, recvfd): Follow gnulib code conventions.
19790
19791         passfd: fix incorrect sendmsg arguments
19792         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19793         incorrect msg_controllen value.
19794         * modules/passfd-tests (Depends-on): Check for alarm.
19795         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19796         Reported by Bastien ROUCARIES.
19797
19798 2011-03-30  Bruno Haible  <bruno@clisp.org>
19799
19800         c-strcasestr: Relicense under LGPLv2+.
19801         * modules/c-strcasestr (License): Change to LGPLv2+.
19802         Requested by Eric Blake, for libvirt.
19803
19804 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19805
19806         * users.txt: Add libidn2.  Fix libtasn1 link.
19807
19808 2011-03-30  Jim Meyering  <meyering@redhat.com>
19809
19810         tests: readlink* ("",... fails with EINVAL on newer kernels
19811         readlink and readlinkat have typically failed with ENOENT for
19812         the invalid, empty file name,  "".  However, with the advent
19813         of linux-2.6.39, they fail with EINVAL.
19814         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19815         when operating on the empty file name.
19816         * tests/test-readlink.h (test_readlink): Likewise.
19817
19818 2011-03-29  Bruno Haible  <bruno@clisp.org>
19819
19820         Relicense some modules under LGPLv2+, for libidn2.
19821         * modules/array-mergesort (License): Change to LGPLv2+.
19822         * modules/c-strcaseeq (License): Likewise.
19823         * modules/striconveh (License): Likewise.
19824         * modules/striconveha (License): Likewise.
19825         * modules/uniconv/base (License): Likewise.
19826         * modules/uniconv/u8-conv-from-enc (License): Likewise.
19827         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
19828         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
19829         * modules/unictype/base (License): Likewise.
19830         * modules/unictype/bidiclass-of (License): Likewise.
19831         * modules/unictype/category-M (License): Likewise.
19832         * modules/unictype/category-none (License): Likewise.
19833         * modules/unictype/category-of (License): Likewise.
19834         * modules/unictype/category-test (License): Likewise.
19835         * modules/unictype/category-test-withtable (License): Likewise.
19836         * modules/unictype/combining-class (License): Likewise.
19837         * modules/unictype/joiningtype-of (License): Likewise.
19838         * modules/unictype/scripts (License): Likewise.
19839         * modules/uninorm/base (License): Likewise.
19840         * modules/uninorm/canonical-decomposition (License): Likewise.
19841         * modules/uninorm/composition (License): Likewise.
19842         * modules/uninorm/decompose-internal (License): Likewise.
19843         * modules/uninorm/decomposition-table (License): Likewise.
19844         * modules/uninorm/nfc (License): Likewise.
19845         * modules/uninorm/nfd (License): Likewise.
19846         * modules/uninorm/u32-normalize (License): Likewise.
19847         * modules/unistr/base (License): Likewise.
19848         * modules/unistr/u32-cpy (License): Likewise.
19849         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
19850         * modules/unistr/u32-to-u8 (License): Likewise.
19851         * modules/unistr/u32-uctomb (License): Likewise.
19852         * modules/unistr/u8-check (License): Likewise.
19853         * modules/unistr/u8-mblen (License): Likewise.
19854         * modules/unistr/u8-mbtouc (License): Likewise.
19855         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
19856         * modules/unistr/u8-mbtoucr (License): Likewise.
19857         * modules/unistr/u8-prev (License): Likewise.
19858         * modules/unistr/u8-strlen (License): Likewise.
19859         * modules/unistr/u8-to-u32 (License): Likewise.
19860         * modules/unistr/u8-uctomb (License): Likewise.
19861         * modules/unitypes (License): Likewise.
19862         Requested by Simon Josefsson.
19863
19864 2011-03-29  Simon Josefsson  <simon@josefsson.org>
19865
19866         lib-symbol-visibility: Add a notice.
19867         * modules/lib-symbol-visibility (Notice): New field.
19868
19869 2011-03-29  Bruno Haible  <bruno@clisp.org>
19870
19871         getaddrinfo: Doc fix.
19872         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
19873         section "fixed in Gnulib".
19874
19875 2011-03-28  Simon Josefsson  <simon@josefsson.org>
19876
19877         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
19878         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
19879
19880 2011-03-26  Bruno Haible  <bruno@clisp.org>
19881
19882         unictype/property-byname: Reduce the number of load-time relocations.
19883         * lib/unictype/pr_byname.c: Include <stdlib.h>.
19884         (UC_PROPERTY_INDEX_*): New enumeration values.
19885         (uc_property_byname): Convert an index from the lookup table to an
19886         uc_property_t.
19887         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
19888         values.
19889
19890 2011-03-26  Bruno Haible  <bruno@clisp.org>
19891
19892         unictype/property-byname: Allow omitted word separators and aliases.
19893         * lib/unictype/pr_byname.gperf: Add property names without word
19894         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
19895         for 'space'.
19896
19897 2011-03-26  Bruno Haible  <bruno@clisp.org>
19898
19899         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
19900         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
19901         also hyphens to space.
19902         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
19903         without spaces.
19904         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
19905
19906 2011-03-26  Bruno Haible  <bruno@clisp.org>
19907
19908         unictype/joiningtype-byname: Recognize long names as well.
19909         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
19910         a long name.
19911         * lib/unictype/joiningtype_byname.c: Include <string.h>,
19912         unictype/joiningtype_byname.h.
19913         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
19914         * lib/unictype/joiningtype_byname.gperf: New file.
19915         * modules/unictype/joiningtype-byname (Files): Add
19916         lib/unictype/joiningtype_byname.gperf.
19917         (Depends-on): Add gperf.
19918         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
19919         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
19920         long names.
19921
19922         Tests for module 'unictype/joiningtype-longname'.
19923         * modules/unictype/joiningtype-longname-tests: New file.
19924         * tests/unictype/test-joiningtype_longname.c: New file.
19925
19926         New module 'unictype/joiningtype-longname'.
19927         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
19928         * lib/unictype/joiningtype_longname.c: New file.
19929         * modules/unictype/joiningtype-longname: New file.
19930         * modules/unictype/joiningtype-all (Depends-on): Add
19931         unictype/joiningtype-longname.
19932
19933 2011-03-26  Bruno Haible  <bruno@clisp.org>
19934
19935         unictype/bidiclass-byname: Recognize long names as well.
19936         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
19937         name.
19938         * lib/unictype/bidi_byname.c: Include <string.h>,
19939         unictype/bidi_byname.h.
19940         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
19941         * lib/unictype/bidi_byname.gperf: New file.
19942         * modules/unictype/bidiclass-byname (Files): Add
19943         lib/unictype/bidi_byname.gperf.
19944         (Depends-on): Add gperf.
19945         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
19946         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
19947         long names.
19948
19949         Tests for module 'unictype/bidiclass-longname'.
19950         * modules/unictype/bidiclass-longname-tests: New file.
19951         * tests/unictype/test-bidi_longname.c: New file.
19952
19953         New module 'unictype/bidiclass-longname'.
19954         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19955         * lib/unictype/bidi_longname.c: New file.
19956         * modules/unictype/bidiclass-longname: New file.
19957         * modules/unictype/bidiclass-all (Depends-on): Add
19958         unictype/bidiclass-longname.
19959
19960 2011-03-26  Bruno Haible  <bruno@clisp.org>
19961
19962         unictype/bidi*: Rename modules.
19963         * modules/unictype/bidiclass-all: Renamed from
19964         modules/unictype/bidicategory-all.
19965         * modules/unictype/bidiclass-name: Renamed from
19966         modules/unictype/bidiclass-name.
19967         (Description): Update.
19968         * modules/unictype/bidiclass-name-tests: Renamed from
19969         modules/unictype/bidicategory-name-tests.
19970         * modules/unictype/bidiclass-byname: Renamed from
19971         modules/unictype/bidicategory-byname.
19972         (Description): Update.
19973         * modules/unictype/bidiclass-byname-tests: Renamed from
19974         modules/unictype/bidicategory-byname-tests.
19975         * modules/unictype/bidiclass-of: Renamed from
19976         modules/unictype/bidicategory-of.
19977         (Description): Update.
19978         * modules/unictype/bidiclass-of-tests: Renamed from
19979         modules/unictype/bidicategory-of-tests.
19980         * modules/unictype/bidiclass-test: Renamed from
19981         modules/unictype/bidicategory-test.
19982         (Description): Update.
19983         * modules/unictype/bidiclass-test-tests: Renamed from
19984         modules/unictype/bidicategory-test-tests.
19985         * modules/unictype/bidicategory-all: New file, a simple redirection.
19986         * modules/unictype/bidicategory-name: Likewise.
19987         * modules/unictype/bidicategory-byname: Likewise.
19988         * modules/unictype/bidicategory-of: Likewise.
19989         * modules/unictype/bidicategory-test: Likewise.
19990         * modules/unictype/property-bidi-* (Dependencies): Update.
19991         * lib/unictype/bidi_*.c: Update comment.
19992
19993 2011-03-26  Bruno Haible  <bruno@clisp.org>
19994
19995         unictype/bidi*: Rename functions, part 2.
19996         * modules/unictype/bidicategory-name (configure.ac): Update required
19997         libunistring version.
19998         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19999
20000 2011-03-25  Bruno Haible  <bruno@clisp.org>
20001
20002         New module 'unictype/combining-class-all'.
20003         * modules/unictype/combining-class-all: New file.
20004
20005         Tests for module 'unictype/combining-class-byname'.
20006         * modules/unictype/combining-class-byname-tests: New file.
20007         * tests/unictype/test-combiningclass_byname.c: New file.
20008
20009         New module 'unictype/combining-class-byname'.
20010         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20011         * lib/unictype/combiningclass_byname.c: New file.
20012         * lib/unictype/combiningclass_byname.gperf: New file.
20013         * modules/unictype/combining-class-byname: New file.
20014
20015         Tests for module 'unictype/combining-class-longname'.
20016         * modules/unictype/combining-class-longname-tests: New file.
20017         * tests/unictype/test-combiningclass_longname.c: New file.
20018
20019         New module 'unictype/combining-class-longname'.
20020         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20021         * lib/unictype/combiningclass_longname.c: New file.
20022         * modules/unictype/combining-class-longname: New file.
20023
20024         Tests for module 'unictype/combining-class-name'.
20025         * modules/unictype/combining-class-name-tests: New file.
20026         * tests/unictype/test-combiningclass_name.c: New file.
20027
20028         New module 'unictype/combining-class-name'.
20029         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20030         * lib/unictype/combiningclass_name.c: New file.
20031         * modules/unictype/combining-class-name: New file.
20032
20033 2011-03-25  Bruno Haible  <bruno@clisp.org>
20034
20035         unictype/combining-class: Rename source files.
20036         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20037         of unictype/combining.h.
20038         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20039         Update.
20040         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20041         * modules/unictype/combining-class (Description): Fix.
20042         (Files, Makefile.am): Update.
20043         * tests/unictype/test-combiningclass.c: Renamed from
20044         tests/unictype/test-combining.c.
20045         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20046
20047 2011-03-25  Bruno Haible  <bruno@clisp.org>
20048
20049         unictype: Update list of canonical combining classes.
20050         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20051
20052 2011-03-25  Bruno Haible  <bruno@clisp.org>
20053
20054         unictype/category-byname: Recognize long names as well.
20055         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20056         a long name.
20057         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20058         unictype/categ_byname.h.
20059         (UC_CATEGORY_INDEX_*): New enumeration values.
20060         (uc_general_category_byname): Use uc_general_category_lookup and
20061         convert from index to value.
20062         * lib/unictype/categ_byname.gperf: New file.
20063         * modules/unictype/category-byname (Files): Add
20064         lib/unictype/categ_byname.gperf.
20065         (Depends-on): Add gperf.
20066         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20067         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20068         long names.
20069
20070         Tests for module 'unictype/category-longname'.
20071         * modules/unictype/category-longname-tests: New file.
20072         * tests/unictype/test-categ_longname.c: New file.
20073
20074         New module 'unictype/category-longname'.
20075         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20076         * lib/unictype/categ_longname.c: New file.
20077         * modules/unictype/category-longname: New file.
20078         * modules/unictype/category-all (Depends-on): Add it.
20079
20080 2011-03-25  Bruno Haible  <bruno@clisp.org>
20081
20082         Tests for module 'unictype/category-LC'.
20083         * modules/unictype/category-LC-tests: New file.
20084         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20085
20086         New module 'unictype/category-LC'.
20087         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20088         (UC_CATEGORY_LC): New declaration.
20089         (UC_CASED_LETTER): New macro.
20090         * lib/gen-uni-tables.c (is_category_LC): New function.
20091         (output_categories): Also handle category LC.
20092         (UC_CATEGORY_MASK_LC): New enumeration value.
20093         (general_category_byname): Also handle category LC.
20094         * lib/unictype/categ_LC.c: New file.
20095         * lib/unictype/categ_LC.h: New file, automatically generated.
20096         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20097         category LC.
20098         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20099         * modules/unictype/category-LC: New file.
20100         * modules/unictype/category-byname (Depends-on): Add
20101         unictype/category-LC.
20102         * modules/unictype/category-all (Depends-on): Likewise.
20103
20104 2011-03-25  Eric Blake  <eblake@redhat.com>
20105
20106         xmalloc: revert yesterday's regression
20107         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20108         realloc's underlying behavior (allowing allocation of zero-size
20109         objects, especially if malloc-gnu is also in use).
20110
20111 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20112
20113         maint.mk: add missing version to VC-tag
20114         * top/maint.mk: git tag was missing actual tag name; add it.
20115
20116         valgrind: do leak checking, and exit with code 1 on error (not 0)
20117         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20118         to VALGRIND.
20119
20120 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20121
20122         posix-modules: say what it does.
20123         * posix-modules: Add a line to the --help output saying what it does.
20124
20125 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20126
20127         xmalloc: Do not leak if underlying realloc is C99 compatible.
20128         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20129         This avoids a leak on C99-based systems.  See
20130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20131
20132 2011-03-24  Eric Blake  <eblake@redhat.com>
20133
20134         realloc: document portability problem
20135         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20136         passing 0 size to realloc.
20137
20138 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20139
20140         doc: update users.txt
20141         * users.txt: Add cvsps, tmpwatch
20142
20143 2011-03-23  Matt Rice  <ratmice@gmail.com>
20144
20145         doc: update users.txt
20146         * users.txt: Add gdb.
20147
20148 2011-03-23  Jim Meyering  <meyering@redhat.com>
20149
20150         doc: update users.txt
20151         Looking through matches up to the following URL (there are still
20152         several more pages), I found several projects that use gnulib:
20153         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20154         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20155         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20156
20157 2011-03-22  Bruno Haible  <bruno@clisp.org>
20158
20159         unictype/bidi*: Rename functions.
20160         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20161         uc_bidi_class, uc_is_bidi_class): New declarations.
20162         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20163         uc_bidi_category_byname.
20164         (uc_bidi_category_byname): New function.
20165         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20166         u_bidi_category_name.
20167         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20168         (uc_bidi_category_name): New function.
20169         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20170         uc_bidi_category.
20171         (uc_bidi_category): New function.
20172         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20173         uc_is_bidi_category. Invoke uc_bidi_class.
20174         (uc_is_bidi_category): New function.
20175         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20176         instead of uc_bidi_category_byname.
20177         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20178         instead of uc_bidi_category_name.
20179         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20180         uc_bidi_category.
20181         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20182         instead of uc_is_bidi_category.
20183
20184 2011-03-21  Bruno Haible  <bruno@clisp.org>
20185
20186         New module 'unictype/joininggroup-all'.
20187         * modules/unictype/joininggroup-all: New file.
20188
20189         Tests for module 'unictype/joininggroup-of'.
20190         * modules/unictype/joininggroup-of-tests: New file.
20191         * tests/unictype/test-joininggroup_of.c: New file.
20192         * tests/unictype/test-joininggroup_of.h: New file, automatically
20193         generated by gen-uni-tables.
20194
20195         New module 'unictype/joininggroup-of'.
20196         * modules/unictype/joininggroup-of: New file.
20197         * lib/unictype/joininggroup_of.c: New file.
20198         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20199         gen-uni-tables.
20200
20201         Tests for module 'unictype/joininggroup-byname'.
20202         * modules/unictype/joininggroup-byname-tests: New file.
20203         * tests/unictype/test-joininggroup_byname.c: New file.
20204
20205         New module 'unictype/joininggroup-byname'.
20206         * modules/unictype/joininggroup-byname: New file.
20207         * lib/unictype/joininggroup_byname.c: New file.
20208         * lib/unictype/joininggroup_byname.gperf: New file.
20209
20210         Tests for module 'unictype/joininggroup-name'.
20211         * modules/unictype/joininggroup-name-tests: New file.
20212         * tests/unictype/test-joininggroup_name.c: New file.
20213
20214         New module 'unictype/joininggroup-name'.
20215         * modules/unictype/joininggroup-name: New file.
20216         * lib/unictype/joininggroup_name.c: New file.
20217         * lib/unictype/joininggroup_name.h: New file.
20218
20219         New module 'unictype/joiningtype-all'.
20220         * modules/unictype/joiningtype-all: New file.
20221
20222         Tests for module 'unictype/joiningtype-of'.
20223         * modules/unictype/joiningtype-of-tests: New file.
20224         * tests/unictype/test-joiningtype_of.c: New file.
20225         * tests/unictype/test-joiningtype_of.h: New file, automatically
20226         generated by gen-uni-tables.
20227
20228         New module 'unictype/joiningtype-of'.
20229         * modules/unictype/joiningtype-of: New file.
20230         * lib/unictype/joiningtype_of.c: New file.
20231         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20232         gen-uni-tables.
20233
20234         Tests for module 'unictype/joiningtype-byname'.
20235         * modules/unictype/joiningtype-byname-tests: New file.
20236         * tests/unictype/test-joiningtype_byname.c: New file.
20237
20238         New module 'unictype/joiningtype-byname'.
20239         * modules/unictype/joiningtype-byname: New file.
20240         * lib/unictype/joiningtype_byname.c: New file.
20241
20242         Tests for module 'unictype/joiningtype-name'.
20243         * modules/unictype/joiningtype-name-tests: New file.
20244         * tests/unictype/test-joiningtype_name.c: New file.
20245
20246         New module 'unictype/joiningtype-name'.
20247         * modules/unictype/joiningtype-name: New file.
20248         * lib/unictype/joiningtype_name.c: New file.
20249
20250         unictype: Add support for Arabic shaping properties.
20251         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20252         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20253         declarations.
20254         (UC_JOINING_GROUP_*): New enumeration values.
20255         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20256         declarations.
20257         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20258         (unicode_joining_type): New variable.
20259         (UC_JOINING_GROUP_*): New enumeration values.
20260         (unicode_joining_group): New variable.
20261         (fill_arabicshaping, joining_type_as_c_identifier,
20262         output_joining_type_test, output_joining_type,
20263         joining_group_as_c_identifier, output_joining_group_test,
20264         output_joining_group): New functions.
20265         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20266         fill_arabicshaping and output_joining_type_test, output_joining_type,
20267         output_joining_group_test, output_joining_group.
20268         Reported by Simon Josefsson.
20269
20270 2011-03-21  Jim Meyering  <meyering@redhat.com>
20271
20272         strftime: fix a bug in yesterday's change
20273         * lib/strftime.c (add): Accommodate width's initial value of -1.
20274         Otherwise, nstrftime would copy uninitialized data into
20275         the result buffer.
20276
20277 2011-03-21  Jim Meyering  <meyering@redhat.com>
20278
20279         tests: add strftime-tests module
20280         * tests/test-strftime.c: New file.
20281         * modules/strftime-tests: New module.
20282
20283 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         strftime: don't assume a byte count fits in 'int'
20286         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20287         found this problem by static analysis, using gcc -Wstrict-overflow
20288         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20289         on an integer overflow having undefined behavior, but it turns out
20290         that the argument is a size, which might not fit in 'int' anyway,
20291
20292 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20293
20294         stdio: don't require ignore_value around fwrite
20295
20296         This patch works around libc bug 11959
20297         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20298         Without this patch, applications must often write
20299         ignore_value (fwrite (...)) even though the ignore_value is
20300         not helpful here.  It's common to write many objects, using
20301         fwrite/printf/etc., and then use ferror to detect output error.
20302
20303         I considered making this patch optional, but decided against it,
20304         because libc is obviously being inconsistent here: there is no
20305         reason libc should insist that user code must inspect fwrite
20306         return's value without also insisting that it inspect printf's,
20307         putchar's, etc.  If user code wants to have a strict style where
20308         all these functions' values are checked (so that ferror need not
20309         be checked), we could add support for that style in a new gnulib
20310         module, but in the meantime it's better to be consistent and to
20311         support common usage.
20312
20313         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20314         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20315         that we are compiling in checking mode, and if not C++, and
20316         if not already wrapping fwrite for some other reason.
20317         (fwrite): #define to rpl_fwrite if the latter is defined.
20318
20319 2011-03-20  Bruno Haible  <bruno@clisp.org>
20320
20321         verror: Fix compilation error introduced on 2011-02-13.
20322         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20323         instead of __attribute__.
20324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20325
20326 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20327             Bruno Haible  <bruno@clisp.org>
20328
20329         socklen: do not depend on sys_socket
20330         While trying to modify Emacs to use gnulib's socklen module,
20331         I discovered a circular dependency: socklen depends on sys_socket
20332         and vice versa.  Emacs can use socklen, but it does not need
20333         sys_socket because it has its own substitute for sys/socket.h.
20334         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20335         gl_TYPE_SOCKLEN_T.
20336         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20337         gl_PREREQ_SYS_H_SOCKET.
20338         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20339         gl_PREREQ_SYS_H_SOCKET.
20340         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20341         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20342         * modules/socklen (Depends-on): Do not depend on sys_socket.
20343         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20344
20345 2011-03-20  Jim Meyering  <meyering@redhat.com>
20346
20347         maint.mk: sort file names *after* new transformation
20348         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20349         prefix would have led to an unwarranted failure in GNU parted.
20350         Sort after that transformation.
20351
20352 2011-03-19  Jim Meyering  <meyering@redhat.com>
20353
20354         maint.mk: fix po-file syntax-check rule
20355         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20356         Patch by Bruno Haible.
20357
20358 2011-03-19  Bruno Haible  <bruno@clisp.org>
20359
20360         socklen: Update comment.
20361         * m4/socklen.m4: Update comment about platforms.
20362
20363 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20364             Bruno Haible  <bruno@clisp.org>
20365
20366         inet_ntop, inet_pton: Simplify.
20367         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20368         documented to provide socklen_t and we already depend on sys_socket.
20369         * modules/inet_pton (Depends-on): Likewise.
20370         * lib/arpa_inet.in.h: Adjust comment.
20371
20372 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20373             Bruno Haible  <bruno@clisp.org>
20374
20375         netdb: Simplify.
20376         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20377         documented to provide socklen_t and we already depend on sys_socket.
20378         * lib/netdb.in.h: Adjust comment.
20379
20380 2011-03-19  Bruno Haible  <bruno@clisp.org>
20381
20382         sys_socket, netdb: Document problem with socklen_t.
20383         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20384         platforms.
20385         * doc/posix-headers/netdb.texi: Likewise.
20386
20387 2011-03-18  Eric Blake  <eblake@redhat.com>
20388
20389         maint.mk: let po check work in VPATH build
20390         * top/maint.mk (po_file): Allow cfg.mk override.
20391         (sc_po_check): Allow VPATH use.
20392         Reported by Jiri Denemark.
20393
20394 2011-03-16  Jim Meyering  <meyering@redhat.com>
20395
20396         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20397         Before, you would have had to create one .x-sc_ file per rule in order
20398         to exempt offending files.  Now, you may instead use a Make variable --
20399         usually defined in cfg.mk -- whose name identifies the affected rule.
20400         * top/maint.mk (_sc_excl): Define.
20401         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20402         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20403
20404 2011-03-13  Bruno Haible  <bruno@clisp.org>
20405
20406         ignore-value tests: Avoid warnings.
20407         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20408         empty for gcc < 3.4.
20409
20410 2011-03-13  Bruno Haible  <bruno@clisp.org>
20411
20412         passfd: Fix link error on Solaris.
20413         * modules/passfd (Description): Correct.
20414         (Depends-on): Add socketlib.
20415         (Link): New section.
20416         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20417
20418 2011-03-13  Bruno Haible  <bruno@clisp.org>
20419
20420         passfd: Fix link error on AIX 5.2.
20421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20422
20423 2011-03-13  Bruno Haible  <bruno@clisp.org>
20424
20425         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20426         * lib/sys_socket.in.h: Include <stddef.h>.
20427         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20428         CMSG_FIRSTHDR. Remove unused variable.
20429
20430 2011-03-13  Bruno Haible  <bruno@clisp.org>
20431
20432         passfd: Fix compilation error on OpenBSD.
20433         * lib/passfd.c: Include <sys/uio.h>.
20434
20435 2011-03-13  Bruno Haible  <bruno@clisp.org>
20436
20437         passfd test: Fix warnings.
20438         * tests/test-passfd.c: Include <sys/wait.h>.
20439         (main): Fix typo.
20440
20441 2011-03-13  Bruno Haible  <bruno@clisp.org>
20442
20443         passfd module, part 4, tweaks.
20444         * tests/test-passfd.c: Reorder includes.
20445         (main): Fix perror and printf calls.
20446
20447 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20448
20449         passfd module, part 4.
20450         * modules/passfd-tests: New file.
20451         * tests/test-passfd.c: New file.
20452
20453 2011-03-13  Jim Meyering  <meyering@redhat.com>
20454
20455         Makefile: rely on GNU make; derive syntax-check rule names
20456         Rather than requiring that each sc_ rule be listed as a dependent
20457         of "check", use features of GNU make to derive the list.
20458         * Makefile (syntax-check-rules): Define.
20459         (check): Depend on the new variable, not the hard-coded list.
20460
20461 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20462             Bruno Haible  <bruno@clisp.org>
20463
20464         passfd module, part 3.
20465         * lib/passfd.h (recvfd): Add a flags argument.
20466         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20467         (recvfd): Add a flags argument.
20468         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20469         exists.
20470         * modules/passfd (Depends-on): Add cloexec.
20471         Suggested by Eric Blake.
20472
20473 2011-03-13  Bruno Haible  <bruno@clisp.org>
20474
20475         passfd module, part 2, tweaks.
20476         * modules/passfd (Files): Reorder.
20477         (Depends-on): Remove errno.
20478         (Include): Remove <sys/socket.h>, <sys/un.h>.
20479         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20480         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20481         specification header. Include <sys/socket.h> always. Don't include
20482         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20483         (sendfd): Clarify that it sets errno when it fails.
20484         (recvfd): Fix specification.
20485
20486 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20487
20488         passfd module, part 2.
20489         * modules/passfd: New file.
20490         * lib/passfd.h: New file.
20491         * lib/passfd.c: New file.
20492
20493 2011-03-12  Bruno Haible  <bruno@clisp.org>
20494
20495         wcswidth, mbswidth: Avoid integer overflow.
20496         * lib/wcswidth.c: Include <limits.h>.
20497         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20498         * lib/mbswidth.c: Include <limits.h>.
20499         (mbsnwidth): Avoid 'int' overflow.
20500         Reported by Jim Meyering.
20501
20502 2011-03-12  Bruno Haible  <bruno@clisp.org>
20503
20504         futimens, utimensat: Avoid endless recursion on Solaris 10.
20505         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20506         Solaris.
20507         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20508         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20509
20510 2011-03-11  Jim Meyering  <meyering@redhat.com>
20511
20512         maint.mk: relax a regexp to accommodate other formatting styles
20513         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20514         between "ngettext" and the following "(".
20515
20516 2011-03-11  Pádraig Brady <P@draigBrady.com>
20517
20518         maint.mk: suppress a false positive warning
20519         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20520         diagnostics are marked with ngettext.
20521
20522 2011-03-10  Eric Blake  <eblake@redhat.com>
20523
20524         wchar: add explicit dependencies, for Tru64
20525         * modules/mbmemcasecoll (Depends-on): Add wchar.
20526         * modules/mbtowc (Depends-on): Likewise.
20527         * modules/vasnprintf (Depends-on): Likewise.
20528         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20529         * modules/wctomb (Depends-on): Likewise.
20530         Reported by Peter O'Gorman.
20531
20532 2011-03-08  Bruno Haible  <bruno@clisp.org>
20533
20534         passfd module, part 1, tweaks.
20535         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20536         Improve indentation. Improve AC_MSG_CHECKING messages.
20537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20538         gl_SOCKET_FAMILIES.
20539
20540 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20541
20542         passfd module, part 1.
20543         * m4/afunix.m4: New file.
20544         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20545         sockets.
20546
20547 2011-03-08  Bruno Haible  <bruno@clisp.org>
20548
20549         regex-quote: New API.
20550         * lib/regex-quote.h: Include <stdbool.h>.
20551         (struct regex_quote_spec): New type.
20552         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20553         New declarations.
20554         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20555         'const struct regex_quote_spec *' argument.
20556         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20557         (pcre_special): New constant.
20558         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20559         New functions.
20560         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20561         'const struct regex_quote_spec *' argument.
20562         * modules/regex-quote (Depends-on): Add stdbool.
20563         * tests/test-regex-quote.c (check): Update for new API. Add test for
20564         anchored results.
20565         * NEWS: Mention the API change.
20566         Reported by Reuben Thomas and Eric Blake.
20567
20568 2011-03-06  Bruno Haible  <bruno@clisp.org>
20569
20570         regex-quote: Fix creation of POSIX extended regular expressions.
20571         * lib/regex-quote.c (ere_special): Add grouping and alternation
20572         operators.
20573
20574 2011-03-05  Bruno Haible  <bruno@clisp.org>
20575
20576         doc: Improve doc regarding autopoint vs. gnulib.
20577         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20578         disable autopoint while running autoreconf.
20579         Suggested by Ralf Wildenhues.
20580
20581 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20582
20583         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20584         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20585
20586 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20587
20588         parse-duration: remove xalloc.h dependency
20589         * lib/parse-duration.c (parse_period): handle NULL return from
20590         strdup instead of calling xstrdup().
20591         * modules/parse-duration: remove "xalloc" dependency
20592
20593 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20594
20595         bootstrap: honor m4_base when running aclocal
20596         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20597
20598 2011-03-02  Jim Meyering  <meyering@redhat.com>
20599
20600         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20601         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20602         on request from Matt Booth.
20603
20604 2011-03-01  Eric Blake  <eblake@redhat.com>
20605
20606         test-link: work on Hurd
20607         * tests/test-link.h (test_link): Hurd rejects linking directories
20608         with EISDIR instead of the POSIX-mandated EPERM.
20609
20610 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20611
20612         stdio: simplify by moving files to printf-posix, sigpipe
20613         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20614         since this symbol is needed only if printf is replaced.
20615         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20616         Require gl_ASM_SYMBOL_PREFIX.
20617         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20618         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20619         (Depends-on): Add 'raise'.
20620         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20621         * modules/stdio (Files): Remove lib/stdio-write.c,
20622         m4/asm-underscore.m4.
20623         (Depends-on): Remove 'raise'.
20624
20625         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20626         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20627         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20628         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20629
20630 2011-02-28  Bruno Haible  <bruno@clisp.org>
20631
20632         localcharset: Assume ANSI C behaviour of free().
20633         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20634         calling free().
20635         Suggested by Simon Josefsson <simon@josefsson.org>.
20636
20637 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20638             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20639             Bruno Haible  <bruno@clisp.org>  (tiny change)
20640
20641         On Cygwin, use /proc file system instead of win32 API.
20642         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20643         Win32 file names.
20644         (DllMain): Simplify by removing Cygwin specific code.
20645         (find_shared_library_fullname): Use Linux specific implementation also
20646         for Cygwin.
20647         (get_shared_library_fullname): Update accordingly.
20648         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20649         Win32 file names.
20650         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20651         Cygwin specific code.
20652
20653 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20654             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20655
20656         Fix OpenMP flag detection for various Fortran compilers.
20657         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20658         OpenMP-conditional compilation construct, to force compile
20659         failure with missing OpenMP flag.
20660         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20661
20662 2011-02-25  Eric Blake  <eblake@redhat.com>
20663
20664         strstr: expand test coverage
20665         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20666         compilation.
20667         * tests/test-memmem.c (main): Duplicate tests.
20668         * tests/test-strcasestr.c (main): Likewise.
20669         * tests/test-c-strcasestr.c (main): Likewise.
20670
20671 2011-02-25  Jim Meyering  <meyering@redhat.com>
20672
20673         maint.mk: detect missing-NL-at-EOF, too
20674         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20675         it also detects when a file lacks a newline at EOF.
20676         (require_exactly_one_NL_at_EOF_): Renamed from
20677         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20678         since people may well have .x-sc_... file names tied to the
20679         existing name.  Suggested by Eric Blake.
20680
20681 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20682
20683         dirname: move m4/dos.m4 functionality into lib/dosname.h
20684
20685         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20686         extracts symbols from it, puts them into config.h; but it's much
20687         easier to use the symbols directly.  filename.h already does this,
20688         but it disagrees with dos.m4 in some respects.  This patch
20689         introduces a different include file dosname.h that packages up
20690         dos.m4, and then later we can work on merging filename.h and
20691         dosname.h.  Applications that need only the easy-to-configure
20692         symbols should consider including dosname.h rather than dirname.h.
20693         * NEWS: Mention incompatible changes.
20694         * m4/dos.m4: Remove.
20695         * lib/dosname.h, modules/dosname: New files.
20696         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20697         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20698         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20699         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20700         Include dosname.h, not dirname.h.
20701         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20702         Include dosname.h, for definitions of symbols like ISSLASH
20703         that used to be in config.h.
20704         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20705         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20706         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20707         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20708         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20709         * modules/rmdir (Files): Likewise.
20710         * modules/stat (Files): Likewise.
20711         * modules/unlink (Files): Likewise.
20712         * modules/dirname-lgpl (Depends-on): Add dosname.
20713         * modules/lstat (Depends-on): Likewise.
20714         * modules/openat (Depends-on): Likewise.
20715         * modules/rmdir (Depends-on): Likewise.
20716         * modules/savewd (Depends-on): Likewise.
20717         * modules/stat (Depends-on): Likewise.
20718         * modules/unlink (Depends-on): Likewise.
20719         * modules/openat (Depends-on): Remove dirname-lgpl.
20720         * modules/savewd (Depends-on): Likewise.
20721         * tests/test-dirname.c: Do not use removed symbols like
20722         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20723         the remaining symbols, e.g., ISSLASH ('\\').
20724
20725 2011-02-25  Eric Blake  <eblake@redhat.com>
20726
20727         strstr: revert patches that introduced bug and pessimization
20728         * lib/str-two-way.h: Add another reference.
20729         (two_way_short_needle, two_way_long_needle): Revert changes from
20730         2011-02-24; they pessimize search speed.
20731         (critical_factorization): Partially revert changes from
20732         2010-06-22; they violate the requirement that the left half of the
20733         needle be smaller than the period of the needle.
20734
20735 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20736
20737         filenamecat: remove unnecessary dependency on dirname-lgpl
20738         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20739         is no direct dependency, just an indirect one via filenamecat-lgpl.
20740
20741         remove: remove unnecessary use of m4/dos.m4
20742         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20743         * modules/remove (FILES): Remove m4/dos.m4.
20744
20745         * lib/openat-proc.c: Don't include dirname.h; not needed.
20746
20747         backupfile: remove unnecessary use of m4/dos.m4
20748         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20749         of its symbols are used by the backupfile code.  backupfile.c does
20750         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20751         for the rare case of programs that want all their backup file
20752         names to live within 8+3 limits, and dos.m4 doesn't address that.
20753         * modules/backupfile (Files): Remove m4/dos.m4.
20754
20755 2011-02-24  Jim Meyering  <meyering@redhat.com>
20756
20757         strstr: fix a bug whereby strstr would mistakenly return NULL
20758         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20759         in period calculation.
20760         (two_way_long_needle): Likewise.
20761         The original problem was reported by Mike Stump in
20762         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20763         Ralf Wildenhues provided the short needle and haystack.
20764         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20765         Add a more involved test to trigger the bug in two_way_long_needle.
20766
20767 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20768
20769         gnulib-tool: remove use of bold display in help screen
20770         * gnulib-tool (func_usage): Do not use bold display anymore in the
20771         help screen.  That was just meant to be a temporary emphasis for a
20772         backward-incompatible change.
20773
20774 2011-02-23  Bruno Haible  <bruno@clisp.org>
20775
20776         Fix misindentation of preprocessor directives.
20777         * lib/argp-namefrob.h: Reindent preprocessor directives.
20778         * lib/getopt_int.h (struct _getopt_data): Likewise.
20779         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20780         * lib/vasnprintf.c (decode_long_double): Likewise.
20781         * tests/test-argmatch.c: Insert blank lines, for clarity.
20782         * tests/test-exclude.c: Likewise.
20783
20784 2011-02-22  Bruno Haible  <bruno@clisp.org>
20785
20786         ioctl: Fix for MacOS X in 64-bit mode.
20787         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20788         value.
20789         Suggested by Eric Blake.
20790         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20791
20792 2011-02-22  Jim Meyering  <meyering@redhat.com>
20793
20794         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20795         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20796         in lib/.
20797
20798 2011-02-22  Eric Blake  <eblake@redhat.com>
20799
20800         maint: avoid any CDPATH issue
20801         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20802
20803         maint: adjust cpp indentation for my modules, as well
20804         * Makefile (sc_cpp_indent_check): Add my name.
20805         * lib/fbufmode.c: Filter through cppi.
20806         * lib/fpurge.c: Likewise.
20807         * lib/freadable.c: Likewise.
20808         * lib/freading.c: Likewise.
20809         * lib/fwritable.c: Likewise.
20810         * lib/fwriting.c: Likewise.
20811         * lib/sigaction.c: Likewise.
20812
20813 2011-02-22  Jim Meyering  <meyering@redhat.com>
20814
20815         maint: adjust cpp indentation to reflect nesting depth
20816         I.e., in a block of code that begins with an unnested "#if",
20817         put one space between the "#" in column 1 and following token.
20818         For example,
20819         -#include <sys/vfs.h>
20820         +# include <sys/vfs.h>
20821         Do this only in .c files that are part of a module I maintain.
20822         * lib/linkat.c: Filter through cppi.
20823         * lib/nanosleep.c: Likewise.
20824         * lib/openat.c: Likewise.
20825         * lib/openat-die.c: Likewise.
20826         * lib/dup3.c: Likewise.
20827         * lib/fchownat.c: Likewise.
20828         * lib/flock.c: Likewise.
20829         * lib/fsync.c: Likewise.
20830         * lib/fts.c: Likewise.
20831         * lib/getpass.c: Likewise.
20832         * lib/gettimeofday.c: Likewise.
20833         * lib/userspec.c: Likewise.
20834         * Makefile (sc_cpp_indent_check): New rule, to check this.
20835
20836 2011-02-22  Bruno Haible  <bruno@clisp.org>
20837
20838         New module 'wctomb'.
20839         * lib/stdlib.in.h (wctomb): New declaration.
20840         * lib/wctomb.c: New file.
20841         * lib/wctomb-impl.h: New file.
20842         * m4/wctomb.m4: New file.
20843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
20844         REPLACE_WCTOMB.
20845         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
20846         REPLACE_WCTOMB.
20847         * modules/wctomb: New file.
20848         * tests/test-stdlib-c++.cc: Test signature of wctomb.
20849         * doc/posix-functions/wctomb.texi: Mention the new module.
20850         * modules/wctob (Depends-on): Add wctomb.
20851
20852 2011-02-22  Bruno Haible  <bruno@clisp.org>
20853
20854         New module 'mbtowc'.
20855         * lib/stdlib.in.h (mbtowc): New declaration.
20856         * lib/mbtowc.c: New file.
20857         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
20858         * m4/mbtowc.m4: New file.
20859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
20860         REPLACE_MBTOWC.
20861         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
20862         REPLACE_MBTOWC.
20863         * modules/mbtowc: New file.
20864         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
20865         * doc/posix-functions/mbtowc.texi: Mention the new module.
20866         * modules/btowc (Depends-on): Add mbtowc.
20867
20868 2011-02-22  Bruno Haible  <bruno@clisp.org>
20869
20870         wcrtomb: Add more tests for native Windows platforms.
20871         * tests/test-wcrtomb-w32-1.sh: New file.
20872         * tests/test-wcrtomb-w32-2.sh: New file.
20873         * tests/test-wcrtomb-w32-3.sh: New file.
20874         * tests/test-wcrtomb-w32-4.sh: New file.
20875         * tests/test-wcrtomb-w32-5.sh: New file.
20876         * tests/test-wcrtomb-w32.c: New file.
20877         * modules/wcrtomb-tests (Files): Add them.
20878         (Makefile.am): Arrange to run these tests.
20879         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
20880         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
20881
20882 2011-02-20  Bruno Haible  <bruno@clisp.org>
20883
20884         wcrtomb: Enhance test.
20885         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
20886
20887 2011-02-20  Bruno Haible  <bruno@clisp.org>
20888
20889         mbrtowc: Tiny optimization.
20890         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
20891
20892 2011-02-20  Jim Meyering  <meyering@redhat.com>
20893
20894         test-exclude.c: remove unmatched #endif
20895         * tests/test-exclude.c: Remove stray #endif, left over from
20896         the change of a week ago.
20897
20898 2011-02-19  Jim Meyering  <meyering@redhat.com>
20899
20900         git-version-gen: skip "-dirty" check when appropriate
20901         * build-aux/git-version-gen: Don't run any git commands when the
20902         version string comes from .tarball-version.  Prior to this, we
20903         would run git update-index --refresh even from a just-unpacked
20904         tarball directory, and that could affect a .git/ directory in a
20905         parent of the build directory.  Reported by Mike Frysinger.
20906
20907 2011-02-19  Bruno Haible  <bruno@clisp.org>
20908
20909         unictype/property-byname: Reduce the size of the 'data' segment.
20910         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
20911
20912 2011-02-19  Bruno Haible  <bruno@clisp.org>
20913
20914         unictype/scripts: Reduce the size of the 'data' segment.
20915         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
20916         '%pic'.
20917         * lib/unictype/scripts_byname.gperf: Regenerated.
20918
20919 2011-02-19  Bruno Haible  <bruno@clisp.org>
20920
20921         stdint: Update documentation.
20922         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
20923
20924 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20925
20926         stdint: omit redundant check for wchar.h
20927         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
20928         always tests whether wchar.h exists, so remove the now-redundant test.
20929
20930 2011-02-18  Bruno Haible  <bruno@clisp.org>
20931
20932         stdint: Cut dependency to module 'wchar'.
20933         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
20934         include the necessary prerequisites.
20935         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
20936         * modules/stdint (Depends-on): Remove wchar.
20937         (Makefile.am): Substitute HAVE_WCHAR_H.
20938         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
20939
20940 2011-02-18  Eric Blake  <eblake@redhat.com>
20941
20942         longlong: skip, rather than fail, on cross-compilation
20943         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
20944         when cross-compiling; regression from 2011-02-16.
20945
20946 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20947
20948         * NEWS: Mention 2011-02-08 change to stdlib.
20949
20950 2011-02-17  Bruno Haible  <bruno@clisp.org>
20951
20952         getloadavg: Add comments about platforms.
20953         * m4/getloadavg.m4: Add comment.
20954         * lib/getloadavg.c: Likewise.
20955
20956 2011-02-17  Bruno Haible  <bruno@clisp.org>
20957
20958         getloadavg: Fix link error on Solaris 2.6.
20959         * modules/getloadavg (Link): New section.
20960         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20961         linking test-getloadavg.
20962         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20963         getloadavg.
20964
20965 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20966
20967         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20968         It was 'int', but this doesn't match the IRIX 6.5 manual.
20969         Suggested by Bruno Haible in
20970         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20971
20972 2011-02-17  Bruno Haible  <bruno@clisp.org>
20973
20974         havelib: Fix comments.
20975         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20976         change.
20977
20978 2011-02-17  Bruno Haible  <bruno@clisp.org>
20979
20980         havelib: Update config.rpath.
20981         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20982
20983 2011-02-17  Bruno Haible  <bruno@clisp.org>
20984
20985         getloadavg test: Add some plausibility checks.
20986         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20987         is improbable.
20988
20989 2011-02-16  Eric Blake  <eblake@redhat.com>
20990
20991         maintainer-makefile: make syntax-check a no-op from tarballs
20992         * top/maint.mk (no-vc-detected): New rule.
20993         (local-checks-available): Use it to avoid hanging if someone tries
20994         'make syntax-check' from a tarball.  Also append to any non-syntax
20995         checks already defined in cfg.mk.
20996
20997 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20998
20999         longlong: tune, particularly for common case of c99
21000
21001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21002         or running anything if c99, or if unsigned long long int does not
21003         work.  In either case, we know the answer without further tests.
21004         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21005         it at most once, and use its results for both long long int and
21006         unsigned long long int.  This is more likely to be efficient in
21007         the common case where the program wants to check for both long
21008         long int and unsigned long long int.
21009         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21010         since the answer is already known.
21011
21012 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21013
21014         getloadavg: set errno
21015         * lib/getloadavg.c: Set errno when returning -1.  If no other
21016         error number looks appropriate, set it to ENOSYS if the getloadavg
21017         looks like it can't possibly ever work, ENOTSUP otherwise.
21018         Suggested by Bruno Haible in
21019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21020
21021         getloadavg: trim unused parts and speed up 'configure'
21022         * NEWS: Document this.
21023         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21024         always compiled if getloadavg is absent.
21025         Move test code to ...
21026         * tests/test-getloadavg.c: New file, containing previous
21027         contents of test from lib/getloadavg.c.  It also contains
21028         suggestions by Bruno Haible in
21029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21030         * modules/getloadavg-tests: New file.
21031         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21032         Do tests in the same order as they're needed for getloadavg.c.
21033         Omit setgid-related tests that generate symbols KMEM_GROUP,
21034         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21035         Do only the tests that are needed to see whether the system has
21036         getloadavg, moving the other tests into ...
21037         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21038         NLIST_NAME_UNION; nobody should be using it.  Do not define
21039         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21040         relevant, as the user of this module shouldn't care how getloadavg
21041         is implemented.
21042
21043         getloadavg: omit unused var
21044         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21045
21046 2011-02-15  Jim Meyering  <meyering@redhat.com>
21047
21048         doc: update users.txt
21049         * users.txt: Update iwhd's URL.
21050
21051 2011-02-13  Bruno Haible  <bruno@clisp.org>
21052
21053         Consistent macro naming for macros that use GCC __attribute__.
21054         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21055         _ATTRIBUTE_NONNULL_.
21056         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21057         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21058         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21059         ATTRIBUTE_DEPRECATED.
21060         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21061         ATTRIBUTE_NORETURN.
21062         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21063         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21064         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21065         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21066         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21067         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21068         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21069         ATTRIBUTE_SENTINEL.
21070         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21071         ATTRIBUTE_RETURN_CHECK.
21072         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21073         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21074         ATTRIBUTE_NORETURN.
21075         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21076         Reported by Paul Eggert.
21077
21078 2011-02-13  Bruno Haible  <bruno@clisp.org>
21079
21080         Don't interfere with a program's definition of __attribute__.
21081         * lib/argp.h (__attribute__): Remove definition.
21082         (_GL_ATTRIBUTE_FORMAT): New macro.
21083         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21084         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21085         (_GL_ATTRIBUTE_FORMAT): New macro.
21086         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21087         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21088         GCC 3 or newer.
21089         * lib/error.h (__attribute__): Remove definition.
21090         (_GL_ATTRIBUTE_FORMAT): New macro.
21091         (error, error_at_line): Use it.
21092         * lib/hash.h (__attribute__): Remove definition.
21093         (ATTRIBUTE_WUR): Update definition. Define always.
21094         * lib/openat.h (__attribute__): Remove definition.
21095         (ATTRIBUTE_NORETURN): Update definition. Define always.
21096         * lib/sigpipe-die.h (__attribute__): Remove definition.
21097         (ATTRIBUTE_NORETURN): Update definition. Define always.
21098         * lib/vasnprintf.h (__attribute__): Remove definition.
21099         (_GL_ATTRIBUTE_FORMAT): New macro.
21100         (asnprintf, vasnprintf): Use it.
21101         * lib/xalloc.h (__attribute__): Remove definition.
21102         (ATTRIBUTE_NORETURN): Update definition. Define always.
21103         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21104         * lib/xmemdup0.h (__attribute__): Remove definition.
21105         (ATTRIBUTE_NORETURN): Update definition. Define always.
21106         * lib/xprintf.h (__attribute__): Remove definition.
21107         (_GL_ATTRIBUTE_FORMAT): New macro.
21108         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21109         * lib/xstrtol.h (__attribute__): Remove definition.
21110         (ATTRIBUTE_NORETURN): Update definition. Define always.
21111         * lib/xvasprintf.h (__attribute__): Remove definition.
21112         (_GL_ATTRIBUTE_FORMAT): New macro.
21113         (xasprintf, xvasprintf): Use it.
21114         * tests/test-argmatch.c (__attribute__): Remove definition.
21115         (ATTRIBUTE_NORETURN): Update definition. Define always.
21116         * tests/test-exclude.c (__attribute__): Remove definition.
21117         (ATTRIBUTE_NORETURN): Update definition. Define always.
21118         Reported by Paul Eggert.
21119
21120 2011-02-13  Bruno Haible  <bruno@clisp.org>
21121
21122         mbrtowc: Add more tests for native Windows platforms.
21123         * tests/test-mbrtowc-w32-1.sh: New file.
21124         * tests/test-mbrtowc-w32-2.sh: New file.
21125         * tests/test-mbrtowc-w32-3.sh: New file.
21126         * tests/test-mbrtowc-w32-4.sh: New file.
21127         * tests/test-mbrtowc-w32-5.sh: New file.
21128         * tests/test-mbrtowc-w32.c: New file.
21129         * modules/mbrtowc-tests (Files): Add them.
21130         (Makefile.am): Arrange to run these tests.
21131         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21132         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21133
21134 2011-02-13  Bruno Haible  <bruno@clisp.org>
21135
21136         mbrtowc: Work around native Windows bug.
21137         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21138         guess when no suitable locale for testing was found.
21139         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21140
21141 2011-02-13  Bruno Haible  <bruno@clisp.org>
21142
21143         mbsinit: Work around mingw bug.
21144         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21145         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21146         Windows.
21147         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21148
21149 2011-02-13  Bruno Haible  <bruno@clisp.org>
21150
21151         mbsinit: Don't crash for a NULL argument.
21152         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21153         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21154
21155 2011-02-13  Bruno Haible  <bruno@clisp.org>
21156
21157         Don't interfere with a program's definition of __attribute__.
21158         * lib/stdio.in.h (__attribute__): Remove definition.
21159         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21160         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21161         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21162         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21163         * lib/string.in.h (__attribute__): Remove definition.
21164         Reported by Paul Eggert.
21165
21166 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21167
21168         stdlib: don't get in the way of non-GCC __attribute__
21169         See thread starting at
21170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21171         Revert previous stdlib change, installing the following instead:
21172         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21173         to get in the way of a non-GCC compiler that supports __attribute__.
21174         (_GL_ATTRIBUTE_RETURN): New macro.
21175         (_Exit): Use it instead of __attribute__.
21176
21177 2011-02-12  Bruno Haible  <bruno@clisp.org>
21178
21179         quotearg test: Avoid test failure on mingw.
21180         * tests/test-quotearg.sh: Convert the locale identifier from native
21181         Windows syntax to Unix syntax.
21182
21183 2011-02-12  Bruno Haible  <bruno@clisp.org>
21184
21185         setlocale: Prefer gnulib's override over libintl's override.
21186         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21187         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21188         GNULIB_defined_setlocale is set.
21189
21190 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21191
21192         stdlib: support non-GCC __attribute__
21193
21194         Fix a serious and tricky problem encountered when attempting to
21195         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21196         5.5, but it crashed due to memory corruption on Solaris 10 with
21197         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21198         bits that are otherwise zero.  This tagging is optional inside
21199         Emacs but is preferred and is used when __attribute__ ((__aligned
21200         (8))) works, as it does with both recent-enough GCC and with Sun C
21201         5.11.  However, Sun C 5.11 is not GCC and does not #define
21202         __GNUC__ and __GNUC_MINOR__.
21203
21204         When I added the getloadavg module to Emacs, it brought in
21205         stdlib.in.h, which contained this fragment:
21206
21207            #ifndef __attribute__
21208            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21209            #  define __attribute__(Spec)   /* empty */
21210            # endif
21211            #endif
21212
21213         When files that include <stdlib.h> were compiled with Sun C 5.11,
21214         the above code disabled __attribute__ ((__aligned (8))), which
21215         caused variables to not be properly aligned, which eventually led
21216         to the pointer corruption mentioned above.  (This was a bit hard
21217         to diagnose, unfortunately.)
21218
21219         Several "#define __attribute__(X) /* empty */" code snippets need
21220         to be eradicated from Gnulib to work with non-GCC compilers that
21221         support __attribute__.  The Autoconf way to do this is to test for
21222         each kind of attribute that we want support for, and selectively
21223         enable that in source code.
21224
21225         Fix this problem just for stdlib.h, by adding a test for the
21226         __noreturn__ attribute, and change stdlib.in.h to use that test
21227         when needed.  This technique can be easily generalized to the
21228         other *.in.h files and attributes, and a similar technique can be
21229         used for *.h and *.c files.  This patch is enough to solve the
21230         problem for Emacs + getloadavg, and I thought I'd publish it for
21231         feedback before undertaking further, similar fixes in other
21232         modules.
21233
21234         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21235         because it's not needed for stdlib.h.  It merely substitutes the
21236         value directly into stdlib.h.  We may well need to #define it, or
21237         similar symbols, for other modules, but it's nice to also have an
21238         option to not #define it for applications like Emacs that do not
21239         need it.
21240
21241         * lib/stdlib.in.h (__attribute__): Do not #define.
21242         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21243         be defined only if the _Exit module is also used.
21244         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21246         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21247         platforms.
21248         * modules/_Exit (Files): Add m4/attribute.m4.
21249         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21250         * m4/attribute.m4: New file.
21251
21252 2011-02-12  Bruno Haible  <bruno@clisp.org>
21253
21254         wcsrtombs: Work around bug on native Windows.
21255         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21256         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21257         instead of len.
21258         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21259
21260 2011-02-12  Bruno Haible  <bruno@clisp.org>
21261
21262         mbsrtowcs: Work around bug on native Windows.
21263         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21264         against mingw bug.
21265         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21266
21267 2011-02-12  Bruno Haible  <bruno@clisp.org>
21268
21269         Avoid setlocale bugs in tests.
21270         * modules/btowc (Dependencies): Add setlocale.
21271         * modules/c-strcase (Dependencies): Likewise.
21272         * modules/mbmemcasecmp (Dependencies): Likewise.
21273         * modules/mbmemcasecoll (Dependencies): Likewise.
21274         * modules/mbrtowc (Dependencies): Likewise.
21275         * modules/mbscasecmp (Dependencies): Likewise.
21276         * modules/mbscasestr (Dependencies): Likewise.
21277         * modules/mbschr (Dependencies): Likewise.
21278         * modules/mbscspn (Dependencies): Likewise.
21279         * modules/mbsinit (Dependencies): Likewise.
21280         * modules/mbsncasecmp (Dependencies): Likewise.
21281         * modules/mbsnrtowcs (Dependencies): Likewise.
21282         * modules/mbspbrk (Dependencies): Likewise.
21283         * modules/mbspcasecmp (Dependencies): Likewise.
21284         * modules/mbsrchr (Dependencies): Likewise.
21285         * modules/mbsrtowcs (Dependencies): Likewise.
21286         * modules/mbsspn (Dependencies): Likewise.
21287         * modules/mbsstr (Dependencies): Likewise.
21288         * modules/nl_langinfo (Dependencies): Likewise.
21289         * modules/quotearg (Dependencies): Likewise.
21290         * modules/unicase/locale-language (Dependencies): Likewise.
21291         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21292         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21293         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21294         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21295         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21296         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21297         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21298         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21299         * modules/vasnprintf-posix (Dependencies): Likewise.
21300         * modules/wcrtomb (Dependencies): Likewise.
21301         * modules/wcsnrtombs (Dependencies): Likewise.
21302         * modules/wcsrtombs (Dependencies): Likewise.
21303
21304 2011-02-12  Bruno Haible  <bruno@clisp.org>
21305
21306         setlocale: Workaround native Windows bug.
21307         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21308         succeeds but sets LC_CTYPE to "C", report a failure.
21309         * tests/test-setlocale2.sh: New file.
21310         * tests/test-setlocale2.c: New file.
21311         * modules/setlocale-tests (Files): Add the new files.
21312         (Makefile.am): Enable test-setlocale2.sh test.
21313         * doc/posix-functions/setlocale.texi: Mention workaround.
21314
21315 2011-02-11  Bruno Haible  <bruno@clisp.org>
21316
21317         Tests for module 'setlocale'.
21318         * modules/setlocale-tests: New file.
21319         * tests/test-setlocale1.sh: New file.
21320         * tests/test-setlocale1.c: New file.
21321
21322         New module 'setlocale'.
21323         * lib/locale.in.h (setlocale): New declaration.
21324         * lib/setlocale.c: New file, based on
21325         gettext/gettext-runtime/intl/setlocale.c.
21326         * m4/setlocale.m4: New file.
21327         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21328         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21329         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21330         REPLACE_SETLOCALE.
21331         * modules/setlocale: New file.
21332         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21333         * doc/posix-functions/setlocale.texi: Mention the new module.
21334
21335 2011-02-11  Bruno Haible  <bruno@clisp.org>
21336
21337         Prepare for locale dependent tests on mingw.
21338         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21339         because it has the wrong locale encoding.
21340         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21341         French_France.1252 instead of "fr".
21342         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21343         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21344         because it has the wrong locale encoding.
21345         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21346         native Windows, try Turkish_Turkey.65001.
21347         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21348         Chinese_China.54936.
21349
21350         Prepare for locale dependent tests on mingw.
21351         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21352         differently.
21353         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21354         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21356         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21357
21358 2011-02-11  Eric Blake  <eblake@redhat.com>
21359
21360         strptime: avoid compiler warnings
21361         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21362         compiler warnings about dead code.
21363         Reported by Daniel P. Berrange.
21364
21365 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21366
21367         doc: update users.txt
21368         * users.txt: Add rcs.
21369
21370 2011-02-10  John W. Eaton  <jwe@gnu.org>
21371
21372         doc: update users.txt
21373         * users.txt: Add octave.
21374
21375 2011-02-10  Jim Meyering  <meyering@redhat.com>
21376
21377         doc: update users.txt
21378         * users.txt: Add iwhd.
21379
21380 2011-02-09  Bruno Haible  <bruno@clisp.org>
21381
21382         gnulib-tool: Make copyright notice adjustment more robust.
21383         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21384         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21385         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21386         License".
21387         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21388
21389 2011-02-06  Bruno Haible  <bruno@clisp.org>
21390
21391         New module 'towctrans'.
21392         * modules/towctrans: New file.
21393         * lib/wctype.in.h (towctrans): New declaration.
21394         * lib/towctrans.c: New file.
21395         * lib/towctrans-impl.h: New file.
21396         * m4/towctrans.m4: New file.
21397         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21398         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21399         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21400         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21401         * doc/posix-functions/towctrans.texi: Mention the new module.
21402
21403 2011-02-06  Bruno Haible  <bruno@clisp.org>
21404
21405         New module 'wctrans'.
21406         * modules/wctrans: New file.
21407         * lib/wctype.in.h (wctrans): New declaration.
21408         * lib/wctrans.c: New file.
21409         * lib/wctrans-impl.h: New file.
21410         * m4/wctrans.m4: New file.
21411         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21412         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21413         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21414         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21415         * doc/posix-functions/wctrans.texi: Mention the new module.
21416
21417 2011-02-06  Bruno Haible  <bruno@clisp.org>
21418
21419         New module 'iswctype'.
21420         * modules/iswctype: New file.
21421         * lib/wctype.in.h (iswctype): New declaration.
21422         * lib/iswctype.c: New file.
21423         * lib/iswctype-impl.h: New file.
21424         * m4/iswctype.m4: New file.
21425         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21426         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21427         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21428         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21429         * doc/posix-functions/iswctype.texi: Mention the new module and the
21430         HP-UX 11.00 problem.
21431
21432 2011-02-06  Bruno Haible  <bruno@clisp.org>
21433
21434         New module 'wctype'.
21435         * modules/wctype: Change to represent the wctype() substitute.
21436         * lib/wctype.in.h (wctype): New declaration.
21437         * lib/wctype.c: New file.
21438         * lib/wctype-impl.h: New file.
21439         * m4/wctype.m4: New file.
21440         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21441         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21442         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21443         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21444         * doc/posix-functions/wctype.texi: Mention the new module and the
21445         HP-UX 11.00 problem.
21446
21447 2011-02-06  Bruno Haible  <bruno@clisp.org>
21448
21449         wctype-h: Ensure wctype_t and wctrans_t are defined.
21450         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21451         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21452         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21453         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21454         HAVE_WCTRANS_T.
21455         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21456
21457 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21458
21459         flock: fix license typo
21460
21461         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21462         omitted.
21463
21464 2011-02-08  Bruno Haible  <bruno@clisp.org>
21465
21466         Split large sed scripts, for HP-UX sed.
21467         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21468         to avoid HP-UX limit of 99 commands, in the near future.
21469         * modules/stdlib (Makefile.am): Likewise.
21470         * modules/unistd (Makefile.am): Likewise.
21471         * modules/wchar (Makefile.am): Likewise.
21472         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21473         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21475
21476 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21477             Bruno Haible  <bruno@clisp.org>
21478
21479         stdlib: improve random_r modularization
21480         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21481         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21482         you also need the random_r module to get this material right.
21483         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21484         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21485         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21486
21487 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         stdlib: don't depend on stdint
21490         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21491         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21492         be independent of whether stdint.h is needed.
21493         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21494         here, instead of ...
21495         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21496         struct random_data should be using the random_r module, not just
21497         the stdlib module (which wouldn't make sense: what package needs
21498         just struct random_data without also needing random_r?).
21499         * modules/stdlib (Depends-on): Remove stdint.
21500
21501         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21502         See the thread rooted at
21503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21504         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21505         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21506         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21507         __VMS)); previously it was always included (via fcntl--.h).
21508         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21509         hand; this is good enough for load averages.  Also, do not use
21510         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21511         flags directly if available and don't bother otherwise.  (Packages
21512         that need the extra reliability should use the modules that define
21513         these flags on older platforms that lack them.)
21514         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21515         fcntl-safer.
21516
21517 2011-02-08  Jim Meyering  <meyering@redhat.com>
21518
21519         di-set.h, ino-map.h: add multiple-inclusion guard
21520         Technically, the guard is required only for ino-map.h, due to its
21521         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21522         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21523         * lib/ino-map.h: Likewise.
21524
21525 2011-02-06  Bruno Haible  <bruno@clisp.org>
21526
21527         iswblank: Ensure declaration on glibc systems.
21528         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21529         * modules/iswblank (Dependencies): Add 'extensions'.
21530         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21531
21532 2011-02-06  Bruno Haible  <bruno@clisp.org>
21533
21534         New module 'iswblank'.
21535         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21536         * modules/iswblank: New file.
21537         * modules/wctype-h (Files): Remove lib/iswblank.c.
21538         (Makefile.am): Substitute GNULIB_ISWBLANK.
21539         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21540         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21541         (gl_WCTYPE_H_DEFAULTS): New macro.
21542         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21543         * modules/iswblank-tests: New file.
21544         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21545         * tests/test-wctype-h.c (main): Remove iswblank tests.
21546         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21547         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21548         of 'wctype-h'.
21549         * NEWS: Mention the change.
21550         * modules/mbchar (Depends-on): Add iswblank.
21551
21552 2011-02-08  Bruno Haible  <bruno@clisp.org>
21553
21554         di-set tests: Refactor.
21555         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21556         unnecessary includes.
21557         (ASSERT): Remove macro.
21558         (main): Make C90 compliant by avoiding variable declaration after
21559         statement.
21560         * modules/di-set-tests (Files): Add tests/macros.h.
21561
21562 2011-02-08  Bruno Haible  <bruno@clisp.org>
21563
21564         ino-map tests: Refactor.
21565         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21566         unnecessary includes.
21567         (ASSERT): Remove macro.
21568         (main): Make C90 compliant by avoiding variable declaration after
21569         statement.
21570         * modules/ino-map-tests (Files): Add tests/macros.h.
21571
21572 2011-02-08  Jim Meyering  <meyering@redhat.com>
21573
21574         di-set: add "const" to a cast
21575         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21576         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21577
21578 2011-02-06  Bruno Haible  <bruno@clisp.org>
21579
21580         Rename module 'wctype' to 'wctype-h'.
21581         * modules/wctype-h: Renamed from modules/wctype.
21582         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21583         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21584         (Files, Depends-on, Makefile.am): Update.
21585         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21586         (Files, Makefile.am): Update.
21587         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21588         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21589         * doc/posix-headers/wctype.texi: Update.
21590         * doc/posix-functions/iswalnum.texi: Update.
21591         * doc/posix-functions/iswalpha.texi: Update.
21592         * doc/posix-functions/iswblank.texi: Update.
21593         * doc/posix-functions/iswcntrl.texi: Update.
21594         * doc/posix-functions/iswdigit.texi: Update.
21595         * doc/posix-functions/iswgraph.texi: Update.
21596         * doc/posix-functions/iswlower.texi: Update.
21597         * doc/posix-functions/iswprint.texi: Update.
21598         * doc/posix-functions/iswpunct.texi: Update.
21599         * doc/posix-functions/iswspace.texi: Update.
21600         * doc/posix-functions/iswupper.texi: Update.
21601         * doc/posix-functions/iswxdigit.texi: Update.
21602         * doc/posix-functions/towlower.texi: Update.
21603         * doc/posix-functions/towupper.texi: Update.
21604         * NEWS: Mention the change.
21605         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21606         * modules/mbchar (Dependencies): Likewise.
21607         * modules/mbswidth (Dependencies): Likewise.
21608         * modules/quotearg (Dependencies): Likewise.
21609         * modules/regex (Dependencies): Likewise.
21610         * modules/wcscasecmp (Dependencies): Likewise.
21611         * modules/wcsncasecmp (Dependencies): Likewise.
21612         * modules/wcwidth (Dependencies): Likewise.
21613
21614 2011-02-06  Bruno Haible  <bruno@clisp.org>
21615
21616         New module 'wcswidth'.
21617         * modules/wcswidth: New file.
21618         * lib/wchar.in.h (wcswidth): New declaration.
21619         * lib/wcswidth.c: New file.
21620         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21621         * m4/wcswidth.m4: New file.
21622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21624         REPLACE_WCSWIDTH.
21625         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21626         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21627         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21628         * doc/posix-functions/wcswidth.texi: Mention the new module.
21629
21630 2011-02-06  Bruno Haible  <bruno@clisp.org>
21631
21632         New module 'wcstok'.
21633         * modules/wcstok: New file.
21634         * lib/wchar.in.h (wcstok): New declaration.
21635         * lib/wcstok.c: New file.
21636         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21637         * m4/wcstok.m4: New file.
21638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21641         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21642         * doc/posix-functions/wcstok.texi: Mention the new module.
21643
21644 2011-02-06  Bruno Haible  <bruno@clisp.org>
21645
21646         New module 'wcsstr'.
21647         * modules/wcsstr: New file.
21648         * lib/wchar.in.h (wcsstr): New declaration.
21649         * lib/wcsstr.c: New file.
21650         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21651         * m4/wcsstr.m4: New file.
21652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21655         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21656         * doc/posix-functions/wcsstr.texi: Mention the new module.
21657
21658 2011-02-06  Bruno Haible  <bruno@clisp.org>
21659
21660         New module 'wcspbrk'.
21661         * modules/wcspbrk: New file.
21662         * lib/wchar.in.h (wcspbrk): New declaration.
21663         * lib/wcspbrk.c: New file.
21664         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21665         * m4/wcspbrk.m4: New file.
21666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21669         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21670         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21671
21672 2011-02-06  Bruno Haible  <bruno@clisp.org>
21673
21674         New module 'wcsspn'.
21675         * modules/wcsspn: New file.
21676         * lib/wchar.in.h (wcsspn): New declaration.
21677         * lib/wcsspn.c: New file.
21678         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21679         * m4/wcsspn.m4: New file.
21680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21683         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21684         * doc/posix-functions/wcsspn.texi: Mention the new module.
21685
21686 2011-02-06  Bruno Haible  <bruno@clisp.org>
21687
21688         New module 'wcscspn'.
21689         * modules/wcscspn: New file.
21690         * lib/wchar.in.h (wcscspn): New declaration.
21691         * lib/wcscspn.c: New file.
21692         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21693         * m4/wcscspn.m4: New file.
21694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21697         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21698         * doc/posix-functions/wcscspn.texi: Mention the new module.
21699
21700 2011-02-06  Bruno Haible  <bruno@clisp.org>
21701
21702         New module 'wcsrchr'.
21703         * modules/wcsrchr: New file.
21704         * lib/wchar.in.h (wcsrchr): New declaration.
21705         * lib/wcsrchr.c: New file.
21706         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21707         * m4/wcsrchr.m4: New file.
21708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21710         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21711         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21712         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21713
21714 2011-02-06  Bruno Haible  <bruno@clisp.org>
21715
21716         New module 'wcschr'.
21717         * modules/wcschr: New file.
21718         * lib/wchar.in.h (wcschr): New declaration.
21719         * lib/wcschr.c: New file.
21720         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21721         * m4/wcschr.m4: New file.
21722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21725         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21726         * doc/posix-functions/wcschr.texi: Mention the new module.
21727
21728 2011-02-06  Bruno Haible  <bruno@clisp.org>
21729
21730         New module 'wcsdup'.
21731         * modules/wcsdup: New file.
21732         * lib/wchar.in.h (wcsdup): New declaration.
21733         * lib/wcsdup.c: New file.
21734         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21735         * m4/wcsdup.m4: New file.
21736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21739         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21740         * doc/posix-functions/wcsdup.texi: Mention the new module.
21741
21742 2011-02-06  Bruno Haible  <bruno@clisp.org>
21743
21744         New module 'wcsxfrm'.
21745         * modules/wcsxfrm: New file.
21746         * lib/wchar.in.h (wcsxfrm): New declaration.
21747         * lib/wcsxfrm.c: New file.
21748         * lib/wcsxfrm-impl.h: New file.
21749         * m4/wcsxfrm.m4: New file.
21750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21753         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21754         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21755
21756 2011-02-06  Bruno Haible  <bruno@clisp.org>
21757
21758         New module 'wcscoll'.
21759         * modules/wcscoll: New file.
21760         * lib/wchar.in.h (wcscoll): New declaration.
21761         * lib/wcscoll.c: New file.
21762         * lib/wcscoll-impl.h: New file.
21763         * m4/wcscoll.m4: New file.
21764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21767         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21768         * doc/posix-functions/wcscoll.texi: Mention the new module.
21769
21770 2011-02-06  Bruno Haible  <bruno@clisp.org>
21771
21772         New module 'wcsncasecmp'.
21773         * modules/wcsncasecmp: New file.
21774         * lib/wchar.in.h (wcsncasecmp): New declaration.
21775         * lib/wcsncasecmp.c: New file.
21776         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21777         * m4/wcsncasecmp.m4: New file.
21778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21781         HAVE_WCSNCASECMP.
21782         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21783         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21784
21785 2011-02-06  Bruno Haible  <bruno@clisp.org>
21786
21787         New module 'wcscasecmp'.
21788         * modules/wcscasecmp: New file.
21789         * lib/wchar.in.h (wcscasecmp): New declaration.
21790         * lib/wcscasecmp.c: New file.
21791         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21792         * m4/wcscasecmp.m4: New file.
21793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21796         HAVE_WCSCASECMP.
21797         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21798         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21799
21800 2011-02-05  Bruno Haible  <bruno@clisp.org>
21801
21802         New module 'wcsncmp'.
21803         * modules/wcsncmp: New file.
21804         * lib/wchar.in.h (wcsncmp): New declaration.
21805         * lib/wcsncmp.c: New file.
21806         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21807         * m4/wcsncmp.m4: New file.
21808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21811         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21812         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21813
21814 2011-02-05  Bruno Haible  <bruno@clisp.org>
21815
21816         New module 'wcscmp'.
21817         * modules/wcscmp: New file.
21818         * lib/wchar.in.h (wcscmp): New declaration.
21819         * lib/wcscmp.c: New file.
21820         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
21821         * m4/wcscmp.m4: New file.
21822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
21823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
21824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
21825         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
21826         * doc/posix-functions/wcscmp.texi: Mention the new module.
21827
21828 2011-02-05  Bruno Haible  <bruno@clisp.org>
21829
21830         New module 'wcsncat'.
21831         * modules/wcsncat: New file.
21832         * lib/wchar.in.h (wcsncat): New declaration.
21833         * lib/wcsncat.c: New file.
21834         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
21835         * m4/wcsncat.m4: New file.
21836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
21837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
21838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
21839         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
21840         * doc/posix-functions/wcsncat.texi: Mention the new module.
21841
21842 2011-02-05  Bruno Haible  <bruno@clisp.org>
21843
21844         New module 'wcscat'.
21845         * modules/wcscat: New file.
21846         * lib/wchar.in.h (wcscat): New declaration.
21847         * lib/wcscat.c: New file.
21848         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
21849         * m4/wcscat.m4: New file.
21850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
21851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
21852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
21853         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
21854         * doc/posix-functions/wcscat.texi: Mention the new module.
21855
21856 2011-02-05  Bruno Haible  <bruno@clisp.org>
21857
21858         New module 'wcpncpy'.
21859         * modules/wcpncpy: New file.
21860         * lib/wchar.in.h (wcpncpy): New declaration.
21861         * lib/wcpncpy.c: New file.
21862         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
21863         * m4/wcpncpy.m4: New file.
21864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
21865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
21866         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
21867         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
21868         * doc/posix-functions/wcpncpy.texi: Mention the new module.
21869
21870 2011-02-05  Bruno Haible  <bruno@clisp.org>
21871
21872         New module 'wcsncpy'.
21873         * modules/wcsncpy: New file.
21874         * lib/wchar.in.h (wcsncpy): New declaration.
21875         * lib/wcsncpy.c: New file.
21876         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
21877         * m4/wcsncpy.m4: New file.
21878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
21879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
21880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
21881         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
21882         * doc/posix-functions/wcsncpy.texi: Mention the new module.
21883
21884 2011-02-05  Bruno Haible  <bruno@clisp.org>
21885
21886         New module 'wcpcpy'.
21887         * modules/wcpcpy: New file.
21888         * lib/wchar.in.h (wcpcpy): New declaration.
21889         * lib/wcpcpy.c: New file.
21890         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
21891         * m4/wcpcpy.m4: New file.
21892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
21893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
21894         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
21895         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
21896         * doc/posix-functions/wcpcpy.texi: Mention the new module.
21897
21898 2011-02-05  Bruno Haible  <bruno@clisp.org>
21899
21900         New module 'wcscpy'.
21901         * modules/wcscpy: New file.
21902         * lib/wchar.in.h (wcscpy): New declaration.
21903         * lib/wcscpy.c: New file.
21904         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
21905         * m4/wcscpy.m4: New file.
21906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
21907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
21908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
21909         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
21910         * doc/posix-functions/wcscpy.texi: Mention the new module.
21911
21912 2011-02-05  Bruno Haible  <bruno@clisp.org>
21913
21914         New module 'wcsnlen'.
21915         * modules/wcsnlen: New file.
21916         * lib/wchar.in.h (wcsnlen): New declaration.
21917         * lib/wcsnlen.c: New file.
21918         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
21919         * m4/wcsnlen.m4: New file.
21920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
21921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
21922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
21923         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
21924         * doc/posix-functions/wcsnlen.texi: Mention the new module.
21925
21926 2011-02-05  Bruno Haible  <bruno@clisp.org>
21927
21928         New module 'wcslen'.
21929         * modules/wcslen: New file.
21930         * lib/wchar.in.h (wcslen): New declaration.
21931         * lib/wcslen.c: New file.
21932         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
21933         * m4/wcslen.m4: New file.
21934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
21935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
21936         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
21937         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
21938         * doc/posix-functions/wcslen.texi: Mention the new module.
21939
21940 2011-02-05  Bruno Haible  <bruno@clisp.org>
21941
21942         New module 'wmemset'.
21943         * modules/wmemset: New file.
21944         * lib/wchar.in.h (wmemset): New declaration.
21945         * lib/wmemset.c: New file.
21946         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
21947         * m4/wmemset.m4: New file.
21948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21950         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21951         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21952         * doc/posix-functions/wmemset.texi: Mention the new module.
21953
21954 2011-02-05  Bruno Haible  <bruno@clisp.org>
21955
21956         New module 'wmemmove'.
21957         * modules/wmemmove: New file.
21958         * lib/wchar.in.h (wmemmove): New declaration.
21959         * lib/wmemmove.c: New file.
21960         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21961         * m4/wmemmove.m4: New file.
21962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21964         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21965         HAVE_WMEMMOVE.
21966         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21967         * doc/posix-functions/wmemmove.texi: Mention the new module.
21968
21969 2011-02-05  Bruno Haible  <bruno@clisp.org>
21970
21971         New module 'wmemcpy'.
21972         * modules/wmemcpy: New file.
21973         * lib/wchar.in.h (wmemcpy): New declaration.
21974         * lib/wmemcpy.c: New file.
21975         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21976         * m4/wmemcpy.m4: New file.
21977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21979         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21980         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21981         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21982
21983 2011-02-05  Bruno Haible  <bruno@clisp.org>
21984
21985         New module 'wmemcmp'.
21986         * modules/wmemcmp: New file.
21987         * lib/wchar.in.h (wmemcmp): New declaration.
21988         * lib/wmemcmp.c: New file.
21989         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21990         * m4/wmemcmp.m4: New file.
21991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21993         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21994         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21995         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21996
21997 2011-02-07  Jim Meyering  <meyering@redhat.com>
21998
21999         di-set, ino-map: new modules, from coreutils
22000         * lib/di-set.c: New file.
22001         * lib/di-set.h: Likewise.
22002         * lib/ino-map.c: Likewise.
22003         * lib/ino-map.h: Likewise.
22004         * modules/di-set: Likewise.
22005         * modules/di-set-tests: Likewise.
22006         * modules/ino-map: Likewise.
22007         * modules/ino-map-tests: Likewise.
22008         * tests/test-di-set.c: Likewise.
22009         * tests/test-ino-map.c: Likewise.
22010
22011 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22012
22013         getloadavg: merge minor changes from Emacs
22014
22015         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22016         (getloadavg): Use memset, not bzero.
22017
22018         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22019         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22020         clash (bug#86).
22021
22022 2010-11-14  Bruno Haible  <bruno@clisp.org>
22023
22024         Allow multiple gnulib generated replacements to coexist.
22025         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22026         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22027         * lib/langinfo.in.h (nl_item): Likewise.
22028         * lib/math.in.h (_NaN, NAN): Likewise.
22029         * lib/netdb.in.h (struct addrinfo): Likewise.
22030         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22031         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22032         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22033         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22034         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22035         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22036         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22037         pthread_mutexattr_init, pthread_mutexattr_settype,
22038         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22039         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22040         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22041         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22042         * lib/sched.in.h (struct sched_param): Likewise.
22043         * lib/se-selinux.in.h (security_class_t, security_context_t,
22044         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22045         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22046         lsetfilecon, fsetfilecon, security_check_context,
22047         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22048         Likewise.
22049         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22050         Likewise.
22051         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22052         _gl_function_taking_int_returning_void_t, union sigval,
22053         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22054         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22055         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22056         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22057         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22058         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22059         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22060         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22061         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22062         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22063         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22064         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22065         socklen_t, rpl_fd_isset): Likewise.
22066         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22067         * lib/sys_time.in.h (struct timeval): Likewise.
22068         * lib/sys_times.in.h (struct tms): Likewise.
22069         * lib/sys_utsname.in.h (struct utsname):
22070         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22071         * lib/unistd.in.h (getpagesize): Likewise.
22072         * lib/wchar.in.h (mbstate_t): Likewise.
22073         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22074         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22075         towlower, towupper): Likewise.
22076         Reported by Sam Steingold <sds@gnu.org>.
22077
22078 2011-02-05  Eric Blake  <eblake@redhat.com>
22079
22080         unsetenv: work around Haiku issues
22081         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22082         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22083
22084 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22085
22086         libposix: avoid calling error() within libposix
22087         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22088         is defined.
22089
22090 2011-02-05  Eric Blake  <eblake@redhat.com>
22091
22092         strerror_r-posix: port to cygwin
22093         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22094         implementation.
22095         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22096         * tests/test-strerror_r.c (main): Fix test.
22097         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22098         issue.
22099
22100 2011-02-05  Bruno Haible  <bruno@clisp.org>
22101
22102         New module 'wmemchr'.
22103         * modules/wmemchr: New file.
22104         * lib/wchar.in.h (wmemchr): New declaration.
22105         * lib/wmemchr.c: New file.
22106         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22107         * m4/wmemchr.m4: New file.
22108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22110         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22111         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22112         * doc/posix-functions/wmemchr.texi: Mention the new module.
22113
22114 2011-02-04  Eric Blake  <eblake@redhat.com>
22115
22116         fdopendir: detect FreeBSD bug
22117         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22118         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22119
22120 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22121
22122         stdbool: do not define HAVE_STDBOOL_H
22123         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22124         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22125         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22126         imported from the latest Autoconf git.  It was motivated by Emacs,
22127         which uses gnulib but does not need HAVE_STDBOOL_H.
22128
22129 2011-02-04  Bruno Haible  <bruno@clisp.org>
22130
22131         wcsnrtombs: Prepare for new module wwcsnrtombs.
22132         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22133         * lib/wcsnrtombs.c: Include it.
22134         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22135
22136         wcsrtombs: Prepare for new module wwcsrtombs.
22137         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22138         * lib/wcsrtombs.c: Include it.
22139         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22140
22141         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22142         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22143         * lib/mbsnrtowcs.c: Include it.
22144         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22145
22146         mbsrtowcs: Prepare for new module mbsrtowwcs.
22147         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22148         * lib/mbsrtowcs.c: Include it.
22149         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22150
22151 2011-02-04  Bruno Haible  <bruno@clisp.org>
22152
22153         vasnprintf: Reduce use of malloc for small format strings.
22154         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22155         (arguments): Add room for the first 7 arguments.
22156         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22157         (char_directives, u8_directives, u16_directives, u32_directives): Add
22158         room for the first 7 directives.
22159         * lib/printf-parse.c: Include <string.h>.
22160         (PRINTF_PARSE): Change memory handling code so that it uses the first
22161         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22162         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22163         Reported by Pádraig Brady <P@draigbrady.com>.
22164
22165 2011-01-31  Eric Blake  <eblake@redhat.com>
22166
22167         dup2: work around Haiku bug
22168         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22169         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22170         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22171         * tests/test-dup2.c (main): Enhance test.
22172
22173 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22174
22175         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22176         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22177         declared by eglibc 2.11.2.
22178         * lib/stdio.in.h: Likewise.
22179
22180 2011-01-31  Eric Blake  <eblake@redhat.com>
22181
22182         ignore-value: add missing test dependency
22183         * tests/test-ignore-value.c: Revert previous change; stdio.h
22184         provides off_t.
22185         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22186
22187 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22188
22189         mktime: clarify long_int width checking
22190         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22191         the top level, to make it clearer that the assumption about
22192         long_int width is being checked.  See
22193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22194
22195 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22196
22197         ignore-value: Fix self-test.
22198         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22199
22200 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22201
22202         TYPE_MAXIMUM: avoid theoretically undefined behavior
22203         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22204         negative number, which the C Standard says has undefined behavior.
22205         In practice this is not a problem, but might as well do it by the book.
22206         Reported by Rich Felker and Eric Blake; see
22207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22208         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22209         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22211         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22212         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22213         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22214
22215         mktime: #undef mktime before #defining it
22216         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22217
22218         mktime: systematically normalize tm_isdst comparisons
22219         * lib/mktime.c (isdst_differ): New function.
22220         (__mktime_internal): Use it systematically for all isdst comparisons.
22221         This completes the fix for libc BZ #6723, and removes the need for
22222         normalizing tm_isdst.  See
22223         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22224         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22225
22226         mktime: fix some integer overflow issues and sidestep the rest
22227
22228         This was prompted by a bug report by Benjamin Lindner for MinGW
22229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22230         His bug is due to signed integer overflow (0 - INT_MIN), and I
22231         I scanned through mktime.c looking for other integer overflow
22232         problems, fixing all the bugs I found.
22233
22234         Although the C Standard says the resulting code is still not safe
22235         in the presence of integer overflow, in practice it should be good
22236         enough for all real-world two's-complement implementations, except
22237         for debugging environments that deliberately trap on integer
22238         overflow (e.g., gcc -ftrapv).
22239
22240         * lib/mktime.c (WRAPV): New macro.
22241         (SHR): Also check that long_int and time_t shift right in the
22242         usual way, before using the fast-but-unportable method.
22243         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22244         used.  The code already assumed two's complement, so there's
22245         no need to test for alternatives.  All uses removed.
22246         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22247         the C standard.  Problem reported by Rich Felker in
22248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22249         (twos_complement_arithmetic): Also check long_int and time_t.
22250         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22251         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22252         (__mktime_internal): Avoid integer overflow with unary subtraction
22253         in two instances where -1 - X is an adequate replacement for -X,
22254         since the calculations are approximate.
22255
22256 2011-01-29  Eric Blake  <eblake@redhat.com>
22257
22258         mktime: avoid infinite loop
22259         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22260         type; behavior is still undefined but portable to all known targets.
22261         Reported by Rich Felker.
22262
22263 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22264
22265         rename, unlink, same-inode: Relicense.
22266         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22267         * modules/unlink (License): Likewise.
22268         * modules/same-inode (License): Likewise.
22269
22270 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22271
22272         mktime: avoid problems on NetBSD 5 / i386
22273         * lib/mktime.c (long_int): New type.  This works around a problem
22274         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22275         but time_t is 64 bits, and where I expect the existing code is
22276         wrong in some cases.
22277         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22278         (ydhms_diff): Bring back the compile-time check for wide-enough
22279         year and yday.
22280
22281         mktime: fix misspelling in comment
22282         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22283         This merges all recent glibc changes of importance.
22284
22285 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22286
22287         move-if-change: cope with concurrent mv of identical file.
22288         * build-aux/move-if-change (CMPPROG): Accept environment
22289         variable as an override for `cmp'.
22290         (usage): Document CMPPROG.
22291         Adjust comparison to drop stdout.  Cope with failure of mv if
22292         the target file exists and is identical to the source, for
22293         parallel builds.
22294         Report from H.J. Lu against binutils in PR binutils/12283.
22295
22296 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22297
22298         * users.txt: Mention sharutils.
22299
22300 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22301
22302         * users.txt: Mention OATH Toolkit.
22303
22304 2011-01-27  Bruno Haible  <bruno@clisp.org>
22305
22306         Prepare for supporting FreeBSD 10.
22307         * build-aux/config.libpath: Remove handling of freebsd1*.
22308
22309 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22310
22311         Prepare for supporting FreeBSD 10.
22312         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22313         match FreeBSD 10.0.
22314
22315 2011-01-27  Bruno Haible  <bruno@clisp.org>
22316
22317         vma-iter, get-rusage-as: Add OpenBSD support.
22318         * modules/vma-iter (configure.ac): Test for mquery.
22319         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22320         * lib/vma-iter.c: Include <sys/mman.h>.
22321         (vma_iterate): Add an implementation based on mquery().
22322         * lib/resource-ext.h (get_rusage_as): Update comments.
22323         * lib/get-rusage-as.c: Likewise.
22324         * lib/get-rusage-data.c: Likewise.
22325
22326 2011-01-26  Karl Berry  <karl@gnu.org>
22327
22328         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22329         variables to make it easier to override the makeinfo program used.
22330
22331 2011-01-26  Eric Blake  <eblake@redhat.com>
22332
22333         fcntl: work around Haiku F_DUPFD bugs
22334         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22335         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22336         cloexec bit on duplication.
22337         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22338
22339 2011-01-26  Bruno Haible  <bruno@clisp.org>
22340
22341         Enable memory leak tests on AIX.
22342         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22343         * tests/test-fprintf-posix3.c (main): Likewise.
22344
22345 2011-01-26  Bruno Haible  <bruno@clisp.org>
22346
22347         Tests for module 'get-rusage-data'.
22348         * modules/get-rusage-data-tests: New file.
22349         * tests/test-get-rusage-data.c: New file.
22350
22351         New module 'get-rusage-data'.
22352         * lib/resource-ext.h (get_rusage_data): New declaration.
22353         * lib/get-rusage-data.c: New file.
22354         * modules/get-rusage-data: New file.
22355
22356 2011-01-25  Bruno Haible  <bruno@clisp.org>
22357
22358         get-rusage-as: Allow for easier testing.
22359         * lib/resource-ext.h (get_rusage_as): Add comment.
22360         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22361         (main): New function for interactive testing.
22362
22363 2011-01-25  Bruno Haible  <bruno@clisp.org>
22364
22365         vma-iter: Treat Haiku like BeOS.
22366         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22367         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22368
22369 2011-01-25  Eric Blake  <eblake@redhat.com>
22370
22371         c-stack: fix regression on cygwin when libsigsegv is present
22372         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22373
22374 2011-01-24  Bruno Haible  <bruno@clisp.org>
22375
22376         vma-iter: Avoid empty intervals.
22377         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22378         on an empty interval.
22379
22380 2011-01-24  Jim Meyering  <meyering@redhat.com>
22381
22382         u64: remove unnecessary #include
22383         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22384
22385 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22386
22387         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22388         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22389
22390 2011-01-23  Bruno Haible  <bruno@clisp.org>
22391
22392         New module 'vma-iter'.
22393         * lib/vma-iter.h: New file.
22394         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22395         * modules/vma-iter: New file.
22396         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22397         for get_rusage_as_via_iterator.
22398         (vma_iterate_callback): New function.
22399         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22400         * modules/get-rusage-as (Depends-on): Add vma-iter.
22401
22402 2011-01-23  Bruno Haible  <bruno@clisp.org>
22403
22404         uninorm: Tweak includes.
22405         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22406         Reported by Jim Meyering.
22407
22408 2011-01-23  Bruno Haible  <bruno@clisp.org>
22409
22410         get-rusage-as: Improve on NetBSD.
22411         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22412         /proc, like on FreeBSD.
22413
22414 2011-01-23  Jim Meyering  <meyering@redhat.com>
22415
22416         xreadlink.h: remove unnecessary #include
22417         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22418
22419         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22420         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22421
22422 2011-01-23  Bruno Haible  <bruno@clisp.org>
22423
22424         get-rusage-as: Fix bug.
22425         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22426         original limit when aborting the first loop.
22427
22428 2011-01-23  Bruno Haible  <bruno@clisp.org>
22429
22430         wctype: Ensure valid C syntax.
22431         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22432         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22433
22434 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22437         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22438         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22439         as they are needed only for configure's test case.
22440         This removes two unnecessary symbols from config.h.
22441
22442         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22443         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22445         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22446         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22447         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22448         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22449         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22450         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22451         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22452         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22454         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22455         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22456         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22457         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22458         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22459         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22460
22461 2011-01-21  Eric Blake  <eblake@redhat.com>
22462
22463         maintainer-makefile: work with older git for submodule check
22464         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22465         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22466         Reported by Matthias Bolte.
22467
22468         bootstrap: minor portability fixes
22469         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22470         (usage): Omit leading capital and trailing . on help phrases, per
22471         GNU Coding Standards.
22472         (check_versions, top level): Prefix messages with script name.
22473
22474 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22475
22476         bootstrap: support --no-git option
22477         * build-aux/bootstrap: Add --no-git option, to be used when
22478         --gnulib-srcdir points to the exact desired checkout.
22479
22480 2011-01-21  Eric Blake  <eblake@redhat.com>
22481
22482         strerror_r-posix: work with glibc 2.13
22483         * lib/strerror_r.c (strerror_r): Fix return type.
22484
22485 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22486             Bruno Haible  <bruno@clisp.org>
22487
22488         uN_strstr: New unit tests.
22489         * modules/unistr/u8-strstr-tests: New file.
22490         * modules/unistr/u16-strstr-tests: New file.
22491         * modules/unistr/u32-strstr-tests: New file.
22492         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22493         * tests/unistr/test-u8-strstr.c: New file.
22494         * tests/unistr/test-u16-strstr.c: New file.
22495         * tests/unistr/test-u32-strstr.c: New file.
22496
22497 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22498             Bruno Haible  <bruno@clisp.org>
22499
22500         Make uN_strstr functions O(n) worst-case.
22501         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22502         16-bit and 32-bit unit cases, use the unibyte algorithm from
22503         lib/mbsstr.c.
22504         * lib/unistr/u8-strstr.c: Include <string.h>.
22505         (UNIT_IS_UINT8_T): New macro.
22506         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22507         (U_STRLEN, U_STRNLEN): New macros.
22508         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22509         (U_STRLEN, U_STRNLEN): New macros.
22510         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22511         (configure.ac): Update required libunistring version.
22512         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22513         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22514         malloca.
22515         (configure.ac): Update required libunistring version.
22516         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22517         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22518         malloca.
22519         (configure.ac): Update required libunistring version.
22520
22521 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22522             Bruno Haible  <bruno@clisp.org>
22523
22524         Prepare for faster uN_strstr functions.
22525         * lib/str-kmp.h: Support definable UNITs.
22526         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22527         needle_len argument.
22528         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22529         * lib/mbscasestr.c (mbscasestr): Likewise.
22530
22531 2011-01-21  Pádraig Brady <P@draigBrady.com>
22532
22533         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22534         * tests/test-malloca.c (main): Unset the environment variable
22535         to greatly speed up the test.
22536         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22537         * modules/malloca-tests: Depend on unsetenv.
22538
22539 2011-01-21  Pádraig Brady <P@draigBrady.com>
22540
22541         ignore-value: remove stdint dependency
22542         * lib/ignore-value.h: Remove <stdint.h>
22543         * modules/ignore-value: Remove stdint dependency.
22544
22545 2011-01-21  Jim Meyering  <meyering@redhat.com>
22546
22547         maint.mk: adjust variable name to be consistent with other gl_ vars
22548         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22549         to be lower case.
22550
22551 2011-01-20  Jim Meyering  <meyering@redhat.com>
22552
22553         maint.mk: make "check" depend on public-submodule-commit by default
22554         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22555
22556 2011-01-20  Bruno Haible  <bruno@clisp.org>
22557
22558         mbfile, mbiter: Complete change from 2008-12-21.
22559         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22560         * m4/mbiter.m4 (gl_MBITER): Likewise.
22561
22562 2011-01-20  Jim Meyering  <meyering@redhat.com>
22563
22564         init.sh: insert space between each function name and "()"
22565         * tests/init.sh: Make it a little easier to see that a function's
22566         name is "warn_", and not "warn" when looking at the first part of
22567         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22568
22569 2011-01-20  Jim Meyering  <meyering@redhat.com>
22570
22571         mountlist: clean up code formatting
22572         * lib/mountlist.c (read_file_system_list): Split a long line,
22573         correct bracing style, use NULL in place of "(struct statfs *)0",
22574         don't parenthesize return value, add spaces around "=" and after
22575         ";-in-for-stmt".
22576
22577 2011-01-14  Markus Duft <mduft@gentoo.org>
22578
22579         mountlist: add support for Interix
22580         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22581         Apply statvfs to all entries of /dev/fs.
22582         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22583         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22584
22585 2011-01-20  Jim Meyering  <meyering@redhat.com>
22586
22587         maint.mk: improve the public-submodule-commit rule
22588         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22589         to suppress printing of its commands... unless V=1.
22590         Add git submodule's --quiet option to suppress printing of e.g.,
22591         "Entering gnulib" output.
22592         "cd" into $(srcdir) before running git submodule.
22593
22594 2011-01-20  Bruno Haible  <bruno@clisp.org>
22595
22596         include_next: Fix bug introduced on 2011-01-18.
22597         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22598         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22599         ac_cv_header_... variable if the second argument is not 'check'.
22600         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22601         gl_NEXT_HEADERS_INTERNAL.
22602
22603 2011-01-20  Bruno Haible  <bruno@clisp.org>
22604
22605         Allow the user to avoid the GNULIB_TEST_* macros.
22606         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22607         Suggested by Paul Eggert.
22608
22609 2011-01-14  Jim Meyering  <meyering@redhat.com>
22610
22611         bootstrap: avoid failure when there is no .gitmodules file
22612         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22613         has been assigned to, even when its value is the empty string.
22614         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22615         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22616         Reported by John W. Eaton <jwe@gnu.org>.
22617
22618 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22619
22620         assume <ctype.h>, ..., <time.h> exist
22621         For years gnulib has been assuming the existence of the headers
22622         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22623         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22624         them, since they don't appear to be needed.
22625         * README (Portability guidelines): Document this.
22626         * lib/flock.c: Assume <fcntl.h> exists.
22627         * lib/regex_internal.h: Assume <locale.h> exists.
22628         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22629         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22630         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22631         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22632         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22633         * m4/regex.m4 (gl_REGEX): Likewise.
22634         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22635         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22636         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22637         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22638         * tests/test-argp.c: Likewise.
22639         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22640
22641         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22642         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22643         AA_APPLE_UNIVERSAL_BUILD.  See
22644         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22645         * NEWS: Document this.
22646
22647 2011-01-19  Eric Blake  <eblake@redhat.com>
22648
22649         c-stack: assume stack overflow if SA_SIGINFO unsupported
22650         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22651         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22652         sigaction will work.
22653         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22654         behavior match Linux.
22655         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22656
22657         stdbool-tests: accommodate Haiku
22658         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22659
22660         binary-io: fix O_TEXT on Haiku
22661         * modules/binary-io (Depends-on): Add fcntl-h.
22662         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22663         than blindly undefining O_TEXT.
22664         Reported by Scott McCreary.
22665
22666 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22667
22668         include_next: do not check for standard headers like stddef.h
22669
22670         I found this problem when modifying Emacs to use gnulib.
22671         I noticed that it added HAVE_STDDEF_H to config.h, even though
22672         gnulib always assumes <stddef.h> exists as per README and this
22673         symbol is unnecessary.
22674         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22675         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22676         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22677         faster for headers like stddef.h that are known to exist.
22678         (gl_CHECK_NEXT_HEADERS): Use it.
22679         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22680         rather than gl_CHECK_NEXT_HEADERS.
22681         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22682         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22683
22684 2011-01-18  Eric Blake  <eblake@redhat.com>
22685
22686         ansi-c++-opt: skip C++ dependency style if C++ is unused
22687         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22688         tests when we know C++ compilation is not desired.
22689         Reported by Scott McCreary.
22690
22691 2011-01-18  Bruno Haible  <bruno@clisp.org>
22692
22693         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22694         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22695         (main): Perform test also when getrlimit and setrlimit don't exist or
22696         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22697         limiting the address space size using setrlimit, compare the address
22698         space size before and after the the test.
22699         * tests/test-dprintf-posix2.c: Likewise.
22700         * tests/test-fprintf-posix3.sh: Update skip messages.
22701         * tests/test-dprintf-posix2.sh: Likewise.
22702         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22703         * modules/dprintf-posix-tests (Depends-on): Likewise.
22704         Reported by Bruce Korb <bkorb@gnu.org> and
22705         Gary V. Vaughan <gary@gnu.org>.
22706
22707 2011-01-18  Bruno Haible  <bruno@clisp.org>
22708
22709         get-rusage-as: Improvement for Cygwin.
22710         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22711         areas that are merely reserved.
22712
22713 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22714
22715         strftime: remove dependencies on multibyte modules
22716
22717         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22718         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22719         only if __osf__ is defined, and I suspect OSF doesn't need these
22720         other modules.  If my guess is wrong, we'll need to come up with a
22721         variant of strftime that doesn't need the multibyte modules.
22722
22723         I discovered this problem when attempting modify Emacs to use the
22724         strftime module.  With the previous gnulib, this caused Emacs to
22725         need 31 new files, ranging from lib/config.charset to
22726         m4/wint_t.m4.  This was overkill and I expect would be offputting
22727         to the Emacs maintainers.  After this change, only 6 new files are
22728         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22729         stdbool.m4, and tm_gmtoff.m4.
22730
22731         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22732         Suggested by Bruno Haible in
22733         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22734         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22735         and do not check for wchar.h.
22736         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22737         (Depends-on): Remove mbrlen, mbsinit, wchar.
22738
22739 2011-01-18  Bruno Haible  <bruno@clisp.org>
22740
22741         Tests for module 'get-rusage-as'.
22742         * modules/get-rusage-as-tests: New file.
22743         * tests/test-get-rusage-as.c: New file.
22744
22745         New module 'get-rusage-as'.
22746         * modules/get-rusage-as: New file.
22747         * lib/resource-ext.h: New file.
22748         * lib/get-rusage-as.c: New file.
22749
22750 2011-01-17  Eric Blake  <eblake@redhat.com>
22751
22752         sigaction: relax license from LGPLv3+ to LGPLv2+
22753         * modules/sigaction (License): Relax to LGPLv2+.
22754
22755 2011-01-14  Bruno Haible  <bruno@clisp.org>
22756
22757         filemode: Make function declarations usable in C++ mode.
22758         * lib/filemode.h: Enclose function declarations in extern "C" block.
22759         Reported by John W. Eaton <jwe@gnu.org>.
22760
22761 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22762
22763         save-cwd: no longer include "xgetcwd.h"
22764         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22765         This avoids a compilation failure in projects that use save-cwd
22766         without also using the xgetcwd module.
22767
22768 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22769
22770         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22771         This is so that a program like Emacs, which needs only dtoastr,
22772         does not have to bother with distributing and compiling ftoastr
22773         and ldtoastr.
22774         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22775         * modules/dtoastr, modules/ldtoastr: New files.
22776         * modules/ftoastr: Now works just for 'float'.
22777         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22778         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22779         dtoastr.c, ldtoastr.c.
22780
22781 2011-01-11  Jim Meyering  <meyering@redhat.com>
22782
22783         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22784         There is no need to work around the lack of the fchdir function,
22785         since gnulib can now provide a replacement when required.
22786         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22787         * modules/save-cwd (Depends-on): Add fchdir.
22788
22789 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22790
22791         openat, save-cwd: avoid xmalloc
22792
22793         This removes a direct (but undocumented) dependency of openat on
22794         xalloc, along with an indirect dependency via save-cwd.  It also
22795         removes a dependency of save-cwd on xgetcwd, and thereby
22796         indirectly on xalloc.  This change causes the openat substitute
22797         to fall back on save_cwd when memory is tight, and for save_cwd to
22798         fail instead of dying when memory is tight, but that's good enough.
22799         Problem and initial idea for fix reported by Bastien Roucaries in
22800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22801
22802         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22803         xalloc.h (for xmalloc).
22804         (openat_proc_name): Use malloc, not xmalloc.
22805         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22806         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22807
22808         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22809         This avoids heap allocation for file names whose lengths are in
22810         the range 512..1023, with the upper bound increasing to at most
22811         4031 depending on the platform's PATH_MAX.  (We do not want
22812         pathmax.h here as it might supply a non-constant PATH_MAX.)
22813         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22814         Perhaps they should be moved to malloca.h?
22815         (OPENAT_BUFFER_SIZE): Use them.
22816
22817 2011-01-10  Bruno Haible  <bruno@clisp.org>
22818
22819         doc: Update users.txt.
22820         * users.txt: Add recutils.
22821
22822 2011-01-09  Karl Berry  <karl@gnu.org>
22823
22824         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
22825
22826         * doc/configmake.texi: New file.
22827         * doc/gnulib.texi: Include it.
22828         * modules/configmake: Move documentation from here.
22829
22830 2011-01-09  Bruno Haible  <bruno@clisp.org>
22831
22832         Update to Unicode 6.0.0.
22833         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
22834         (get_lbp): Update for Unicode 6.0.0.
22835         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
22836         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
22837         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
22838         U+11001, U+11038..U+11046. Remove U+06DE.
22839         (uc_width): Fix bounds of planes.
22840         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22841         lib/uniwidth/width.c.
22842         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
22843         trailing whitespace removed.
22844         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
22845         without comments, but with the original copyright notice.
22846         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
22847         * lib/unicase/ignorable.h: Likewise.
22848         * lib/unicase/tocasefold.h: Likewise.
22849         * lib/unicase/tolower.h: Likewise.
22850         * lib/unicase/totitle.h: Likewise.
22851         * lib/unicase/toupper.h: Likewise.
22852         * lib/unictype/bidi_of.h: Likewise.
22853         * lib/unictype/blocks.h: Likewise.
22854         * lib/unictype/categ_C.h: Likewise.
22855         * lib/unictype/categ_Cn.h: Likewise.
22856         * lib/unictype/categ_L.h: Likewise.
22857         * lib/unictype/categ_Ll.h: Likewise.
22858         * lib/unictype/categ_Lm.h: Likewise.
22859         * lib/unictype/categ_Lo.h: Likewise.
22860         * lib/unictype/categ_Lu.h: Likewise.
22861         * lib/unictype/categ_M.h: Likewise.
22862         * lib/unictype/categ_Mc.h: Likewise.
22863         * lib/unictype/categ_Me.h: Likewise.
22864         * lib/unictype/categ_Mn.h: Likewise.
22865         * lib/unictype/categ_N.h: Likewise.
22866         * lib/unictype/categ_Nd.h: Likewise.
22867         * lib/unictype/categ_No.h: Likewise.
22868         * lib/unictype/categ_P.h: Likewise.
22869         * lib/unictype/categ_Po.h: Likewise.
22870         * lib/unictype/categ_S.h: Likewise.
22871         * lib/unictype/categ_Sc.h: Likewise.
22872         * lib/unictype/categ_Sk.h: Likewise.
22873         * lib/unictype/categ_Sm.h: Likewise.
22874         * lib/unictype/categ_So.h: Likewise.
22875         * lib/unictype/categ_of.h: Likewise.
22876         * lib/unictype/combining.h: Likewise.
22877         * lib/unictype/ctype_alnum.h: Likewise.
22878         * lib/unictype/ctype_alpha.h: Likewise.
22879         * lib/unictype/ctype_graph.h: Likewise.
22880         * lib/unictype/ctype_lower.h: Likewise.
22881         * lib/unictype/ctype_print.h: Likewise.
22882         * lib/unictype/ctype_punct.h: Likewise.
22883         * lib/unictype/ctype_upper.h: Likewise.
22884         * lib/unictype/decdigit.h: Likewise.
22885         * lib/unictype/digit.h: Likewise.
22886         * lib/unictype/numeric.h: Likewise.
22887         * lib/unictype/pr_alphabetic.h: Likewise.
22888         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22889         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22890         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22891         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22892         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22893         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22894         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22895         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22896         * lib/unictype/pr_case_ignorable.h: Likewise.
22897         * lib/unictype/pr_cased.h: Likewise.
22898         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
22899         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
22900         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
22901         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
22902         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
22903         * lib/unictype/pr_combining.h: Likewise.
22904         * lib/unictype/pr_composite.h: Likewise.
22905         * lib/unictype/pr_currency_symbol.h: Likewise.
22906         * lib/unictype/pr_decimal_digit.h: Likewise.
22907         * lib/unictype/pr_deprecated.h: Likewise.
22908         * lib/unictype/pr_format_control.h: Likewise.
22909         * lib/unictype/pr_grapheme_base.h: Likewise.
22910         * lib/unictype/pr_grapheme_extend.h: Likewise.
22911         * lib/unictype/pr_grapheme_link.h: Likewise.
22912         * lib/unictype/pr_id_continue.h: Likewise.
22913         * lib/unictype/pr_id_start.h: Likewise.
22914         * lib/unictype/pr_ideographic.h: Likewise.
22915         * lib/unictype/pr_lowercase.h: Likewise.
22916         * lib/unictype/pr_math.h: Likewise.
22917         * lib/unictype/pr_numeric.h: Likewise.
22918         * lib/unictype/pr_other_alphabetic.h: Likewise.
22919         * lib/unictype/pr_other_id_continue.h: Likewise.
22920         * lib/unictype/pr_other_math.h: Likewise.
22921         * lib/unictype/pr_punctuation.h: Likewise.
22922         * lib/unictype/pr_sentence_terminal.h: Likewise.
22923         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22924         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22925         * lib/unictype/pr_unified_ideograph.h: Likewise.
22926         * lib/unictype/pr_uppercase.h: Likewise.
22927         * lib/unictype/pr_xid_continue.h: Likewise.
22928         * lib/unictype/pr_xid_start.h: Likewise.
22929         * lib/unictype/scripts.h: Likewise.
22930         * lib/unictype/scripts_byname.gperf: Likewise.
22931         * lib/unictype/sy_java_ident.h: Likewise.
22932         * lib/unigbrk/gbrkprop.h: Likewise.
22933         * lib/unilbrk/lbrkprop1.h: Likewise.
22934         * lib/unilbrk/lbrkprop2.h: Likewise.
22935         * lib/uninorm/decomposition-table2.h: Likewise.
22936         * lib/uniwbrk/wbrkprop.h: Likewise.
22937         * tests/unicase/test-cased.c: Likewise.
22938         * tests/unicase/test-ignorable.c: Likewise.
22939         * tests/unicase/test-uc_tolower.c: Likewise.
22940         * tests/unicase/test-uc_totitle.c: Likewise.
22941         * tests/unicase/test-uc_toupper.c: Likewise.
22942         * tests/unictype/test-categ_C.c: Likewise.
22943         * tests/unictype/test-categ_Cn.c: Likewise.
22944         * tests/unictype/test-categ_L.c: Likewise.
22945         * tests/unictype/test-categ_Ll.c: Likewise.
22946         * tests/unictype/test-categ_Lm.c: Likewise.
22947         * tests/unictype/test-categ_Lo.c: Likewise.
22948         * tests/unictype/test-categ_Lu.c: Likewise.
22949         * tests/unictype/test-categ_M.c: Likewise.
22950         * tests/unictype/test-categ_Mc.c: Likewise.
22951         * tests/unictype/test-categ_Me.c: Likewise.
22952         * tests/unictype/test-categ_Mn.c: Likewise.
22953         * tests/unictype/test-categ_N.c: Likewise.
22954         * tests/unictype/test-categ_Nd.c: Likewise.
22955         * tests/unictype/test-categ_No.c: Likewise.
22956         * tests/unictype/test-categ_P.c: Likewise.
22957         * tests/unictype/test-categ_Po.c: Likewise.
22958         * tests/unictype/test-categ_S.c: Likewise.
22959         * tests/unictype/test-categ_Sc.c: Likewise.
22960         * tests/unictype/test-categ_Sk.c: Likewise.
22961         * tests/unictype/test-categ_Sm.c: Likewise.
22962         * tests/unictype/test-categ_So.c: Likewise.
22963         * tests/unictype/test-ctype_alnum.c: Likewise.
22964         * tests/unictype/test-ctype_alpha.c: Likewise.
22965         * tests/unictype/test-ctype_graph.c: Likewise.
22966         * tests/unictype/test-ctype_lower.c: Likewise.
22967         * tests/unictype/test-ctype_print.c: Likewise.
22968         * tests/unictype/test-ctype_punct.c: Likewise.
22969         * tests/unictype/test-ctype_upper.c: Likewise.
22970         * tests/unictype/test-decdigit.h: Likewise.
22971         * tests/unictype/test-digit.h: Likewise.
22972         * tests/unictype/test-numeric.h: Likewise.
22973         * tests/unictype/test-pr_alphabetic.c: Likewise.
22974         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22975         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22976         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22977         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22978         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22979         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22980         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22981         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22982         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22983         * tests/unictype/test-pr_cased.c: Likewise.
22984         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22985         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22986         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22987         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22988         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22989         * tests/unictype/test-pr_combining.c: Likewise.
22990         * tests/unictype/test-pr_composite.c: Likewise.
22991         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22992         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22993         * tests/unictype/test-pr_deprecated.c: Likewise.
22994         * tests/unictype/test-pr_format_control.c: Likewise.
22995         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22996         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22997         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22998         * tests/unictype/test-pr_id_continue.c: Likewise.
22999         * tests/unictype/test-pr_id_start.c: Likewise.
23000         * tests/unictype/test-pr_ideographic.c: Likewise.
23001         * tests/unictype/test-pr_lowercase.c: Likewise.
23002         * tests/unictype/test-pr_math.c: Likewise.
23003         * tests/unictype/test-pr_numeric.c: Likewise.
23004         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23005         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23006         * tests/unictype/test-pr_other_math.c: Likewise.
23007         * tests/unictype/test-pr_punctuation.c: Likewise.
23008         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23009         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23010         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23011         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23012         * tests/unictype/test-pr_uppercase.c: Likewise.
23013         * tests/unictype/test-pr_xid_continue.c: Likewise.
23014         * tests/unictype/test-pr_xid_start.c: Likewise.
23015         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23016         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23017         changes.
23018         * lib/unictype/categ_Cc.h: Likewise.
23019         * lib/unictype/categ_Cf.h: Likewise.
23020         * lib/unictype/categ_Co.h: Likewise.
23021         * lib/unictype/categ_Cs.h: Likewise.
23022         * lib/unictype/categ_Lt.h: Likewise.
23023         * lib/unictype/categ_Nl.h: Likewise.
23024         * lib/unictype/categ_Pc.h: Likewise.
23025         * lib/unictype/categ_Pd.h: Likewise.
23026         * lib/unictype/categ_Pe.h: Likewise.
23027         * lib/unictype/categ_Pf.h: Likewise.
23028         * lib/unictype/categ_Pi.h: Likewise.
23029         * lib/unictype/categ_Ps.h: Likewise.
23030         * lib/unictype/categ_Z.h: Likewise.
23031         * lib/unictype/categ_Zl.h: Likewise.
23032         * lib/unictype/categ_Zp.h: Likewise.
23033         * lib/unictype/categ_Zs.h: Likewise.
23034         * lib/unictype/ctype_blank.h: Likewise.
23035         * lib/unictype/ctype_cntrl.h: Likewise.
23036         * lib/unictype/ctype_digit.h: Likewise.
23037         * lib/unictype/ctype_space.h: Likewise.
23038         * lib/unictype/ctype_xdigit.h: Likewise.
23039         * lib/unictype/mirror.h: Likewise.
23040         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23041         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23042         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23043         * lib/unictype/pr_bidi_control.h: Likewise.
23044         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23045         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23046         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23047         * lib/unictype/pr_bidi_pdf.h: Likewise.
23048         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23049         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23050         * lib/unictype/pr_dash.h: Likewise.
23051         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23052         * lib/unictype/pr_diacritic.h: Likewise.
23053         * lib/unictype/pr_extender.h: Likewise.
23054         * lib/unictype/pr_hex_digit.h: Likewise.
23055         * lib/unictype/pr_hyphen.h: Likewise.
23056         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23057         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23058         * lib/unictype/pr_ignorable_control.h: Likewise.
23059         * lib/unictype/pr_iso_control.h: Likewise.
23060         * lib/unictype/pr_join_control.h: Likewise.
23061         * lib/unictype/pr_left_of_pair.h: Likewise.
23062         * lib/unictype/pr_line_separator.h: Likewise.
23063         * lib/unictype/pr_logical_order_exception.h: Likewise.
23064         * lib/unictype/pr_non_break.h: Likewise.
23065         * lib/unictype/pr_not_a_character.h: Likewise.
23066         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23067         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23068         * lib/unictype/pr_other_id_start.h: Likewise.
23069         * lib/unictype/pr_other_lowercase.h: Likewise.
23070         * lib/unictype/pr_other_uppercase.h: Likewise.
23071         * lib/unictype/pr_paired_punctuation.h: Likewise.
23072         * lib/unictype/pr_paragraph_separator.h: Likewise.
23073         * lib/unictype/pr_pattern_syntax.h: Likewise.
23074         * lib/unictype/pr_pattern_white_space.h: Likewise.
23075         * lib/unictype/pr_private_use.h: Likewise.
23076         * lib/unictype/pr_quotation_mark.h: Likewise.
23077         * lib/unictype/pr_radical.h: Likewise.
23078         * lib/unictype/pr_soft_dotted.h: Likewise.
23079         * lib/unictype/pr_space.h: Likewise.
23080         * lib/unictype/pr_titlecase.h: Likewise.
23081         * lib/unictype/pr_variation_selector.h: Likewise.
23082         * lib/unictype/pr_white_space.h: Likewise.
23083         * lib/unictype/pr_zero_width.h: Likewise.
23084         * lib/unictype/sy_c_ident.h: Likewise.
23085         * lib/unictype/sy_c_whitespace.h: Likewise.
23086         * lib/unictype/sy_java_whitespace.h: Likewise.
23087         * lib/uninorm/composition-table.gperf: Likewise.
23088         * lib/uninorm/decomposition-table1.h: Likewise.
23089         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23090         LB8.
23091         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23092         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23093         * modules/unictype/*: Bump version number of expected libunistring
23094         version.
23095
23096 2011-01-09  Bruno Haible  <bruno@clisp.org>
23097
23098         Update to Unicode 5.2.0.
23099         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23100         trailing whitespace removed.
23101
23102 2011-01-09  Bruno Haible  <bruno@clisp.org>
23103
23104         New Unicode character properties, from Unicode 5.2.0.
23105         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23106         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23107         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23108         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23109         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23110         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23111         uc_is_property_cased, uc_is_property_case_ignorable,
23112         uc_is_property_changes_when_lowercased,
23113         uc_is_property_changes_when_uppercased,
23114         uc_is_property_changes_when_titlecased,
23115         uc_is_property_changes_when_casefolded,
23116         uc_is_property_changes_when_casemapped): New declarations.
23117         * lib/unictype/pr_byname.gperf: Add the new properties.
23118         * modules/unictype/property-byname (Depends-on): Depend on the new
23119         properties modules.
23120         * modules/unictype/property-all (Depends-on): Likewise.
23121         * MODULES.html.sh (Unicode string functions): Add
23122         unictype/property-case-ignorable, unictype/property-cased,
23123         unictype/property-changes-when-casefolded,
23124         unictype/property-changes-when-casemapped,
23125         unictype/property-changes-when-lowercased,
23126         unictype/property-changes-when-titlecased,
23127         unictype/property-changes-when-uppercased.
23128
23129         New module 'unictype/property-changes-when-casemapped'.
23130         * modules/unictype/property-changes-when-casemapped: New file.
23131         * lib/unictype/pr_changes_when_casemapped.c: New file.
23132         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23133         generated by gen-uni-tables.
23134         * modules/unictype/property-changes-when-casemapped-tests: New file.
23135         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23136         automatically generated by gen-uni-tables.
23137
23138         New module 'unictype/property-changes-when-casefolded'.
23139         * modules/unictype/property-changes-when-casefolded: New file.
23140         * lib/unictype/pr_changes_when_casefolded.c: New file.
23141         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23142         generated by gen-uni-tables.
23143         * modules/unictype/property-changes-when-casefolded-tests: New file.
23144         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23145         automatically generated by gen-uni-tables.
23146
23147         New module 'unictype/property-changes-when-titlecased'.
23148         * modules/unictype/property-changes-when-titlecased: New file.
23149         * lib/unictype/pr_changes_when_titlecased.c: New file.
23150         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23151         generated by gen-uni-tables.
23152         * modules/unictype/property-changes-when-titlecased-tests: New file.
23153         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23154         automatically generated by gen-uni-tables.
23155
23156         New module 'unictype/property-changes-when-uppercased'.
23157         * modules/unictype/property-changes-when-uppercased: New file.
23158         * lib/unictype/pr_changes_when_uppercased.c: New file.
23159         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23160         generated by gen-uni-tables.
23161         * modules/unictype/property-changes-when-uppercased-tests: New file.
23162         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23163         automatically generated by gen-uni-tables.
23164
23165         New module 'unictype/property-changes-when-lowercased'.
23166         * modules/unictype/property-changes-when-lowercased: New file.
23167         * lib/unictype/pr_changes_when_lowercased.c: New file.
23168         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23169         generated by gen-uni-tables.
23170         * modules/unictype/property-changes-when-lowercased-tests: New file.
23171         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23172         automatically generated by gen-uni-tables.
23173
23174         New module 'unictype/property-case-ignorable'.
23175         * modules/unictype/property-case-ignorable: New file.
23176         * lib/unictype/pr_case_ignorable.c: New file.
23177         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23178         by gen-uni-tables.
23179         * modules/unictype/property-case-ignorable-tests: New file.
23180         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23181         generated by gen-uni-tables.
23182
23183         New module 'unictype/property-cased'.
23184         * modules/unictype/property-cased: New file.
23185         * lib/unictype/pr_cased.c: New file.
23186         * lib/unictype/pr_cased.h: New file, automatically generated by
23187         gen-uni-tables.
23188         * modules/unictype/property-cased-tests: New file.
23189         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23190         gen-uni-tables.
23191
23192 2011-01-09  Bruno Haible  <bruno@clisp.org>
23193
23194         Update to Unicode 5.2.0.
23195         * lib/gen-uni-tables.c (output_predicate, output_category,
23196         output_combclass, output_bidi_category, output_decimal_digit_test,
23197         output_decimal_digit, output_digit_test, output_digit,
23198         output_numeric_test, output_numeric, output_mirror, output_scripts,
23199         output_scripts_byname, output_blocks, output_ident_category): Fix
23200         comment header.
23201         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23202         get_wbp.
23203         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23204         items.
23205         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23206         Changes_When_Lowercased, Changes_When_Uppercased,
23207         Changes_When_Titlecased, Changes_When_Casefolded,
23208         Changes_When_Casemapped.
23209         (is_property_alphabetic, is_property_default_ignorable_code_point):
23210         Update for Unicode 5.2.0.
23211         (is_property_cased, is_property_case_ignorable,
23212         is_property_changes_when_lowercased,
23213         is_property_changes_when_uppercased,
23214         is_property_changes_when_titlecased,
23215         is_property_changes_when_casefolded,
23216         is_property_changes_when_casemapped): New functions.
23217         (output_properties): Output also the properties cased, case_ignorable,
23218         changes_when_lowercased, changes_when_uppercased,
23219         changes_when_titlecased, changes_when_casefolded,
23220         changes_when_casemapped.
23221         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23222         Unicode TR#11 revision 17 -> 19.
23223         (LBP_CP): New enumeration value.
23224         (LBP_*): Adjust values accordingly.
23225         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23226         TR#14 revision 22 -> 24.
23227         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23228         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23229         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23230         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23231         is_WBP_MIDLETTER.
23232         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23233         the code1 and code2 of each composition rule.
23234         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23235         * lib/unicase/ignorable.h: Likewise.
23236         * lib/unicase/tocasefold.h: Likewise.
23237         * lib/unicase/tolower.h: Likewise.
23238         * lib/unicase/totitle.h: Likewise.
23239         * lib/unicase/toupper.h: Likewise.
23240         * lib/unictype/bidi_of.h: Likewise.
23241         * lib/unictype/blocks.h: Likewise.
23242         * lib/unictype/categ_C.h: Likewise.
23243         * lib/unictype/categ_Cf.h: Likewise.
23244         * lib/unictype/categ_Cn.h: Likewise.
23245         * lib/unictype/categ_L.h: Likewise.
23246         * lib/unictype/categ_Ll.h: Likewise.
23247         * lib/unictype/categ_Lm.h: Likewise.
23248         * lib/unictype/categ_Lo.h: Likewise.
23249         * lib/unictype/categ_Lu.h: Likewise.
23250         * lib/unictype/categ_M.h: Likewise.
23251         * lib/unictype/categ_Mc.h: Likewise.
23252         * lib/unictype/categ_Mn.h: Likewise.
23253         * lib/unictype/categ_N.h: Likewise.
23254         * lib/unictype/categ_Nd.h: Likewise.
23255         * lib/unictype/categ_Nl.h: Likewise.
23256         * lib/unictype/categ_No.h: Likewise.
23257         * lib/unictype/categ_P.h: Likewise.
23258         * lib/unictype/categ_Pd.h: Likewise.
23259         * lib/unictype/categ_Po.h: Likewise.
23260         * lib/unictype/categ_S.h: Likewise.
23261         * lib/unictype/categ_Sc.h: Likewise.
23262         * lib/unictype/categ_So.h: Likewise.
23263         * lib/unictype/categ_of.h: Likewise.
23264         * lib/unictype/combining.h: Likewise.
23265         * lib/unictype/ctype_alnum.h: Likewise.
23266         * lib/unictype/ctype_alpha.h: Likewise.
23267         * lib/unictype/ctype_graph.h: Likewise.
23268         * lib/unictype/ctype_lower.h: Likewise.
23269         * lib/unictype/ctype_print.h: Likewise.
23270         * lib/unictype/ctype_punct.h: Likewise.
23271         * lib/unictype/ctype_upper.h: Likewise.
23272         * lib/unictype/decdigit.h: Likewise.
23273         * lib/unictype/digit.h: Likewise.
23274         * lib/unictype/numeric.h: Likewise.
23275         * lib/unictype/pr_alphabetic.h: Likewise.
23276         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23277         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23278         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23279         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23280         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23281         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23282         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23283         * lib/unictype/pr_combining.h: Likewise.
23284         * lib/unictype/pr_composite.h: Likewise.
23285         * lib/unictype/pr_currency_symbol.h: Likewise.
23286         * lib/unictype/pr_dash.h: Likewise.
23287         * lib/unictype/pr_decimal_digit.h: Likewise.
23288         * lib/unictype/pr_deprecated.h: Likewise.
23289         * lib/unictype/pr_diacritic.h: Likewise.
23290         * lib/unictype/pr_extender.h: Likewise.
23291         * lib/unictype/pr_grapheme_base.h: Likewise.
23292         * lib/unictype/pr_grapheme_extend.h: Likewise.
23293         * lib/unictype/pr_grapheme_link.h: Likewise.
23294         * lib/unictype/pr_id_continue.h: Likewise.
23295         * lib/unictype/pr_id_start.h: Likewise.
23296         * lib/unictype/pr_ideographic.h: Likewise.
23297         * lib/unictype/pr_ignorable_control.h: Likewise.
23298         * lib/unictype/pr_logical_order_exception.h: Likewise.
23299         * lib/unictype/pr_lowercase.h: Likewise.
23300         * lib/unictype/pr_numeric.h: Likewise.
23301         * lib/unictype/pr_other_alphabetic.h: Likewise.
23302         * lib/unictype/pr_punctuation.h: Likewise.
23303         * lib/unictype/pr_sentence_terminal.h: Likewise.
23304         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23305         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23306         * lib/unictype/pr_unified_ideograph.h: Likewise.
23307         * lib/unictype/pr_uppercase.h: Likewise.
23308         * lib/unictype/pr_xid_continue.h: Likewise.
23309         * lib/unictype/pr_xid_start.h: Likewise.
23310         * lib/unictype/pr_zero_width.h: Likewise.
23311         * lib/unictype/scripts.h: Likewise.
23312         * lib/unictype/scripts_byname.gperf: Likewise.
23313         * lib/unictype/sy_java_ident.h: Likewise.
23314         * lib/unigbrk/gbrkprop.h: Likewise.
23315         * lib/unilbrk/lbrkprop1.h: Likewise.
23316         * lib/unilbrk/lbrkprop2.h: Likewise.
23317         * lib/unilbrk/lbrktables.h: Likewise.
23318         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23319         LBP_CP. Implement rule LB30.
23320         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23321         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23322         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23323         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23324         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23325         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23326         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23327         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23328         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23329         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23330         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23331         bits instead of 16 bits in the code1 and code2 of each composition
23332         rule.
23333         (uc_composition): Update for Unicode 5.2.0.
23334         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23335         * lib/uninorm/decomposition-table2.h: Likewise.
23336         * lib/uniwbrk/wbrkprop.h: Likewise.
23337         * tests/unicase/test-cased.c: Likewise.
23338         * tests/unicase/test-ignorable.c: Likewise.
23339         * tests/unicase/test-uc_tolower.c: Likewise.
23340         * tests/unicase/test-uc_totitle.c: Likewise.
23341         * tests/unicase/test-uc_toupper.c: Likewise.
23342         * tests/unictype/test-categ_C.c: Likewise.
23343         * tests/unictype/test-categ_Cf.c: Likewise.
23344         * tests/unictype/test-categ_Cn.c: Likewise.
23345         * tests/unictype/test-categ_L.c: Likewise.
23346         * tests/unictype/test-categ_Ll.c: Likewise.
23347         * tests/unictype/test-categ_Lm.c: Likewise.
23348         * tests/unictype/test-categ_Lo.c: Likewise.
23349         * tests/unictype/test-categ_Lu.c: Likewise.
23350         * tests/unictype/test-categ_M.c: Likewise.
23351         * tests/unictype/test-categ_Mc.c: Likewise.
23352         * tests/unictype/test-categ_Mn.c: Likewise.
23353         * tests/unictype/test-categ_N.c: Likewise.
23354         * tests/unictype/test-categ_Nd.c: Likewise.
23355         * tests/unictype/test-categ_Nl.c: Likewise.
23356         * tests/unictype/test-categ_No.c: Likewise.
23357         * tests/unictype/test-categ_P.c: Likewise.
23358         * tests/unictype/test-categ_Pd.c: Likewise.
23359         * tests/unictype/test-categ_Po.c: Likewise.
23360         * tests/unictype/test-categ_S.c: Likewise.
23361         * tests/unictype/test-categ_Sc.c: Likewise.
23362         * tests/unictype/test-categ_So.c: Likewise.
23363         * tests/unictype/test-ctype_alnum.c: Likewise.
23364         * tests/unictype/test-ctype_alpha.c: Likewise.
23365         * tests/unictype/test-ctype_graph.c: Likewise.
23366         * tests/unictype/test-ctype_lower.c: Likewise.
23367         * tests/unictype/test-ctype_print.c: Likewise.
23368         * tests/unictype/test-ctype_punct.c: Likewise.
23369         * tests/unictype/test-ctype_upper.c: Likewise.
23370         * tests/unictype/test-decdigit.h: Likewise.
23371         * tests/unictype/test-digit.h: Likewise.
23372         * tests/unictype/test-numeric.h: Likewise.
23373         * tests/unictype/test-pr_alphabetic.c: Likewise.
23374         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23375         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23376         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23377         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23378         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23379         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23380         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23381         * tests/unictype/test-pr_combining.c: Likewise.
23382         * tests/unictype/test-pr_composite.c: Likewise.
23383         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23384         * tests/unictype/test-pr_dash.c: Likewise.
23385         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23386         * tests/unictype/test-pr_deprecated.c: Likewise.
23387         * tests/unictype/test-pr_diacritic.c: Likewise.
23388         * tests/unictype/test-pr_extender.c: Likewise.
23389         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23390         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23391         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23392         * tests/unictype/test-pr_id_continue.c: Likewise.
23393         * tests/unictype/test-pr_id_start.c: Likewise.
23394         * tests/unictype/test-pr_ideographic.c: Likewise.
23395         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23396         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23397         * tests/unictype/test-pr_lowercase.c: Likewise.
23398         * tests/unictype/test-pr_numeric.c: Likewise.
23399         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23400         * tests/unictype/test-pr_punctuation.c: Likewise.
23401         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23402         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23403         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23404         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23405         * tests/unictype/test-pr_uppercase.c: Likewise.
23406         * tests/unictype/test-pr_xid_continue.c: Likewise.
23407         * tests/unictype/test-pr_xid_start.c: Likewise.
23408         * tests/unictype/test-pr_zero_width.c: Likewise.
23409         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23410         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23411         changed behaviour: line breaking is now disallowed between a letter
23412         or '=' and '('.
23413         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23414         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23415         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23416         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23417         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23418         lib/uniwidth/width.c.
23419         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23420         without comments, but with the original copyright notice.
23421         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23422         changes.
23423         * lib/unictype/categ_Cc.h: Likewise.
23424         * lib/unictype/categ_Co.h: Likewise.
23425         * lib/unictype/categ_Cs.h: Likewise.
23426         * lib/unictype/categ_Lt.h: Likewise.
23427         * lib/unictype/categ_Me.h: Likewise.
23428         * lib/unictype/categ_Pc.h: Likewise.
23429         * lib/unictype/categ_Pe.h: Likewise.
23430         * lib/unictype/categ_Pf.h: Likewise.
23431         * lib/unictype/categ_Pi.h: Likewise.
23432         * lib/unictype/categ_Ps.h: Likewise.
23433         * lib/unictype/categ_Sk.h: Likewise.
23434         * lib/unictype/categ_Sm.h: Likewise.
23435         * lib/unictype/categ_Z.h: Likewise.
23436         * lib/unictype/categ_Zl.h: Likewise.
23437         * lib/unictype/categ_Zp.h: Likewise.
23438         * lib/unictype/categ_Zs.h: Likewise.
23439         * lib/unictype/ctype_blank.h: Likewise.
23440         * lib/unictype/ctype_cntrl.h: Likewise.
23441         * lib/unictype/ctype_digit.h: Likewise.
23442         * lib/unictype/ctype_space.h: Likewise.
23443         * lib/unictype/ctype_xdigit.h: Likewise.
23444         * lib/unictype/mirror.h: Likewise.
23445         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23446         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23447         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23448         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23449         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23450         * lib/unictype/pr_bidi_control.h: Likewise.
23451         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23452         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23453         * lib/unictype/pr_bidi_pdf.h: Likewise.
23454         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23455         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23456         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23457         * lib/unictype/pr_format_control.h: Likewise.
23458         * lib/unictype/pr_hex_digit.h: Likewise.
23459         * lib/unictype/pr_hyphen.h: Likewise.
23460         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23461         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23462         * lib/unictype/pr_iso_control.h: Likewise.
23463         * lib/unictype/pr_join_control.h: Likewise.
23464         * lib/unictype/pr_left_of_pair.h: Likewise.
23465         * lib/unictype/pr_line_separator.h: Likewise.
23466         * lib/unictype/pr_math.h: Likewise.
23467         * lib/unictype/pr_non_break.h: Likewise.
23468         * lib/unictype/pr_not_a_character.h: Likewise.
23469         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23470         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23471         * lib/unictype/pr_other_id_continue.h: Likewise.
23472         * lib/unictype/pr_other_id_start.h: Likewise.
23473         * lib/unictype/pr_other_lowercase.h: Likewise.
23474         * lib/unictype/pr_other_math.h: Likewise.
23475         * lib/unictype/pr_other_uppercase.h: Likewise.
23476         * lib/unictype/pr_paired_punctuation.h: Likewise.
23477         * lib/unictype/pr_paragraph_separator.h: Likewise.
23478         * lib/unictype/pr_pattern_syntax.h: Likewise.
23479         * lib/unictype/pr_pattern_white_space.h: Likewise.
23480         * lib/unictype/pr_private_use.h: Likewise.
23481         * lib/unictype/pr_quotation_mark.h: Likewise.
23482         * lib/unictype/pr_radical.h: Likewise.
23483         * lib/unictype/pr_soft_dotted.h: Likewise.
23484         * lib/unictype/pr_space.h: Likewise.
23485         * lib/unictype/pr_titlecase.h: Likewise.
23486         * lib/unictype/pr_variation_selector.h: Likewise.
23487         * lib/unictype/pr_white_space.h: Likewise.
23488         * lib/unictype/sy_c_ident.h: Likewise.
23489         * lib/unictype/sy_c_whitespace.h: Likewise.
23490         * lib/unictype/sy_java_whitespace.h: Likewise.
23491         * modules/uni*/*: Bump version number of expected libunistring version.
23492         Reported by Simon Josefsson.
23493
23494 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23495
23496         useless-if-before-free: fix typo in --help and make the internal,
23497         automatic version date update process work once again.
23498         --help output contained a NUL character instead of the
23499         backslash-zero that was intended.  Also, the "must lie within
23500         the first 8 lines" line is on line 9, and hence not getting
23501         automatically updated.
23502         * build-aux/useless-if-before-free: Fix the former by adding a
23503         backslash, and the latter by condensing the three lines of what-it-does
23504         to a single line, leaving one line of slack for the future.
23505
23506 2011-01-09  Bruno Haible  <bruno@clisp.org>
23507
23508         uniwidth/width: Fix width of U+1D173..U+1D17A.
23509         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23510         symbolic_width, output_width_property_test): New functions.
23511         (main): Invoke output_nonspacing_property, output_width_property_test.
23512         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23513         U+1D173..U+1D17A.
23514         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23515         1.
23516         * modules/uniwidth/*: Bump version number of expected libunistring
23517         version.
23518         * modules/unilbrk/*: Likewise.
23519
23520 2011-01-08  Bruno Haible  <bruno@clisp.org>
23521
23522         uninorm tests: Preserve copyright of Unicode data file.
23523         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23524         Mention modifications.
23525
23526 2011-01-08  Bruno Haible  <bruno@clisp.org>
23527
23528         gen-uni-tables: Prepare for Unicode 5.2.0.
23529         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23530         (debug_output_lbp, output_lbp): Update.
23531
23532 2011-01-08  Bruno Haible  <bruno@clisp.org>
23533
23534         unilbrk: Clarify gen-uni-tables.c code.
23535         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23536         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23537         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23538
23539 2011-01-07  Bruno Haible  <bruno@clisp.org>
23540
23541         strtod: Restore errno when successfully parsing Infinity or NaN.
23542         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23543         restore the original errno.
23544
23545 2011-01-07  Bruno Haible  <bruno@clisp.org>
23546
23547         remove test: Avoid failure on HP-UX 11.
23548         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23549
23550 2011-01-07  Bruno Haible  <bruno@clisp.org>
23551
23552         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23553         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23554         error code.
23555
23556 2011-01-07  Pádraig Brady <P@draigBrady.com>
23557
23558         ignore-value: fixup comments, and add Eric Blake
23559         as an author since he rewrote the macros.
23560         * lib/ignore-value.h (ignore_value):  State that
23561         we now support aggregates.  Also specify exactly
23562         when the GCC warn_unused_result feature was added.
23563
23564 2011-01-06  Eric Blake  <eblake@redhat.com>
23565
23566         ignore-value: support aggregate types
23567         * lib/ignore-value.h (ignore_value): Provide separate gcc
23568         definition.
23569         * modules/ignore-value-tests: New test module.
23570         * tests/test-ignore-value.c: New test.
23571
23572         maint.mk: improve sc_prohibit_strcmp regex
23573         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23574         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23575         definition of STRNEQ.
23576
23577         signal: work around Haiku issue with SIGBUS
23578         * lib/siglist.h: Add comment.
23579         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23580         strsignal's favoring of SIGSEGV.
23581         * tests/test-signal.c (main): Avoid test failure.
23582         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23583         Reported by Scott McCreary.
23584
23585         maint.mk: add pre-release check to ensure submodule commits are public
23586         * top/maint.mk (public-submodule-commit): New rule.
23587         (submodule-checks): New variable.
23588         (alpha beta stable): Depend on the variable.
23589
23590 2011-01-05  Pádraig Brady <P@draigBrady.com>
23591         and Jim Meyering  <meyering@redhat.com>
23592
23593         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23594         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23595         (ATTRIBUTE_DEPRECATED): Define.
23596         (_ignore_case): New function.
23597         (ignore_value): New macro, to replace the old function.
23598         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23599         * modules/ignore-value (Depends-on): Add stdint.
23600
23601 2011-01-04  Eric Blake  <eblake@redhat.com>
23602
23603         doc: regenerate INSTALL
23604         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23605         @firstparagraphindent support, now that autoconf dropped it.
23606         (INSTALL_PRELUDE): Reinstate old macro.
23607         * doc/install.texi: Resync from autoconf.
23608         * doc/INSTALL: Reflect recent autoconf update.
23609         * doc/INSTALL.ISO: Likewise.
23610         * doc/INSTALL.UTF-8: Likewise.
23611         Reported by Karl Berry.
23612
23613 2011-01-04  Bruce Korb  <address@hidden>
23614
23615         git-version-gen: avoid a sub-shell
23616         * build-aux/git-version-gen: Redirect stderr in `...` via
23617         "exec 2>...", rather than via an added sub-shell.
23618
23619 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23620
23621         git-version-gen: use (...) rather than sh -c '...'
23622         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23623         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23624
23625 2011-01-03  Jim Meyering  <meyering@redhat.com>
23626
23627         git-version-gen: convert leading TABs to spaces
23628         * build-aux/git-version-gen: Expand leading TABs.
23629
23630         git-version-gen: handle failed "git rev-list"
23631         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23632         from git and proceeding as if it had succeeded but printed no SHA1
23633         checksums, suppress the diagnostic and handle the failure.
23634         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23635
23636         git-version-gen: include command name in one more diagnostic
23637         * build-aux/git-version-gen: When the required .tarball-version file
23638         was missing or unreadable, you might see the diagnostic from "cat",
23639         but no trace of the name of the invoking script.  Now, you still see
23640         the diagnostic from cat, but also get one from "git-version-gen: ".
23641         Inspired by a patch from Bruce Korb.
23642
23643         update-copyright: adjust test to match changed code
23644         * tests/test-update-copyright.sh: Change test's expected output
23645         to match new actual output.
23646
23647 2011-01-02  Bruno Haible  <bruno@clisp.org>
23648
23649         getlogin_r: Avoid test failure on HP-UX 11.
23650         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23651         ERANGE when the second argument is zero.
23652         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23653         portability problem.
23654
23655 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23656
23657         * build-aux/update-copyright: doc Simon's changes
23658
23659 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23660
23661         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23662         environment variable.
23663
23664 2011-01-02  Bruno Haible  <bruno@clisp.org>
23665
23666         unigbrk: Avoid gcc warnings.
23667         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23668         unused variable.
23669         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23670         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23671         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23672         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23673         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23674         Change type of first argument to 'const char *'.
23675         (main): Remove unused variable.
23676         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23677         type of first argument to 'const char *'.
23678         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23679         Likewise.
23680         (main): Change type of variable 's'.
23681         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23682         to 'int'.
23683
23684 2011-01-02  Bruno Haible  <bruno@clisp.org>
23685
23686         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23687         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23688         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23689         bug.
23690         * lib/pwrite.c: Undo 2010-12-31 patch.
23691         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23692
23693 2011-01-02  Bruno Haible  <bruno@clisp.org>
23694
23695         pread: Fix test whether it works.
23696         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23697
23698 2011-01-02  Bruno Haible  <bruno@clisp.org>
23699
23700         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23701         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23702         ends in "6". Don't require a specific month name. Try also the locale
23703         names found on HP-UX 11 and Solaris 7.
23704
23705 2011-01-02  Bruno Haible  <bruno@clisp.org>
23706
23707         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23708         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23709         C linkage.
23710         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23711
23712 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23713
23714         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23715         for consistency, since the "cluster" term is not used elsewhere.
23716         * lib/unigbrk.in.h: Update name.
23717         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23718         * lib/unigbrk/u16-grapheme-next.c: Update name.
23719         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23720         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23721         * lib/unigbrk/u32-grapheme-next.c: Update name.
23722         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23723         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23724         * lib/unigbrk/u8-grapheme-next.c: Update name.
23725         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23726         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23727         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23728         Suggested by Bruno Haible.
23729
23730 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23731
23732         Remove module 'u8-grapheme-len' as too redundant with
23733         'u8-grapheme-next'.
23734         * modules/unigbrk/u8-grapheme-len: Delete file.
23735         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23736         * lib/unigbrk.in.h: Remove prototype for deleted function.
23737         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23738         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23739
23740         Remove module 'u16-grapheme-len' as too redundant with
23741         'u16-grapheme-next'.
23742         * modules/unigbrk/u16-grapheme-len: Delete file.
23743         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23744         * lib/unigbrk.in.h: Remove prototype for deleted function.
23745         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23746         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23747
23748         Remove module 'u32-grapheme-len' as too redundant with
23749         'u32-grapheme-next'.
23750         * modules/unigbrk/u32-grapheme-len: Delete file.
23751         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23752         * lib/unigbrk.in.h: Remove prototype for deleted function.
23753         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23754         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23755
23756         Suggested by Bruno Haible.
23757
23758 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23759
23760         * unigbrk.in.h: Fix typo: "ben" => "been".
23761         Reported by Bruno Haible.
23762
23763 2011-01-01  Jim Meyering  <meyering@redhat.com>
23764
23765         maint: update almost all copyright ranges to include 2011
23766         Run the new "make update-copyright" rule.
23767
23768 2011-01-01  Jim Meyering  <meyering@redhat.com>
23769
23770         maint: update-copyright: exempt doc/INSTALL*
23771         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23772         since they are generated.  Suggested by Bruno Haible.
23773
23774 2011-01-01  Jim Meyering  <meyering@redhat.com>
23775
23776         maint: refine the update-copyright rule
23777         * Makefile (update-copyright): Also exclude any file that includes
23778         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23779         code that merely generates the comment.
23780
23781 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23782
23783         New module 'u8-grapheme-len'.
23784         * modules/unigbrk/u8-grapheme-len: New file.
23785         * modules/unigbrk/u8-grapheme-len-tests: New file.
23786         * lib/unigbrk.in.h: Add prototype for new function.
23787         * lib/unigbrk/u8-grapheme-len.c: New file.
23788         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23789
23790         New module 'u16-grapheme-len'.
23791         * modules/unigbrk/u16-grapheme-len: New file.
23792         * modules/unigbrk/u16-grapheme-len-tests: New file.
23793         * lib/unigbrk.in.h: Add prototype for new function.
23794         * lib/unigbrk/u16-grapheme-len.c: New file.
23795         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23796
23797         New module 'u32-grapheme-len'.
23798         * modules/unigbrk/u32-grapheme-len: New file.
23799         * modules/unigbrk/u32-grapheme-len-tests: New file.
23800         * lib/unigbrk.in.h: Add prototype for new function.
23801         * lib/unigbrk/u32-grapheme-len.c: New file.
23802         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23803
23804         New module 'u8-grapheme-next'.
23805         * modules/unigbrk/u8-grapheme-next: New file.
23806         * modules/unigbrk/u8-grapheme-next-tests: New file.
23807         * lib/unigbrk.in.h: Add prototype for new function.
23808         * lib/unigbrk/u8-grapheme-next.c: New file.
23809         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23810
23811         New module 'u16-grapheme-next'.
23812         * modules/unigbrk/u16-grapheme-next: New file.
23813         * modules/unigbrk/u16-grapheme-next-tests: New file.
23814         * lib/unigbrk.in.h: Add prototype for new function.
23815         * lib/unigbrk/u16-grapheme-next.c: New file.
23816         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23817
23818         New module 'u32-grapheme-next'.
23819         * modules/unigbrk/u32-grapheme-next: New file.
23820         * modules/unigbrk/u32-grapheme-next-tests: New file.
23821         * lib/unigbrk.in.h: Add prototype for new function.
23822         * lib/unigbrk/u32-grapheme-next.c: New file.
23823         * tests/unigbrk/test-u32-grapheme-next.c: New file.
23824
23825         New module 'u8-grapheme-prev'.
23826         * modules/unigbrk/u8-grapheme-prev: New file.
23827         * modules/unigbrk/u8-grapheme-prev-tests: New file.
23828         * lib/unigbrk.in.h: Add prototype for new function.
23829         * lib/unigbrk/u8-grapheme-prev.c: New file.
23830         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
23831
23832         New module 'u16-grapheme-prev'.
23833         * modules/unigbrk/u16-grapheme-prev: New file.
23834         * modules/unigbrk/u16-grapheme-prev-tests: New file.
23835         * lib/unigbrk.in.h: Add prototype for new function.
23836         * lib/unigbrk/u16-grapheme-prev.c: New file.
23837         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
23838
23839         New module 'u32-grapheme-prev'.
23840         * modules/unigbrk/u32-grapheme-prev: New file.
23841         * modules/unigbrk/u32-grapheme-prev-tests: New file.
23842         * lib/unigbrk.in.h: Add prototype for new function.
23843         * lib/unigbrk/u32-grapheme-prev.c: New file.
23844         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
23845
23846         New module 'u8-grapheme-breaks'.
23847         * modules/unigbrk/u8-grapheme-breaks: New file.
23848         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
23849         * lib/unigbrk.in.h: Add prototype for new function.
23850         * lib/unigbrk/u8-grapheme-breaks.c: New file.
23851         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
23852
23853         New module 'u16-grapheme-breaks'.
23854         * modules/unigbrk/u16-grapheme-breaks: New file.
23855         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
23856         * lib/unigbrk.in.h: Add prototype for new function.
23857         * lib/unigbrk/u16-grapheme-breaks.c: New file.
23858         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
23859
23860         New module 'u32-grapheme-breaks'.
23861         * modules/unigbrk/u32-grapheme-breaks: New file.
23862         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
23863         * lib/unigbrk.in.h: Add prototype for new function.
23864         * lib/unigbrk/u32-grapheme-breaks.c: New file.
23865         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
23866
23867         New module 'ulc-grapheme-breaks'.
23868         * modules/unigbrk/ulc-grapheme-breaks: New file.
23869         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
23870         * m4/locale-ar.m4: New file.
23871         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
23872         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
23873         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
23874
23875 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23876
23877         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
23878         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
23879         modified how this file was generated before I initially submitted
23880         the module, but failed to regenerate it.  This meant that several
23881         of the level2 entries were wrong.
23882         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
23883         Remove the division-by-2 that is folded into the table now that
23884         gbrkprop.h has been regenerated properly.  Now -1 entries are
23885         handled correctly.
23886
23887         New module 'unigbrk/uc-gbrk-prop-tests'.
23888         * modules/unigbrk/uc-gbrk-prop-tests: New file.
23889         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
23890         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
23891         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
23892
23893 2011-01-01  Bruno Haible  <bruno@clisp.org>
23894
23895         Avoid use of hexadecimal escapes.
23896         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
23897         instead of hexadecimal escapes.
23898
23899 2011-01-01  Jim Meyering  <meyering@redhat.com>
23900
23901         maint: new rule to update copyright year ranges
23902         * Makefile (update-copyright): New rule.
23903
23904         maint: indent with TABs in Makefile
23905         * Makefile: Expand leading sequences of spaces to TABs
23906
23907         version-etc: update the copyright year it reports
23908         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
23909
23910 2010-12-31  Bruno Haible  <bruno@clisp.org>
23911
23912         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
23913         * lib/isfinite.c (zerof, zerod, zerol): New variables.
23914         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
23915         zero.
23916
23917 2010-12-31  Bruno Haible  <bruno@clisp.org>
23918
23919         pwrite: Work around HP-UX 11.11 bug.
23920         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
23921         works and set REPLACE_PWRITE if not.
23922         * lib/pwrite.c (pwrite): Add an implementation that uses the system
23923         function.
23924         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
23925
23926 2010-12-31  Bruno Haible  <bruno@clisp.org>
23927
23928         pread: Work around HP-UX 11 bugs.
23929         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
23930         and set REPLACE_PREAD if not.
23931         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
23932
23933 2010-12-31  Eric Blake  <eblake@redhat.com>
23934
23935         nl_langinfo: fix YESEXPR on Irix 6.5
23936         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
23937         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
23938         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
23939         it.
23940
23941 2010-12-31  Bruno Haible  <bruno@clisp.org>
23942
23943         iconv: Document HP-UX 11 bug.
23944         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
23945
23946 2010-12-31  Bruno Haible  <bruno@clisp.org>
23947
23948         ldexpl: Fix link error on HP-UX 11.
23949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23950         LDEXPL_LIBM, using $ISNANL_LIBM.
23951
23952 2010-12-31  Eric Blake  <eblake@redhat.com>
23953
23954         ftello: avoid compilation failure with SunStudio c89
23955         * lib/ftello.c (ftello): Use lseek, not llseek.
23956
23957         tests: avoid failing coreutils tests on cygwin
23958         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23959         (create_exe_shims_): Return 0 when skipping.
23960
23961 2010-12-31  Bruno Haible  <bruno@clisp.org>
23962
23963         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23964         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23965
23966 2010-12-31  Bruno Haible  <bruno@clisp.org>
23967
23968         waitpid: Fix link error in C++ mode.
23969         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23970
23971 2010-12-31  Bruno Haible  <bruno@clisp.org>
23972
23973         isnan: Use GCC built-ins when possible.
23974         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23975         __builtin_isnan.
23976         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23977         (isnan): Define using GCC built-ins for GCC >= 4.0.
23978
23979 2010-12-31  Bruno Haible  <bruno@clisp.org>
23980
23981         isnand: Fix mistake.
23982         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23983         __builtin_isnand.
23984
23985 2010-12-31  Bruno Haible  <bruno@clisp.org>
23986
23987         open: Avoid C++ error on HP-UX 11.
23988         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23989
23990 2010-12-31  Bruno Haible  <bruno@clisp.org>
23991
23992         time_r: Add missing declarations on HP-UX 11.
23993         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23994         instead of HAVE_LOCALTIME_R.
23995         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23996         HAVE_LOCALTIME_R always.
23997         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23998         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23999         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24000         HAVE_LOCALTIME_R.
24001         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24002         * doc/posix-functions/localtime_r.texi: Likewise.
24003
24004 2010-12-29  Eric Blake  <eblake@redhat.com>
24005
24006         mountlist: tweak previous commit
24007         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24008         Reported by Paul Eggert.
24009
24010         mountlist: fix local drive detection on cygwin
24011         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24012         that works for cygwin.
24013
24014 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24015
24016         ftoastr, snprintf: ftoastr + snprintf module
24017         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24018         since the snprintf module now should be good enough here.
24019         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24020         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24021         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24022         GNULIB_SNPRINTF only for the test directory, and the latter
24023         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24024         seems to suffice by itself.
24025
24026 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24027
24028         alloca: one step towards thread-safety
24029         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24030         need for a static variable.  All callers changed.  This does not
24031         make the alloca replacement thread-safe, but it's one step.
24032
24033         tests: minor indenting change
24034         * tests/init.sh: Sync from coreutils housekeeping patch
24035         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24036         to keep lines within 80 columns.
24037
24038 2010-12-28  Jim Meyering  <meyering@redhat.com>
24039
24040         regex: don't infloop on persistent failing calloc
24041         * lib/regexec.c (build_trtable): Return failure indication upon
24042         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24043         In glibc, this was fixed for version 2.13:
24044         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24045
24046 2010-12-28  Bruno Haible  <bruno@clisp.org>
24047             Paul Eggert <eggert@cs.ucla.edu>
24048
24049         linkat: Make implementation robust against system behaviour variations.
24050         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24051         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24052         way, and to -2 if it needs a generic runtime test.
24053         * lib/linkat.c (solaris_optimized_link_immediate,
24054         solaris_optimized_link_follow): New functions.
24055         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24056         (check_same_link): Use it.
24057
24058 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24059
24060         New module 'unigbrk/base'.
24061         * modules/unigbrk/base: New file.
24062         * lib/unigbrk.in.h: New file.
24063
24064         New module 'unigbrk/uc-gbrk-prop'.
24065         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24066         * modules/unigbrk/uc-gbrk-prop: New file.
24067         * lib/unigbrk/gbrkprop.h: New file.
24068         * lib/unigbrk/uc-gbrk-prop.c: New file.
24069
24070         New module 'unigbrk/uc-is-grapheme-break'.
24071         * modules/unigbrk/uc-is-grapheme-break: New file.
24072         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24073         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24074         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24075         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24076         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24077
24078         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24079
24080 2010-12-27  Bruno Haible  <bruno@clisp.org>
24081
24082         linkat test: Avoid failure on Solaris 11 2010-11.
24083         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24084
24085 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24086
24087         utimens: work around glibc rounding bug on more platforms
24088         * lib/utimens.c (fdutimens): Work around rounding bug even if
24089         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24091
24092 2010-12-27  Bruno Haible  <bruno@clisp.org>
24093
24094         select tests: Improve comments.
24095         * tests/test-select.c (do_select): Add comments.
24096
24097 2010-12-27  Bruno Haible  <bruno@clisp.org>
24098
24099         select tests: Safer way of handling timeout.
24100         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24101         at every invocation.
24102
24103 2010-12-27  Bruno Haible  <bruno@clisp.org>
24104
24105         select tests: Use 'bool' where appropriate.
24106         * tests/test-select.c (connect_to_socket): Change argument type to
24107         'bool'.
24108
24109 2010-12-27  Bruno Haible  <bruno@clisp.org>
24110
24111         select tests: Use existing modules.
24112         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24113         (configure.ac): Don't test for unistd.h.
24114         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24115         declared in <unistd.h>.
24116
24117 2010-12-27  Bruno Haible  <bruno@clisp.org>
24118
24119         mbrtowc: Work around a Solaris 7 bug.
24120         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24121         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24122         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24123         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24124         MBRTOWC_NULL_ARG1_BUG.
24125         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24126         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24127         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24128         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24129
24130 2010-12-27  Jim Meyering  <meyering@redhat.com>
24131
24132         read-file.c: tweak syntax
24133         * lib/read-file.c (fread_file): Remove space after "*" in function
24134         definitions.
24135
24136 2010-12-27  Bruno Haible  <bruno@clisp.org>
24137
24138         times test: Avoid gcc warnings on OSF/1.
24139         * tests/test-times.c (main): Cast printf arguments from clock_t to
24140         'long int'.
24141
24142 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24143
24144         utimens: work around glibc rounding bug on older Linux kernels
24145         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24146         on Linux with a glibc whose utimes might not work, then work
24147         around a longstanding glibc bug involving rounding rather than
24148         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24149         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24150
24151 2010-12-26  Bruno Haible  <bruno@clisp.org>
24152
24153         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24154         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24155         _GL_CXXALIAS_SYS.
24156         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24157
24158 2010-12-26  Bruno Haible  <bruno@clisp.org>
24159
24160         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24161         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24162         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24163         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24164         looking for the declaration.
24165         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24166         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24167         problem.
24168         * doc/posix-functions/inet_pton.texi: Likewise.
24169
24170 2010-12-26  Bruno Haible  <bruno@clisp.org>
24171
24172         arpa_inet: Use the common idioms with C++ support.
24173         * lib/arpa_inet.in.h: Include c++defs.h.
24174         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24175         support.
24176         * modules/arpa_inet (Depends-on): Add c++defs.
24177         (Makefile.am): Substitute the contents of c++defs.h.
24178         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24179         * modules/arpa_inet-c++-tests: New file.
24180         * tests/test-arpa_inet-c++.cc: New file.
24181
24182 2010-12-25  Bruno Haible  <bruno@clisp.org>
24183
24184         Fix more C++ link errors on Solaris 8.
24185         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24186         $(LIB_EACCESS).
24187         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24188         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24189         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24190         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24191         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24192
24193 2010-12-25  Bruno Haible  <bruno@clisp.org>
24194
24195         printf-posix: Fix link error when a non-GCC compiler is used.
24196         * lib/stdio.in.h (printf): When not using GCC, override printf
24197         correctly.
24198         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24199
24200 2010-12-25  Bruno Haible  <bruno@clisp.org>
24201
24202         strerror_r-posix: Update doc.
24203         * doc/posix-functions/strerror_r.texi: Update doc about the return
24204         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24205
24206 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         utimens: simplify the logic of the previous change
24209         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24210         This should not affect whether the test succeeds or fails.
24211
24212         utimens: configure better on hosts with NFS clock skew
24213         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24214         uses the clock of the local host.  It might use the clock of the
24215         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24217
24218 2010-12-25  Bruno Haible  <bruno@clisp.org>
24219
24220         ptsname test: Avoid failure on Solaris.
24221         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24222         open a pseudo-terminal; don't use BSD-style ptys.
24223         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24224
24225 2010-12-25  Bruno Haible  <bruno@clisp.org>
24226
24227         ptsname: Avoid ERANGE failure on some systems.
24228         * lib/ptsname.c (buffer): Increase size.
24229
24230 2010-12-25  Bruno Haible  <bruno@clisp.org>
24231
24232         rename, renameat: Avoid test failures at NFS mounted locations.
24233         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24234         so that subsequent mkdir calls succeed.
24235
24236 2010-12-25  Bruno Haible  <bruno@clisp.org>
24237
24238         iswblank: Fix C++ link error on Solaris 8.
24239         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24240         _GL_FUNCDECL_SYS.
24241
24242 2010-12-25  Bruno Haible  <bruno@clisp.org>
24243
24244         unistd: Fix C++ link error on Solaris 8.
24245         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24246
24247 2010-12-25  Bruno Haible  <bruno@clisp.org>
24248
24249         readlink doc: Mention an old glibc bug.
24250         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24251
24252 2010-12-25  Bruno Haible  <bruno@clisp.org>
24253
24254         fcntl-h: Fix for use of C++ on glibc systems.
24255         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24256         also on glibc systems in C++ mode.
24257         Reported by Gary V. Vaughan <gary@gnu.org>.
24258
24259 2010-12-25  Bruno Haible  <bruno@clisp.org>
24260
24261         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24262         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24263
24264 2010-12-25  Bruno Haible  <bruno@clisp.org>
24265
24266         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24267         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24268         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24269         test whether truncl works according to ISO C 99 with IEC 60559.
24270         * m4/truncl-ieee.m4: New file.
24271         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24272         m4/signbit.m4.
24273         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24274
24275 2010-12-25  Bruno Haible  <bruno@clisp.org>
24276
24277         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24278         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24279         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24280         test whether ceill works according to ISO C 99 with IEC 60559.
24281         * m4/ceill-ieee.m4: New file.
24282         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24283         m4/signbit.m4.
24284         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24285
24286 2010-12-25  Bruno Haible  <bruno@clisp.org>
24287
24288         Ensure all prerequisites of <wchar.h> are included.
24289         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24290         before <wchar.h>.
24291         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24292         gl_MBRLEN_NUL_RETVAL): Likewise.
24293         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24294         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24295         AC_FUNC_MBRTOWC): Likewise.
24296         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24297         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24298         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24299         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24300         Likewise.
24301         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24302         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24303         (gl_WCHAR_H): Improve comments.
24304         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24305
24306 2010-12-25  Bruno Haible  <bruno@clisp.org>
24307
24308         strtok_r: Fix C syntax error in autoconf macro.
24309         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24310         characters in test program.
24311
24312 2010-12-24  Bruno Haible  <bruno@clisp.org>
24313
24314         ceil, trunc, round: Fix gcc warnings.
24315         * lib/ceil.c (MIN): Undefine before redefining.
24316         * lib/trunc.c (MIN): Likewise.
24317         * lib/round.c (MIN): Likewise.
24318         Include <math.h> first.
24319
24320 2010-12-24  Bruno Haible  <bruno@clisp.org>
24321
24322         select tests: Avoid failures on OSF/1 5.1.
24323         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24324         failure of closing the last socket; it may fail with ECONNRESET.
24325
24326 2010-12-24  Eric Blake  <eblake@redhat.com>
24327
24328         stdint: avoid HP-UX 10.20 preprocessor bug
24329         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24330         than #if.
24331         * tests/test-floor2.c (main): Likewise.
24332         Reported by Peter O'Gorman.
24333
24334         pipe: make obsoletion transition easier
24335         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24336         * modules/pipe (Files): Include revived file.
24337         (Include): Drop reference, to mirror getdate's behavior.
24338
24339 2010-12-24  Bruno Haible  <bruno@clisp.org>
24340
24341         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24342         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24343         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24344         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24345
24346 2010-12-24  Bruno Haible  <bruno@clisp.org>
24347
24348         gethostname: Ensure declaration on NonStop Kernel.
24349         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24351
24352 2010-12-24  Bruno Haible  <bruno@clisp.org>
24353
24354         sys_select: Ensure all necessary types on NonStop Kernel.
24355         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24356         include <sys/time.h>.
24357         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24358         NonStop Kernel.
24359         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24360
24361 2010-12-24  Bruno Haible  <bruno@clisp.org>
24362
24363         sys_select: Remove unneeded include.
24364         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24365         have <sys/select.h>.
24366
24367 2010-12-24  Bruno Haible  <bruno@clisp.org>
24368
24369         gethostname: Provide a fallback for HOST_NAME_MAX.
24370         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24371         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24372         instead.
24373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24374
24375 2010-12-24  Bruno Haible  <bruno@clisp.org>
24376
24377         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24378         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24379         (SA_RESTART): Likewise.
24380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24381
24382 2010-12-24  Bruno Haible  <bruno@clisp.org>
24383
24384         signal: Define NSIG.
24385         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24386         * tests/test-signal.c (nsig): New variable.
24387         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24388
24389 2010-12-24  Bruno Haible  <bruno@clisp.org>
24390
24391         rename, renameat: Avoid test failures on OSF/1 5.1.
24392         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24393         alternative error codes.
24394         * tests/test-renameat.c (main): Likewise.
24395
24396 2010-12-24  Bruno Haible  <bruno@clisp.org>
24397
24398         *printf: Detect large precisions bug on Solaris 10/SPARC.
24399         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24400         by Paul Eggert.
24401         * tests/test-snprintf-posix.h (test_function): Add this test code here
24402         too.
24403         * tests/test-sprintf-posix.h (test_function): Likewise.
24404         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24405         * tests/test-vasprintf-posix.c (test_function): Likewise.
24406         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24407         around by gnulib.
24408         * doc/posix-functions/printf.texi: Likewise.
24409         * doc/posix-functions/snprintf.texi: Likewise.
24410         * doc/posix-functions/sprintf.texi: Likewise.
24411         * doc/posix-functions/vfprintf.texi: Likewise.
24412         * doc/posix-functions/vprintf.texi: Likewise.
24413         * doc/posix-functions/vsnprintf.texi: Likewise.
24414         * doc/posix-functions/vsprintf.texi: Likewise.
24415         * doc/posix-functions/dprintf.texi: Undo last commit.
24416         * doc/posix-functions/vdprintf.texi: Likewise.
24417
24418 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24419
24420         tests: port test-fdutimensat.c to Solaris 8
24421         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24422         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24423         On Solaris 8, it fails with errno == ENOSYS, because there is no
24424         futimens (so it can't use the fd), and there is no lutimens (so it
24425         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24426
24427         vsnprintf: make more consistent with snprintf; doc fixes
24428
24429         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24430         the byte count return problem was promoted from the snprintf-posix
24431         to the snprintf module.
24432         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24433         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24434         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24435         * tests/test-snprintf.c (main): Check the byte count returned.
24436         * tests/test-vsnprintf.c (main): Likewise.
24437
24438 2010-12-23  Eric Blake  <eblake@redhat.com>
24439
24440         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24441         * modules/sigpipe (License): Relax license.
24442
24443 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24444
24445         doc: document Solaris printf bug with large float precisions
24446         * doc/posix-functions/dprintf.texi (dprintf):
24447         * doc/posix-functions/fprintf.texi (fprintf):
24448         * doc/posix-functions/printf.texi (printf):
24449         * doc/posix-functions/snprintf.texi (snprintf):
24450         * doc/posix-functions/sprintf.texi (sprintf):
24451         * doc/posix-functions/vdprintf.texi (vdprintf):
24452         * doc/posix-functions/vfprintf.texi (vfprintf):
24453         * doc/posix-functions/vprintf.texi (vprintf):
24454         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24455         * doc/posix-functions/vsprintf.texi (vsprintf):
24456         Mention that these functions mishandle large floating point
24457         precisions on Solaris 10.  The same bug is also present in Solaris
24458         8, and I assume earlier.  This causes "cd gnulib-tests; make
24459         check" to fail on Solaris 8 (and I assume, later) when building
24460         the latest coreutils, in test-vasprintf-posix's call to
24461         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24462         the wide flavors (e.g., wprintf) so this patch just updates the
24463         documentation for the narrow ones.
24464
24465         test-posixtm.c: add two tests
24466         * tests/test-posixtm.c: Add two tests, to highlight the
24467         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24468         around this bug; this is merely to document it.
24469
24470 2010-12-22  Bruno Haible  <bruno@clisp.org>
24471
24472         getlogin_r: Work around portability problem on OSF/1.
24473         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24474         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24475         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24476         test for a truncated result.
24477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24478         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24479         * modules/getlogin_r (Depends-on): Add memchr.
24480         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24481
24482 2010-12-22  Bruno Haible  <bruno@clisp.org>
24483
24484         ptsname: Avoid test failure on OSF/1 5.1.
24485         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24486         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24487         (same_slave): New function.
24488         (main): Use it to compare ptsname's result with the expected file name.
24489
24490 2010-12-22  Bruno Haible  <bruno@clisp.org>
24491
24492         Port extended stdio modules to HP NonStop Kernel.
24493         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24494         macros.
24495         * lib/fbufmode.c: Update comments.
24496         * lib/fflush.c: Likewise.
24497         * lib/fpurge.c: Likewise.
24498         * lib/freadable.c: Likewise.
24499         * lib/freadahead.c: Likewise.
24500         * lib/freading.c: Likewise.
24501         * lib/freadptr.c: Likewise.
24502         * lib/freadseek.c: Likewise.
24503         * lib/fseeko.c: Likewise.
24504         * lib/fseterr.c: Likewise.
24505         * lib/fwritable.c: Likewise.
24506         * lib/fwriting.c: Likewise.
24507         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24508
24509 2010-12-22  Bruno Haible  <bruno@clisp.org>
24510
24511         ttyname_r: Work around bug on OSF/1 5.1.
24512         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24513         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24514         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24515         present.
24516         * lib/ttyname_r.c (ttyname_r): Update comments.
24517
24518 2010-12-22  Bruno Haible  <bruno@clisp.org>
24519
24520         round: Implement result sign according to IEEE 754.
24521         * lib/round.c (MIN, MINUS_ZERO): New macros.
24522         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24523         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24524         * tests/test-round-ieee.c (main): Likewise.
24525         * tests/test-roundl-ieee.c (main): Likewise.
24526
24527         trunc: Implement result sign according to IEEE 754.
24528         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24529         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24530         * tests/test-trunc2.c: Include minus-zero.h.
24531         (MINUS_ZERO): New macro.
24532         (trunc_reference): Keep in sync with lib/trunc.c.
24533         * tests/test-truncf2.c: Include minus-zero.h.
24534         (MINUS_ZERO): New macro.
24535         (truncf_reference): Keep in sync with lib/trunc.c.
24536         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24537         * tests/test-trunc-ieee.c (main): Likewise.
24538         * tests/test-truncl-ieee.c (main): Likewise.
24539
24540         ceil: Implement result sign according to IEEE 754.
24541         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24542         (FUNC): Return -0.0 for -1 < x < 0.
24543         * tests/test-ceil2.c: Include minus-zero.h.
24544         (MINUS_ZERO): New macro.
24545         (ceil_reference): Keep in sync with lib/ceil.c.
24546         * tests/test-ceilf2.c: Include minus-zero.h.
24547         (MINUS_ZERO): New macro.
24548         (ceilf_reference): Keep in sync with lib/ceil.c.
24549         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24550         * tests/test-ceil-ieee.c (main): Likewise.
24551         * tests/test-ceill-ieee.c (main): Likewise.
24552
24553         floor: Implement result sign according to IEEE 754.
24554         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24555         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24556         * tests/test-floorf2.c (floorf_reference): Likewise.
24557         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24558         * tests/test-floor-ieee.c (main): Likewise.
24559         * tests/test-floorl-ieee.c (main): Likewise.
24560
24561 2010-12-22  Bruno Haible  <bruno@clisp.org>
24562
24563         getaddrinfo: Update doc.
24564         * doc/posix-functions/gai_strerror.texi: Return type is also different
24565         on AIX and HP-UX.
24566
24567 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         getaddrinfo, inet_ntop: Update doc for Solaris.
24570         * doc/posix-functions/gai_strerror.texi: Return type is also an
24571         issue on Solaris 9 and earlier.
24572         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24573         on Solaris 10 and earlier.
24574
24575 2010-12-21  Bruno Haible  <bruno@clisp.org>
24576
24577         New module 'roundl-ieee'.
24578         * modules/roundl-ieee: New file.
24579         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24580         test whether roundl works according to ISO C 99 with IEC 60559.
24581         * m4/roundl-ieee.m4: New file.
24582         * modules/roundl-ieee-tests: New file.
24583         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24584         * tests/test-roundl.c (main): Remove signbit tests.
24585         * modules/roundl-tests (Depends-on): Remove signbit.
24586         * doc/posix-functions/roundl.texi: Mention the new module.
24587
24588 2010-12-21  Bruno Haible  <bruno@clisp.org>
24589
24590         New module 'truncl-ieee'.
24591         * modules/truncl-ieee: New file.
24592         * modules/truncl-ieee-tests: New file.
24593         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24594         * tests/test-truncl.c (main): Remove signbit tests.
24595         * modules/truncl-tests (Depends-on): Remove signbit.
24596         * doc/posix-functions/truncl.texi: Mention the new module.
24597
24598 2010-12-21  Bruno Haible  <bruno@clisp.org>
24599
24600         New module 'ceill-ieee'.
24601         * modules/ceill-ieee: New file.
24602         * modules/ceill-ieee-tests: New file.
24603         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24604         * tests/test-ceill.c (main): Remove signbit tests.
24605         * modules/ceill-tests (Depends-on): Remove signbit.
24606         * doc/posix-functions/ceill.texi: Mention the new module.
24607
24608 2010-12-21  Bruno Haible  <bruno@clisp.org>
24609
24610         New module 'floorl-ieee'.
24611         * modules/floorl-ieee: New file.
24612         * modules/floorl-ieee-tests: New file.
24613         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24614         * tests/test-floorl.c (main): Remove signbit tests.
24615         * modules/floorl-tests (Depends-on): Remove signbit.
24616         * doc/posix-functions/floorl.texi: Mention the new module.
24617
24618 2010-12-21  Bruno Haible  <bruno@clisp.org>
24619
24620         New module 'round-ieee'.
24621         * modules/round-ieee: New file.
24622         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24623         whether round works according to ISO C 99 with IEC 60559.
24624         * m4/round-ieee.m4: New file.
24625         * modules/round-ieee-tests: New file.
24626         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24627         * tests/test-round1.c (main): Remove signbit tests.
24628         * modules/round-tests (Depends-on): Remove 'signbit'.
24629         * doc/posix-functions/round.texi: Mention the new module.
24630
24631 2010-12-21  Bruno Haible  <bruno@clisp.org>
24632
24633         New module 'trunc-ieee'.
24634         * modules/trunc-ieee: New file.
24635         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24636         whether trunc works according to ISO C 99 with IEC 60559.
24637         * m4/trunc-ieee.m4: New file.
24638         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24640         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24641         * modules/trunc-ieee-tests: New file.
24642         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24643         * tests/test-trunc1.c (main): Remove signbit tests.
24644         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24645         * doc/posix-functions/trunc.texi: Mention the new module.
24646
24647 2010-12-21  Bruno Haible  <bruno@clisp.org>
24648
24649         New module 'ceil-ieee'.
24650         * modules/ceil-ieee: New file.
24651         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24652         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24653         ISO C 99 with IEC 60559.
24654         * m4/ceil-ieee.m4: New file.
24655         * modules/ceil (Files): Add lib/ceil.c.
24656         (Depends-on): Add 'float'.
24657         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24658         * lib/math.in.h (ceil): New declaration.
24659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24660         REPLACE_CEIL.
24661         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24662         * modules/ceil-ieee-tests: New file.
24663         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24664         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24665         * doc/posix-functions/ceil.texi: Mention the new module.
24666
24667 2010-12-21  Bruno Haible  <bruno@clisp.org>
24668
24669         New module 'floor-ieee'.
24670         * modules/floor-ieee: New file.
24671         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24672         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24673         ISO C 99 with IEC 60559.
24674         * m4/floor-ieee.m4: New file.
24675         * modules/floor (Files): Add lib/floor.c.
24676         (Depends-on): Add 'float'.
24677         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24678         * lib/math.in.h (floor): New declaration.
24679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24680         REPLACE_FLOOR.
24681         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24682         * modules/floor-ieee-tests: New file.
24683         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24684         * tests/test-math-c++.cc: Check the signature of 'floor'.
24685         * doc/posix-functions/floor.texi: Mention the new module.
24686
24687 2010-12-21  Bruno Haible  <bruno@clisp.org>
24688
24689         New module 'roundf-ieee'.
24690         * modules/roundf-ieee: New file.
24691         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24692         test whether roundf works according to ISO C 99 with IEC 60559.
24693         * m4/roundf-ieee.m4: New file.
24694         * modules/roundf-ieee-tests: New file.
24695         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24696         * tests/test-roundf1.c (main): Remove signbit tests.
24697         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24698         * doc/posix-functions/roundf.texi: Mention the new module.
24699
24700 2010-12-21  Bruno Haible  <bruno@clisp.org>
24701
24702         New module 'truncf-ieee'.
24703         * modules/truncf-ieee: New file.
24704         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24705         test whether truncf works according to ISO C 99 with IEC 60559.
24706         * m4/truncf-ieee.m4: New file.
24707         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24709         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24710         * modules/truncf-ieee-tests: New file.
24711         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24712         * tests/test-truncf1.c (main): Remove signbit tests.
24713         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24714         * doc/posix-functions/truncf.texi: Mention the new module.
24715
24716 2010-12-21  Bruno Haible  <bruno@clisp.org>
24717
24718         New module 'ceilf-ieee'.
24719         * modules/ceilf-ieee: New file.
24720         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24721         test whether ceilf works according to ISO C 99 with IEC 60559.
24722         * m4/ceilf-ieee.m4: New file.
24723         * modules/ceilf-ieee-tests: New file.
24724         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24725         * tests/test-ceilf1.c (main): Remove signbit tests.
24726         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24727         * doc/posix-functions/ceilf.texi: Mention the new module.
24728
24729 2010-12-21  Bruno Haible  <bruno@clisp.org>
24730
24731         New module 'floorf-ieee'.
24732         * modules/floorf-ieee: New file.
24733         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24734         test whether floorf works according to ISO C 99 with IEC 60559.
24735         * m4/floorf-ieee.m4: New file.
24736         * modules/floorf-ieee-tests: New file.
24737         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24738         * tests/test-floorf1.c (main): Remove signbit tests.
24739         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24740         * doc/posix-functions/floorf.texi: Mention the new module.
24741
24742 2010-12-21  Bruno Haible  <bruno@clisp.org>
24743
24744         Support for minus zero in autoconf macros.
24745         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24746         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24747         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24748         * tests/minus-zero.h: Update comments.
24749
24750 2010-12-21  Bruno Haible  <bruno@clisp.org>
24751
24752         Tests for module 'ceil'.
24753         * modules/ceil-tests: New file.
24754         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24755         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24756
24757 2010-12-21  Bruno Haible  <bruno@clisp.org>
24758
24759         Tests for module 'floor'.
24760         * modules/floor-tests: New file.
24761         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24762         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24763
24764 2010-12-21  Bruno Haible  <bruno@clisp.org>
24765
24766         math: Fix indentation.
24767         * lib/math.in.h (floorf): Fix indentation.
24768
24769 2010-12-21  Bruno Haible  <bruno@clisp.org>
24770
24771         Fix cross-compilation guesses on Solaris.
24772         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24773         not match "solaris2.10".
24774         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24775         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24776         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24777
24778 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24779
24780         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24781         This fixes a problem observed with the latest coreutils snapshot
24782         that caused a test to fail on Solaris 8.  src/csplit.c's call
24783         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24784         earlier, instead of returning the number of bytes that would have
24785         been generated; this causes csplit to incorrectly report memory
24786         exhaustion.
24787         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24788         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24789         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24790         comments to match.
24791         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24792         Fix typo in matching older versions of Solaris: "solaris2.10"
24793         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24794         only for guessing while cross-compiling.
24795         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24796
24797 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24798
24799         ftoastr: fix comment again
24800         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24802         Also, simplify example a bit by using flags = 0.
24803
24804 2010-12-20  Bruno Haible  <bruno@clisp.org>
24805
24806         round*, trunc*: Update documentation regarding glibc.
24807         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24808         * doc/posix-functions/round.texi: Likewise.
24809         * doc/posix-functions/roundl.texi: Likewise.
24810         * doc/posix-functions/truncf.texi: Likewise.
24811         * doc/posix-functions/trunc.texi: Likewise.
24812         * doc/posix-functions/truncl.texi: Likewise.
24813
24814 2010-12-20  Bruno Haible  <bruno@clisp.org>
24815
24816         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24817         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
24818         * doc/posix-functions/round.texi: Likewise.
24819         * doc/posix-functions/roundl.texi: Likewise.
24820
24821 2010-12-20  Bruno Haible  <bruno@clisp.org>
24822
24823         ttyname_r: Add missing declaration on HP-UX 11.
24824         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
24825         HAVE_TTYNAME_R.
24826         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
24827         declared. Set HAVE_TTYNAME_R always.
24828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24829         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
24830         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
24831         HAVE_TTYNAME_R.
24832         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
24833
24834 2010-12-20  Bruno Haible  <bruno@clisp.org>
24835
24836         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
24837         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
24838         * doc/posix-functions/getlogin_r.texi: Likewise.
24839         * tests/test-getlogin.c: Include <errno.h>.
24840         (main): Avoid test failure on HP-UX 11.11.
24841         * tests/test-getlogin_r.c (main): Likewise.
24842
24843 2010-12-20  Bruno Haible  <bruno@clisp.org>
24844
24845         getlogin_r: Add missing declaration on HP-UX 11.
24846         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
24847         declared also when it exists as a function.
24848         * doc/posix-functions/getlogin_r.texi: Document this workaround.
24849
24850 2010-12-20  Bruno Haible  <bruno@clisp.org>
24851
24852         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
24853         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
24854         through wcrtomb.
24855
24856 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24857
24858         ftoastr: fix comment
24859         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24860         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
24861
24862 2010-12-19  Bruno Haible  <bruno@clisp.org>
24863
24864         isnan: Ensure it is a macro.
24865         * lib/math.in.h (isnan): Define as a macro if not already a macro.
24866         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
24867         Solaris.
24868
24869 2010-12-19  Bruno Haible  <bruno@clisp.org>
24870
24871         ldexpl test: Fix link error on OSF/1 5.1.
24872         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
24873
24874 2010-12-19  Bruno Haible  <bruno@clisp.org>
24875
24876         wctype: Make it work in C++ mode on OSF/1 5.1.
24877         * lib/wctype.in.h (iswblank): Declare but not define here.
24878         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
24879         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
24880         * modules/wctype (Files): Add lib/iswblank.c.
24881
24882 2010-12-19  Bruno Haible  <bruno@clisp.org>
24883
24884         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
24885         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
24886         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
24887
24888 2010-12-19  Bruno Haible  <bruno@clisp.org>
24889
24890         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
24891         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
24892         _POSIX_PII_SOCKET.
24893         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
24894         * doc/posix-functions/recvfrom.texi: Likewise.
24895         * doc/posix-functions/send.texi: Likewise.
24896         * doc/posix-functions/sendto.texi: Likewise.
24897
24898 2010-12-19  Bruno Haible  <bruno@clisp.org>
24899
24900         tcgetsid: Add missing declaration on OSF/1 5.1.
24901         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
24902         HAVE_TCGETSID.
24903         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
24904         Don't set HAVE_TCGETSID.
24905         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
24906         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
24907         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
24908         HAVE_TCGETSID.
24909         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
24910
24911 2010-12-19  Bruno Haible  <bruno@clisp.org>
24912
24913         stdio: Fix problem with popen() declaration on OSF/1 5.1.
24914         * lib/stdio.in.h: During the include_next statement, let recursive
24915         includes of this file include only the system header file.
24916
24917 2010-12-19  Bruno Haible  <bruno@clisp.org>
24918
24919         iconv_open: Fix regression from 2010-12-04.
24920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
24921         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
24922
24923 2010-12-19  Bruno Haible  <bruno@clisp.org>
24924
24925         stdbool test: Avoid a gcc warning.
24926         * tests/test-stdbool.c (main): Fail if e1 is false.
24927         Reported by Jim Meyering.
24928
24929 2010-12-19  Jim Meyering  <meyering@redhat.com>
24930
24931         setenv: restore to working order
24932         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
24933         mistakenly removed.
24934         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
24935         HAVE_SETENV.
24936         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
24937         HAVE_SETENV.
24938
24939 2010-12-19  Bruno Haible  <bruno@clisp.org>
24940
24941         Document some different function declarations on OSF/1 5.1.
24942         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
24943         * doc/posix-functions/inet_ntop.texi: Likewise.
24944         * doc/posix-functions/gethostname.texi: Likewise.
24945         * lib/unistd.in.h (gethostname): Update comment.
24946
24947 2010-12-19  Bruno Haible  <bruno@clisp.org>
24948
24949         doc: Mention vasprintf-posix module.
24950         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24951         the 'vasprintf-posix' module.
24952         * doc/glibc-functions/vasprintf.texi: Likewise.
24953
24954 2010-12-19  Bruno Haible  <bruno@clisp.org>
24955
24956         unsetenv: Add missing declaration on OSF/1 5.1.
24957         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24958         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24959         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24961         not HAVE_UNSETENV.
24962         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24963         HAVE_UNSETENV.
24964         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24965
24966 2010-12-19  Bruno Haible  <bruno@clisp.org>
24967
24968         setenv: Add missing declaration on OSF/1 5.1.
24969         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24970         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24971         declared. Don't set HAVE_SETENV.
24972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24973         not HAVE_SETENV.
24974         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24975         HAVE_SETENV.
24976         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24977
24978 2010-12-19  Bruno Haible  <bruno@clisp.org>
24979
24980         nl_langinfo tests: Avoid gcc warning.
24981         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24982
24983 2010-12-19  Bruno Haible  <bruno@clisp.org>
24984
24985         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24986         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24987         _GL_CXXALIAS_SYS.
24988
24989 2010-12-19  Bruno Haible  <bruno@clisp.org>
24990
24991         stdbool: Relax test.
24992         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24993         address to 'bool' work in static initializer, for compilers other than
24994         GCC.
24995
24996 2010-12-19  Bruno Haible  <bruno@clisp.org>
24997
24998         ftello: Add missing declaration on OSF/1 5.1.
24999         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25000         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25002         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25003         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25004
25005 2010-12-19  Bruno Haible  <bruno@clisp.org>
25006
25007         fseeko: Add missing declaration on OSF/1 5.1.
25008         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25009         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25011         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25012         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25013
25014 2010-12-19  Bruno Haible  <bruno@clisp.org>
25015
25016         fchdir: Add missing declaration on OSF/1 5.1.
25017         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25018         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25020         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25021         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25022
25023 2010-12-19  Bruno Haible  <bruno@clisp.org>
25024
25025         relocatable-prog-wrapper: Separate from relocatable-prog.
25026         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25027         uninstall-relocwrapper rule here.
25028         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25029         Reported by Ian Beckwith <ianb@erislabs.net>.
25030
25031 2010-12-19  Bruno Haible  <bruno@clisp.org>
25032
25033         unistr/u8-mbsnlen: Add missing dependency.
25034         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25035         Reported by Ian Beckwith <ianb@erislabs.net>.
25036
25037 2010-12-19  Bruno Haible  <bruno@clisp.org>
25038
25039         iconv: Make it possible again to use this module without 'iconv-h'.
25040         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25041         if it is not defined.
25042         Reported by Ian Beckwith <ianb@erislabs.net>.
25043
25044 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25045
25046         acl: port to Solaris 8 when copying from tmpfs to ufs
25047         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25048         error number.  Problem observed on Solaris 8 with latest
25049         coreutils, with "mv A B", where A is on a tmpfs file system and B
25050         is on a ufs file system.  This caused coreutils' mv/part-symlink
25051         test to fail.
25052
25053         tests: set fail=0 at start
25054         * tests/init.sh (setup_): Move fail=0 initialization here ...
25055         (mktempd_): ... from here, so that tests can rely on fail being
25056         set to 0 initially.  This fixes a problem in coreutils; see:
25057         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25058
25059 2010-12-18  Bruno Haible  <bruno@clisp.org>
25060
25061         memmem-simple: Stylistic changes.
25062         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25063         Fix preprocessor directive indentation.
25064
25065 2010-12-15  Pádraig Brady <P@draigBrady.com>
25066
25067         memmem, memmem-simple: reorganize and expand empty needle check
25068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25069         functional checks to memmem-simple so that one has a fully functional
25070         memmem by using just this module.
25071         Restrict the performance only check to the memmem module.
25072         Also expand the empty needle check to ensure the correct
25073         pointer is returned, not just a non NULL pointer.
25074         * doc/glibc-functions/memmem.texi: Rearrange the portability
25075         documentation to correlate with the rearranged checks.
25076         Clarify exactly how the memmem and memmem-simple modules
25077         relate to each other.
25078
25079 2010-12-15  Pádraig Brady <P@draigBrady.com>
25080             Bruno Haible  <bruno@clisp.org>
25081
25082         Improve cross-compilation guesses for uClibc.
25083         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25084         that uClibc does not have the glibc bug.
25085         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25086         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25087
25088 2010-12-14  Eric Blake  <eblake@redhat.com>
25089
25090         configmake: provide fallbacks for oldest supported autotools
25091         * m4/configmake.m4: New file.
25092         * modules/configmake (Files): Ship it.
25093         (configure.ac): Use it to guarantee fallbacks.
25094
25095 2010-12-13  Pádraig Brady <P@draigBrady.com>
25096
25097         read-file: Improve handling of large files
25098         * lib/read-file.c (fread_file): Minimize realloc()s
25099         for regular files, and better manage sizes around SIZE_MAX.
25100
25101 2010-12-13  Eric Blake  <eblake@redhat.com>
25102
25103         cloexec, fcntl: relax license
25104         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25105         consent from all contributors.
25106         * modules/fcntl (License): Likewise.
25107
25108 2010-12-10  Bruno Haible  <bruno@clisp.org>
25109
25110         Tests for module 'pipe-posix'.
25111         * modules/pipe-posix-tests: New file.
25112         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25113
25114 2010-12-10  Bruno Haible  <bruno@clisp.org>
25115
25116         pipe-posix: Make it work in C++ mode.
25117         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25118         (pipe): Use common idiom, not a macro definition.
25119         * lib/pipe.c: New file.
25120         * m4/pipe.m4: New file.
25121         * modules/pipe-posix (Description): Enhance.
25122         (Files): Add lib/pipe.c, m4/pipe.m4.
25123         (configure.ac): Invoke gl_FUNC_PIPE.
25124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25125         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25126         * tests/test-unistd-c++.cc: Check the signature of pipe.
25127
25128 2010-12-10  Bruno Haible  <bruno@clisp.org>
25129
25130         Rename module 'pipe' to 'spawn-pipe'.
25131         * modules/spawn-pipe: New file, renamed from modules/pipe.
25132         (Files, configure.ac, Makefile.am): Update.
25133         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25134         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25135         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25136         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25137         "spawn-pipe.h" instead of "pipe.h".
25138         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25139         to gl_SPAWN_PIPE.
25140         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25141         (Files, Makefile.am): Update.
25142         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25143         Update.
25144         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25145         Include "spawn-pipe.h" instead of "pipe.h".
25146         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25147         * lib/javacomp.c: Likewise.
25148         * lib/javaversion.c: Likewise.
25149         * lib/pipe-filter-gi.c: Likewise.
25150         * lib/pipe-filter-ii.c: Likewise.
25151         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25152         * modules/javacomp (Depends-on): Likewise.
25153         * modules/javaversion (Depends-on): Likewise.
25154         * modules/pipe-filter-gi (Depends-on): Likewise.
25155         * modules/pipe-filter-ii (Depends-on): Likewise.
25156         * MODULES.html.sh (Executing programs): Update.
25157         * NEWS: Mention the change.
25158
25159 2010-12-10  Eric Blake  <eblake@redhat.com>
25160
25161         pipe-posix: new module
25162         * modules/pipe-posix: New file.
25163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25164         (gl_UNISTD_H): Check for declaration.
25165         * modules/unistd (Makefile.am): Substitute it.
25166         * lib/unistd.in.h (pipe): Provide it for mingw.
25167         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25168         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25169
25170 2010-12-07  Bruno Haible  <bruno@clisp.org>
25171
25172         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25173         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25174         u8_strcmp_gnu.
25175         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25176
25177 2010-12-06  Bruno Haible  <bruno@clisp.org>
25178
25179         Update internal documentation.
25180         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25181
25182 2010-12-04  Bruno Haible  <bruno@clisp.org>
25183
25184         Put more information about failed tests into the test return codes.
25185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25186         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25187         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25188         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25189         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25190         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25191         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25192         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25193         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25195         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25196         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25197         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25198         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25199         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25200         returns a bit mask.
25201         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25202         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25203         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25204         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25205         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25206         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25207         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25209         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25210         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25211         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25212         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25214         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25215         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25216         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25217         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25218         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25219         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25220         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25222         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25223         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25224         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25225         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25226         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25227         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25228         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25229         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25230         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25231         gl_PRINTF_PRECISION): Likewise.
25232         * m4/regex.m4 (gl_REGEX): Likewise.
25233         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25234         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25235         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25236         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25237         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25238         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25239         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25240         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25241         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25242         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25243         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25244         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25245         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25246         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25247         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25248         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25249         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25250         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25252         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25253         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25254         enumerated value.
25255         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25256
25257 2010-12-04  Bruno Haible  <bruno@clisp.org>
25258
25259         Update for Solaris 11 2010-11.
25260         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25261         Express, released in November 2010.
25262
25263 2010-12-04  Bruno Haible  <bruno@clisp.org>
25264
25265         nproc: Relax license.
25266         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25267         and Paul Eggert.
25268         Requested by Ludovic Courtès <ludo@gnu.org>.
25269
25270 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25271
25272         utimecmp: fine-grained src to nearby coarse-grained dest
25273
25274         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25275         and the source is on a file system with higher-resolution time
25276         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25277         not work, and the time stamps are close together, the algorithm to
25278         determine the exact resolution from the read-back mtime was buggy:
25279         it had a "!=" where it should have had an "==".  This bug has been
25280         in the code ever since it was introduced to gnulib.
25281         Problem reported by Dan Jacobson in
25282         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25283
25284 2010-11-30  Bruno Haible  <bruno@clisp.org>
25285
25286         strerror_r-posix: Fix autoconf test.
25287         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25288
25289 2010-11-28  Bruno Haible  <bruno@clisp.org>
25290             Paul Eggert  <eggert@cs.ucla.edu>
25291
25292         Tests for module 'getdomainname'.
25293         * modules/getdomainname-tests: New file.
25294         * tests/test-getdomainname.c: New file, based on
25295         tests/test-gethostname.c.
25296
25297 2010-11-28  Bruno Haible  <bruno@clisp.org>
25298             Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         getdomainname: Use the system function when possible.
25301         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25302         (getdomainname): Replace if needed. Provide the declaration if it is
25303         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25304         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25305         (getdomainname): When the system has getdomainname, call the system
25306         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25307         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25308         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25309         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25310         the function if its second argument is of type 'int' or if it is found
25311         in libnsl.
25312         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25313         <sys/systeminfo.h> and sysinfo().
25314         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25316         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25317         HAVE_GETDOMAINNAME.
25318         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25319         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25320         * doc/glibc-functions/getdomainname.texi: Document the problems with
25321         the getdomainname declaration.
25322
25323 2010-11-28  Bruno Haible  <bruno@clisp.org>
25324
25325         sys_socket: Ensure ss_family field on AIX.
25326         * lib/sys_socket.in.h (ss_family): New macro definition.
25327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25328         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25329         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25330         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25331         * modules/sys_socket (Makefile.am): Substitute
25332         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25333         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25334
25335 2010-11-27  Bruno Haible  <bruno@clisp.org>
25336
25337         readline: Improve configure output.
25338         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25339         "checking for readline..." result understandable.
25340
25341 2010-11-27  Bruno Haible  <bruno@clisp.org>
25342
25343         *printf-posix: Detect a bug on Solaris 10/x86.
25344         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25345         for floating-point output.
25346         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25347         directive.
25348         * tests/test-snprintf-posix.h (test_function): Likewise.
25349         * tests/test-sprintf-posix.h (test_function): Likewise.
25350         * tests/test-vasprintf-posix.c (test_function): Likewise.
25351         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25352         * doc/posix-functions/printf.texi: Likewise.
25353         * doc/posix-functions/snprintf.texi: Likewise.
25354         * doc/posix-functions/sprintf.texi: Likewise.
25355         * doc/posix-functions/vfprintf.texi: Likewise.
25356         * doc/posix-functions/vprintf.texi: Likewise.
25357         * doc/posix-functions/vsnprintf.texi: Likewise.
25358         * doc/posix-functions/vsprintf.texi: Likewise.
25359         * doc/glibc-functions/obstack_printf.texi: Likewise.
25360         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25361
25362 2010-11-27  Bruno Haible  <bruno@clisp.org>
25363
25364         Fix link error when module libunistring-optional is in use.
25365         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25366         * modules/striconveha-tests (Makefile.am): Likewise.
25367
25368 2010-11-27  Bruno Haible  <bruno@clisp.org>
25369
25370         regex: Mention link dependencies.
25371         * modules/regex (Link): New section.
25372         * modules/rpmatch (Link): Likewise.
25373         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25374
25375 2010-11-27  Bruno Haible  <bruno@clisp.org>
25376
25377         ftoastr: Fix compilation error on Solaris.
25378         * lib/ftoastr.c: Include <config.h>.
25379
25380 2010-11-27  Bruno Haible  <bruno@clisp.org>
25381
25382         getloadavg: Update documentation.
25383         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25384
25385 2010-11-27  Bruno Haible  <bruno@clisp.org>
25386
25387         sys_socket: Fix test whether the functions are declared.
25388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25389         not <sys/select.h>.
25390
25391 2010-11-27  Bruno Haible  <bruno@clisp.org>
25392
25393         getpass: Make sure to get system declaration on some platforms.
25394         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25395         gl_USE_SYSTEM_EXTENSIONS.
25396         * modules/getpass (Depends-on): Add extensions.
25397
25398 2010-11-26  Bruno Haible  <bruno@clisp.org>
25399
25400         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25401         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25402         'iconv' module is present.
25403         (ICONV_CONST): New macro.
25404         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25405         ICONV_CONST.
25406         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25407         set ICONV_CONST.
25408         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25409         here.
25410         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25411         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25412         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25413         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25414         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25415         present.
25416
25417 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25418
25419         ftoastr: comment fix
25420         * lib/ftoastr.c: "little" -> "little or no" in comment
25421
25422 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25423
25424         stdint: port to GCC 4.3 + OSX + Octave
25425         On this platform, stdint.h is buggy and defines int64_t to long
25426         long int.  The replacement defined it to long int, causing
25427         problems with C++ style name mangling.  Instead, trust the system
25428         definition if INT64_MAX is defined, and likewise for the unsigned
25429         variant.   Problem reported by Jarno Rajahalme in
25430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25431         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25432         and don't mess with int64_t and INT64_MAX in this case.
25433         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25434
25435 2010-11-24  Bruno Haible  <bruno@clisp.org>
25436
25437         doc: Corrections regarding MacOS X 10.4 and 10.5.
25438         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25439         MacOS X.
25440         Reported by Simon Josefsson.
25441
25442 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25443
25444         Uninstall ".bin" files installed by relocwrapper.
25445         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25446         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25447         unless it is already there.
25448
25449 2010-11-21  Bruno Haible  <bruno@clisp.org>
25450
25451         Update for NetBSD 5.0.
25452         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25453         NetBSD; the test fails on NetBSD 5.0.
25454         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25455         about NetBSD.
25456
25457 2010-11-21  Bruno Haible  <bruno@clisp.org>
25458
25459         Update for HP-UX 11.23 and HP-UX 11.31.
25460         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25461         HP-UX.
25462
25463 2010-11-21  Bruno Haible  <bruno@clisp.org>
25464
25465         Update for MacOS X 10.5.
25466         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25467         MacOS X; the test fails on MacOS X 10.5.8.
25468         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25469         about MacOS X.
25470
25471 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25472
25473         bootstrap: add bootstrap_sync option.
25474         See discussion at
25475         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25476         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25477         * build-aux/bootstrap: Accept --bootstrap-sync to update
25478         bootstrap if it is not identical to the local gnulib's
25479         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25480         enable this by default.  Accept --no-bootstrap-sync to disable
25481         it.
25482
25483 2010-11-20  Bruno Haible  <bruno@clisp.org>
25484
25485         Ensure that <features.h> is included before __GLIBC__ is tested.
25486         * lib/printf-parse.h: Include <features.h>.
25487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25488         Reported by Mike Frysinger <vapier@gentoo.org>.
25489
25490         Ensure that <features.h> is included before __GLIBC__ is tested.
25491         * lib/wchar.in.h: Include <features.h>.
25492         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25493         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25494         Reported by Mike Frysinger <vapier@gentoo.org>.
25495
25496         Ensure that <features.h> is included before __GLIBC__ is tested.
25497         * lib/arpa_inet.in.h: Include <features.h>.
25498         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25499         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25500         Reported by Mike Frysinger <vapier@gentoo.org>.
25501
25502         Ensure that <features.h> is included before __GLIBC__ is tested.
25503         * build-aux/link-warning.h: Include <features.h>.
25504         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25505         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25506         Reported by Mike Frysinger <vapier@gentoo.org>.
25507
25508         Ensure that <features.h> is included before __GLIBC__ is tested.
25509         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25510         Reported by Mike Frysinger <vapier@gentoo.org>.
25511
25512 2010-11-20  Bruno Haible  <bruno@clisp.org>
25513
25514         memmem: Fix autoconf test.
25515         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25516
25517 2010-11-20  Bruno Haible  <bruno@clisp.org>
25518
25519         Port to uClibc.
25520         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25521         * lib/fcntl.in.h: Likewise.
25522         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25523         * lib/mbrtowc.c (mbrtowc): Likewise.
25524         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25525         * lib/strerror_r.c: Likewise.
25526         * lib/unistr/u8-strnlen.c: Likewise.
25527         * lib/vasnprintf.c (decimal_point_char): Likewise.
25528         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25529         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25531         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25532         * tests/test-sigaction.c (handler, main): Likewise.
25533         * lib/freading.h: Treat uClibc like a non-glibc platform.
25534         * lib/freading.c: Likewise.
25535         * lib/gettext.h: Likewise.
25536         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25537         Likewise.
25538         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25539         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25540         * lib/propername.c (proper_name_utf8): Likewise.
25541         * lib/spawn.in.h: Likewise.
25542         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25543         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25544         mem_cd_iconveh_internal): Likewise.
25545         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25546         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25547         strstr, strcasestr): Likewise.
25548         * lib/unicodeio.c (unicode_to_mb): Likewise.
25549         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25550         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25551         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25552         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25553         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25554         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25555         * lib/unistr/u8-stpncpy.c: Likewise.
25556         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25557         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25558         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25559         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25560         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25562         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25563         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25565         Likewise.
25566         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25567         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25568         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25569         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25571         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25572         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25573         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25574         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25575         * tests/test-striconveha.c (main): Likewise.
25576         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25577         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25578         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25579         * doc/posix-functions/getline.texi: Likewise.
25580         Reported by Mike Frysinger <vapier@gentoo.org>.
25581
25582 2010-11-20  Bruno Haible  <bruno@clisp.org>
25583
25584         nproc: Fix condition.
25585         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25586         HAVE_PTHREAD_AFFINITY_NP.
25587
25588 2010-11-20  Bruno Haible  <bruno@clisp.org>
25589
25590         Fix a comment.
25591         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25592
25593 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25594
25595         ftoastr: don't assume snprintf
25596         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25597         Implement a subset of snprintf here, by using sprintf safely.
25598         * modules/ftoastr (Depends-on): Remove snprintf.
25599
25600 2010-11-19  Jim Meyering  <meyering@redhat.com>
25601
25602         test-rename.h: fix compilation failure
25603         * tests/test-rename.h (test_rename): Add omitted "}".
25604
25605 2010-11-17  Jim Meyering  <meyering@redhat.com>
25606
25607         maint.mk: add a URL discussing the no-@acronym policy
25608         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25609
25610 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25611
25612         ftoastr: depend on snprintf, improve comments
25613         * lib/ftoastr.c: Also mention Loitsch's draft.
25614         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25615         needed in the current implementation, but it might simplify
25616         speeding up the code later.
25617         * modules/ftoastr: Depend on snprintf; this improves portability.
25618         Suggested by Bruno Haible in the same email.
25619
25620         ftoastr: port to hosts lacking strtof and strtold
25621         Problem reported by Bruno Haible in
25622         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25623         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25624         environment and strtold (and presumably strtof) are not available.
25625         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25626         (configure.ac): Require gl_C99_STRTOLD.
25627
25628 2010-11-18  Bruno Haible  <bruno@clisp.org>
25629
25630         c-strtold: Avoid link error on AIX 7.
25631         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25632         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25633         (gl_C_STRTOLD): Test whether strtold_l exists.
25634         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25635
25636 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25637
25638         intprops: new macro INT_BITS_STRLEN_BOUND
25639         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25640         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25641         not exposed.  Also, it uses a slightly tighter bound than before;
25642         though this makes no practical difference, we might as well be as
25643         tight as we easily can.
25644
25645         ftoastr: new module, for lossless conversion of floats to short strings
25646         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25647         * modules/ftoastr: New files.
25648
25649 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25650
25651         bootstrap: port to Solaris sed
25652         * build-aux/bootstrap (get_version): Port to Solaris sed.
25653         See Ralf Wildenhues's note in
25654         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25655
25656 2010-11-14  Jim Meyering  <meyering@redhat.com>
25657
25658         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25659         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25660         and move definition closer to sole use.
25661
25662 2010-11-13  Jim Meyering  <meyering@redhat.com>
25663
25664         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25665         Now we require at least autoconf-2.59, which means the work-around
25666         is no longer needed.
25667         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25668         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25669         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25670         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25671         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25672
25673 2010-11-13  Bruno Haible  <bruno@clisp.org>
25674
25675         rename, renameat: Avoid test failures at NFS mounted locations.
25676         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25677         functions.
25678         (test_rename): Use assert_nonexistent.
25679         * tests/test-rename.c: Include <dirent.h>.
25680         * tests/test-renameat.c: Likewise.
25681         Reported by Gary V. Vaughan <gary@gnu.org>.
25682
25683         rename, renameat: Document Linux bug with NFS
25684         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25685         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25686         * doc/posix-functions/renameat.texi: Likewise.
25687         Suggested by Eric Blake.
25688
25689 2010-11-13  Bruno Haible  <bruno@clisp.org>
25690
25691         rename test: Add comments.
25692         * tests/test-rename.h (test_rename): Add structure and comments.
25693
25694 2010-11-13  Eric Blake  <eblake@redhat.com>
25695
25696         maintainer-makefile: cover a few more files
25697         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25698         scripts generated within C files, for libvirt.
25699
25700 2010-11-13  Bruno Haible  <bruno@clisp.org>
25701
25702         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25703         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25704         character, return the number of bytes that belong together, not always
25705         1.
25706         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25707         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25708         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25709         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25710         number of bytes of an invalid character.
25711         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25712         (main): Invoke it.
25713         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25714         results.
25715         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25716         malformed byte sequences.
25717         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25718         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25719         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25720         Reported by Ben Pfaff and Paolo Bonzini.
25721
25722 2010-11-13  Bruno Haible  <bruno@clisp.org>
25723
25724         openat: Work around glibc bug with fchownat() and empty file names.
25725         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25726         (gl_FUNC_FCHOWNAT): Invoke it.
25727         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25728         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25729         Reported by Gary V. Vaughan <gary@gnu.org>.
25730
25731 2010-11-13  Bruno Haible  <bruno@clisp.org>
25732
25733         openat: Ensure autoconf macro ordering.
25734         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25735         gl_USE_SYSTEM_EXTENSIONS.
25736         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25737
25738 2010-11-13  Bruno Haible  <bruno@clisp.org>
25739
25740         Update comments.
25741         * lib/unistr/u8-check.c: Update file name in comments.
25742         * lib/unistr/u8-mblen.c: Likewise.
25743         * lib/unistr/u8-prev.c: Likewise.
25744         * lib/unistr/u8-strmblen.c: Likewise.
25745         * lib/unistr/u8-strmbtouc.c: Likewise.
25746
25747 2010-11-13  Jim Meyering  <meyering@redhat.com>
25748
25749         tests: avoid test failure on Solaris 10 due to lack of PATH export
25750         * tests/test-update-copyright.sh: Don't forget to export PATH.
25751
25752         init.sh: ensure that IFS is defined, just in case...
25753         * tests/init.sh (setup_): Ensure that IFS is defined,
25754         so that saving and restoring it works as expected.  This
25755         appears to be useful at least for an old version of dash
25756         from a long time ago (RH 6).  See here for details:
25757         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25758
25759         maint.mk: tighten "test a == b" check
25760         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25761         test to files that contain something like #!/bin/sh.
25762         Without this, coreutils would get two false positives in
25763         the comments of C source files.
25764
25765 2010-11-12  Eric Blake  <eblake@redhat.com>
25766
25767         bootstrap: fix typo in previous attempt
25768         * build-aux/bootstrap (buildreq): Correct the grouping.
25769         Reported by Paul Eggert.
25770
25771         maintainer-makefile: prohibit test x == x
25772         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25773         Based on a report by Matthias Bolte.
25774
25775         bootstrap: allow FreeBSD gzip
25776         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25777         which has no '.' and goes to stderr.
25778         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25779         Reported by Matthias Bolte.
25780
25781         maintainer-makefile: check for i18n setup
25782         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25783         will likely work.
25784
25785 2010-11-12  Bruno Haible  <bruno@clisp.org>
25786
25787         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25788         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25789         * lib/nanosleep.c (nanosleep): Likewise.
25790
25791 2010-11-11  Bruno Haible  <bruno@clisp.org>
25792
25793         fcntl-h: Fix for use of C++ on glibc systems.
25794         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25795         also on glibc systems in C++ mode.
25796         Reported by Gary V. Vaughan <gary@gnu.org>.
25797
25798 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25799
25800         mknod: avoid false failure with dash
25801         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25802
25803 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25804
25805         unlink: Fix "is it should" typo in diagnostic.
25806         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25808
25809 2010-11-11  Bruno Haible  <bruno@clisp.org>
25810
25811         Tests for module 'strerror_r-posix'.
25812         * modules/strerror_r-posix-tests: New file.
25813         * tests/test-strerror_r.c: New file.
25814         * tests/test-string-c++.cc: Check the signature of strerror_r.
25815
25816         New module 'strerror_r-posix'.
25817         * lib/string.in.h (strerror_r): New declaration.
25818         * lib/strerror_r.c: New file.
25819         * m4/strerror_r.m4: New file.
25820         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
25821         of strerror_r.
25822         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
25823         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25824         * modules/strerror_r-posix: New file.
25825         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
25826         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
25827         * doc/posix-functions/strerror_r.texi: Mention the new module and the
25828         portability problems.
25829
25830 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
25831
25832         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
25833         line is also considered for output. Quoted function name in shell
25834         command, so temporary files for functions like MyClass::operator()
25835         are removed correctly without errors.
25836
25837 2010-11-09  Bruno Haible  <bruno@clisp.org>
25838
25839         * doc/posix-functions/strerror.texi: List more failing platforms.
25840
25841         * doc/posix-functions/strerror.texi: Add a comment.
25842
25843 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
25844
25845         fdopendir: fix bug on MacOS X when low on file descriptors
25846
25847         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
25848         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
25849         All callers changed.
25850         (fdopendir): Invoke save_cwd at the top level, not after using
25851         multiple dup() calls to use up file descriptors.  Then retry
25852         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
25853         less than the maximum number of open file descriptors, because
25854         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
25855         on Mac OS X 10.6.4 for tar 1.24
25856         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
25857         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
25858         and for tar 1.25
25859         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
25860
25861 2010-11-07  Bruno Haible  <bruno@clisp.org>
25862
25863         vasnprintf: Support I flag on glibc systems.
25864         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
25865         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
25866         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
25867         snprintf function.
25868         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
25869         glibc systems.
25870         * tests/test-vasnprintf-posix3.c: New file.
25871         * modules/vasnprintf-posix-tests (Files): Add it.
25872         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
25873
25874 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25875
25876         [html] Fix copy/paste bug: Use unique name for compiler warnings.
25877         * MODULES.html.sh: For compiler warnings, use name
25878         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
25879
25880 2010-11-05  Eric Blake  <eblake@redhat.com>
25881
25882         ceil, floor: avoid spurious failure with icc
25883         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
25884         [denormals-as-zero] when optimizing without -mieee-fp option.
25885         * tests/test-floorf2.c (floorf_reference): Likewise.
25886         * tests/test-ceilf1.c (dummy): New function.
25887         (main): Use it to outsmart icc's optimization.
25888         * tests/test-floorf1.c (dummy, main): Likewise.
25889
25890         tests: require working signbit
25891         * modules/ceilf-tests (Depends-on): Add signbit.
25892         * modules/ceill-tests (Depends-on): Likewise.
25893         * modules/floorf-tests (Depends-on): Likewise.
25894         * modules/floorl-tests (Depends-on): Likewise.
25895         * modules/round-tests (Depends-on): Likewise.
25896         * modules/roundf-tests (Depends-on): Likewise.
25897         * modules/roundl-tests (Depends-on): Likewise.
25898         * modules/trunc-tests (Depends-on): Likewise.
25899         * modules/truncf-tests (Depends-on): Likewise.
25900         * modules/truncl-tests (Depends-on): Likewise.
25901
25902         strtod: work around icc bug
25903         * lib/strtod.c (minus_zero): Define to working value.
25904         (strtod): Use it to avoid icc bug.
25905
25906         copysign: enhance tests
25907         * modules/copysign-tests (Files): Add minus-zero.h.
25908         * tests/test-copysign.c (main): Also test zeros.
25909
25910 2010-11-04  Eric Blake  <eblake@redhat.com>
25911
25912         ceil, floor, round, trunc: enhance tests of -0
25913         * tests/test-ceilf1.c (main): Ensure correct sign of result.
25914         * tests/test-ceill.c (main): Likewise.
25915         * tests/test-floorf1.c (main): Likewise.
25916         * tests/test-floorl.c (main): Likewise.
25917         * tests/test-round1.c (main): Likewise.
25918         * tests/test-roundf1.c (main): Likewise.
25919         * tests/test-roundl.c (main): Likewise.
25920         * tests/test-trunc1.c (main): Likewise.
25921         * tests/test-truncf1.c (main): Likewise.
25922         * tests/test-truncl.c (main): Likewise.
25923
25924 2010-11-04  Eric Blake  <eblake@redhat.com>
25925
25926         frexp, tests: work around ICC bug with -zero
25927         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
25928         works with more compilers.
25929         * tests/minus-zero.h: New file.
25930         * modules/ceilf-tests (Files): Include it.
25931         * modules/ceill-tests (Files): Likewise.
25932         * modules/floorf-tests (Files): Likewise.
25933         * modules/floorl-tests (Files): Likewise.
25934         * modules/frexp-nolibm-tests (Files): Likewise.
25935         * modules/frexp-tests (Files): Likewise.
25936         * modules/frexpl-nolibm-tests (Files): Likewise.
25937         * modules/frexpl-tests (Files): Likewise.
25938         * modules/isnan-tests (Files): Likewise.
25939         * modules/isnand-nolibm-tests (Files): Likewise.
25940         * modules/isnand-tests (Files): Likewise.
25941         * modules/isnanf-nolibm-tests (Files): Likewise.
25942         * modules/isnanf-tests (Files): Likewise.
25943         * modules/isnanl-nolibm-tests (Files): Likewise.
25944         * modules/isnanl-tests (Files): Likewise.
25945         * modules/round-tests (Files): Likewise.
25946         * modules/roundf-tests (Files): Likewise.
25947         * modules/roundl-tests (Files): Likewise.
25948         * modules/ldexpl-tests (Files): Likewise.
25949         * modules/signbit-tests (Files): Likewise.
25950         * modules/snprintf-posix-tests (Files): Likewise.
25951         * modules/sprintf-posix-tests (Files): Likewise.
25952         * modules/strtod-tests (Files): Likewise.
25953         * modules/trunc-tests (Files): Likewise.
25954         * modules/truncf-tests (Files): Likewise.
25955         * modules/truncl-tests (Files): Likewise.
25956         * modules/vsnprintf-posix-tests (Files): Likewise.
25957         * modules/vsprintf-posix-tests (Files): Likewise.
25958         * modules/vasnprintf-posix-tests (Files): Likewise.
25959         * modules/vasprintf-posix-tests (Files): Likewise.
25960         * tests/test-ceilf1.c (main): Use it.
25961         * tests/test-ceill.c (main): Likewise.
25962         * tests/test-floorf1.c (main): Likewise.
25963         * tests/test-floorl.c (main): Likewise.
25964         * tests/test-frexp.c (main): Likewise.
25965         * tests/test-frexpl.c (main): Likewise.
25966         * tests/test-isnan.c (main): Likewise.
25967         * tests/test-isnand.h (main): Likewise.
25968         * tests/test-isnanf.h (main): Likewise.
25969         * tests/test-isnanl.h (main): Likewise.
25970         * tests/test-ldexpl.c (main): Likewise.
25971         * tests/test-round.c (main): Likewise.
25972         * tests/test-roundf.c (main): Likewise.
25973         * tests/test-roundl.c (main): Likewise.
25974         * tests/test-signbit.c (test_signbitf, test_signbitd)
25975         (test_signbitl): Likewise.
25976         * tests/test-snprintf-posix.h (test_function): Likewise.
25977         * tests/test-sprintf-posix.h (test_function): Likewise.
25978         * tests/test-strtod.c (main): Likewise.
25979         * tests/test-trunc1.c (main): Likewise.
25980         * tests/test-truncf1.c (main): Likewise.
25981         * tests/test-truncl.c (main): Likewise.
25982
25983         isnanl: work around icc bug
25984         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25985
25986 2010-11-03  Eric Blake  <eblake@redhat.com>
25987
25988         tests: fix compiler warnings
25989         * tests/test-getopt.h (test_getopt): Fix condition.
25990         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25991         * tests/test-pipe2.c (main): Likewise.
25992         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25993
25994         utimens: fix broken m4 test
25995         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25996
25997 2010-10-28  Bruno Haible  <bruno@clisp.org>
25998
25999         posix_spawn*, getdtablesize: Relax license.
26000         * modules/posix_spawn (License): Change to LGPLv2+.
26001         * modules/posix_spawnp (License): Likewise.
26002         * modules/posix_spawn-internal (License): Likewise.
26003         * modules/posix_spawnattr_init (License): Likewise.
26004         * modules/posix_spawnattr_getflags (License): Likewise.
26005         * modules/posix_spawnattr_setflags (License): Likewise.
26006         * modules/posix_spawnattr_getpgroup (License): Likewise.
26007         * modules/posix_spawnattr_setpgroup (License): Likewise.
26008         * modules/posix_spawnattr_getschedparam (License): Likewise.
26009         * modules/posix_spawnattr_setschedparam (License): Likewise.
26010         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26011         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26012         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26013         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26014         * modules/posix_spawnattr_getsigmask (License): Likewise.
26015         * modules/posix_spawnattr_setsigmask (License): Likewise.
26016         * modules/posix_spawnattr_destroy (License): Likewise.
26017         * modules/posix_spawn_file_actions_init (License): Likewise.
26018         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26019         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26020         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26021         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26022         * modules/getdtablesize (License): Likewise.
26023         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26024
26025 2010-10-26  Bruno Haible  <bruno@clisp.org>
26026
26027         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26028         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26029         Cygwin and mingw.
26030         Suggested by Eric Blake.
26031
26032 2010-10-26  Bruno Haible  <bruno@clisp.org>
26033
26034         stdio: Work around compilation error due to renameat() on Solaris 10.
26035         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26036         * lib/renameat.c: Don't include <unistd.h> here.
26037         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26038         Reported by Paul Eggert and Eric Blake.
26039
26040 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26041
26042         renameat: port to Solaris 10, which declares renameat in unistd.h
26043
26044         * lib/renameat.c: Include unistd.h before stdio.h, because
26045         Solaris 10 declares renameat in unistd.h.  Problem encountered
26046         when building GNU tar 1.24 on Solaris 10.
26047
26048 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26049
26050         fdopendir: fix C89 compilation
26051         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26052         compilers.
26053
26054 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26055
26056         inttostr: simplify by removing unnecessary redundancy
26057         * lib/anytostr.c: Don't include verify.h.
26058         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26059         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26060         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26061         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26062         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26063         Likewise.
26064         * modules/inttostr (Depends-on): Remove 'verify'.
26065
26066 2010-10-23  Bruno Haible  <bruno@clisp.org>
26067
26068         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26069         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26070         Reported by Eric Blake.
26071
26072 2010-10-23  Bruno Haible  <bruno@clisp.org>
26073
26074         Tests: Fix LOCALE_JA on MirBSD 10.
26075         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26076         to an UTF-8 locale.
26077         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26078         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26079         Reported by Eric Blake.
26080
26081 2010-10-21  Bruno Haible  <bruno@clisp.org>
26082
26083         nl_langinfo test: Avoid test failure on NetBSD 5.
26084         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26085         Reported by Eric Blake.
26086
26087 2010-10-21  Eric Blake  <eblake@redhat.com>
26088
26089         c-stack: work around libsigsegv 2.8 bug
26090         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26091         overflow on at least PowerPC64.
26092
26093 2010-10-17  Bruno Haible  <bruno@clisp.org>
26094
26095         userspec: Drop redundant file.
26096         * modules/userspec (Files): Remove lib/inttostr.h.
26097
26098 2010-10-17  Bruno Haible  <bruno@clisp.org>
26099
26100         nl_langinfo tests: Silence some warnings.
26101         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26102         Reported by Jim Meyering.
26103
26104 2010-10-17  Bruno Haible  <bruno@clisp.org>
26105
26106         Make use of GCC's attribute __alloc_size__.
26107         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26108         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26109         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26110         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26111         __alloc_size__.
26112         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26113         Suggested by Jim Meyering.
26114
26115 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26116
26117         bootstrap: anchor .gitignore entries.
26118         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26119         with...
26120         (insert_vc_ignore): ... this new function, which prepends `/' to
26121         all .gitignore entries before passing them to
26122         insert_sorted_if_absent.
26123
26124 2010-10-16  Bruno Haible  <bruno@clisp.org>
26125
26126         nextafter: Fix configure check.
26127         * modules/nextafter (configure.ac): Correct expected prototype.
26128
26129 2010-10-16  Bruno Haible  <bruno@clisp.org>
26130
26131         termios: Update documentation.
26132         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26133
26134 2010-10-16  Bruno Haible  <bruno@clisp.org>
26135
26136         tests: Make them compile with TinyCC.
26137         * tests/test-strstr.c (main): Remove parentheses around array
26138         initializer.
26139
26140 2010-10-15  Eric Blake  <eblake@redhat.com>
26141
26142         ignore-value: make header idempotent
26143         * lib/ignore-value.h: Add double-inclusion guards.
26144         Reported by Stefan Berger.
26145
26146 2010-10-15  Jim Meyering  <meyering@redhat.com>
26147
26148         GNUmakefile: handle "stable" target, not "major"
26149         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26150         lists in maint.mk and announce-gen.  Without this, "make stable"
26151         would fail to ensure that $(VERSION) is up to date.
26152
26153 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26154
26155         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26156         & co.
26157
26158 2010-10-14  Bruno Haible  <bruno@clisp.org>
26159
26160         vasnprintf: Don't set errno to 0.
26161         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26162         block that sets it to 0.
26163         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26164
26165 2010-10-14  Bruno Haible  <bruno@clisp.org>
26166
26167         socketlib: Fix.
26168         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26169         gl_PREREQ_SYS_H_WINSOCK2.
26170         Reported by Ian Beckwith <ianb@erislabs.net>.
26171
26172 2010-10-13  Jim Meyering  <meyering@redhat.com>
26173
26174         test-select-stdin.c: avoid warn_unused_result warnings
26175         * tests/test-select-stdin.c: Include "macros.h".
26176         ASSERT that read and fflush succeed.
26177
26178 2010-10-13  Jim Meyering  <meyering@redhat.com>
26179
26180         git-version-gen: do require git-VC'd files in cwd
26181         * build-aux/git-version-gen: Reject a git version string
26182         if there are no commits associated with the current directory.
26183         This avoids an unlikely false-positive (unrelated dir whose parent
26184         repository also contains a tag matching v*), as pointed out
26185         by Giuseppe Scrivano in
26186         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26187
26188 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26189
26190         argv-iter: omit nonconforming declaration
26191         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26192         enum arg_iter_err declaration, which doesn't conform to C99.
26193         Solaris 10 cc warns about this.
26194
26195 2010-10-13  Eric Blake  <eblake@redhat.com>
26196
26197         termios: fix compilation on mingw
26198         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26199         (gl_TERMIOS_H): Adjust it on mingw.
26200         * modules/termios (Makefile.am): Substitute new key.
26201         * lib/termios.in.h (includes): Make include_next conditional.
26202         * doc/posix-headers/termios.texi (termios.h): Update
26203         documentation.
26204         Reported by Daniel P. Berrange.
26205
26206 2010-10-13  Jim Meyering  <meyering@redhat.com>
26207
26208         git-version-gen: don't require that .git/ be in the current dir
26209         * build-aux/git-version-gen: Adjust this script so that it works
26210         when run from any working directory beneath the top-level .git/-
26211         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26212         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26213
26214         test-select: avoid warn_unused_result warnings
26215         * tests/test-select.c: Include "macros.h".
26216         ASSERT that each call to read, write, and pipe succeeds.
26217         While not technically required, also check each "close".
26218         * modules/select-tests (Files): Add tests/macros.h.
26219
26220         test-symlinkat: remove declaration of unused local
26221         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26222
26223         test-inttostr: avoid shadowing warnings
26224         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26225         and use malloc rather than the stack for the same reason as
26226         mentioned in the comment justifying the other allocation.
26227
26228 2010-10-11  Bruno Haible  <bruno@clisp.org>
26229
26230         stdlib: Allow multiple gnulib generated replacements to coexist.
26231         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26232         Reported by Sam Steingold <sds@gnu.org>.
26233
26234 2010-10-11  Jim Meyering  <meyering@redhat.com>
26235
26236         fix a documentation typo
26237         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26238
26239 2010-10-11  Eric Blake  <eblake@redhat.com>
26240
26241         futimens: work around Solaris 11 bug
26242         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26243         * tests/test-futimens.h (test_futimens): Enhance, rather than
26244         weaken test.
26245         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26246
26247 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26248
26249         Indentation.
26250         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26251         higher-level operators more to the left.
26252
26253 2010-10-11  Jim Meyering  <meyering@redhat.com>
26254
26255         test-futimens: avoid unwarranted test failure on Solaris 5.11
26256         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26257         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26258         because it tries to dereference the NULL name argument.
26259
26260 2010-10-11  Bruno Haible  <bruno@clisp.org>
26261
26262         Indentation.
26263         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26264         indentation.
26265
26266 2010-10-11  Jim Meyering  <meyering@redhat.com>
26267
26268         spawn.in.h: make indentation consistent with parentheses
26269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26270         Make indentation consistent with parentheses.
26271
26272 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26273
26274         Fix mismatched parens in previous commit
26275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26276         parens.
26277
26278 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26279
26280         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26281
26282         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26283         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26284         * lib/malloca.c: Include "verify.h".
26285         (verify1): Remove, replacing with a verify call.
26286         * lib/relocwrapper.c (verify1): Likewise.
26287         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26288         Likewise.
26289         * modules/malloca (Depends-on): Add 'verify'.
26290         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26291         * modules/vasnprintf (Depends-on): Add 'verify'.
26292         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26293         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26294         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26295         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26296         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26297         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26298         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26299
26300         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26301
26302         Formerly the style was sometimes 2*X - 1, because the C standard
26303         was wrongly thought to disallow ?: in integral constant expressions.
26304         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26305         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26306         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26307         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26308         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26309         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26310         verify that time_t cannot be floating.
26311
26312 2010-10-08  Eric Blake  <eblake@redhat.com>
26313
26314         time: enforce recent POSIX ruling that time_t is integral
26315         * lib/time.in.h (__time_t_must_be_integral): Detect any
26316         problematic systems, allowing the rest of gnulib to assume POSIX.
26317
26318 2010-10-08  Jim Meyering  <meyering@redhat.com>
26319
26320         fdopendir: fix a bug on systems lacking openat and /proc support
26321         OpenBSD 4.7 is one such system.  The most noticeable effect was
26322         failure of any application making nontrivial use of fts: rm, du,
26323         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26324           ./rm: traversal failed: `a': Bad file descriptor
26325         Debugging that, you see that even though FD 6 was closed just
26326         prior to the opendir call in fd_clone_opendir, its resulting
26327         dir->dd_fd was 8, rather than the expected value of 6:
26328
26329         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26330         93                close (fd);
26331         (gdb) n
26332         94                dir = fd_clone_opendir (dupfd);
26333         (gdb) n
26334         95                saved_errno = errno;
26335         (gdb) p dir->dd_fd
26336         $11 = 8
26337
26338         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26339         The problem is that on OpenBSD, fd_clone_opendir has to resort
26340         to using the old-style save/restore CWD mechanism, due to its
26341         lack of openat/proc support, and *that* would steal the FD (6)
26342         that opendir was supposed to use.
26343
26344         The fix is to squirrel away the desired FD so that save_cwd uses a
26345         different one, and then free the dest FD right before calling opendir.
26346         That guarantees opendir will use the required file descriptor.
26347
26348         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26349
26350 2010-10-08  Bruno Haible  <bruno@clisp.org>
26351
26352         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26353         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26354
26355 2010-10-08  Bruno Haible  <bruno@clisp.org>
26356
26357         nanosleep: Make replacement POSIX compliant.
26358         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26359         is out of range.
26360         Reported by Jim Meyering.
26361
26362 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26363
26364         bootstrap: add hook for altering gnulib.mk, for Bison
26365         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26366         the Bison bootstrapping process can rewrite file names and variables
26367         in this file before later parts of 'bootstrap' use the file.
26368         Bison wants to include lib/gnulib.mk from the top-level makefile,
26369         so it needs the file names in this file to be relative to the top
26370         level, not relative to lib; plus it needs variable names to be
26371         rewritten.
26372         (slurp): Use the new function.
26373
26374         bootstrap: reformat for readability
26375         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26376
26377 2010-10-08  Eric Blake  <eblake@redhat.com>
26378
26379         docs: update cygwin progress
26380         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26381         1.7.7.
26382         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26383         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26384         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26385         * doc/posix-functions/carg.texi (carg): Likewise.
26386         * doc/posix-functions/cargf.texi (cargf): Likewise.
26387         * doc/posix-functions/casin.texi (casin): Likewise.
26388         * doc/posix-functions/casinf.texi (casinf): Likewise.
26389         * doc/posix-functions/casinh.texi (casinh): Likewise.
26390         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26391         * doc/posix-functions/catan.texi (catan): Likewise.
26392         * doc/posix-functions/catanf.texi (catanf): Likewise.
26393         * doc/posix-functions/catanh.texi (catanh): Likewise.
26394         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26395         * doc/posix-functions/ccos.texi (ccos): Likewise.
26396         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26397         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26398         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26399         * doc/posix-functions/cexp.texi (cexp): Likewise.
26400         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26401         * doc/posix-functions/cimag.texi (cimag): Likewise.
26402         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26403         * doc/posix-functions/clog.texi (clog): Likewise.
26404         * doc/posix-functions/clogf.texi (clogf): Likewise.
26405         * doc/posix-functions/conj.texi (conj): Likewise.
26406         * doc/posix-functions/conjf.texi (conjf): Likewise.
26407         * doc/posix-functions/cpow.texi (cpow): Likewise.
26408         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26409         * doc/posix-functions/cproj.texi (cproj): Likewise.
26410         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26411         * doc/posix-functions/creal.texi (creal): Likewise.
26412         * doc/posix-functions/crealf.texi (crealf): Likewise.
26413         * doc/posix-functions/csin.texi (csin): Likewise.
26414         * doc/posix-functions/csinf.texi (csinf): Likewise.
26415         * doc/posix-functions/csinh.texi (csinh): Likewise.
26416         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26417         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26418         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26419         * doc/posix-functions/ctan.texi (ctan): Likewise.
26420         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26421         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26422         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26423         * doc/posix-headers/complex.texi (complex.h): Likewise.
26424
26425 2010-10-07  Jim Meyering  <meyering@redhat.com>
26426
26427         parse-datetime: avoid compilation failure on OpenBSD 4.7
26428         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26429         This works around a compilation failure on OpenBSD 4.7:
26430         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26431
26432 2010-10-07  Eric Blake  <eblake@redhat.com>
26433
26434         docs: update cygwin progress
26435         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26436         1.7.6.
26437         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26438         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26439         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26440         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26441         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26442         Likewise.
26443         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26444         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26445         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26446         Likewise.
26447         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26448         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26449         Likewise.
26450         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26451         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26452         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26453         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26454         Likewise.
26455         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26456         Likewise.
26457         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26458
26459         docs: update parse-datetime history
26460         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26461         documentation of this function's history and alternatives.
26462
26463         cygwin: use more robust version check
26464         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26465         exclude an eventual cygwin 1.9.1.
26466         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26467         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26468         (gl_FUNC_STRCASESTR): Likewise.
26469         Reported by Bruno Haible.
26470
26471 2010-10-06  Bruno Haible  <bruno@clisp.org>
26472
26473         string, sys_select: Avoid #including large headers unless necessary.
26474         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26475         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26476         OSF/1, BeOS, Haiku.
26477         Reported by Jim Meyering.
26478
26479 2010-10-05  Eric Blake  <eblake@redhat.com>
26480
26481         memmem, strstr, strcasestr: fix bug with long periodic needle
26482         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26483         periodic needle having false positive.
26484         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26485         and cygwin 1.7.7.
26486         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26488         (gl_FUNC_STRCASESTR): Likewise.
26489         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26490         * tests/test-memmem.c (main): Expose the bug.
26491         * tests/test-strcasestr.c (main): Likewise.
26492         * tests/test-strstr.c (main): Likewise.
26493         * tests/test-c-strcasestr.c (main): Likewise.
26494         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26495         * doc/posix-functions/strstr.texi (strstr): Likewise.
26496         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26497         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26498
26499 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26500
26501         parse-datetime: do some more renaming
26502         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26503         parse_datetime, not get_date.  Mention the renaming.
26504         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26505         in comments.
26506         * m4/bison.m4: Likewise.
26507
26508 2010-10-05  Eric Blake  <eblake@redhat.com>
26509
26510         parse-datetime: better name than get_date
26511         * NEWS: Reword the deprecation notice.
26512         * modules/get_date: Rename to modules/parse-datetime.
26513         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26514         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26515         * lib/get_date.y: Rename to lib/parse-datetime.y.
26516         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26517         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26518         * doc/getdate.texi: Provide fallback wrapper.
26519         * lib/getdate.h: Move guts, and wrap...
26520         * lib/parse-datetime.h: ...new file.
26521         * lib/parse-datetime.y (get_date): Rename...
26522         (parse_datetime): ...to this.
26523         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26524         (gl_PARSE_DATETIME): ...to this.
26525         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26526         documentation.
26527         * modules/getdate (Files): Provide fallback docs and header.
26528         (Notice, Depends-on): Update references.
26529         * tests/test-parse-datetime.c: Likewise.
26530         * DEPENDENCIES: Likewise.
26531         * MODULES.html.sh (Date and time <time.h>): Likewise.
26532         * doc/parse-datetime.texi (Date input formats)
26533         (Authors of parse_datetime): Likewise.
26534         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26535         (Include): Likewise.
26536         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26537         * gnulib-tool: Likewise.
26538         * m4/bison.m4 (gl_BISON): Likewise.
26539         Suggested by Bruno Haible.
26540
26541 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26542
26543         more ports to Solaris tr, which needs [] around ranges
26544         * gnulib-tool: Solaris tr needs [] around ranges.
26545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26546         * tests/test-pipe-filter-gi1.c (main): Likewise.
26547         * tests/test-pipe-filter-ii1.c (main): Likewise.
26548
26549 2010-10-05  Eric Blake  <eblake@redhat.com>
26550
26551         bootstrap: fix Solaris regression
26552         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26553         around ranges.
26554         Reported by Pádraig Brady.
26555
26556         bootstrap: work with pkg-config
26557         * build-aux/bootstrap (check_versions): Also transliterate - in
26558         prerequisite name.
26559         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26560         prerequisites that were already found, to avoid confusion.
26561         Reported by Justin Clift.
26562
26563         faccessat: remove unused wrappers
26564         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26565         presence of these wrappers dragged in -lgen on Solaris.
26566         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26567
26568 2010-10-05  Jim Meyering  <meyering@redhat.com>
26569
26570         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26571         * Makefile (sc_pragma_columns): New syntax-check rule.
26572
26573 2010-10-04  Bruno Haible  <bruno@clisp.org>
26574
26575         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26576         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26577         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26578         Reported by Bruce Korb and Eric Blake.
26579
26580 2010-10-04  Bruno Haible  <bruno@clisp.org>
26581
26582         threadlib: Make option --with-libpth-prefix work.
26583         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26584         use $LIBPTH, not just -lpth.
26585
26586 2010-10-04  Bruno Haible  <bruno@clisp.org>
26587
26588         Avoid line length limitation from HP NonStop system header files.
26589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26590         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26591         * lib/ctype.in.h: Likewise.
26592         * lib/dirent.in.h: Likewise.
26593         * lib/errno.in.h: Likewise.
26594         * lib/fcntl.in.h: Likewise.
26595         * lib/float.in.h: Likewise.
26596         * lib/getopt.in.h: Likewise.
26597         * lib/iconv.in.h: Likewise.
26598         * lib/inttypes.in.h: Likewise.
26599         * lib/langinfo.in.h: Likewise.
26600         * lib/locale.in.h: Likewise.
26601         * lib/math.in.h: Likewise.
26602         * lib/netdb.in.h: Likewise.
26603         * lib/netinet_in.in.h: Likewise.
26604         * lib/poll.in.h: Likewise.
26605         * lib/pthread.in.h: Likewise.
26606         * lib/pty.in.h: Likewise.
26607         * lib/sched.in.h: Likewise.
26608         * lib/se-selinux.in.h: Likewise.
26609         * lib/search.in.h: Likewise.
26610         * lib/signal.in.h: Likewise.
26611         * lib/spawn.in.h: Likewise.
26612         * lib/stdarg.in.h: Likewise.
26613         * lib/stddef.in.h: Likewise.
26614         * lib/stdint.in.h: Likewise.
26615         * lib/stdio.in.h: Likewise.
26616         * lib/stdlib.in.h: Likewise.
26617         * lib/string.in.h: Likewise.
26618         * lib/strings.in.h: Likewise.
26619         * lib/sys_file.in.h: Likewise.
26620         * lib/sys_ioctl.in.h: Likewise.
26621         * lib/sys_select.in.h: Likewise.
26622         * lib/sys_socket.in.h: Likewise.
26623         * lib/sys_stat.in.h: Likewise.
26624         * lib/sys_time.in.h: Likewise.
26625         * lib/sys_times.in.h: Likewise.
26626         * lib/sys_utsname.in.h: Likewise.
26627         * lib/sys_wait.in.h: Likewise.
26628         * lib/sysexits.in.h: Likewise.
26629         * lib/termios.in.h: Likewise.
26630         * lib/time.in.h: Likewise.
26631         * lib/unistd.in.h: Likewise.
26632         * lib/wchar.in.h: Likewise.
26633         * lib/wctype.in.h: Likewise.
26634         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26635         * modules/ctype (Makefile.am): Likewise.
26636         * modules/dirent (Makefile.am): Likewise.
26637         * modules/errno (Makefile.am): Likewise.
26638         * modules/fcntl-h (Makefile.am): Likewise.
26639         * modules/float (Makefile.am): Likewise.
26640         * modules/getopt-posix (Makefile.am): Likewise.
26641         * modules/iconv-h (Makefile.am): Likewise.
26642         * modules/inttypes (Makefile.am): Likewise.
26643         * modules/langinfo (Makefile.am): Likewise.
26644         * modules/locale (Makefile.am): Likewise.
26645         * modules/math (Makefile.am): Likewise.
26646         * modules/netdb (Makefile.am): Likewise.
26647         * modules/netinet_in (Makefile.am): Likewise.
26648         * modules/poll-h (Makefile.am): Likewise.
26649         * modules/pthread (Makefile.am): Likewise.
26650         * modules/pty (Makefile.am): Likewise.
26651         * modules/sched (Makefile.am): Likewise.
26652         * modules/search (Makefile.am): Likewise.
26653         * modules/selinux-h (Makefile.am): Likewise.
26654         * modules/signal (Makefile.am): Likewise.
26655         * modules/spawn (Makefile.am): Likewise.
26656         * modules/stdarg (Makefile.am): Likewise.
26657         * modules/stddef (Makefile.am): Likewise.
26658         * modules/stdint (Makefile.am): Likewise.
26659         * modules/stdio (Makefile.am): Likewise.
26660         * modules/stdlib (Makefile.am): Likewise.
26661         * modules/string (Makefile.am): Likewise.
26662         * modules/strings (Makefile.am): Likewise.
26663         * modules/sys_file (Makefile.am): Likewise.
26664         * modules/sys_ioctl (Makefile.am): Likewise.
26665         * modules/sys_select (Makefile.am): Likewise.
26666         * modules/sys_socket (Makefile.am): Likewise.
26667         * modules/sys_stat (Makefile.am): Likewise.
26668         * modules/sys_time (Makefile.am): Likewise.
26669         * modules/sys_times (Makefile.am): Likewise.
26670         * modules/sys_utsname (Makefile.am): Likewise.
26671         * modules/sys_wait (Makefile.am): Likewise.
26672         * modules/sysexits (Makefile.am): Likewise.
26673         * modules/termios (Makefile.am): Likewise.
26674         * modules/time (Makefile.am): Likewise.
26675         * modules/unistd (Makefile.am): Likewise.
26676         * modules/wchar (Makefile.am): Likewise.
26677         * modules/wctype (Makefile.am): Likewise.
26678
26679 2010-10-04  Bruno Haible  <bruno@clisp.org>
26680
26681         read-file tests: Avoid a test failure on NonStop Kernel.
26682         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26683         a regular file.
26684         Reported by Joachim Schmitz <schmitz@hp.com>.
26685
26686 2010-10-03  Bruno Haible  <bruno@clisp.org>
26687
26688         gnulib-tool: Fixes for --create-testdir with --libtool.
26689         * gnulib-tool (func_get_automake_snippet): Don't augment
26690         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26691         an executable.
26692         (func_create_testdir): Handle module 'alloca' like func_import.
26693         Reported by Bruce Korb <bruce.korb@gmail.com>.
26694
26695 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26696
26697         Avoid some lines longer than 80 characters.
26698         * lib/stdint.in.h: Break long comment lines.
26699         * lib/math.in.h: Likewise.
26700         (_GL_NUM_UINT_WORDS): New macro, for readability.
26701         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26702         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26703         * lib/stdlib.in.h: Likewise.
26704         * lib/spawn.in.h: Likewise.
26705         * lib/sys_socket.in.h: Update an URL.
26706         * lib/sys_stat.in.h: Break long line.
26707
26708 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26709
26710         Improve pmccabe2html.
26711         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26712         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26713         when the sources change. Remove the line in the HTML about "Used
26714         ranges" (which implied that there might be other unused ranges),
26715         rename "Resume" to "Summary" (easier to understand for more users).
26716         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26717         styles, and some unnecessary blank lines.
26718
26719 2010-10-03  Bruno Haible  <bruno@clisp.org>
26720             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26721
26722         acl: Add support for ACLs on NonStop Kernel.
26723         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26724         Check whether the function aclsort() exists.
26725         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26726         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26727         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26728         (acl_nontrivial [HAVE_ACLSORT]: New function.
26729         (file_has_acl): Implement for NonStop Kernel.
26730         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26731         (qset_acl): Implement for NonStop Kernel.
26732         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26733         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26734         (main): Implement for NonStop Kernel.
26735         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26736         Kernel. Handle this flavor.
26737         * tests/test-set-mode-acl.sh: Likewise.
26738         * tests/test-copy-acl.sh: Likewise.
26739         * tests/test-copy-file.sh: Likewise.
26740
26741 2010-10-03  Bruno Haible  <bruno@clisp.org>
26742
26743         Info about ACLs on NonStop Kernel.
26744         * doc/acl-resources.txt: Add info about NonStop Kernel.
26745         References by Joachim Schmitz <schmitz@hp.com>.
26746
26747 2010-10-02  Bruno Haible  <bruno@clisp.org>
26748
26749         Define missing EDQUOT on NonStop Kernel.
26750         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26751         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26752         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26753         missing.
26754         * doc/posix-headers/errno.texi: Mention the NSK bug.
26755         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26756         Reported by Joachim Schmitz <schmitz@hp.com>.
26757
26758 2010-10-02  Bruno Haible  <bruno@clisp.org>
26759
26760         Update doc for POSIX:2008.
26761         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26762         Update URL of POSIX specification.
26763
26764 2010-10-02  Bruno Haible  <bruno@clisp.org>
26765
26766         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26767         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26768         from gnulib, not from Automake.
26769
26770 2010-10-02  Bruno Haible  <bruno@clisp.org>
26771
26772         New module 'system-posix'.
26773         * modules/system-posix: New file.
26774         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26775         module is present.
26776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26777         GNULIB_SYSTEM_POSIX.
26778         * modules/stdlib (Depends-on): Remove sys_wait.
26779         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26780         * doc/posix-functions/system.texi: Mention the new module.
26781         * doc/posix-headers/stdlib.texi: Likewise.
26782         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26783         define test_sys_wait_macros to a no-op.
26784         Reported by Sam Steingold <sds@gnu.org>.
26785
26786 2010-09-30  Bruno Haible  <bruno@clisp.org>
26787
26788         More renaming from 'getdate' to 'get_date'.
26789         * doc/get_date.texi: Renamed from doc/getdate.texi.
26790         * modules/get_date (Files): Update.
26791         * MODULES.html.sh (Date and time <time.h>): Update.
26792         * DEPENDENCIES: Update.
26793         * gnulib-tool: Update comment.
26794         * m4/bison.m4 (gl_BISON): Likewise.
26795         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26796
26797 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26798
26799         bootstrap: support ACLOCAL_FLAGS during aclocal
26800         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26801         can add additional -I dir for third-party .m4 files.
26802
26803 2010-09-30  Eric Blake  <eblake@redhat.com>
26804
26805         bootstrap: use glibtoolize on MacOS
26806         * build-aux/bootstrap (check_versions): Convert libtool into
26807         libtoolize.
26808         (tool search): Move libtool check earlier, and look for
26809         glibtoolize for MacOS.
26810         (gnulib_tool_options): Auto-add --libtool when appropriate.
26811         Reported by Justin Clift.
26812
26813         poll: fix typo that broke test on MacOS
26814         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26815         Reported by Justin Clift.
26816
26817         getdate: rename to get_date
26818         Note: getdate.h is not renamed, to minimize client impact.
26819         * modules/getdate: Mark obsolete.  Move old contents...
26820         * modules/get_date: ...to new module name.
26821         * modules/getdate-tests: Move...
26822         * modules/get_date-tests: ...here.
26823         * m4/getdate.m4: Move...
26824         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
26825         * lib/getdate.y: Move...
26826         * lib/get_date.y: ...here.
26827         * tests/test-getdate.c: Move...
26828         * tests/test-get_date.c: ...here.
26829         * doc/posix-functions/getdate.texi (getdate): Update name.
26830         * NEWS: Mention the change.
26831
26832 2010-09-29  Bruno Haible  <bruno@clisp.org>
26833
26834         Separate the module 'waitpid' from the module 'sys_wait'.
26835         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
26836         present.
26837         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
26838         gl_MODULE_INDICATOR_FOR_TESTS.
26839         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
26840         * modules/sys_wait (Depends-on): Remove waitpid.
26841         (Makefile.am): Substitute GNULIB_WAITPID.
26842         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
26843         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
26844         signature only if the 'waitpid' module is present.
26845         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
26846         * NEWS: Mention the change.
26847         * modules/grantpt (Depends-on): Add waitpid.
26848         * modules/wait-process (Depends-on): Likewise.
26849
26850 2010-09-29  Bruno Haible  <bruno@clisp.org>
26851
26852         More tests for module 'sys_wait'.
26853         * modules/sys_wait-c++-tests: New file.
26854         * tests/test-sys_wait-c++.cc: New file.
26855         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
26856         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26857
26858 2010-09-29  Bruno Haible  <bruno@clisp.org>
26859
26860         New module 'waitpid'.
26861         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
26862         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
26863         Don't include <process.h>.
26864         (waitpid): Declare only, using modern idiom.
26865         * m4/waitpid.m4: New file.
26866         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
26867         * modules/waitpid: New file.
26868         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
26869         (Makefile.am): Update.
26870         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26871
26872 2010-09-28  Bruno Haible  <bruno@clisp.org>
26873
26874         poll: Assume ANSI C.
26875         * lib/poll.c (poll): Use an ANSI C declaration.
26876
26877 2010-09-28  Bruno Haible  <bruno@clisp.org>
26878
26879         poll-h: Create poll.h on all platforms.
26880         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
26881         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
26882         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
26883         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
26884         (gl_REPLACE_POLL_H): Don't set POLL_H.
26885         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
26886         * modules/poll-h (Depends-on): Add include_next.
26887         (Makefile.am): Create poll.h unconditionally. Substitute also
26888         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
26889
26890 2010-09-28  Bruno Haible  <bruno@clisp.org>
26891
26892         Tests for module 'poll-h'.
26893         * modules/poll-h-c++-tests: New file.
26894         * tests/test-poll-h-c++.cc: New file.
26895
26896         Tests for module 'poll-h'.
26897         * modules/poll-h-tests: New file.
26898         * tests/test-poll-h.c: New file.
26899
26900 2010-09-28  Bruno Haible  <bruno@clisp.org>
26901
26902         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
26903         * modules/poll-h (Depends-on): Add 'extensions'.
26904
26905 2010-09-28  Bruno Haible  <bruno@clisp.org>
26906
26907         New module 'poll-h'.
26908         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
26909         (poll): Use modern idiom.
26910         * modules/poll-h: New file.
26911         * modules/poll (Files): Remove lib/poll.in.h.
26912         (Depends-on): Add poll-h.
26913         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
26914         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
26915         * m4/poll_h.m4: New file.
26916         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
26917         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
26918         and invoke gl_REPLACE_POLL_H.
26919         * lib/poll.c: Use common idiom.
26920         * tests/test-poll.c: Likewise.
26921         * doc/posix-headers/poll.texi: Mention the poll-h module.
26922         Suggested by Eric Blake.
26923
26924 2010-09-26  Bruno Haible  <bruno@clisp.org>
26925
26926         sys_wait: Implement WSTOPSIG.
26927         * lib/sys_wait.in.h (WSTOPSIG): New macro.
26928         Reported by Simon Josefsson.
26929
26930 2010-09-26  Simon Josefsson  <simon@josefsson.org>
26931
26932         stdlib, sys_wait: Avoid compilation error on mingw.
26933         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
26934
26935 2010-09-26  Bruno Haible  <bruno@clisp.org>
26936
26937         stdlib tests: Avoid code duplication.
26938         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
26939         * modules/sys_wait-tests (Files): Likewise.
26940         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
26941         * tests/test-stdlib.c: Include test-sys_wait.h.
26942         (main): Invoke test_sys_wait_macros.
26943         * tests/test-sys_wait.c: Include test-sys_wait.h.
26944         (main): Invoke test_sys_wait_macros.
26945
26946 2010-09-25  Simon Josefsson  <simon@josefsson.org>
26947
26948         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26949         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26950         sure Windows sockets are working before calling getaddrinfo.
26951         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26952         * doc/gnulib.texi (Windows sockets): Fix typo.
26953
26954 2010-09-25  Bruno Haible  <bruno@clisp.org>
26955
26956         Tests for module 'regex-quote'.
26957         * modules/regex-quote-tests: New file.
26958         * tests/test-regex-quote.c: New file.
26959
26960         New module 'regex-quote'.
26961         * lib/regex-quote.h: New file.
26962         * lib/regex-quote.c: New file.
26963         * modules/regex-quote: New file.
26964         Suggested by Reuben Thomas <rrt@sc3d.org>.
26965
26966 2010-09-24  Bruno Haible  <bruno@clisp.org>
26967
26968         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26969         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26970
26971 2010-09-23  Bruno Haible  <bruno@clisp.org>
26972
26973         setenv: Relax license.
26974         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26975         Blake.
26976         Requested by Eric Blake.
26977
26978 2010-09-22  Bruno Haible  <bruno@clisp.org>
26979
26980         termios: Relax license.
26981         * modules/termios (License): Change to LGPLv2+.
26982         Requested by Eric Blake.
26983
26984 2010-09-22  Bruno Haible  <bruno@clisp.org>
26985
26986         threadlib: Allow the package to change the default to 'no'.
26987         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26988         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26989         Reported by Paul Eggert.
26990
26991 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26992             Bruno Haible  <bruno@clisp.org>
26993
26994         Fix endless loop in mbmemcasecoll.
26995         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26996         byte.
26997         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26998
26999 2010-09-22  Bruno Haible  <bruno@clisp.org>
27000
27001         Tests for module 'memcoll'.
27002         * modules/memcoll-tests: New file.
27003         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27004
27005         memcoll, xmemcoll: Clarify size vs. length.
27006         * modules/memcoll.c (memcoll0): Clarify specification.
27007         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27008         passed to collate_error.
27009
27010 2010-09-22  Bruno Haible  <bruno@clisp.org>
27011
27012         Tests for module 'memcasecmp'.
27013         * modules/memcasecmp-tests: New file.
27014         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27015
27016 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         * lib/pthread.in.h: Add split double-inclusion guard, and include
27019         system <pthread.h> if there is one.  Use @@-style as in other
27020         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27021         pthread.h doesn't.
27022         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27023         (pthread_mutexattr_settype, pthread_mutex_trylock):
27024         New static inline functions, if there's no system <pthread.h>.
27025         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27026         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27027         Approximate with mutexes if the system lacks spinlocks, as in
27028         MacOS.
27029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27030         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27031         @@-style.  Check for spinlocks separately.
27032         (gl_PTHREAD_DEFAULTS): New macro.
27033         * modules/pthread: Redo to use a more typical style for in.h files.
27034
27035 2010-09-21  Eric Blake  <eblake@redhat.com>
27036
27037         net_if: enhance tests
27038         * tests/test-net_if.c (main): Move signature checks earlier.
27039         Print failures to stderr.
27040         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27041         Document the bug that we do not yet fix.
27042
27043 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27044
27045         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27046         about gnulib, not GSS.
27047
27048 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27049
27050         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27051         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27052         for Emacs.
27053         * build-aux/pmccabe2html: Make Makefile.am example code more
27054         cut-and-paste friendly.
27055
27056 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27057
27058         * tests/test-net_if.c: New file.
27059         * modules/net_if-tests: New file.
27060
27061 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27062
27063         pthread: add pthread_spin_destroy
27064         * lib/pthread.in.h (pthread_spin_destroy): New function.
27065
27066 2010-09-19  Bruno Haible  <bruno@clisp.org>
27067
27068         gnulib-tool: Fix --help output.
27069         * gnulib-tool (func_usage): Fix help message.
27070         Reported by Reuben Thomas <rrt@sc3d.org>.
27071
27072 2010-09-18  Jim Meyering  <meyering@redhat.com>
27073
27074         maint.mk: avoid unexpanded \n in two diagnostics
27075         * top/maint.mk (sc_prohibit_always_true_header_tests):
27076         Don't use a literal \n in a halt=... assignment.  It would not be
27077         expanded, and the two \n bytes would appear in the diagnostic output
27078         rather than the desired newline.  Use halt=$$(printf ... instead.
27079         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27080
27081 2010-09-18  Bruno Haible  <bruno@clisp.org>
27082
27083         netinet_in: Doc tweak.
27084         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27085         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27086
27087 2010-09-18  Jim Meyering  <meyering@redhat.com>
27088
27089         init.sh: correct an outdated comment
27090         * tests/init.sh (create_exe_shims_):  s/function/alias/
27091
27092         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27093         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27094         a file named "*.exe" is removed between the glob expansion and the
27095         processing of that oddly named file.
27096
27097 2010-09-17  Eric Blake  <eblake@redhat.com>
27098
27099         mirbsd: add some more support
27100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27101         in BSD family.
27102         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27103         devices as OpenBSD.
27104         * m4/host-os.m4 (mirbsd): Add MirBSD.
27105
27106         tests: fix unportable assumption on sys/wait.h
27107         * tests/test-sys_wait.c (main): Relax test.
27108         * tests/test-stdlib.c (main): Likewise.
27109
27110         init.sh: accommodate directory with no .exes
27111         * tests/init.sh: Accomodate directory containing only scripts.
27112
27113         tests: avoid compiler warning
27114         * tests/test-stdlib.c (main): Use the variable.
27115
27116         fdutimens, fdutimensat: update signature, again
27117         * lib/utimens.h (gl_futimens): Delete, and move signature...
27118         (fdutimens): ...here.
27119         (fdutimensat): Rearrange signature.
27120         (lutimensat): Rename variable for clarity.
27121         * lib/fdutimensat.c (fdutimensat): Update signature.
27122         * lib/utimens.c (fdutimens): Likewise.
27123         (gl_futimens): Delete.
27124         (utimens, lutimens): Update callers.
27125         * lib/futimens.c (futimens): Likewise.
27126         * tests/test-fdutimensat.c: Likewise.
27127         * tests/test-utimens.c: Likewise.
27128         * tests/test-futimens.h: Update comment.
27129         * NEWS: Mention this.
27130         Suggested by Paul Eggert.
27131
27132 2010-09-17  Bruno Haible  <bruno@clisp.org>
27133
27134         Take over the maintenance of some older macros from Autoconf.
27135         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27136         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27137         GNU Autoconf.
27138         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27139         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27140
27141 2010-09-17  Eric Blake  <eblake@redhat.com>
27142
27143         fdutimensat: drop atflag validation
27144         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27145         with valid fd, to close a race scenario where futimens is
27146         unsupported and FILE was replaced by a symlink.
27147         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27148         accordingly.
27149         Suggested by Paul Eggert.
27150
27151 2010-09-16  Bruno Haible  <bruno@clisp.org>
27152
27153         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27154         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27155
27156 2010-09-16  Bruno Haible  <bruno@clisp.org>
27157
27158         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27159         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27160         login_tty exists.
27161         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27162
27163 2010-09-16  Bruno Haible  <bruno@clisp.org>
27164
27165         login_tty: Make the replacement code work on BSD systems.
27166         * lib/login_tty.c: Include <sys/ioctl.h>.
27167         (login_tty): Use ioctl TIOCSCTTY when available.
27168         * modules/login_tty (Depends-on): Add sys_ioctl.
27169         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27170
27171 2010-09-16  Bruno Haible  <bruno@clisp.org>
27172
27173         login_tty: Stricter unit test.
27174         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27175         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27176         and tcgetsid() after login_tty.
27177         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27178
27179 2010-09-16  Bruno Haible  <bruno@clisp.org>
27180
27181         New module 'tcgetsid'.
27182         * lib/tcgetsid.c: New file.
27183         * m4/tcgetsid.m4: New file.
27184         * modules/tcgetsid: New file.
27185         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27186         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27187         GNULIB_TCGETSID, HAVE_TCGETSID.
27188         * lib/termios.in.h: Include <sys/types.h>.
27189         (tcgetsid): New declaration.
27190         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27191         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27192         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27193         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27194
27195 2010-09-16  Bruno Haible  <bruno@clisp.org>
27196
27197         Tests for module 'termios'.
27198         * modules/termios-c++-tests: New file.
27199         * modules/termios-tests: New file.
27200         * tests/test-termios-c++.cc: New file.
27201         * tests/test-termios.c: New file.
27202
27203         New module 'termios'.
27204         * modules/termios: New file.
27205         * lib/termios.in.h: New file.
27206         * m4/termios_h.m4: New file.
27207         * doc/posix-headers/termios.texi: Mention the new module.
27208
27209 2010-09-16  Eric Blake  <eblake@redhat.com>
27210
27211         fdutimensat: add an atflag parameter
27212         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27213         * lib/utimens.h (fdutimensat): Update prototype.
27214         * tests/test-fdutimensat.c: Adjust test to match.
27215         * NEWS: Document the change.
27216         Suggested by Paul Eggert.
27217
27218 2010-09-16  Bruno Haible  <bruno@clisp.org>
27219
27220         Fix typos in comments.
27221         * lib/striconveh.h: Fix typo in comment.
27222         * lib/login_tty.c (login_tty): Likewise.
27223
27224 2010-09-15  Bruno Haible  <bruno@clisp.org>
27225
27226         stdlib: clarify MirBSD WEXITSTATUS bug
27227         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27228         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27229
27230 2010-09-15  Eric Blake  <eblake@redhat.com>
27231
27232         stdlib: work around MirBSD WEXITSTATUS bug
27233         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27234         * modules/stdlib (Depends-on): Add sys_wait.
27235         * tests/test-sys_wait.c (main): Enhance test.
27236         * tests/test-stdlib.c (main): Likewise.
27237         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27238
27239         docs: mention MacOS issue with WEXITSTATUS(constant)
27240         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27241         issue.
27242         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27243
27244         strnlen: add tests
27245         * modules/strnlen-tests: New file.
27246         * tests/test-strnlen.c: Likewise.
27247
27248 2010-09-14  Bruno Haible  <bruno@clisp.org>
27249
27250         unistr/base: Avoid link errors when module 'libunistring' is also used.
27251         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27252         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27253         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27254         Declare also when HAVE_LIBUNISTRING is set.
27255         Reported by Pádraig Brady <P@draigbrady.com>.
27256
27257 2010-09-14  Eric Blake  <eblake@redhat.com>
27258
27259         test-rawmemchr: make more robust
27260         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27261         (Depends-on, configure.ac): Add needed prerequisites to use it.
27262         * modules/memchr-tests (Files, Depends-on, configure.ac):
27263         Likewise, to avoid implicit reliance on memchr module prereqs.
27264         * tests/test-memchr.c (main): Ensure proper masking.
27265         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27266         reads.
27267
27268         memchr: detect glibc Alpha bug
27269         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27270         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27271         Alpha.
27272         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27273         * tests/test-memchr.c (main): Enhance test.
27274         Reported by Nelson H. F. Beebe.
27275
27276 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27277
27278         fts, getcwd, glob: audit for dirfd returning -1
27279         * lib/fts.c (opendir): Remove #define; no longer used.
27280         (opendirat): New arg PDIR_FD.  All callers changed.
27281         (fts_build, _opendir2): Use new opendirat to avoid the need for
27282         dirfd, or for checking whether dirfd returns a negative value.
27283         Don't use opendir; always use openat followed by fdopendir.
27284         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27285         it.
27286         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27287         returns -1 here.
27288         * modules/fts (Depends-on): Remove dirfd.
27289         * modules/getcwd (Depends-on): Likewise.
27290
27291 2010-09-13  Eric Blake  <eblake@redhat.com>
27292
27293         float: fix broken MirBSD header
27294         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27295         * doc/posix-headers/float.texi (float.h): Document it.
27296
27297 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27298
27299         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27300         * lib/fts.c (opendirat): New arg extra_flags.
27301         (__opendir2): Use it to avoid following symlinks when opening
27302         a directory, if symlinks are not supposed to be followed.  See
27303         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27304
27305         fdopendir: preserve argument fd before returning
27306         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27307         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27308         (fdopendir): Use them, arranging for FD to be open to the same
27309         directory that it was when it started.  (It might be temporarily
27310         closed while fdopendir is running, so this not thread- or
27311         signal-safe.)  Be careful to do the right thing even when file
27312         descriptors are scarce and dup fails with errno == EMFILE.  See
27313         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27314
27315 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27316
27317         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27318         * NEWS: Document change.
27319         * m4/regex.m4: Disable test for regoff_t size.
27320
27321 2010-09-13  Jim Meyering  <meyering@redhat.com>
27322
27323         fts: don't operate on an invalid file descriptor after failed dup
27324         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27325         negative file descriptor.
27326
27327 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27328
27329         savedir: add streamsavedir, deprecate fdsavedir
27330         * NEWS: Mention deprecation of fdsavedir.
27331         * lib/savedir.c (streamsavedir): New extern function, whose name
27332         ends in "savedir" to be consistent with the others.  This differs
27333         from savedirstream in that it doesn't close its argument.  The
27334         next version of GNU tar will use this instead of fdsavedir, to
27335         avoid some race conditions and conserve file descriptors.
27336         (savedirstream): Reimplement as a wrapper around streamsavedir.
27337         (fdsavedir): Add a comment deprecating this function.  As far as
27338         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27339         * lib/savedir.h (streamsavedir): New decl.
27340         (fdsavedir): Add a comment deprecating this.
27341
27342 2010-09-10  Bruno Haible  <bruno@clisp.org>
27343
27344         langinfo: Fix last commit.
27345         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27346         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27348
27349 2010-09-10  Bruno Haible  <bruno@clisp.org>
27350
27351         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27352         * lib/progreloc.c (O_EXEC): Define fallback.
27353
27354 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27355
27356         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27357         * NEWS: Document recent changes to fcntl-h.
27358         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27359         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27360         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27361         Similarly for O_SEARCH; this last was already true, but not documented.
27362         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27363         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27364         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27365         Likewise.
27366         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27367         is zero, not whether it is defined.
27368         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27369         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27370         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27371
27372 2010-09-10  Bruno Haible  <bruno@clisp.org>
27373
27374         langinfo, nl_langinfo: Fix for IRIX 5.3.
27375         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27376         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27377         HAVE_LANGINFO_YESEXPR.
27378         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27379         HAVE_LANGINFO_YESEXPR.
27380         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27381         HAVE_LANGINFO_T_FMT_AMPM is 0.
27382         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27383         HAVE_LANGINFO_YESEXPR is 0.
27384         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27385         NOEXPR.
27386         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27387         * doc/posix-functions/nl_langinfo.texi: Likewise.
27388         Reported by Eric Blake.
27389
27390 2010-09-10  Bruno Haible  <bruno@clisp.org>
27391
27392         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27393         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27394         on FreeBSD 8.0 and OpenBSD 4.6.
27395         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27396         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27397         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27398         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27399         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27400         ac_includes_default.
27401         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27402
27403 2010-09-09  Eric Blake  <eblake@redhat.com>
27404
27405         strsignal: work around NetBSD bug
27406         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27407         * lib/string.in.h (includes): Likewise.
27408         * doc/posix-functions/strsignal.texi (strsignal): Document the
27409         bug.
27410         Reported by Nelson H. F. Beebe.
27411
27412         gnulib-tool: work with NetBSD /bin/sh
27413         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27414         (func_get_description, func_get_comment, func_get_status)
27415         (func_get_notice, func_get_applicability, func_get_filelist)
27416         (func_get_dependencies, func_get_autoconf_early_snippet)
27417         (func_get_autoconf_snippet, func_get_automake_snippet)
27418         (func_get_include_directive, func_get_link_directive)
27419         (func_get_license, func_get_maintainer, func_import): Avoid
27420         shell syntax errors from parsing syntax extensions.
27421
27422 2010-09-09  Bruno Haible  <bruno@clisp.org>
27423
27424         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27425         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27426         a reliable way to determine whether the 'alias' command works.
27427
27428 2010-09-08  Jim Meyering  <meyering@redhat.com>
27429
27430         init.sh: penalize a set-x-impaired shell; don't disqualify it
27431         * tests/init.sh: Too many shells corrupt application stderr when
27432         you set -x, so we can't afford to disqualify them, since at least
27433         on Irix-6.5, that would disqualify all bourne shells.
27434         Instead, use a two-pass approach.
27435         On the first pass, try to find a shell that meets the stricter
27436         condition that set -x does not corrupt stderr.
27437         If no shell meets the stricter condition, retest each candidate
27438         shell, but without that extra condition.  Finally, when
27439         VERBOSE=yes is requested and set -x might cause trouble, simply
27440         issue a warning and refrain from enabling debug output.
27441
27442 2010-09-08  Eric Blake  <eblake@redhat.com>
27443
27444         unsetenv: fix OpenBSD bug
27445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27446         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27447         documentation.
27448         Reported by Jim Meyering.
27449
27450         strtod: work around IRIX 6.5 bug
27451         * lib/strtod.c (strtod): Reparse number on shorter string if
27452         exponent parse was invalid.
27453         * tests/test-strtod.c (main): Add check for "0x1p 2".
27454         Reported by Tom G. Christensen.
27455
27456         getopt: optimize previous patch
27457         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27458         empty variable.  Speed up awk script.
27459         Reported by Paolo Bonzini.
27460
27461 2010-09-08  Jim Meyering  <meyering@redhat.com>
27462
27463         test.sh: disqualify shells for which set -x corrupts stderr
27464         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27465         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27466         appear in stderr output.  For example, this command:
27467             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27468         prints "P=1" on those two systems:
27469
27470 2010-09-08  Bruno Haible  <bruno@clisp.org>
27471
27472         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27473         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27474         commands, because some shells ignore redirections when there is an
27475         error in the command lookup.
27476         Reported by Eric Blake.
27477
27478 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27479
27480         * lib/regex.h: Fix a mention of `regex_compile' (should be
27481         `re_compile_pattern').
27482         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27483         (re_set_registers): Correct name of parameter in comment.
27484
27485         * doc/regex.texi: Add documentation for missing syntax flags.
27486         Remove commented-out documentation of defunct syntax option
27487         RE_NO_EMPTY_ALTS.
27488         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27489         Add documentation of re_set_registers.
27490         Document trick to re-use a pattern buffer by setting fastmap manually.
27491         Update documentation of struct re_pattern_buffer per public members.
27492         Uncomment documentation of equivalence class operators and
27493         collating symbol operators, since they are now implemented,
27494         Explain leftmost-longest matching in relation to alternatives.
27495         Tidy documentation of substring matching.
27496         Remove POSIX documentation, which is done better in
27497         glibc, and refer the reader there. Keep BSD API documentation, as
27498         that is not readily available elsewhere.
27499
27500 2010-09-07  Eric Blake  <eblake@redhat.com>
27501
27502         getopt: handle POSIXLY_CORRECT set but not exported
27503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27504         export state of POSIXLY_CORRECT, due to bash set -o posix.
27505         Reported by Dustin J. Mitchell.
27506
27507 2010-09-05  Bruno Haible  <bruno@clisp.org>
27508
27509         gnulib-tool: Highlight the changed options.
27510         * gnulib-tool (func_usage): Display the --import, --add-import,
27511         --remove-import explanations in bold font.
27512
27513 2010-09-06  Karl Berry  <karl@gnu.org>
27514
27515         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27516
27517 2010-09-05  Bruno Haible  <bruno@clisp.org>
27518
27519         uniwidth/width: Update comment.
27520         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27521         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27522
27523 2010-09-05  Bruno Haible  <bruno@clisp.org>
27524
27525         isinf, isnan: Relax license.
27526         * modules/isinf (License): Change from GPL to LGPL, with consent from
27527         Ben Pfaff.
27528         * modules/isnan (License): Likewise.
27529         Requested by Ludovic Courtès.
27530
27531 2010-09-04  Bruno Haible  <bruno@clisp.org>
27532
27533         gnulib-tool: Help migration from --import to --add-import or --update.
27534         * gnulib-tool: Emit a verbose error message when --import is used
27535         without any module name.
27536
27537 2010-09-04  Bruno Haible  <bruno@clisp.org>
27538
27539         Update doc about gnulib-tool.
27540         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27541         'gnulib-tool --update' in more detail.
27542         Reported by Eric Blake.
27543
27544 2010-09-04  Bruno Haible  <bruno@clisp.org>
27545
27546         gnulib-tool: Change --import. New options --add/remove-import.
27547         * gnulib-tool: New options --add-import, --remove-import.
27548         (func_usage): Document them.
27549         (have_associative): Define always.
27550         (func_import): In import mode, don't merge the specified settings with
27551         the cached settings. Implement remove-import mode.
27552         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27553         Explain when to use them versus --import.
27554         (Simple update): Use --add-import instead of --import.
27555         * NEWS: Mention the change.
27556
27557 2010-09-04  Bruno Haible  <bruno@clisp.org>
27558
27559         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27560         separate gnulib.mk.
27561
27562 2010-09-04  Bruno Haible  <bruno@clisp.org>
27563
27564         gnulib-tool: Don't talk about CVS any more.
27565         * gnulib-tool (func_usage, func_import): Write "version control"
27566         instead of CVS.
27567
27568 2010-09-04  Jim Meyering  <meyering@redhat.com>
27569
27570         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27571         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27572         false positives (whose names may be ill-chosen) when searching
27573         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27574         would cause a false-positive.
27575
27576         avoid coreutils "make distcheck" failure
27577         Coreutils tests with an absolute build directory name that contains
27578         a space.  Not quoting this directory name caused a failure.
27579         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27580         * tests/test-vc-list-files-cvs.sh: Likewise.
27581
27582 2010-09-04  Bruno Haible  <bruno@clisp.org>
27583
27584         gnulib-tool: Avoid error when run in a package without Makefile.am.
27585         * gnulib-tool: When collecting the m4dirs in a package that does not
27586         have a Makefile.am, eliminate those directories that contain no
27587         gnulib-cache.m4. Fix expression that counts these directories.
27588
27589 2010-09-04  Bruno Haible  <bruno@clisp.org>
27590
27591         update-copyright test: Improve output when perl is missing or too old.
27592         * tests/test-update-copyright.sh: Move test of Perl version down after
27593         the test whether Perl exists. Provide an explanation relating Perl's
27594         error message to Automake's SKIP: message.
27595
27596 2010-09-04  Bruno Haible  <bruno@clisp.org>
27597
27598         Don't augment PATH in TESTS_ENVIRONMENT.
27599         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27600         set abs_aux_dir instead of augmenting PATH.
27601         * modules/vc-list-files-tests (Makefile.am): Likewise.
27602         * tests/test-update-copyright.sh: Augment PATH here.
27603         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27604         path_prepend_.
27605         * tests/test-vc-list-files-git.sh: Likewise.
27606
27607 2010-09-04  Jim Meyering  <meyering@redhat.com>
27608
27609         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27610         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27611
27612 2010-09-04  Bruno Haible  <bruno@clisp.org>
27613
27614         strdup: Fix compilation error in C++ mode.
27615         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27616         the macro.
27617
27618 2010-09-04  Bruno Haible  <bruno@clisp.org>
27619
27620         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27621         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27622         macro into a function.
27623         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27624
27625 2010-09-04  Bruno Haible  <bruno@clisp.org>
27626
27627         Set PATH_SEPARATOR the same way autoconf does.
27628         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27629         the value of PATH_SEPARATOR the same way autoconf-generated configure
27630         scripts do.
27631         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27632         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27633
27634 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27635
27636         Set PATH_SEPARATOR the same way autoconf does.
27637         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27638         the same way autoconf-generated configure scripts do.
27639         * posix-modules: Likewise.
27640
27641 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27642
27643         hash: fix safe_hasher const typo
27644         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27645         const; otherwise, there is a type error later.
27646
27647 2010-09-02  Jim Meyering  <meyering@redhat.com>
27648
27649         test-update-copyright.sh: require perl 5.8.0
27650         * tests/test-update-copyright.sh: Require 5.8.0,
27651         which Tom G. Christensen has confirmed is adequate,
27652         while 5.6.1 is not.
27653
27654 2010-09-02  Eric Blake  <eblake@redhat.com>
27655
27656         tests: init.sh improvements for re-exec'ing with zsh
27657         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27658         -vx through shell re-exec.
27659         Reported by Tom G. Christensen.
27660
27661         wctype: fix typo in previous commit
27662         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27663         Reported by Ludovic Courtès.
27664
27665 2010-09-02  Jim Meyering  <meyering@redhat.com>
27666
27667         test-update-copyright.sh: skip test if Perl is too old
27668         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27669         Reported by Tom G. Christensen.
27670
27671 2010-09-02  Bruno Haible  <bruno@clisp.org>
27672
27673         wctype: Avoid compilation error on IRIX 6.5.30.
27674         * lib/wctype.in.h (iswblank): Declare with a replacement if
27675         REPLACE_ISWBLANK is set.
27676         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27677         declared. Set REPLACE_ISWBLANK.
27678         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27679         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27680         * doc/posix-headers/wctype.texi: Likewise.
27681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27682
27683 2010-09-01  Bruno Haible  <bruno@clisp.org>
27684
27685         New module 'socketlib'.
27686         * modules/socketlib: New file.
27687         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27688         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27689         * modules/sockets (Depends-on): Add socketlib.
27690         Suggested by Sam Steingold <sds@gnu.org>.
27691
27692 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27693
27694         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27695
27696         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27697         when one needs search access to a directory but not read access.
27698         On systems where it is available, it works in some cases where
27699         O_RDONLY does not, namely on directories that are searchable but
27700         not readable, and which need only to be searchable.  If O_SEARCH
27701         is not available, fall back to the traditional method of using
27702         O_RDONLY.
27703
27704         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27705         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27706         when opening a directory that needs only to be searchable.
27707         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27708         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27709         * lib/openat-proc.c (openat_proc_name): Likewise.
27710         * lib/openat.c (openat_needs_fchdir): Likewise.
27711         * lib/save-cwd.c (save_cwd): Likewise.
27712         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27713
27714 2010-08-28  Bruno Haible  <bruno@clisp.org>
27715
27716         New module 'host-cpu-c-abi'.
27717         * modules/host-cpu-c-abi: New file.
27718         * m4/host-cpu-c-abi.m4: New file, based on part of
27719         clisp/src/m4/general.m4.
27720         Requested by Sam Steingold <sds@gnu.org>.
27721
27722 2010-08-31  Eric Blake  <eblake@redhat.com>
27723         and Jim Meyering  <meyering@redhat.com>
27724
27725         hash: factor, and guard against misbehaving hasher function
27726         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27727         of table->hasher's return value.  Also protect against a hash value
27728         so large that adding it to table->bucket results in a NULL pointer.
27729         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27730         Use it in place of open-coded check-and-abort.
27731
27732 2010-08-30  Bruno Haible  <bruno@clisp.org>
27733
27734         hash: silence spurious clang warning
27735         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27736         Reported by Eric Blake.
27737
27738 2010-08-30  Eric Blake  <eblake@redhat.com>
27739
27740         strstr, memmem, strcasestr: avoid leaked shell message
27741         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27742         FreeBSD.
27743         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27744         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27745
27746         tests: silence clang warning
27747         * tests/test-malloca.c (do_allocation): Avoid dead store.
27748
27749 2010-08-29  Bruno Haible  <bruno@clisp.org>
27750
27751         gettext: Fix recent mistake.
27752         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27753
27754 2010-08-29  Bruno Haible  <bruno@clisp.org>
27755
27756         selinux-h: Offer a --without-selinux option.
27757         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27758         --without-selinux was specified, skip all tests and define
27759         HAVE_SELINUX_SELINUX_H to 0.
27760         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27761         set LIB_SELINUX to empty.
27762         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27763         gl_LIBSELINUX. If --without-selinux was specified, replace
27764         selinux/context.h.
27765         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27766
27767 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27768             Bruno Haible  <bruno@clisp.org>
27769
27770         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27771         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27772         of HAVE_REALLOC.
27773         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27774         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27775         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27776         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27777
27778 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27779             Bruno Haible  <bruno@clisp.org>
27780
27781         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27782         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27783         HAVE_CALLOC.
27784         * lib/xmalloc.c: Update accordingly.
27785         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27786         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27787         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27788
27789 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27790             Bruno Haible  <bruno@clisp.org>
27791
27792         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27793         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27794         HAVE_MALLOC.
27795         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27796         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27797         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27798
27799 2010-08-29  Bruno Haible  <bruno@clisp.org>
27800
27801         Update modules list.
27802         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27803         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27804         (String handling <string.h>): Add astrxfrm.
27805         (File system functions): Add readlinkat.
27806
27807 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27808
27809         Tests for module 'realloc-gnu'.
27810         * modules/realloc-gnu-tests: New file.
27811         * tests/test-realloc-gnu.c: New file.
27812
27813         Tests for module 'calloc-gnu'.
27814         * modules/calloc-gnu-tests: New file.
27815         * tests/test-calloc-gnu.c: New file.
27816
27817         Tests for module 'malloc-gnu'.
27818         * modules/malloc-gnu-tests: New file.
27819         * tests/test-malloc-gnu.c: New file.
27820
27821 2010-08-28  Bruno Haible  <bruno@clisp.org>
27822
27823         Rename module 'realloc' -> 'realloc-gnu'.
27824         * modules/realloc-gnu: New file, copied from modules/realloc.
27825         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
27826         obsolete.
27827         * modules/mgetgroups (Depends-on): Update.
27828         * doc/posix-functions/realloc.texi: Update.
27829         * NEWS: Mention the change.
27830
27831         Rename module 'calloc' -> 'calloc-gnu'.
27832         * modules/calloc-gnu: New file, copied from modules/calloc.
27833         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
27834         obsolete.
27835         * doc/posix-functions/calloc.texi: Update.
27836         * NEWS: Mention the change.
27837
27838         Rename module 'malloc' -> 'malloc-gnu'.
27839         * modules/malloc-gnu: New file, copied from modules/malloc.
27840         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
27841         obsolete.
27842         * modules/argp (Depends-on): Update.
27843         * modules/regex (Depends-on): Update.
27844         * doc/posix-functions/malloc.texi: Update.
27845         * NEWS: Mention the change.
27846
27847 2010-08-28  Eric Blake  <eblake@redhat.com>
27848
27849         pread, pwrite: add missing dependency
27850         * modules/pread (Depends-on): Add extensions.
27851         * modules/pwrite (Depends-on): Likewise.
27852
27853 2010-08-28  Bruno Haible  <bruno@clisp.org>
27854
27855         unistr/u*-strchr: Fix tests dependencies.
27856         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
27857         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
27858         Reported by Ian Beckwith <ianb@erislabs.net>.
27859
27860 2010-08-28  Bruno Haible  <bruno@clisp.org>
27861
27862         read-file: Don't occupy too much unused memory.
27863         * lib/read-file.c (fread_file): Shrink the buffer at the end.
27864
27865 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
27866             Eric Blake  <eblake@redhat.com>
27867             Bruno Haible  <bruno@clisp.org>
27868
27869         read-file: Avoid memory reallocations with regular files.
27870         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
27871         (fread_file): With regular files, use the remaining length as the
27872         initial buffer size.  Check against overflow.
27873         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
27874         sys_stat.
27875
27876 2010-08-28  Bruno Haible  <bruno@clisp.org>
27877
27878         ftello: Relax license.
27879         * modules/ftello (License): Relax to LGPLv2+.
27880         Reported by Eric Blake.
27881
27882 2010-08-28  Bruno Haible  <bruno@clisp.org>
27883
27884         Avoid relocwrapper link errors due to gnulib replacement functions.
27885         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
27886         function.
27887         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27888
27889 2010-08-28  Bruno Haible  <bruno@clisp.org>
27890
27891         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
27892         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
27893         defined.
27894         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
27895         Suggested by Eric Blake.
27896
27897 2010-08-28  Bruno Haible  <bruno@clisp.org>
27898
27899         sys_socket, netdb: Ensure socklen_t gets defined.
27900         * modules/sys_socket (Depends-on): Add socklen.
27901         * modules/netdb (Depends-on): Likewise.
27902         * modules/getaddrinfo (Depends-on): Remove socklen.
27903         * modules/getsockopt (Depends-on): Likewise.
27904         * modules/setsockopt (Depends-on): Likewise.
27905         * tests/test-sys_socket.c: Check that socklen_t is defined.
27906         * tests/test-netdb.c: Likewise.
27907         * m4/socklen.m4: Update comments.
27908         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27909
27910 2010-08-27  Eric Blake  <eblake@redhat.com>
27911
27912         login_tty: add missing dependency
27913         * modules/login_tty (Depends-on): Add pty.
27914
27915 2010-08-26  Eric Blake  <eblake@redhat.com>
27916
27917         lib-symbol-versions: fix m4 quoting
27918         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
27919         format for AC_LINK_IFELSE.
27920
27921         glob: fix compile test
27922         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
27923
27924         btowc: fix missing file
27925         * modules/btowc (Files): Also ship locale-fr.m4.
27926
27927         lseek: fix link test
27928         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
27929         AC_LINK_IFELSE.
27930
27931         include_next: silence autoconf 2.68 warning
27932         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
27933         AC_COMPILE_IFELSE as special.
27934         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
27935         autoconf < 2.68.
27936
27937         acl: fix compilation test
27938         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
27939         AC_COMPILE_IFELSE.
27940
27941 2010-08-26  Bruno Haible  <bruno@clisp.org>
27942
27943         Modernize AC_TRY_RUN invocations.
27944         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
27945         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27946         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
27947         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
27948         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27949         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27950         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27951         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27952         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27953         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27954         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27955         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27956         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27957         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27958         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27959         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27960         gl_MBRLEN_NUL_RETVAL): Likewise.
27961         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27962         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27963         Likewise.
27964         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27965         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27966         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27967         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27968         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27969         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27970         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27971         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27972         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27973         Likewise.
27974         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27975         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27977         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27978         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27980         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27981         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27982         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27984
27985 2010-08-26  Bruno Haible  <bruno@clisp.org>
27986
27987         Modernize AC_TRY_LINK invocations.
27988         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27989         AC_TRY_LINK.
27990         * m4/argp.m4 (gl_ARGP): Likewise.
27991         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27992         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27993         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27994         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27995         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27996         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27997         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27998         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27999         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28000         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28001         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28002         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28003         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28004         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28005         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28006         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28007         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28008         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28009         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28010         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28011         Likewise.
28012         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28013         Likewise.
28014         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28015         Likewise.
28016         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28017         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28018         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28019         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28020         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28021         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28022         * m4/servent.m4 (gl_SERVENT): Likewise.
28023         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28024         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28025         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28026         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28027         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28028         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28029         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28030         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28031         * modules/tsearch-tests (configure.ac): Likewise.
28032
28033 2010-08-26  Bruno Haible  <bruno@clisp.org>
28034
28035         Modernize AC_TRY_COMPILE invocations.
28036         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28037         AC_TRY_COMPILE.
28038         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28039         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28040         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28041         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28042         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28043         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28044         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28045         * m4/lock.m4 (gl_LOCK): Likewise.
28046         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28047         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28048         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28049         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28050         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28051         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28052         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28054         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28055         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28056         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28057         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28058         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28059         extraneous semicolon.
28060
28061 2010-08-26  Jim Meyering  <meyering@redhat.com>
28062
28063         stat-time: relax license LGPL
28064         * modules/stat-time (License): Change from GPL to LGPL,
28065         with consent from all contributors, for use in libguile.
28066         Requested by Ludovic Courtès.
28067
28068 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28069
28070         poll: return immediately on POLLHUP.
28071         * lib/poll.c (poll): Always set timeout before wait_timeout is
28072         computed.
28073
28074 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28075
28076         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28077         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28078         rmdir ("dir/.//"), unlinkat.
28079
28080 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28081
28082         stdbool: avoid spurious failure with modern xlc
28083         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28084
28085 2010-08-24  Bruno Haible  <bruno@clisp.org>
28086
28087         getloadavg: simplify code
28088         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28089         gl_have_func. Update comments.
28090
28091 2010-08-24  Eric Blake  <eblake@redhat.com>
28092
28093         getloadavg: don't define SVR4 on cygwin
28094         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28095         only define SVR4 when -lkvm is required.
28096         Reported by Yaakov Selkowitz.
28097
28098 2010-08-24  Bruno Haible  <bruno@clisp.org>
28099
28100         priv-set: fix comment
28101         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28102
28103 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28104
28105         priv-set: fix comments
28106         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28107         to match code, as suggested by David Bartley in:
28108         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28109
28110 2010-08-23  Eric Blake  <eblake@redhat.com>
28111
28112         stdbool: avoid rejecting clang
28113         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28114         * tests/test-stdbool.c: Enable more tests if using the system
28115         <stdbool.h> instead of the gnulib replacement.
28116         (main): Move xlc bug test to a runtime test for all compilers.
28117         Reported by Anders Kaseorg.
28118
28119         argz: fix shell quoting issue
28120         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28121         Reported by Charles Wilson.
28122
28123 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28124             Erik Faye-Lund <kusmabite@gmail.com>
28125
28126         poll, select: handle ERROR_BROKEN_PIPE.
28127         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28128         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28129         * lib/select.c (win32_compute_revents): Do not mark a pipe
28130         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28131
28132 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28133
28134         fts: allow compilation with C++
28135         * lib/fts_.h: Specify extern "C" linkage with C++.
28136
28137 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28138
28139         Fix gnulib-tool sed script de-commentation for AIX sed.
28140         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28141         sed.
28142
28143 2010-08-17  Eric Blake  <eblake@redhat.com>
28144
28145         test-stddef: test for (some) offsetof bugs
28146         * tests/test-stddef.c: Enhance test to ensure correct type of
28147         offsetof.
28148         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28149         that we are not fixing at this time.
28150
28151 2010-08-15  Bruno Haible  <bruno@clisp.org>
28152
28153         stpncpy: Allow stpncpy to be defined as a macro.
28154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28155         if it's already correctly declared.
28156         * lib/string.in.h (stpncpy): Undefine before redefining.
28157         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28158
28159 2010-08-14  Bruno Haible  <bruno@clisp.org>
28160
28161         Rename module 'memxfrm' to 'amemxfrm'.
28162         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28163         (amemxfrm): Renamed from memxfrm.
28164         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28165         (amemxfrm): Renamed from memxfrm.
28166         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28167         * NEWS: Mention the change.
28168         * MODULES.html.sh (String handling <string.h>): Update.
28169         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28170         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28171         * lib/unicase/u16-casexfrm.c: Likewise.
28172         * lib/unicase/u32-casexfrm.c: Likewise.
28173         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28174         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28175         * lib/uninorm/u16-normxfrm.c: Likewise.
28176         * lib/uninorm/u32-normxfrm.c: Likewise.
28177         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28178         memxfrm.
28179         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28180         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28181         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28182         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28183         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28184         Suggested by Paul Eggert.
28185
28186 2010-08-14  Bruno Haible  <bruno@clisp.org>
28187
28188         Tests for module 'astrxfrm'.
28189         * modules/astrxfrm-tests: New file.
28190         * tests/test-astrxfrm.c: New file.
28191
28192         New module 'astrxfrm'.
28193         * lib/astrxfrm.h: New file.
28194         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28195         * modules/astrxfrm: New file.
28196
28197 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28198
28199         regex: Tweak doc.
28200         * doc/regex.texi (Overview): Don't mention regex.c.
28201         (GNU Regular Expression Compiling): Likewise.
28202         (Match-end-of-line Operator): Mention 'not_eol'.
28203
28204 2010-08-14  Brian Gough  <bjg@gnu.org>
28205             Bruno Haible  <bruno@clisp.org>
28206
28207         git-merge-changelog: add doc relating to use with bzr and hg.
28208         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28209
28210 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28211
28212         pthread: fix pthread.h creation for srcdir != builddir
28213         * modules/pthread (Makefile.am): Fix the rule to work also in a
28214         non-srcdir build.
28215
28216 2010-08-13  Karl Berry  <karl@gnu.org>
28217
28218         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28219         * doc/posix-*/*: force line break before @url of POSIX
28220         specifications.
28221         Suggested by Werner Lemberg.
28222
28223 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28224
28225         strtod: fix const diagnostic
28226         * lib/strtod.c (strtod): Don't assign const char * to char *,
28227         as this elicits a warning from GCC when warnings are enabled.
28228
28229 2010-08-10  Pádraig Brady <P@draigbrady.com>
28230         and Eric Blake  <eblake@redhat.com>
28231
28232         copy-acl: ignore ENOTSUP on HP-UX
28233         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28234         so that it is available for HP-UX.
28235         * lib/copy-acl.c (qcopy_acl): Use it.
28236         Reported by Patrick M. Callahan.
28237
28238 2010-08-10  Eric Blake  <eblake@redhat.com>
28239
28240         open, chown: relax license
28241         * modules/open (License): Change to LGPLv2+, with consent by all
28242         authors, for use in augeas.
28243         * modules/chown (License): Likewise.
28244         * modules/lchown (Likewise): Likewise.
28245         Requested by Adam Stokes.
28246
28247 2010-08-09  Karl Berry  <karl@gnu.org>
28248
28249         * build-aux/ar-lib: new file, import from Automake.
28250         * config/srclist.txt: autocheck for updates.
28251
28252 2010-08-09  Eric Blake  <eblake@redhat.com>
28253
28254         readlinkat: adjust client modules
28255         * modules/areadlinkat (Depends-on): Use readlinkat, not
28256         symlinkat.
28257         * modules/areadlinkat-with-size (Depends-on): Likewise.
28258
28259         mknod: be more vocal about danger of running tests as root
28260         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28261         root, since that is just asking for problems.
28262         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28263
28264         readlinkat: split into its own module
28265         * modules/symlinkat: Split readlinkat...
28266         * modules/readlinkat: ...into separate module.
28267         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28268         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28269         * lib/symlinkat.c (readlinkat): Move...
28270         * lib/readlinkat.c: ...into new file.
28271         * modules/symlinkat-tests: Split readlinkat test...
28272         * modules/readlinkat-tests: ...into separate module.
28273         * tests/test-symlinkat.c: Split...
28274         * tests/test-readlinkat.c: ...into new file.
28275         * NEWS: Document the split.
28276         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28277         * lib/unistd.in.h (readlinkat): Likewise.
28278         Suggested by Bruno Haible.
28279
28280 2010-08-08  Bruno Haible  <bruno@clisp.org>
28281
28282         memxfrm: Speed up.
28283         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28284         that usually only one call to strxfrm is necessary for each string
28285         part.
28286         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28287
28288 2010-08-07  Karl Berry  <karl@gnu.org>
28289
28290         * doc/posix-headers/limits.texi,
28291         * doc/posix-functions/malloc.texi,
28292         * doc/posix-functions/strsignal.texi: missing @item.
28293         * doc/ld-version-script.texi: spurious leading i.
28294         * doc/regex.texi (Interval Operators): no commas inside @var.
28295
28296 2010-08-01  Bruno Haible  <bruno@clisp.org>
28297
28298         Integrate the regex documentation.
28299         * doc/gnulib.texi: Define 'cn' index.
28300         (Regular expressions): New a chapter that includes regex.texi and
28301         regexprops-generic.texi.
28302         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28303         syntax.
28304
28305         Whitespace cleanup.
28306         * doc/regex.texi: Remove trailing spaces.
28307
28308         Add regex documentation.
28309         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28310         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28311         Written by Kathy A. Hargreaves and Karl Berry.
28312
28313 2010-08-01  Bruno Haible  <bruno@clisp.org>
28314
28315         link: Update documentation.
28316         * doc/posix-functions/link.texi: Update regarding Solaris.
28317
28318 2010-07-31  Bruno Haible  <bruno@clisp.org>
28319
28320         Update modules list.
28321         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28322         (String handling <string.h>): Add memcmp2, memxfrm.
28323         (Container data structures): Add xlist, xsublist, xoset.
28324         (Core language properties): Add alignof, unused-parameter.
28325         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28326         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28327         (Unibyte characters <ctype.h>): New section.
28328         (String handling <string.h>): New section.
28329         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28330         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28331         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28332         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28333         tan, tanh, tanl, y0, y1, yn.
28334         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28335         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28336         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28337         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28338         unlockpt, vdprintf, vdprintf-posix.
28339         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28340         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28341         xconcat-filename.
28342         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28343         getdtablesize, pipe2, pipe2-safer.
28344         (Security): New section.
28345         (Networking functions): Add accept4.
28346         (Signal handling): Add sigpipe.
28347         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28348         mbmemcasecoll.
28349         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28350         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28351         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28352         pipe-filter-ii.
28353         (Misc): Add argp-version-etc, login_tty, parse-duration.
28354
28355 2010-07-31  Bruno Haible  <bruno@clisp.org>
28356
28357         Improve doc in MODULES.html.
28358         * modules/linkat (Description): Add the word "function".
28359         * modules/mkfifo (Description): Likewise.
28360         * modules/mknod (Description): Likewise.
28361         * modules/remove (Description): Likewise.
28362         * modules/renameat (Description): Likewise.
28363         * modules/stat (Description): Likewise.
28364         * modules/symlink (Description): Likewise.
28365         * modules/unlink (Description): Likewise.
28366
28367 2010-07-31  Bruno Haible  <bruno@clisp.org>
28368
28369         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28370         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28371         option --enable/disable-c++ instead of --enable/disable-cxx.
28372         * NEWS: Mention the change.
28373
28374 2010-07-31  Bruno Haible  <bruno@clisp.org>
28375
28376         readlink, areadlink: Relax test a bit.
28377         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28378         alternative to ENOTDIR.
28379         * tests/test-areadlink.h (test_areadlink): Likewise.
28380         Reported by Rainer Tammer.
28381
28382 2010-07-31  Bruno Haible  <bruno@clisp.org>
28383
28384         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28385         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28386         character, perform the search using U_STRCHR.
28387         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28388         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28389         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28390         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28391         Suggested by Paolo Bonzini.
28392
28393 2010-07-31  Bruno Haible  <bruno@clisp.org>
28394
28395         unistr/u*-strstr: Fix dependencies.
28396         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28397         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28398         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28399
28400 2010-07-31  Bruno Haible  <bruno@clisp.org>
28401
28402         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28403         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28404         the beginning of the loop.
28405         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28406         cases in 'switch' statement.
28407
28408         unistr/u8-strchr: Fix several bugs.
28409         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28410         the string. When not found, return NULL, not a pointer near the end.
28411
28412         More tests for unistr/u8-strchr.
28413         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28414         that the function does not read past the first occurrence of the byte
28415         being searched.
28416         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28417         * tests/unistr/test-u16-strchr.c (main): New function.
28418         * tests/unistr/test-u32-strchr.c (main): New function.
28419
28420 2010-07-31  Bruno Haible  <bruno@clisp.org>
28421
28422         posix-modules: Ignore backup files of documentation files.
28423         * posix-modules: grep only through files named *.texi.
28424
28425 2010-07-31  Bruno Haible  <bruno@clisp.org>
28426
28427         symlinkat: Fix documentation.
28428         * doc/posix-functions/readlinkat.texi: Fix module name.
28429
28430 2010-07-31  Bruno Haible  <bruno@clisp.org>
28431
28432         fchownat: Replace also when chown has the trailing slash bug.
28433         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28434         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28435         introduced on 2010-04-10.
28436         Reported by Rainer Tammer.
28437
28438 2010-07-31  Bruno Haible  <bruno@clisp.org>
28439
28440         linkat: Work around AIX 7.1 bug.
28441         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28442         whether linkat handles trailing slash correctly. If not, replace linkat
28443         and define LINKAT_TRAILING_SLASH_BUG.
28444         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28445         check whether (fd1,file1) points to a directory if file1 or file2 ends
28446         in a slash. Code taken from lib/link.c.
28447         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28448         Reported by Rainer Tammer.
28449
28450 2010-07-31  Bruno Haible  <bruno@clisp.org>
28451
28452         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28453         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28454         This disables an xlc optimization that was causing wrong test results.
28455         Reported by Rainer Tammer.
28456
28457 2010-07-31  Bruno Haible  <bruno@clisp.org>
28458
28459         iconv: Work around AIX 6.1..7.1 bug.
28460         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28461         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28462         cross-compiling, guess no on all versions of AIX.
28463         Reported by Rainer Tammer.
28464
28465 2010-07-31  Bruno Haible  <bruno@clisp.org>
28466
28467         readlink: Relax test a bit.
28468         * tests/test-readlink.h (test_readlink): Allow different errno value
28469         when readlink is called with a file name that ends in / and refers to
28470         a file.
28471         Suggested by Eric Blake.
28472         Reported by Rainer Tammer.
28473
28474 2010-07-31  Bruno Haible  <bruno@clisp.org>
28475
28476         copysign: Does not require -lm on glibc systems.
28477         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28478         gl_COMMON_DOUBLE_MATHFUNC.
28479         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28480
28481 2010-07-31  Bruno Haible  <bruno@clisp.org>
28482
28483         duplocale: Work around AIX 7.1 bug.
28484         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28485         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28486         * lib/duplocale.c (rpl_duplocale): Update comment.
28487         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28488         Reported by Rainer Tammer.
28489
28490 2010-07-30  Bruno Haible  <bruno@clisp.org>
28491
28492         dirfd: Avoid link error on AIX 7.1.
28493         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28494         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28495         exist, set REPLACE_DIRFD.
28496         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28497         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28498         * doc/posix-functions/dirfd.texi: Update.
28499         Reported by Rainer Tammer.
28500
28501 2010-07-30  Eric Blake  <eblake@redhat.com>
28502
28503         strtod: next round of AIX fixes
28504         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28505         exponent.
28506         * tests/test-strtod.c (main): Enhance tests.
28507         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28508         Reported by Rainer Tammer.
28509
28510         futimens: fix configure check
28511         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28512         Reported by Bruno Haible.
28513
28514 2010-07-30  Bruno Haible  <bruno@clisp.org>
28515
28516         getline: Update regarding AIX.
28517         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28518         Reported by Rainer Tammer.
28519
28520 2010-07-30  Bruno Haible  <bruno@clisp.org>
28521
28522         wcwidth: Drop replacement on AIX 7.
28523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28524         AIX 7.
28525         Reported by Rainer Tammer.
28526
28527 2010-07-30  Bruno Haible  <bruno@clisp.org>
28528
28529         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28530         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28531         a 'char *'.
28532         Reported by Rainer Tammer.
28533
28534 2010-07-30  Bruno Haible  <bruno@clisp.org>
28535
28536         unlink: Update regarding AIX.
28537         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28538         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28539         Reported by Rainer Tammer.
28540
28541 2010-07-30  Bruno Haible  <bruno@clisp.org>
28542
28543         symlink: Update regarding AIX.
28544         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28545         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28546         Reported by Rainer Tammer.
28547
28548 2010-07-30  Bruno Haible  <bruno@clisp.org>
28549
28550         strndup: Update regarding AIX.
28551         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28552         AIX 7.
28553         Reported by Rainer Tammer.
28554
28555 2010-07-30  Bruno Haible  <bruno@clisp.org>
28556
28557         stat: Update regarding AIX.
28558         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28559         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28560         Reported by Rainer Tammer.
28561
28562 2010-07-30  Bruno Haible  <bruno@clisp.org>
28563
28564         truncl: Fix autoconf test.
28565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28566         whether truncl works.
28567         Reported by Rainer Tammer.
28568
28569 2010-07-30  Bruno Haible  <bruno@clisp.org>
28570
28571         round: Update regarding AIX.
28572         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28573         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28574         Reported by Rainer Tammer.
28575
28576 2010-07-30  Bruno Haible  <bruno@clisp.org>
28577
28578         rename: Update regarding AIX.
28579         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28580         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28581         Reported by Rainer Tammer.
28582
28583 2010-07-30  Bruno Haible  <bruno@clisp.org>
28584
28585         printf.m4: Update regarding AIX.
28586         * m4/printf.m4: Update comments regarding AIX.
28587         Reported by Rainer Tammer.
28588
28589 2010-07-30  Bruno Haible  <bruno@clisp.org>
28590
28591         iconv: Update regarding AIX.
28592         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28593         AIX 7.
28594         Reported by Rainer Tammer.
28595
28596 2010-07-30  Bruno Haible  <bruno@clisp.org>
28597
28598         getopt: Update regarding AIX.
28599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28600         no on AIX.
28601         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28602         Reported by Rainer Tammer.
28603
28604 2010-07-30  Bruno Haible  <bruno@clisp.org>
28605
28606         ldexpl; Update regarding AIX.
28607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28608         on AIX 7.
28609         Reported by Rainer Tammer.
28610
28611 2010-07-30  Bruno Haible  <bruno@clisp.org>
28612
28613         frexpl: Update regarding AIX.
28614         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28615         on AIX 7.
28616         Reported by Rainer Tammer.
28617
28618 2010-07-30  Bruno Haible  <bruno@clisp.org>
28619
28620         open, fopen: Update regarding AIX.
28621         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28622         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28623         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28624         * doc/posix-functions/fopen.texi: Likewise.
28625         Reported by Rainer Tammer.
28626
28627 2010-07-30  Bruno Haible  <bruno@clisp.org>
28628
28629         chown: Update doc regarding AIX.
28630         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28631         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28632         Reported by Rainer Tammer.
28633
28634 2010-07-30  Eric Blake  <eblake@redhat.com>
28635
28636         strtod: fix bug in replacement function on AIX
28637         * lib/strtod.c (strtod): Special case broken "0x" parse in
28638         underlying strtod.
28639         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28640         * doc/posix-functions/strtod.texi (strtod): Likewise.
28641         Reported by Rainer Tammer.
28642
28643 2010-07-30  Bruno Haible  <bruno@clisp.org>
28644
28645         mbrlen: Fix cross-compilation guess for AIX.
28646         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28647         guess. Leftover from 2008-12-22.
28648
28649 2010-07-30  Bruno Haible  <bruno@clisp.org>
28650
28651         mbrtowc: Fix cross-compilation guess for AIX.
28652         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28653         guess. Leftover from 2008-12-21.
28654
28655 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28656
28657         init.sh: work around trap limitation of some shells
28658         * tests/init.sh (setup_): Move exit trap outside of shell function.
28659
28660 2010-07-29  Eric Blake  <eblake@redhat.com>
28661
28662         strtod: aid debugging
28663         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28664         understanding why strtod is rejected.
28665
28666 2010-07-28  Bruno Haible  <bruno@clisp.org>
28667
28668         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28669         * lib/unistr/u8-chr.c: Include <string.h>.
28670         * tests/unistr/test-u8-chr.c: Likewise.
28671         * tests/unistr/test-u16-chr.c: Likewise.
28672         * tests/unistr/test-u32-chr.c: Likewise.
28673         * tests/unistr/test-u8-strchr.c: Likewise.
28674         * tests/unistr/test-u16-strchr.c: Likewise.
28675         * tests/unistr/test-u32-strchr.c: Likewise.
28676         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28677         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28678         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28679         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28680
28681 2010-07-28  Bruno Haible  <bruno@clisp.org>
28682
28683         Use spaces for indentation, not tabs.
28684         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28685
28686 2010-07-27  Bruno Haible  <bruno@clisp.org>
28687
28688         mbspcasecmp: Fix function specification.
28689         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28690         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28691         Reported by Eric Blake <eblake@redhat.com>.
28692
28693 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28694
28695         timespec: use cast and not conditional, as truncation isn't possible
28696         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28697         instead of a conditional.  Comment about the situation in more detail.
28698         This undoes most of the 2009-10-29 patch.
28699
28700 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28701
28702         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28703         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28704         * lib/unistr/u8-strchr.c: Likewise.
28705         * modules/unistr/u8-chr: Depend on memchr.
28706
28707         unistr/u*-strchr: add tests
28708         * modules/unistr/u8-strchr-tests: New file.
28709         * modules/unistr/u16-strchr-tests: New file.
28710         * modules/unistr/u32-strchr-tests: New file.
28711         * tests/unistr/test-strchr.h: New file.
28712         * tests/unistr/test-u8-strchr.c: New file.
28713         * tests/unistr/test-u16-strchr.c: New file.
28714         * tests/unistr/test-u32-strchr.c: New file.
28715
28716         unistr/u*-chr: test multibyte sequences more
28717         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28718         test vector.
28719         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28720         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28721         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28722
28723         unistr/u*-chr: test multibyte sequences
28724         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28725
28726         unistr/u*-chr: prepare for multibyte tests
28727         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28728         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28729         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28730         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28731         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28732         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28733
28734 2010-07-18  Bruno Haible  <bruno@clisp.org>
28735
28736         unistr/u8-strchr: Optimize non-ASCII argument case.
28737         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28738         because the first byte often matches anyway.
28739         Reported by Pádraig Brady <P@draigbrady.com>.
28740
28741 2010-07-15  Karl Berry  <karl@gnu.org>
28742
28743         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28744
28745 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28746
28747         getcwd: on Solaris, work better if ancestors are inaccessible
28748         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28749         buffer and size, try again with a large buffer.  This works better
28750         on Solaris, since its getcwd succeeds even if the path to the root
28751         is inaccessible, and this is helpful in common cases such as .zfs
28752         hidden directories.  Problem reported by J Chapman Flack in
28753         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28754         Use system getcwd if it's declared, not merely if it's partly
28755         working; use the partly-working test only to avoid needless effort
28756         if the system getcwd fails.
28757         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28758         comment that was already obsolete and is now even more obsolete.
28759         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28760         now might call strdup.
28761
28762 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28763
28764         pthread: Add enough so that coreutils/src/sort.c compiles.
28765         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28766         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28767         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28768         Include <sys/types.h>, in case it defines pthread_t.
28769         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28770         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28771         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28772         (pthread_rwlockattr_t, pthread_spinlock_t):
28773         New typedefs, if HAVE_PTHREAD_T is not defined.
28774         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28775         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28776         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28777         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28778         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28779         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28780         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28781         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28782         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28783         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28784         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28785         New macros.
28786         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28787         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28788         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28789         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28790         (pthread_spin_unlock): New dummy functions.
28791         (pthread_create): Return EAGAIN; don't set errno.
28792         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28793         require AC_C_INLINE.
28794         * modules/pthread (Depends-on): Add sched, time.
28795         (pthread.h): Use AM_V_GEN.
28796
28797 2010-07-13  Bruno Haible  <bruno@clisp.org>
28798
28799         striconveh: Don't malloc memory if the result buffer is sufficient.
28800         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28801         buffer if its size is sufficient.
28802         Reported by Ludovic Courtès <ludo@gnu.org>.
28803
28804 2010-07-13  Bruno Haible  <bruno@clisp.org>
28805
28806         strtod: Add safety check.
28807         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28808
28809 2010-07-12  Bruno Haible  <bruno@clisp.org>
28810
28811         Unify tests that set gl_cv_func_ldexpl_no_libm.
28812         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28813         gl_FUNC_LDEXPL.
28814         (gl_FUNC_LDEXPL): Invoke it.
28815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28816
28817 2010-07-12  Bruno Haible  <bruno@clisp.org>
28818
28819         Unify tests that set gl_cv_func_ldexp_no_libm.
28820         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
28821         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
28822         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
28823         (configure.ac): Simply invoke gl_FUNC_LDEXP.
28824         * modules/strtod (Files): Add m4/ldexp.m4.
28825
28826 2010-07-12  Bruno Haible  <bruno@clisp.org>
28827
28828         Unify tests that set gl_cv_func_frexpl_no_libm.
28829         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
28830         gl_FUNC_FREXPL_NO_LIBM.
28831         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
28832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28833
28834 2010-07-12  Bruno Haible  <bruno@clisp.org>
28835
28836         Unify tests that set gl_cv_func_frexp_no_libm.
28837         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
28838         gl_FUNC_FREXP_NO_LIBM.
28839         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
28840         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28841
28842 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28843
28844         memcoll: clarify sizes versus lengths, document better, and tweak perf
28845         * lib/memcoll.c (strcoll_loop, memcoll0):
28846         Improve quality of descriptive comments.  Name variables
28847         consistently as to whether they are lengths (which do not include
28848         terminating null) versus sizes (which do).
28849         * lib/xmemcoll.c (xmemcoll0): Likewise.
28850         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
28851         returned when s1size == 0; this is easier to compile and saves
28852         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
28853
28854 2010-07-12  Bruno Haible  <bruno@clisp.org>
28855
28856         Tests for module '_Exit'.
28857         * modules/_Exit-tests: New file.
28858         * tests/test-_Exit.sh: New file.
28859         * tests/test-_Exit.c: New file.
28860
28861         New module '_Exit'.
28862         * lib/stdlib.in.h (__attribute__): New macro.
28863         (_Exit): New declaration.
28864         * lib/_Exit.c: New file.
28865         * m4/_Exit.m4: New file.
28866         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
28867         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
28868         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
28869         * modules/_Exit: New file.
28870         * tests/test-stdlib-c++.cc (_Exit): Check signature.
28871         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
28872
28873 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
28874
28875         strtod: make it more-accurate typically, and don't require libm
28876         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
28877         Include limits.h.  Don't include string.h.
28878         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
28879         (locale_isspace): New function, so that no casts are needed to
28880         check whether *s is a space.
28881         (ldexp): Provide an unused dummy if not available.
28882         (scale_radix_exp, parse_number, underlying_strtod): New functions.
28883         (strtod): Use them.  This implementation prefers to use the
28884         underlying strtod if available, falling back on our own code
28885         only to fix known bugs.  This is more likely to produce an
28886         accurate result.  Also, it avoids the use of libm functions.
28887         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
28888         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
28889         was absent, but it caused a test failure with coreutils.
28890         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
28891         with libm.
28892         * modules/strtod (Makefile.am, Link): libm is no longer needed.
28893         * modules/strtod-tests (Makefile.am): Likewise.
28894
28895 2010-07-11  Pádraig Brady  <P@draigBrady.com>
28896             Bruno Haible  <bruno@clisp.org>
28897
28898         unistr/u8-strchr: Optimize ASCII argument case.
28899         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
28900
28901 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
28902
28903         (x)memcoll: minor tweaks
28904         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
28905         is after the type that it qualifies.
28906         (memcoll0): Likewise.
28907         * lib/memcoll.h (memcoll0): Likewise.
28908         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
28909         * lib/xmemcoll.h (xmemcoll0): Likewise.
28910         * lib/memcoll.c (memcoll0): Correct the comment.  This function
28911         differs from memcoll in that the NUL byte is part of the argument.
28912         Omit the abort-checks, as performance is a real issue here.  Plus,
28913         the checks were wrong anyway (an off-by-one error).  Omit local
28914         variable 'diff', as it's a bit clearer that way.
28915         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
28916         no longer needed.
28917
28918 2010-07-08  Chen Guo <chenguo4@yahoo.com>
28919
28920         (x)memcoll: speedup when input is known to be NUL delimited
28921         * lib/memcoll.c: Include stdlib.
28922         (memcoll0): New function.
28923         (strcoll_loop): New function, refactored for use in both memcoll
28924         and memcoll0.
28925         * lib/memcoll.h (memcoll0): Add prototype.
28926         * lib/xmemcoll.c (xmemcoll0): New function.
28927         (collate_error): New function, refactored for use in both xmemcoll
28928         and xmemcoll0.
28929         * lib/xmemcoll.h (xmemcoll0): Add prototype.
28930         * m4/memcoll.m4: add inline invocation.
28931
28932 2010-07-06  Pádraig Brady  <P@draigBrady.com>
28933
28934         * build-aux/bootstrap: Remove any local translations
28935         from the translation project synchronization directory,
28936         so that local only translations are not distributed.
28937
28938 2010-07-04  Bruno Haible  <bruno@clisp.org>
28939
28940         fsusage: Clarify which code applies to which platforms.
28941         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
28942         platform.
28943         * lib/fsusage.c (get_fs_usage): Likewise.
28944
28945 2010-07-04  Bruno Haible  <bruno@clisp.org>
28946
28947         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
28948         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28949         Reported by Martin Lambers <marlam@marlam.de>.
28950
28951 2010-07-04  Jim Meyering  <meyering@redhat.com>
28952
28953         hash: once again explicitly disallow insertion of NULL
28954         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28955         inserting a NULL pointer cannot work with these functions.
28956         Add a comment with details.
28957         This reverts part of the 2010-07-01 commit, 5bef1a35
28958         "hash: extend module to deal with non-pointer keys".
28959
28960 2010-07-01  Bruno Haible  <bruno@clisp.org>
28961
28962         stdbool: Update doc.
28963         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28964         Info from Christian Weisgerber <naddy@mips.inka.de>.
28965
28966 2010-07-01  Jim Meyering  <meyering@redhat.com>
28967
28968         hash: extend module to deal with non-pointer keys
28969         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28970         but that allows insertion of non-pointer entries.
28971         Do not disallow an ENTRY value of NULL.
28972         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28973         * lib/hash.h (hash_insert0): Declare.
28974
28975 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28976
28977         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28978         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28979         not present (i.e. with autoconf 2.59 and when using gettextize, not
28980         gnulib), require AC_GNU_SOURCE instead.
28981
28982 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28983
28984         idpriv-drop: Fix tests.
28985         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28986         not to the test-idpriv-droptemp program.
28987
28988 2010-06-29  Bruno Haible  <bruno@clisp.org>
28989
28990         string: Fix syntax error with g++ 2.96.
28991         * lib/string.in.h (__pure__): Remove definition.
28992         (_GL_ATTRIBUTE_PURE): New macro.
28993         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28994         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28995         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28996
28997 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28998
28999         unitypes: Fix bug introduced on 2010-05-18.
29000         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29001
29002 2010-06-22  Eric Blake  <eblake@redhat.com>
29003
29004         memmem: slight optimization
29005         * lib/str-two-way.h (critical_factorization): Update comments.
29006         Reduce work during factorization phase.
29007         Reported by Carlos Bueno <carlos@bueno.org>.
29008
29009 2010-06-21  Bruno Haible  <bruno@clisp.org>
29010
29011         Fix HAVE_CALLOC_POSIX misnomer.
29012         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29013         !HAVE_CALLOC_POSIX.
29014         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29015         HAVE_CALLOC_POSIX.
29016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29017         instead of HAVE_CALLOC_POSIX.
29018         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29019         HAVE_CALLOC_POSIX.
29020
29021         Use modern idiom for calloc() replacement.
29022         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29023         AC_FUNC_CALLOC.
29024         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29025         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29026         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29027         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29028         (gl_REPLACE_CALLOC): New macro.
29029
29030 2010-06-21  Bruno Haible  <bruno@clisp.org>
29031
29032         Fix HAVE_REALLOC_POSIX misnomer.
29033         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29034         !HAVE_REALLOC_POSIX.
29035         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29036         HAVE_REALLOC_POSIX.
29037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29038         instead of HAVE_REALLOC_POSIX.
29039         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29040         HAVE_REALLOC_POSIX.
29041
29042         Use modern idiom for realloc() replacement.
29043         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29044         AC_FUNC_REALLOC.
29045         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29046         Autoconf's AC_FUNC_REALLOC.
29047         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29048         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29049         (gl_REPLACE_REALLOC): New macro.
29050         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29051
29052 2010-06-21  Bruno Haible  <bruno@clisp.org>
29053
29054         Fix HAVE_MALLOC_POSIX misnomer.
29055         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29056         !HAVE_MALLOC_POSIX.
29057         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29058         HAVE_MALLOC_POSIX.
29059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29060         instead of HAVE_MALLOC_POSIX.
29061         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29062         HAVE_MALLOC_POSIX.
29063
29064         Use modern idiom for malloc() replacement.
29065         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29066         AC_FUNC_MALLOC.
29067         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29068         Autoconf's AC_FUNC_MALLOC.
29069         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29070         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29071         (gl_REPLACE_MALLOC): New macro.
29072         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29073
29074 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29075
29076         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29077         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29078         This macro takes 3 arguments, not 4.
29079
29080 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29081
29082         ipv6: fix detection under mingw
29083         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29084         in6_addr.
29085
29086 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29087
29088         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29089         that strtod() works when cross-compiling to a glibc version known
29090         to work.
29091
29092 2010-06-15  Bruno Haible  <bruno@clisp.org>
29093
29094         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29095
29096 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29097
29098         select: Correct timeout.
29099         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29100
29101 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29102
29103         git-version-gen: init shell var to avoid env var influence
29104         * build-aux/git-version-gen (v): Init shell var to empty.
29105
29106 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29107
29108         priv-set: Don't assume that priv.h exists merely because getppriv does.
29109         See Jan Andersen's bug report about AIX 5L in
29110         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29111         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29112         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29113         * lib/priv-set.h: Likewise.
29114         * tests/test-priv-set.c: Likewise.
29115
29116 2010-06-13  Bruno Haible  <bruno@clisp.org>
29117
29118         relocatable: Make it easier to test whether to install wrappers.
29119         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29120         RELOCATABLE_VIA_WRAPPER.
29121
29122 2010-06-13  Bruno Haible  <bruno@clisp.org>
29123
29124         gnulib-tool: Display specified modules and dependencies differently.
29125         * gnulib-tool (func_show_module_list): New function.
29126         (func_import, func_create_testdir): Invoke it.
29127         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29128
29129 2010-06-13  Bruno Haible  <bruno@clisp.org>
29130
29131         gnulib-tool: Align code of func_import and func_create_testdir.
29132         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29133         specified_modules.
29134
29135 2010-06-12  Jim Meyering  <meyering@redhat.com>
29136
29137         test-inttostr: avoid spurious failure on Solaris 9
29138         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29139         to accept "%ju".  Reported by Bruno Haible.
29140
29141 2010-06-11  Jim Meyering  <meyering@redhat.com>
29142
29143         test-sys_socket: mark variables as used more readably
29144         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29145         as "used" explicitly via (void) statement casts.  This is more
29146         readable than using them in an artificial return expression.
29147         Suggestion from Bruno Haible.
29148
29149 2010-06-11  Bruno Haible  <bruno@clisp.org>
29150
29151         Avoid some more warnings from "gcc -Wwrite-strings".
29152         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29153         to 'const char *'.
29154         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29155         * tests/test-c-strcasestr.c (main): Likewise.
29156         * tests/test-mbscasestr1.c (main): Likewise.
29157         * tests/test-mbscasestr2.c (main): Likewise.
29158         * tests/test-memmem.c (main): Likewise.
29159         * tests/test-strstr.c (main): Likewise.
29160         * tests/test-strcasestr.c (main): Likewise.
29161
29162 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29163
29164         init.sh: change framework_failure_ to fail with status 99, not 1
29165         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29166         automake's parallel-tests rule that this is an unexpected failure,
29167         even if the test is listed in XFAIL_TESTS.
29168
29169 2010-06-11  Jim Meyering  <meyering@redhat.com>
29170
29171         test-inttostr: avoid warnings about 4-6KB literal strings
29172         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29173         Include "macros.h", for its definition of ASSERT.
29174         (CK): s/assert/ASSERT/
29175         * modules/inttostr-tests (Files): Add macros.h.
29176
29177         init.sh: don't use $ME_ or skip_ before they are defined
29178         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29179         their first uses.  Also hoist their companions: warn_, fail_,
29180         framework_failure_, $stderr_fileno.  Prompted by a patch from
29181         Stefano Lattarini.
29182
29183         test-sys_socket: avoid set-but-not-used warnings from gcc
29184         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29185         avoid warning about set-but-not-used variables.
29186
29187         test-xvasprintf: avoid 'const' discard warnings
29188         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29189         "const" when assigning from literal strings.
29190         (test_xasprintf): Add "void" in function argument list to placate
29191         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29192
29193         tests: avoid compilation warnings in argmatch and exclude tests...
29194         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29195         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29196         Since it always exits, declare with the "noreturn" attribute.
29197         * tests/test-argmatch.c: Likewise.
29198
29199         tests: avoid 'const' discard warnings in mbsstr tests
29200         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29201         * tests/test-mbsstr2.c (main): Likewise.
29202
29203         test-verify: avoid warning from gcc's -Wmissing-declarations
29204         * tests/test-verify.c (function): Declare to be static.
29205
29206         test-inttostr.c: include <string.h> for use of strcmp
29207         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29208
29209         test-linkat: avoid failed assertion on "other" architectures
29210         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29211         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29212         sparc: https://bugs.launchpad.net/bugs/591968
29213
29214 2010-06-11  Jim Meyering  <meyering@redhat.com>
29215
29216         printf.m4: avoid autoconf's "Expanded Before Required" warning
29217         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29218         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29219         autoconf warning.
29220
29221 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29222
29223         Replacement header templates are now named with ".in", not "_".
29224         * doc/gnulib-intro.texi: Correct.
29225
29226 2010-06-10  Jim Meyering  <meyering@redhat.com>
29227
29228         inttostr-tests: depend on snprintf, not snprintf-posix
29229         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29230         snprintf-posix, to avoid this aclocal failure:
29231           missing file gnulib-tests/vasnprintf.c
29232           configure.ac:45: error: expected source file, required through \
29233           AC_LIBSOURCES, not found
29234
29235 2010-06-10  Jim Meyering  <meyering@redhat.com>
29236
29237         inttostr: add a new function, inttostr, and tests
29238         The namesake function was not available.  The existence of the
29239         template file, inttostr.c makes its addition nontrivial.
29240         * lib/anytostr.c: Rename from inttostr.c.
29241         (anytostr): Rename from inttostr.
29242         * lib/inttostr.c: New file.
29243         * modules/inttostr (Files): Add anytostr.c.
29244         (Makefile.am): Set lib_SOURCES instead of ...
29245         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29246         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29247         * lib/offtostr.c: Likewise.
29248         * lib/uinttostr.c: Likewise.
29249         * lib/umaxtostr.c: Likewise.
29250         * modules/inttostr-tests: New file.
29251         * tests/test-inttostr.c: New file.  Test these functions.
29252
29253 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29254             Bruno Haible  <bruno@clisp.org>
29255
29256         Add "Extending Gnulib" chapter to manual.
29257         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29258         chapter.
29259         (Extending Gnulib): New chapter.
29260         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29261         chapter.
29262
29263 2010-06-09  Bruno Haible  <bruno@clisp.org>
29264
29265         Avoid relocwrapper link errors due to gnulib replacement functions.
29266         * lib/areadlink.c: Use the system's malloc, realloc functions.
29267         (areadlink): Set errno to ENOMEM explicitly.
29268         * modules/areadlink (Depends-on): Remove malloc-posix.
29269         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29270
29271 2010-06-09  Bruno Haible  <bruno@clisp.org>
29272
29273         Avoid relocwrapper link errors due to gnulib replacement functions.
29274         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29275         * lib/malloca.c: Likewise.
29276         * lib/relocatable.c: Likewise.
29277         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29278         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29279         * lib/setenv.c: Use the system's malloc, realloc functions.
29280         * lib/strerror.c: Use the system's sprintf function.
29281         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29282
29283 2010-06-04  Bruno Haible  <bruno@clisp.org>
29284
29285         Prefer documented low-level autoconf macro names.
29286         * m4/lib-link.m4: Use m4_translit instead of translit.
29287         * m4/environ.m4: Likewise.
29288         * m4/mathfunc.m4: Likewise.
29289         * m4/onceonly.m4: Likewise.
29290         * m4/stdint.m4: Likewise.
29291         Suggested by Eric Blake.
29292
29293 2010-06-04  Martin Lambers  <marlam@marlam.de>
29294             Bruno Haible  <bruno@clisp.org>
29295
29296         havelib: Allow library names with '+' characters.
29297         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29298         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29299
29300 2010-06-09  Bruno Haible  <bruno@clisp.org>
29301
29302         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29303         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29304         realloc failed.
29305
29306 2010-06-08  Peter Simons  <simons@cryp.to>
29307
29308         maint.mk: make the news-check rule more configurable
29309         * top/maint.mk (news-check-lines-spec): New variable.
29310         (news-check): Use "sed -n 1,10p" in place of "head".
29311
29312 2010-06-07  Jim Meyering  <meyering@redhat.com>
29313
29314         do-release-commit-and-tag: fix typo in --help
29315         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29316
29317         regex: avoid new dead-code warning with gcc-4.6.0
29318         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29319         if-block containing a while-loop.  It's been unused for at least
29320         5 years.
29321
29322 2010-06-05  Bruno Haible  <bruno@clisp.org>
29323
29324         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29325         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29326
29327 2010-06-04  Bruno Haible  <bruno@clisp.org>
29328
29329         Update to GNU gettext 0.18.1.
29330         * modules/gettext (configure.ac): Require gettext infrastructure from
29331         version 0.18.1.
29332
29333 2010-06-03  Bruno Haible  <bruno@clisp.org>
29334
29335         Don't use AC_LIBOBJ with file names in subdirectories.
29336         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29337         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29338         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29339         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29340         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29341         gl_LIBUNISTRING_LIBSOURCE.
29342         (Makefile.am): Augment lib_SOURCES here, conditionally.
29343         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29344
29345 2010-06-03  Bruno Haible  <bruno@clisp.org>
29346
29347         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29348         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29349         expansion does not end with a newline.
29350         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29351         unnecessary newline.
29352
29353 2010-06-03  Bruno Haible  <bruno@clisp.org>
29354
29355         Reduce dependencies.
29356         * tests/test-quotearg.h: New file, extracted from
29357         tests/test-quotearg.c.
29358         * tests/test-quotearg-simple.c: New file, extracted from
29359         tests/test-quotearg.c.
29360         * tests/test-quotearg.c: Don't include <ctype.h>.
29361         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29362         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29363         use_quote_double_quotes, use_quotearg_colon): Moved to
29364         tests/test-quotearg.h.
29365         (results_g, flag_results, custom_quotes, custom_results): Moved
29366         to tests/test-quotearg-simple.c.
29367         (main): Moved the part that does not depend on gettext to
29368         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29369         performed.
29370         * modules/quotearg-simple: New file.
29371         * modules/quotearg-simple-tests: New file.
29372         * modules/quotearg (Depends-on): Add quotearg-simple.
29373         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29374         (Files): Add tests/test-quotearg.h.
29375         Reported by Paolo Bonzini.
29376
29377 2010-06-03  Bruno Haible  <bruno@clisp.org>
29378
29379         Reduce dependencies.
29380         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29381
29382 2010-06-03  Bruno Haible  <bruno@clisp.org>
29383
29384         time: Undefine more broken macros.
29385         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29386         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29387         Reported by Eric Blake.
29388
29389 2010-06-03  Bruno Haible  <bruno@clisp.org>
29390
29391         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29392         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29393         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29394         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29395         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29396         Reported by Ludovic Courtès <ludo@gnu.org>.
29397
29398 2010-06-02  Eric Blake  <eblake@redhat.com>
29399
29400         time: work with mingw + pthreads-win32 library
29401         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29402         if timespec is defined only in pthread.h.
29403         * modules/time (Makefile.am): Substitute it.
29404         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29405         <pthread.h>, when needed.
29406         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29407         from the library.
29408
29409 2010-05-31  Bruno Haible  <bruno@clisp.org>
29410
29411         Avoid expanding two macros in the wrong order.
29412         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29413         gl_LIBUNISTRING if it is defined.
29414         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29415         autoconf >= 2.64.
29416         Reported by Ludovic Courtès <ludo@gnu.org>.
29417
29418 2010-05-27  Jim Meyering  <meyering@redhat.com>
29419
29420         maint.mk: also prohibit "#undef" of always-defined symbols
29421         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29422         Allow more than one space before the symbol name.
29423         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29424         the regexp uses alternation.
29425
29426 2010-05-26  Eric Blake  <eblake@redhat.com>
29427
29428         maint.mk: avoid echo -e
29429         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29430         Convert all uses of echo -* to printf.
29431         Reported by Matthias Bolte.
29432
29433 2010-05-25  Bruno Haible  <bruno@clisp.org>
29434
29435         Update to GNU gettext 0.18, part 2.
29436         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29437         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29438
29439 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29440
29441         Add missing include in test-pwrite.c.
29442         * tests/test-pwrite.c: Include string.h, for strcmp.
29443
29444 2010-05-24  Bruno Haible  <bruno@clisp.org>
29445
29446         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29447
29448 2010-05-24  Bruno Haible  <bruno@clisp.org>
29449
29450         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29451         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29452         iconveh_error argument.
29453         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29454         U_STRCONV_TO_LOCALE.
29455         * lib/unistr/u16-strcoll.c: Likewise.
29456         * lib/unistr/u32-strcoll.c: Likewise.
29457         * modules/unistr/u8-strcoll (Depends-on): Add
29458         uniconv/u8-strconv-to-enc, localcharset. Remove
29459         uniconv/u8-strconv-to-locale.
29460         (configure.ac): Bump version number.
29461         * modules/unistr/u16-strcoll (Depends-on): Add
29462         uniconv/u16-strconv-to-enc, localcharset. Remove
29463         uniconv/u16-strconv-to-locale.
29464         (configure.ac): Bump version number.
29465         * modules/unistr/u32-strcoll (Depends-on): Add
29466         uniconv/u32-strconv-to-enc, localcharset. Remove
29467         uniconv/u32-strconv-to-locale.
29468         (configure.ac): Bump version number.
29469
29470 2010-05-24  Bruno Haible  <bruno@clisp.org>
29471
29472         Avoid a test failure on NetBSD 5.0.
29473         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29474         an iconv() bug.
29475
29476 2010-05-24  Bruno Haible  <bruno@clisp.org>
29477
29478         Adjust #include directive style.
29479         * modules/regex (Includes): Recommend to write <regex.h>.
29480
29481 2010-05-24  Bruno Haible  <bruno@clisp.org>
29482
29483         regex: Don't require alloca.
29484         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29485         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29486         only inside if (0).
29487
29488 2010-05-23  Jim Meyering  <meyering@redhat.com>
29489
29490         test-renameat.c: include <sys/stat.h>
29491         * tests/test-renameat.c: Include <sys/stat.h>; required for
29492         definition of S_IS* macros.
29493
29494 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29495
29496         Update maintainer documentation for 'relocatable-prog' module.
29497         * doc/relocatable-maint.texi: Update.
29498         Comments by Bruno Haible.
29499
29500 2010-05-23  Bruno Haible  <bruno@clisp.org>
29501
29502         git-merge-changelog: Enable --split-merged-entry by default.
29503         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29504         (usage): Don't mention this option any more.
29505         Reported by Ralf Wildenhues.
29506
29507 2010-05-23  Jim Meyering  <meyering@redhat.com>
29508
29509         test-pwrite: do not leave behind a test file named "out"
29510         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29511         The trivial-looking use of init.sh is really necessary.
29512         It ensures that the temporary file, "out", is created in
29513         a temporary directory, and removed upon termination.
29514         * tests/test-pwrite.sh: Re-add file.
29515         * modules/pwrite-tests: Reference it.
29516
29517 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29518
29519         Fix output redirection buglet in init.sh.
29520         * tests/init.sh: Fix redirection of stderr.
29521
29522 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29523
29524         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29525
29526 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29527
29528         * modules/valgrind-tests: New file.
29529         * m4/valgrind-tests.m4: New file.
29530         * doc/valgrind-tests.texi: New file.
29531         * doc/gnulib.texi (Running self-tests under valgrind): New
29532         section.
29533
29534 2010-05-19  Bruno Haible  <bruno@clisp.org>
29535
29536         Clean up dead code in recent commit.
29537         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29538         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29539         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29540         Suggested by Paolo Bonzini.
29541
29542 2010-05-19  Bruno Haible  <bruno@clisp.org>
29543
29544         Avoid valgrind error reports from libunistring.
29545         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29546         * modules/libunistring (Files): Add it.
29547         * modules/libunistring-optional (Files): Likewise.
29548
29549 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29550             Bruno Haible  <bruno@clisp.org>
29551
29552         New module 'libunistring-optional'.
29553         * modules/libunistring-optional: New file.
29554         * m4/libunistring-base.m4: New file.
29555         * m4/libunistring-optional.m4: New file.
29556         * lib/unicase.in.h: Renamed from lib/unicase.h.
29557         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29558         * lib/unictype.in.h: Renamed from lib/unictype.h.
29559         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29560         * lib/uniname.in.h: Renamed from lib/uniname.h.
29561         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29562         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29563         * lib/unistr.in.h: Renamed from lib/unistr.h.
29564         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29565         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29566         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29567         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29568         gl_LIBUNISTRING. If the library was found, determine the installed
29569         version and set LIBUNISTRING_VERSION.
29570         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29571         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29572         handle a configuration option --with-included-libunistring.
29573         * modules/libunistring (Files): Add m4/absolute-header.m4.
29574         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29575         Add m4/libunistring-base.m4.
29576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29577         (Makefile.am): Build unicase.h from unicase.in.h.
29578         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29579         Add m4/libunistring-base.m4.
29580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29581         (Makefile.am): Build uniconv.h from uniconv.in.h.
29582         * modules/unictype/base (Files): Use unictype.in.h instead of
29583         unictype.h. Add m4/libunistring-base.m4.
29584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29585         (Makefile.am): Build unictype.h from unictype.in.h.
29586         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29587         Add m4/libunistring-base.m4.
29588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29589         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29590         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29591         Add m4/libunistring-base.m4.
29592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29593         (Makefile.am): Build uniname.h from uniname.in.h.
29594         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29595         Add m4/libunistring-base.m4.
29596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29597         (Makefile.am): Build uninorm.h from uninorm.in.h.
29598         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29599         unistdio.h. Add m4/libunistring-base.m4.
29600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29601         (Makefile.am): Build unistdio.h from unistdio.in.h.
29602         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29603         Add m4/libunistring-base.m4.
29604         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29605         (Makefile.am): Build unistr.h from unistr.in.h.
29606         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29607         Add m4/libunistring-base.m4.
29608         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29609         (Makefile.am): Build unitypes.h from unitypes.in.h.
29610         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29611         Add m4/libunistring-base.m4.
29612         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29613         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29614         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29615         uniwidth.h. Add m4/libunistring-base.m4.
29616         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29617         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29618         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29619         instead of augmenting lib_SOURCES.
29620         * modules/unicase/empty-suffix-context: Likewise.
29621         * modules/unicase/locale-language: Likewise.
29622         * modules/unicase/tolower: Likewise.
29623         * modules/unicase/totitle: Likewise.
29624         * modules/unicase/toupper: Likewise.
29625         * modules/unicase/u8-casecmp: Likewise.
29626         * modules/unicase/u8-casecoll: Likewise.
29627         * modules/unicase/u8-casefold: Likewise.
29628         * modules/unicase/u8-casexfrm: Likewise.
29629         * modules/unicase/u8-ct-casefold: Likewise.
29630         * modules/unicase/u8-ct-tolower: Likewise.
29631         * modules/unicase/u8-ct-totitle: Likewise.
29632         * modules/unicase/u8-ct-toupper: Likewise.
29633         * modules/unicase/u8-is-cased: Likewise.
29634         * modules/unicase/u8-is-casefolded: Likewise.
29635         * modules/unicase/u8-is-lowercase: Likewise.
29636         * modules/unicase/u8-is-titlecase: Likewise.
29637         * modules/unicase/u8-is-uppercase: Likewise.
29638         * modules/unicase/u8-prefix-context: Likewise.
29639         * modules/unicase/u8-suffix-context: Likewise.
29640         * modules/unicase/u8-tolower: Likewise.
29641         * modules/unicase/u8-totitle: Likewise.
29642         * modules/unicase/u8-toupper: Likewise.
29643         * modules/unicase/u16-casecmp: Likewise.
29644         * modules/unicase/u16-casecoll: Likewise.
29645         * modules/unicase/u16-casefold: Likewise.
29646         * modules/unicase/u16-casexfrm: Likewise.
29647         * modules/unicase/u16-ct-casefold: Likewise.
29648         * modules/unicase/u16-ct-tolower: Likewise.
29649         * modules/unicase/u16-ct-totitle: Likewise.
29650         * modules/unicase/u16-ct-toupper: Likewise.
29651         * modules/unicase/u16-is-cased: Likewise.
29652         * modules/unicase/u16-is-casefolded: Likewise.
29653         * modules/unicase/u16-is-lowercase: Likewise.
29654         * modules/unicase/u16-is-titlecase: Likewise.
29655         * modules/unicase/u16-is-uppercase: Likewise.
29656         * modules/unicase/u16-prefix-context: Likewise.
29657         * modules/unicase/u16-suffix-context: Likewise.
29658         * modules/unicase/u16-tolower: Likewise.
29659         * modules/unicase/u16-totitle: Likewise.
29660         * modules/unicase/u16-toupper: Likewise.
29661         * modules/unicase/u32-casecmp: Likewise.
29662         * modules/unicase/u32-casecoll: Likewise.
29663         * modules/unicase/u32-casefold: Likewise.
29664         * modules/unicase/u32-casexfrm: Likewise.
29665         * modules/unicase/u32-ct-casefold: Likewise.
29666         * modules/unicase/u32-ct-tolower: Likewise.
29667         * modules/unicase/u32-ct-totitle: Likewise.
29668         * modules/unicase/u32-ct-toupper: Likewise.
29669         * modules/unicase/u32-is-cased: Likewise.
29670         * modules/unicase/u32-is-casefolded: Likewise.
29671         * modules/unicase/u32-is-lowercase: Likewise.
29672         * modules/unicase/u32-is-titlecase: Likewise.
29673         * modules/unicase/u32-is-uppercase: Likewise.
29674         * modules/unicase/u32-prefix-context: Likewise.
29675         * modules/unicase/u32-suffix-context: Likewise.
29676         * modules/unicase/u32-tolower: Likewise.
29677         * modules/unicase/u32-totitle: Likewise.
29678         * modules/unicase/u32-toupper: Likewise.
29679         * modules/unicase/ulc-casecmp: Likewise.
29680         * modules/unicase/ulc-casecoll: Likewise.
29681         * modules/unicase/ulc-casexfrm: Likewise.
29682         * modules/uniconv/u8-conv-from-enc: Likewise.
29683         * modules/uniconv/u8-conv-to-enc: Likewise.
29684         * modules/uniconv/u8-strconv-from-enc: Likewise.
29685         * modules/uniconv/u8-strconv-from-locale: Likewise.
29686         * modules/uniconv/u8-strconv-to-enc: Likewise.
29687         * modules/uniconv/u8-strconv-to-locale: Likewise.
29688         * modules/uniconv/u16-conv-from-enc: Likewise.
29689         * modules/uniconv/u16-conv-to-enc: Likewise.
29690         * modules/uniconv/u16-strconv-from-enc: Likewise.
29691         * modules/uniconv/u16-strconv-from-locale: Likewise.
29692         * modules/uniconv/u16-strconv-to-enc: Likewise.
29693         * modules/uniconv/u16-strconv-to-locale: Likewise.
29694         * modules/uniconv/u32-conv-from-enc: Likewise.
29695         * modules/uniconv/u32-conv-to-enc: Likewise.
29696         * modules/uniconv/u32-strconv-from-enc: Likewise.
29697         * modules/uniconv/u32-strconv-from-locale: Likewise.
29698         * modules/uniconv/u32-strconv-to-enc: Likewise.
29699         * modules/uniconv/u32-strconv-to-locale: Likewise.
29700         * modules/unictype/bidicategory-byname: Likewise.
29701         * modules/unictype/bidicategory-name: Likewise.
29702         * modules/unictype/bidicategory-of: Likewise.
29703         * modules/unictype/bidicategory-test: Likewise.
29704         * modules/unictype/block-list: Likewise.
29705         * modules/unictype/block-test: Likewise.
29706         * modules/unictype/category-C: Likewise.
29707         * modules/unictype/category-Cc: Likewise.
29708         * modules/unictype/category-Cf: Likewise.
29709         * modules/unictype/category-Cn: Likewise.
29710         * modules/unictype/category-Co: Likewise.
29711         * modules/unictype/category-Cs: Likewise.
29712         * modules/unictype/category-L: Likewise.
29713         * modules/unictype/category-Ll: Likewise.
29714         * modules/unictype/category-Lm: Likewise.
29715         * modules/unictype/category-Lo: Likewise.
29716         * modules/unictype/category-Lt: Likewise.
29717         * modules/unictype/category-Lu: Likewise.
29718         * modules/unictype/category-M: Likewise.
29719         * modules/unictype/category-Mc: Likewise.
29720         * modules/unictype/category-Me: Likewise.
29721         * modules/unictype/category-Mn: Likewise.
29722         * modules/unictype/category-N: Likewise.
29723         * modules/unictype/category-Nd: Likewise.
29724         * modules/unictype/category-Nl: Likewise.
29725         * modules/unictype/category-No: Likewise.
29726         * modules/unictype/category-P: Likewise.
29727         * modules/unictype/category-Pc: Likewise.
29728         * modules/unictype/category-Pd: Likewise.
29729         * modules/unictype/category-Pe: Likewise.
29730         * modules/unictype/category-Pf: Likewise.
29731         * modules/unictype/category-Pi: Likewise.
29732         * modules/unictype/category-Po: Likewise.
29733         * modules/unictype/category-Ps: Likewise.
29734         * modules/unictype/category-S: Likewise.
29735         * modules/unictype/category-Sc: Likewise.
29736         * modules/unictype/category-Sk: Likewise.
29737         * modules/unictype/category-Sm: Likewise.
29738         * modules/unictype/category-So: Likewise.
29739         * modules/unictype/category-Z: Likewise.
29740         * modules/unictype/category-Zl: Likewise.
29741         * modules/unictype/category-Zp: Likewise.
29742         * modules/unictype/category-Zs: Likewise.
29743         * modules/unictype/category-and: Likewise.
29744         * modules/unictype/category-and-not: Likewise.
29745         * modules/unictype/category-byname: Likewise.
29746         * modules/unictype/category-name: Likewise.
29747         * modules/unictype/category-none: Likewise.
29748         * modules/unictype/category-of: Likewise.
29749         * modules/unictype/category-or: Likewise.
29750         * modules/unictype/category-test: Likewise.
29751         * modules/unictype/combining-class: Likewise.
29752         * modules/unictype/ctype-alnum: Likewise.
29753         * modules/unictype/ctype-alpha: Likewise.
29754         * modules/unictype/ctype-blank: Likewise.
29755         * modules/unictype/ctype-cntrl: Likewise.
29756         * modules/unictype/ctype-digit: Likewise.
29757         * modules/unictype/ctype-graph: Likewise.
29758         * modules/unictype/ctype-lower: Likewise.
29759         * modules/unictype/ctype-print: Likewise.
29760         * modules/unictype/ctype-punct: Likewise.
29761         * modules/unictype/ctype-space: Likewise.
29762         * modules/unictype/ctype-upper: Likewise.
29763         * modules/unictype/ctype-xdigit: Likewise.
29764         * modules/unictype/decimal-digit: Likewise.
29765         * modules/unictype/digit: Likewise.
29766         * modules/unictype/mirror: Likewise.
29767         * modules/unictype/numeric: Likewise.
29768         * modules/unictype/property-alphabetic: Likewise.
29769         * modules/unictype/property-ascii-hex-digit: Likewise.
29770         * modules/unictype/property-bidi-arabic-digit: Likewise.
29771         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29772         * modules/unictype/property-bidi-block-separator: Likewise.
29773         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29774         * modules/unictype/property-bidi-common-separator: Likewise.
29775         * modules/unictype/property-bidi-control: Likewise.
29776         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29777         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29778         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29779         * modules/unictype/property-bidi-european-digit: Likewise.
29780         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29781         * modules/unictype/property-bidi-left-to-right: Likewise.
29782         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29783         * modules/unictype/property-bidi-other-neutral: Likewise.
29784         * modules/unictype/property-bidi-pdf: Likewise.
29785         * modules/unictype/property-bidi-segment-separator: Likewise.
29786         * modules/unictype/property-bidi-whitespace: Likewise.
29787         * modules/unictype/property-byname: Likewise.
29788         * modules/unictype/property-combining: Likewise.
29789         * modules/unictype/property-composite: Likewise.
29790         * modules/unictype/property-currency-symbol: Likewise.
29791         * modules/unictype/property-dash: Likewise.
29792         * modules/unictype/property-decimal-digit: Likewise.
29793         * modules/unictype/property-default-ignorable-code-point: Likewise.
29794         * modules/unictype/property-deprecated: Likewise.
29795         * modules/unictype/property-diacritic: Likewise.
29796         * modules/unictype/property-extender: Likewise.
29797         * modules/unictype/property-format-control: Likewise.
29798         * modules/unictype/property-grapheme-base: Likewise.
29799         * modules/unictype/property-grapheme-extend: Likewise.
29800         * modules/unictype/property-grapheme-link: Likewise.
29801         * modules/unictype/property-hex-digit: Likewise.
29802         * modules/unictype/property-hyphen: Likewise.
29803         * modules/unictype/property-id-continue: Likewise.
29804         * modules/unictype/property-id-start: Likewise.
29805         * modules/unictype/property-ideographic: Likewise.
29806         * modules/unictype/property-ids-binary-operator: Likewise.
29807         * modules/unictype/property-ids-trinary-operator: Likewise.
29808         * modules/unictype/property-ignorable-control: Likewise.
29809         * modules/unictype/property-iso-control: Likewise.
29810         * modules/unictype/property-join-control: Likewise.
29811         * modules/unictype/property-left-of-pair: Likewise.
29812         * modules/unictype/property-line-separator: Likewise.
29813         * modules/unictype/property-logical-order-exception: Likewise.
29814         * modules/unictype/property-lowercase: Likewise.
29815         * modules/unictype/property-math: Likewise.
29816         * modules/unictype/property-non-break: Likewise.
29817         * modules/unictype/property-not-a-character: Likewise.
29818         * modules/unictype/property-numeric: Likewise.
29819         * modules/unictype/property-other-alphabetic: Likewise.
29820         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
29821         * modules/unictype/property-other-grapheme-extend: Likewise.
29822         * modules/unictype/property-other-id-continue: Likewise.
29823         * modules/unictype/property-other-id-start: Likewise.
29824         * modules/unictype/property-other-lowercase: Likewise.
29825         * modules/unictype/property-other-math: Likewise.
29826         * modules/unictype/property-other-uppercase: Likewise.
29827         * modules/unictype/property-paired-punctuation: Likewise.
29828         * modules/unictype/property-paragraph-separator: Likewise.
29829         * modules/unictype/property-pattern-syntax: Likewise.
29830         * modules/unictype/property-pattern-white-space: Likewise.
29831         * modules/unictype/property-private-use: Likewise.
29832         * modules/unictype/property-punctuation: Likewise.
29833         * modules/unictype/property-quotation-mark: Likewise.
29834         * modules/unictype/property-radical: Likewise.
29835         * modules/unictype/property-sentence-terminal: Likewise.
29836         * modules/unictype/property-soft-dotted: Likewise.
29837         * modules/unictype/property-space: Likewise.
29838         * modules/unictype/property-terminal-punctuation: Likewise.
29839         * modules/unictype/property-test: Likewise.
29840         * modules/unictype/property-titlecase: Likewise.
29841         * modules/unictype/property-unassigned-code-value: Likewise.
29842         * modules/unictype/property-unified-ideograph: Likewise.
29843         * modules/unictype/property-uppercase: Likewise.
29844         * modules/unictype/property-variation-selector: Likewise.
29845         * modules/unictype/property-white-space: Likewise.
29846         * modules/unictype/property-xid-continue: Likewise.
29847         * modules/unictype/property-xid-start: Likewise.
29848         * modules/unictype/property-zero-width: Likewise.
29849         * modules/unictype/scripts: Likewise.
29850         * modules/unictype/syntax-c-ident: Likewise.
29851         * modules/unictype/syntax-c-whitespace: Likewise.
29852         * modules/unictype/syntax-java-ident: Likewise.
29853         * modules/unictype/syntax-java-whitespace: Likewise.
29854         * modules/unilbrk/u8-possible-linebreaks: Likewise.
29855         * modules/unilbrk/u8-width-linebreaks: Likewise.
29856         * modules/unilbrk/u16-possible-linebreaks: Likewise.
29857         * modules/unilbrk/u16-width-linebreaks: Likewise.
29858         * modules/unilbrk/u32-possible-linebreaks: Likewise.
29859         * modules/unilbrk/u32-width-linebreaks: Likewise.
29860         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
29861         * modules/unilbrk/ulc-width-linebreaks: Likewise.
29862         * modules/uniname/uniname: Likewise.
29863         * modules/uninorm/canonical-decomposition: Likewise.
29864         * modules/uninorm/composition: Likewise.
29865         * modules/uninorm/decomposing-form: Likewise.
29866         * modules/uninorm/decomposition: Likewise.
29867         * modules/uninorm/filter: Likewise.
29868         * modules/uninorm/nfc: Likewise.
29869         * modules/uninorm/nfd: Likewise.
29870         * modules/uninorm/nfkc: Likewise.
29871         * modules/uninorm/nfkd: Likewise.
29872         * modules/uninorm/u8-normalize: Likewise.
29873         * modules/uninorm/u8-normcmp: Likewise.
29874         * modules/uninorm/u8-normcoll: Likewise.
29875         * modules/uninorm/u8-normxfrm: Likewise.
29876         * modules/uninorm/u16-normalize: Likewise.
29877         * modules/uninorm/u16-normcmp: Likewise.
29878         * modules/uninorm/u16-normcoll: Likewise.
29879         * modules/uninorm/u16-normxfrm: Likewise.
29880         * modules/uninorm/u32-normalize: Likewise.
29881         * modules/uninorm/u32-normcmp: Likewise.
29882         * modules/uninorm/u32-normcoll: Likewise.
29883         * modules/uninorm/u32-normxfrm: Likewise.
29884         * modules/unistdio/u8-asnprintf: Likewise.
29885         * modules/unistdio/u8-asprintf: Likewise.
29886         * modules/unistdio/u8-snprintf: Likewise.
29887         * modules/unistdio/u8-sprintf: Likewise.
29888         * modules/unistdio/u8-u8-asnprintf: Likewise.
29889         * modules/unistdio/u8-u8-asprintf: Likewise.
29890         * modules/unistdio/u8-u8-snprintf: Likewise.
29891         * modules/unistdio/u8-u8-sprintf: Likewise.
29892         * modules/unistdio/u8-u8-vasnprintf: Likewise.
29893         * modules/unistdio/u8-u8-vasprintf: Likewise.
29894         * modules/unistdio/u8-u8-vsnprintf: Likewise.
29895         * modules/unistdio/u8-u8-vsprintf: Likewise.
29896         * modules/unistdio/u8-vasnprintf: Likewise.
29897         * modules/unistdio/u8-vasprintf: Likewise.
29898         * modules/unistdio/u8-vsnprintf: Likewise.
29899         * modules/unistdio/u8-vsprintf: Likewise.
29900         * modules/unistdio/u16-asnprintf: Likewise.
29901         * modules/unistdio/u16-asprintf: Likewise.
29902         * modules/unistdio/u16-snprintf: Likewise.
29903         * modules/unistdio/u16-sprintf: Likewise.
29904         * modules/unistdio/u16-u16-asnprintf: Likewise.
29905         * modules/unistdio/u16-u16-asprintf: Likewise.
29906         * modules/unistdio/u16-u16-snprintf: Likewise.
29907         * modules/unistdio/u16-u16-sprintf: Likewise.
29908         * modules/unistdio/u16-u16-vasnprintf: Likewise.
29909         * modules/unistdio/u16-u16-vasprintf: Likewise.
29910         * modules/unistdio/u16-u16-vsnprintf: Likewise.
29911         * modules/unistdio/u16-u16-vsprintf: Likewise.
29912         * modules/unistdio/u16-vasnprintf: Likewise.
29913         * modules/unistdio/u16-vasprintf: Likewise.
29914         * modules/unistdio/u16-vsnprintf: Likewise.
29915         * modules/unistdio/u16-vsprintf: Likewise.
29916         * modules/unistdio/u32-asnprintf: Likewise.
29917         * modules/unistdio/u32-asprintf: Likewise.
29918         * modules/unistdio/u32-snprintf: Likewise.
29919         * modules/unistdio/u32-sprintf: Likewise.
29920         * modules/unistdio/u32-u32-asnprintf: Likewise.
29921         * modules/unistdio/u32-u32-asprintf: Likewise.
29922         * modules/unistdio/u32-u32-snprintf: Likewise.
29923         * modules/unistdio/u32-u32-sprintf: Likewise.
29924         * modules/unistdio/u32-u32-vasnprintf: Likewise.
29925         * modules/unistdio/u32-u32-vasprintf: Likewise.
29926         * modules/unistdio/u32-u32-vsnprintf: Likewise.
29927         * modules/unistdio/u32-u32-vsprintf: Likewise.
29928         * modules/unistdio/u32-vasnprintf: Likewise.
29929         * modules/unistdio/u32-vasprintf: Likewise.
29930         * modules/unistdio/u32-vsnprintf: Likewise.
29931         * modules/unistdio/u32-vsprintf: Likewise.
29932         * modules/unistdio/ulc-asnprintf: Likewise.
29933         * modules/unistdio/ulc-asprintf: Likewise.
29934         * modules/unistdio/ulc-fprintf: Likewise.
29935         * modules/unistdio/ulc-snprintf: Likewise.
29936         * modules/unistdio/ulc-sprintf: Likewise.
29937         * modules/unistdio/ulc-vasnprintf: Likewise.
29938         * modules/unistdio/ulc-vasprintf: Likewise.
29939         * modules/unistdio/ulc-vfprintf: Likewise.
29940         * modules/unistdio/ulc-vsnprintf: Likewise.
29941         * modules/unistdio/ulc-vsprintf: Likewise.
29942         * modules/unistr/u8-check: Likewise.
29943         * modules/unistr/u8-chr: Likewise.
29944         * modules/unistr/u8-cmp: Likewise.
29945         * modules/unistr/u8-cmp2: Likewise.
29946         * modules/unistr/u8-cpy: Likewise.
29947         * modules/unistr/u8-cpy-alloc: Likewise.
29948         * modules/unistr/u8-endswith: Likewise.
29949         * modules/unistr/u8-mblen: Likewise.
29950         * modules/unistr/u8-mbsnlen: Likewise.
29951         * modules/unistr/u8-mbtouc: Likewise.
29952         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29953         * modules/unistr/u8-mbtoucr: Likewise.
29954         * modules/unistr/u8-move: Likewise.
29955         * modules/unistr/u8-next: Likewise.
29956         * modules/unistr/u8-prev: Likewise.
29957         * modules/unistr/u8-set: Likewise.
29958         * modules/unistr/u8-startswith: Likewise.
29959         * modules/unistr/u8-stpcpy: Likewise.
29960         * modules/unistr/u8-stpncpy: Likewise.
29961         * modules/unistr/u8-strcat: Likewise.
29962         * modules/unistr/u8-strchr: Likewise.
29963         * modules/unistr/u8-strcmp: Likewise.
29964         * modules/unistr/u8-strcoll: Likewise.
29965         * modules/unistr/u8-strcpy: Likewise.
29966         * modules/unistr/u8-strcspn: Likewise.
29967         * modules/unistr/u8-strdup: Likewise.
29968         * modules/unistr/u8-strlen: Likewise.
29969         * modules/unistr/u8-strmblen: Likewise.
29970         * modules/unistr/u8-strmbtouc: Likewise.
29971         * modules/unistr/u8-strncat: Likewise.
29972         * modules/unistr/u8-strncmp: Likewise.
29973         * modules/unistr/u8-strncpy: Likewise.
29974         * modules/unistr/u8-strnlen: Likewise.
29975         * modules/unistr/u8-strpbrk: Likewise.
29976         * modules/unistr/u8-strrchr: Likewise.
29977         * modules/unistr/u8-strspn: Likewise.
29978         * modules/unistr/u8-strstr: Likewise.
29979         * modules/unistr/u8-strtok: Likewise.
29980         * modules/unistr/u8-to-u16: Likewise.
29981         * modules/unistr/u8-to-u32: Likewise.
29982         * modules/unistr/u8-uctomb: Likewise.
29983         * modules/unistr/u16-check: Likewise.
29984         * modules/unistr/u16-chr: Likewise.
29985         * modules/unistr/u16-cmp: Likewise.
29986         * modules/unistr/u16-cmp2: Likewise.
29987         * modules/unistr/u16-cpy: Likewise.
29988         * modules/unistr/u16-cpy-alloc: Likewise.
29989         * modules/unistr/u16-endswith: Likewise.
29990         * modules/unistr/u16-mblen: Likewise.
29991         * modules/unistr/u16-mbsnlen: Likewise.
29992         * modules/unistr/u16-mbtouc: Likewise.
29993         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29994         * modules/unistr/u16-mbtoucr: Likewise.
29995         * modules/unistr/u16-move: Likewise.
29996         * modules/unistr/u16-next: Likewise.
29997         * modules/unistr/u16-prev: Likewise.
29998         * modules/unistr/u16-set: Likewise.
29999         * modules/unistr/u16-startswith: Likewise.
30000         * modules/unistr/u16-stpcpy: Likewise.
30001         * modules/unistr/u16-stpncpy: Likewise.
30002         * modules/unistr/u16-strcat: Likewise.
30003         * modules/unistr/u16-strchr: Likewise.
30004         * modules/unistr/u16-strcmp: Likewise.
30005         * modules/unistr/u16-strcoll: Likewise.
30006         * modules/unistr/u16-strcpy: Likewise.
30007         * modules/unistr/u16-strcspn: Likewise.
30008         * modules/unistr/u16-strdup: Likewise.
30009         * modules/unistr/u16-strlen: Likewise.
30010         * modules/unistr/u16-strmblen: Likewise.
30011         * modules/unistr/u16-strmbtouc: Likewise.
30012         * modules/unistr/u16-strncat: Likewise.
30013         * modules/unistr/u16-strncmp: Likewise.
30014         * modules/unistr/u16-strncpy: Likewise.
30015         * modules/unistr/u16-strnlen: Likewise.
30016         * modules/unistr/u16-strpbrk: Likewise.
30017         * modules/unistr/u16-strrchr: Likewise.
30018         * modules/unistr/u16-strspn: Likewise.
30019         * modules/unistr/u16-strstr: Likewise.
30020         * modules/unistr/u16-strtok: Likewise.
30021         * modules/unistr/u16-to-u32: Likewise.
30022         * modules/unistr/u16-to-u8: Likewise.
30023         * modules/unistr/u16-uctomb: Likewise.
30024         * modules/unistr/u32-check: Likewise.
30025         * modules/unistr/u32-chr: Likewise.
30026         * modules/unistr/u32-cmp: Likewise.
30027         * modules/unistr/u32-cmp2: Likewise.
30028         * modules/unistr/u32-cpy: Likewise.
30029         * modules/unistr/u32-cpy-alloc: Likewise.
30030         * modules/unistr/u32-endswith: Likewise.
30031         * modules/unistr/u32-mblen: Likewise.
30032         * modules/unistr/u32-mbsnlen: Likewise.
30033         * modules/unistr/u32-mbtouc: Likewise.
30034         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30035         * modules/unistr/u32-mbtoucr: Likewise.
30036         * modules/unistr/u32-move: Likewise.
30037         * modules/unistr/u32-next: Likewise.
30038         * modules/unistr/u32-prev: Likewise.
30039         * modules/unistr/u32-set: Likewise.
30040         * modules/unistr/u32-startswith: Likewise.
30041         * modules/unistr/u32-stpcpy: Likewise.
30042         * modules/unistr/u32-stpncpy: Likewise.
30043         * modules/unistr/u32-strcat: Likewise.
30044         * modules/unistr/u32-strchr: Likewise.
30045         * modules/unistr/u32-strcmp: Likewise.
30046         * modules/unistr/u32-strcoll: Likewise.
30047         * modules/unistr/u32-strcpy: Likewise.
30048         * modules/unistr/u32-strcspn: Likewise.
30049         * modules/unistr/u32-strdup: Likewise.
30050         * modules/unistr/u32-strlen: Likewise.
30051         * modules/unistr/u32-strmblen: Likewise.
30052         * modules/unistr/u32-strmbtouc: Likewise.
30053         * modules/unistr/u32-strncat: Likewise.
30054         * modules/unistr/u32-strncmp: Likewise.
30055         * modules/unistr/u32-strncpy: Likewise.
30056         * modules/unistr/u32-strnlen: Likewise.
30057         * modules/unistr/u32-strpbrk: Likewise.
30058         * modules/unistr/u32-strrchr: Likewise.
30059         * modules/unistr/u32-strspn: Likewise.
30060         * modules/unistr/u32-strstr: Likewise.
30061         * modules/unistr/u32-strtok: Likewise.
30062         * modules/unistr/u32-to-u16: Likewise.
30063         * modules/unistr/u32-to-u8: Likewise.
30064         * modules/unistr/u32-uctomb: Likewise.
30065         * modules/uniwbrk/u8-wordbreaks: Likewise.
30066         * modules/uniwbrk/u16-wordbreaks: Likewise.
30067         * modules/uniwbrk/u32-wordbreaks: Likewise.
30068         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30069         * modules/uniwbrk/wordbreak-property: Likewise.
30070         * modules/uniwidth/u8-strwidth: Likewise.
30071         * modules/uniwidth/u8-width: Likewise.
30072         * modules/uniwidth/u16-strwidth: Likewise.
30073         * modules/uniwidth/u16-width: Likewise.
30074         * modules/uniwidth/u32-strwidth: Likewise.
30075         * modules/uniwidth/u32-width: Likewise.
30076         * modules/uniwidth/width: Likewise.
30077         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30078         with $(LIBUNISTRING).
30079         * modules/unicase/ignorable-tests: Likewise.
30080         * modules/unicase/locale-language-tests: Likewise.
30081         * modules/unicase/tolower-tests: Likewise.
30082         * modules/unicase/totitle-tests: Likewise.
30083         * modules/unicase/toupper-tests: Likewise.
30084         * modules/unicase/u8-casecmp-tests: Likewise.
30085         * modules/unicase/u8-casecoll-tests: Likewise.
30086         * modules/unicase/u8-casefold-tests: Likewise.
30087         * modules/unicase/u8-is-cased-tests: Likewise.
30088         * modules/unicase/u8-is-casefolded-tests: Likewise.
30089         * modules/unicase/u8-is-lowercase-tests: Likewise.
30090         * modules/unicase/u8-is-titlecase-tests: Likewise.
30091         * modules/unicase/u8-is-uppercase-tests: Likewise.
30092         * modules/unicase/u8-tolower-tests: Likewise.
30093         * modules/unicase/u8-totitle-tests: Likewise.
30094         * modules/unicase/u8-toupper-tests: Likewise.
30095         * modules/unicase/u16-casecmp-tests: Likewise.
30096         * modules/unicase/u16-casecoll-tests: Likewise.
30097         * modules/unicase/u16-casefold-tests: Likewise.
30098         * modules/unicase/u16-is-cased-tests: Likewise.
30099         * modules/unicase/u16-is-casefolded-tests: Likewise.
30100         * modules/unicase/u16-is-lowercase-tests: Likewise.
30101         * modules/unicase/u16-is-titlecase-tests: Likewise.
30102         * modules/unicase/u16-is-uppercase-tests: Likewise.
30103         * modules/unicase/u16-tolower-tests: Likewise.
30104         * modules/unicase/u16-totitle-tests: Likewise.
30105         * modules/unicase/u16-toupper-tests: Likewise.
30106         * modules/unicase/u32-casecmp-tests: Likewise.
30107         * modules/unicase/u32-casecoll-tests: Likewise.
30108         * modules/unicase/u32-casefold-tests: Likewise.
30109         * modules/unicase/u32-is-cased-tests: Likewise.
30110         * modules/unicase/u32-is-casefolded-tests: Likewise.
30111         * modules/unicase/u32-is-lowercase-tests: Likewise.
30112         * modules/unicase/u32-is-titlecase-tests: Likewise.
30113         * modules/unicase/u32-is-uppercase-tests: Likewise.
30114         * modules/unicase/u32-tolower-tests: Likewise.
30115         * modules/unicase/u32-totitle-tests: Likewise.
30116         * modules/unicase/u32-toupper-tests: Likewise.
30117         * modules/unicase/ulc-casecmp-tests: Likewise.
30118         * modules/unicase/ulc-casecoll-tests: Likewise.
30119         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30120         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30121         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30122         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30123         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30124         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30125         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30126         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30127         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30128         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30129         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30130         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30131         * modules/unictype/bidicategory-byname-tests: Likewise.
30132         * modules/unictype/bidicategory-name-tests: Likewise.
30133         * modules/unictype/bidicategory-of-tests: Likewise.
30134         * modules/unictype/bidicategory-test-tests: Likewise.
30135         * modules/unictype/block-list-tests: Likewise.
30136         * modules/unictype/block-of-tests: Likewise.
30137         * modules/unictype/block-test-tests: Likewise.
30138         * modules/unictype/category-C-tests: Likewise.
30139         * modules/unictype/category-Cc-tests: Likewise.
30140         * modules/unictype/category-Cf-tests: Likewise.
30141         * modules/unictype/category-Cn-tests: Likewise.
30142         * modules/unictype/category-Co-tests: Likewise.
30143         * modules/unictype/category-Cs-tests: Likewise.
30144         * modules/unictype/category-L-tests: Likewise.
30145         * modules/unictype/category-Ll-tests: Likewise.
30146         * modules/unictype/category-Lm-tests: Likewise.
30147         * modules/unictype/category-Lo-tests: Likewise.
30148         * modules/unictype/category-Lt-tests: Likewise.
30149         * modules/unictype/category-Lu-tests: Likewise.
30150         * modules/unictype/category-M-tests: Likewise.
30151         * modules/unictype/category-Mc-tests: Likewise.
30152         * modules/unictype/category-Me-tests: Likewise.
30153         * modules/unictype/category-Mn-tests: Likewise.
30154         * modules/unictype/category-N-tests: Likewise.
30155         * modules/unictype/category-Nd-tests: Likewise.
30156         * modules/unictype/category-Nl-tests: Likewise.
30157         * modules/unictype/category-No-tests: Likewise.
30158         * modules/unictype/category-P-tests: Likewise.
30159         * modules/unictype/category-Pc-tests: Likewise.
30160         * modules/unictype/category-Pd-tests: Likewise.
30161         * modules/unictype/category-Pe-tests: Likewise.
30162         * modules/unictype/category-Pf-tests: Likewise.
30163         * modules/unictype/category-Pi-tests: Likewise.
30164         * modules/unictype/category-Po-tests: Likewise.
30165         * modules/unictype/category-Ps-tests: Likewise.
30166         * modules/unictype/category-S-tests: Likewise.
30167         * modules/unictype/category-Sc-tests: Likewise.
30168         * modules/unictype/category-Sk-tests: Likewise.
30169         * modules/unictype/category-Sm-tests: Likewise.
30170         * modules/unictype/category-So-tests: Likewise.
30171         * modules/unictype/category-Z-tests: Likewise.
30172         * modules/unictype/category-Zl-tests: Likewise.
30173         * modules/unictype/category-Zp-tests: Likewise.
30174         * modules/unictype/category-Zs-tests: Likewise.
30175         * modules/unictype/category-and-not-tests: Likewise.
30176         * modules/unictype/category-and-tests: Likewise.
30177         * modules/unictype/category-byname-tests: Likewise.
30178         * modules/unictype/category-name-tests: Likewise.
30179         * modules/unictype/category-none-tests: Likewise.
30180         * modules/unictype/category-of-tests: Likewise.
30181         * modules/unictype/category-or-tests: Likewise.
30182         * modules/unictype/category-test-withtable-tests: Likewise.
30183         * modules/unictype/combining-class-tests: Likewise.
30184         * modules/unictype/ctype-alnum-tests: Likewise.
30185         * modules/unictype/ctype-alpha-tests: Likewise.
30186         * modules/unictype/ctype-blank-tests: Likewise.
30187         * modules/unictype/ctype-cntrl-tests: Likewise.
30188         * modules/unictype/ctype-digit-tests: Likewise.
30189         * modules/unictype/ctype-graph-tests: Likewise.
30190         * modules/unictype/ctype-lower-tests: Likewise.
30191         * modules/unictype/ctype-print-tests: Likewise.
30192         * modules/unictype/ctype-punct-tests: Likewise.
30193         * modules/unictype/ctype-space-tests: Likewise.
30194         * modules/unictype/ctype-upper-tests: Likewise.
30195         * modules/unictype/ctype-xdigit-tests: Likewise.
30196         * modules/unictype/decimal-digit-tests: Likewise.
30197         * modules/unictype/digit-tests: Likewise.
30198         * modules/unictype/mirror-tests: Likewise.
30199         * modules/unictype/numeric-tests: Likewise.
30200         * modules/unictype/property-alphabetic-tests: Likewise.
30201         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30202         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30203         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30204         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30205         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30206         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30207         * modules/unictype/property-bidi-control-tests: Likewise.
30208         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30209         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30210         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30211         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30212         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30213         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30214         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30215         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30216         * modules/unictype/property-bidi-pdf-tests: Likewise.
30217         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30218         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30219         * modules/unictype/property-byname-tests: Likewise.
30220         * modules/unictype/property-combining-tests: Likewise.
30221         * modules/unictype/property-composite-tests: Likewise.
30222         * modules/unictype/property-currency-symbol-tests: Likewise.
30223         * modules/unictype/property-dash-tests: Likewise.
30224         * modules/unictype/property-decimal-digit-tests: Likewise.
30225         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30226         * modules/unictype/property-deprecated-tests: Likewise.
30227         * modules/unictype/property-diacritic-tests: Likewise.
30228         * modules/unictype/property-extender-tests: Likewise.
30229         * modules/unictype/property-format-control-tests: Likewise.
30230         * modules/unictype/property-grapheme-base-tests: Likewise.
30231         * modules/unictype/property-grapheme-extend-tests: Likewise.
30232         * modules/unictype/property-grapheme-link-tests: Likewise.
30233         * modules/unictype/property-hex-digit-tests: Likewise.
30234         * modules/unictype/property-hyphen-tests: Likewise.
30235         * modules/unictype/property-id-continue-tests: Likewise.
30236         * modules/unictype/property-id-start-tests: Likewise.
30237         * modules/unictype/property-ideographic-tests: Likewise.
30238         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30239         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30240         * modules/unictype/property-ignorable-control-tests: Likewise.
30241         * modules/unictype/property-iso-control-tests: Likewise.
30242         * modules/unictype/property-join-control-tests: Likewise.
30243         * modules/unictype/property-left-of-pair-tests: Likewise.
30244         * modules/unictype/property-line-separator-tests: Likewise.
30245         * modules/unictype/property-logical-order-exception-tests: Likewise.
30246         * modules/unictype/property-lowercase-tests: Likewise.
30247         * modules/unictype/property-math-tests: Likewise.
30248         * modules/unictype/property-non-break-tests: Likewise.
30249         * modules/unictype/property-not-a-character-tests: Likewise.
30250         * modules/unictype/property-numeric-tests: Likewise.
30251         * modules/unictype/property-other-alphabetic-tests: Likewise.
30252         * modules/unictype/property-other-default-ignorable-code-point-tests:
30253         Likewise.
30254         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30255         * modules/unictype/property-other-id-continue-tests: Likewise.
30256         * modules/unictype/property-other-id-start-tests: Likewise.
30257         * modules/unictype/property-other-lowercase-tests: Likewise.
30258         * modules/unictype/property-other-math-tests: Likewise.
30259         * modules/unictype/property-other-uppercase-tests: Likewise.
30260         * modules/unictype/property-paired-punctuation-tests: Likewise.
30261         * modules/unictype/property-paragraph-separator-tests: Likewise.
30262         * modules/unictype/property-pattern-syntax-tests: Likewise.
30263         * modules/unictype/property-pattern-white-space-tests: Likewise.
30264         * modules/unictype/property-private-use-tests: Likewise.
30265         * modules/unictype/property-punctuation-tests: Likewise.
30266         * modules/unictype/property-quotation-mark-tests: Likewise.
30267         * modules/unictype/property-radical-tests: Likewise.
30268         * modules/unictype/property-sentence-terminal-tests: Likewise.
30269         * modules/unictype/property-soft-dotted-tests: Likewise.
30270         * modules/unictype/property-space-tests: Likewise.
30271         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30272         * modules/unictype/property-test-tests: Likewise.
30273         * modules/unictype/property-titlecase-tests: Likewise.
30274         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30275         * modules/unictype/property-unified-ideograph-tests: Likewise.
30276         * modules/unictype/property-uppercase-tests: Likewise.
30277         * modules/unictype/property-variation-selector-tests: Likewise.
30278         * modules/unictype/property-white-space-tests: Likewise.
30279         * modules/unictype/property-xid-continue-tests: Likewise.
30280         * modules/unictype/property-xid-start-tests: Likewise.
30281         * modules/unictype/property-zero-width-tests: Likewise.
30282         * modules/unictype/scripts-tests: Likewise.
30283         * modules/unictype/syntax-c-ident-tests: Likewise.
30284         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30285         * modules/unictype/syntax-java-ident-tests: Likewise.
30286         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30287         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30288         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30289         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30290         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30291         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30292         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30293         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30294         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30295         * modules/uniname/uniname-tests: Likewise.
30296         * modules/uninorm/canonical-decomposition-tests: Likewise.
30297         * modules/uninorm/compat-decomposition-tests: Likewise.
30298         * modules/uninorm/composition-tests: Likewise.
30299         * modules/uninorm/decomposing-form-tests: Likewise.
30300         * modules/uninorm/decomposition-tests: Likewise.
30301         * modules/uninorm/filter-tests: Likewise.
30302         * modules/uninorm/nfc-tests: Likewise.
30303         * modules/uninorm/nfd-tests: Likewise.
30304         * modules/uninorm/nfkc-tests: Likewise.
30305         * modules/uninorm/nfkd-tests: Likewise.
30306         * modules/uninorm/u8-normcmp-tests: Likewise.
30307         * modules/uninorm/u8-normcoll-tests: Likewise.
30308         * modules/uninorm/u16-normcmp-tests: Likewise.
30309         * modules/uninorm/u16-normcoll-tests: Likewise.
30310         * modules/uninorm/u32-normcmp-tests: Likewise.
30311         * modules/uninorm/u32-normcoll-tests: Likewise.
30312         * modules/unistdio/u8-asnprintf-tests: Likewise.
30313         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30314         * modules/unistdio/u8-vasprintf-tests: Likewise.
30315         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30316         * modules/unistdio/u8-vsprintf-tests: Likewise.
30317         * modules/unistdio/u16-asnprintf-tests: Likewise.
30318         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30319         * modules/unistdio/u16-vasprintf-tests: Likewise.
30320         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30321         * modules/unistdio/u16-vsprintf-tests: Likewise.
30322         * modules/unistdio/u32-asnprintf-tests: Likewise.
30323         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30324         * modules/unistdio/u32-vasprintf-tests: Likewise.
30325         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30326         * modules/unistdio/u32-vsprintf-tests: Likewise.
30327         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30328         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30329         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30330         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30331         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30332         * modules/unistr/u8-check-tests: Likewise.
30333         * modules/unistr/u8-chr-tests: Likewise.
30334         * modules/unistr/u8-cmp-tests: Likewise.
30335         * modules/unistr/u8-cmp2-tests: Likewise.
30336         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30337         * modules/unistr/u8-cpy-tests: Likewise.
30338         * modules/unistr/u8-mblen-tests: Likewise.
30339         * modules/unistr/u8-mbsnlen-tests: Likewise.
30340         * modules/unistr/u8-mbtouc-tests: Likewise.
30341         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30342         * modules/unistr/u8-mbtoucr-tests: Likewise.
30343         * modules/unistr/u8-move-tests: Likewise.
30344         * modules/unistr/u8-next-tests: Likewise.
30345         * modules/unistr/u8-prev-tests: Likewise.
30346         * modules/unistr/u8-set-tests: Likewise.
30347         * modules/unistr/u8-stpcpy-tests: Likewise.
30348         * modules/unistr/u8-stpncpy-tests: Likewise.
30349         * modules/unistr/u8-strcat-tests: Likewise.
30350         * modules/unistr/u8-strcmp-tests: Likewise.
30351         * modules/unistr/u8-strcoll-tests: Likewise.
30352         * modules/unistr/u8-strcpy-tests: Likewise.
30353         * modules/unistr/u8-strdup-tests: Likewise.
30354         * modules/unistr/u8-strlen-tests: Likewise.
30355         * modules/unistr/u8-strmblen-tests: Likewise.
30356         * modules/unistr/u8-strmbtouc-tests: Likewise.
30357         * modules/unistr/u8-strncat-tests: Likewise.
30358         * modules/unistr/u8-strncmp-tests: Likewise.
30359         * modules/unistr/u8-strncpy-tests: Likewise.
30360         * modules/unistr/u8-strnlen-tests: Likewise.
30361         * modules/unistr/u8-to-u16-tests: Likewise.
30362         * modules/unistr/u8-to-u32-tests: Likewise.
30363         * modules/unistr/u8-uctomb-tests: Likewise.
30364         * modules/unistr/u16-check-tests: Likewise.
30365         * modules/unistr/u16-chr-tests: Likewise.
30366         * modules/unistr/u16-cmp-tests: Likewise.
30367         * modules/unistr/u16-cmp2-tests: Likewise.
30368         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30369         * modules/unistr/u16-cpy-tests: Likewise.
30370         * modules/unistr/u16-mblen-tests: Likewise.
30371         * modules/unistr/u16-mbsnlen-tests: Likewise.
30372         * modules/unistr/u16-mbtouc-tests: Likewise.
30373         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30374         * modules/unistr/u16-mbtoucr-tests: Likewise.
30375         * modules/unistr/u16-move-tests: Likewise.
30376         * modules/unistr/u16-next-tests: Likewise.
30377         * modules/unistr/u16-prev-tests: Likewise.
30378         * modules/unistr/u16-set-tests: Likewise.
30379         * modules/unistr/u16-stpcpy-tests: Likewise.
30380         * modules/unistr/u16-stpncpy-tests: Likewise.
30381         * modules/unistr/u16-strcat-tests: Likewise.
30382         * modules/unistr/u16-strcmp-tests: Likewise.
30383         * modules/unistr/u16-strcoll-tests: Likewise.
30384         * modules/unistr/u16-strcpy-tests: Likewise.
30385         * modules/unistr/u16-strdup-tests: Likewise.
30386         * modules/unistr/u16-strlen-tests: Likewise.
30387         * modules/unistr/u16-strmblen-tests: Likewise.
30388         * modules/unistr/u16-strmbtouc-tests: Likewise.
30389         * modules/unistr/u16-strncat-tests: Likewise.
30390         * modules/unistr/u16-strncmp-tests: Likewise.
30391         * modules/unistr/u16-strncpy-tests: Likewise.
30392         * modules/unistr/u16-strnlen-tests: Likewise.
30393         * modules/unistr/u16-to-u32-tests: Likewise.
30394         * modules/unistr/u16-to-u8-tests: Likewise.
30395         * modules/unistr/u16-uctomb-tests: Likewise.
30396         * modules/unistr/u32-check-tests: Likewise.
30397         * modules/unistr/u32-chr-tests: Likewise.
30398         * modules/unistr/u32-cmp-tests: Likewise.
30399         * modules/unistr/u32-cmp2-tests: Likewise.
30400         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30401         * modules/unistr/u32-cpy-tests: Likewise.
30402         * modules/unistr/u32-mblen-tests: Likewise.
30403         * modules/unistr/u32-mbsnlen-tests: Likewise.
30404         * modules/unistr/u32-mbtouc-tests: Likewise.
30405         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30406         * modules/unistr/u32-mbtoucr-tests: Likewise.
30407         * modules/unistr/u32-move-tests: Likewise.
30408         * modules/unistr/u32-next-tests: Likewise.
30409         * modules/unistr/u32-prev-tests: Likewise.
30410         * modules/unistr/u32-set-tests: Likewise.
30411         * modules/unistr/u32-stpcpy-tests: Likewise.
30412         * modules/unistr/u32-stpncpy-tests: Likewise.
30413         * modules/unistr/u32-strcat-tests: Likewise.
30414         * modules/unistr/u32-strcmp-tests: Likewise.
30415         * modules/unistr/u32-strcoll-tests: Likewise.
30416         * modules/unistr/u32-strcpy-tests: Likewise.
30417         * modules/unistr/u32-strdup-tests: Likewise.
30418         * modules/unistr/u32-strlen-tests: Likewise.
30419         * modules/unistr/u32-strmblen-tests: Likewise.
30420         * modules/unistr/u32-strmbtouc-tests: Likewise.
30421         * modules/unistr/u32-strncat-tests: Likewise.
30422         * modules/unistr/u32-strncmp-tests: Likewise.
30423         * modules/unistr/u32-strncpy-tests: Likewise.
30424         * modules/unistr/u32-strnlen-tests: Likewise.
30425         * modules/unistr/u32-to-u16-tests: Likewise.
30426         * modules/unistr/u32-to-u8-tests: Likewise.
30427         * modules/unistr/u32-uctomb-tests: Likewise.
30428         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30429         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30430         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30431         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30432         * modules/uniwidth/u8-strwidth-tests: Likewise.
30433         * modules/uniwidth/u8-width-tests: Likewise.
30434         * modules/uniwidth/u16-strwidth-tests: Likewise.
30435         * modules/uniwidth/u16-width-tests: Likewise.
30436         * modules/uniwidth/u32-strwidth-tests: Likewise.
30437         * modules/uniwidth/u32-width-tests: Likewise.
30438         * modules/uniwidth/width-tests: Likewise.
30439
30440 2010-05-18  Richard Jones  <rjones@redhat.com>
30441
30442         doc: users.txt: list hivex
30443         * users.txt: Add hivex.
30444
30445 2010-05-18  Richard Jones  <rjones@redhat.com>
30446
30447         doc: users.txt: list febootstrap
30448         * users.txt: Add febootstrap.
30449
30450 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30451
30452         bootstrap: fix an error when gnulib is not used as a git submodule
30453         * build-aux/bootstrap (gnulib_path): If its length is zero then
30454         assign "gnulib" to it.
30455         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30456
30457 2010-05-16  Bruno Haible  <bruno@clisp.org>
30458
30459         Avoid autoconf warnings about AM_ICONV.
30460         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30461         2.64.
30462
30463 2010-05-16  Bruno Haible  <bruno@clisp.org>
30464
30465         absolute-header: Make the macro usable in more situations.
30466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30467         from gl_ABSOLUTE_HEADER.
30468         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30469
30470 2010-05-16  James Youngman  <jay@gnu.org>
30471
30472         doc: update users.txt
30473         * users.txt: Add CSSC.
30474
30475 2010-05-16  Jim Meyering  <meyering@redhat.com>
30476
30477         init.sh: fix an error in the previous change; add more comments
30478         * tests/init.sh: Compare exit code in loop against 9, not 2.
30479         Patch by Bruno Haible.
30480         Make the two tests more similar by adding an empty "then" clause.
30481         Add comments.
30482
30483         init.sh: avoid unnecessary shell re-exec
30484         * tests/init.sh: Improve the re-exec-required check to first test the
30485         current shell.  If it passes the test, do not search for a shell that
30486         does pass, and do not re-exec.  This test is particularly contorted to
30487         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30488         of $(...) evokes a syntax error and causes immediate shell exit with
30489         status 2.  Bruno Haible reported that the re-exec made it impossible
30490         to single-step through any init.sh-using script.
30491
30492 2010-05-16  Bruno Haible  <bruno@clisp.org>
30493
30494         Fix collision between gnulib's and libintl's printf replacements.
30495         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30496         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30497         (printf): When using GNU C, map the __printf__ function to rpl_printf
30498         via __asm__. When not using GNU C, define rpl_printf instead of
30499         __printf__.
30500         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30501         commit.
30502         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30503         commit.
30504         * m4/asm-underscore.m4: New file.
30505         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30506         * modules/stdio (Files): Add m4/asm-underscore.m4.
30507         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30508         Reported by Ben Pfaff.
30509
30510 2010-05-16  Bruno Haible  <bruno@clisp.org>
30511
30512         verify: Avoid skipping the test on openSUSE 11.0.
30513         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30514
30515 2010-05-13  Bruno Haible  <bruno@clisp.org>
30516
30517         Avoid useless warnings from G++.
30518         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30519         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30520         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30521
30522 2010-05-11  Jim Meyering  <meyering@redhat.com>
30523
30524         maint.mk: tweak preceding change
30525         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30526         regexps tighter by anchoring at EOL, and make the new group "shy"
30527         for slightly decreased overhead.
30528
30529 2010-05-11  Eric Blake  <eblake@redhat.com>
30530
30531         maint.mk: gnulib doesn't guarantee NSIG
30532         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30533
30534 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30535
30536         test-pwrite.c: Remove unused variable declaration.
30537         * tests/test-pwrite.c (main): Remove read_buf declaration.
30538
30539         Remove useless test-pwrite.sh file.
30540         * tests/test-pwrite.sh: Delete file.
30541         * modules/pwrite-tests: Remove references.
30542         Reported by Bruno Haible.
30543
30544 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30545
30546         init.sh: fix a typo
30547         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30548
30549 2010-05-10  Jim Meyering  <meyering@redhat.com>
30550
30551         maint.mk: avoid using a temporary file in the always-defined-macros check
30552         * top/maint.mk (.re-defmac): Remove rule.
30553         (gl_trap_): Remove definition.
30554         (sc_prohibit_always-defined_macros): Rewrite not to create and
30555         depend on a temporary file.  Instead, depend on GNU grep's ability
30556         to read a list of regular expressions from stdin when given "-f -".
30557
30558 2010-05-09  Bruno Haible  <bruno@clisp.org>
30559
30560         Update to GNU gettext 0.18, part 1.
30561         * m4/gettext.m4: Update to GNU gettext 0.18.
30562         * m4/intl.m4: Likewise.
30563         * m4/po.m4: Likewise.
30564         * modules/gettext (Files): Add m4/fcntl-o.m4.
30565         (configure.ac): Require gettext infrastructure from version 0.18.
30566
30567 2010-05-09  Jim Meyering  <meyering@redhat.com>
30568
30569         init.sh: enable MALLOC_PERTURB_
30570         * tests/init.sh: Enable glibc's malloc-perturbing option.
30571
30572         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30573         With my recent change in init.sh from the two-line form:
30574             -#   : ${srcdir=.}
30575             -#   . "$srcdir/init.sh"; path_prepend_ .
30576             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30577         I noticed that using the one-line form would cause this test
30578         to fail with a false-positive, or to stop working altogether,
30579         depending on whether help-version changed or all the tests did.
30580         * top/maint.mk (_hv_regex): Remove this definition.
30581         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30582         (_hv_regex_strong): Use a stronger regex to check for conformance.
30583         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30584         Give a separate diagnostic for lack of conforming use.
30585
30586         maint.mk: prohibit definition of symbols defined by gnulib
30587         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30588         definition of symbols defined by gnulib.
30589
30590 2010-05-09  Bruno Haible  <bruno@clisp.org>
30591
30592         acl: Avoid test failure on Cygwin-hosted mingw.
30593         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30594
30595 2010-05-09  Bruno Haible  <bruno@clisp.org>
30596
30597         error: Use system's fcntl function.
30598         * lib/error.c (fcntl): Undefine.
30599
30600 2010-05-09  Jim Meyering  <meyering@redhat.com>
30601
30602         verify: adjust formatting to be more consistent
30603         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30604         argument-list '('s, and after one comma.
30605
30606 2010-05-09  Bruno Haible  <bruno@clisp.org>
30607
30608         error: More reliable output on mingw.
30609         * lib/error.c: Include <windows.h>.
30610         (is_open): New function.
30611         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30612         defined.
30613
30614 2010-05-09  Bruno Haible  <bruno@clisp.org>
30615
30616         vasnprintf: Fix syntax errors in libintl build on mingw.
30617         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30618         pad_ourselves and prec_ourselves after use.
30619
30620 2010-05-08  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/config.charset: Update comments for Cygwin 1.7.
30623         * lib/localcharset.c: Likewise.
30624
30625 2010-05-07  Jim Meyering  <meyering@redhat.com>
30626
30627         init.sh: improve comments
30628         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30629         . "${srcdir=.}/init.sh"; path_prepend_ .
30630         Add a note about path_prepend_ and the alternative of using
30631         TESTS_ENVIRONMENT.
30632
30633 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30634
30635         exclude: Unescape hashed patterns in wildcard mode.
30636         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30637         to the hash list.
30638         * tests/test-exclude8.sh: New test case.
30639         * modules/exclude-tests: Add new test.
30640
30641 2010-05-05  Eric Blake  <eblake@redhat.com>
30642
30643         verify: automate tests
30644         * modules/verify-tests: New module.
30645         * tests/test-verify.sh: New file.
30646         * tests/test-verify.c: Guard each negative test with a unique id.
30647         Also avoid warning about unused left hand of comma expressions.
30648
30649 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30650
30651         Further improvements to verify.h, suggested by Eric Blake.
30652         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30653         the GL_* versions, to avoid collision with OpenGL.
30654         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30655         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30656         than testing merely whether it's defined.
30657
30658         Modify verify.h to pacify gcc -Wredundant_decls.
30659         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30660         These use the prefix "GL_" since they're likely to be useful elsewhere.
30661         We may need to break them out into a different .h file.
30662         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30663         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30664         of verify_function__.
30665
30666 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30667
30668         Tests for module pwrite.
30669         * modules/pwrite-tests: New file.
30670         * tests/test-pwrite.sh: New file.
30671         * tests/test-pwrite.c: New file.
30672
30673         New module pwrite.
30674         * lib/unistd.in.h (pwrite): New declaration.
30675         * lib/pwrite.c: New file, from glibc with modifications.
30676         * m4/pwrite.m4: New file.
30677         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30678         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30679         REPLACE_PWRITE.
30680         * modules/pwrite: New file.
30681         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30682         REPLACE_PWRITE.
30683         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30684         * doc/posix-functions/pwrite.texi: Mention the new module.
30685
30686 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30687
30688         pread: Update documentation.
30689         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30690
30691 2010-05-04  Eric Blake  <eblake@redhat.com>
30692
30693         docs: update cygwin progress
30694         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30695         this bug.
30696         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30697         Added in cygwin 1.7.2.
30698         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30699         Likewise.
30700         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30701         Likewise.
30702         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30703         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30704         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30705         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30706         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30707         Mention nproc module.
30708         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30709         bug in cygwin 1.7.5 addition.
30710         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30711         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30712         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30713         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30714         1.7.5.
30715         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30716         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30717         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30718         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30719         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30720         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30721         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30722         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30723         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30724         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30725         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30726         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30727         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30728         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30729         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30730         Likewise.
30731         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30732         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30733         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30734         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30735         Likewise.
30736         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30737         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30738         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30739         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30740         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30741         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30742         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30743         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30744         Likewise.
30745         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30746         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30747         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30748         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30749         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30750         Likewise.
30751         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30752         Likewise.
30753         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30754         Likewise.
30755         * doc/glibc-functions/xdrrec_endofrecord.texi
30756         (xdrrec_endofrecord): Likewise.
30757         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30758         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30759         Likewise.
30760         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30761         Likewise.
30762
30763 2010-05-04  Jim Meyering  <meyering@redhat.com>
30764
30765         gendocs.sh: make its "-s FILE" option more useful
30766         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30767         $PACKAGE to reflect the probably-different basename of "FILE".
30768
30769 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30770
30771         bootstrap: don't ignore download_po_files failure
30772         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30773         failure.
30774
30775 2010-05-03  Jim Meyering  <meyering@redhat.com>
30776
30777         maint.mk: allow to pass options to gendocs.sh
30778         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30779         (gendocs_options_): New overridable variable.
30780
30781         gnu-web-doc-update: don't ignore configure or build failure
30782         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30783
30784         announce-gen: backslash-escape '@'s in --help output
30785         * build-aux/announce-gen: Fix syntax errors.
30786
30787         maint.mk, announce-gen: allow project-specific announcement mail headers
30788         * top/maint.mk (translation_project_): Define default.
30789         (announcement_Cc_, announcement_mail_headers_): Likewise.
30790         (announcement): Invoke announce-gen with new --mail-headers option.
30791         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30792
30793         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30794         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30795         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30796         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30797         line in the "err2" output file when running "make check" in verbose
30798         mode (i.e., with set -x enabled).
30799
30800 2010-05-03  Bruno Haible  <bruno@clisp.org>
30801
30802         wctob: Fix for weird platforms.
30803         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30804         argument value.
30805
30806 2010-05-03  Jim Meyering  <meyering@redhat.com>
30807
30808         maint.mk: prohibit unwarranted use of <strings.h>
30809         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30810         strings.h in a file that does not also use strcasecmp, strncasecmp,
30811         ffs or ffsll.
30812
30813         maint.mk: remove obsolete comments
30814         * top/maint.mk: Remove stale, commented-out rules.
30815
30816 2010-05-02  Bruno Haible  <bruno@clisp.org>
30817
30818         wcwidth: Declare also when it's aliased.
30819         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
30820         macro.
30821
30822 2010-05-02  Bruno Haible  <bruno@clisp.org>
30823
30824         Fix regression from 2010-04-25.
30825         * gnulib-tool (func_modules_transitive_closure): Check the status of
30826         all modules, not only of the tests that are of the form foo-tests where
30827         foo is a module.
30828
30829 2010-05-02  Bruno Haible  <bruno@clisp.org>
30830
30831         wctob: Work around nasty Cygwin 1.7.2 bug.
30832         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
30833         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
30834
30835 2010-05-01  Bruno Haible  <bruno@clisp.org>
30836
30837         fpurge: Sharper test.
30838         * tests/test-fpurge.c (main): Add one more ftell check.
30839         * modules/fpurge-tests (Depends-on): Add ftell.
30840         Suggested by Eric Blake.
30841
30842 2010-05-01  Bruno Haible  <bruno@clisp.org>
30843
30844         ftello: Another test.
30845         * tests/test-ftello3.c: New file.
30846         * modules/ftello-tests (Files): Add it.
30847         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30848         MOSTLYCLEANFILES.
30849
30850         ftell: Another test.
30851         * tests/test-ftell3.c: New file.
30852         * modules/ftell-tests (Files): Add it.
30853         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
30854         MOSTLYCLEANFILES.
30855
30856 2010-05-01  Bruno Haible  <bruno@clisp.org>
30857
30858         ftell, ftello: Work around Solaris bug.
30859         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
30860         * lib/ftello.c: Include stdio-impl.h.
30861         (ftello): On Solaris, when _IOWRT is set, compute the result without
30862         looking at _IOREAD.
30863         * modules/ftello (Files): Add lib/stdio-impl.h.
30864         * doc/posix-functions/ftell.texi: Mention Solaris bug.
30865         * doc/posix-functions/ftello.texi: Likewise.
30866         Reported by Eric Blake.
30867
30868 2010-05-01  Bruno Haible  <bruno@clisp.org>
30869
30870         freading: Adapt to special meaning of _IOREAD flag on Solaris.
30871         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
30872         the _IOWRT flag is also set.
30873
30874 2010-05-01  Bruno Haible  <bruno@clisp.org>
30875
30876         Fix doc about a HP-UX stdio bug.
30877         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
30878         * doc/posix-functions/ftello.texi: Likewise.
30879
30880 2010-05-01  Bruno Haible  <bruno@clisp.org>
30881
30882         lseek test: Fix failure on Solaris.
30883         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
30884         output.
30885
30886 2010-04-30  Jim Meyering  <meyering@redhat.com>
30887
30888         bootstrap: don't ignore failure to generate po*/Makevars
30889         * build-aux/bootstrap (with_gettext): Don't ignore failure
30890         to create po/Makevars or runtime-po/Makevars.
30891
30892 2010-04-29  Eric Blake  <eblake@redhat.com>
30893
30894         headers: relax license to LGPLv2+
30895         * modules/fcntl-h (License): Relax license.
30896         * modules/getopt-posix (License): Likewise.
30897         * modules/locale (License): Likewise.
30898         * modules/math (License): Likewise.
30899         * modules/pty (License): Likewise.
30900         * modules/sched (License): Likewise.
30901         * modules/search (License): Likewise.
30902         * modules/spawn (License): Likewise.
30903         * modules/stdarg (License): Likewise.
30904         * modules/sysexits (License): Likewise.
30905
30906 2010-04-29  Jim Meyering  <meyering@redhat.com>
30907
30908         inttypes: relax license to LGPLv2+
30909         * modules/inttypes (License): Relax license.
30910
30911 2010-04-29  Simon Josefsson  <simon@josefsson.org>
30912
30913         * top/maint.mk (indent): Run twice to produce idempotent results.
30914
30915 2010-04-28  Bruno Haible  <bruno@clisp.org>
30916
30917         getdate: Generate getdate.c in the source directory.
30918         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
30919         MOSTLYCLEANFILES.
30920         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
30921
30922 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
30923
30924         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
30925         is not declared as a const *; avoid warnings in that case.
30926
30927 2010-04-28  Eric Blake  <eblake@redhat.com>
30928
30929         canonicalize-lgpl: avoid compiler warning
30930         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
30931         declaration' / 'extraneous semicolon' warning with some compilers.
30932         Reported by Andreas Gruenbacher.
30933
30934 2010-04-28  Jim Meyering  <meyering@redhat.com>
30935
30936         init.sh: ensure a more reliable exit status when exiting via trap
30937         * tests/init.sh (setup_): Don't rely on $? in signal handler.
30938         Inspired by patches from Dmitry V. Levin.
30939         Also trap on signal 3 (SIGQUIT).
30940
30941 2010-04-27  Bruno Haible  <bruno@clisp.org>
30942
30943         Update doc about utimes().
30944         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
30945         'utimens' module.
30946         Reported by Andreas Gruenbacher <agruen@suse.de>.
30947
30948 2010-04-27  Eric Blake  <eblake@redhat.com>
30949
30950         full-read, full-write: relax license
30951         * modules/full-read (License): Drop to LGPLv2+.
30952         * modules/full-write (License): Likewise.
30953         * modules/safe-read (License): Likewise.
30954         * modules/safe-write (License): Likewise.
30955
30956         pthread: mention library for linking
30957         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30958
30959 2010-04-27  Jim Meyering  <meyering@redhat.com>
30960
30961         maint.mk: fix a bug introduced in last change
30962         * top/maint.mk (gl_assured_headers_): Now that all names are on
30963         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30964         is not anchored to end of word, it should be adequate.
30965
30966         maint.mk: avoid side-effect in latest syntax-check
30967         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30968         to run commands via $(shell...), and hence to incur cost only when
30969         the new rule is actually run.
30970
30971         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30972         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30973         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30974         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30975         (gl_assured_headers_, az_, AZ_): Define.
30976         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30977
30978 2010-04-26  Jim Meyering  <jim@meyering.net>
30979             Bruno Haible  <bruno@clisp.org>
30980
30981         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30982         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30983         Prompted by an exchange with Gilles Espinasse.
30984
30985 2010-04-26  Jim Meyering  <meyering@redhat.com>
30986
30987         git-version-gen: aesthetic tweak
30988         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30989         so that the command remains on a single line.
30990
30991 2010-04-26  Eric Blake  <eblake@redhat.com>
30992
30993         git-version-gen: allow use on EBCDIC hosts
30994         * build-aux/git-version-gen (dirty): Use literal rather than tying
30995         ourselves to ascii.
30996         Reported by Steve Goetze.
30997
30998 2010-04-25  Bruno Haible  <bruno@clisp.org>
30999
31000         netdb: Add support for GNULIB_POSIXCHECK.
31001         * lib/netdb.in.h: Include warn-on-use.h.
31002         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31003         functions are used when GNULIB_POSIXCHECK is defined and the
31004         getaddrinfo module is not in use.
31005         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31006         freeaddrinfo, gai_strerror, getnameinfo are declared.
31007         * modules/netdb (Depends-on): Add warn-on-use.
31008         (Makefile.am): Include warn-on-use.h in netdb.h.
31009
31010 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31011
31012         build: avoid "make check" failure without .git/ directory
31013         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31014         there is no .git/ directory.
31015
31016 2010-04-25  Bruno Haible  <bruno@clisp.org>
31017
31018         ptsname: Fix misuse of ttyname_r.
31019         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31020         of errno.
31021
31022 2010-04-25  Bruno Haible  <bruno@clisp.org>
31023
31024         ttyname_r: Make it work on Solaris 10.
31025         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31026         if the system function has the POSIX declaration. Test whether the
31027         function fails if the buffer is less than 128 bytes large.
31028         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31029         system's ttyname_r function. Provide a reasonably large buffer.
31030         * modules/ttyname_r (Depends-on): Add extensions.
31031         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31032
31033 2010-04-25  Bruno Haible  <bruno@clisp.org>
31034
31035         Use the 'extensions' module for some more functions on Solaris.
31036         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31037         module.
31038         * doc/posix-functions/ctime_r.texi: Likewise.
31039         * doc/posix-functions/getgrgid_r.texi: Likewise.
31040         * doc/posix-functions/getgrnam_r.texi: Likewise.
31041         * doc/posix-functions/getpwnam_r.texi: Likewise.
31042         * doc/posix-functions/getpwuid_r.texi: Likewise.
31043         * doc/posix-functions/readdir_r.texi: Likewise.
31044         * doc/posix-functions/sigwait.texi: Likewise.
31045         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31046         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31047
31048 2010-04-25  Bruno Haible  <bruno@clisp.org>
31049
31050         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31051         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31052         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31053         * lib/ttyname_r.c: Include <limits.h>.
31054         (ttyname_r): Define using the system's ttyname_r function, if it exists
31055         and not on Solaris.
31056         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31057         set.
31058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31059         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31060         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31061         Reported by Simon Josefsson.
31062
31063 2010-04-25  Bruno Haible  <bruno@clisp.org>
31064
31065         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31066         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31067         * doc/posix-functions/ctime_r.texi: Likewise.
31068         * doc/posix-functions/getgrgid_r.texi: Likewise.
31069         * doc/posix-functions/getgrnam_r.texi: Likewise.
31070         * doc/posix-functions/getlogin_r.texi: Likewise.
31071         * doc/posix-functions/getpwnam_r.texi: Likewise.
31072         * doc/posix-functions/getpwuid_r.texi: Likewise.
31073         * doc/posix-functions/readdir_r.texi: Likewise.
31074         * doc/posix-functions/sigwait.texi: Likewise.
31075         * doc/posix-functions/ttyname_r.texi: Likewise.
31076         Reported by Simon Josefsson.
31077
31078 2010-04-25  Bruno Haible  <bruno@clisp.org>
31079
31080         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31081         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31082         also to --create-testdir.
31083         (func_acceptable): Don't consider the status of *-tests modules here.
31084         (func_modules_transitive_closure): Consider it here, before including a
31085         test module.
31086         (func_import, func_create_testdir): Set inc_all_direct_tests,
31087         inc_all_indirect_tests.
31088         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31089         --create-testdir and --create-megatestdir.
31090
31091 2010-04-25  Bruno Haible  <bruno@clisp.org>
31092
31093         gnulib-tool: Add --without-*-tests options.
31094         * gnulib-tool (func_usage): Document the --without-*-tests options.
31095         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31096         excl_unportable_tests): New variables.
31097         Fail if they are specified with --import or --update.
31098         (func_acceptable): Respect the excl_*_tests variables.
31099         (func_import): Set the excl_*_tests variables to empty.
31100
31101 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31102             Bruno Haible  <bruno@clisp.org>
31103
31104         Work around a MacOS X 10.4 bug with openpty.
31105         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31106         * tests/test-openpty.c (main): Close the master side explicitly.
31107
31108 2010-04-25  Bruno Haible  <bruno@clisp.org>
31109
31110         strnlen: Fix a C++ test error on MacOS X and Solaris.
31111         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31112         the function is not declared.
31113         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31114         Simon Josefsson.
31115
31116 2010-04-24  Bruno Haible  <bruno@clisp.org>
31117
31118         Avoid a gcc warning.
31119         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31120         of correct type for %08lx directive.
31121         Reported by Eric Blake.
31122
31123 2010-04-24  Bruno Haible  <bruno@clisp.org>
31124
31125         vasnprintf: Correct errno value in case of out-of-memory.
31126         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31127         or sprintf. Use the errno value from SNPRINTF or sprintf.
31128         Reported by Ian Beckwith <ianb@erislabs.net>.
31129
31130 2010-04-24  Bruno Haible  <bruno@clisp.org>
31131
31132         ansi-c++-opt: Find correct compiler when cross-compiling.
31133         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31134         AC_CHECK_PROGS.
31135         Reported by Simon Josefsson.
31136
31137 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31138
31139         vc-list-files: Add support for subversion
31140         * build-aux/vc-list-files: Use "svn list" to generate the list of
31141         files controlled by subversion.
31142
31143 2010-04-23  Jim Meyering  <meyering@redhat.com>
31144
31145         vc-list-files tests: convert to use init.sh
31146         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31147         path_prepend_.
31148         Use Exit, not exit.
31149         Use skip_ rather than open coding it.
31150         Remove trap set-up and compare definitions.
31151         * tests/test-vc-list-files-git.sh: Likewise.
31152         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31153
31154 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31155
31156         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31157         backup files.
31158
31159 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31160
31161         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31162
31163 2010-04-20  Eric Blake  <eblake@redhat.com>
31164
31165         tests: be robust to ignored SIGPIPE
31166         * tests/test-select-in.sh: Consume all output.
31167         * tests/test-lseek.sh: Check correct exit status, while avoiding
31168         EPIPE.
31169
31170 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31171             Bruno Haible  <bruno@clisp.org>
31172
31173         visibility: Don't use -fvisibility if it leads to a warning.
31174         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31175         yes, don't pretend that visibility works if it leads to a warning.
31176         Reported by Mike Gran <spk121@yahoo.com>.
31177
31178 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31179
31180         * build-aux/bootstrap: Use "git -h" for testing for supported options
31181         instead of "git --help".  The short-form option only shows a summary,
31182         and doesn't layout the full man page.  Grep for the full option name
31183         in the summary, too.
31184
31185 2010-04-19  Bruno Haible  <bruno@clisp.org>
31186
31187         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31188         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31189         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31190         mention of RELOCATABLE_STRIP.
31191         Reported by Sylvain Beucler <beuc@beuc.net>.
31192
31193 2010-04-19  Bruno Haible  <bruno@clisp.org>
31194
31195         * lib/diffseq.h: Fix typo in comment.
31196         Reported by Eric Blake.
31197
31198 2010-04-19  Bruno Haible  <bruno@clisp.org>
31199
31200         ioctl: Move autoconf macro to a .m4 file.
31201         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31202         * modules/ioctl (Files): Add it.
31203         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31204         Reported by Ian Beckwith <ianb@erislabs.net>.
31205
31206 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31207             Bruno Haible  <bruno@clisp.org>
31208
31209         diffseq: Accommodate use-case with abstract arrays.
31210         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31211         is not defined.
31212         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31213         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31214
31215 2010-04-18  Bruno Haible  <bruno@clisp.org>
31216
31217         * doc/posix-headers/stdbool.texi: More precise wording.
31218
31219 2010-04-17  Jim Meyering  <meyering@redhat.com>
31220
31221         maint.mk: use gnu-style indentation in an embedded perl script
31222         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31223         Rename variable: s/two/last_two_bytes/
31224
31225 2010-04-16  Eric Blake  <eblake@redhat.com>
31226
31227         test-stdbool: skip test that fails with Solaris CC
31228         * tests/test-stdbool.c (f): Skip test that causes compilation
31229         error under buggy C++ compiler.
31230         * lib/stdbool.in.h: Document the limitation.
31231         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31232
31233         setenv: allow compilation with C++
31234         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31235         register keyword.
31236
31237         stdint: allow test to pass with C++
31238         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31239
31240         getopt: allow compilation with C++
31241         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31242         struct.
31243         * lib/getopt.c (_getopt_internal_r): Use correct type.
31244         Reported by Dagobert Michelson, via Joel E. Denny.
31245
31246 2010-04-16  Bruno Haible  <bruno@clisp.org>
31247
31248         Override netdb.h always.
31249         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31250         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31251         Reported by Ludovic Courtès <ludo@gnu.org>.
31252
31253 2010-04-15  Bruno Haible  <bruno@clisp.org>
31254
31255         openpty: Fix mistake from 2010-03-21.
31256         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31257         Reported by Simon Josefsson.
31258
31259 2010-04-15  Eric Blake  <eblake@redhat.com>
31260
31261         test-forkpty: fix expected signature
31262         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31263         Reported by Simon Josefsson.
31264
31265 2010-04-15  Jim Meyering  <meyering@redhat.com>
31266
31267         maint.mk: texinfo_suffix_re_: correct the default regexp
31268         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31269
31270         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31271         make it configurable via texinfo_suffix_re_.
31272
31273 2010-04-14  Eric Blake  <eblake@redhat.com>
31274
31275         strtok_r: relax license to LGPLv2+
31276         * modules/strtok_r (License): Relax license.
31277         Reported by Matthias Bolte.
31278
31279 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31280
31281         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31282         version 1.4.4 by default instead of requiring the libgcrypt
31283         version used during build.  This makes it possible to use the
31284         application with older but still binary compatible libgcrypt
31285         versions.
31286
31287 2010-04-13  Eric Blake  <eblake@redhat.com>
31288
31289         getopt-gnu: match recent glibc fixes and posix ruling
31290         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31291         '+' handling, when requesting extensions.
31292         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31293         'W;' handling.
31294         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31295         * doc/posix-functions/getopt.texi (getopt): Document this.
31296         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31297         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31298         Likewise.
31299
31300         getopt: merge bug fixes from glibc
31301         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31302         diagnostics.  Honor '+:' correctly.  Reject ';'.
31303
31304         getopt-posix: detect MacOS bug
31305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31306         optind when missing a required argument.
31307         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31308         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31309         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31310         Likewise.
31311
31312         getopt-posix: avoid spurious failure on Solaris
31313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31314         an indicator that setting optind=1 is sufficient for reset.
31315
31316         getopt-posix: avoid spurious failure on FreeBSD
31317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31318         in POSIX mode, since the m4 test uses it.
31319
31320         gnulib-tool: silence warning on BSD sh
31321         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31322
31323 2010-04-13  Jim Meyering  <meyering@redhat.com>
31324
31325         doc: users.txt: GNU patch now uses gnulib
31326         * users.txt: Add patch.
31327
31328 2010-04-12  Jim Meyering  <meyering@redhat.com>
31329
31330         maint.mk: generate more concise timing data for syntax-check rules
31331         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31332         " done" from each line that reports a syntax-check test duration.
31333
31334 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31335
31336         git-version-gen: use "git update-index..." rather than "git status"
31337         * build-aux/git-version-gen: Use git update-index --refresh, not
31338         "git status".  With some versions of git, "git status" would fail
31339         to update the index and result in an unwarranted "-dirty" suffix.
31340
31341 2010-04-11  Jim Meyering  <meyering@redhat.com>
31342
31343         openat: correct formatting (no semantic change)
31344         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31345         Suggested by Bruno Haible.
31346
31347 2010-04-11  Bruno Haible  <bruno@clisp.org>
31348
31349         Stricter declaration checking in testdirs.
31350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31351         If for_tests is true, augment AM_CPPFLAGS to define
31352         GNULIB_STRICT_CHECKING.
31353         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31354         GNULIB_STRICT_CHECKING is defined, verify that the function is
31355         declared.
31356
31357 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31358             Bruno Haible  <bruno@clisp.org>
31359
31360         libunistring: Improve configure output.
31361         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31362         Don't say "consider installing GNU libunistring" when checking again
31363         with libiconv.
31364
31365 2010-04-11  Bruno Haible  <bruno@clisp.org>
31366
31367         libunistring: Correct value of $LTLIBUNISTRING.
31368         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31369         correct the value of $LTLIBUNISTRING.
31370
31371 2010-04-11  Bruno Haible  <bruno@clisp.org>
31372
31373         havelib: Add static libraries to LIBS in the right order.
31374         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31375         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31376
31377 2010-04-11  Bruno Haible  <bruno@clisp.org>
31378
31379         libunistring: Detect libunistring also when it depends on libiconv.
31380         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31381         the second AC_LIB_HAVE_LINKFLAGS invocation.
31382
31383 2010-04-11  James Youngman  <jay@gnu.org>
31384
31385         close-stream: declare local scalars to be "const"
31386         * lib/close-stream.c (close_stream): Make boolean variables const
31387         to document the fact that we set but do not change them.
31388
31389 2010-04-11  Bruno Haible  <bruno@clisp.org>
31390
31391         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31392
31393 2010-04-11  Jim Meyering  <meyering@redhat.com>
31394
31395         maint.mk: don't include dist-check.mk
31396         * top/maint.mk: Remove bogus include directive.
31397
31398         maint.mk: improve empty-line-at-EOF check
31399         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31400         solution, rather than tail+Perl-based one.  The latter would read
31401         a few kilobytes from the end of each file, and did not handle empty
31402         files properly.
31403
31404         maint.mk: print the elapsed time for each syntax-check rule
31405         * top/maint.mk (sc_m_rules_): Save start time in a file.
31406         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31407         (local-check): Interpose the .z rules
31408
31409 2010-04-11  Jim Meyering  <meyering@redhat.com>
31410
31411         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31412         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31413         empty file with one that ends in an empty line.
31414
31415 2010-04-10  Bruno Haible  <bruno@clisp.org>
31416
31417         mkdir: Make it work on mingw64.
31418         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31419         * lib/mkdir.c: Update comment.
31420         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
31421
31422 2010-04-10  Bruno Haible  <bruno@clisp.org>
31423
31424         Don't override improved macro from newer autoconf.
31425         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31426         autoconf >= 2.62.
31427         Reported by Joel E. Denny <jdenny@clemson.edu>.
31428
31429 2010-04-10  Jim Meyering  <meyering@redhat.com>
31430
31431         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31432         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31433
31434         maint.mk: correct a diagnostic
31435         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31436         in diagnostic; now use $prohibit.
31437
31438 2010-04-10  Bruno Haible  <address@hidden>
31439
31440         fchownat: Fix a C++ test error on Solaris 8.
31441         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31442         the function does not exist.
31443
31444 2010-04-10  Bruno Haible  <bruno@clisp.org>
31445
31446         vasnprintf: Add more tests.
31447         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31448         (test_function): Test converting an invalid wide string.
31449
31450         vasnprintf: Correct handling of unconvertible wide string arguments.
31451         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31452         VASNPRINTF.
31453         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31454         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31455         smaller than the expected maximum need for the directive. Set errno to
31456         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31457         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31459         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31460         * modules/vasnprintf (Files): Add m4/printf.m4.
31461         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31462
31463 2010-04-10  Bruno Haible  <bruno@clisp.org>
31464
31465         vasnprintf: Fix crash in %ls directive.
31466         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31467         string is passed as argument to %ls, with no precision and no width.
31468         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31469
31470 2010-04-10  Bruno Haible  <bruno@clisp.org>
31471
31472         vasnprintf: Fix multiple test failures on mingw.
31473         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31474         _snprintf, or snwprintf, not _snwprintf.
31475
31476 2010-04-10  Bruno Haible  <bruno@clisp.org>
31477
31478         write: Fix a C++ test error on mingw.
31479         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31480
31481 2010-04-10  Bruno Haible  <bruno@clisp.org>
31482
31483         vasnprintf test: Reduce code duplication.
31484         * tests/test-vasnprintf.c (test_function): New function, extracted from
31485         test_vasnprintf.
31486         (test_vasnprintf, test_asnprintf): Invoke it.
31487
31488 2010-04-10  Bruno Haible  <bruno@clisp.org>
31489
31490         strnlen: Fix warning in C++ mode on MacOS X.
31491         * lib/string.in.h (strnlen): Use the modern idiom.
31492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31493         defining strnlen as a macro already in <config.h>.
31494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31495         REPLACE_STRNLEN.
31496         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31497         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31498
31499 2010-04-08  James Youngman  <jay@gnu.org>
31500
31501         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31502         the example.
31503
31504 2010-04-09  Jim Meyering  <meyering@redhat.com>
31505
31506         maint.mk: print better diagnostic when there is no $(_hv_file)
31507         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31508         announce that when $(_hv_file) (aka help-version) does not exist.
31509
31510         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31511         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31512         not try to interpret its random input bytes.  Jarno Rajahalme reported
31513         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31514         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31515         (mktempd_): Likewise, just in case.
31516
31517         ftruncate: add two years to projected module removal date: 2012
31518         * m4/ftruncate.m4: Adjust comments.
31519
31520         ftruncate: mark module as obsolete; even MinGW provides it, now
31521         * modules/ftruncate (Status): Obsolete.
31522         (Notice): Say that.
31523         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31524         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31525
31526 2010-04-08  Bruno Haible  <bruno@clisp.org>
31527
31528         Fix side effects from tests-related modules.
31529         * modules/dprintf-posix (Comment): New section.
31530         * modules/fprintf-posix (Comment): Likewise.
31531         * modules/obstack-printf-posix (Comment): Likewise.
31532         * modules/printf-posix (Comment): Likewise.
31533         * modules/snprintf-posix (Comment): Likewise.
31534         * modules/sprintf-posix (Comment): Likewise.
31535         * modules/vasnprintf-posix (Comment): Likewise.
31536         * modules/vasprintf-posix (Comment): Likewise.
31537         * modules/vdprintf-posix (Comment): Likewise.
31538         * modules/vfprintf-posix (Comment): Likewise.
31539         * modules/vprintf-posix (Comment): Likewise.
31540         * modules/vsnprintf-posix (Comment): Likewise.
31541         * modules/vsprintf-posix (Comment): Likewise.
31542         * modules/xprintf-posix (Comment): Likewise.
31543         * modules/xvasprintf-posix (Comment): Likewise.
31544         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31545         * modules/floorf-tests (Depends-on): Likewise.
31546         * modules/round-tests (Depends-on): Likewise.
31547         * modules/roundf-tests (Depends-on): Likewise.
31548         * modules/trunc-tests (Depends-on): Likewise.
31549         * modules/truncf-tests (Depends-on): Likewise.
31550         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31551         'fprintf-posix' module is not present.
31552         * tests/test-floorf2.c (check): Likewise.
31553         * tests/test-trunc2.c (check): Likewise.
31554         * tests/test-truncf2.c (check): Likewise.
31555         * tests/test-round2.c (equal): Likewise.
31556         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31557
31558 2010-04-07  Karl Berry  <karl@gnu.org>
31559
31560         * config/srclist.txt,
31561         * config/srclistvars.sh,
31562         * config/srclist-update: doc fixes.
31563
31564 2010-04-07  Jim Meyering  <meyering@redhat.com>
31565
31566         maint.mk: add a PATH crosschecking syntax-check rule
31567         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31568         Useful if you use a test like the one in help-version (coreutils,
31569         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31570         printed by prog --version.
31571
31572 2010-04-06  Bruno Haible  <bruno@clisp.org>
31573
31574         Fix link error on mingw.
31575         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31576         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31577
31578 2010-04-06  Bruno Haible  <bruno@clisp.org>
31579
31580         Assume rmdir exists.
31581         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31582
31583 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31584
31585         doc: update users.txt
31586         * users.txt: Add gcal.
31587
31588 2010-04-06  Jim Meyering  <meyering@redhat.com>
31589
31590         init.sh: simply unset TMPDIR rather than risking env -i
31591         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31592         although it probably works fine on all Unix-based systems, some
31593         systems (Cygwin?) cannot tolerate a totally cleared environment.
31594         Suggestion from Eric Blake.
31595
31596 2010-04-06  Jim Meyering  <meyering@redhat.com>
31597
31598         init.sh: portability fix: use env's POSIX-specified -i option not -u
31599         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31600         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31601
31602 2010-04-05  Bruno Haible  <bruno@clisp.org>
31603
31604         btowc: Work around Cygwin 1.7.2 bug.
31605         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31606         does not map NUL to 0.
31607         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31608
31609 2010-04-05  Bruno Haible  <bruno@clisp.org>
31610
31611         Make the multithread modules work on Cygwin 1.7.2.
31612         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31613         imported symbols can be declared weak, so that it returns "no" on
31614         Cygwin 1.7.2.
31615
31616 2010-04-05  Bruno Haible  <bruno@clisp.org>
31617
31618         Use the module 'strncat'.
31619         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31620
31621         Tests for module 'strncat'.
31622         * modules/strncat-tests: New file.
31623         * tests/test-strncat.c: New file.
31624
31625         New module 'strncat'.
31626         * lib/string.in.h (strncat): New declaration.
31627         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31628         * m4/strncat.m4: New file, based on m4/memchr.m4.
31629         * modules/strncat: New file.
31630         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31631         is declared.
31632         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31633         REPLACE_STRNCAT.
31634         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31635         REPLACE_STRNCAT.
31636         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31637         module.
31638         * tests/test-string-c++.cc: Check signature of strncat.
31639
31640 2010-04-05  Jim Meyering  <meyering@redhat.com>
31641
31642         xstrtoumax-tests: convert to use init.sh
31643         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31644         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31645         Use Exit, not exit.
31646         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31647
31648         xstrtoimax-tests: convert to use init.sh
31649         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31650         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31651         Use Exit, not exit.
31652         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31653
31654 2010-04-05  Bruno Haible  <bruno@clisp.org>
31655
31656         sys_socket: Avoid #define replacements in C++ mode.
31657         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31658         warning to the function if possible, rather than #defining the symbol
31659         to a dysfunctional alias.
31660
31661 2010-04-05  Bruno Haible  <bruno@clisp.org>
31662
31663         fseeko: Fix C++ test error on mingw.
31664         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31665         gl_FUNC_FSEEKO.
31666         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31667         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31668         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31669         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31670
31671 2010-04-05  Bruno Haible  <bruno@clisp.org>
31672
31673         duplocale: Improve test output.
31674         * tests/test-duplocale.c (main): Print reason for skipped test.
31675
31676 2010-04-05  Bruno Haible  <bruno@clisp.org>
31677
31678         Assume rmdir exists.
31679         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31680         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31681
31682 2010-04-05  Bruno Haible  <bruno@clisp.org>
31683
31684         Fix link error on Solaris 8 with cc.
31685         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31686
31687 2010-04-05  Bruno Haible  <bruno@clisp.org>
31688
31689         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31690         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31691
31692 2010-04-05  Bruno Haible  <bruno@clisp.org>
31693
31694         vasprintf: Update documentation.
31695         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31696
31697 2010-04-05  Bruno Haible  <bruno@clisp.org>
31698
31699         ptsname: Improve test.
31700         * tests/test-ptsname.c (main): Also try the various master names of BSD
31701         systems.
31702
31703 2010-04-05  Bruno Haible  <bruno@clisp.org>
31704
31705         memchr: Avoid a possible C++ test error.
31706         * lib/string.in.h (memchr): Provide declaration if function is missing.
31707         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31708         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31710         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31711
31712 2010-04-05  Bruno Haible  <bruno@clisp.org>
31713
31714         strtok_r: Improve idiom.
31715         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31716         AC_LIBOBJ is used.
31717
31718 2010-04-05  Bruno Haible  <bruno@clisp.org>
31719
31720         strdup: Improve idiom.
31721         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31722         AC_LIBOBJ is used.
31723         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31724         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31725         when AC_LIBOBJ is used.
31726
31727 2010-04-05  Bruno Haible  <bruno@clisp.org>
31728
31729         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31730         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31731         don't set REPLACE_MBSINIT to 1.
31732         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31733         don't set REPLACE_MBRTOWC to 1.
31734         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31735         exist, don't set REPLACE_MBSRTOWCS to 1.
31736         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31737         exist, don't set REPLACE_MBSNRTOWCS to 1.
31738         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31739         don't set REPLACE_WCRTOMB to 1.
31740         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31741         exist, don't set REPLACE_WCSRTOMBS to 1.
31742         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31743         exist, don't set REPLACE_WCSNRTOMBS to 1.
31744
31745 2010-04-05  Bruno Haible  <bruno@clisp.org>
31746
31747         ldexpl: Improve idiom.
31748         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31749         make sure to set HAVE_DECL_LDEXPL to 0.
31750
31751 2010-04-05  Jim Meyering  <meyering@redhat.com>
31752
31753         xstrtol-tests: convert to use init.sh
31754         * modules/xstrtol-tests (Files): Add tests/init.sh.
31755         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31756         Use Exit, not exit.
31757         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31758
31759         atexit-tests: convert to use init.sh
31760         * modules/atexit-tests (Files): Add tests/init.sh.
31761         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31762         Use Exit, not exit.
31763         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31764
31765         init.sh: fix typo
31766         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31767
31768         init.sh: make it easier for a test script to write to the tty, ...
31769         when using automake's parallel-tests mode.
31770         * tests/init.sh (stderr_fileno_): Define overridable variable.
31771         (warn_): New function, to use it.
31772         (fail_, skip_, framework_failure_): Use warn_.
31773
31774 2010-04-04  Bruno Haible  <bruno@clisp.org>
31775
31776         btowc: Avoid warning.
31777         * lib/btowc.c: Include <stdlib.h>.
31778         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31779
31780 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31781             Bruno Haible  <bruno@clisp.org>
31782
31783         wchar: Port to NetBSD 1.5.
31784         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31785         * lib/wctype.in.h (WEOF): Likewise.
31786
31787 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31788             Bruno Haible  <bruno@clisp.org>
31789
31790         Port extended stdio to NetBSD 1.5.
31791         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31792         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31793         older.
31794
31795 2010-04-04  Bruno Haible  <bruno@clisp.org>
31796
31797         string: Remove unused substitution.
31798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31799         HAVE_DECL_STRERROR.
31800         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31801
31802 2010-04-04  Bruno Haible  <bruno@clisp.org>
31803
31804         strtod: Avoid a possible C++ test error.
31805         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31806         set REPLACE_STRTOD.
31807
31808 2010-04-04  Bruno Haible  <bruno@clisp.org>
31809
31810         strerror: Update documentation.
31811         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31812
31813 2010-04-04  Bruno Haible  <bruno@clisp.org>
31814
31815         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31816         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31817         _GL_CXXALIAS_SYS_CAST.
31818
31819 2010-04-04  Bruno Haible  <bruno@clisp.org>
31820
31821         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31822         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
31823         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
31824         REPLACE_FREXPL to 1.
31825         * doc/posix-functions/frexpl.texi: Update documentation.
31826
31827 2010-04-04  Bruno Haible  <bruno@clisp.org>
31828
31829         math: Fix some C++ test errors on Solaris 8 and Cygwin.
31830         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
31831
31832 2010-04-04  Bruno Haible  <bruno@clisp.org>
31833
31834         Implement nanosleep for native Windows.
31835         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
31836
31837 2010-04-04  Bruno Haible  <bruno@clisp.org>
31838
31839         math: Fix some C++ test errors on Solaris 8.
31840         * lib/math.in.h (truncf, trunc): Use simpler idiom.
31841
31842 2010-04-04  Bruno Haible  <bruno@clisp.org>
31843
31844         math: Fix some C++ test errors on Cygwin.
31845         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
31846         truncl): Provide declaration if the system does not have it.
31847         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
31848         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
31849         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
31850         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
31851         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
31852         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
31853         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
31854         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
31855         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
31856         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
31857         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
31858         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
31859         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
31860         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
31861         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
31862         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
31863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
31864         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31865         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31866         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
31867         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
31868         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
31869
31870 2010-04-04  Bruno Haible  <bruno@clisp.org>
31871
31872         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
31873         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
31874         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
31875         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
31876         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31877         * m4/isinf.m4 (gl_ISINF): Likewise.
31878         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31879
31880 2010-04-04  Bruno Haible  <bruno@clisp.org>
31881
31882         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
31883         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31884
31885 2010-04-04  Bruno Haible  <bruno@clisp.org>
31886
31887         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
31888         * modules/tmpfile (configure.ac): Update.
31889
31890         tmpfile: Fix C++ test error on mingw.
31891         * lib/stdio.in.h (tmpfile): New declaration.
31892         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
31893         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
31894         * modules/tmpfile (Depends-on): Add stdio.
31895         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31896         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
31897         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
31898         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
31899         REPLACE_TMPFILE.
31900         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
31901
31902 2010-04-04  Bruno Haible  <bruno@clisp.org>
31903
31904         ioctl: Fix C++ test error on mingw.
31905         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
31906         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
31907         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
31908
31909 2010-04-03  Bruno Haible  <bruno@clisp.org>
31910
31911         wcwidth: Fix C++ test error on mingw.
31912         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
31913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
31914         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
31915
31916 2010-04-03  Bruno Haible  <bruno@clisp.org>
31917
31918         nanosleep: Fix C++ test error on mingw.
31919         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
31920         * lib/time.in.h (nanosleep): Use modern idiom.
31921         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
31922         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
31923         REPLACE_NANOSLEEP to 1.
31924         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
31925         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
31926
31927 2010-04-03  Bruno Haible  <bruno@clisp.org>
31928
31929         strptime: Fix C++ test error on mingw.
31930         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
31931         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
31932         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
31933         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
31934         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
31935         not REPLACE_STRPTIME.
31936         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
31937         REPLACE_STRPTIME.
31938
31939 2010-04-03  Bruno Haible  <bruno@clisp.org>
31940
31941         timegm: Fix C++ test error on mingw.
31942         * lib/time.in.h (timegm): Use modern idiom.
31943         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
31944         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
31945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
31946         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
31947
31948 2010-04-03  Bruno Haible  <bruno@clisp.org>
31949
31950         timegm: Assume declaration if function exists.
31951         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31952         if it exists. Don't clobber ac_cv_func_timegm.
31953
31954 2010-04-03  Bruno Haible  <bruno@clisp.org>
31955
31956         time_r: Fix C++ test error on mingw.
31957         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31958         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31959         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31960         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31961         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31962
31963 2010-04-03  Bruno Haible  <bruno@clisp.org>
31964
31965         time_r: Minor updates.
31966         * modules/time_r (Description): Mention the provided functions.
31967         * lib/time_r.c: Don't include <string.h>.
31968         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31969         * doc/posix-functions/localtime_r.texi: Likewise.
31970
31971 2010-04-03  Bruno Haible  <bruno@clisp.org>
31972
31973         time: Fix regression introduced on 2010-03-08.
31974         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31975         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31976
31977 2010-04-03  Jim Meyering  <meyering@redhat.com>
31978
31979         maint.mk: don't silently disable project-specific syntax-check rules
31980         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31981         that they need to convert their project-specific syntax-check rules
31982         to use the new _sc_search_regexp.
31983
31984 2010-04-03  Bruno Haible  <bruno@clisp.org>
31985
31986         fchdir: Fix regression introduced on 2010-03-08.
31987         * lib/unistd.in.h (fchdir): Fix declaration.
31988         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31990         REPLACE_FCHDIR.
31991         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31992         REPLACE_FCHDIR.
31993
31994 2010-04-03  Bruno Haible  <bruno@clisp.org>
31995
31996         getpagesize: Fix C++ test error on mingw.
31997         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31998         system does not declare the function.
31999         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32000         declared.
32001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32002         HAVE_DECL_GETPAGESIZE.
32003         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32004
32005 2010-04-03  Bruno Haible  <bruno@clisp.org>
32006
32007         stdio: Make C++ tests work on mingw.
32008         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32009         does not declare the function.
32010
32011 2010-04-03  Bruno Haible  <bruno@clisp.org>
32012
32013         ftello: Fix C++ test error on mingw.
32014         * lib/stdio.in.h (ftello): Use modern idiom.
32015         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32016         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32017         is missing and that it needs to be replaced.
32018         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32020         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32021
32022 2010-04-03  Bruno Haible  <bruno@clisp.org>
32023
32024         fseeko: Fix C++ test error on mingw.
32025         * lib/stdio.in.h (fseeko): Use modern idiom.
32026         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32027         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32028         is missing and that it needs to be replaced.
32029         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32031         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32032
32033 2010-04-03  Bruno Haible  <bruno@clisp.org>
32034
32035         mkstemp: Fix C++ test error on mingw.
32036         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32037         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32038         function is missing and that it needs to be replaced.
32039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32040         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32041
32042 2010-04-03  Bruno Haible  <bruno@clisp.org>
32043
32044         stpncpy: Fix C++ test error on mingw.
32045         * lib/string.in.h (stpncpy): Use modern idiom.
32046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32047         function is missing and that it needs to be replaced.
32048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32049         REPLACE_STPNCPY.
32050         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32051
32052 2010-04-03  Bruno Haible  <bruno@clisp.org>
32053
32054         sys_stat: Fix C++ test error on mingw.
32055         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32056         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32057
32058 2010-04-03  Bruno Haible  <bruno@clisp.org>
32059
32060         pty: Update doc.
32061         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32062
32063 2010-04-03  Bruno Haible  <bruno@clisp.org>
32064
32065         unistd: Fix C++ test error on mingw.
32066         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32067
32068 2010-04-03  Bruno Haible  <bruno@clisp.org>
32069
32070         Update doc regarding mingw.
32071         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32072         * doc/glibc-functions/login_tty.texi: Likewise.
32073         * doc/glibc-functions/forkpty.texi: Likewise.
32074
32075 2010-04-03  Bruno Haible  <bruno@clisp.org>
32076
32077         stdlib: Avoid compilation failure of c-strtold on mingw.
32078         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32079
32080 2010-04-03  Bruno Haible  <bruno@clisp.org>
32081
32082         locale: Make C++ tests work on Cygwin and mingw.
32083         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32084         cannot provide the function.
32085         Reported by Simon Josefsson.
32086
32087 2010-04-03  Bruno Haible  <bruno@clisp.org>
32088
32089         localename: Port to MacOS X 10.6.
32090         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32091         memory layout of the locales in MacOS X 10.6 as well.
32092         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32093
32094 2010-04-02  Bruno Haible  <bruno@clisp.org>
32095
32096         gnulib-tool: Ensure that long-running tests are executed last.
32097         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32098         running tests after the one for the other tests.
32099
32100 2010-04-02  Bruno Haible  <bruno@clisp.org>
32101
32102         gnulib-tool: Ensure the tests in the main directory are executed first.
32103         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32104         start with the current directory.
32105
32106 2010-04-02  Bruno Haible  <bruno@clisp.org>
32107
32108         Tests for module 'havelib', moved here from GNU gettext.
32109         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32110         modifications.
32111         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32112         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32113         with modifications.
32114         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32115         modifications.
32116         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32117         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32118         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32119         with modifications.
32120         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32121         with modifications.
32122         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32123         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32124         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32125         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32126         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32127         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32128         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32129         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32130         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32131         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32132         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32133         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32134         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32135         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32136         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32137         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32138         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32139         with modifications.
32140         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32141         with modifications.
32142         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32143         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32144         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32145         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32146         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32147         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32148         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32149         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32150         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32151         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32152         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32153         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32154         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32155         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32156         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32157         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32158         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32159         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32160         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32161         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32162         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32163         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32164         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32165         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32166         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32167         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32168         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32169         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32170         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32171         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32172         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32173         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32174         * tests/havelib/rpathx/rpathx.c: New file, from
32175         gettext/autoconf-lib-link.
32176         * tests/havelib/rpathx/Makefile.am: New file, from
32177         gettext/autoconf-lib-link.
32178         * tests/havelib/rpathx/configure.ac: New file, from
32179         gettext/autoconf-lib-link with modifications.
32180         * tests/havelib/rpathy/rpathy.c: New file, from
32181         gettext/autoconf-lib-link.
32182         * tests/havelib/rpathy/Makefile.am: New file, from
32183         gettext/autoconf-lib-link.
32184         * tests/havelib/rpathy/configure.ac: New file, from
32185         gettext/autoconf-lib-link with modifications.
32186         * tests/havelib/rpathz/rpathz.c: New file, from
32187         gettext/autoconf-lib-link.
32188         * tests/havelib/rpathz/Makefile.am: New file, from
32189         gettext/autoconf-lib-link.
32190         * tests/havelib/rpathz/configure.ac: New file, from
32191         gettext/autoconf-lib-link with modifications.
32192         * tests/havelib/rpathlx/usex.c: New file, from
32193         gettext/autoconf-lib-link.
32194         * tests/havelib/rpathlx/Makefile.am: New file, from
32195         gettext/autoconf-lib-link.
32196         * tests/havelib/rpathlx/configure.ac: New file, from
32197         gettext/autoconf-lib-link with modifications.
32198         * tests/havelib/rpathly/usey.c: New file, from
32199         gettext/autoconf-lib-link.
32200         * tests/havelib/rpathly/Makefile.am: New file, from
32201         gettext/autoconf-lib-link.
32202         * tests/havelib/rpathly/configure.ac: New file, from
32203         gettext/autoconf-lib-link with modifications.
32204         * tests/havelib/rpathlz/usez.c: New file, from
32205         gettext/autoconf-lib-link.
32206         * tests/havelib/rpathlz/Makefile.am: New file, from
32207         gettext/autoconf-lib-link.
32208         * tests/havelib/rpathlz/configure.ac: New file, from
32209         gettext/autoconf-lib-link with modifications.
32210         * tests/havelib/rpathlyx/usey.c: New file, from
32211         gettext/autoconf-lib-link.
32212         * tests/havelib/rpathlyx/Makefile.am: New file, from
32213         gettext/autoconf-lib-link.
32214         * tests/havelib/rpathlyx/configure.ac: New file, from
32215         gettext/autoconf-lib-link with modifications.
32216         * tests/havelib/rpathlzyx/usez.c: New file, from
32217         gettext/autoconf-lib-link.
32218         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32219         gettext/autoconf-lib-link.
32220         * tests/havelib/rpathlzyx/configure.ac: New file, from
32221         gettext/autoconf-lib-link with modifications.
32222         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32223         with modifications.
32224
32225 2010-04-02  Bruno Haible  <bruno@clisp.org>
32226
32227         gnulib-tool: Create distributed built sources also for the tests.
32228         * gnulib-tool (func_create_testdir): Also generate distributed built
32229         sources in the tests directory.
32230
32231 2010-04-02  Bruno Haible  <bruno@clisp.org>
32232
32233         gnulib-tool: Obey user's environment variables.
32234         * gnulib-tool (func_create_testdir): When creating built sources,
32235         respect the environment variables for autoconf, automake, etc. given by
32236         the user.
32237
32238 2010-04-02  Bruno Haible  <bruno@clisp.org>
32239
32240         gnulib-tool: Provide the value of --m4-base to modules.
32241         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32242         of gl_m4_base.
32243
32244 2010-04-02  Eric Blake  <eblake@redhat.com>
32245
32246         maint.mk: fix some fallout
32247         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32248         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32249
32250 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32251
32252         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32253         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32254         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32255         (sc_cast_of_x_alloc_return_value): Likewise.
32256         (sc_cast_of_alloca_return_value): Likewise.
32257         (sc_space_tab): Likewise.
32258         (sc_prohibit_atoi_atof): Likewise.
32259         (sc_prohibit_magic_number_exit): Likewise.
32260         (sc_error_exit_success): Likewise.
32261         (sc_file_system): Likewise.
32262         (sc_prohibit_have_config_h): Likewise.
32263         (sc_require_config_h): Likewise.
32264         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32265         (sc_obsolete_symbols): Likewise.
32266         (sc_changelog): Likewise.
32267         (sc_program_name): Likewise.
32268         (sc_the_the): Likewise.
32269         (sc_trailing_blank): Likewise.
32270         (sc_two_space_separator_in_usage): Likewise.
32271         (sc_useless_cpp_parens): Likewise.
32272         (sc_GPL_version): Likewise.
32273         (sc_GFDL_version): Likewise.
32274         (sc_texinfo_acronym): Likewise.
32275         (sc_prohibit_cvs_keyword): Likewise.
32276         (sc_prohibit_stat_st_blocks): Likewise.
32277         (sc_prohibit_S_IS_definition): Likewise.
32278         (sc_redundant_const): Likewise.
32279         (sc_makefile_TAB_only_indentation): Likewise.
32280         (sc_m4_quote_check): Likewise.
32281         (sc_makefile_path_separator_check): Likewise.
32282         (sc_copyright_check): Likewise.
32283         (sc_Wundef_boolean): Likewise.
32284         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32285
32286         maint.mk: match 0 or more whitespace-before-function-call '('
32287         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32288         that have zero or two-and-more spaces between the function name
32289         and the open parenthesis.
32290         (sc_error_message_warn_fatal): Likewise.
32291         (sc_error_message_uppercase): Likewise.
32292         (sc_error_message_period): Likewise.
32293
32294 2010-03-31  Eric Blake  <eblake@redhat.com>
32295
32296         maint.mk: check for [ as well as test
32297         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32298         Based on a libvirt report by Matthias Bolte.
32299
32300         gnumakefile: don't squelch _version output
32301         * top/GNUmakefile (_version): Create one-shot dependency rather
32302         than using $(shell) when version must be regenerated.
32303         (_autoreconf): Run verbosely, by default.
32304
32305         sys_time: avoid compiler warnings
32306         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32307         unconditional, fixing regression from 2010-03-29.
32308         Reported by Simon Josefsson.
32309
32310 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32311
32312         maint.mk: s/_header_without_use/_sc_header_without_use/
32313         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32314         (sc_prohibit_assert_without_use): Use the new name.
32315         (sc_prohibit_close_stream_without_use): Likewise.
32316         (sc_prohibit_getopt_without_use): Likewise.
32317         (sc_prohibit_quotearg_without_use): Likewise.
32318         (sc_prohibit_quote_without_use): Likewise.
32319         (sc_prohibit_long_options_without_use): Likewise.
32320         (sc_prohibit_inttostr_without_use): Likewise.
32321         (sc_prohibit_ignore_value_without_use): Likewise.
32322         (sc_prohibit_error_without_use): Likewise.
32323         (sc_prohibit_xalloc_without_use): Likewise.
32324         (sc_prohibit_hash_without_use): Likewise.
32325         (sc_prohibit_hash_pjw_without_use): Likewise.
32326         (sc_prohibit_safe_read_without_use): Likewise.
32327         (sc_prohibit_argmatch_without_use): Likewise.
32328         (sc_prohibit_canonicalize_without_use): Likewise.
32329         (sc_prohibit_root_dev_ino_without_use): Likewise.
32330         (sc_prohibit_openat_without_use): Likewise.
32331         (sc_prohibit_c_ctype_without_use): Likewise.
32332         (sc_prohibit_signal_without_use): Likewise.
32333         (sc_prohibit_intprops_without_use): Likewise.
32334
32335 2010-03-30  Eric Blake  <eblake@redhat.com>
32336
32337         maint: improve module indicators
32338         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32339         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32340         columns, and avoid extra macro expansion.
32341
32342         fdopendir: work around FreeBSD bug
32343         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32344         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32345         * modules/dirent (Makefile.am): Substitute it.
32346         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32347         declaration.
32348         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32349         fix.
32350         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32351
32352 2010-03-29  Bruno Haible  <bruno@clisp.org>
32353
32354         Emit #pragma system_header after the inclusion guard, not before.
32355         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32356         guard that spans the entire file, not before. This enables an
32357         optimization in GCC's preprocessor.
32358         * lib/ctype.in.h: Likewise.
32359         * lib/dirent.in.h: Likewise.
32360         * lib/errno.in.h: Likewise.
32361         * lib/float.in.h: Likewise.
32362         * lib/getopt.in.h: Likewise.
32363         * lib/iconv.in.h: Likewise.
32364         * lib/langinfo.in.h: Likewise.
32365         * lib/locale.in.h: Likewise.
32366         * lib/math.in.h: Likewise.
32367         * lib/netdb.in.h: Likewise.
32368         * lib/netinet_in.in.h: Likewise.
32369         * lib/pty.in.h: Likewise.
32370         * lib/sched.in.h: Likewise.
32371         * lib/se-selinux.in.h: Likewise.
32372         * lib/search.in.h: Likewise.
32373         * lib/spawn.in.h: Likewise.
32374         * lib/stdarg.in.h: Likewise.
32375         * lib/stdint.in.h: Likewise.
32376         * lib/string.in.h: Likewise.
32377         * lib/strings.in.h: Likewise.
32378         * lib/sys_file.in.h: Likewise.
32379         * lib/sys_ioctl.in.h: Likewise.
32380         * lib/sys_time.in.h: Likewise.
32381         * lib/sys_times.in.h: Likewise.
32382         * lib/sys_utsname.in.h: Likewise.
32383         * lib/sys_wait.in.h: Likewise.
32384         * lib/sysexits.in.h: Likewise.
32385         * lib/wctype.in.h: Likewise.
32386
32387 2010-03-28  James Youngman  <jay@gnu.org>
32388
32389         save-cwd: don't leak a file descriptor when the caller execs.
32390         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32391         saved file descriptor.
32392         * modules/save-cwd (Depends-on): Depend on cloexec.
32393
32394 2010-03-29  Bruno Haible  <bruno@clisp.org>
32395
32396         Remove vestiges of fts-lgpl module.
32397         * lib/fts_.h: Assume GNULIB_FTS is 1.
32398         * lib/fts.c: Likewise.
32399         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32400
32401 2010-03-28  Bruno Haible  <bruno@clisp.org>
32402
32403         Fix definition of tests witness macro.
32404         * gnulib-tool (func_import): Fix definition of witness macro.
32405
32406 2010-03-28  Bruno Haible  <bruno@clisp.org>
32407
32408         Fix ioctl's protoype on glibc systems.
32409         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32410         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32411         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32412         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32413         signature. If not, arrange to replace the ioctl function.
32414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32415         REPLACE_IOCTL.
32416         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32417         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32418         Reported by Ludovic Courtès <ludo@gnu.org>.
32419
32420 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32421
32422         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32423         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32424         made it so grep -r --include=GLOB* ... did not work.
32425
32426 2010-03-26  Jim Meyering  <meyering@redhat.com>
32427             Eric Blake  <eblake@redhat.com>
32428
32429         maint.mk: prohibit use of test's -o and -a operators
32430         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32431
32432 2010-03-28  Bruno Haible  <bruno@clisp.org>
32433
32434         Remove unused GNULIB_XYZ macro definitions.
32435         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32436         invocation.
32437
32438 2010-03-28  Bruno Haible  <bruno@clisp.org>
32439
32440         Mark privileged tests modules.
32441         * modules/idpriv-drop-tests (Status): New section.
32442         * modules/idpriv-droptemp-tests (Status): New section.
32443
32444 2010-03-28  Bruno Haible  <bruno@clisp.org>
32445
32446         Split C++ tests into separate tests modules.
32447         * modules/dirent-c++-tests: New file, extracted from
32448         modules/dirent-tests.
32449         * modules/dirent-tests: Depend on it.
32450         * modules/fcntl-h-c++-tests: New file, extracted from
32451         modules/fcntl-h-tests.
32452         * modules/fcntl-h-tests: Depend on it.
32453         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32454         * modules/glob-tests: Depend on it.
32455         * modules/iconv-h-c++-tests: New file, extracted from
32456         modules/iconv-h-tests.
32457         * modules/iconv-h-tests: Depend on it.
32458         * modules/langinfo-c++-tests: New file, extracted from
32459         modules/langinfo-tests.
32460         * modules/langinfo-tests: Depend on it.
32461         * modules/locale-c++-tests: New file, extracted from
32462         modules/locale-tests.
32463         * modules/locale-tests: Depend on it.
32464         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32465         * modules/math-tests: Depend on it.
32466         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32467         * modules/pty-tests: Depend on it.
32468         * modules/search-c++-tests: New file, extracted from
32469         modules/search-tests.
32470         * modules/search-tests: Depend on it.
32471         * modules/signal-c++-tests: New file, extracted from
32472         modules/signal-tests.
32473         * modules/signal-tests: Depend on it.
32474         * modules/spawn-c++-tests: New file, extracted from
32475         modules/spawn-tests.
32476         * modules/spawn-tests: Depend on it.
32477         * modules/stdio-c++-tests: New file, extracted from
32478         modules/stdio-tests.
32479         * modules/stdio-tests: Depend on it.
32480         * modules/stdlib-c++-tests: New file, extracted from
32481         modules/stdlib-tests.
32482         * modules/stdlib-tests: Depend on it.
32483         * modules/string-c++-tests: New file, extracted from
32484         modules/string-tests.
32485         * modules/string-tests: Depend on it.
32486         * modules/sys_ioctl-c++-tests: New file, extracted from
32487         modules/sys_ioctl-tests.
32488         * modules/sys_ioctl-tests: Depend on it.
32489         * modules/sys_select-c++-tests: New file, extracted from
32490         modules/sys_select-tests.
32491         * modules/sys_select-tests: Depend on it.
32492         * modules/sys_socket-c++-tests: New file, extracted from
32493         modules/sys_socket-tests.
32494         * modules/sys_socket-tests: Depend on it.
32495         * modules/sys_stat-c++-tests: New file, extracted from
32496         modules/sys_stat-tests.
32497         * modules/sys_stat-tests: Depend on it.
32498         * modules/sys_time-c++-tests: New file, extracted from
32499         modules/sys_time-tests.
32500         * modules/sys_time-tests: Depend on it.
32501         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32502         * modules/time-tests: Depend on it.
32503         * modules/unistd-c++-tests: New file, extracted from
32504         modules/unistd-tests.
32505         * modules/unistd-tests: Depend on it.
32506         * modules/wchar-c++-tests: New file, extracted from
32507         modules/wchar-tests.
32508         * modules/wchar-tests: Depend on it.
32509         * modules/wctype-c++-tests: New file, extracted from
32510         modules/wctype-tests.
32511         * modules/wctype-tests: Depend on it.
32512         Reported by Simon Josefsson.
32513
32514 2010-03-28  Bruno Haible  <bruno@clisp.org>
32515
32516         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32517         * gnulib-tool (func_exists_module): New function, extracted from
32518         func_verify_module.
32519         (func_verify_module): Use it.
32520         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32521         'foo' only if 'foo' exists.
32522         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32523         module.
32524
32525 2010-03-28  Bruno Haible  <bruno@clisp.org>
32526
32527         gnulib-tool: Add support for special categories of tests.
32528         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32529         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32530         (func_usage): Document them.
32531         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32532         inc_unportable_tests, inc_all_tests): New variables.
32533         (func_acceptable): Consider these variables.
32534         (func_modules_transitive_closure): Make it work when the 'Status' field
32535         consists of multiple words.
32536         (func_import): Store and restore the values of inc_cxx_tests,
32537         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32538         inc_all_tests in gnulib-comp.m4.
32539         (func_create_testdir): Set inc_all_tests to true.
32540         * doc/gnulib.texi (Extra tests modules): New section.
32541         Suggested by Jim Meyering.
32542
32543 2010-03-28  Bruno Haible  <bruno@clisp.org>
32544
32545         ansi-c++-opt: Allow turning off the C++ build by default.
32546         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32547         gl_CXX_CHOICE_DEFAULT_NO is defined.
32548         Requested by Eric Blake.
32549
32550 2010-03-28  Bruno Haible  <bruno@clisp.org>
32551
32552         unistd: Avoid #define replacements in C++ mode.
32553         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32554         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32555         setsockopt, shutdown, select): In C++, attach a warning to the function
32556         if possible, rather than #defining the symbol to a dysfunctional alias.
32557         Reported by John W. Eaton <jwe@gnu.org>.
32558
32559 2010-03-28  Bruno Haible  <bruno@clisp.org>
32560
32561         Fix link errors on mingw.
32562         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32563         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32564         $(LIBSOCKET).
32565         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32566         $(LIBSOCKET).
32567
32568 2010-03-28  Bruno Haible  <bruno@clisp.org>
32569             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32570
32571         lib-ignore: Determine different options for different compilers.
32572         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32573         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32574         Add comments.
32575         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32576         * NEWS: Mention the change.
32577
32578 2010-03-27  Bruno Haible  <bruno@clisp.org>
32579
32580         Remove unused GNULIB_XYZ macro definitions.
32581         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32582         * modules/fseek (configure.ac): Likewise.
32583         * modules/ioctl (configure.ac): Likewise.
32584         * modules/open (configure.ac): Likewise.
32585         * modules/stdlib-safer (configure.ac): Likewise.
32586
32587 2010-03-27  Bruno Haible  <bruno@clisp.org>
32588
32589         Add a remark about certain modules.
32590         * modules/malloc (Comment): New section.
32591         * modules/realloc (Comment): Likewise.
32592         * modules/sigpipe (Comment): Likewise.
32593
32594 2010-03-27  Bruno Haible  <bruno@clisp.org>
32595
32596         Resolve conflict between the two kinds of module indicators.
32597         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32598         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32599         * modules/canonicalize (configure.ac): Invoke
32600         gl_MODULE_INDICATOR_FOR_TESTS.
32601         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32602         GNULIB_XYZ.
32603         * tests/test-dirent-c++.cc: Likewise.
32604         * tests/test-dirent-safer.c: Likewise.
32605         * tests/test-dup2.c: Likewise.
32606         * tests/test-fchdir.c: Likewise.
32607         * tests/test-fcntl-h-c++.cc: Likewise.
32608         * tests/test-getopt.c: Likewise.
32609         * tests/test-getopt.h: Likewise.
32610         * tests/test-langinfo-c++.cc: Likewise.
32611         * tests/test-locale-c++.cc: Likewise.
32612         * tests/test-math-c++.cc: Likewise.
32613         * tests/test-pty-c++.cc: Likewise.
32614         * tests/test-search-c++.cc: Likewise.
32615         * tests/test-signal-c++.cc: Likewise.
32616         * tests/test-spawn-c++.cc: Likewise.
32617         * tests/test-stdio-c++.cc: Likewise.
32618         * tests/test-stdlib-c++.cc: Likewise.
32619         * tests/test-string-c++.cc: Likewise.
32620         * tests/test-sys_ioctl-c++.cc: Likewise.
32621         * tests/test-sys_select-c++.cc: Likewise.
32622         * tests/test-sys_socket-c++.cc: Likewise.
32623         * tests/test-sys_stat-c++.cc: Likewise.
32624         * tests/test-sys_time-c++.cc: Likewise.
32625         * tests/test-time-c++.cc: Likewise.
32626         * tests/test-unistd-c++.cc: Likewise.
32627         * tests/test-wchar-c++.cc: Likewise.
32628         * tests/uninorm/test-u8-nfc.c: Likewise.
32629         * tests/uninorm/test-u8-nfd.c: Likewise.
32630         * tests/uninorm/test-u8-nfkc.c: Likewise.
32631         * tests/uninorm/test-u8-nfkd.c: Likewise.
32632         * tests/uninorm/test-u16-nfc.c: Likewise.
32633         * tests/uninorm/test-u16-nfd.c: Likewise.
32634         * tests/uninorm/test-u16-nfkc.c: Likewise.
32635         * tests/uninorm/test-u16-nfkd.c: Likewise.
32636         * tests/uninorm/test-u32-nfc.c: Likewise.
32637         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32638         * tests/uninorm/test-u32-nfd.c: Likewise.
32639         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32640         * tests/uninorm/test-u32-nfkc.c: Likewise.
32641         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32642         * tests/uninorm/test-u32-nfkd.c: Likewise.
32643         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32644         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32645
32646 2010-03-27  Bruno Haible  <bruno@clisp.org>
32647
32648         Distinguish two kinds of module indicators.
32649         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32650         gl_MODULE_INDICATOR.
32651         (gl_MODULE_INDICATOR): New macro.
32652         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32653         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32654         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32655         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32656         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32657         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32658         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32659         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32660         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32661         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32662         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32663         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32666         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32667         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32668         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32669         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32670         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32671         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32672         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32673         * modules/cloexec (configure.ac): Likewise.
32674         * modules/getopt-gnu (configure.ac): Likewise.
32675         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32676         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32677         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32678         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32679
32680 2010-03-27  Bruno Haible  <bruno@clisp.org>
32681
32682         New module description field 'Comment'.
32683         * gnulib-tool: New option --extract-comment.
32684         (func_usage): Document it.
32685         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32686         (func_get_comment): New function.
32687         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32688
32689 2010-03-27  Bruno Haible  <bruno@clisp.org>
32690
32691         Addendum to 2010-02-07 commit.
32692         * gnulib-tool (func_usage): Document --extract-applicability option.
32693
32694 2010-03-27  Bruno Haible  <bruno@clisp.org>
32695
32696         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32697         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32698         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32699         rather than link errors.
32700
32701 2010-03-27  Bruno Haible  <bruno@clisp.org>
32702
32703         Avoid side effects from tests-related modules on the compilation of lib.
32704         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32705         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32706         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32707         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32708         macro.
32709         (func_import): Define a witness macro. Assign it a value that depends
32710         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32711         tests-related modules.
32712         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32713         Reported by Jim Meyering.
32714
32715 2010-03-27  Bruno Haible  <bruno@clisp.org>
32716
32717         Factorize common .m4 code.
32718         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32719         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32720         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32721         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32722         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32723         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32724         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32725         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32726         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32727         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32728         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32729         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32730         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32731         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32732         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32733         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32734         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32735         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32737         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32738         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32740         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32742         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32743         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32744         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32746         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32747         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32748         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32749         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32750
32751 2010-03-27  Bruno Haible  <bruno@clisp.org>
32752
32753         Fix a compilation error on Cygwin with g++ >= 4.3.
32754         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32755         if it is undefined or if we alias it to chmod.
32756         (lstat): Don't warn about the use of this function if it is undefined
32757         or if we alias it to stat.
32758         Reported by Simon Josefsson.
32759
32760 2010-03-27  Bruno Haible  <bruno@clisp.org>
32761
32762         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32763         * modules/getlogin (configure.ac): Update.
32764
32765         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32766         * modules/getlogin_r (configure.ac): Update.
32767
32768         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32770         * modules/inet_ntop (configure.ac): Update.
32771
32772         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32773         * modules/inet_pton (configure.ac): Update.
32774
32775         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32776         * modules/mbslen (configure.ac): Update.
32777
32778         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32779         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32780         * modules/forkpty (configure.ac): Update.
32781         * modules/openpty (configure.ac): Update.
32782
32783 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32784
32785         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32786         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32787
32788 2010-03-25  Eric Blake  <eblake@redhat.com>
32789
32790         maint: use pragma consistently across replacement headers
32791         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32792         * lib/dirent.in.h (system_header): Likewise.
32793         * lib/errno.in.h (system_header): Likewise.
32794         * lib/float.in.h (system_header): Likewise.
32795         * lib/getopt.in.h (system_header): Likewise.
32796         * lib/iconv.in.h (system_header): Likewise.
32797         * lib/inttypes.in.h (system_header): Likewise.
32798         * lib/langinfo.in.h (system_header): Likewise.
32799         * lib/locale.in.h (system_header): Likewise.
32800         * lib/math.in.h (system_header): Likewise.
32801         * lib/netdb.in.h (system_header): Likewise.
32802         * lib/netinet_in.in.h (system_header): Likewise.
32803         * lib/pty.in.h (system_header): Likewise.
32804         * lib/sched.in.h (system_header): Likewise.
32805         * lib/se-selinux.in.h (system_header): Likewise.
32806         * lib/search.in.h (system_header): Likewise.
32807         * lib/spawn.in.h (system_header): Likewise.
32808         * lib/stdarg.in.h (system_header): Likewise.
32809         * lib/stdint.in.h (system_header): Likewise.
32810         * lib/string.in.h (system_header): Likewise.
32811         * lib/strings.in.h (system_header): Likewise.
32812         * lib/sys_file.in.h (system_header): Likewise.
32813         * lib/sys_ioctl.in.h (system_header): Likewise.
32814         * lib/sys_socket.in.h (system_header): Likewise.
32815         * lib/sys_times.in.h (system_header): Likewise.
32816         * lib/sys_utsname.in.h (system_header): Likewise.
32817         * lib/sys_wait.in.h (system_header): Likewise.
32818         * lib/sysexits.in.h (system_header): Likewise.
32819         * lib/unistd.in.h (system_header): Likewise.
32820         * lib/wctype.in.h (system_header): Likewise.
32821
32822         arpa/inet: fix mingw compilation warning
32823         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
32824         Reported by Matthew Bolte.
32825
32826 2010-03-25  Bruno Haible  <bruno@clisp.org>
32827
32828         Avoid collision between gnulib wrapper and libintl wrapper.
32829         * lib/printf.c (printf): Don't define if a printf wrapper is already
32830         defined in intl/printf.c.
32831         Reported by Michel Boaventura <michel@michelboaventura.com>.
32832
32833 2010-03-25  Bruno Haible  <bruno@clisp.org>
32834
32835         Use ANSI C.
32836         * lib/readutmp.h (getutent): Provide ANSI C prototype.
32837
32838 2010-03-25  Bruno Haible  <bruno@clisp.org>
32839
32840         Minor formatting changes.
32841         * lib/acosl.c: Insert space before function argument list.
32842         * lib/argz.c: Likewise.
32843         * lib/asinl.c: Likewise.
32844         * lib/expl.c: Likewise.
32845         * lib/gen-uni-tables.c: Likewise.
32846         * lib/gettext.h: Likewise.
32847         * lib/glthread/lock.h: Likewise.
32848         * lib/tanl.c: Likewise.
32849         * lib/uniname/uniname.c: Likewise.
32850         * tests/test-idpriv-drop.c: Likewise.
32851         * tests/test-idpriv-droptemp.c: Likewise.
32852         * tests/test-lock.c: Likewise.
32853         * tests/test-tls.c: Likewise.
32854         * lib/argp-help.c: Insert space before function-like macro argument
32855         list.
32856         * lib/memcmp.c: Likewise.
32857         * tests/test-base64.c: Likewise.
32858         * lib/localename.c: Insert space before sizeof's argument list.
32859         * lib/safe-alloc.h: Likewise.
32860         * lib/file-set.h: Insert space before macro argument list.
32861         * tests/test-argp.c: Likewise.
32862         * lib/argp-namefrob.h: Insert space before function parameter list.
32863         * lib/getaddrinfo.c: Likewise.
32864         * lib/netdb.in.h: Likewise.
32865         * lib/parse-duration.h: Likewise.
32866         * lib/parse-duration.c: Likewise.
32867         * lib/poll.c: Likewise.
32868         * lib/select.c: Likewise.
32869         * lib/trim.h: Likewise.
32870         * tests/test-usleep.c: Likewise.
32871         * lib/ldexpl.c: Insert space before function parameter list and before
32872         function argument list.
32873         * lib/logl.c: Likewise.
32874         * lib/sqrtl.c: Likewise.
32875         * lib/trim.c: Likewise.
32876         * lib/cosl.c: Use GNU style indentation. Insert space before function
32877         argument list.
32878         * lib/sinl.c: Likewise.
32879         * lib/tsearch.c: Insert space after 'for'.
32880         Reported by Jim Meyering.
32881
32882 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
32883
32884         * maint.mk (sc_Wundef_boolean): Check for the presence of the
32885         config header before grepping, as it's not present before
32886         autoreconf/configure are run.  Reported by Simon Josefsson.
32887
32888 2010-03-23  Bruno Haible  <bruno@clisp.org>
32889
32890         pt_chown: Make it work with automake < 1.11.
32891         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
32892         Reported by Simon Josefsson.
32893
32894 2010-03-23  Bruno Haible  <bruno@clisp.org>
32895
32896         pt_chown: Don't depend on GPLed modules.
32897         * lib/pt_chown.c: Don't include idpriv.h.
32898         (main): Don't drop privileges.
32899         * modules/pt_chown (Depends-on): Remove idpriv-drop.
32900         Reported by Simon Josefsson.
32901
32902 2010-03-24  Simon Josefsson  <simon@josefsson.org>
32903
32904         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
32905         suggestions from karl@freefriends.org (Karl Berry).
32906
32907 2010-03-22  Eric Blake  <eblake@redhat.com>
32908
32909         gethostname: further tweaks
32910         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
32911         are overriding gethostname.
32912         Suggested by Bruno Haible.
32913
32914 2010-03-21  Bruno Haible  <bruno@clisp.org>
32915
32916         Fix comments.
32917         * lib/forkpty.c (rpl_forkpty): Fix comment.
32918         * lib/openpty.c (rpl_openpty): Likewise.
32919         Reported by Eric Blake.
32920
32921 2010-03-22  Eric Blake  <eblake@redhat.com>
32922
32923         gethostname: fix build on mingw
32924         * lib/unistd.in.h (includes): Work around fact that mingw
32925         <winsock2.h> re-includes <unistd.h>, by avoiding any
32926         redeclarations if we are being included by <winsock2.h>.
32927         Reported by Matthias Bolte.
32928
32929 2010-03-21  Bruno Haible  <bruno@clisp.org>
32930
32931         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32932         * lib/forkpty.c (forkpty): New replacement function, from glibc with
32933         modifications.
32934         * lib/pty.in.h (forkpty): Update declaration. Add comments.
32935         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
32936         provide the replacement.
32937         * modules/forkpty (Depends-on): Add openpty, login_tty.
32938         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
32939         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
32940         * doc/glibc-functions/forkpty.texi: More supported platforms.
32941         * config/srclist.txt: Add forkpty.c (commented).
32942
32943 2010-03-21  Bruno Haible  <bruno@clisp.org>
32944
32945         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
32946         (Makefile.am): Verify that PTY_LIB is defined.
32947
32948         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32949
32950 2010-03-21  Bruno Haible  <bruno@clisp.org>
32951
32952         Tests for module 'login_tty'.
32953         * modules/login_tty-tests: New file.
32954         * tests/test-login_tty.c: New file.
32955
32956         New module 'login_tty'.
32957         * lib/login_tty.c: New file.
32958         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32959         * modules/login_tty: New file.
32960         * doc/glibc-functions/login_tty.texi: Mention the new module.
32961
32962 2010-03-21  Bruno Haible  <bruno@clisp.org>
32963
32964         login_tty: Documentation.
32965         * doc/glibc-functions/login_tty.texi: New file.
32966         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32967
32968 2010-03-21  Bruno Haible  <bruno@clisp.org>
32969
32970         pty: Consistent macro naming.
32971         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32972         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32973         * modules/pty (configure.ac): Update.
32974
32975 2010-03-21  Bruno Haible  <bruno@clisp.org>
32976
32977         Tests for openpty: Make stricter.
32978         * tests/test-openpty.c (main): Add test of canonical processing and
32979         erase.
32980         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32981
32982         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32983         * lib/openpty.c (openpty): New replacement function.
32984         * lib/pty.in.h: Include <termios.h>.
32985         (openpty): Update declaration. Add comments.
32986         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32987         is not declared, arrange to provide the replacement. Check for _getpty
32988         and posix_openpt.
32989         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32990         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32991         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32992         * modules/pty-tests (test_pty_c___LDADD): New variable.
32993         * doc/glibc-functions/openpty.texi: More supported platforms.
32994
32995 2010-03-21  Bruno Haible  <bruno@clisp.org>
32996
32997         setenv: Tweaks.
32998         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32999         the test program.
33000         * doc/posix-functions/setenv.texi: Update platforms list.
33001
33002 2010-03-21  Bruno Haible  <bruno@clisp.org>
33003
33004         New module 'unlockpt'.
33005         * lib/unlockpt.c: New file, from glibc with modifications.
33006         * m4/unlockpt.m4: New file.
33007         * modules/unlockpt: New file.
33008         * lib/stdlib.in.h (unlockpt): New declaration.
33009         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33010         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33011         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33012         HAVE_UNLOCKPT.
33013         * doc/posix-functions/unlockpt.texi: Mention the new module.
33014         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33015         * config/srclist.txt: Add unlockpt.c (commented).
33016
33017 2010-03-21  Jim Meyering  <meyering@redhat.com>
33018
33019         maint.mk: prohibit inclusion of "intprops.h" without use
33020         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33021
33022 2010-03-21  Bruno Haible  <bruno@clisp.org>
33023
33024         New module 'grantpt'.
33025         * lib/grantpt.c: New file, from glibc with modifications.
33026         * m4/grantpt.m4: New file.
33027         * modules/grantpt: New file.
33028         * lib/stdlib.in.h (grantpt): New declaration.
33029         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33030         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33031         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33032         HAVE_GRANTPT.
33033         * doc/posix-functions/grantpt.texi: Mention the new module.
33034         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33035         * config/srclist.txt: Add grantpt.c (commented).
33036
33037 2010-03-21  Bruno Haible  <bruno@clisp.org>
33038
33039         New module 'pt_chown'.
33040         * lib/pt_chown.c: New file, from glibc with modifications.
33041         * lib/pty-private.h: New file, from glibc with modifications.
33042         * modules/pt_chown: New file.
33043         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33044
33045 2010-03-21  Bruno Haible  <bruno@clisp.org>
33046
33047         Tests for module 'ptsname'.
33048         * modules/ptsname-tests: New file.
33049         * tests/test-ptsname.c: New file.
33050
33051         New module 'ptsname'.
33052         * lib/ptsname.c: New file, from glibc with modifications.
33053         * m4/ptsname.m4: New file.
33054         * modules/ptsname: New file.
33055         * lib/stdlib.in.h (ptsname): New declaration.
33056         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33057         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33058         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33059         HAVE_PTSNAME.
33060         * doc/posix-functions/ptsname.texi: Mention the new module.
33061         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33062         * config/srclist.txt: Add ptsname.c (commented).
33063
33064 2010-03-21  Bruno Haible  <bruno@clisp.org>
33065
33066         Tests for module 'ttyname_r'.
33067         * modules/ttyname_r-tests: New file.
33068         * tests/test-ttyname_r.c: New file.
33069
33070         New module 'ttyname_r'.
33071         * lib/ttyname_r.c: New file.
33072         * m4/ttyname_r.m4: New file.
33073         * modules/ttyname_r: New file.
33074         * lib/unistd.in.h (ttyname_r): New declaration.
33075         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33076         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33077         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33078         HAVE_TTYNAME_R.
33079         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33080         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33081
33082 2010-03-20  Bruno Haible  <bruno@clisp.org>
33083
33084         signal: Undefine macro definitions in C++ mode.
33085         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33086         sigfillset): Undefine macro definitions from the system header in C++
33087         mode.
33088         Reported by John W. Eaton <jwe@gnu.org>.
33089
33090 2010-03-20  Bruno Haible  <bruno@clisp.org>
33091
33092         Ensure no #include statements inside extern "C" { ... }.
33093         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33094         contain #include statements.
33095         * lib/time.in.h: Likewise.
33096
33097 2010-03-20  Bruno Haible  <bruno@clisp.org>
33098
33099         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33100         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33101         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33102         Reported by John W. Eaton <jwe@gnu.org>.
33103
33104 2010-03-20  Bruno Haible  <bruno@clisp.org>
33105
33106         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33107         Reported by Jim Meyering.
33108
33109 2010-03-20  Bruno Haible  <bruno@clisp.org>
33110
33111         pipe: Set errno upon failure.
33112         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33113         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33114         errno value in error message.
33115
33116 2010-03-20  Bruno Haible  <bruno@clisp.org>
33117             Jim Meyering  <meyering@redhat.com>
33118
33119         lchown: Avoid "unused variable" warning.
33120         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33121
33122 2010-03-20  Bruno Haible  <bruno@clisp.org>
33123
33124         Work around unlink() bug on MacOS X 10.5.6.
33125         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33126         attempting to unlink a parent directory.
33127         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33128         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33129         activate for the replacement function.
33130         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33131
33132 2010-03-20  Bruno Haible  <bruno@clisp.org>
33133
33134         Fix link errors on Solaris 8.
33135         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33136         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33137
33138 2010-03-19  Jim Meyering  <meyering@redhat.com>
33139
33140         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33141         The _LIBC implementation of build_range_exp correctly honors the
33142         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33143         However, the non-_LIBC implementation would ignore that syntax-bit
33144         flag and return REG_ERANGE unconditionally.
33145         This change makes it honor that flag.
33146         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33147         Make two pointer parameters "const".
33148         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33149         (parse_bracket_exp): Update caller.
33150
33151         regex.m4: correct the reversed range endpoint ([b-a]) test
33152         * m4/regex.m4: When requiring that [b-a] evoke failure,
33153         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33154         test pass once again for x86-based systems.
33155
33156 2010-03-19  Bruno Haible  <bruno@clisp.org>
33157
33158         scandir: Fix link error on Solaris 8.
33159         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33160         macros.
33161
33162 2010-03-19  Bruno Haible  <bruno@clisp.org>
33163
33164         getusershell: Fix documentation.
33165         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33166         module.
33167         * doc/glibc-functions/setusershell.texi: Likewise.
33168
33169         getusershell: Provide declaration, missing on Solaris 9.
33170         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33171         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33172         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33173         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33175         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33176         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33177         HAVE_GETUSERSHELL.
33178         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33179
33180 2010-03-19  Bruno Haible  <bruno@clisp.org>
33181
33182         wctype: Provide iswblank function.
33183         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33184         exists and is fine.
33185         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33186         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33187         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33188         * doc/posix-functions/iswblank.texi: Update.
33189
33190 2010-03-19  Bruno Haible  <bruno@clisp.org>
33191
33192         Tests of module 'pty' in C++ mode.
33193         * modules/pty-tests: New file.
33194         * tests/test-pty-c++.cc: New file.
33195         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33196
33197 2010-03-19  Eric Blake  <eblake@redhat.com>
33198
33199         logb: fix documentation
33200         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33201         1.5 declaration bug.
33202
33203         forkpty, openpty: prefer glibc's const-safe prototype
33204         * lib/forkpty.c (rpl_forkpty): New file.
33205         * lib/openpty.c (rpl_openpty): Likewise.
33206         * modules/forkpty (Files): Distribute it.
33207         * modules/openpty (Files): Likewise.
33208         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33209         check...
33210         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33211         replacement for for non-const BSD signature.
33212         * modules/pty (Makefile.am): Substitute witnesses.
33213         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33214         * tests/test-forkpty.c: Update signature check.
33215         * tests/test-openpty.c: Likewise.
33216         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33217         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33218
33219         forkpty, openpty: split functions into new modules
33220         * modules/pty (Makefile.am): Substitute new witnesses.
33221         (Libraries): Move library detection...
33222         * modules/forkpty: ...into new module.
33223         * modules/openpty: Another new module.
33224         * modules/pty-tests: Rename and split...
33225         * modules/forkpty-tests: ...to this...
33226         * modules/openpty-tests: ...and this.
33227         * tests/test-pty.c: Rename and split...
33228         * tests/test-forkpty.c: ...to this...
33229         * tests/test-openpty.c: ...and this.
33230         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33231         (gl_PTY): Split library searching...
33232         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33233         (gl_FORKPTY, gl_OPENPTY): New macros.
33234         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33235         * NEWS: Mention the split.
33236         * MODULES.html.sh (Misc): Document the modules.
33237         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33238         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33239
33240         pty: improve replacement header
33241         * lib/pty.in.h: New file.
33242         * modules/pty (Files): Ship it.
33243         (Makefile.am): Always build replacement.
33244         * m4/pty.m4: Rename...
33245         * m4/pty_h.m4: ...to this.
33246         (gl_PTY): Modernize setting of witness macros; update check of
33247         forkpty to take proper advantage of cache.
33248         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33249
33250         getopt: avoid compiler warning
33251         * lib/getopt.c (attribute_hidden): Remove unused macro.
33252
33253 2010-03-18  Bruno Haible  <bruno@clisp.org>
33254
33255         Fix link errors on Solaris 8.
33256         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33257         * modules/search-tests (test_search_c___LDADD): Likewise.
33258         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33259         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33260         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33261         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33262         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33263         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33264         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33265
33266 2010-03-18  Bruno Haible  <bruno@clisp.org>
33267
33268         Fix bug introduced on 2010-03-14.
33269         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33270         (gl_SPAWN_H): Require it.
33271         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33272         Reported by Simon Josefsson.
33273
33274 2010-03-18  Bruno Haible  <bruno@clisp.org>
33275
33276         Fix typo introduced on 2009-12-31.
33277         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33278         posix_spawn_file_actions_adddup2.
33279
33280 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33281         and Eric Blake  <eblake@redhat.com>
33282
33283         test-vc-list-files-git: make more robust
33284         * tests/test-vc-list-files-git.sh: Unset problematic environment
33285         variables.  Chain commands together.
33286
33287 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33288
33289         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33290         `AC_CHECK_DECL' invocation.
33291
33292 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33293
33294         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33295         appears before executable statements. Suggested by Petr Sumbera
33296         <Petr.Sumbera@Sun.COM>.
33297
33298 2010-03-14  Bruno Haible  <bruno@clisp.org>
33299
33300         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33301         portability problems. Instead use a simpler test.
33302         (main): Check that invalid arguments are rejected only on Linux.
33303
33304 2010-03-14  Bruno Haible  <bruno@clisp.org>
33305
33306         Fix bug introduced on 2009-12-31.
33307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33308         gl_PREREQ_SYS_H_WINSOCK2 always.
33309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33310         SYS_SOCKET_H variable.
33311         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33312         Update comments.
33313         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33314         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33316         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33317         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33318
33319 2010-03-14  Bruno Haible  <bruno@clisp.org>
33320
33321         Fix values returned by sinl, cosl.
33322         * lib/trigl.h: Add specification comments.
33323         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33324         that combines the values from the precomputed table with the values of
33325         the Chebyshev polynomials.
33326
33327 2010-03-14  Bruno Haible  <bruno@clisp.org>
33328
33329         Fix compilation error when modules 'posix_spawn[p]' are not used.
33330         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33332
33333 2010-03-14  Bruno Haible  <bruno@clisp.org>
33334
33335         Fix compilation error on mingw when module 'time_r' is not used.
33336         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33337         is 1.
33338         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33339         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33340         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33341         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33342
33343 2010-03-14  Bruno Haible  <bruno@clisp.org>
33344
33345         Fix compilation error with Sun C.
33346         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33347         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33348         instead of GCC specific ULONG_LONG_MAX.
33349         * lib/xstrtoll.c: Likewise.
33350         * lib/xstrtoull.c: Likewise.
33351
33352 2010-03-13  Bruno Haible  <bruno@clisp.org>
33353
33354         Allow the user to disable C++ code and tests.
33355         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33356         (gl_PROG_ANSI_CXX): Require it.
33357
33358 2010-03-13  Bruno Haible  <bruno@clisp.org>
33359
33360         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33361         cases.
33362
33363 2010-03-13  Bruno Haible  <bruno@clisp.org>
33364
33365         Test that gnulib does not break the standard C++ headers.
33366         * tests/test-locale-c++2.cc: New file.
33367         * modules/locale-tests (Files): Add it.
33368         (Makefile.am): Compile it for test-locale-c++.
33369         * tests/test-math-c++2.cc: New file.
33370         * modules/math-tests (Files): Add it.
33371         (Makefile.am): Compile it for test-math-c++.
33372         * tests/test-signal-c++2.cc: New file.
33373         * modules/signal-tests (Files): Add it.
33374         (Makefile.am): Compile it for test-signal-c++.
33375         * tests/test-stdio-c++2.cc: New file.
33376         * modules/stdio-tests (Files): Add it.
33377         (Makefile.am): Compile it for test-stdio-c++.
33378         * tests/test-stdlib-c++2.cc: New file.
33379         * modules/stdlib-tests (Files): Add it.
33380         (Makefile.am): Compile it for test-stdlib-c++.
33381         * tests/test-string-c++2.cc: New file.
33382         * modules/string-tests (Files): Add it.
33383         (Makefile.am): Compile it for test-string-c++.
33384         * tests/test-time-c++2.cc: New file.
33385         * modules/time-tests (Files): Add it.
33386         (Makefile.am): Compile it for test-time-c++.
33387         Reported by John W. Eaton <jwe@gnu.org>.
33388
33389 2010-03-13  Bruno Haible  <bruno@clisp.org>
33390
33391         * gnulib-tool (func_usage): Clarify which options are available for
33392         --create-testdir and --create-megatestdir.
33393
33394 2010-03-13  Bruno Haible  <bruno@clisp.org>
33395
33396         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33397         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33398         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33399         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33400         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33401         when appropriate.
33402         Reported by Jim Meyering.
33403
33404 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33405
33406         * gnulib-tool (func_import): Explain origin of code.
33407
33408 2010-03-12  Bruno Haible  <bruno@clisp.org>
33409
33410         Fix problem with automake's definition of CXXLINK.
33411         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33412         Reported by Simon Josefsson and Ludovic Courtès.
33413
33414 2010-03-12  Bruno Haible  <bruno@clisp.org>
33415
33416         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33417         stable releases.
33418
33419 2010-03-11  Bruno Haible  <bruno@clisp.org>
33420
33421         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33422         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33423         whether the system provides one variant or multiple variants of the
33424         function.
33425         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33426         C++ compilers.
33427         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33428         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33429         Reported by Jim Meyering.
33430
33431 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33432
33433         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33434
33435 2010-03-08  Bruno Haible  <bruno@clisp.org>
33436
33437         gnulib-tool: Add support for --libtool in --create-testdir.
33438         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33439         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33440
33441 2010-03-08  Eric Blake  <eblake@redhat.com>
33442
33443         gnulib-tool.texi: mention possibility of git submodule
33444         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33445         submodules.
33446         * doc/.gitignore: Ignore another generated file.
33447
33448 2010-03-08  Karl Berry  <karl@gnu.org>
33449
33450         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33451         of committing gnulib files while skipping others.
33452
33453 2010-03-07  Bruno Haible  <bruno@clisp.org>
33454
33455         Tests of module 'wctype' in C++ mode.
33456         * tests/test-wctype-c++.cc: New file.
33457         * modules/wctype-tests (Files): Add it and tests/signature.h.
33458         (Depends-on): Add ansi-c++-opt.
33459         (Makefile.am): Arrange to compile and run test-wctype-c++.
33460
33461         Tests of module 'wchar' in C++ mode.
33462         * tests/test-wchar-c++.cc: New file.
33463         * modules/wchar-tests (Files): Add it and tests/signature.h.
33464         (Depends-on): Add ansi-c++-opt.
33465         (Makefile.am): Arrange to compile and run test-wchar-c++.
33466         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33467         gl_MODULE_INDICATOR.
33468
33469         Tests of module 'unistd' in C++ mode.
33470         * tests/test-unistd-c++.cc: New file.
33471         * modules/unistd-tests (Files): Add it and tests/signature.h.
33472         (Depends-on): Add ansi-c++-opt.
33473         (Makefile.am): Arrange to compile and run test-unistd-c++.
33474         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33475         gl_MODULE_INDICATOR.
33476
33477         Tests of module 'time' in C++ mode.
33478         * tests/test-time-c++.cc: New file.
33479         * modules/time-tests (Files): Add it and tests/signature.h.
33480         (Depends-on): Add ansi-c++-opt.
33481         (Makefile.am): Arrange to compile and run test-time-c++.
33482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33483
33484         Tests of module 'sys_time' in C++ mode.
33485         * tests/test-sys_time-c++.cc: New file.
33486         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33487         (Depends-on): Add ansi-c++-opt.
33488         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33489         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33490         gl_MODULE_INDICATOR.
33491
33492         Tests of module 'sys_stat' in C++ mode.
33493         * tests/test-sys_stat-c++.cc: New file.
33494         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33495         (Depends-on): Add ansi-c++-opt.
33496         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33497         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33498         gl_MODULE_INDICATOR.
33499
33500         Tests of module 'sys_socket' in C++ mode.
33501         * tests/test-sys_socket-c++.cc: New file.
33502         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33503         (Depends-on): Add ansi-c++-opt.
33504         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33505         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33506         gl_MODULE_INDICATOR.
33507
33508         Tests of module 'sys_select' in C++ mode.
33509         * tests/test-sys_select-c++.cc: New file.
33510         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33511         (Depends-on): Add ansi-c++-opt.
33512         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33513         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33514         gl_MODULE_INDICATOR.
33515
33516         Tests of module 'sys_ioctl' in C++ mode.
33517         * tests/test-sys_ioctl-c++.cc: New file.
33518         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33519         (Depends-on): Add ansi-c++-opt.
33520         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33521         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33522         gl_MODULE_INDICATOR.
33523
33524         Tests of module 'string' in C++ mode.
33525         * tests/test-string-c++.cc: New file.
33526         * modules/string-tests (Files): Add it and tests/signature.h.
33527         (Depends-on): Add ansi-c++-opt.
33528         (Makefile.am): Arrange to compile and run test-string-c++.
33529         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33530         gl_MODULE_INDICATOR.
33531
33532         Tests of module 'stdlib' in C++ mode.
33533         * tests/test-stdlib-c++.cc: New file.
33534         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33535         (Depends-on): Add ansi-c++-opt.
33536         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33537         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33538         gl_MODULE_INDICATOR.
33539
33540         Tests of module 'stdio' in C++ mode.
33541         * tests/test-stdio-c++.cc: New file.
33542         * modules/stdio-tests (Files): Add it and tests/signature.h.
33543         (Depends-on): Add ansi-c++-opt.
33544         (Makefile.am): Arrange to compile and run test-stdio-c++.
33545         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33546         gl_MODULE_INDICATOR.
33547
33548         Tests of module 'spawn' in C++ mode.
33549         * tests/test-spawn-c++.cc: New file.
33550         * modules/spawn-tests (Files): Add it and tests/signature.h.
33551         (Depends-on): Add ansi-c++-opt.
33552         (Makefile.am): Arrange to compile and run test-spawn-c++.
33553         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33554         gl_MODULE_INDICATOR.
33555
33556         Tests of module 'signal' in C++ mode.
33557         * tests/test-signal-c++.cc: New file.
33558         * modules/signal-tests (Files): Add it and tests/signature.h.
33559         (Depends-on): Add ansi-c++-opt.
33560         (Makefile.am): Arrange to compile and run test-signal-c++.
33561         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33562         gl_MODULE_INDICATOR.
33563
33564         Tests of module 'search' in C++ mode.
33565         * tests/test-search-c++.cc: New file.
33566         * modules/search-tests (Files): Add it and tests/signature.h.
33567         (Depends-on): Add ansi-c++-opt.
33568         (Makefile.am): Arrange to compile and run test-search-c++.
33569         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33570         gl_MODULE_INDICATOR.
33571
33572         Tests of module 'math' in C++ mode.
33573         * tests/test-math-c++.cc: New file.
33574         * modules/math-tests (Files): Add it and tests/signature.h.
33575         (Depends-on): Add ansi-c++-opt.
33576         (Makefile.am): Arrange to compile and run test-math-c++.
33577         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33578
33579         Tests of module 'locale' in C++ mode.
33580         * tests/test-locale-c++.cc: New file.
33581         * modules/locale-tests (Files): Add it and tests/signature.h.
33582         (Depends-on): Add ansi-c++-opt.
33583         (Makefile.am): Arrange to compile and run test-locale-c++.
33584         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33585         gl_MODULE_INDICATOR.
33586
33587         Tests of module 'langinfo' in C++ mode.
33588         * tests/test-langinfo-c++.cc: New file.
33589         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33590         (Depends-on): Add ansi-c++-opt.
33591         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33592         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33593         gl_MODULE_INDICATOR.
33594
33595         Tests of module 'iconv-h' in C++ mode.
33596         * tests/test-iconv-h-c++.cc: New file.
33597         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33598         (Depends-on): Add ansi-c++-opt.
33599         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33600
33601         Tests of module 'glob' in C++ mode.
33602         * tests/test-glob-c++.cc: New file.
33603         * modules/glob-tests (Files): Add it.
33604         (Depends-on): Add ansi-c++-opt.
33605         (Makefile.am): Arrange to compile and run test-glob-c++.
33606
33607         Tests of module 'fcntl-h' in C++ mode.
33608         * tests/test-fcntl-h-c++.cc: New file.
33609         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33610         (Depends-on): Add ansi-c++-opt.
33611         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33612         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33613         gl_MODULE_INDICATOR.
33614
33615         Tests of module 'dirent' in C++ mode.
33616         * tests/test-dirent-c++.cc: New file.
33617         * modules/dirent-tests (Files): Add it and tests/signature.h.
33618         (Depends-on): Add ansi-c++-opt.
33619         (Makefile.am): Arrange to compile and run test-dirent-c++.
33620         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33621         gl_MODULE_INDICATOR.
33622
33623         New module 'ansi-c++-opt'.
33624         * modules/ansi-c++-opt: New file.
33625         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33626
33627         Document C++ namespace mode.
33628         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33629
33630         wctype: Avoid #define replacements in C++ mode.
33631         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33632         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33633         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33634         In C++, define a namespaced alias symbol.
33635         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33636         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33637         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33638         rule.
33639
33640         wchar: Avoid #define replacements in C++ mode.
33641         * lib/wchar.in.h: Include c++defs.h.
33642         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33643         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33644         symbol.
33645         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33646         * modules/wchar (Depends-on): Add c++defs.
33647         (Makefile.am): Update wchar.h rule.
33648
33649         unistd: Avoid #define replacements in C++ mode.
33650         * lib/unistd.in.h: Include c++defs.h.
33651         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33652         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33653         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33654         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33655         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33656         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33657         symbol.
33658         (environ): Update.
33659         * modules/unistd (Depends-on): Add c++defs.
33660         (Makefile.am): Update unistd.h rule.
33661
33662         time: Avoid #define replacements in C++ mode.
33663         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33664         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33665         define a namespaced alias symbol.
33666         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33667         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33668         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33669         * modules/time (Depends-on): Add c++defs, warn-on-use.
33670         (Makefile.am): Update time.h rule.
33671         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33672         * modules/nanosleep (configure.ac): Likewise.
33673         * modules/strptime (configure.ac): Likewise.
33674         * modules/timegm (configure.ac): Likewise.
33675
33676         sys_time: Avoid #define replacements in C++ mode.
33677         * lib/sys_time.in.h: Include c++defs.h.
33678         (gettimeofday): In C++, define a namespaced alias symbol.
33679         * modules/sys_time (Depends-on): Add c++defs.
33680         (Makefile.am): Update sys/time.h rule.
33681
33682         sys_stat: Avoid #define replacements in C++ mode.
33683         * lib/sys_stat.in.h: Include c++defs.h.
33684         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33685         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33686         namespaced alias symbol.
33687         In C++, define a namespaced alias symbol.
33688         * modules/sys_stat (Depends-on): Add c++defs.
33689         (Makefile.am): Update sys/stat.h rule.
33690
33691         sys_socket: Avoid #define replacements in C++ mode.
33692         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33693         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33694         definitions also when the system has a <sys/socket.h>.
33695         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33696         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33697         In C++, define a namespaced alias symbol.
33698         * modules/sys_socket (Depends-on): Add c++defs.
33699         (Makefile.am): Update sys/socket.h rule.
33700
33701         sys_select: Avoid #define replacements in C++ mode.
33702         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33703         definitions also when the system has a <sys/select.h>.
33704         (select): In C++, define a namespaced alias symbol.
33705         * modules/sys_select (Depends-on): Add c++defs.
33706         (Makefile.am): Update sys/select.h rule.
33707
33708         sys_ioctl: Avoid #define replacements in C++ mode.
33709         * lib/sys_ioctl.in.h: Include c++defs.h.
33710         (ioctl): In C++, define a namespaced alias symbol.
33711         * modules/sys_ioctl (Depends-on): Add c++defs.
33712         (Makefile.am): Update sys/ioctl.h rule.
33713
33714         string: Avoid #define replacements in C++ mode.
33715         * lib/string.in.h: Include c++defs.h.
33716         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33717         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33718         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33719         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33720         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33721         * modules/string (Depends-on): Add c++defs.
33722         (Makefile.am): Update string.h rule.
33723
33724         stdlib: Avoid #define replacements in C++ mode.
33725         * lib/stdlib.in.h: Include c++defs.h.
33726         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33727         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33728         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33729         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33730         symbol.
33731         * modules/stdlib (Depends-on): Add c++defs.
33732         (Makefile.am): Update stdlib.h rule.
33733
33734         stdio: Avoid #define replacements in C++ mode.
33735         * lib/stdio.in.h: Include c++defs.h.
33736         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33737         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33738         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33739         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33740         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33741         namespaced alias symbol.
33742         * modules/stdio (Depends-on): Add c++defs.
33743         (Makefile.am): Update stdio.h rule.
33744
33745         spawn: Avoid #define replacements in C++ mode.
33746         * lib/spawn.in.h: Include c++defs.h.
33747         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33748         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33749         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33750         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33751         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33752         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33753         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33754         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33755         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33756         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33757         In C++, define a namespaced alias symbol.
33758         * modules/spawn (Depends-on): Add c++defs.
33759         (Makefile.am): Update spawn.h rule.
33760
33761         signal: Avoid #define replacements in C++ mode.
33762         * lib/signal.in.h: Include c++defs.h.
33763         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33764         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33765         namespaced alias symbol.
33766         * modules/signal (Depends-on): Add c++defs.
33767         (Makefile.am): Update signal.h rule.
33768
33769         search: Avoid #define replacements in C++ mode.
33770         * lib/search.in.h: Include c++defs.h.
33771         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33772         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33773         symbol.
33774         * modules/search (Depends-on): Add c++defs.
33775         (Makefile.am): Update search.h rule.
33776
33777         math: Avoid #define replacements in C++ mode.
33778         * lib/math.in.h: Include c++defs.h.
33779         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33780         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33781         trunc, truncl): In C++, define a namespaced alias symbol.
33782         * modules/math (Depends-on): Add c++defs.
33783         (Makefile.am): Update math.h rule.
33784
33785         locale: Avoid #define replacements in C++ mode.
33786         * lib/locale.in.h: Include c++defs.h.
33787         (duplocale): In C++, define a namespaced alias symbol.
33788         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33789         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33790         * modules/locale (Depends-on): Add c++defs.
33791         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33792
33793         langinfo: Avoid #define replacements in C++ mode.
33794         * lib/langinfo.in.h: Include c++defs.h.
33795         (nl_langinfo): In C++, define a namespaced alias symbol.
33796         * modules/langinfo (Depends-on): Add c++defs.
33797         (Makefile.am): Update langinfo.h rule.
33798
33799         iconv-h: Avoid #define replacements in C++ mode.
33800         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33801         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33802         symbol.
33803         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33804         whenever iconv is present.
33805         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33806         (Makefile.am): Update iconv.h rule.
33807
33808         glob: Avoid #define replacements in C++ mode.
33809         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33810         (_gl_glob_errfunc_fn): New type.
33811         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33812         symbol.
33813         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33814         (Makefile.am): Update glob.h rule.
33815
33816         fcntl-h: Avoid #define replacements in C++ mode.
33817         * lib/fcntl.in.h: Include c++defs.h.
33818         (fcntl, open, openat): In C++, define a namespaced alias symbol.
33819         * modules/fcntl-h (Depends-on): Add c++defs.
33820         (Makefile.am): Update fcntl.h rule.
33821
33822         dirent: Avoid #define replacements in C++ mode.
33823         * lib/dirent.in.h: Include c++defs.h.
33824         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
33825         namespaced alias symbol.
33826         (dirfd): Update declaration.
33827         * modules/dirent (Depends-on): Add c++defs.
33828         (Makefile.am): Update dirent.h rule.
33829
33830         ctype: Make it usable in C++ code.
33831         * lib/ctype.in.h: Include c++defs.h.
33832         (isblank): Declare as extern "C".
33833         * modules/ctype (Depends-on): Add c++defs.
33834         (Makefile.am): Update ctype.h rule.
33835
33836         New module 'c++defs'.
33837         * modules/c++defs: New file.
33838         * build-aux/c++defs.h: New file.
33839         Reported by John W. Eaton <jwe@gnu.org>.
33840
33841 2010-03-07  Bruno Haible  <bruno@clisp.org>
33842
33843         logb: Provide missing declaration for Cygwin.
33844         * lib/math.in.h (logb): New declaration.
33845         * m4/logb.m4: New file.
33846         * modules/logb (Files): Add m4/logb.m4.
33847         (Depends-on): Add math.
33848         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
33849         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
33850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
33851         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
33852         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
33853
33854 2010-03-07  Bruno Haible  <bruno@clisp.org>
33855
33856         Fix test-cond link error.
33857         * tests/test-cond.c: Include <stdio.h>.
33858
33859 2010-03-07  Bruno Haible  <bruno@clisp.org>
33860
33861         Fix test-dirent-safer link error.
33862         * modules/dirent-safer-tests (Makefile.am): Define
33863         test_dirent_safer_LDADD.
33864
33865 2010-03-07  Bruno Haible  <bruno@clisp.org>
33866
33867         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
33868         among default module list.
33869
33870 2010-03-07  Bruno Haible  <bruno@clisp.org>
33871
33872         Fix link error on platforms with GNU libiconv.
33873         * modules/unistr/u8-strcoll-tests (Makefile): Define
33874         test_u8_strcoll_LDADD.
33875         * modules/unistr/u16-strcoll-tests (Makefile): Define
33876         test_u16_strcoll_LDADD.
33877         * modules/unistr/u32-strcoll-tests (Makefile): Define
33878         test_u32_strcoll_LDADD.
33879
33880 2010-03-07  Bruno Haible  <bruno@clisp.org>
33881
33882         Use POSIX declarations for socket functions.
33883         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
33884         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
33885         rpl_sendto): Change declaration to match POSIX.
33886         * lib/connect.c (rpl_connect): Likewise.
33887         * lib/accept.c (rpl_accept): Likewise.
33888         * lib/bind.c (rpl_bind): Likewise.
33889         * lib/getpeername.c (rpl_getpeername): Likewise.
33890         * lib/getsockname.c (rpl_getsockname): Likewise.
33891         * lib/recv.c (rpl_recv): Likewise.
33892         * lib/send.c (rpl_send): Likewise.
33893         * lib/recvfrom.c (rpl_recvfrom): Likewise.
33894         * lib/sendto.c (rpl_sendto): Likewise.
33895
33896 2010-03-06  Bruno Haible  <bruno@clisp.org>
33897
33898         Clarify access, euidaccess, faccessat.
33899         * doc/posix-functions/faccessat.texi: Mention security problem under
33900         "Other problems", not "Portability problems".
33901         * doc/posix-functions/access.texi: Likewise. Mention a related security
33902         problem.
33903         * doc/glibc-functions/euidaccess.texi: Mention security problems.
33904         * lib/euidaccess.c: Add comments about platforms.
33905         * lib/unistd.in.h (access, euidaccess): Add warnings.
33906
33907 2010-03-07  Bruno Haible  <bruno@clisp.org>
33908
33909         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
33910         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
33911         (POSIX_SPAWN_SETSCHEDULER): Likewise.
33912         (POSIX_SPAWN_USEVFORK): Define in a way that works when
33913         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33914         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
33915         declare when POSIX_SPAWN_SETSCHEDULER is zero.
33916         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
33917         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
33918         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
33919         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
33920         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
33921         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
33922         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
33923         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
33924         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
33925         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
33926         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
33927         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
33928         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
33929         Likewise.
33930         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
33931         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
33932         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
33933         Likewise.
33934         * tests/test-spawn.c (main): Make it work when
33935         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
33936
33937 2010-03-07  Bruno Haible  <bruno@clisp.org>
33938
33939         Fix incorrect Makefile.am generation in German locale.
33940         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33941         Execute sed command with character range in C locale.
33942
33943 2010-03-06  Bruno Haible  <bruno@clisp.org>
33944
33945         Tests for module 'iconv-h'.
33946         * modules/iconv-h-tests: New file.
33947         * tests/test-iconv-h.c: New file.
33948
33949         New module 'iconv-h'.
33950         * modules/iconv-h: New file.
33951         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33952         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33953         (configure.ac): Remove gl_ICONV_H.
33954         (Makefile.am): Remove rule for iconv.h.
33955
33956 2010-03-06  Bruno Haible  <bruno@clisp.org>
33957
33958         More consistent naming of *.m4 files.
33959         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33960         * modules/wctype (Files): Update.
33961
33962         More consistent naming of *.m4 files.
33963         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33964         * modules/wchar (Files): Update.
33965
33966 2010-03-06  Jim Meyering  <meyering@redhat.com>
33967
33968         euidaccess: relax license to LGPLv2+
33969         * modules/euidaccess (License): Relax to LGPLv2+.
33970
33971 2010-03-06  Bruno Haible  <bruno@clisp.org>
33972
33973         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33974         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33975         (Makefile.am): Augment lib_SOURCES instead.
33976
33977 2010-03-04  Jim Meyering  <meyering@redhat.com>
33978
33979         utime: remove obsolete module
33980         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33981         unnecessary for years, and has been marked as obsolete for 10 months.
33982         * modules/utime: Remove file.
33983         * lib/utime.c: Remove file.
33984         * m4/utime.m4: Remove file.
33985         * m4/utimes-null.m4: Remove file.
33986         * doc/posix-functions/utime.texi (utime): Remove reference to
33987         the module.  Move the sole "fixed by gnulib" item into the
33988         "problems not fixed by Gnulib" list.
33989         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33990
33991 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33992
33993         * modules/exit (License): Relax license to LGPLv2+.
33994         (Status): Mark as obsolete.
33995         * NEWS: Mention deprecated 'exit' module.
33996         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33997         of now obsolete 'exit'.
33998
33999 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34000
34001         fts-lgpl: remove unused module
34002         * modules/fts-lgpl: Remove.
34003         * MODULES.html.sh (func_all_modules): Adjust.
34004         * check-module (find_included_lib_files): Adjust.
34005         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34006
34007 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34008
34009         copy-acl: enhance Solaris ACL error handling
34010         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34011         * lib/set-mode-acl.c (qset_acl): Likewise.
34012
34013 2010-03-02  Bruno Haible  <bruno@clisp.org>
34014
34015         spawn: Don't override the system defined values on FreeBSD 8.
34016         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34017         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34018         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34019         if HAVE_POSIX_SPAWN is 1.
34020         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34021
34022 2010-03-01  Bruno Haible  <bruno@clisp.org>
34023
34024         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34025         regarding Automake.
34026
34027 2010-02-25  Bruno Haible  <bruno@clisp.org>
34028
34029         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34030         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34031         setting, not afterwards.
34032         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34033
34034 2010-02-24  Eric Blake  <eblake@redhat.com>
34035
34036         bootstrap, git-version-gen: use timestamp
34037         * build-aux/git-version-gen (scriptversion): Force UTC.
34038         * build-aux/bootstrap (scriptversion): New variable.
34039
34040         bootstrap: allow older git
34041         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34042         older than 1.6.4.  Requested by the libvirt project.
34043
34044 2010-02-23  Eric Blake  <eblake@redhat.com>
34045
34046         warn-on-use: work with old autoconf
34047         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34048         AS_VAR semantics of autoconf 2.60.
34049         Reported by Bruno Haible.
34050
34051         bootstrap: improve some comments
34052         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34053         clarification comments.
34054
34055         gettimeofday: provide correct function
34056         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34057         when replacement is declared, otherwise provide gettimeofday.
34058         Reported by Michael Goffioul.
34059
34060 2010-02-23  Jim Meyering  <meyering@redhat.com>
34061
34062         lib-ignore: relax license to "unlimited", not LGPLv2+
34063         * modules/lib-ignore (License): Relax to "unlimited".
34064
34065 2010-02-23  Jim Meyering  <meyering@redhat.com>
34066
34067         lib-ignore: relax license to LGPLv2+
34068         * modules/lib-ignore (License): Relax to LGPLv2+.
34069
34070 2010-02-22  Eric Blake  <eblake@redhat.com>
34071
34072         lseek: avoid bash 3.2 broken pipe bug
34073         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34074         warning from bash 3.2.
34075         Reported by Ben Pfaff, with analysis from Bruno Haible.
34076
34077         bootstrap: support non-FSF copyright holder
34078         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34079         bootstrap.conf override of COPYRIGHT_HOLDER.
34080         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34081
34082         bootstrap: interoperate with gettext 0.14.1
34083         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34084
34085         bootstrap: allow for alternate submodule location
34086         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34087         hardcoding submodule location.
34088         (gnulib_mk): Allow direct use of Makefile.am.
34089
34090         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34091         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34092         rather than reconfiguring where the submodule points.
34093
34094         gettimeofday: restore support for platforms that lack function
34095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34096         replacement if function is missing.
34097         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34098         * modules/sys_time (Makefile.am): Substitute it.
34099         * lib/sys_time.in.h (gettimeofday): Check it.
34100         Reported by Michael Goffioul.
34101
34102 2010-02-21  Bruno Haible  <bruno@clisp.org>
34103
34104         * lib/stdio.in.h (obstack_printf): Fix typo.
34105
34106 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34107
34108         vc-list-files: use bzr ls's -R option
34109         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34110         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34111
34112 2010-02-21  Jim Meyering  <meyering@redhat.com>
34113
34114         init.sh: fix EXEEXT shims to work also for names like test-prog
34115         * tests/init.sh: Re-exec a better shell, when needed.
34116         If the current shell lacks support for posix $(...), an init.sh-using
34117         test will now try to find a shell that supports that.  If EXEEXT is
34118         nonempty, we also require support for hyphen-in-alias-name and shell
34119         substitutions like ${var#glob}.  Failure to find such a shell results
34120         in a skipped test.
34121
34122 2010-02-21  Bruno Haible  <bruno@clisp.org>
34123
34124         Really work around around "broken pipe" error message from bash 3.2.
34125         * gnulib-tool (func_reset_sigpipe): Remove function.
34126         (echo): In bash 3.2, define to a function that uses printf.
34127         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34128
34129 2010-02-20  Bruno Haible  <bruno@clisp.org>
34130
34131         Restore support for automake 1.9.6 with autoconf 2.61.
34132         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34133         Reported by James Youngman <jay@gnu.org>.
34134
34135 2010-02-20  Bruno Haible  <bruno@clisp.org>
34136
34137         Improve *printf warning condition.
34138         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34139         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34140         and the function is overridden due to SIGPIPE emulation.
34141
34142 2010-02-20  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/stdio.in.h: Tweak comments.
34145
34146 2010-02-19  Bruno Haible  <bruno@clisp.org>
34147
34148         Make it easier to find modules. New gnulib-tool option '--find'.
34149         * gnulib-tool: New option --find.
34150         (func_usage): Document it.
34151         (func_sanitize_modulelist): New function, extracted from
34152         func_all_modules.
34153         (func_all_modules): Invoke it.
34154         * doc/gnulib-tool.texi (Which modules?): New node.
34155
34156 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34157
34158         * lib/sys_select.in.h: Provide select replacement even if
34159         sys/select.h exists on a system, for Interix.
34160
34161 2010-02-18  Jim Meyering  <meyering@redhat.com>
34162
34163         init.sh: don't use $(...) just yet
34164         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34165         to accommodate e.g., Solaris' /bin/sh.
34166
34167 2010-02-17  Bruno Haible  <bruno@clisp.org>
34168
34169         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34170         Reported by Ludovic Courtès <ludo@gnu.org>.
34171
34172 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34173
34174         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34175         linking with -lintl.
34176
34177 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34178
34179         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34180         if not provided by the system's netdb.h.  Reported by
34181         ludo@gnu.org (Ludovic Courtès).
34182
34183 2010-02-15  Jim Meyering  <meyering@redhat.com>
34184
34185         init.sh: improve portability and efficiency
34186         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34187         "dummy" in a for loop.
34188         Use '!', not '^' to select the complement of a character set used
34189         in a "case" statement.
34190         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34191         Suggestions from Eric Blake.
34192
34193         init.sh: automatically accommodate programs with the .exe suffix
34194         Automatically arrange for an invocation of "prog" to execute the
34195         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34196         may use the simpler "prog", yet still work when built on a system
34197         that requires specifying the added suffix.
34198         Do this by constructing a function named "prog" that invokes
34199         "prog.exe" for each .exe file in selected directories.
34200         * tests/init.sh (find_exe_basenames_): New function.
34201         (create_exe_shim_functions_): New function.
34202         (path_prepend_): Use it.
34203
34204         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34205         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34206         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34207
34208 2010-02-14  Jim Meyering  <meyering@redhat.com>
34209
34210         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34211         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34212         (sc_prohibit_hash_pjw_without_use): New rule.
34213
34214         maint.mk: allow the default upload destination dir to be overridden
34215         * top/maint.mk (upload_dest_dir_): Define with a default that
34216         preserves the status quo.
34217         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34218         Reported by Peter Simons.
34219
34220         maint.mk: prohibit inclusion of "hash.h" without_use
34221         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34222
34223 2010-02-10  Jim Meyering  <meyering@redhat.com>
34224
34225         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34226         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34227
34228 2010-02-09  Eric Blake  <ebb9@byu.net>
34229         and Bruno Haible  <bruno@clisp.org>
34230
34231         obstack-printf-posix: ensure declaration
34232         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34233         extracted from gl_FUNC_OBSTACK_PRINTF.
34234         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34235         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34236         Likewise.
34237         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34238         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34239         0.
34240
34241 2010-02-08  Bruno Haible  <bruno@clisp.org>
34242
34243         gnulib-tool: Fix typo in 2010-02-07 commit.
34244         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34245         Reported by Eric Blake.
34246
34247 2010-02-07  Bruno Haible  <bruno@clisp.org>
34248
34249         gnulib-tool: Fix up caching patches.
34250         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34251         option --no-cache. Use associative arrays when supported by the shell.
34252         (sed_comments): New variable.
34253         (modcache): Renamed from do_cache.
34254         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34255         abbreviate unnecessarily.
34256         (have_associative): New variable.
34257         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34258         way also for ksh and zsh.
34259         (func_init_sed_convert_to_cache_statements): New function, extracted
34260         from func_cache_lookup_module. Add support for associative arrays.
34261         Don't set the c_MODULE_cached variable here. Ignore all lines before
34262         the first field header. Remove only the final newline, not all trailing
34263         newlines. Support empty fields correctly. Limit the use of 'eval' to
34264         assignments.
34265         (func_get_description, func_get_status, func_get_notice,
34266         func_get_applicability, func_get_filelist, func_get_dependencies,
34267         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34268         func_get_automake_snippet, func_get_include_directive,
34269         func_get_link_directive, func_get_license, func_get_maintainer):
34270         Update documentation. List the unoptimized code first. Add support for
34271         associative arrays. Limit the use of 'eval' to assignments.
34272         (func_get_applicability): Undo stylistic pessimisations.
34273         (func_get_automake_snippet, func_get_include_directive): Reduce code
34274         duplication.
34275         (func_modules_transitive_closure, func_modules_add_dummy,
34276         func_modules_notice, func_modules_to_filelist, func_add_file,
34277         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34278         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34279         func_create_testdir, func_create_megatestdir): Update documentation.
34280
34281 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34282
34283         * gnulib-tool (func_cache_lookup_module): Store the module name
34284         belonging to the cache variable; error out if two different
34285         module names map to the same cache variable name.
34286
34287 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34288
34289         gnulib-tool: Make caching optional.
34290         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34291         Update matching short versions of --no-changelog.
34292         (func_usage): Update.
34293         (sed_extract_cache_prog): Renamed from ...
34294         (sed_extract_prog): ... this; revert to old extraction script.
34295         (func_get_description, func_get_status)
34296         (func_get_notice, func_get_applicability, func_get_filelist)
34297         (func_get_dependencies, func_get_autoconf_early_snippet)
34298         (func_get_autoconf_snippet, func_get_automake_snippet)
34299         (func_get_include_directive, func_get_link_directive)
34300         (func_get_license, func_get_maintainer): If $do_cache is false,
34301         use old, non-caching extraction scripts.
34302         Suggestion by Bruno Haible.
34303
34304 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34305
34306         gnulib-tool: cache module metainformation.
34307         * gnulib-tool (sed_extract_prog): Match newline before each
34308         header, and rewrite header to a shell variable suffix.
34309         (func_cache_var, func_cache_lookup_module): New functions,
34310         to turn a module name into a cache variable prefix, and to
34311         look up and cache module metainformation.
34312         (func_get_description, func_get_status)
34313         (func_get_notice, func_get_applicability, func_get_filelist)
34314         (func_get_dependencies, func_get_autoconf_early_snippet)
34315         (func_get_autoconf_snippet, func_get_automake_snippet)
34316         (func_get_include_directive, func_get_link_directive)
34317         (func_get_license, func_get_maintainer): Use
34318         func_cache_lookup_module.
34319
34320 2010-02-07  Bruno Haible  <bruno@clisp.org>
34321
34322         fnctl: Fix missing dependency.
34323         * modules/fcntl (Depends-on): Add getdtablesize.
34324         Reported by John W. Eaton <jwe@gnu.org>.
34325
34326 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34327
34328         Argp: fix recognition of short alias options.
34329
34330         * lib/argp-parse.c (convert_options): Fix improper use of
34331         `|' between character values.
34332         * tests/test-argp.c (group1_option): New alias option
34333         --read (-r).
34334         (group1_parser): Special handling for 'r'.
34335         (test15): New test case.
34336         (test_fun): Add test15.
34337         * tests/test-argp-2.sh: Update expected --help and --usage
34338         outputs.
34339
34340 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34341
34342         * tests/test-argp.c: Fix indentation.
34343
34344 2010-02-04  Eric Blake  <ebb9@byu.net>
34345
34346         gettimeofday: expose type of second argument
34347         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34348         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34349         * tests/test-gettimeofday.c: Use it to silence warning.
34350         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34351         the issue.
34352
34353 2010-02-03  Jim Meyering  <meyering@redhat.com>
34354
34355         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34356         * lib/regcomp.c (TYPE_SIGNED): Define.
34357         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34358
34359         regcomp.c: avoid a new -Wshadow warning
34360         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34361
34362 2010-02-01  Jim Meyering  <meyering@redhat.com>
34363
34364         removing useless parentheses in cpp #define directives
34365         For motivation, see commit c0221df4, "define STREQ(a,b)
34366         consistently, removing useless parentheses"
34367         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34368         * lib/mountlist.c (MNT_IGNORE): Likewise.
34369         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34370
34371 2010-02-01  Eric Blake  <ebb9@byu.net>
34372
34373         sys_time: use link-warning
34374         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34375         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34376         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34377         * modules/sys_time (Depends-on): Add warn-on-use.
34378         (Makefile.am): Always build replacement.
34379         (configure.ac): Update substitutions.
34380         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34381         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34382         bother with SYS_TIME_H.
34383         * modules/gettimeofday (configure.ac): Declare indicator.
34384         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34385         in use.
34386
34387         closein-tests: silence compiler warning
34388         * tests/test-closein.c (main): Ignore fread result.
34389         * modules/closein-tests (Depends-on): Add ignore-value.
34390
34391         tests: silence warning about system return
34392         * tests/test-areadlink-with-size.c (main): Ignore system result.
34393         * tests/test-areadlink.c (main): Likewise.
34394         * tests/test-areadlinkat-with-size.c (main): Likewise.
34395         * tests/test-areadlinkat.c (main): Likewise.
34396         * tests/test-canonicalize-lgpl.c (main): Likewise.
34397         * tests/test-canonicalize.c (main): Likewise.
34398         * tests/test-chown.c (main): Likewise.
34399         * tests/test-fchownat.c (main): Likewise.
34400         * tests/test-fdutimensat.c (main): Likewise.
34401         * tests/test-fstatat.c (main): Likewise.
34402         * tests/test-futimens.c (main): Likewise.
34403         * tests/test-lchown.c (main): Likewise.
34404         * tests/test-link.c (main): Likewise.
34405         * tests/test-linkat.c (main): Likewise.
34406         * tests/test-lstat.c (main): Likewise.
34407         * tests/test-mkdir.c (main): Likewise.
34408         * tests/test-mkdirat.c (main): Likewise.
34409         * tests/test-mkfifo.c (main): Likewise.
34410         * tests/test-mkfifoat.c (main): Likewise.
34411         * tests/test-mknod.c (main): Likewise.
34412         * tests/test-readlink.c (main): Likewise.
34413         * tests/test-remove.c (main): Likewise.
34414         * tests/test-rename.c (main): Likewise.
34415         * tests/test-renameat.c (main): Likewise.
34416         * tests/test-rmdir.c (main): Likewise.
34417         * tests/test-symlink.c (main): Likewise.
34418         * tests/test-symlinkat.c (main): Likewise.
34419         * tests/test-unlink.c (main): Likewise.
34420         * tests/test-unlinkat.c (main): Likewise.
34421         * tests/test-utimens.c (main): Likewise.
34422         * tests/test-utimensat.c (main): Likewise.
34423         * modules/areadlink-tests (Depends-on): Add ignore-value.
34424         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34425         * modules/areadlinkat-tests (Depends-on): Likewise.
34426         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34427         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34428         * modules/canonicalize-tests (Depends-on): Likewise.
34429         * modules/chown-tests (Depends-on): Likewise.
34430         * modules/fdutimensat-tests (Depends-on): Likewise.
34431         * modules/futimens-tests (Depends-on): Likewise.
34432         * modules/lchown-tests (Depends-on): Likewise.
34433         * modules/link-tests (Depends-on): Likewise.
34434         * modules/linkat-tests (Depends-on): Likewise.
34435         * modules/lstat-tests (Depends-on): Likewise.
34436         * modules/mkdir-tests (Depends-on): Likewise.
34437         * modules/mkfifo-tests (Depends-on): Likewise.
34438         * modules/mkfifoat-tests (Depends-on): Likewise.
34439         * modules/mknod-tests (Depends-on): Likewise.
34440         * modules/openat-tests (Depends-on): Likewise.
34441         * modules/readlink-tests (Depends-on): Likewise.
34442         * modules/remove-tests (Depends-on): Likewise.
34443         * modules/rename-tests (Depends-on): Likewise.
34444         * modules/renameat-tests (Depends-on): Likewise.
34445         * modules/rmdir-tests (Depends-on): Likewise.
34446         * modules/symlink-tests (Depends-on): Likewise.
34447         * modules/symlinkat-tests (Depends-on): Likewise.
34448         * modules/unlink-tests (Depends-on): Likewise.
34449         * modules/utimens-tests (Depends-on): Likewise.
34450         * modules/utimensat-tests (Depends-on): Likewise.
34451
34452 2010-01-31  Bruno Haible  <bruno@clisp.org>
34453
34454         Perform the same test for many <math.h> functions.
34455         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34456         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34457         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34458         of gl_MATHFUNC.
34459         * modules/acos (configure.ac): Likewise.
34460         * modules/asin (configure.ac): Likewise.
34461         * modules/atan (configure.ac): Likewise.
34462         * modules/atan2 (configure.ac): Likewise.
34463         * modules/cbrt (configure.ac): Likewise.
34464         * modules/copysign (configure.ac): Likewise.
34465         * modules/cos (configure.ac): Likewise.
34466         * modules/cosh (configure.ac): Likewise.
34467         * modules/erf (configure.ac): Likewise.
34468         * modules/erfc (configure.ac): Likewise.
34469         * modules/exp (configure.ac): Likewise.
34470         * modules/fmod (configure.ac): Likewise.
34471         * modules/hypot (configure.ac): Likewise.
34472         * modules/j0 (configure.ac): Likewise.
34473         * modules/j1 (configure.ac): Likewise.
34474         * modules/jn (configure.ac): Likewise.
34475         * modules/lgamma (configure.ac): Likewise.
34476         * modules/log (configure.ac): Likewise.
34477         * modules/log10 (configure.ac): Likewise.
34478         * modules/log1p (configure.ac): Likewise.
34479         * modules/pow (configure.ac): Likewise.
34480         * modules/remainder (configure.ac): Likewise.
34481         * modules/sin (configure.ac): Likewise.
34482         * modules/sinh (configure.ac): Likewise.
34483         * modules/tan (configure.ac): Likewise.
34484         * modules/tanh (configure.ac): Likewise.
34485         * modules/y0 (configure.ac): Likewise.
34486         * modules/y1 (configure.ac): Likewise.
34487         * modules/yn (configure.ac): Likewise.
34488         Suggested by Paolo Bonzini.
34489
34490 2010-01-31  Bruno Haible  <bruno@clisp.org>
34491
34492         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34493
34494 2010-01-31  Bruno Haible  <bruno@clisp.org>
34495
34496         Work around getdelim() bug on FreeBSD 8.0.
34497         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34498         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34499         not work.
34500         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34501         is 1.
34502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34503         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34504         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34505         a non-zero size.
34506         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34507
34508 2010-01-31  Bruno Haible  <bruno@clisp.org>
34509
34510         Work around getline() bug on FreeBSD 8.0.
34511         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34512         and a non-zero size.
34513         * tests/test-getline.c (main): Likewise.
34514         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34515         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34516
34517 2010-01-28  Eric Blake  <ebb9@byu.net>
34518
34519         regex: fix build failure
34520         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34521         platforms.
34522
34523 2010-01-28  Jim Meyering  <meyering@redhat.com>
34524
34525         regex: do not ignore memory allocation failure
34526         * lib/regex_internal.c (create_cd_newstate): Detect
34527         re_node_set_init_copy failure.   Extracted from glibc commit
34528         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34529
34530         regex: sync more white-space changes from libc
34531         * lib/regex_internal.c: White-space only changes.
34532         * lib/regexec.c: Likewise.
34533
34534         regex: add many uses of __attribute_warn_unused_result__
34535         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34536         * lib/regexec.c: Likewise.
34537         Extracted from a messy glibc commit.
34538
34539         regcomp.c: spelling and merge-artifact from glibc
34540         * lib/regcomp.c: Merge remainder of glibc's
34541         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34542
34543         regcomp.c: sync white-space changes from glibc
34544         * lib/regcomp.c: Merge to accommodate white space
34545         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34546
34547         regcomp.c: do not ignore internal return values
34548         * lib/regcomp.c: Do not ignore internal return values.
34549         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34550         but without its white-space changes and spelling fixes.
34551
34552         regex_internal.h: define __attribute_warn_unused_result__
34553         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34554
34555         maint: add a syntax-check rule to check for vulnerable Makefile.in
34556         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34557
34558 2010-01-27  Jim Meyering  <meyering@redhat.com>
34559
34560         ncftpput-ftp: clean up spaces
34561         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34562         Remove trailing blanks.
34563
34564 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34565
34566         * build-aux/git-version-gen: Fix copyright statement.
34567         * build-aux/gnupload: Likewise.
34568         * tests/test-arcfour.c: Likewise.
34569         * tests/test-arctwo.c: Likewise.
34570         * tests/test-count-one-bits.c: Likewise.
34571         * tests/test-crc.c: Likewise.
34572         * tests/test-des.c: Likewise.
34573         * tests/test-gc-arcfour.c: Likewise.
34574         * tests/test-gc-arctwo.c: Likewise.
34575         * tests/test-gc-des.c: Likewise.
34576         * tests/test-gc-hmac-md5.c: Likewise.
34577         * tests/test-gc-hmac-sha1.c: Likewise.
34578         * tests/test-gc-md2.c: Likewise.
34579         * tests/test-gc-md4.c: Likewise.
34580         * tests/test-gc-md5.c: Likewise.
34581         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34582         * tests/test-gc-rijndael.c: Likewise.
34583         * tests/test-gc-sha1.c: Likewise.
34584         * tests/test-gc.c: Likewise.
34585         * tests/test-gethostname.c: Likewise.
34586         * tests/test-gettimeofday.c: Likewise.
34587         * tests/test-hash.c: Likewise.
34588         * tests/test-hmac-md5.c: Likewise.
34589         * tests/test-hmac-sha1.c: Likewise.
34590         * tests/test-md2.c: Likewise.
34591         * tests/test-md4.c: Likewise.
34592         * tests/test-md5.c: Likewise.
34593         * tests/test-memchr.c: Likewise.
34594         * tests/test-memchr2.c: Likewise.
34595         * tests/test-memcmp.c: Likewise.
34596         * tests/test-memmem.c: Likewise.
34597         * tests/test-memrchr.c: Likewise.
34598         * tests/test-rawmemchr.c: Likewise.
34599         * tests/test-read-file.c: Likewise.
34600         * tests/test-rijndael.c: Likewise.
34601         * tests/test-sockets.c: Likewise.
34602         * tests/test-strchrnul.c: Likewise.
34603         * tests/test-strstr.c: Likewise.
34604         * tests/test-strtod.c: Likewise.
34605         * build-aux/ncftpput-ftp: Likewise.
34606
34607 2010-01-26  Eric Blake  <ebb9@byu.net>
34608
34609         ignore-value: update recommended header name
34610         * modules/ignore-value (Include): Only use <> for headers that
34611         exist in glibc.
34612
34613 2010-01-26  Jim Meyering  <meyering@redhat.com>
34614
34615         test-userspec.c: avoid compiler warnings
34616         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34617         and "initialization discards qualifiers..." warnings.
34618         Put the first "uid" in its own scope, and make char* members "const".
34619
34620 2010-01-25  Bruno Haible  <bruno@clisp.org>
34621
34622         gnulib-tool: Make warning diagnostics consistent.
34623         * gnulib-tool (func_warning): New function.
34624         Use it everywhere where gnulib-tool produces output to stderr and it is
34625         not a fatal error.
34626
34627 2010-01-25  Bruno Haible  <bruno@clisp.org>
34628
34629         Fix test dependencies.
34630         * modules/xstrtol-tests (Depends-on): Add inttypes.
34631         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34632
34633 2010-01-25 Pádraig Brady <P@draigBrady.com>
34634
34635         syntax-check: detect incorrect boolean macro values in config.h
34636         * modules/maintainer-makefile (configure.ac): Parameterize the location
34637         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34638         The logic is from Eric Blake and the location indicated by Jim Meyering.
34639         Note the more natural CONFIG_HEADER name is prohibited by automake
34640         for backwards compatibility reasons.
34641         * top/maint.mk (sc_Wundef_boolean): New rule.
34642
34643 2010-01-25  Jim Meyering  <meyering@redhat.com>
34644
34645         bootstrap: detect MacOS 10.6's shasum, too
34646         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34647         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34648
34649 2010-01-23  Jim Meyering  <meyering@redhat.com>
34650
34651         xstrtoll: new module
34652         * modules/xstrtoll: New file.
34653         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34654         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34655         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34656         ./configure fails if you use this module and lack "long long".
34657         * modules/xstrtoll-tests: New module.
34658         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34659         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34660         new init.sh-based test framework.
34661
34662 2010-01-24  Bruno Haible  <bruno@clisp.org>
34663
34664         Tests for module 'yn'.
34665         * modules/yn-tests: New file.
34666         * tests/test-yn.c: New file.
34667
34668         Tests for module 'y1'.
34669         * modules/y1-tests: New file.
34670         * tests/test-y1.c: New file.
34671
34672         Tests for module 'y0'.
34673         * modules/y0-tests: New file.
34674         * tests/test-y0.c: New file.
34675
34676         Tests for module 'tanh'.
34677         * modules/tanh-tests: New file.
34678         * tests/test-tanh.c: New file.
34679
34680         Tests for module 'tan'.
34681         * modules/tan-tests: New file.
34682         * tests/test-tan.c: New file.
34683
34684         Tests for module 'sqrt'.
34685         * modules/sqrt-tests: New file.
34686         * tests/test-sqrt.c: New file.
34687
34688         Tests for module 'sinh'.
34689         * modules/sinh-tests: New file.
34690         * tests/test-sinh.c: New file.
34691
34692         Tests for module 'sin'.
34693         * modules/sin-tests: New file.
34694         * tests/test-sin.c: New file.
34695
34696         Tests for module 'rint'.
34697         * modules/rint-tests: New file.
34698         * tests/test-rint.c: New file.
34699
34700         Tests for module 'remainder'.
34701         * modules/remainder-tests: New file.
34702         * tests/test-remainder.c: New file.
34703
34704         Tests for module 'pow'.
34705         * modules/pow-tests: New file.
34706         * tests/test-pow.c: New file.
34707
34708         Tests for module 'nextafter'.
34709         * modules/nextafter-tests: New file.
34710         * tests/test-nextafter.c: New file.
34711
34712         Tests for module 'modf'.
34713         * modules/modf-tests: New file.
34714         * tests/test-modf.c: New file.
34715
34716         Tests for module 'logb'.
34717         * modules/logb-tests: New file.
34718         * tests/test-logb.c: New file.
34719
34720         Tests for module 'log1p'.
34721         * modules/log1p-tests: New file.
34722         * tests/test-log1p.c: New file.
34723
34724         Tests for module 'log10'.
34725         * modules/log10-tests: New file.
34726         * tests/test-log10.c: New file.
34727
34728         Tests for module 'log'.
34729         * modules/log-tests: New file.
34730         * tests/test-log.c: New file.
34731
34732         Tests for module 'lgamma'.
34733         * modules/lgamma-tests: New file.
34734         * tests/test-lgamma.c: New file.
34735
34736         Tests for module 'ldexp'.
34737         * modules/ldexp-tests: New file.
34738         * tests/test-ldexp.c: New file.
34739
34740         Tests for module 'jn'.
34741         * modules/jn-tests: New file.
34742         * tests/test-jn.c: New file.
34743
34744         Tests for module 'j1'.
34745         * modules/j1-tests: New file.
34746         * tests/test-j1.c: New file.
34747
34748         Tests for module 'j0'.
34749         * modules/j0-tests: New file.
34750         * tests/test-j0.c: New file.
34751
34752         Tests for module 'hypot'.
34753         * modules/hypot-tests: New file.
34754         * tests/test-hypot.c: New file.
34755
34756         Tests for module 'fmod'.
34757         * modules/fmod-tests: New file.
34758         * tests/test-fmod.c: New file.
34759
34760         Tests for module 'fabs'.
34761         * modules/fabs-tests: New file.
34762         * tests/test-fabs.c: New file.
34763
34764         Tests for module 'exp'.
34765         * modules/exp-tests: New file.
34766         * tests/test-exp.c: New file.
34767
34768         Tests for module 'erfc'.
34769         * modules/erfc-tests: New file.
34770         * tests/test-erfc.c: New file.
34771
34772         Tests for module 'erf'.
34773         * modules/erf-tests: New file.
34774         * tests/test-erf.c: New file.
34775
34776         Tests for module 'cosh'.
34777         * modules/cosh-tests: New file.
34778         * tests/test-cosh.c: New file.
34779
34780         Tests for module 'cos'.
34781         * modules/cos-tests: New file.
34782         * tests/test-cos.c: New file.
34783
34784         Tests for module 'copysign'.
34785         * modules/copysign-tests: New file.
34786         * tests/test-copysign.c: New file.
34787
34788         Tests for module 'cbrt'.
34789         * modules/cbrt-tests: New file.
34790         * tests/test-cbrt.c: New file.
34791
34792         Tests for module 'atan2'.
34793         * modules/atan2-tests: New file.
34794         * tests/test-atan2.c: New file.
34795
34796         Tests for module 'atan'.
34797         * modules/atan-tests: New file.
34798         * tests/test-atan.c: New file.
34799
34800         Tests for module 'asin'.
34801         * modules/asin-tests: New file.
34802         * tests/test-asin.c: New file.
34803
34804         Tests for module 'acos'.
34805         * modules/acos-tests: New file.
34806         * tests/test-acos.c: New file.
34807
34808 2010-01-24  Bruno Haible  <bruno@clisp.org>
34809
34810         Fix tests for common <math.h> functions.
34811         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34812         code snippet that references the function pointer, rather than merely
34813         calling the function. Substitute the FUNC_LIBM variable.
34814         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34815         * modules/acos (configure.ac): Likewise.
34816         * modules/asin (configure.ac): Likewise.
34817         * modules/atan (configure.ac): Likewise.
34818         * modules/atan2 (configure.ac): Likewise.
34819         * modules/cbrt (configure.ac): Likewise.
34820         * modules/copysign (configure.ac): Likewise.
34821         * modules/cos (configure.ac): Likewise.
34822         * modules/cosh (configure.ac): Likewise.
34823         * modules/erf (configure.ac): Likewise.
34824         * modules/erfc (configure.ac): Likewise.
34825         * modules/exp (configure.ac): Likewise.
34826         * modules/fabs (configure.ac): Likewise.
34827         * modules/fmod (configure.ac): Likewise.
34828         * modules/hypot (configure.ac): Likewise.
34829         * modules/j0 (configure.ac): Likewise.
34830         * modules/j1 (configure.ac): Likewise.
34831         * modules/jn (configure.ac): Likewise.
34832         * modules/ldexp (configure.ac): Likewise.
34833         * modules/lgamma (configure.ac): Likewise.
34834         * modules/log (configure.ac): Likewise.
34835         * modules/log10 (configure.ac): Likewise.
34836         * modules/log1p (configure.ac): Likewise.
34837         * modules/logb (configure.ac): Likewise.
34838         * modules/modf (configure.ac): Likewise.
34839         * modules/nextafter (configure.ac): Likewise.
34840         * modules/pow (configure.ac): Likewise.
34841         * modules/remainder (configure.ac): Likewise.
34842         * modules/rint (configure.ac): Likewise.
34843         * modules/sin (configure.ac): Likewise.
34844         * modules/sinh (configure.ac): Likewise.
34845         * modules/tan (configure.ac): Likewise.
34846         * modules/tanh (configure.ac): Likewise.
34847         * modules/y0 (configure.ac): Likewise.
34848         * modules/y1 (configure.ac): Likewise.
34849         * modules/yn (configure.ac): Likewise.
34850
34851 2010-01-24  Bruno Haible  <bruno@clisp.org>
34852
34853         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
34854         * tests/test-acosl.c (x): New variable.
34855         (main): Store argument in x and fetch it from x.
34856         * tests/test-asinl.c (x): New variable.
34857         (main): Store argument in x and fetch it from x.
34858         * tests/test-atanl.c (x): New variable.
34859         (main): Store argument in x and fetch it from x.
34860         * tests/test-cosl.c (x): New variable.
34861         (main): Store argument in x and fetch it from x.
34862         * tests/test-expl.c (x): New variable.
34863         (main): Store argument in x and fetch it from x.
34864         * tests/test-logl.c (x): New variable.
34865         (main): Store argument in x and fetch it from x.
34866         * tests/test-sinl.c (x): New variable.
34867         (main): Store argument in x and fetch it from x.
34868         * tests/test-sqrtl.c (x): New variable.
34869         (main): Store argument in x and fetch it from x.
34870         * tests/test-tanl.c (x): New variable.
34871         (main): Store argument in x and fetch it from x.
34872
34873 2010-01-24  Bruno Haible  <bruno@clisp.org>
34874
34875         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
34876         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
34877         assignments to the initial TESTS_ENVIRONMENT.
34878         * doc/gnulib.texi (Unit test modules): Document it.
34879         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
34880         TESTS_ENVIRONMENT.
34881         * modules/btowc-tests (Makefile.am): Likewise.
34882         * modules/c-stack-tests (Makefile.am): Likewise.
34883         * modules/c-strcase-tests (Makefile.am): Likewise.
34884         * modules/copy-file-tests (Makefile.am): Likewise.
34885         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
34886         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
34887         * modules/mbrtowc-tests (Makefile.am): Likewise.
34888         * modules/mbscasecmp-tests (Makefile.am): Likewise.
34889         * modules/mbscasestr-tests (Makefile.am): Likewise.
34890         * modules/mbschr-tests (Makefile.am): Likewise.
34891         * modules/mbscspn-tests (Makefile.am): Likewise.
34892         * modules/mbsinit-tests (Makefile.am): Likewise.
34893         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
34894         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
34895         * modules/mbspbrk-tests (Makefile.am): Likewise.
34896         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
34897         * modules/mbsrchr-tests (Makefile.am): Likewise.
34898         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
34899         * modules/mbsspn-tests (Makefile.am): Likewise.
34900         * modules/mbsstr-tests (Makefile.am): Likewise.
34901         * modules/nl_langinfo-tests (Makefile.am): Likewise.
34902         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
34903         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
34904         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
34905         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
34906         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
34907         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
34908         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
34909         * modules/wcrtomb-tests (Makefile.am): Likewise.
34910         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
34911         * modules/wcsrtombs-tests (Makefile.am): Likewise.
34912         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
34913         assignments from TESTS_ENVIRONMENT.
34914         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
34915         augmentation.
34916         * modules/argp-version-etc-tests (Makefile.am): Likewise.
34917         * modules/atexit-tests (Makefile.am): Likewise.
34918         * modules/binary-io-tests (Makefile.am): Likewise.
34919         * modules/closein-tests (Makefile.am): Likewise.
34920         * modules/dprintf-posix-tests (Makefile.am): Likewise.
34921         * modules/exclude-tests (Makefile.am): Likewise.
34922         * modules/fflush-tests (Makefile.am): Likewise.
34923         * modules/fpending-tests (Makefile.am): Likewise.
34924         * modules/fprintf-posix-tests (Makefile.am): Likewise.
34925         * modules/freadahead-tests (Makefile.am): Likewise.
34926         * modules/freadptr-tests (Makefile.am): Likewise.
34927         * modules/freadseek-tests (Makefile.am): Likewise.
34928         * modules/fseek-tests (Makefile.am): Likewise.
34929         * modules/fseeko-tests (Makefile.am): Likewise.
34930         * modules/ftell-tests (Makefile.am): Likewise.
34931         * modules/ftello-tests (Makefile.am): Likewise.
34932         * modules/idpriv-drop-tests (Makefile.am): Likewise.
34933         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
34934         * modules/lseek-tests (Makefile.am): Likewise.
34935         * modules/parse-duration-tests (Makefile.am): Likewise.
34936         * modules/perror-tests (Makefile.am): Likewise.
34937         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
34938         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
34939         * modules/pipe-tests (Makefile.am): Likewise.
34940         * modules/pread-tests (Makefile.am): Likewise.
34941         * modules/printf-posix-tests (Makefile.am): Likewise.
34942         * modules/select-tests (Makefile.am): Likewise.
34943         * modules/sigpipe-tests (Makefile.am): Likewise.
34944         * modules/tsearch-tests (Makefile.am): Likewise.
34945         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
34946         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
34947         * modules/uniname/uniname-tests (Makefile.am): Likewise.
34948         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34949         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34950         * modules/version-etc-tests (Makefile.am): Likewise.
34951         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34952         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34953         * modules/xalloc-die-tests (Makefile.am): Likewise.
34954         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34955         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34956         * modules/xstrtol-tests (Makefile.am): Likewise.
34957         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34958         * modules/yesno-tests (Makefile.am): Likewise.
34959         Suggested by Jim Meyering.
34960
34961 2010-01-24  Bruno Haible  <bruno@clisp.org>
34962
34963         More documentation.
34964         * doc/gnulib.texi (Writing modules): New chapter.
34965         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34966         the new chapter.
34967
34968 2010-01-24  Jim Meyering  <meyering@redhat.com>
34969
34970         maint.mk: do not prepend "./" after filtering
34971         * top/maint.mk (_prepend_srcdir_prefix): New variable
34972         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34973         "./" when $(srcdir) is ".".
34974
34975         define STREQ(a,b) consistently, removing useless parentheses
34976         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34977         since the only risk is that "a" or "b" contains an unparenthesized
34978         comma, but if either did that, STREQ would have 3 or more arguments.
34979         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34980         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34981         * lib/hash-triple.c (STREQ): Likewise.
34982         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34983         * lib/getugroups.c (STREQ): Likewise.
34984
34985 2010-01-23  Jim Meyering  <meyering@redhat.com>
34986
34987         maint.mk: fix syntax-check in a non-srcdir build directory
34988         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34989         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34990
34991 2010-01-22  Jim Meyering  <meyering@redhat.com>
34992
34993         userspec: add unit tests
34994         * tests/test-userspec.c: New file.
34995         * modules/userspec-tests: Likewise.
34996
34997 2010-01-21  Jim Meyering  <meyering@redhat.com>
34998
34999         maint.mk: handle source file names containing "." robustly
35000         * top/maint.mk (_dot_escaped_srcdir): Define.
35001         (VC_LIST): Use it in LHS of sed substitution.
35002
35003 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35004
35005         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35006         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35007         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35008         from a non-srcdir build.
35009
35010 2010-01-20  Eric Blake  <ebb9@byu.net>
35011
35012         warn-on-use: use instead of link-warning
35013         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35014         * modules/unistd (Depends-on, Makefile.am): Likewise.
35015         * modules/arpa_inet (Depends-on): Replace link-warning with
35016         warn-on-use.
35017         (Makefile.am): Update rules accordingly.
35018         * modules/ctype (Depends-on, Makefile.am): Likewise.
35019         * modules/dirent (Depends-on, Makefile.am): Likewise.
35020         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35021         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35022         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35023         * modules/locale (Depends-on, Makefile.am): Likewise.
35024         * modules/math (Depends-on, Makefile.am): Likewise.
35025         * modules/search (Depends-on, Makefile.am): Likewise.
35026         * modules/signal (Depends-on, Makefile.am): Likewise.
35027         * modules/spawn (Depends-on, Makefile.am): Likewise.
35028         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35029         * modules/string (Depends-on, Makefile.am): Likewise.
35030         * modules/strings (Depends-on, Makefile.am): Likewise.
35031         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35032         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35033         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35034         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35035         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35036         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35037         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35038         * modules/wchar (Depends-on, Makefile.am): Likewise.
35039         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35040         should be poisoned.
35041         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35042         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35043         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35044         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35045         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35046         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35047         * m4/math_h.m4 (gl_MATH_H): Likewise.
35048         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35049         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35050         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35051         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35052         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35053         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35054         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35055         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35060         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35061         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35062         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35063         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35064         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35065         GL_LINK_WARNING.
35066         * lib/ctype.in.h: Likewise.
35067         * lib/dirent.in.h: Likewise.
35068         * lib/fcntl.in.h: Likewise.
35069         * lib/inttypes.in.h: Likewise.
35070         * lib/langinfo.in.h: Likewise.
35071         * lib/locale.in.h: Likewise.
35072         * lib/math.in.h: Likewise.
35073         * lib/search.in.h: Likewise.
35074         * lib/signal.in.h: Likewise.
35075         * lib/spawn.in.h: Likewise.
35076         * lib/stdio.in.h: Likewise.
35077         * lib/stdlib.in.h: Likewise.
35078         * lib/string.in.h: Likewise.
35079         * lib/strings.in.h: Likewise.
35080         * lib/sys_file.in.h: Likewise.
35081         * lib/sys_ioctl.in.h: Likewise.
35082         * lib/sys_select.in.h: Likewise.
35083         * lib/sys_socket.in.h: Likewise.
35084         * lib/sys_stat.in.h: Likewise.
35085         * lib/sys_times.in.h: Likewise.
35086         * lib/sys_utsname.in.h: Likewise.
35087         * lib/unistd.in.h: Likewise.
35088         * lib/wchar.in.h: Likewise.
35089
35090 2010-01-20  Bruno Haible  <bruno@clisp.org>
35091
35092         Avoid duplicate -lm.
35093         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35094         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35096         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35097         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35098         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35099         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35100         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35101         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35102         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35103         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35104         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35105         Reported by Paolo Bonzini.
35106
35107 2010-01-19  Bruno Haible  <bruno@clisp.org>
35108
35109         langinfo, nl_langinfo: Relicense under LGPLv2+.
35110         * modules/langinfo (License): Change to LGPLv2+.
35111         * modules/nl_langinfo (License): Likewise.
35112         Patch by David Lutterkort <lutter@redhat.com>.
35113
35114 2010-01-19  Bruno Haible  <bruno@clisp.org>
35115
35116         Avoid compilation error with cc on OSF/1 5.1.
35117         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35118         statement, not before.
35119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35120
35121 2010-01-18  Bruno Haible  <bruno@clisp.org>
35122
35123         Avoid a link error due to the __printf__ symbol.
35124         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35125         and 2.6.x.
35126         (__format__, __printf__): Remove definitions.
35127         * lib/argp-fmtstream.h: Likewise.
35128         * lib/argp.h: Likewise.
35129         * lib/error.h: Likewise.
35130         * lib/vasnprintf.h: Likewise.
35131         * lib/xprintf.h: Likewise.
35132         * lib/xvasprintf.h: Likewise.
35133         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35134
35135 2010-01-18  Bruno Haible  <bruno@clisp.org>
35136
35137         Tests for module 'tanl'.
35138         * modules/tanl-tests: New file.
35139         * tests/test-tanl.c: New file.
35140
35141         Tests for module 'sqrtl'.
35142         * modules/sqrtl-tests: New file.
35143         * tests/test-sqrtl.c: New file.
35144
35145         Tests for module 'sinl'.
35146         * modules/sinl-tests: New file.
35147         * tests/test-sinl.c: New file.
35148
35149         Tests for module 'logl'.
35150         * modules/logl-tests: New file.
35151         * tests/test-logl.c: New file.
35152
35153         Tests for module 'expl'.
35154         * modules/expl-tests: New file.
35155         * tests/test-expl.c: New file.
35156
35157         Tests for module 'cosl'.
35158         * modules/cosl-tests: New file.
35159         * tests/test-cosl.c: New file.
35160
35161         Tests for module 'atanl'.
35162         * modules/atanl-tests: New file.
35163         * tests/test-atanl.c: New file.
35164
35165         Tests for module 'asinl'.
35166         * modules/asinl-tests: New file.
35167         * tests/test-asinl.c: New file.
35168
35169         Tests for module 'acosl'.
35170         * modules/acosl-tests: New file.
35171         * tests/test-acosl.c: New file.
35172
35173         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35174         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35175         tanl): Use the standard gnulib idiom.
35176         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35177         * lib/sinl.c: Likewise.
35178         * lib/tanl.c: Don't include trigl.c.
35179         (kernel_tanl): Make static.
35180         * lib/sincosl.c: Include trigl.h first.
35181         * lib/trigl.c: Likewise.
35182         * m4/acosl.m4: New file.
35183         * m4/asinl.m4: New file.
35184         * m4/atanl.m4: New file.
35185         * m4/cosl.m4: New file.
35186         * m4/expl.m4: New file.
35187         * m4/logl.m4: New file.
35188         * m4/sinl.m4: New file.
35189         * m4/sqrtl.m4: New file.
35190         * m4/tanl.m4: New file.
35191         * m4/mathl.m4: Remove file.
35192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35193         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35194         Don't initialize GNULIB_MATHL.
35195         * modules/acosl: New file.
35196         * modules/asinl: New file.
35197         * modules/atanl: New file.
35198         * modules/cosl: New file.
35199         * modules/expl: New file.
35200         * modules/logl: New file.
35201         * modules/sinl: New file.
35202         * modules/sqrtl: New file.
35203         * modules/tanl: New file.
35204         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35205         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35206         substitute GNULIB_MATHL.
35207         * modules/mathl: Rewritten.
35208         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35209         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35210         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35211         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35212         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35213         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35214         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35215         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35216         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35217
35218 2010-01-18  Bruno Haible  <bruno@clisp.org>
35219
35220         sqrt: Make gl_FUNC_SQRT requirable.
35221         * m4/sqrt.m4: New file.
35222         * modules/sqrt (Files): Add it.
35223         (configure.ac): Invoke gl_FUNC_SQRT.
35224
35225 2010-01-18  Bruno Haible  <bruno@clisp.org>
35226
35227         New modules for common <math.h> functions.
35228         * m4/mathfunc.m4: New file.
35229         * modules/acos: New file.
35230         * modules/asin: New file.
35231         * modules/atan: New file.
35232         * modules/atan2: New file.
35233         * modules/cbrt: New file.
35234         * modules/copysign: New file.
35235         * modules/cos: New file.
35236         * modules/cosh: New file.
35237         * modules/erf: New file.
35238         * modules/erfc: New file.
35239         * modules/exp: New file.
35240         * modules/fabs: New file.
35241         * modules/fmod: New file.
35242         * modules/hypot: New file.
35243         * modules/j0: New file.
35244         * modules/j1: New file.
35245         * modules/jn: New file.
35246         * modules/ldexp: New file.
35247         * modules/lgamma: New file.
35248         * modules/log: New file.
35249         * modules/log10: New file.
35250         * modules/log1p: New file.
35251         * modules/logb: New file.
35252         * modules/modf: New file.
35253         * modules/nextafter: New file.
35254         * modules/pow: New file.
35255         * modules/remainder: New file.
35256         * modules/rint: New file.
35257         * modules/sin: New file.
35258         * modules/sinh: New file.
35259         * modules/sqrt: New file.
35260         * modules/tan: New file.
35261         * modules/tanh: New file.
35262         * modules/y0: New file.
35263         * modules/y1: New file.
35264         * modules/yn: New file.
35265         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35266         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35267         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35268         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35269         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35270         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35271         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35272         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35273         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35274         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35275         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35276         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35277         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35278         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35279         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35280         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35281         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35282         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35283         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35284         * doc/posix-functions/log.texi: Mention the 'log' module.
35285         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35286         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35287         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35288         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35289         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35290         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35291         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35292         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35293         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35294         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35295         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35296         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35297         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35298         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35299         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35300         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35301
35302 2010-01-18  Jim Meyering  <meyering@redhat.com>
35303
35304         ignore-value: relax license to LGPLv2+
35305         * modules/ignore-value (License): Relax to LGPLv2+.
35306
35307         getdate: don't leak when TZ contains two or more '"'s
35308         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35309         double quote in TZ after the first one.
35310
35311         readtokens: do not leak internal token_lengths buffer
35312         * lib/readtokens.c (readtokens): Free the local, lengths,
35313         when the supplied "token_lengths" parameter is NULL.
35314
35315 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35316
35317         Fix a couple of missing LIBTHREAD link failures on AIX.
35318         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35319         $(LIBTHREAD).
35320         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35321
35322         Link test-poll against INET_PTON_LIB.
35323         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35324         for inet_pton on Solaris 10.
35325
35326 2010-01-17  Bruno Haible  <bruno@clisp.org>
35327
35328         unistdio/*-sprintf: Fix typo in module description.
35329         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35330         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35331         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35332         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35333         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35334         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35335         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35337
35338 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35339
35340         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35341         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35342         variables in shell case patterns, for AIX and HP-UX ksh.
35343
35344         Split large sed scripts, for HP-UX sed.
35345         * modules/stdio: Split sed scripts around 50 sed commands,
35346         to avoid HP-UX limit of 99 commands, in the near future.
35347         * modules/string: Likewise.
35348         * modules/unistd: Likewise.
35349
35350         gnulib-tool: avoid writing in the current directory.
35351         * gnulib-tool (func_emit_lib_Makefile_am)
35352         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35353         not in the current directory, so concurrent gnulib-tool
35354         instances do not interfere.
35355
35356 2010-01-16  Jim Meyering  <meyering@redhat.com>
35357
35358         doc: update users.txt
35359         * users.txt: Add grep.
35360         (diffutils, gzip): Update URLs.
35361
35362 2010-01-12  Bruno Haible  <bruno@clisp.org>
35363
35364         posix_spawn: Avoid test failure on Cygwin.
35365         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35366         characters.
35367         Reported by Simon Josefsson.
35368
35369 2010-01-12  Bruno Haible  <bruno@clisp.org>
35370
35371         * tests/test-cond.c (main): When skipping the test, show the reason.
35372
35373 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35374
35375         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35376
35377 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35378
35379         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35380         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35381
35382 2010-01-12  Eric Blake  <ebb9@byu.net>
35383
35384         build: guarantee AS_VAR_IF
35385         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35386         (gl_AS_VAR_IF): Move...
35387         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35388         Reported by Simon Josefsson.
35389
35390 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35391
35392         * lib/stdio.in.h: Fix typo.
35393
35394 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35395
35396         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35397         libgpg-error.
35398
35399 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35400
35401         * tests/test-xalloc-die.sh: Use $EXEEXT.
35402
35403 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35404             Bruno Haible  <bruno@clisp.org>
35405
35406         getlogin, getlogin_r: Avoid test failure.
35407         * tests/test-getlogin.c: Include <stdio.h>.
35408         (main): Skip the test when the function fails because stdin is not a
35409         tty.
35410         * tests/test-getlogin_r.c: Include <stdio.h>.
35411         (main): Skip the test when the function fails because stdin is not a
35412         tty.
35413
35414 2010-01-11  Eric Blake  <ebb9@byu.net>
35415
35416         tests: avoid more large file warnings
35417         * tests/test-fflush.c: Avoid warning about ftell use.
35418         * tests/test-fseek.c: Avoid warning about fseek use.
35419
35420 2010-01-10  Bruno Haible  <bruno@clisp.org>
35421
35422         nproc: Work better on Linux when /proc and /sys are not mounted.
35423         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35424         as lower bound when, on glibc/Linux systems,
35425         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35426         Suggested by Pádraig Brady <P@draigbrady.com>.
35427         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35428
35429         nproc: Refactor.
35430         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35431         extracted from num_processors.
35432         (num_processors): Call it.
35433
35434 2010-01-11  Jim Meyering  <meyering@redhat.com>
35435
35436         utimecmp: avoid new warning from upcoming gcc-4.5.0
35437         * lib/utimecmp.c (BILLION): Define using #define rather than an
35438         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35439
35440 2010-01-11  Eric Blake  <ebb9@byu.net>
35441
35442         math: add portability warnings for classification macros
35443         * modules/math (Depends-on): Add warn-on-use.
35444         (Makefile.am): Provide new substitutions.
35445         * m4/math_h.m4 (gl_MATH_H): Require inline.
35446         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35447         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35448         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35449         implement warnings.
35450
35451         unistd: warn on use of environ without module
35452         * modules/unistd (Depends-on): Add warn-on-use.
35453         (Makefile.am): Provide new substitutions.
35454         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35455         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35456
35457         stdio: warn on suspicious uses
35458         * modules/stdio (Depends-on): Add warn-on-use.
35459         (Makefile.am): Provide new substitutions.
35460         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35461         fseeko.
35462         * lib/stdio.in.h (gets): Always warn on use.
35463         (fseek, ftell): Adjust when warnings are issued, and honor
35464         _GL_NO_LARGE_FILES as a way to silence the warning.
35465         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35466         any warning about large file offsets.
35467         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35468         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35469         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35470         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35471         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35472         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35473         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35474         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35475
35476         warn-on-use: new module
35477         * modules/warn-on-use: New file.
35478         * build-aux/warn-on-use.h: Likewise.
35479         * m4/warn-on-use.m4: Likewise.
35480         * MODULES.html.sh (Support for building): Mention it.
35481
35482 2010-01-10  Bruno Haible  <bruno@clisp.org>
35483
35484         Tests for module 'unistr/u32-strdup'.
35485         * modules/unistr/u32-strdup-tests: New file.
35486         * tests/unistr/test-u32-strdup.c: New file.
35487
35488         Tests for module 'unistr/u16-strdup'.
35489         * modules/unistr/u16-strdup-tests: New file.
35490         * tests/unistr/test-u16-strdup.c: New file.
35491
35492         Tests for module 'unistr/u8-strdup'.
35493         * modules/unistr/u8-strdup-tests: New file.
35494         * tests/unistr/test-u8-strdup.c: New file.
35495         * tests/unistr/test-strdup.h: New file.
35496
35497         Tests for module 'unistr/u32-strncmp'.
35498         * modules/unistr/u32-strncmp-tests: New file.
35499         * tests/unistr/test-u32-strncmp.c: New file.
35500
35501         Tests for module 'unistr/u16-strncmp'.
35502         * modules/unistr/u16-strncmp-tests: New file.
35503         * tests/unistr/test-u16-strncmp.c: New file.
35504
35505         Tests for module 'unistr/u8-strncmp'.
35506         * modules/unistr/u8-strncmp-tests: New file.
35507         * tests/unistr/test-u8-strncmp.c: New file.
35508         * tests/unistr/test-strncmp.h: New file.
35509
35510         Tests for module 'unistr/u32-strcoll'.
35511         * modules/unistr/u32-strcoll-tests: New file.
35512         * tests/unistr/test-u32-strcoll.c: New file.
35513
35514         Tests for module 'unistr/u16-strcoll'.
35515         * modules/unistr/u16-strcoll-tests: New file.
35516         * tests/unistr/test-u16-strcoll.c: New file.
35517
35518         Tests for module 'unistr/u8-strcoll'.
35519         * modules/unistr/u8-strcoll-tests: New file.
35520         * tests/unistr/test-u8-strcoll.c: New file.
35521
35522         Tests for module 'unistr/u32-strcmp'.
35523         * modules/unistr/u32-strcmp-tests: New file.
35524         * tests/unistr/test-u32-strcmp.c: New file.
35525         * tests/unistr/test-u32-strcmp.h: New file.
35526
35527         Tests for module 'unistr/u16-strcmp'.
35528         * modules/unistr/u16-strcmp-tests: New file.
35529         * tests/unistr/test-u16-strcmp.c: New file.
35530         * tests/unistr/test-u16-strcmp.h: New file.
35531
35532         Tests for module 'unistr/u8-strcmp'.
35533         * modules/unistr/u8-strcmp-tests: New file.
35534         * tests/unistr/test-u8-strcmp.c: New file.
35535         * tests/unistr/test-u8-strcmp.h: New file.
35536         * tests/unistr/test-strcmp.h: New file.
35537
35538         Tests for module 'unistr/u32-strncat'.
35539         * modules/unistr/u32-strncat-tests: New file.
35540         * tests/unistr/test-u32-strncat.c: New file.
35541
35542         Tests for module 'unistr/u16-strncat'.
35543         * modules/unistr/u16-strncat-tests: New file.
35544         * tests/unistr/test-u16-strncat.c: New file.
35545
35546         Tests for module 'unistr/u8-strncat'.
35547         * modules/unistr/u8-strncat-tests: New file.
35548         * tests/unistr/test-u8-strncat.c: New file.
35549         * tests/unistr/test-strncat.h: New file.
35550
35551         Tests for module 'unistr/u32-strcat'.
35552         * modules/unistr/u32-strcat-tests: New file.
35553         * tests/unistr/test-u32-strcat.c: New file.
35554
35555         Tests for module 'unistr/u16-strcat'.
35556         * modules/unistr/u16-strcat-tests: New file.
35557         * tests/unistr/test-u16-strcat.c: New file.
35558
35559         Tests for module 'unistr/u8-strcat'.
35560         * modules/unistr/u8-strcat-tests: New file.
35561         * tests/unistr/test-u8-strcat.c: New file.
35562         * tests/unistr/test-strcat.h: New file.
35563
35564         Tests for module 'unistr/u32-stpncpy'.
35565         * modules/unistr/u32-stpncpy-tests: New file.
35566         * tests/unistr/test-u32-stpncpy.c: New file.
35567
35568         Tests for module 'unistr/u16-stpncpy'.
35569         * modules/unistr/u16-stpncpy-tests: New file.
35570         * tests/unistr/test-u16-stpncpy.c: New file.
35571
35572         Tests for module 'unistr/u8-stpncpy'.
35573         * modules/unistr/u8-stpncpy-tests: New file.
35574         * tests/unistr/test-u8-stpncpy.c: New file.
35575         * tests/unistr/test-stpncpy.h: New file.
35576
35577         Tests for module 'unistr/u32-strncpy'.
35578         * modules/unistr/u32-strncpy-tests: New file.
35579         * tests/unistr/test-u32-strncpy.c: New file.
35580
35581         Tests for module 'unistr/u16-strncpy'.
35582         * modules/unistr/u16-strncpy-tests: New file.
35583         * tests/unistr/test-u16-strncpy.c: New file.
35584
35585         Tests for module 'unistr/u8-strncpy'.
35586         * modules/unistr/u8-strncpy-tests: New file.
35587         * tests/unistr/test-u8-strncpy.c: New file.
35588         * tests/unistr/test-strncpy.h: New file.
35589
35590         Tests for module 'unistr/u32-stpcpy'.
35591         * modules/unistr/u32-stpcpy-tests: New file.
35592         * tests/unistr/test-u32-stpcpy.c: New file.
35593
35594         Tests for module 'unistr/u16-stpcpy'.
35595         * modules/unistr/u16-stpcpy-tests: New file.
35596         * tests/unistr/test-u16-stpcpy.c: New file.
35597
35598         Tests for module 'unistr/u8-stpcpy'.
35599         * modules/unistr/u8-stpcpy-tests: New file.
35600         * tests/unistr/test-u8-stpcpy.c: New file.
35601         * tests/unistr/test-stpcpy.h: New file.
35602
35603         Tests for module 'unistr/u32-strcpy'.
35604         * modules/unistr/u32-strcpy-tests: New file.
35605         * tests/unistr/test-u32-strcpy.c: New file.
35606
35607         Tests for module 'unistr/u16-strcpy'.
35608         * modules/unistr/u16-strcpy-tests: New file.
35609         * tests/unistr/test-u16-strcpy.c: New file.
35610
35611         Tests for module 'unistr/u8-strcpy'.
35612         * modules/unistr/u8-strcpy-tests: New file.
35613         * tests/unistr/test-u8-strcpy.c: New file.
35614         * tests/unistr/test-strcpy.h: New file.
35615
35616         Tests for module 'unistr/u32-strnlen'.
35617         * modules/unistr/u32-strnlen-tests: New file.
35618         * tests/unistr/test-u32-strnlen.c: New file.
35619
35620         Tests for module 'unistr/u16-strnlen'.
35621         * modules/unistr/u16-strnlen-tests: New file.
35622         * tests/unistr/test-u16-strnlen.c: New file.
35623
35624         Tests for module 'unistr/u8-strnlen'.
35625         * modules/unistr/u8-strnlen-tests: New file.
35626         * tests/unistr/test-u8-strnlen.c: New file.
35627         * tests/unistr/test-strnlen.h: New file.
35628
35629         Tests for module 'unistr/u32-strlen'.
35630         * modules/unistr/u32-strlen-tests: New file.
35631         * tests/unistr/test-u32-strlen.c: New file.
35632
35633         Tests for module 'unistr/u16-strlen'.
35634         * modules/unistr/u16-strlen-tests: New file.
35635         * tests/unistr/test-u16-strlen.c: New file.
35636
35637         Tests for module 'unistr/u8-strlen'.
35638         * modules/unistr/u8-strlen-tests: New file.
35639         * tests/unistr/test-u8-strlen.c: New file.
35640
35641         Tests for module 'unistr/u32-prev'.
35642         * modules/unistr/u32-prev-tests: New file.
35643         * tests/unistr/test-u32-prev.c: New file.
35644
35645         Tests for module 'unistr/u16-prev'.
35646         * modules/unistr/u16-prev-tests: New file.
35647         * tests/unistr/test-u16-prev.c: New file.
35648
35649         Tests for module 'unistr/u8-prev'.
35650         * modules/unistr/u8-prev-tests: New file.
35651         * tests/unistr/test-u8-prev.c: New file.
35652
35653         Tests for module 'unistr/u32-next'.
35654         * modules/unistr/u32-next-tests: New file.
35655         * tests/unistr/test-u32-next.c: New file.
35656
35657         Tests for module 'unistr/u16-next'.
35658         * modules/unistr/u16-next-tests: New file.
35659         * tests/unistr/test-u16-next.c: New file.
35660
35661         Tests for module 'unistr/u8-next'.
35662         * modules/unistr/u8-next-tests: New file.
35663         * tests/unistr/test-u8-next.c: New file.
35664
35665         Tests for module 'unistr/u32-strmbtouc'.
35666         * modules/unistr/u32-strmbtouc-tests: New file.
35667         * tests/unistr/test-u32-strmbtouc.c: New file.
35668
35669         Tests for module 'unistr/u16-strmbtouc'.
35670         * modules/unistr/u16-strmbtouc-tests: New file.
35671         * tests/unistr/test-u16-strmbtouc.c: New file.
35672
35673         Tests for module 'unistr/u8-strmbtouc'.
35674         * modules/unistr/u8-strmbtouc-tests: New file.
35675         * tests/unistr/test-u8-strmbtouc.c: New file.
35676
35677         Tests for module 'unistr/u32-strmblen'.
35678         * modules/unistr/u32-strmblen-tests: New file.
35679         * tests/unistr/test-u32-strmblen.c: New file.
35680
35681         Tests for module 'unistr/u16-strmblen'.
35682         * modules/unistr/u16-strmblen-tests: New file.
35683         * tests/unistr/test-u16-strmblen.c: New file.
35684
35685         Tests for module 'unistr/u8-strmblen'.
35686         * modules/unistr/u8-strmblen-tests: New file.
35687         * tests/unistr/test-u8-strmblen.c: New file.
35688
35689         Tests for module 'unistr/u32-cpy-alloc'.
35690         * modules/unistr/u32-cpy-alloc-tests: New file.
35691         * tests/unistr/test-u32-cpy-alloc.c: New file.
35692
35693         Tests for module 'unistr/u16-cpy-alloc'.
35694         * modules/unistr/u16-cpy-alloc-tests: New file.
35695         * tests/unistr/test-u16-cpy-alloc.c: New file.
35696
35697         Tests for module 'unistr/u8-cpy-alloc'.
35698         * modules/unistr/u8-cpy-alloc-tests: New file.
35699         * tests/unistr/test-u8-cpy-alloc.c: New file.
35700         * tests/unistr/test-cpy-alloc.h: New file.
35701
35702         Tests for module 'unistr/u32-mbsnlen'.
35703         * modules/unistr/u32-mbsnlen-tests: New file.
35704         * tests/unistr/test-u32-mbsnlen.c: New file.
35705
35706         Tests for module 'unistr/u16-mbsnlen'.
35707         * modules/unistr/u16-mbsnlen-tests: New file.
35708         * tests/unistr/test-u16-mbsnlen.c: New file.
35709
35710         Tests for module 'unistr/u8-mbsnlen'.
35711         * modules/unistr/u8-mbsnlen-tests: New file.
35712         * tests/unistr/test-u8-mbsnlen.c: New file.
35713
35714         Tests for module 'unistr/u32-chr'.
35715         * modules/unistr/u32-chr-tests: New file.
35716         * tests/unistr/test-u32-chr.c: New file.
35717
35718         Tests for module 'unistr/u16-chr'.
35719         * modules/unistr/u16-chr-tests: New file.
35720         * tests/unistr/test-u16-chr.c: New file.
35721
35722         Tests for module 'unistr/u8-chr'.
35723         * modules/unistr/u8-chr-tests: New file.
35724         * tests/unistr/test-u8-chr.c: New file.
35725         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35726
35727         Tests for module 'unistr/u32-cmp2'.
35728         * modules/unistr/u32-cmp2-tests: New file.
35729         * tests/unistr/test-u32-cmp2.c: New file.
35730
35731         Tests for module 'unistr/u16-cmp2'.
35732         * modules/unistr/u16-cmp2-tests: New file.
35733         * tests/unistr/test-u16-cmp2.c: New file.
35734
35735         Tests for module 'unistr/u8-cmp2'.
35736         * modules/unistr/u8-cmp2-tests: New file.
35737         * tests/unistr/test-u8-cmp2.c: New file.
35738         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35739
35740         Tests for module 'unistr/u32-cmp'.
35741         * modules/unistr/u32-cmp-tests: New file.
35742         * tests/unistr/test-u32-cmp.c: New file.
35743
35744         Tests for module 'unistr/u16-cmp'.
35745         * modules/unistr/u16-cmp-tests: New file.
35746         * tests/unistr/test-u16-cmp.c: New file.
35747
35748         Tests for module 'unistr/u8-cmp'.
35749         * modules/unistr/u8-cmp-tests: New file.
35750         * tests/unistr/test-u8-cmp.c: New file.
35751         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35752
35753         Tests for module 'unistr/u32-set'.
35754         * modules/unistr/u32-set-tests: New file.
35755         * tests/unistr/test-u32-set.c: New file.
35756
35757         Tests for module 'unistr/u16-set'.
35758         * modules/unistr/u16-set-tests: New file.
35759         * tests/unistr/test-u16-set.c: New file.
35760
35761         Tests for module 'unistr/u8-set'.
35762         * modules/unistr/u8-set-tests: New file.
35763         * tests/unistr/test-u8-set.c: New file.
35764         * tests/unistr/test-set.h: New file.
35765
35766         Tests for module 'unistr/u32-move'.
35767         * modules/unistr/u32-move-tests: New file.
35768         * tests/unistr/test-u32-move.c: New file.
35769
35770         Tests for module 'unistr/u16-move'.
35771         * modules/unistr/u16-move-tests: New file.
35772         * tests/unistr/test-u16-move.c: New file.
35773
35774         Tests for module 'unistr/u8-move'.
35775         * modules/unistr/u8-move-tests: New file.
35776         * tests/unistr/test-u8-move.c: New file.
35777         * tests/unistr/test-move.h: New file.
35778
35779         Tests for module 'unistr/u32-cpy'.
35780         * modules/unistr/u32-cpy-tests: New file.
35781         * tests/unistr/test-u32-cpy.c: New file.
35782
35783         Tests for module 'unistr/u16-cpy'.
35784         * modules/unistr/u16-cpy-tests: New file.
35785         * tests/unistr/test-u16-cpy.c: New file.
35786
35787         Tests for module 'unistr/u8-cpy'.
35788         * modules/unistr/u8-cpy-tests: New file.
35789         * tests/unistr/test-u8-cpy.c: New file.
35790         * tests/unistr/test-cpy.h: New file.
35791
35792 2010-01-09  Bruno Haible  <bruno@clisp.org>
35793
35794         Tests for module 'unistr/u32-uctomb'.
35795         * modules/unistr/u32-uctomb-tests: New file.
35796         * tests/unistr/test-u32-uctomb.c: New file.
35797
35798         Tests for module 'unistr/u16-uctomb'.
35799         * modules/unistr/u16-uctomb-tests: New file.
35800         * tests/unistr/test-u16-uctomb.c: New file.
35801
35802         Tests for module 'unistr/u8-uctomb'.
35803         * modules/unistr/u8-uctomb-tests: New file.
35804         * tests/unistr/test-u8-uctomb.c: New file.
35805
35806         Tests for module 'unistr/u32-mbtoucr'.
35807         * modules/unistr/u32-mbtoucr-tests: New file.
35808         * tests/unistr/test-u32-mbtoucr.c: New file.
35809
35810         Tests for module 'unistr/u16-mbtoucr'.
35811         * modules/unistr/u16-mbtoucr-tests: New file.
35812         * tests/unistr/test-u16-mbtoucr.c: New file.
35813
35814         Tests for module 'unistr/u8-mbtoucr'.
35815         * modules/unistr/u8-mbtoucr-tests: New file.
35816         * tests/unistr/test-u8-mbtoucr.c: New file.
35817
35818         Tests for module 'unistr/u32-mbtouc'.
35819         * modules/unistr/u32-mbtouc-tests: New file.
35820         * tests/unistr/test-u32-mbtouc.c: New file.
35821
35822         Tests for module 'unistr/u16-mbtouc'.
35823         * modules/unistr/u16-mbtouc-tests: New file.
35824         * tests/unistr/test-u16-mbtouc.c: New file.
35825
35826         Tests for module 'unistr/u8-mbtouc'.
35827         * modules/unistr/u8-mbtouc-tests: New file.
35828         * tests/unistr/test-u8-mbtouc.c: New file.
35829
35830         Tests for module 'unistr/u32-mbtouc-unsafe'.
35831         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
35832         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
35833         * tests/unistr/test-u32-mbtouc.h: New file.
35834
35835         Tests for module 'unistr/u16-mbtouc-unsafe'.
35836         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
35837         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
35838         * tests/unistr/test-u16-mbtouc.h: New file.
35839
35840         Tests for module 'unistr/u8-mbtouc-unsafe'.
35841         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
35842         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
35843         * tests/unistr/test-u8-mbtouc.h: New file.
35844
35845         Tests for module 'unistr/u32-mblen'.
35846         * modules/unistr/u32-mblen-tests: New file.
35847         * tests/unistr/test-u32-mblen.c: New file.
35848
35849         Tests for module 'unistr/u16-mblen'.
35850         * modules/unistr/u16-mblen-tests: New file.
35851         * tests/unistr/test-u16-mblen.c: New file.
35852
35853         Tests for module 'unistr/u8-mblen'.
35854         * modules/unistr/u8-mblen-tests: New file.
35855         * tests/unistr/test-u8-mblen.c: New file.
35856
35857         Tests for module 'unistr/u32-to-u16'.
35858         * modules/unistr/u32-to-u16-tests: New file.
35859         * tests/unistr/test-u32-to-u16.c: New file.
35860
35861         Tests for module 'unistr/u32-to-u8'.
35862         * modules/unistr/u32-to-u8-tests: New file.
35863         * tests/unistr/test-u32-to-u8.c: New file.
35864
35865         Tests for module 'unistr/u16-to-u32'.
35866         * modules/unistr/u16-to-u32-tests: New file.
35867         * tests/unistr/test-u16-to-u32.c: New file.
35868
35869         Tests for module 'unistr/u16-to-u8'.
35870         * modules/unistr/u16-to-u8-tests: New file.
35871         * tests/unistr/test-u16-to-u8.c: New file.
35872
35873         Tests for module 'unistr/u8-to-u32'.
35874         * modules/unistr/u8-to-u32-tests: New file.
35875         * tests/unistr/test-u8-to-u32.c: New file.
35876
35877         Tests for module 'unistr/u8-to-u16'.
35878         * modules/unistr/u8-to-u16-tests: New file.
35879         * tests/unistr/test-u8-to-u16.c: New file.
35880
35881         Tests for module 'unistr/u32-check'.
35882         * modules/unistr/u32-check-tests: New file.
35883         * tests/unistr/test-u32-check.c: New file.
35884
35885         Tests for module 'unistr/u16-check'.
35886         * modules/unistr/u16-check-tests: New file.
35887         * tests/unistr/test-u16-check.c: New file.
35888
35889         Tests for module 'unistr/u8-check'.
35890         * modules/unistr/u8-check-tests: New file.
35891         * tests/unistr/test-u8-check.c: New file.
35892
35893         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
35894         (category_equals): New function.
35895         (main): Add more tests.
35896         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
35897
35898         * tests/unictype/test-bidi_byname.c (main): Add more tests.
35899
35900 2010-01-10  Bruno Haible  <bruno@clisp.org>
35901
35902         unistr/u*-strcoll: Try harder to distinguish different strings.
35903         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
35904         compare s1 and s2 to see if they are different.
35905
35906 2010-01-10  Bruno Haible  <bruno@clisp.org>
35907
35908         unistr/u*-stpncpy: Fix the return value.
35909         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
35910         description of the return value consistent with stpncpy in glibc.
35911         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
35912         written non-NUL unit.
35913
35914 2010-01-10  Bruno Haible  <bruno@clisp.org>
35915
35916         unistr/u*-next: Add missing dependencies.
35917         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
35918         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
35919         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
35920
35921 2010-01-10  Bruno Haible  <bruno@clisp.org>
35922
35923         unistr/u8-mbsnlen: Fix return value for incomplete character.
35924         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
35925         u8_mblen.
35926         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
35927         Remove unistr/u8-mblen.
35928         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
35929         u16_mblen.
35930         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
35931         Remove unistr/u16-mblen.
35932
35933 2010-01-10  Bruno Haible  <bruno@clisp.org>
35934
35935         wchar: Fix compilation error when <wchar.h> is used from coreutils.
35936         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
35937         Reported by Brian Gough <bjg@gnu.org> and
35938         Chris Clayton <chris2553@googlemail.com> via
35939         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
35940
35941 2010-01-09  Bruno Haible  <bruno@clisp.org>
35942
35943         unistr/u16-to-u32: Reject invalid input.
35944         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
35945         u16_mbtouc.
35946         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
35947         Remove unistr/u16-mbtouc.
35948
35949         unistr/u16-to-u8: Reject invalid input.
35950         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35951         u16_mbtouc.
35952         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35953         Remove unistr/u16-mbtouc.
35954
35955         unistr/u8-to-u32: Reject invalid input.
35956         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35957         u8_mbtouc.
35958         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35959         Remove unistr/u8-mbtouc.
35960
35961         unistr/u8-to-u16: Reject invalid input.
35962         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35963         u8_mbtouc.
35964         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35965         Remove unistr/u8-mbtouc.
35966
35967 2010-01-09  Bruno Haible  <bruno@clisp.org>
35968
35969         Tests for module 'getlogin'.
35970         * modules/getlogin-tests: New file.
35971         * tests/test-getlogin.c: New file.
35972
35973         New module 'getlogin'.
35974         * lib/unistd.in.h (getlogin): New declaration.
35975         * lib/getlogin.c: New file.
35976         * m4/getlogin.m4: New file.
35977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35978         HAVE_GETLOGIN.
35979         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35980         HAVE_GETLOGIN.
35981         * modules/getlogin: New file.
35982         * doc/posix-functions/getlogin.texi: Mention the new module.
35983         Reported by John W. Eaton <jwe@gnu.org>.
35984
35985 2010-01-09  Bruno Haible  <bruno@clisp.org>
35986
35987         getlogin_r: Support for native Windows.
35988         * lib/getlogin_r.c: Include <windows.h>
35989         (getlogin_r): Implement for native Windows.
35990         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35991         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35992         via John W. Eaton <jwe@gnu.org>.
35993
35994 2010-01-09  Bruno Haible  <bruno@clisp.org>
35995
35996         getlogin_r: Small fixes.
35997         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35998         succeeds.
35999         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36000         before testing whether getlogin_r is declared. No need to set
36001         HAVE_DECL_GETLOGIN_R to 1.
36002         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36003
36004 2010-01-09  Bruno Haible  <bruno@clisp.org>
36005
36006         * lib/unistd.in.h (getlogin_r): Add comment.
36007
36008 2010-01-09  Bruno Haible  <bruno@clisp.org>
36009
36010         Tests for module 'getlogin_r'.
36011         * modules/getlogin_r-tests: New file.
36012         * tests/test-getlogin_r.c: New file.
36013
36014 2010-01-09  Jim Meyering  <meyering@redhat.com>
36015
36016         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36017         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36018         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36019
36020 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36021
36022         * lib/dup2.c (rpl_dup2): Improve comment.
36023
36024 2010-01-08  Eric Blake  <ebb9@byu.net>
36025
36026         maint.mk: allow packages to add makefile @@ exceptions
36027         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36028         (sc_makefile_check): Rename...
36029         (sc_makefile_at_at_check): ...to this, and use hook.
36030
36031         dup2: work around mingw bug
36032         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36033         Reported by Simon Josefsson.
36034
36035 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36036
36037         glob: Fix C++ compilation.
36038         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36039         C++.
36040
36041 2010-01-07  Bruno Haible  <bruno@clisp.org>
36042
36043         Fix indentation of wctype.in.h, broken since 2007-01-06.
36044         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36045
36046 2010-01-07  Bruno Haible  <bruno@clisp.org>
36047
36048         mbslen: Avoid collision with system function.
36049         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36050         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36051         * m4/mbslen.m4: New file.
36052         * modules/mbslen (Files): Add it.
36053         (configure.ac): Invoke gl_MBSLEN.
36054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36055         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36056         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36057         via Ian Beckwith <ianb@erislabs.net>.
36058
36059 2010-01-07  Bruno Haible  <bruno@clisp.org>
36060
36061         dirent: Document the last fix.
36062         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36063
36064 2010-01-07  Bruno Haible  <bruno@clisp.org>
36065
36066         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36067         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36068         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36069         va_list are defined.
36070         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36071         Reported by Eric Blake.
36072
36073 2010-01-07  Bruno Haible  <bruno@clisp.org>
36074
36075         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36076         * modules/xlist (Depends-on): Add 'list',
36077         * modules/xoset (Depends-on): Add 'oset'.
36078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36079
36080 2010-01-07  Bruno Haible  <bruno@clisp.org>
36081
36082         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36083         * doc/posix-functions/strncasecmp.texi: Likewise.
36084
36085 2010-01-07  Bruno Haible  <bruno@clisp.org>
36086
36087         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36088
36089 2010-01-07  John W. Eaton  <jwe@octave.org>
36090
36091         wctype: allow C++ use
36092         * lib/wctype.in.h: Add extern "C" block for C++.
36093
36094 2010-01-06  Eric Blake  <ebb9@byu.net>
36095
36096         maint.mk: detect incorrect GFDL usage
36097         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36098
36099 2010-01-06  Jim Meyering  <meyering@redhat.com>
36100         and Eric Blake  <ebb9@byu.net>
36101
36102         maint.mk: ignore multi-line copyright in NEWS
36103         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36104
36105 2010-01-06  Eric Blake  <ebb9@byu.net>
36106
36107         select: add missing dependency
36108         * modules/select-tests (Depends-on): Move sockets dependency...
36109         * modules/select (Depends-on): ...here.
36110         Reported by Ian Beckwith.
36111
36112         doc: regenerate INSTALL
36113         * doc/INSTALL: Reflect recent autoconf update.
36114         * doc/INSTALL.ISO: Likewise.
36115         * doc/INSTALL.UTF-8: Likewise.
36116
36117         pread: fix compilation on glibc
36118         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36119         Reported by Ralf Wildenhues.
36120
36121         dirent: fix test failure
36122         * lib/dirent.in.h (includes): Guarantee ino_t.
36123         Reported by Ralf Wildenhues.
36124
36125 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36126
36127         linkat, renameat: avoid bad free
36128         * lib/at-func2.c (at_func2): Fix typo.
36129         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36130
36131 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36132
36133         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36134         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36135         to avoid failure of symlink test later.
36136
36137 2010-01-06  Eric Blake  <ebb9@byu.net>
36138
36139         stdio, unistd: guarantee ssize_t
36140         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36141         2008 are exposed when needed.
36142         * lib/stdio.in.h (includes): Likewise.
36143         Reported by Ralf Wildenhues.
36144
36145 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36146
36147         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36148         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36149         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36150
36151 2010-01-06  Jim Meyering  <meyering@redhat.com>
36152
36153         readtokens: this module *does* require xalloc.h
36154         It uses only functions that were omitted by the old syntax-check rule.
36155         * lib/readtokens.c: Include "xalloc.h" once again.
36156         * modules/readtokens (Depends-on): Add xalloc.
36157         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36158
36159 2010-01-05  Eric Blake  <ebb9@byu.net>
36160
36161         maint: support 'make announcement' from a VPATH build
36162         * top/maint.mk (announcement): Look for correct NEWS file.
36163
36164 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36165
36166         utimens (fdutimens): ignore a negative FD, per contract
36167         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36168         when we have a valid file descriptor.  Otherwise, using a brand
36169         new glibc (with just-patched futimens that now fails with EBADF)
36170         would cause this function to fail with ENOSYS.
36171         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36172         See also http://bugzilla.redhat.com/552320.
36173
36174 2010-01-05  Eric Blake  <ebb9@byu.net>
36175
36176         strcase: document what it provides
36177         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36178         gnulib module.
36179         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36180         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36181
36182 2010-01-05  Jim Meyering  <meyering@redhat.com>
36183
36184         maint: remove useless inclusions of "xalloc.h"
36185         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36186         * lib/readtokens.c: Likewise.
36187         * lib/same.c: Likewise.
36188         * modules/getloadavg (Depends-on): Remove xalloc.
36189         * modules/readtokens: Likewise.
36190         * modules/same: Likewise.
36191
36192         maint.mk: include 4 more function names in alloca.h-checking regexp
36193         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36194         regexp.  Before, we would give a false-positive (saying alloca.h
36195         is included unnecessarily) when the only uses involved omitted symbols.
36196
36197         xalloc.h: use consistent formatting
36198         * lib/xalloc.h: Move declarations to start in the first column.
36199
36200 2010-01-05  Eric Blake  <ebb9@byu.net>
36201
36202         mkdir: avoid xalloc
36203         * lib/mkdir.c (includes): Drop unused header.
36204         Reported by John W. Eaton.
36205
36206 2010-01-04  Jim Meyering  <meyering@redhat.com>
36207
36208         nl_langinfo: avoid configure-time syntax error
36209         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36210         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36211         the empty string.  Don't let that provoke a shell syntax error.
36212
36213         regcomp, regexec, fnmatch: avoid array bounds read error
36214         * lib/regcomp.c (build_equiv_class): From glibc:
36215         Use only the low 24 bits of a findidx return value as an index
36216         into the weights array.  Patch by Ulrich Drepper:
36217         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36218         * lib/regexec.c (check_node_accept_bytes): Likewise.
36219         * lib/fnmatch_loop.c (FCT): Likewise.
36220
36221         regcomp: skip collseq lookup when there are no rules
36222         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36223         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36224
36225         regcomp: recognize ill-formed { } expressions
36226         * lib/regcomp.c (parse_dup_op): From glibc:
36227         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36228
36229         regcomp: fix typo in comment
36230         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36231         s/satisfy/satisfies/.
36232
36233         regcomp: sync from glibc: remove dead store
36234         * lib/regcomp.c (duplicate_node_closure): Remove useless
36235         search_duplicated_node call and dead store.
36236
36237         regcomp: sync from glibc; always use nl_langinfo
36238         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36239         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36240         * modules/regex (Depends-on): Add nl_langinfo.
36241
36242 2010-01-04  Eric Blake  <ebb9@byu.net>
36243
36244         fdopendir: fix configure test
36245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36246
36247 2010-01-01  Bruno Haible  <bruno@clisp.org>
36248
36249         wchar: Remove unused configure check.
36250         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36251
36252 2010-01-01  Eric Blake  <ebb9@byu.net>
36253
36254         headers: make check of system header explicit
36255         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36256         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36257         ourselves.
36258         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36260         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36261         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36262         internals.
36263         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36264         missing.
36265         Suggested by Bruno Haible.
36266
36267 2010-01-01  Jim Meyering  <meyering@redhat.com>
36268
36269         ChangeLog: tweak to eliminate unnecessary copyright line
36270         * ChangeLog: Remove a copyright line that was mistakenly updated
36271         by today's update-copyright run.  Reported by Eric Blake.
36272
36273         test-update-copyright: don't let envvar setting cause test failure
36274         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36275
36276 2010-01-01  Bruno Haible  <bruno@clisp.org>
36277
36278         localename: Avoid gcc warning.
36279         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36280         function if it is not used.
36281
36282 2010-01-01  Jim Meyering  <meyering@redhat.com>
36283
36284         update nearly all FSF copyright year lists to include 2010
36285         Use the same procedure as for 2009, outlined in
36286         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36287
36288         version-etc: set COPYRIGHT_YEAR to 2010
36289         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36290
36291 2009-12-31  Eric Blake  <ebb9@byu.net>
36292
36293         doc: correct availability of cygwin 1.5.x getopt
36294         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36295         variables.
36296         * doc/posix-functions/opterr.texi (opterr): Likewise.
36297         * doc/posix-functions/optind.texi (optind): Likewise.
36298         * doc/posix-functions/optopt.texi (optopt): Likewise.
36299         * doc/posix-functions/tzname.texi (tzname): Likewise.
36300
36301         openat: update maintainer
36302         * modules/openat (Maintainer): Add myself.
36303
36304         utimens: avoid shadowing warning
36305         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36306         buffers into one, to avoid shadowing, as well as avoiding a
36307         redundant stat.
36308         Reported by Jim Meyering.
36309
36310         test-dup2: avoid compiler warning
36311         * tests/test-dup2.c (is_inheritable): Only define if used.
36312
36313 2010-01-01  Bruno Haible  <bruno@clisp.org>
36314
36315         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36316         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36317         defined, use wctomb instead of wcrtomb.
36318
36319 2010-01-01  Bruno Haible  <bruno@clisp.org>
36320
36321         iconv: Reject native Solaris iconv.
36322         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36323         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36324
36325 2009-12-31  Bruno Haible  <bruno@clisp.org>
36326
36327         * tests/test-signal.c (main): Remove test of 'SIG'.
36328
36329 2009-12-31  Bruno Haible  <bruno@clisp.org>
36330
36331         spawn: Fix incomplete fix.
36332         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36333         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36334         warnings for GNULIB_POSIXCHECK again.
36335         Reported by Eric Blake.
36336
36337 2009-12-31  Bruno Haible  <bruno@clisp.org>
36338
36339         Avoid namespace pollution on glibc systems.
36340         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36341         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36342         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36343         glibc systems.
36344
36345 2009-12-31  Bruno Haible  <bruno@clisp.org>
36346
36347         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36348         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36349         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36350         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36351         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36352         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36353         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36354
36355 2009-12-31  Bruno Haible  <bruno@clisp.org>
36356
36357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36358         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36359         afterwards.
36360
36361 2009-12-31  Bruno Haible  <bruno@clisp.org>
36362
36363         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36364         SYS_UTSNAME_H.
36365
36366 2009-12-31  Bruno Haible  <bruno@clisp.org>
36367
36368         spawn: Fix misapplied patch.
36369         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36370         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36371         warnings for GNULIB_POSIXCHECK.
36372
36373 2009-12-31  Bruno Haible  <bruno@clisp.org>
36374
36375         times: Update after sys_times changed.
36376         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36377         * modules/times (Files): Add it.
36378         (configure.ac): Invoke gl_FUNC_TIMES.
36379
36380 2009-12-31  Bruno Haible  <bruno@clisp.org>
36381
36382         Use AC_C_INLINE where necessary.
36383         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36384         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36385         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36386         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36387         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36388         * m4/mbiter.m4 (gl_MBITER): Likewise.
36389         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36390         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36391         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36392         * modules/u64 (configure.ac): Likewise.
36393
36394 2009-12-31  Bruno Haible  <bruno@clisp.org>
36395
36396         Use AC_C_INLINE instead of module 'inline' where possible.
36397         * modules/inline (Description): Clarify purpose.
36398         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36399         * modules/count-one-bits (Depends-on): Remove inline.
36400         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36401         * modules/openat (Depends-on): Remove inline.
36402         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36403         instead of depending on module 'inline'.
36404         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36405         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36406         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36407         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36408         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36409         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36410         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36411         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36412         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36413         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36414         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36415         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36416         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36417         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36418         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36419         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36420         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36421         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36422         Likewise.
36423         * modules/unictype/property-ascii-hex-digit (Depends-on,
36424         configure.ac): Likewise.
36425         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36426         configure.ac): Likewise.
36427         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36428         configure.ac): Likewise.
36429         * modules/unictype/property-bidi-block-separator (Depends-on,
36430         configure.ac): Likewise.
36431         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36432         configure.ac): Likewise.
36433         * modules/unictype/property-bidi-common-separator (Depends-on,
36434         configure.ac): Likewise.
36435         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36436         Likewise.
36437         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36438         configure.ac): Likewise.
36439         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36440         configure.ac): Likewise.
36441         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36442         configure.ac): Likewise.
36443         * modules/unictype/property-bidi-european-digit (Depends-on,
36444         configure.ac): Likewise.
36445         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36446         configure.ac): Likewise.
36447         * modules/unictype/property-bidi-left-to-right (Depends-on,
36448         configure.ac): Likewise.
36449         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36450         configure.ac): Likewise.
36451         * modules/unictype/property-bidi-other-neutral (Depends-on,
36452         configure.ac): Likewise.
36453         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36454         Likewise.
36455         * modules/unictype/property-bidi-segment-separator (Depends-on,
36456         configure.ac): Likewise.
36457         * modules/unictype/property-bidi-whitespace (Depends-on,
36458         configure.ac): Likewise.
36459         * modules/unictype/property-combining (Depends-on, configure.ac):
36460         Likewise.
36461         * modules/unictype/property-composite (Depends-on, configure.ac):
36462         Likewise.
36463         * modules/unictype/property-currency-symbol (Depends-on,
36464         configure.ac): Likewise.
36465         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36466         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36467         Likewise.
36468         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36469         configure.ac): Likewise.
36470         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36471         Likewise.
36472         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36473         Likewise.
36474         * modules/unictype/property-extender (Depends-on, configure.ac):
36475         Likewise.
36476         * modules/unictype/property-format-control (Depends-on, configure.ac):
36477         Likewise.
36478         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36479         Likewise.
36480         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36481         Likewise.
36482         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36483         Likewise.
36484         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36485         Likewise.
36486         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36487         Likewise.
36488         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36489         Likewise.
36490         * modules/unictype/property-id-start (Depends-on, configure.ac):
36491         Likewise.
36492         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36493         Likewise.
36494         * modules/unictype/property-ids-binary-operator (Depends-on,
36495         configure.ac): Likewise.
36496         * modules/unictype/property-ids-trinary-operator (Depends-on,
36497         configure.ac): Likewise.
36498         * modules/unictype/property-ignorable-control (Depends-on,
36499         configure.ac): Likewise.
36500         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36501         Likewise.
36502         * modules/unictype/property-join-control (Depends-on, configure.ac):
36503         Likewise.
36504         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36505         Likewise.
36506         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36507         Likewise.
36508         * modules/unictype/property-logical-order-exception (Depends-on,
36509         configure.ac): Likewise.
36510         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36511         Likewise.
36512         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36513         * modules/unictype/property-non-break (Depends-on, configure.ac):
36514         Likewise.
36515         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36516         Likewise.
36517         * modules/unictype/property-numeric (Depends-on, configure.ac):
36518         Likewise.
36519         * modules/unictype/property-other-alphabetic (Depends-on,
36520         configure.ac): Likewise.
36521         * modules/unictype/property-other-default-ignorable-code-point
36522         (Depends-on, configure.ac): Likewise.
36523         * modules/unictype/property-other-grapheme-extend (Depends-on,
36524         configure.ac): Likewise.
36525         * modules/unictype/property-other-id-continue (Depends-on,
36526         configure.ac): Likewise.
36527         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36528         Likewise.
36529         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36530         Likewise.
36531         * modules/unictype/property-other-math (Depends-on, configure.ac):
36532         Likewise.
36533         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36534         Likewise.
36535         * modules/unictype/property-paired-punctuation (Depends-on,
36536         configure.ac): Likewise.
36537         * modules/unictype/property-paragraph-separator (Depends-on,
36538         configure.ac): Likewise.
36539         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36540         Likewise.
36541         * modules/unictype/property-pattern-white-space (Depends-on,
36542         configure.ac): Likewise.
36543         * modules/unictype/property-private-use (Depends-on, configure.ac):
36544         Likewise.
36545         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36546         Likewise.
36547         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36548         Likewise.
36549         * modules/unictype/property-radical (Depends-on, configure.ac):
36550         Likewise.
36551         * modules/unictype/property-sentence-terminal (Depends-on,
36552         configure.ac): Likewise.
36553         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36554         Likewise.
36555         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36556         * modules/unictype/property-terminal-punctuation (Depends-on,
36557         configure.ac): Likewise.
36558         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36559         Likewise.
36560         * modules/unictype/property-unassigned-code-value (Depends-on,
36561         configure.ac): Likewise.
36562         * modules/unictype/property-unified-ideograph (Depends-on,
36563         configure.ac): Likewise.
36564         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36565         Likewise.
36566         * modules/unictype/property-variation-selector (Depends-on,
36567         configure.ac): Likewise.
36568         * modules/unictype/property-white-space (Depends-on, configure.ac):
36569         Likewise.
36570         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36571         Likewise.
36572         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36573         Likewise.
36574         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36575         Likewise.
36576         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36577         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36578         Likewise.
36579
36580 2009-12-31  Bruno Haible  <bruno@clisp.org>
36581
36582         Remove unnecessary AC_C_INLINE invocation.
36583         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36584         since 2009-08-21.
36585
36586 2009-12-31  Jim Meyering  <meyering@redhat.com>
36587
36588         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36589         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36590         With this change, we can all remove the gpg_key_ID = ... definition
36591         from our respective cfg.mk files.
36592
36593         maint.mk: create announcement template in ~/, not in /tmp
36594         * top/maint.mk (emit_upload_commands): Adjust.
36595         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36596         Remove temporary file, .ci-msg.
36597
36598 2009-12-31  Eric Blake  <ebb9@byu.net>
36599
36600         link-warning: always build headers with link warnings
36601         * modules/arpa_inet (Makefile.am): Always build replacement
36602         header.
36603         * modules/ctype (Makefile.am): Likewise.
36604         * modules/dirent (Makefile.am): Likewise.
36605         * modules/inttypes (Makefile.am): Likewise.
36606         * modules/langinfo (Makefile.am): Likewise.
36607         * modules/locale (Makefile.am): Likewise.
36608         * modules/spawn (Makefile.am): Likewise.
36609         * modules/sys_file (Makefile.am): Likewise.
36610         * modules/sys_ioctl (Makefile.am): Likewise.
36611         * modules/sys_select (Makefile.am): Likewise.
36612         * modules/sys_socket (Makefile.am): Likewise.
36613         * modules/sys_times (Makefile.am): Likewise.
36614         * modules/sys_utsname (Makefile.am): Likewise.
36615         * modules/sys_wait (Makefile.am): Likewise.
36616         * modules/wchar (Makefile.am): Likewise.
36617         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36618         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36619         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36620         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36621         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36622         Likewise.
36623         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36624         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36625         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36626         Likewise.
36627         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36628         Likewise.
36629         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36630         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36631         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36633         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36634         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36635         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36636         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36637         (gl_WCHAR_H_DEFAULTS): Likewise.
36638
36639 2009-12-31  Eric Blake  <ebb9@byu.net>
36640
36641         signal, spawn: use link warnings
36642         * lib/signal.in.h (sigset_t): Make unconditional.
36643         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36644         (sigpending, sigprocmask, sigaction): Add link warnings.
36645         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36646         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36647         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36648         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36649         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36650         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36651         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36652         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36653         (posix_spawn_file_actions_destroy)
36654         (posix_spawn_file_actions_addopen)
36655         (posix_spawn_file_actions_addclose)
36656         (posix_spawn_file_actions_adddup2): Likewise.
36657         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36658         * tests/test-signal.c (main): Enhance test.
36659
36660         spawn: improve wrapper support
36661         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36662         (gl_SPAWN_H_DEFAULTS): New defaults.
36663         * modules/spawn (Makefile.am): Substitute them.
36664         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36665         Only declare if missing or broken.
36666
36667         sys_times, sys_utsname: use include_next
36668         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36669         header.
36670         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36671         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36672         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36673         * modules/sys_times (Depends-on): Add include_next.
36674         (Makefile.am): Substitute additional values.
36675         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36676         * lib/sys_times.in.h (includes): Include native header, if
36677         available.
36678         * lib/sys_utsname.in.h (includes): Likewise.
36679         * tests/test-sys_times.c (main): Enhance test.
36680
36681         fdutimensat: revert prior patch
36682         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36683         utimens.h.
36684         Reported by Bruno Haible.
36685
36686 2009-12-30  Eric Blake  <ebb9@byu.net>
36687
36688         sys_wait: drop link-warning dependency
36689         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36690         link-warning efforts.
36691         * lib/sys_wait.in.h: Likewise.
36692
36693         fdutimensat: remove bogus dependency
36694         * modules/fdutimensat (Depends-on): Drop inline.
36695
36696         unistd: fix typo
36697         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36698
36699 2009-12-30  Bruno Haible  <bruno@clisp.org>
36700
36701         Fix compilation error with Solaris cc.
36702         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36703         * lib/unicase/u16-is-invariant.c: Likewise.
36704         * lib/unicase/u32-is-invariant.c: Likewise.
36705         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36706
36707 2009-12-30  Bruno Haible  <bruno@clisp.org>
36708
36709         Fix test crash.
36710         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36711         locales.
36712         Reported by Simon Josefsson <simon@josefsson.org>.
36713
36714 2009-12-30  Bruno Haible  <bruno@clisp.org>
36715
36716         Fix compilation error on most platforms.
36717         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36718         Reported by Simon Josefsson <simon@josefsson.org>
36719         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36720
36721 2009-12-30  Eric Blake  <ebb9@byu.net>
36722
36723         futimens, utimensat: work around ntfs-3g bug
36724         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36725         a ctime bug is present, and expand workaround to cover ntfs-3g.
36726         * lib/utimens.c (fdutimens, lutimens): Likewise.
36727         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36728         (validate_timespec): Adjust return value.
36729         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36730         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36731         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36732
36733 2009-12-29  Eric Blake  <ebb9@byu.net>
36734
36735         link-warning: make usage consistent
36736         * modules/ctype (Depends-on): Add link-warning.
36737         (Makefile.am): Update rules accordingly.
36738         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36739         * modules/locale (Depends-on, Makefile.am): Likewise.
36740         * modules/sys_file (Makefile.am): Likewise.
36741         * modules/getopt-posix (Makefile.am): Delete unused link warning
36742         efforts.
36743         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36744         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36745         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36746         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36747
36748         stdio: remove unused variables
36749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36750         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36751         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36752
36753         tests: test more substitute headers
36754         * modules/ctype-tests: New file.
36755         * modules/dirent-tests: Likewise.
36756         * modules/spawn-tests: Likewise.
36757         * modules/sys_file-tests: Likewise.
36758         * modules/sys_ioctl-tests: Likewise.
36759         * modules/sys_wait-tests: Likewise.
36760         * tests/test-ctype.c: Likewise.
36761         * tests/test-dirent.c: Likewise.
36762         * tests/test-spawn.c: Likewise.
36763         * tests/test-sys_file.c: Likewise.
36764         * tests/test-sys_ioctl.c: Likewise.
36765         * tests/test-sys_wait.c: Likewise.
36766         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36767         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36768         whether or not flock is in use.
36769
36770         tests: remove License section from module
36771         * modules/arpa_inet-tests: Remove unneeded section.
36772         * modules/byteswap-tests: Likewise.
36773         * modules/ceilf-tests: Likewise.
36774         * modules/ceill-tests: Likewise.
36775         * modules/crypto/des-tests: Likewise.
36776         * modules/crypto/gc-arcfour-tests: Likewise.
36777         * modules/crypto/gc-arctwo-tests: Likewise.
36778         * modules/crypto/gc-des-tests: Likewise.
36779         * modules/crypto/gc-hmac-md5-tests: Likewise.
36780         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36781         * modules/crypto/gc-md2-tests: Likewise.
36782         * modules/crypto/gc-md4-tests: Likewise.
36783         * modules/crypto/gc-md5-tests: Likewise.
36784         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36785         * modules/crypto/gc-rijndael-tests: Likewise.
36786         * modules/crypto/gc-sha1-tests: Likewise.
36787         * modules/crypto/gc-tests: Likewise.
36788         * modules/crypto/md2-tests: Likewise.
36789         * modules/crypto/md4-tests: Likewise.
36790         * modules/fcntl-h-tests: Likewise.
36791         * modules/floorf-tests: Likewise.
36792         * modules/floorl-tests: Likewise.
36793         * modules/frexp-nolibm-tests: Likewise.
36794         * modules/frexp-tests: Likewise.
36795         * modules/frexpl-nolibm-tests: Likewise.
36796         * modules/frexpl-tests: Likewise.
36797         * modules/getaddrinfo-tests: Likewise.
36798         * modules/inttypes-tests: Likewise.
36799         * modules/isfinite-tests: Likewise.
36800         * modules/isinf-tests: Likewise.
36801         * modules/ldexpl-tests: Likewise.
36802         * modules/locale-tests: Likewise.
36803         * modules/math-tests: Likewise.
36804         * modules/netdb-tests: Likewise.
36805         * modules/netinet_in-tests: Likewise.
36806         * modules/printf-frexp-tests: Likewise.
36807         * modules/printf-frexpl-tests: Likewise.
36808         * modules/priv-set-tests: Likewise.
36809         * modules/random_r-tests: Likewise.
36810         * modules/round-tests: Likewise.
36811         * modules/roundf-tests: Likewise.
36812         * modules/roundl-tests: Likewise.
36813         * modules/search-tests: Likewise.
36814         * modules/select-tests: Likewise.
36815         * modules/signal-tests: Likewise.
36816         * modules/stdbool-tests: Likewise.
36817         * modules/stddef-tests: Likewise.
36818         * modules/stdint-tests: Likewise.
36819         * modules/stdio-tests: Likewise.
36820         * modules/stdlib-tests: Likewise.
36821         * modules/string-tests: Likewise.
36822         * modules/strings-tests: Likewise.
36823         * modules/sys_select-tests: Likewise.
36824         * modules/sys_socket-tests: Likewise.
36825         * modules/sys_stat-tests: Likewise.
36826         * modules/sys_time-tests: Likewise.
36827         * modules/sys_utsname-tests: Likewise.
36828         * modules/sysexits-tests: Likewise.
36829         * modules/time-tests: Likewise.
36830         * modules/trunc-tests: Likewise.
36831         * modules/truncf-tests: Likewise.
36832         * modules/truncl-tests: Likewise.
36833         * modules/tsearch-tests: Likewise.
36834         * modules/unistd-tests: Likewise.
36835         * modules/wchar-tests: Likewise.
36836         * modules/wctype-tests: Likewise.
36837
36838         tests: fix license on several tests
36839         * tests/test-des.c: Update to GPLv3+.
36840         * tests/test-flock.c: Likewise.
36841         * tests/test-fsync.c: Likewise.
36842         * tests/test-futimens.h: Likewise.
36843         * tests/test-gc-arcfour.c: Likewise.
36844         * tests/test-gc-arctwo.c: Likewise.
36845         * tests/test-gc-des.c: Likewise.
36846         * tests/test-gc-hmac-md5.c: Likewise.
36847         * tests/test-gc-hmac-sha1.c: Likewise.
36848         * tests/test-gc-md2.c: Likewise.
36849         * tests/test-gc-md4.c: Likewise.
36850         * tests/test-gc-md5.c: Likewise.
36851         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36852         * tests/test-gc-rijndael.c: Likewise.
36853         * tests/test-gc-sha1.c: Likewise.
36854         * tests/test-gc.c: Likewise.
36855         * tests/test-getcwd.c: Likewise.
36856         * tests/test-link.c: Likewise.
36857         * tests/test-link.h: Likewise.
36858         * tests/test-lutimens.h: Likewise.
36859         * tests/test-md2.c: Likewise.
36860         * tests/test-md4.c: Likewise.
36861         * tests/test-mkdir.h: Likewise.
36862         * tests/test-rename.c: Likewise.
36863         * tests/test-rename.h: Likewise.
36864         * tests/test-safe-alloc.c: Likewise.
36865         * tests/test-utimens-common.h: Likewise.
36866         * tests/test-utimens.h: Likewise.
36867
36868         maint: sync license texts
36869         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
36870         * doc/gpl-3.0.texi: Revert copyright year update.
36871         * doc/lgpl-3.0.texi: Likewise.
36872
36873 2009-12-29  Jim Meyering  <meyering@redhat.com>
36874
36875         update nearly all FSF copyright year lists to include 2009
36876         The files named by the following are exempted:
36877             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
36878               test -f "$dst" && { echo "$dst"; continue; }
36879               test -d "$dst" || continue
36880               echo "$dst"/$(basename "$src")
36881             done > exempt
36882             git ls-files tests/unictype >> exempt
36883         In the remaining files, convert to all-interval notation if
36884         - there is already at least one year interval like 2000-2003
36885         - the file is maintained by me
36886         - the file is in lib/uni*/, where that style already prevails
36887         Otherwise, use update-copyright's default.
36888
36889 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36890         and Eric Blake  <ebb9@byu.net>
36891
36892         tests: don't require debug system() to pass
36893         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
36894         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36895         * tests/test-unlink.h (test_unlink_func): Likewise.
36896         * tests/test-fstatat.c (main): ...into callers.
36897         * tests/test-lstat.c (main): Likewise.
36898         * tests/test-rmdir.c (main): Likewise.
36899         * tests/test-unlink.c (main): Likewise.
36900         * tests/test-unlinkat.c (main): Likewise.
36901         * tests/test-areadlink-with-size.c (main): Don't require a
36902         debug-only system call to pass, aiding cross-testing to mingw.
36903         * tests/test-areadlink.c (main): Likewise.
36904         * tests/test-areadlinkat-with-size.c (main): Likewise.
36905         * tests/test-areadlinkat.c (main): Likewise.
36906         * tests/test-canonicalize-lgpl.c (main): Likewise.
36907         * tests/test-canonicalize.c (main): Likewise.
36908         * tests/test-chown.c (main): Likewise.
36909         * tests/test-fchownat.c (main): Likewise.
36910         * tests/test-lchown.c (main): Likewise.
36911         * tests/test-fdutimensat.c (main): Likewise.
36912         * tests/test-futimens.c (main): Likewise.
36913         * tests/test-link.c (main): Likewise.
36914         * tests/test-linkat.c (main): Likewise.
36915         * tests/test-mkdir.c (main): Likewise.
36916         * tests/test-mkdirat.c (main): Likewise.
36917         * tests/test-mkfifo.c (main): Likewise.
36918         * tests/test-mkfifoat.c (main): Likewise.
36919         * tests/test-mknod.c (main): Likewise.
36920         * tests/test-readlink.c (main): Likewise.
36921         * tests/test-remove.c (main): Likewise.
36922         * tests/test-rename.c (main): Likewise.
36923         * tests/test-renameat.c (main): Likewise.
36924         * tests/test-symlink.c (main): Likewise.
36925         * tests/test-symlinkat.c (main): Likewise.
36926         * tests/test-utimens.c (main): Likewise.
36927         * tests/test-utimensat.c (main): Likewise.
36928
36929 2009-12-29  Simon Josefsson  <simon@josefsson.org>
36930
36931         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
36932         on $(UNUSED_PARAMETER_H) to avoid build failure.
36933
36934 2009-12-28  Jim Meyering  <meyering@redhat.com>
36935
36936         update-copyright: you may specify a max. line length other than 72
36937         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36938
36939         maint: use consistent FSF copyright line syntax
36940         * lib/posixtm.c: Add missing comma in FSF copyright line.
36941         * lib/posixtm.h: Likewise.
36942         * lib/getugroups.c: Add missing ", Inc.".
36943
36944         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
36945         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
36946         FSF copyright line.  Remove trailing blanks.
36947
36948 2009-12-28  Eric Blake  <ebb9@byu.net>
36949
36950         test-dup2: reduce dependencies
36951         * modules/cloexec (Configure.ac): Set witness.
36952         * modules/dup2-tests (Depends-on): Drop cloexec.
36953         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36954         not present.
36955         Suggested by Bruno Haible.
36956
36957 2009-12-26  Bruno Haible  <bruno@clisp.org>
36958
36959         Remove an unneeded dependency.
36960         * modules/fseterr (Depends-on): Remove dup2.
36961
36962 2009-12-26  Eric Blake  <ebb9@byu.net>
36963
36964         tests: use macros.h in more places
36965         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36966         (ASSERT_STREAM): Provide default of stderr.
36967         * tests/test-dirent-safer.c: Include macros.h, using alternate
36968         stream for assertions.
36969         * tests/test-dup-safer.c: Likewise.
36970         * tests/test-freopen-safer.c: Likewise.
36971         * tests/test-getopt.c: Likewise.
36972         * tests/test-openat-safer.c: Likewise.
36973         * tests/test-pipe.c: Likewise.
36974         * tests/test-popen-safer.c: Likewise.
36975         * modules/dirent-safer-tests (Files): Include macros.h.
36976         * modules/unistd-safer-tests (Files): Likewise.
36977         * modules/freopen-safer-tests (Files): Likewise.
36978         * modules/getopt-posix-tests (Files): Likewise.
36979         * modules/openat-safer-tests (Files): Likewise.
36980         * modules/pipe-tests (Files): Likewise.
36981
36982 2009-12-26  Bruno Haible  <bruno@clisp.org>
36983
36984         javacomp: Portability fix.
36985         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36986         that it also works on Solaris.
36987
36988 2009-12-26  Bruno Haible  <bruno@clisp.org>
36989
36990         localename: Fix storage allocation of gl_locale_name_thread's result.
36991         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36992         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36993         all platforms that have 'uselocale'.
36994         (gl_locale_name_thread_unsafe): New function, extracted from
36995         gl_locale_name_thread.
36996         (gl_locale_name_thread): Call struniq on all platforms that have
36997         'uselocale'.
36998         * tests/test-localename.c (test_locale_name_thread): Check that the
36999         resulting strings are permanently allocated.
37000         * modules/localename-tests (Depends-on): Add strdup.
37001
37002 2009-12-26  Bruno Haible  <bruno@clisp.org>
37003
37004         * tests/test-localename.c (categories): Fill in the strings.
37005
37006 2009-12-26  Jim Meyering  <meyering@redhat.com>
37007
37008         isdir: complete the removal of m4/isdir.m4
37009         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37010
37011         isdir: clean up, since at least grep still uses it
37012         * lib/isdir.c: Include "isdir.h".
37013         (S_ISDIR): Remove now-unneeded definition.
37014         * modules/isdir (Files): Add lib/isdir.h.
37015         * lib/isdir.h: New file, with declaration.
37016         * m4/isdir.m4: Remove file -- unneeded.
37017
37018 2009-12-25  Bruno Haible  <bruno@clisp.org>
37019
37020         selinux-h: Make generated .h files standalone.
37021         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37022         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37023         * lib/se-selinux.in.h: Likewise.
37024         * modules/selinux-h (Depends-on): Add unused-parameter.
37025         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37026         selinux/selinux.h and selinux/context.h.
37027         Suggested by Eric Blake.
37028
37029 2009-12-25  Bruno Haible  <bruno@clisp.org>
37030
37031         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37032         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37033         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37034         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37035         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37036
37037 2009-12-24  Bruno Haible  <bruno@clisp.org>
37038
37039         openat: Fix warning.
37040         * lib/openat-proc.c: Include <unistd.h>.
37041
37042 2009-12-24  Bruno Haible  <bruno@clisp.org>
37043
37044         New module 'unused-parameter'.
37045         * build-aux/unused-parameter.h: New file, extracted from earlier
37046         gnulib-common.m4.
37047         * modules/unused-parameter: New file.
37048         * lib/unistr.h: Include unused-parameter.h.
37049         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37050         _GL_UNUSED.
37051         * modules/unistr/base (Depends-on): Add unused-parameter.
37052
37053 2009-12-24  Bruno Haible  <bruno@clisp.org>
37054
37055         Add missing dependencies to 'extensions' module.
37056         * m4/extensions.m4: Add comment.
37057         * modules/accept4 (Depends-on): Add extensions.
37058         * modules/dup3 (Depends-on): Likewise.
37059         * modules/fcntl (Depends-on): Likewise.
37060         * modules/futimens (Depends-on): Likewise.
37061         * modules/mknod (Depends-on): Likewise.
37062         * modules/pipe2 (Depends-on): Likewise.
37063         * modules/stat-time (Depends-on): Likewise.
37064         * modules/strcasestr-simple (Depends-on): Likewise.
37065         * modules/strsignal (Depends-on): Likewise.
37066         * modules/utimensat (Depends-on): Likewise.
37067         * modules/localcharset (Depends-on): Likewise. Needed because of
37068         gl_FCNTL_O_FLAGS.
37069         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37070         AC_TYPE_MBSTATE_T.
37071         * modules/wcsnrtombs (Depends-on): Likewise.
37072         * modules/wcsrtombs (Depends-on): Likewise.
37073
37074 2009-12-24  Bruno Haible  <bruno@clisp.org>
37075
37076         binary-io: Avoid gcc warning due to SET_BINARY.
37077         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37078         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37079
37080 2009-12-24  Bruno Haible  <bruno@clisp.org>
37081
37082         Avoid future namespace pollution on glibc systems.
37083         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37084         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37085         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37086         glibc systems.
37087
37088 2009-12-24  Bruno Haible  <bruno@clisp.org>
37089
37090         Refactor common macros used in tests.
37091         * tests/macros.h: New file.
37092         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37093         and/or <stdlib.h>, if appropriate.
37094         (ASSERT, SIZEOF): Remove macros.
37095         * tests/test-areadlink-with-size.c: Likewise.
37096         * tests/test-areadlinkat.c: Likewise.
37097         * tests/test-areadlinkat-with-size.c: Likewise.
37098         * tests/test-argmatch.c: Likewise.
37099         * tests/test-argv-iter.c: Likewise.
37100         * tests/test-array-mergesort.c: Likewise.
37101         * tests/test-array_list.c: Likewise.
37102         * tests/test-array_oset.c: Likewise.
37103         * tests/test-avltree_list.c: Likewise.
37104         * tests/test-avltree_oset.c: Likewise.
37105         * tests/test-avltreehash_list.c: Likewise.
37106         * tests/test-base64.c: Likewise.
37107         * tests/test-binary-io.c: Likewise.
37108         * tests/test-bitrotate.c: Likewise.
37109         * tests/test-btowc.c: Likewise.
37110         * tests/test-byteswap.c: Likewise.
37111         * tests/test-c-ctype.c: Likewise.
37112         * tests/test-c-stack.c: Likewise.
37113         * tests/test-c-strcasecmp.c: Likewise.
37114         * tests/test-c-strcasestr.c: Likewise.
37115         * tests/test-c-strncasecmp.c: Likewise.
37116         * tests/test-c-strstr.c: Likewise.
37117         * tests/test-canonicalize-lgpl.c: Likewise.
37118         * tests/test-canonicalize.c: Likewise.
37119         * tests/test-carray_list.c: Likewise.
37120         * tests/test-ceilf1.c: Likewise.
37121         * tests/test-ceilf2.c: Likewise.
37122         * tests/test-ceill.c: Likewise.
37123         * tests/test-chown.c: Likewise.
37124         * tests/test-cloexec.c: Likewise.
37125         * tests/test-copy-acl.c: Likewise.
37126         * tests/test-copy-file.c: Likewise.
37127         * tests/test-count-one-bits.c: Likewise.
37128         * tests/test-dprintf-posix.c: Likewise.
37129         * tests/test-dup2.c: Likewise.
37130         * tests/test-dup3.c: Likewise.
37131         * tests/test-duplocale.c: Likewise.
37132         * tests/test-fbufmode.c: Likewise.
37133         * tests/test-fchdir.c: Likewise.
37134         * tests/test-fchownat.c: Likewise.
37135         * tests/test-fcntl-safer.c: Likewise.
37136         * tests/test-fcntl.c: Likewise.
37137         * tests/test-fdopendir.c: Likewise.
37138         * tests/test-fdutimensat.c: Likewise.
37139         * tests/test-fflush2.c: Likewise.
37140         * tests/test-file-has-acl.c: Likewise.
37141         * tests/test-filevercmp.c: Likewise.
37142         * tests/test-flock.c: Likewise.
37143         * tests/test-floorf1.c: Likewise.
37144         * tests/test-floorf2.c: Likewise.
37145         * tests/test-floorl.c: Likewise.
37146         * tests/test-fnmatch.c: Likewise.
37147         * tests/test-fopen.h: Likewise.
37148         * tests/test-fpending.c: Likewise.
37149         * tests/test-fprintf-posix.c: Likewise.
37150         * tests/test-fpurge.c: Likewise.
37151         * tests/test-freadable.c: Likewise.
37152         * tests/test-freadahead.c: Likewise.
37153         * tests/test-freading.c: Likewise.
37154         * tests/test-freadptr.c: Likewise.
37155         * tests/test-freadptr2.c: Likewise.
37156         * tests/test-freadseek.c: Likewise.
37157         * tests/test-freopen.c: Likewise.
37158         * tests/test-frexp.c: Likewise.
37159         * tests/test-frexpl.c: Likewise.
37160         * tests/test-fseek.c: Likewise.
37161         * tests/test-fseeko.c: Likewise.
37162         * tests/test-fstatat.c: Likewise.
37163         * tests/test-fstrcmp.c: Likewise.
37164         * tests/test-fsync.c: Likewise.
37165         * tests/test-ftell.c: Likewise.
37166         * tests/test-ftello.c: Likewise.
37167         * tests/test-func.c: Likewise.
37168         * tests/test-futimens.c: Likewise.
37169         * tests/test-fwritable.c: Likewise.
37170         * tests/test-fwriting.c: Likewise.
37171         * tests/test-getcwd.c: Likewise.
37172         * tests/test-getdate.c: Likewise.
37173         * tests/test-getdelim.c: Likewise.
37174         * tests/test-getdtablesize.c: Likewise.
37175         * tests/test-getgroups.c: Likewise.
37176         * tests/test-getline.c: Likewise.
37177         * tests/test-getndelim2.c: Likewise.
37178         * tests/test-glob.c: Likewise.
37179         * tests/test-hash.c: Likewise.
37180         * tests/test-i-ring.c: Likewise.
37181         * tests/test-iconv-utf.c: Likewise.
37182         * tests/test-iconv.c: Likewise.
37183         * tests/test-idpriv-drop.c: Likewise.
37184         * tests/test-idpriv-droptemp.c: Likewise.
37185         * tests/test-inet_ntop.c: Likewise.
37186         * tests/test-inet_pton.c: Likewise.
37187         * tests/test-isblank.c: Likewise.
37188         * tests/test-isfinite.c: Likewise.
37189         * tests/test-isinf.c: Likewise.
37190         * tests/test-isnan.c: Likewise.
37191         * tests/test-isnand.h: Likewise.
37192         * tests/test-isnanf.h: Likewise.
37193         * tests/test-isnanl.h: Likewise.
37194         * tests/test-lchown.c: Likewise.
37195         * tests/test-ldexpl.c: Likewise.
37196         * tests/test-link.c: Likewise.
37197         * tests/test-linkat.c: Likewise.
37198         * tests/test-linked_list.c: Likewise.
37199         * tests/test-linkedhash_list.c: Likewise.
37200         * tests/test-localename.c: Likewise.
37201         * tests/test-lseek.c: Likewise.
37202         * tests/test-lstat.c: Likewise.
37203         * tests/test-mbmemcasecmp.c: Likewise.
37204         * tests/test-mbmemcasecoll.c: Likewise.
37205         * tests/test-mbrtowc.c: Likewise.
37206         * tests/test-mbscasecmp.c: Likewise.
37207         * tests/test-mbscasestr1.c: Likewise.
37208         * tests/test-mbscasestr2.c: Likewise.
37209         * tests/test-mbscasestr3.c: Likewise.
37210         * tests/test-mbscasestr4.c: Likewise.
37211         * tests/test-mbschr.c: Likewise.
37212         * tests/test-mbscspn.c: Likewise.
37213         * tests/test-mbsinit.c: Likewise.
37214         * tests/test-mbsncasecmp.c: Likewise.
37215         * tests/test-mbsnrtowcs.c: Likewise.
37216         * tests/test-mbspbrk.c: Likewise.
37217         * tests/test-mbspcasecmp.c: Likewise.
37218         * tests/test-mbsrchr.c: Likewise.
37219         * tests/test-mbsrtowcs.c: Likewise.
37220         * tests/test-mbsspn.c: Likewise.
37221         * tests/test-mbsstr1.c: Likewise.
37222         * tests/test-mbsstr2.c: Likewise.
37223         * tests/test-mbsstr3.c: Likewise.
37224         * tests/test-memchr.c: Likewise.
37225         * tests/test-memchr2.c: Likewise.
37226         * tests/test-memcmp.c: Likewise.
37227         * tests/test-memmem.c: Likewise.
37228         * tests/test-memrchr.c: Likewise.
37229         * tests/test-mkdir.c: Likewise.
37230         * tests/test-mkdirat.c: Likewise.
37231         * tests/test-mkfifo.c: Likewise.
37232         * tests/test-mkfifoat.c: Likewise.
37233         * tests/test-mknod.c: Likewise.
37234         * tests/test-nanosleep.c: Likewise.
37235         * tests/test-nl_langinfo.c: Likewise.
37236         * tests/test-obstack-printf.c: Likewise.
37237         * tests/test-open.c: Likewise.
37238         * tests/test-openat.c: Likewise.
37239         * tests/test-pipe-filter-gi1.c: Likewise.
37240         * tests/test-pipe-filter-gi2-main.c: Likewise.
37241         * tests/test-pipe-filter-ii1.c: Likewise.
37242         * tests/test-pipe-filter-ii2-main.c: Likewise.
37243         * tests/test-pipe2.c: Likewise.
37244         * tests/test-popen.h: Likewise.
37245         * tests/test-posixtm.c: Likewise.
37246         * tests/test-pread.c: Likewise.
37247         * tests/test-printf-frexp.c: Likewise.
37248         * tests/test-printf-frexpl.c: Likewise.
37249         * tests/test-printf-posix.c: Likewise.
37250         * tests/test-priv-set.c: Likewise.
37251         * tests/test-quotearg.c: Likewise.
37252         * tests/test-random_r.c: Likewise.
37253         * tests/test-rawmemchr.c: Likewise.
37254         * tests/test-rbtree_list.c: Likewise.
37255         * tests/test-rbtree_oset.c: Likewise.
37256         * tests/test-rbtreehash_list.c: Likewise.
37257         * tests/test-readlink.c: Likewise.
37258         * tests/test-remove.c: Likewise.
37259         * tests/test-rename.c: Likewise.
37260         * tests/test-renameat.c: Likewise.
37261         * tests/test-rmdir.c: Likewise.
37262         * tests/test-round1.c: Likewise.
37263         * tests/test-roundf1.c: Likewise.
37264         * tests/test-roundl.c: Likewise.
37265         * tests/test-safe-alloc.c: Likewise.
37266         * tests/test-sameacls.c: Likewise.
37267         * tests/test-set-mode-acl.c: Likewise.
37268         * tests/test-setenv.c: Likewise.
37269         * tests/test-sigaction.c: Likewise.
37270         * tests/test-signbit.c: Likewise.
37271         * tests/test-sleep.c: Likewise.
37272         * tests/test-snprintf-posix.c: Likewise.
37273         * tests/test-snprintf.c: Likewise.
37274         * tests/test-sprintf-posix.c: Likewise.
37275         * tests/test-stat-time.c: Likewise.
37276         * tests/test-stat.c: Likewise.
37277         * tests/test-strcasestr.c: Likewise.
37278         * tests/test-strchrnul.c: Likewise.
37279         * tests/test-strerror.c: Likewise.
37280         * tests/test-striconv.c: Likewise.
37281         * tests/test-striconveh.c: Likewise.
37282         * tests/test-striconveha.c: Likewise.
37283         * tests/test-strsignal.c: Likewise.
37284         * tests/test-strstr.c: Likewise.
37285         * tests/test-strtod.c: Likewise.
37286         * tests/test-strverscmp.c: Likewise.
37287         * tests/test-symlink.c: Likewise.
37288         * tests/test-symlinkat.c: Likewise.
37289         * tests/test-trunc1.c: Likewise.
37290         * tests/test-trunc2.c: Likewise.
37291         * tests/test-truncf1.c: Likewise.
37292         * tests/test-truncf2.c: Likewise.
37293         * tests/test-truncl.c: Likewise.
37294         * tests/test-uname.c: Likewise.
37295         * tests/test-unlink.c: Likewise.
37296         * tests/test-unlinkat.c: Likewise.
37297         * tests/test-unsetenv.c: Likewise.
37298         * tests/test-usleep.c: Likewise.
37299         * tests/test-utimens.c: Likewise.
37300         * tests/test-utimensat.c: Likewise.
37301         * tests/test-vasnprintf-posix.c: Likewise.
37302         * tests/test-vasnprintf-posix2.c: Likewise.
37303         * tests/test-vasnprintf.c: Likewise.
37304         * tests/test-vasprintf-posix.c: Likewise.
37305         * tests/test-vasprintf.c: Likewise.
37306         * tests/test-vdprintf-posix.c: Likewise.
37307         * tests/test-vfprintf-posix.c: Likewise.
37308         * tests/test-vprintf-posix.c: Likewise.
37309         * tests/test-vsnprintf-posix.c: Likewise.
37310         * tests/test-vsnprintf.c: Likewise.
37311         * tests/test-vsprintf-posix.c: Likewise.
37312         * tests/test-wcrtomb.c: Likewise.
37313         * tests/test-wcsnrtombs.c: Likewise.
37314         * tests/test-wcsrtombs.c: Likewise.
37315         * tests/test-wctype.c: Likewise.
37316         * tests/test-wcwidth.c: Likewise.
37317         * tests/test-xfprintf-posix.c: Likewise.
37318         * tests/test-xmemdup0.c: Likewise.
37319         * tests/test-xprintf-posix.c: Likewise.
37320         * tests/test-xvasprintf.c: Likewise.
37321         * tests/unicase/test-locale-language.c: Likewise.
37322         * tests/unicase/test-mapping-part1.h: Likewise.
37323         * tests/unicase/test-predicate-part1.h: Likewise.
37324         * tests/unicase/test-u8-casecmp.c: Likewise.
37325         * tests/unicase/test-u8-casecoll.c: Likewise.
37326         * tests/unicase/test-u8-casefold.c: Likewise.
37327         * tests/unicase/test-u8-is-cased.c: Likewise.
37328         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37329         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37330         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37331         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37332         * tests/unicase/test-u8-tolower.c: Likewise.
37333         * tests/unicase/test-u8-totitle.c: Likewise.
37334         * tests/unicase/test-u8-toupper.c: Likewise.
37335         * tests/unicase/test-u16-casecmp.c: Likewise.
37336         * tests/unicase/test-u16-casecoll.c: Likewise.
37337         * tests/unicase/test-u16-casefold.c: Likewise.
37338         * tests/unicase/test-u16-is-cased.c: Likewise.
37339         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37340         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37341         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37342         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37343         * tests/unicase/test-u16-tolower.c: Likewise.
37344         * tests/unicase/test-u16-totitle.c: Likewise.
37345         * tests/unicase/test-u16-toupper.c: Likewise.
37346         * tests/unicase/test-u32-casecmp.c: Likewise.
37347         * tests/unicase/test-u32-casecoll.c: Likewise.
37348         * tests/unicase/test-u32-casefold.c: Likewise.
37349         * tests/unicase/test-u32-is-cased.c: Likewise.
37350         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37351         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37352         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37353         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37354         * tests/unicase/test-u32-tolower.c: Likewise.
37355         * tests/unicase/test-u32-totitle.c: Likewise.
37356         * tests/unicase/test-u32-toupper.c: Likewise.
37357         * tests/unicase/test-ulc-casecmp.c: Likewise.
37358         * tests/unicase/test-ulc-casecoll.c: Likewise.
37359         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37360         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37361         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37362         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37363         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37364         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37365         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37366         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37367         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37368         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37369         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37370         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37371         * tests/unictype/test-bidi_byname.c: Likewise.
37372         * tests/unictype/test-bidi_name.c: Likewise.
37373         * tests/unictype/test-bidi_of.c: Likewise.
37374         * tests/unictype/test-bidi_test.c: Likewise.
37375         * tests/unictype/test-block_list.c: Likewise.
37376         * tests/unictype/test-block_of.c: Likewise.
37377         * tests/unictype/test-block_test.c: Likewise.
37378         * tests/unictype/test-categ_and.c: Likewise.
37379         * tests/unictype/test-categ_and_not.c: Likewise.
37380         * tests/unictype/test-categ_byname.c: Likewise.
37381         * tests/unictype/test-categ_name.c: Likewise.
37382         * tests/unictype/test-categ_none.c: Likewise.
37383         * tests/unictype/test-categ_of.c: Likewise.
37384         * tests/unictype/test-categ_or.c: Likewise.
37385         * tests/unictype/test-categ_test_withtable.c: Likewise.
37386         * tests/unictype/test-combining.c: Likewise.
37387         * tests/unictype/test-decdigit.c: Likewise.
37388         * tests/unictype/test-digit.c: Likewise.
37389         * tests/unictype/test-mirror.c: Likewise.
37390         * tests/unictype/test-numeric.c: Likewise.
37391         * tests/unictype/test-pr_byname.c: Likewise.
37392         * tests/unictype/test-pr_test.c: Likewise.
37393         * tests/unictype/test-predicate-part1.h: Likewise.
37394         * tests/unictype/test-scripts.c: Likewise.
37395         * tests/unictype/test-sy_c_ident.c: Likewise.
37396         * tests/unictype/test-sy_java_ident.c: Likewise.
37397         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37398         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37399         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37400         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37401         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37402         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37403         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37404         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37405         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37406         * tests/uninorm/test-compat-decomposition.c: Likewise.
37407         * tests/uninorm/test-composition.c: Likewise.
37408         * tests/uninorm/test-decomposing-form.c: Likewise.
37409         * tests/uninorm/test-decomposition.c: Likewise.
37410         * tests/uninorm/test-u8-nfc.c: Likewise.
37411         * tests/uninorm/test-u8-nfd.c: Likewise.
37412         * tests/uninorm/test-u8-nfkc.c: Likewise.
37413         * tests/uninorm/test-u8-nfkd.c: Likewise.
37414         * tests/uninorm/test-u8-normcmp.c: Likewise.
37415         * tests/uninorm/test-u8-normcoll.c: Likewise.
37416         * tests/uninorm/test-u16-nfc.c: Likewise.
37417         * tests/uninorm/test-u16-nfd.c: Likewise.
37418         * tests/uninorm/test-u16-nfkc.c: Likewise.
37419         * tests/uninorm/test-u16-nfkd.c: Likewise.
37420         * tests/uninorm/test-u16-normcmp.c: Likewise.
37421         * tests/uninorm/test-u16-normcoll.c: Likewise.
37422         * tests/uninorm/test-u32-nfc.c: Likewise.
37423         * tests/uninorm/test-u32-nfd.c: Likewise.
37424         * tests/uninorm/test-u32-nfkc.c: Likewise.
37425         * tests/uninorm/test-u32-nfkd.c: Likewise.
37426         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37427         * tests/uninorm/test-u32-normcmp.c: Likewise.
37428         * tests/uninorm/test-u32-normcoll.c: Likewise.
37429         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37430         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37431         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37432         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37433         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37434         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37435         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37436         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37437         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37438         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37439         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37440         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37441         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37442         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37443         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37444         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37445         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37446         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37447         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37448         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37449         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37450         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37451         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37452         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37453         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37454         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37455         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37456         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37457         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37458         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37459         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37460         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37461         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37462         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37463         * tests/uniwidth/test-u8-width.c: Likewise.
37464         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37465         * tests/uniwidth/test-u16-width.c: Likewise.
37466         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37467         * tests/uniwidth/test-u32-width.c: Likewise.
37468         * tests/uniwidth/test-uc_width.c: Likewise.
37469         * tests/uniwidth/test-uc_width2.c: Likewise.
37470         * modules/acl-tests (Files): Add tests/macros.h.
37471         * modules/areadlink-tests (Files): Likewise.
37472         * modules/areadlink-with-size-tests (Files): Likewise.
37473         * modules/areadlinkat-tests (Files): Likewise.
37474         * modules/areadlinkat-with-size-tests (Files): Likewise.
37475         * modules/argmatch-tests (Files): Likewise.
37476         * modules/argv-iter-tests (Files): Likewise.
37477         * modules/array-list-tests (Files): Likewise.
37478         * modules/array-mergesort-tests (Files): Likewise.
37479         * modules/array-oset-tests (Files): Likewise.
37480         * modules/avltree-list-tests (Files): Likewise.
37481         * modules/avltree-oset-tests (Files): Likewise.
37482         * modules/avltreehash-list-tests (Files): Likewise.
37483         * modules/base64-tests (Files): Likewise.
37484         * modules/binary-io-tests (Files): Likewise.
37485         * modules/bitrotate-tests (Files): Likewise.
37486         * modules/btowc-tests (Files): Likewise.
37487         * modules/byteswap-tests (Files): Likewise.
37488         * modules/c-ctype-tests (Files): Likewise.
37489         * modules/c-stack-tests (Files): Likewise.
37490         * modules/c-strcase-tests (Files): Likewise.
37491         * modules/c-strcasestr-tests (Files): Likewise.
37492         * modules/c-strstr-tests (Files): Likewise.
37493         * modules/canonicalize-lgpl-tests (Files): Likewise.
37494         * modules/canonicalize-tests (Files): Likewise.
37495         * modules/carray-list-tests (Files): Likewise.
37496         * modules/ceilf-tests (Files): Likewise.
37497         * modules/ceill-tests (Files): Likewise.
37498         * modules/chown-tests (Files): Likewise.
37499         * modules/cloexec-tests (Files): Likewise.
37500         * modules/copy-file-tests (Files): Likewise.
37501         * modules/count-one-bits-tests (Files): Likewise.
37502         * modules/dprintf-posix-tests (Files): Likewise.
37503         * modules/dup2-tests (Files): Likewise.
37504         * modules/dup3-tests (Files): Likewise.
37505         * modules/duplocale-tests (Files): Likewise.
37506         * modules/fbufmode-tests (Files): Likewise.
37507         * modules/fchdir-tests (Files): Likewise.
37508         * modules/fcntl-safer-tests (Files): Likewise.
37509         * modules/fcntl-tests (Files): Likewise.
37510         * modules/fdopendir-tests (Files): Likewise.
37511         * modules/fdutimensat-tests (Files): Likewise.
37512         * modules/fflush-tests (Files): Likewise.
37513         * modules/filevercmp-tests (Files): Likewise.
37514         * modules/flock-tests (Files): Likewise.
37515         * modules/floorf-tests (Files): Likewise.
37516         * modules/floorl-tests (Files): Likewise.
37517         * modules/fnmatch-tests (Files): Likewise.
37518         * modules/fopen-safer-tests (Files): Likewise.
37519         * modules/fopen-tests (Files): Likewise.
37520         * modules/fpending-tests (Files): Likewise.
37521         * modules/fprintf-posix-tests (Files): Likewise.
37522         * modules/fpurge-tests (Files): Likewise.
37523         * modules/freadable-tests (Files): Likewise.
37524         * modules/freadahead-tests (Files): Likewise.
37525         * modules/freading-tests (Files): Likewise.
37526         * modules/freadptr-tests (Files): Likewise.
37527         * modules/freadseek-tests (Files): Likewise.
37528         * modules/freopen-tests (Files): Likewise.
37529         * modules/frexp-nolibm-tests (Files): Likewise.
37530         * modules/frexp-tests (Files): Likewise.
37531         * modules/frexpl-nolibm-tests (Files): Likewise.
37532         * modules/frexpl-tests (Files): Likewise.
37533         * modules/fseek-tests (Files): Likewise.
37534         * modules/fseeko-tests (Files): Likewise.
37535         * modules/fstrcmp-tests (Files): Likewise.
37536         * modules/fsync-tests (Files): Likewise.
37537         * modules/ftell-tests (Files): Likewise.
37538         * modules/ftello-tests (Files): Likewise.
37539         * modules/func-tests (Files): Likewise.
37540         * modules/futimens-tests (Files): Likewise.
37541         * modules/fwritable-tests (Files): Likewise.
37542         * modules/fwriting-tests (Files): Likewise.
37543         * modules/getcwd-tests (Files): Likewise.
37544         * modules/getdate-tests (Files): Likewise.
37545         * modules/getdelim-tests (Files): Likewise.
37546         * modules/getdtablesize-tests (Files): Likewise.
37547         * modules/getgroups-tests (Files): Likewise.
37548         * modules/getline-tests (Files): Likewise.
37549         * modules/getndelim2-tests (Files): Likewise.
37550         * modules/glob-tests (Files): Likewise.
37551         * modules/hash-tests (Files): Likewise.
37552         * modules/i-ring-tests (Files): Likewise.
37553         * modules/iconv-tests (Files): Likewise.
37554         * modules/iconv_open-utf-tests (Files): Likewise.
37555         * modules/idpriv-drop-tests (Files): Likewise.
37556         * modules/idpriv-droptemp-tests (Files): Likewise.
37557         * modules/inet_ntop-tests (Files): Likewise.
37558         * modules/inet_pton-tests (Files): Likewise.
37559         * modules/isblank-tests (Files): Likewise.
37560         * modules/isfinite-tests (Files): Likewise.
37561         * modules/isinf-tests (Files): Likewise.
37562         * modules/isnan-tests (Files): Likewise.
37563         * modules/isnand-nolibm-tests (Files): Likewise.
37564         * modules/isnand-tests (Files): Likewise.
37565         * modules/isnanf-nolibm-tests (Files): Likewise.
37566         * modules/isnanf-tests (Files): Likewise.
37567         * modules/isnanl-nolibm-tests (Files): Likewise.
37568         * modules/isnanl-tests (Files): Likewise.
37569         * modules/lchown-tests (Files): Likewise.
37570         * modules/ldexpl-tests (Files): Likewise.
37571         * modules/link-tests (Files): Likewise.
37572         * modules/linkat-tests (Files): Likewise.
37573         * modules/linked-list-tests (Files): Likewise.
37574         * modules/linkedhash-list-tests (Files): Likewise.
37575         * modules/localename-tests (Files): Likewise.
37576         * modules/lseek-tests (Files): Likewise.
37577         * modules/lstat-tests (Files): Likewise.
37578         * modules/mbmemcasecmp-tests (Files): Likewise.
37579         * modules/mbmemcasecoll-tests (Files): Likewise.
37580         * modules/mbrtowc-tests (Files): Likewise.
37581         * modules/mbscasecmp-tests (Files): Likewise.
37582         * modules/mbscasestr-tests (Files): Likewise.
37583         * modules/mbschr-tests (Files): Likewise.
37584         * modules/mbscspn-tests (Files): Likewise.
37585         * modules/mbsinit-tests (Files): Likewise.
37586         * modules/mbsncasecmp-tests (Files): Likewise.
37587         * modules/mbsnrtowcs-tests (Files): Likewise.
37588         * modules/mbspbrk-tests (Files): Likewise.
37589         * modules/mbspcasecmp-tests (Files): Likewise.
37590         * modules/mbsrchr-tests (Files): Likewise.
37591         * modules/mbsrtowcs-tests (Files): Likewise.
37592         * modules/mbsspn-tests (Files): Likewise.
37593         * modules/mbsstr-tests (Files): Likewise.
37594         * modules/memchr-tests (Files): Likewise.
37595         * modules/memchr2-tests (Files): Likewise.
37596         * modules/memcmp-tests (Files): Likewise.
37597         * modules/memmem-tests (Files): Likewise.
37598         * modules/memrchr-tests (Files): Likewise.
37599         * modules/mkdir-tests (Files): Likewise.
37600         * modules/mkfifo-tests (Files): Likewise.
37601         * modules/mkfifoat-tests (Files): Likewise.
37602         * modules/mknod-tests (Files): Likewise.
37603         * modules/nanosleep-tests (Files): Likewise.
37604         * modules/nl_langinfo-tests (Files): Likewise.
37605         * modules/obstack-printf-tests (Files): Likewise.
37606         * modules/open-tests (Files): Likewise.
37607         * modules/openat-tests (Files): Likewise.
37608         * modules/pipe-filter-gi-tests (Files): Likewise.
37609         * modules/pipe-filter-ii-tests (Files): Likewise.
37610         * modules/pipe2-tests (Files): Likewise.
37611         * modules/popen-safer-tests (Files): Likewise.
37612         * modules/popen-tests (Files): Likewise.
37613         * modules/posixtm-tests (Files): Likewise.
37614         * modules/pread-tests (Files): Likewise.
37615         * modules/printf-frexp-tests (Files): Likewise.
37616         * modules/printf-frexpl-tests (Files): Likewise.
37617         * modules/printf-posix-tests (Files): Likewise.
37618         * modules/priv-set-tests (Files): Likewise.
37619         * modules/quotearg-tests (Files): Likewise.
37620         * modules/random_r-tests (Files): Likewise.
37621         * modules/rawmemchr-tests (Files): Likewise.
37622         * modules/rbtree-list-tests (Files): Likewise.
37623         * modules/rbtree-oset-tests (Files): Likewise.
37624         * modules/rbtreehash-list-tests (Files): Likewise.
37625         * modules/readlink-tests (Files): Likewise.
37626         * modules/remove-tests (Files): Likewise.
37627         * modules/rename-tests (Files): Likewise.
37628         * modules/renameat-tests (Files): Likewise.
37629         * modules/rmdir-tests (Files): Likewise.
37630         * modules/round-tests (Files): Likewise.
37631         * modules/roundf-tests (Files): Likewise.
37632         * modules/roundl-tests (Files): Likewise.
37633         * modules/safe-alloc-tests (Files): Likewise.
37634         * modules/setenv-tests (Files): Likewise.
37635         * modules/sigaction-tests (Files): Likewise.
37636         * modules/signbit-tests (Files): Likewise.
37637         * modules/sleep-tests (Files): Likewise.
37638         * modules/snprintf-posix-tests (Files): Likewise.
37639         * modules/snprintf-tests (Files): Likewise.
37640         * modules/sprintf-posix-tests (Files): Likewise.
37641         * modules/stat-tests (Files): Likewise.
37642         * modules/stat-time-tests (Files): Likewise.
37643         * modules/strcasestr-tests (Files): Likewise.
37644         * modules/strchrnul-tests (Files): Likewise.
37645         * modules/strerror-tests (Files): Likewise.
37646         * modules/striconv-tests (Files): Likewise.
37647         * modules/striconveh-tests (Files): Likewise.
37648         * modules/striconveha-tests (Files): Likewise.
37649         * modules/strsignal-tests (Files): Likewise.
37650         * modules/strstr-tests (Files): Likewise.
37651         * modules/strtod-tests (Files): Likewise.
37652         * modules/strverscmp-tests (Files): Likewise.
37653         * modules/symlink-tests (Files): Likewise.
37654         * modules/symlinkat-tests (Files): Likewise.
37655         * modules/trunc-tests (Files): Likewise.
37656         * modules/truncf-tests (Files): Likewise.
37657         * modules/truncl-tests (Files): Likewise.
37658         * modules/uname-tests (Files): Likewise.
37659         * modules/unicase/cased-tests (Files): Likewise.
37660         * modules/unicase/ignorable-tests (Files): Likewise.
37661         * modules/unicase/locale-language-tests (Files): Likewise.
37662         * modules/unicase/tolower-tests (Files): Likewise.
37663         * modules/unicase/totitle-tests (Files): Likewise.
37664         * modules/unicase/toupper-tests (Files): Likewise.
37665         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37666         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37667         * modules/unicase/u8-casefold-tests (Files): Likewise.
37668         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37669         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37670         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37671         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37672         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37673         * modules/unicase/u8-tolower-tests (Files): Likewise.
37674         * modules/unicase/u8-totitle-tests (Files): Likewise.
37675         * modules/unicase/u8-toupper-tests (Files): Likewise.
37676         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37677         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37678         * modules/unicase/u16-casefold-tests (Files): Likewise.
37679         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37680         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37681         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37682         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37683         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37684         * modules/unicase/u16-tolower-tests (Files): Likewise.
37685         * modules/unicase/u16-totitle-tests (Files): Likewise.
37686         * modules/unicase/u16-toupper-tests (Files): Likewise.
37687         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37688         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37689         * modules/unicase/u32-casefold-tests (Files): Likewise.
37690         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37691         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37692         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37693         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37694         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37695         * modules/unicase/u32-tolower-tests (Files): Likewise.
37696         * modules/unicase/u32-totitle-tests (Files): Likewise.
37697         * modules/unicase/u32-toupper-tests (Files): Likewise.
37698         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37699         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37700         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37701         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37702         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37703         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37704         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37705         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37706         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37707         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37708         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37709         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37710         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37711         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37712         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37713         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37714         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37715         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37716         * modules/unictype/block-list-tests (Files): Likewise.
37717         * modules/unictype/block-of-tests (Files): Likewise.
37718         * modules/unictype/block-test-tests (Files): Likewise.
37719         * modules/unictype/category-C-tests (Files): Likewise.
37720         * modules/unictype/category-Cc-tests (Files): Likewise.
37721         * modules/unictype/category-Cf-tests (Files): Likewise.
37722         * modules/unictype/category-Cn-tests (Files): Likewise.
37723         * modules/unictype/category-Co-tests (Files): Likewise.
37724         * modules/unictype/category-Cs-tests (Files): Likewise.
37725         * modules/unictype/category-L-tests (Files): Likewise.
37726         * modules/unictype/category-Ll-tests (Files): Likewise.
37727         * modules/unictype/category-Lm-tests (Files): Likewise.
37728         * modules/unictype/category-Lo-tests (Files): Likewise.
37729         * modules/unictype/category-Lt-tests (Files): Likewise.
37730         * modules/unictype/category-Lu-tests (Files): Likewise.
37731         * modules/unictype/category-M-tests (Files): Likewise.
37732         * modules/unictype/category-Mc-tests (Files): Likewise.
37733         * modules/unictype/category-Me-tests (Files): Likewise.
37734         * modules/unictype/category-Mn-tests (Files): Likewise.
37735         * modules/unictype/category-N-tests (Files): Likewise.
37736         * modules/unictype/category-Nd-tests (Files): Likewise.
37737         * modules/unictype/category-Nl-tests (Files): Likewise.
37738         * modules/unictype/category-No-tests (Files): Likewise.
37739         * modules/unictype/category-P-tests (Files): Likewise.
37740         * modules/unictype/category-Pc-tests (Files): Likewise.
37741         * modules/unictype/category-Pd-tests (Files): Likewise.
37742         * modules/unictype/category-Pe-tests (Files): Likewise.
37743         * modules/unictype/category-Pf-tests (Files): Likewise.
37744         * modules/unictype/category-Pi-tests (Files): Likewise.
37745         * modules/unictype/category-Po-tests (Files): Likewise.
37746         * modules/unictype/category-Ps-tests (Files): Likewise.
37747         * modules/unictype/category-S-tests (Files): Likewise.
37748         * modules/unictype/category-Sc-tests (Files): Likewise.
37749         * modules/unictype/category-Sk-tests (Files): Likewise.
37750         * modules/unictype/category-Sm-tests (Files): Likewise.
37751         * modules/unictype/category-So-tests (Files): Likewise.
37752         * modules/unictype/category-Z-tests (Files): Likewise.
37753         * modules/unictype/category-Zl-tests (Files): Likewise.
37754         * modules/unictype/category-Zp-tests (Files): Likewise.
37755         * modules/unictype/category-Zs-tests (Files): Likewise.
37756         * modules/unictype/category-and-not-tests (Files): Likewise.
37757         * modules/unictype/category-and-tests (Files): Likewise.
37758         * modules/unictype/category-byname-tests (Files): Likewise.
37759         * modules/unictype/category-name-tests (Files): Likewise.
37760         * modules/unictype/category-none-tests (Files): Likewise.
37761         * modules/unictype/category-of-tests (Files): Likewise.
37762         * modules/unictype/category-or-tests (Files): Likewise.
37763         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37764         * modules/unictype/combining-class-tests (Files): Likewise.
37765         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37766         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37767         * modules/unictype/ctype-blank-tests (Files): Likewise.
37768         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37769         * modules/unictype/ctype-digit-tests (Files): Likewise.
37770         * modules/unictype/ctype-graph-tests (Files): Likewise.
37771         * modules/unictype/ctype-lower-tests (Files): Likewise.
37772         * modules/unictype/ctype-print-tests (Files): Likewise.
37773         * modules/unictype/ctype-punct-tests (Files): Likewise.
37774         * modules/unictype/ctype-space-tests (Files): Likewise.
37775         * modules/unictype/ctype-upper-tests (Files): Likewise.
37776         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37777         * modules/unictype/decimal-digit-tests (Files): Likewise.
37778         * modules/unictype/digit-tests (Files): Likewise.
37779         * modules/unictype/mirror-tests (Files): Likewise.
37780         * modules/unictype/numeric-tests (Files): Likewise.
37781         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37782         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37783         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37784         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37785         Likewise.
37786         * modules/unictype/property-bidi-block-separator-tests (Files):
37787         Likewise.
37788         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37789         Likewise.
37790         * modules/unictype/property-bidi-common-separator-tests (Files):
37791         Likewise.
37792         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37793         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37794         Likewise.
37795         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37796         Likewise.
37797         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37798         Likewise.
37799         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37800         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37801         Likewise.
37802         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37803         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37804         Likewise.
37805         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37806         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37807         * modules/unictype/property-bidi-segment-separator-tests (Files):
37808         Likewise.
37809         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37810         * modules/unictype/property-byname-tests (Files): Likewise.
37811         * modules/unictype/property-combining-tests (Files): Likewise.
37812         * modules/unictype/property-composite-tests (Files): Likewise.
37813         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37814         * modules/unictype/property-dash-tests (Files): Likewise.
37815         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37816         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37817         Likewise.
37818         * modules/unictype/property-deprecated-tests (Files): Likewise.
37819         * modules/unictype/property-diacritic-tests (Files): Likewise.
37820         * modules/unictype/property-extender-tests (Files): Likewise.
37821         * modules/unictype/property-format-control-tests (Files): Likewise.
37822         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
37823         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
37824         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
37825         * modules/unictype/property-hex-digit-tests (Files): Likewise.
37826         * modules/unictype/property-hyphen-tests (Files): Likewise.
37827         * modules/unictype/property-id-continue-tests (Files): Likewise.
37828         * modules/unictype/property-id-start-tests (Files): Likewise.
37829         * modules/unictype/property-ideographic-tests (Files): Likewise.
37830         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
37831         * modules/unictype/property-ids-trinary-operator-tests (Files):
37832         Likewise.
37833         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
37834         * modules/unictype/property-iso-control-tests (Files): Likewise.
37835         * modules/unictype/property-join-control-tests (Files): Likewise.
37836         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
37837         * modules/unictype/property-line-separator-tests (Files): Likewise.
37838         * modules/unictype/property-logical-order-exception-tests (Files):
37839         Likewise.
37840         * modules/unictype/property-lowercase-tests (Files): Likewise.
37841         * modules/unictype/property-math-tests (Files): Likewise.
37842         * modules/unictype/property-non-break-tests (Files): Likewise.
37843         * modules/unictype/property-not-a-character-tests (Files): Likewise.
37844         * modules/unictype/property-numeric-tests (Files): Likewise.
37845         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
37846         * modules/unictype/property-other-default-ignorable-code-point-tests
37847         (Files): Likewise.
37848         * modules/unictype/property-other-grapheme-extend-tests (Files):
37849         Likewise.
37850         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
37851         * modules/unictype/property-other-id-start-tests (Files): Likewise.
37852         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
37853         * modules/unictype/property-other-math-tests (Files): Likewise.
37854         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
37855         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
37856         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
37857         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
37858         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
37859         * modules/unictype/property-private-use-tests (Files): Likewise.
37860         * modules/unictype/property-punctuation-tests (Files): Likewise.
37861         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
37862         * modules/unictype/property-radical-tests (Files): Likewise.
37863         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
37864         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
37865         * modules/unictype/property-space-tests (Files): Likewise.
37866         * modules/unictype/property-terminal-punctuation-tests (Files):
37867         Likewise.
37868         * modules/unictype/property-test-tests (Files): Likewise.
37869         * modules/unictype/property-titlecase-tests (Files): Likewise.
37870         * modules/unictype/property-unassigned-code-value-tests (Files):
37871         Likewise.
37872         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
37873         * modules/unictype/property-uppercase-tests (Files): Likewise.
37874         * modules/unictype/property-variation-selector-tests (Files): Likewise.
37875         * modules/unictype/property-white-space-tests (Files): Likewise.
37876         * modules/unictype/property-xid-continue-tests (Files): Likewise.
37877         * modules/unictype/property-xid-start-tests (Files): Likewise.
37878         * modules/unictype/property-zero-width-tests (Files): Likewise.
37879         * modules/unictype/scripts-tests (Files): Likewise.
37880         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
37881         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
37882         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
37883         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
37884         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
37885         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
37886         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
37887         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
37888         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
37889         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
37890         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
37891         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
37892         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
37893         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
37894         * modules/uninorm/composition-tests (Files): Likewise.
37895         * modules/uninorm/decomposing-form-tests (Files): Likewise.
37896         * modules/uninorm/decomposition-tests (Files): Likewise.
37897         * modules/uninorm/filter-tests (Files): Likewise.
37898         * modules/uninorm/nfc-tests (Files): Likewise.
37899         * modules/uninorm/nfd-tests (Files): Likewise.
37900         * modules/uninorm/nfkc-tests (Files): Likewise.
37901         * modules/uninorm/nfkd-tests (Files): Likewise.
37902         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
37903         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
37904         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
37905         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
37906         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
37907         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
37908         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
37909         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
37910         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
37911         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
37912         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
37913         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
37914         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
37915         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
37916         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
37917         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
37918         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
37919         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
37920         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
37921         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
37922         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
37923         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
37924         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
37925         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
37926         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
37927         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
37928         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
37929         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
37930         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
37931         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
37932         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
37933         * modules/uniwidth/u8-width-tests (Files): Likewise.
37934         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
37935         * modules/uniwidth/u16-width-tests (Files): Likewise.
37936         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
37937         * modules/uniwidth/u32-width-tests (Files): Likewise.
37938         * modules/uniwidth/width-tests (Files): Likewise.
37939         * modules/unlink-tests (Files): Likewise.
37940         * modules/unsetenv-tests (Files): Likewise.
37941         * modules/usleep-tests (Files): Likewise.
37942         * modules/utimens-tests (Files): Likewise.
37943         * modules/utimensat-tests (Files): Likewise.
37944         * modules/vasnprintf-posix-tests (Files): Likewise.
37945         * modules/vasnprintf-tests (Files): Likewise.
37946         * modules/vasprintf-posix-tests (Files): Likewise.
37947         * modules/vasprintf-tests (Files): Likewise.
37948         * modules/vdprintf-posix-tests (Files): Likewise.
37949         * modules/vfprintf-posix-tests (Files): Likewise.
37950         * modules/vprintf-posix-tests (Files): Likewise.
37951         * modules/vsnprintf-posix-tests (Files): Likewise.
37952         * modules/vsnprintf-tests (Files): Likewise.
37953         * modules/vsprintf-posix-tests (Files): Likewise.
37954         * modules/wcrtomb-tests (Files): Likewise.
37955         * modules/wcsnrtombs-tests (Files): Likewise.
37956         * modules/wcsrtombs-tests (Files): Likewise.
37957         * modules/wctype-tests (Files): Likewise.
37958         * modules/wcwidth-tests (Files): Likewise.
37959         * modules/xmemdup0-tests (Files): Likewise.
37960         * modules/xprintf-posix-tests (Files): Likewise.
37961         * modules/xvasprintf-tests (Files): Likewise.
37962
37963 2009-12-24  Eric Blake  <ebb9@byu.net>
37964
37965         test-nanosleep: fix typo
37966         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37967         patch.
37968         Reported by Bruno Haible.
37969
37970 2009-12-24  Bruno Haible  <bruno@clisp.org>
37971
37972         Reduce namespace pollution on glibc systems.
37973         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37974         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37975         systems.
37976         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37977         <getopt.h> on glibc systems.
37978         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37979         systems.
37980         * lib/fcntl.c: Include <unistd.h> here instead.
37981
37982 2009-12-24  Bruno Haible  <bruno@clisp.org>
37983
37984         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37985
37986 2009-12-24  Eric Blake  <ebb9@byu.net>
37987
37988         tests: add signature checks
37989         * tests/signature.h (SIGNATURE_CHECK): New file.
37990         * modules/atexit-tests (Files): Use it.
37991         * modules/btowc-tests (Files): Likewise.
37992         * modules/canonicalize-lgpl-tests (Files): Likewise.
37993         * modules/ceilf-tests (Files): Likewise.
37994         * modules/ceill-tests (Files): Likewise.
37995         * modules/chown-tests (Files): Likewise.
37996         * modules/dprintf-posix-tests (Files): Likewise.
37997         * modules/dup2-tests (Files): Likewise.
37998         * modules/dup3-tests (Files): Likewise.
37999         * modules/duplocale-tests (Files): Likewise.
38000         * modules/fchdir-tests (Files): Likewise.
38001         * modules/fcntl-tests (Files): Likewise.
38002         * modules/fdopendir-tests (Files): Likewise.
38003         * modules/fflush-tests (Files): Likewise.
38004         * modules/flock-tests (Files): Likewise.
38005         * modules/floorf-tests (Files): Likewise.
38006         * modules/floorl-tests (Files): Likewise.
38007         * modules/fnmatch-tests (Files): Likewise.
38008         * modules/fopen-tests (Files): Likewise.
38009         * modules/fprintf-posix-tests (Files): Likewise.
38010         * modules/freopen-tests (Files): Likewise.
38011         * modules/frexp-nolibm-tests (Files): Likewise.
38012         * modules/frexp-tests (Files): Likewise.
38013         * modules/frexpl-nolibm-tests (Files): Likewise.
38014         * modules/frexpl-tests (Files): Likewise.
38015         * modules/fseek-tests (Files): Likewise.
38016         * modules/fseeko-tests (Files): Likewise.
38017         * modules/fsync-tests (Files): Likewise.
38018         * modules/ftell-tests (Files): Likewise.
38019         * modules/ftello-tests (Files): Likewise.
38020         * modules/futimens-tests (Files): Likewise.
38021         * modules/getaddrinfo-tests (Files): Likewise.
38022         * modules/getcwd-tests (Files): Likewise.
38023         * modules/getdelim-tests (Files): Likewise.
38024         * modules/getdtablesize-tests (Files): Likewise.
38025         * modules/getgroups-tests (Files): Likewise.
38026         * modules/gethostname-tests (Files): Likewise.
38027         * modules/getline-tests (Files): Likewise.
38028         * modules/getopt-posix-tests (Files): Likewise.
38029         * modules/gettimeofday-tests (Files): Likewise.
38030         * modules/glob-tests (Files): Likewise.
38031         * modules/iconv-tests (Files): Likewise.
38032         * modules/inet_ntop-tests (Files): Likewise.
38033         * modules/inet_pton-tests (Files): Likewise.
38034         * modules/isblank-tests (Files): Likewise.
38035         * modules/lchown-tests (Files): Likewise.
38036         * modules/ldexpl-tests (Files): Likewise.
38037         * modules/link-tests (Files): Likewise.
38038         * modules/linkat-tests (Files): Likewise.
38039         * modules/lseek-tests (Files): Likewise.
38040         * modules/lstat-tests (Files): Likewise.
38041         * modules/mbrtowc-tests (Files): Likewise.
38042         * modules/mbsinit-tests (Files): Likewise.
38043         * modules/mbsnrtowcs-tests (Files): Likewise.
38044         * modules/mbsrtowcs-tests (Files): Likewise.
38045         * modules/memchr-tests (Files): Likewise.
38046         * modules/memcmp-tests (Files): Likewise.
38047         * modules/memmem-tests (Files): Likewise.
38048         * modules/memrchr-tests (Files): Likewise.
38049         * modules/mkdir-tests (Files): Likewise.
38050         * modules/mkfifo-tests (Files): Likewise.
38051         * modules/mkfifoat-tests (Files): Likewise.
38052         * modules/mknod-tests (Files): Likewise.
38053         * modules/nanosleep-tests (Files): Likewise.
38054         * modules/nl_langinfo-tests (Files): Likewise.
38055         * modules/obstack-printf-tests (Files): Likewise.
38056         * modules/open-tests (Files): Likewise.
38057         * modules/openat-tests (Files): Likewise.
38058         * modules/perror-tests (Files): Likewise.
38059         * modules/pipe2-tests (Files): Likewise.
38060         * modules/poll-tests (Files): Likewise.
38061         * modules/popen-tests (Files): Likewise.
38062         * modules/posix_spawn-tests (Files): Likewise.
38063         * modules/posix_spawnp-tests (Files): Likewise.
38064         * modules/pread-tests (Files): Likewise.
38065         * modules/printf-posix-tests (Files): Likewise.
38066         * modules/pty-tests (Files): Likewise.
38067         * modules/random_r-tests (Files): Likewise.
38068         * modules/rawmemchr-tests (Files): Likewise.
38069         * modules/readlink-tests (Files): Likewise.
38070         * modules/remove-tests (Files): Likewise.
38071         * modules/rename-tests (Files): Likewise.
38072         * modules/renameat-tests (Files): Likewise.
38073         * modules/rmdir-tests (Files): Likewise.
38074         * modules/round-tests (Files): Likewise.
38075         * modules/roundf-tests (Files): Likewise.
38076         * modules/roundl-tests (Files): Likewise.
38077         * modules/select-tests (Files): Likewise.
38078         * modules/setenv-tests (Files): Likewise.
38079         * modules/sigaction-tests (Files): Likewise.
38080         * modules/sleep-tests (Files): Likewise.
38081         * modules/snprintf-posix-tests (Files): Likewise.
38082         * modules/snprintf-tests (Files): Likewise.
38083         * modules/sprintf-posix-tests (Files): Likewise.
38084         * modules/stat-tests (Files): Likewise.
38085         * modules/strcasestr-tests (Files): Likewise.
38086         * modules/strchrnul-tests (Files): Likewise.
38087         * modules/strerror-tests (Files): Likewise.
38088         * modules/strsignal-tests (Files): Likewise.
38089         * modules/strstr-tests (Files): Likewise.
38090         * modules/strtod-tests (Files): Likewise.
38091         * modules/strverscmp-tests (Files): Likewise.
38092         * modules/symlink-tests (Files): Likewise.
38093         * modules/symlinkat-tests (Files): Likewise.
38094         * modules/times-tests (Files): Likewise.
38095         * modules/trunc-tests (Files): Likewise.
38096         * modules/truncf-tests (Files): Likewise.
38097         * modules/truncl-tests (Files): Likewise.
38098         * modules/tsearch-tests (Files): Likewise.
38099         * modules/uname-tests (Files): Likewise.
38100         * modules/unlink-tests (Files): Likewise.
38101         * modules/unsetenv-tests (Files): Likewise.
38102         * modules/usleep-tests (Files): Likewise.
38103         * modules/utimensat-tests (Files): Likewise.
38104         * modules/vasprintf-tests (Files): Likewise.
38105         * modules/vdprintf-posix-tests (Files): Likewise.
38106         * modules/vfprintf-posix-tests (Files): Likewise.
38107         * modules/vprintf-posix-tests (Files): Likewise.
38108         * modules/vsnprintf-posix-tests (Files): Likewise.
38109         * modules/vsnprintf-tests (Files): Likewise.
38110         * modules/vsprintf-posix-tests (Files): Likewise.
38111         * modules/wcrtomb-tests (Files): Likewise.
38112         * modules/wcsnrtombs-tests (Files): Likewise.
38113         * modules/wcsrtombs-tests (Files): Likewise.
38114         * modules/wcwidth-tests (Files): Likewise.
38115         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38116         * tests/test-isinf.c (isinf): Likewise.
38117         * tests/test-isnan.c (isnan): Likewise.
38118         * tests/test-signbit.c (signbit): Likewise.
38119         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38120         declaration, either as macro or with correct signature.
38121         (select): Ensure function under test is declared with correct
38122         signature in correct header.
38123         * tests/test-atexit.c (atexit): Likewise.
38124         * tests/test-btowc.c (btowc): Likewise.
38125         * tests/test-canonicalize-lgpl.c (realpath)
38126         (canonicalize_file_name): Likewise.
38127         * tests/test-ceilf1.c (ceilf): Likewise.
38128         * tests/test-ceill.c (ceill): Likewise.
38129         * tests/test-chown.c (chown): Likewise.
38130         * tests/test-dprintf-posix.c (dprintf): Likewise.
38131         * tests/test-dup2.c (dup2): Likewise.
38132         * tests/test-dup3.c (dup3): Likewise.
38133         * tests/test-duplocale.c (duplocale): Likewise.
38134         * tests/test-fchdir.c (fchdir): Likewise.
38135         * tests/test-fchownat.c (fchownat): Likewise.
38136         * tests/test-fcntl.c (fcntl): Likewise.
38137         * tests/test-fdopendir.c (fdopendir): Likewise.
38138         * tests/test-fflush.c (fflush): Likewise.
38139         * tests/test-flock.c (flock): Likewise.
38140         * tests/test-floorf1.c (floorf): Likewise.
38141         * tests/test-floorl.c (floorl): Likewise.
38142         * tests/test-fnmatch.c (fnmatch): Likewise.
38143         * tests/test-fopen.c (fopen): Likewise.
38144         * tests/test-fprintf-posix.c (fprintf): Likewise.
38145         * tests/test-freopen.c (freopen): Likewise.
38146         * tests/test-frexp.c (frexp): Likewise.
38147         * tests/test-frexpl.c (frexpl): Likewise.
38148         * tests/test-fseek.c (fseek): Likewise.
38149         * tests/test-fseeko.c (fseeko): Likewise.
38150         * tests/test-fstatat.c (fstatat): Likewise.
38151         * tests/test-fsync.c (fsync): Likewise.
38152         * tests/test-ftell.c (ftell): Likewise.
38153         * tests/test-ftello.c (ftello): Likewise.
38154         * tests/test-futimens.c (futimens): Likewise.
38155         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38156         (gai_strerror): Likewise.
38157         * tests/test-getcwd.c (getcwd): Likewise.
38158         * tests/test-getdelim.c (getdelim): Likewise.
38159         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38160         * tests/test-getgroups.c (getgroups): Likewise.
38161         * tests/test-gethostname.c (gethostname): Likewise.
38162         * tests/test-getline.c (getline): Likewise.
38163         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38164         Likewise.
38165         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38166         * tests/test-glob.c (glob, globfree): Likewise.
38167         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38168         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38169         * tests/test-inet_pton.c (inet_pton): Likewise.
38170         * tests/test-isblank.c (isblank): Likewise.
38171         * tests/test-lchown.c (lchown): Likewise.
38172         * tests/test-ldexpl.c (ldexpl): Likewise.
38173         * tests/test-link.c (link): Likewise.
38174         * tests/test-linkat.c (linkat): Likewise.
38175         * tests/test-lseek.c (lseek): Likewise.
38176         * tests/test-lstat.c (lstat): Likewise.
38177         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38178         * tests/test-mbsinit.c (mbsinit): Likewise.
38179         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38180         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38181         * tests/test-memchr.c (memchr): Likewise.
38182         * tests/test-memcmp.c (memcmp): Likewise.
38183         * tests/test-memmem.c (memmem): Likewise.
38184         * tests/test-memrchr.c (memrchr): Likewise.
38185         * tests/test-mkdir.c (mkdir): Likewise.
38186         * tests/test-mkdirat.c (mkdirat): Likewise.
38187         * tests/test-mkfifo.c (mkfifo): Likewise.
38188         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38189         * tests/test-mknod.c (mknod): Likewise.
38190         * tests/test-nanosleep.c (nanosleep): Likewise.
38191         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38192         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38193         Likewise.
38194         * tests/test-open.c (open): Likewise.
38195         * tests/test-openat.c (openat): Likewise.
38196         * tests/test-perror.c (perror): Likewise.
38197         * tests/test-pipe2.c (pipe2): Likewise.
38198         * tests/test-poll.c (poll): Likewise.
38199         * tests/test-popen.c (popen, pclose): Likewise.
38200         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38201         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38202         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38203         (posix_spawn_file_actions_destroy)
38204         (posix_spawn_file_actions_addclose)
38205         (posix_spawn_file_actions_addopen)
38206         (posix_spawn_file_actions_adddup2): Likewise.
38207         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38208         * tests/test-pread.c (pread): Likewise.
38209         * tests/test-printf-posix.c (printf): Likewise.
38210         * tests/test-pty.c (openpty, forkpty): Likewise.
38211         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38212         (random_r): Likewise.
38213         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38214         * tests/test-readlink.c (readlink): Likewise.
38215         * tests/test-remove.c (remove): Likewise.
38216         * tests/test-rename.c (rename): Likewise.
38217         * tests/test-renameat.c (renameat): Likewise.
38218         * tests/test-rmdir.c (rmdir): Likewise.
38219         * tests/test-round1.c (round): Likewise.
38220         * tests/test-roundf1.c (roundf): Likewise.
38221         * tests/test-roundl.c (roundl): Likewise.
38222         * tests/test-setenv.c (setenv): Likewise.
38223         * tests/test-sigaction.c (sigaction): Likewise.
38224         * tests/test-sleep.c (sleep): Likewise.
38225         * tests/test-snprintf.c (snprintf): Likewise.
38226         * tests/test-sprintf-posix.c (sprintf): Likewise.
38227         * tests/test-stat.c (stat): Likewise.
38228         * tests/test-stpncpy.c (stpncpy): Likewise.
38229         * tests/test-strcasestr.c (strcasestr): Likewise.
38230         * tests/test-strchrnul.c (strchrnul): Likewise.
38231         * tests/test-strerror.c (strerror): Likewise.
38232         * tests/test-strsignal.c (strsignal): Likewise.
38233         * tests/test-strstr.c (strstr): Likewise.
38234         * tests/test-strtod.c (strtod): Likewise.
38235         * tests/test-strverscmp.c (strverscmp): Likewise.
38236         * tests/test-symlink.c (symlink): Likewise.
38237         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38238         * tests/test-times.c (times): Likewise.
38239         * tests/test-trunc1.c (trunc): Likewise.
38240         * tests/test-truncf1.c (truncf): Likewise.
38241         * tests/test-truncl.c (truncl): Likewise.
38242         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38243         Likewise.
38244         * tests/test-uname.c (uname): Likewise.
38245         * tests/test-unlink.c (unlink): Likewise.
38246         * tests/test-unlinkat.c (unlinkat): Likewise.
38247         * tests/test-unsetenv.c (unsetenv): Likewise.
38248         * tests/test-usleep.c (usleep): Likewise.
38249         * tests/test-utimensat.c (utimensat): Likewise.
38250         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38251         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38252         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38253         * tests/test-vprintf-posix.c (vprintf): Likewise.
38254         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38255         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38256         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38257         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38258         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38259         * tests/test-wcwidth.c (wcwidth): Likewise.
38260
38261         build: pull in conditional headers during GNULIB_POSIXCHECK
38262         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38263         definitions from any conditionally-included headers.
38264         * lib/stdlib.in.h (includes): Likewise.
38265         * lib/unistd.in.h (includes): Likewise.
38266
38267 2009-12-24  Bruno Haible  <bruno@clisp.org>
38268
38269         * tests/test-argv-iter.c: Include header file being tested immediately
38270         after config.h.
38271         * tests/test-base64.c: Likewise.
38272         * tests/test-flock.c: Likewise.
38273         * tests/test-fsync.c: Likewise.
38274         * tests/test-getdate.c: Likewise.
38275         * tests/test-getndelim2.c: Likewise.
38276         * tests/test-isfinite.c: Likewise.
38277         * tests/test-isinf.c: Likewise.
38278         * tests/test-strerror.c: Likewise.
38279         * tests/test-strsignal.c: Likewise.
38280
38281 2009-12-23  Eric Blake  <ebb9@byu.net>
38282
38283         unistd: work around cygwin bug
38284         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38285         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38286         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38287
38288 2009-12-23  Bruno Haible  <bruno@clisp.org>
38289
38290         localename: More tests.
38291         * tests/test-localename.c (SIZEOF): New macro.
38292         (categories): New variable.
38293         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38294         test_locale_name_default): Add test w.r.t. thread locale.
38295         (test_locale_name_thread): New function.
38296         (main): Invoke it.
38297
38298         localename: Make aware of thread locale.
38299         * lib/localename.h (gl_locale_name_thread): New declaration.
38300         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38301         behaviour with respect to thread locale.
38302         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38303         <langinfo.h>, glthread/lock.h.
38304         (SIZE_BITS): New macro.
38305         (string_hash): New function.
38306         (struct hash_node): New type.
38307         (HASH_TABLE_SIZE): New macro.
38308         (struniq_hash_table, struniq_lock): New variables.
38309         (struniq): New function.
38310         (gl_locale_name_thread): New function.
38311         (gl_locale_name): Invoke it.
38312         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38313         * modules/localename (Depends-on): Add lock.
38314         Reported by Mike Gran <spk121@yahoo.com>.
38315
38316 2009-12-23  Eric Blake  <ebb9@byu.net>
38317
38318         va-args: new module
38319         * modules/va-args: New file.
38320         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38321         * MODULES.html.sh (Core language properties): Mention it.
38322
38323         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38324         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38325         named alias for __attribute__((__unused__)).
38326         * lib/chown.c: Update client.
38327         * lib/fchmodat.c: Likewise.
38328         * lib/fts.c: Likewise.
38329         * lib/getdate.y: Likewise.
38330         * lib/getgroups.c: Likewise.
38331         * lib/getopt.c: Likewise.
38332         * lib/getugroups.c: Likewise.
38333         * lib/mkdir.c: Likewise.
38334         * lib/mkfifo.c: Likewise.
38335         * lib/mkfifoat.c: Likewise.
38336         * lib/mknod.c: Likewise.
38337         * lib/mknodat.c: Likewise.
38338         * lib/readlink.c: Likewise.
38339         * lib/se-context.in.h: Likewise.
38340         * lib/se-selinux.in.h: Likewise.
38341         * lib/sockets.c: Likewise.
38342         * lib/symlink.c: Likewise.
38343         * lib/symlinkat.c: Likewise.
38344         * lib/unicodeio.c: Likewise.
38345         * lib/unistr.h: Likewise.
38346         * tests/test-areadlink.c: Likewise.
38347         * tests/test-areadlinkat.c: Likewise.
38348         * tests/test-filenamecat.c: Likewise.
38349         * tests/test-fseeko.c: Likewise.
38350         * tests/test-ftello.c: Likewise.
38351         * tests/test-getdate.c: Likewise.
38352         * tests/test-getgroups.c: Likewise.
38353         * tests/test-gethostname.c: Likewise.
38354         * tests/test-quotearg.c: Likewise.
38355         * tests/test-version-etc.c: Likewise.
38356         * tests/test-xalloc-die.c: Likewise.
38357         * tests/test-xfprintf-posix.c: Likewise.
38358         * tests/test-xprintf-posix.c: Likewise.
38359         * tests/test-xvasprintf.c: Likewise.
38360
38361         tests: avoid compiler warnings
38362         * tests/test-fcntl.c (main): Delete unused parameters.
38363         * tests/test-freopen-safer.c (main): Likewise.
38364         * tests/test-xalloc-die.c (main): Mark unused parameters.
38365         * tests/test-fseeko.c (main): Likewise.
38366         * tests/test-ftello.c (main): Likewise.
38367         * tests/test-nanosleep.c (main): Avoid declaration warning.
38368         * tests/test-sleep.c (main): Likewise.
38369         * tests/test-unsetenv.c (main): Silence warning about string
38370         literal.
38371         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38372
38373 2009-12-23  Bruno Haible  <bruno@clisp.org>
38374
38375         * tests/test-localename.c (test_locale_name): New function, extracted
38376         from main. Also test mixed situations.
38377         (test_locale_name_posix, test_locale_name_environ,
38378         test_locale_name_default): New functions.
38379         (main): Invoke them all.
38380         * modules/localename-tests (configure.ac): Test for newlocale.
38381
38382 2009-12-23  Bruno Haible  <bruno@clisp.org>
38383
38384         unistd: Ensure getcwd gets declared before being overridden.
38385         * lib/unistd.in.h: Conditionally include <io.h>.
38386
38387 2009-12-22  Bruno Haible  <bruno@clisp.org>
38388
38389         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38390         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38391         (gl_WCHAR_H): Invoke it.
38392         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38393         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38394         Reported by Karl Berry <karl@freefriends.org>.
38395
38396 2009-12-22  Eric Blake  <ebb9@byu.net>
38397
38398         math, unistd: avoid redundant includes
38399         * lib/math.in.h (isnan): No need to re-include <math.h>.
38400         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38401
38402         getsubopt: work around cygwin bug
38403         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38404         avoid conflicting with system getsubopt.
38405         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38406         bug.
38407
38408         getopt: synchronize from glibc
38409         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38410         parameter order.  Adjust all callers.
38411         (_getopt_internal_r, main): Adjust quoting in error messages.
38412         Drop considerations for outdated POSIX 1003.2 error message.
38413         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38414         callers.
38415         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38416
38417         test-getopt: test stderr behavior
38418         * modules/getopt-posix-tests (Depends-on): Add dup2.
38419         * tests/test-getopt.c (ASSERT): Avoid stderr.
38420         (main): Move stderr to a temporary file.
38421         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38422         Instead, add parameter to inform caller if output occurred.
38423         (test_getopt): Adjust all existing tests to expect silence, and
38424         add new tests of leading ":".
38425         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38426         glibc shortcomings with leading "-:" or "+:" in optstring.
38427         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38428         Likewise.
38429         * doc/posix-functions/getopt.texi (getopt): Likewise.
38430
38431         test-getopt: enhance test
38432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38433         supports optind=0.
38434         * tests/test-getopt.c (OPTIND_MIN): Move...
38435         * tests/test-getopt.h (OPTIND_MIN): ...here.
38436         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38437         Require that optind=0 works, since modern BSD supports it in
38438         addition to optreset, and since coreutils expects it.
38439         (test_getopt_long_only): New test.
38440         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38441         glibc shortcomings with 'W;', and enforcement of optind=0.
38442         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38443         Likewise.
38444
38445 2009-12-21  Bruno Haible  <bruno@clisp.org>
38446
38447         localename: Improvements for MacOS X and Cygwin.
38448         * lib/localename.h (gl_locale_name_environ): New declaration.
38449         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38450         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38451         (gl_locale_name_posix): Invoke it.
38452         (gl_locale_name_default): Add comments. Use Windows native API also on
38453         Cygwin.
38454
38455 2009-12-21  Bruno Haible  <bruno@clisp.org>
38456
38457         Update list of Win32 locale ids.
38458         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38459         (LANG_SAMI): Renamed from LANG_SAAMI.
38460         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38461         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38462         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38463         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38464         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38465         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38466         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38467         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38468         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38469         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38470         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38471         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38472         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38473         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38474         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38475         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38476         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38477         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38478         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38479         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38480         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38481         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38482         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38483         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38484         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38485         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38486         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38487         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38488         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38489         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38490         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38491         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38492         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38493         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38494         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38495         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38496         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38497         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38498         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38499         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38500         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38501         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38502         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38503         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38504         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38505         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38506         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38507         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38508         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38509         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38510         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38511         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38512         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38513         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38514         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38515         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38516         Add more languages and countries for Sami, Sorbian. Add more countries
38517         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38518         for Pashto. Change country for Syriac, Tswana.
38519
38520 2009-12-21  Eric Blake  <ebb9@byu.net>
38521
38522         test-utimens: avoid spurious failure
38523         * tests/test-chown.h (nap): Factor...
38524         * tests/nap.h: ...into new file.
38525         * tests/test-lchown.h (nap): Avoid duplication.
38526         * tests/test-utimens-common.h (nap): Use shared implementation,
38527         necessary on file systems with 1-second resolution.
38528         * modules/chown-tests (Files): Include new file.
38529         * modules/fdutimensat-tests (Files): Likewise.
38530         * modules/futimens-tests (Files): Likewise.
38531         * modules/lchown-tests (Files): Likewise.
38532         * modules/openat-tests (Files): Likewise.
38533         * modules/utimens-tests (Files): Likewise.
38534         * modules/utimensat-tests (Files): Likewise.
38535
38536 2009-12-19  Eric Blake  <ebb9@byu.net>
38537
38538         futimens, utimensat: work around Linux bug
38539         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38540         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38541         * lib/utimensat.c (rpl_utimensat): Work around it.
38542         * lib/futimens.c (rpl_futimens): Adjust comment.
38543
38544         utimens: work around Linux ctime bug
38545         * lib/utimens.c (detect_ctime_bug): New helper function.
38546         (update_timespec): Differentiate between workaround needed for
38547         this bug vs. what is needed for systems that lack utimensat.
38548         (fdutimens, lutimens): Work around bug.
38549
38550         utimens: check for ctime update
38551         * tests/test-utimens-common.h (check_ctime): Define.
38552         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38553         * tests/test-futimens.h (test_futimens): Likewise.
38554         * tests/test-lutimens.h (test_lutimens): Likewise.
38555         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38556         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38557
38558 2009-12-19  Bruno Haible  <bruno@clisp.org>
38559
38560         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38561         * tests/test-dprintf-posix2.sh: New file.
38562         * tests/test-dprintf-posix2.c: New file.
38563         * modules/dprintf-posix-tests (Files): Add them.
38564         (configure.ac): Check for getrlimit and setrlimit.
38565         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38566
38567 2009-12-19  Bruno Haible  <bruno@clisp.org>
38568
38569         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38570         * tests/test-fprintf-posix3.sh: New file.
38571         * tests/test-fprintf-posix3.c: New file.
38572         * modules/fprintf-posix-tests (Files): Add them.
38573         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38574
38575 2009-12-19  Eric Blake  <ebb9@byu.net>
38576
38577         dirfd: fix prototype
38578         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38579         * lib/dirfd.c (dirfd): Likewise.
38580
38581         canonicalize: reduce memory usage
38582         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38583         allocation to size.
38584         Reported by Solar Designer <solar@openwall.com>.
38585
38586 2009-12-19  Bruno Haible  <bruno@clisp.org>
38587
38588         New module attribute 'Applicability'.
38589         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38590         * gnulib-tool: New option --extract-applicability.
38591         (func_usage): Document it.
38592         (sed_extract_prog): Recognize it.
38593         (func_get_applicability): New function.
38594         (func_import): Generalize handling of 'link-warning' module.
38595         * modules/link-warning (Applicability): New section.
38596         * modules/arg-nonnull (Applicability): New section.
38597         Repoted by Simon Josefsson <simon@josefsson.org>.
38598
38599 2009-12-19  Bruno Haible  <bruno@clisp.org>
38600
38601         fflush: tweak
38602         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38603         * lib/fseeko.c (rpl_fseeko): Likewise.
38604
38605 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38606
38607         * lib/gl_list.h: Fix typo in comment.
38608
38609 2009-12-16  Eric Blake  <ebb9@byu.net>
38610
38611         fcntl: use to simplify other modules
38612         * modules/cloexec (Depends-on): Add fcntl.
38613         * modules/fchdir (Depends-on): Likewise.
38614         * modules/fd-safer-flag (Depends-on): Likewise.
38615         * modules/unistd-safer (Depends-on): Likewise.
38616         * modules/dup3 (configure.ac): Set module indicator.
38617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38618         missing.
38619         * lib/fchdir.c (_gl_register_dup): Fix comment.
38620         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38621         * lib/dup-safer.c (dup_safer): Likewise.
38622         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38623         * lib/dup3.c (dup3): Likewise.
38624         * tests/test-fchdir.c (main): Enhance test.
38625         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38626
38627         fcntl: port portions of fcntl to mingw
38628         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38629         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38630         replacement for mingw.
38631         * modules/fcntl (Description): Update.
38632         (Depends-on): Add dup2.
38633         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38634         * modules/fcntl-h (Makefile.am): Substitute it.
38635         * lib/fcntl.in.h (fcntl): Update declaration.
38636         (F_DUPFD, F_GETFD): New macros, when needed.
38637         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38638         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38639         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38640         we now guarantee.
38641
38642         fcntl: work around cygwin bug in F_DUPFD
38643         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38644         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38645         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38646         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38647         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38648
38649         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38650         * modules/fcntl (Files): List new files.
38651         (configure.ac): Run a test.
38652         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38653         * lib/fcntl.c (rpl_fcntl): Likewise.
38654         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38655         (gl_FCNTL_H): Always replace fcntl.h.
38656         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38657         * lib/fcntl.in.h (fcntl): Declare replacement.
38658         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38659         needed, plus a witness.
38660         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38661         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38662         * tests/test-fcntl.c: New file.
38663         * modules/fcntl-tests: Likewise.
38664
38665         binary-io: avoid potential compilation warning
38666         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38667         directives.
38668
38669         fflush: avoid compilation error on NetBSD
38670         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38671         between off_t and fpos_t, since the latter is sometimes a struct.
38672         * lib/fseeko.c (rpl_fseeko): Likewise.
38673         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38674
38675 2009-12-15  Eric Blake  <ebb9@byu.net>
38676
38677         fcntl-h, stdio, sys_ioctl: fix declarations
38678         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38679         function must not take arguments.
38680         * lib/sys_ioctl.in.h (ioctl): Likewise.
38681         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38682         (open): Add a link warning.
38683
38684 2009-12-15  Jim Meyering  <meyering@redhat.com>
38685
38686         areadlink, areadlink-with-size: relax license to LGPLv2+
38687         * modules/areadlink (License): Relax to LGPLv2+.
38688         * modules/areadlink-with-size (License): Likewise.
38689
38690 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38691             Bruno Haible  <bruno@clisp.org>
38692
38693         *printf: Fix memory leak.
38694         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38695         * lib/vfprintf.c (vfprintf): Likewise.
38696         * lib/dprintf.c (dprintf): Likewise.
38697         * lib/vdprintf.c (vdprintf): Likewise.
38698
38699 2009-12-14  Eric Blake  <ebb9@byu.net>
38700
38701         accept4: adjust module dependencies
38702         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38703
38704         utimens: one more try at avoiding compiler warning
38705         * lib/utimens.c (lutimens): Lower scope of result.
38706
38707 2009-12-13  Bruno Haible  <bruno@clisp.org>
38708
38709         Move the malloc checking from module 'list' to new module 'xlist'.
38710         * modules/xlist: New file.
38711         * lib/gl_xlist.h: New file.
38712         * lib/gl_xlist.c: New file.
38713         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38714         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38715         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38716         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38717         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38718         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38719         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38720         gl_sortedlist_nx_add): New declarations.
38721         (struct gl_list_implementation): Rename and change methods accordingly.
38722         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38723         (gl_list_nx_create): Renamed from gl_list_create.
38724         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38725         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38726         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38727         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38728         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38729         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38730         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38731         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38732         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38733         gl_list_create_empty.
38734         (gl_list_nx_create): Renamed from gl_list_create.
38735         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38736         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38737         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38738         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38739         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38740         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38741         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38742         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38743         * lib/gl_array_list.c: Don't include xalloc.h.
38744         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38745         NULL upon out-of-memory.
38746         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38747         out-of-memory.
38748         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38749         Change return type to 'int'.
38750         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38751         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38752         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38753         upon out-of-memory.
38754         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38755         upon out-of-memory.
38756         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38757         upon out-of-memory.
38758         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38759         upon out-of-memory.
38760         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38761         out-of-memory.
38762         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38763         Update.
38764         (gl_array_list_implementation): Update.
38765         * lib/gl_carray_list.c: Don't include xalloc.h.
38766         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38767         Return NULL upon out-of-memory.
38768         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38769         out-of-memory.
38770         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38771         Change return type to 'int'.
38772         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38773         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38774         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38775         upon out-of-memory.
38776         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38777         upon out-of-memory.
38778         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38779         out-of-memory.
38780         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38781         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38782         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38783         Update.
38784         (gl_carray_list_implementation): Update.
38785         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38786         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38787         gl_linked_create_empty. Return NULL upon out-of-memory.
38788         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38789         out-of-memory.
38790         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38791         Change return type to 'int'. Return -1 upon out-of-memory.
38792         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38793         out-of-memory.
38794         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38795         upon out-of-memory.
38796         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38797         upon out-of-memory.
38798         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38799         NULL upon out-of-memory.
38800         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38801         upon out-of-memory.
38802         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38803         out-of-memory.
38804         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38805         Update.
38806         * lib/gl_linked_list.c: Don't include xalloc.h.
38807         (gl_linked_list_implementation): Update.
38808         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38809         (add_to_bucket): Change return type to 'int'.
38810         (gl_linkedhash_list_implementation): Update.
38811         * lib/gl_anytree_list1.h (free_subtree): New function.
38812         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38813         gl_tree_create_empty. Return NULL upon out-of-memory.
38814         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38815         Change return type to 'int'. Return -1 upon out-of-memory.
38816         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38817         out-of-memory.
38818         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
38819         (gl_tree_remove_node): New function, moved here from
38820         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
38821         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
38822         Update.
38823         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
38824         malloc, not xmalloc. Return NULL upon out-of-memory.
38825         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38826         out-of-memory.
38827         (gl_tree_remove_node_from_tree): New function, extracted from
38828         gl_tree_remove_node.
38829         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38830         upon out-of-memory.
38831         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38832         out-of-memory.
38833         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38834         upon out-of-memory.
38835         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38836         upon out-of-memory.
38837         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38838         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
38839         not xmalloc. Return NULL upon out-of-memory.
38840         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
38841         out-of-memory.
38842         (gl_tree_remove_node_from_tree): New function, extracted from
38843         gl_tree_remove_node.
38844         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
38845         upon out-of-memory.
38846         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
38847         out-of-memory.
38848         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
38849         upon out-of-memory.
38850         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
38851         upon out-of-memory.
38852         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
38853         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
38854         gl_anytree_list1.h before gl_anyavltree_list2.h.
38855         (gl_avltree_list_implementation): Update.
38856         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
38857         gl_anytree_list1.h before gl_anyavltree_list2.h.
38858         (gl_rbtree_list_implementation): Update.
38859         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
38860         Change return type to 'int'. Return -1 upon out-of-memory. Use
38861         __builtin_expect.
38862         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
38863         (gl_avltreehash_list_implementation): Update.
38864         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
38865         (gl_rbtreehash_list_implementation): Update.
38866         * modules/array-list (Depends-on): Remove xalloc.
38867         * modules/carray-list (Depends-on): Likewise.
38868         * modules/linked-list (Depends-on): Likewise.
38869         * modules/linkedhash-list (Depends-on): Likewise.
38870         * modules/avltree-list (Depends-on): Likewise.
38871         * modules/rbtree-list (Depends-on): Likewise.
38872         * modules/avltreehash-list (Depends-on): Likewise.
38873         * modules/rbtreehash-list (Depends-on): Likewise.
38874
38875         * modules/xsublist: New file.
38876         * lib/gl_xsublist.h: New file.
38877         * lib/gl_xsublist.c: New file.
38878         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
38879         (gl_sublist_nx_create): New declaration.
38880         * lib/gl_sublist.c: Don't include xalloc.h.
38881         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
38882         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
38883         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
38884         Change return type to 'int'. Return -1 upon out-of-memory.
38885         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
38886         upon out-of-memory.
38887         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
38888         NULL upon out-of-memory.
38889         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
38890         upon out-of-memory.
38891         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
38892         NULL upon out-of-memory.
38893         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
38894         NULL upon out-of-memory.
38895         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
38896         upon out-of-memory.
38897         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
38898         (gl_sublist_list_implementation): Update.
38899         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
38900         upon out-of-memory.
38901         * modules/sublist (Depends-on): Remove xalloc.
38902
38903         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
38904         * tests/test-carray_list.c: Likewise.
38905         * tests/test-linked_list.c: Likewise.
38906         * tests/test-linkedhash_list.c: Likewise.
38907         * tests/test-avltree_list.c: Likewise.
38908         * tests/test-rbtree_list.c: Likewise.
38909         * tests/test-avltreehash_list.c: Likewise.
38910         * tests/test-rbtreehash_list.c: Likewise.
38911         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
38912         * modules/carray-list-tests (Makefile.am): Likewise.
38913         * modules/linked-list-tests (Makefile.am): Likewise.
38914         * modules/linkedhash-list-tests (Makefile.am): Likewise.
38915         * modules/avltree-list-tests (Makefile.am): Likewise.
38916         * modules/rbtree-list-tests (Makefile.am): Likewise.
38917         * modules/avltreehash-list-tests (Makefile.am): Likewise.
38918         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
38919
38920         * NEWS: Mention the changes.
38921
38922         * lib/clean-temp.c: Include gl_xlist.h.
38923         * modules/clean-temp (Depends-on): Add xlist.
38924
38925         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
38926         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
38927
38928         * tests/test-array_oset.c: Include gl_xlist.h.
38929         * modules/array-oset-tests (Depends-on): Add xlist.
38930
38931         Reported by José E. Marchesi <jemarch@gnu.org>.
38932
38933 2009-12-13  Bruno Haible  <bruno@clisp.org>
38934
38935         Move the malloc checking from module 'oset' to new module 'xoset'.
38936         * modules/xoset: New file.
38937         * lib/gl_xoset.h: New file.
38938         * lib/gl_xoset.c: New file.
38939         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
38940         declarations.
38941         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
38942         (struct gl_oset_implementation): Rename and change methods accordingly.
38943         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
38944         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38945         'int'. Mark as __warn_unused_result__.
38946         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
38947         gl_oset_create_empty.
38948         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38949         'int'.
38950         * lib/gl_array_oset.c: Don't include xalloc.h.
38951         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38952         malloc, not xmalloc.
38953         (grow): Change return type to 'int'. Don't call xalloc_die.
38954         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38955         to 'int'.
38956         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38957         'int'.
38958         (gl_array_oset_implementation): Update.
38959         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38960         gl_tree_create_empty.
38961         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38962         'int'.
38963         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38964         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38965         xmalloc.
38966         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38967         not xmalloc.
38968         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38969         xmalloc.
38970         (gl_avltree_oset_implementation): Update.
38971         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38972         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38973         xmalloc.
38974         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38975         not xmalloc.
38976         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38977         xmalloc.
38978         (gl_rbtree_oset_implementation): Update.
38979         * modules/array-oset (Depends-on): Remove xalloc.
38980         * modules/avltree-oset (Depends-on): Likewise.
38981         * modules/rbtree-oset (Depends-on): Likewise.
38982         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38983         * tests/test-avltree_oset.c: Likewise.
38984         * tests/test-rbtree_oset.c: Likewise.
38985         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38986         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38987         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38988         * NEWS: Mention the change.
38989
38990 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38991
38992         maint.mk: allow a project to override release-prep commands
38993         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38994         commands into a new rule.
38995         (release-prep): New rule.
38996         (release-prep-hook): New overridable variable.
38997
38998 2009-12-13  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39001
39002 2009-12-13  Jim Meyering  <meyering@redhat.com>
39003
39004         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39005         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39006
39007 2009-12-12  Bruno Haible  <bruno@clisp.org>
39008
39009         duplocale: Tweak.
39010         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39011
39012 2009-12-12  Karl Berry  <karl@gnu.org>
39013
39014         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39015
39016 2009-12-12  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/po.m4: Undo incorrect untabification.
39019
39020 2009-12-12  Bruno Haible  <bruno@clisp.org>
39021
39022         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39023         * modules/c-strtod (Depends-on): Add locale.
39024         * modules/c-strtold (Depends-on): Likewise.
39025
39026 2009-12-12  Bruno Haible  <bruno@clisp.org>
39027
39028         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39029
39030 2009-12-11  Eric Blake  <ebb9@byu.net>
39031
39032         setenv: relax requirement in light of POSIX ruling
39033         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39034         not NULL.
39035         * tests/test-setenv.c (main): Relax test.
39036         * tests/test-unsetenv.c (main): Likewise.
39037         * doc/posix-functions/setenv.texi (setenv): Document this.
39038         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39039
39040 2009-12-11  Bruno Haible  <bruno@clisp.org>
39041
39042         New module 'fd-safer-flag'.
39043         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39044         * lib/dup-safer.c (dup_safer_flag): Remove function.
39045         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39046         * lib/fd-safer.c (fd_safer_flag): Remove function.
39047         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39048         * modules/cloexec (configure.ac): Drop indicator macro.
39049         * modules/fd-safer-flag: New file.
39050         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39051         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39052         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39053
39054 2009-12-11  Bruno Haible  <bruno@clisp.org>
39055
39056         Tests for module 'nl_langinfo'.
39057         * modules/nl_langinfo-tests: New file.
39058         * tests/test-nl_langinfo.sh: New file.
39059         * tests/test-nl_langinfo.c: New file.
39060
39061         New module 'nl_langinfo'.
39062         * lib/nl_langinfo.c: New file.
39063         * m4/nl_langinfo.m4: New file.
39064         * modules/nl_langinfo: New file.
39065         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39066
39067 2009-12-11  Bruno Haible  <bruno@clisp.org>
39068
39069         Tests for module 'langinfo'.
39070         * modules/langinfo-tests: New file.
39071         * tests/test-langinfo.c: New file.
39072
39073         New module 'langinfo'.
39074         * lib/langinfo.in.h: New file.
39075         * m4/langinfo_h.m4: New file.
39076         * modules/langinfo: New file.
39077         * doc/posix-headers/langinfo.texi: Mention the new module.
39078
39079 2009-12-11  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/config.charset: Untabify.
39082
39083 2009-12-11  Bruno Haible  <bruno@clisp.org>
39084
39085         * modules/unistd-safer (configure.ac): Drop indicator macro.
39086
39087 2009-12-11  Bruno Haible  <bruno@clisp.org>
39088
39089         Move pipe2-safer code to its own file.
39090         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39091         * lib/pipe-safer.c (pipe2_safer): Remove function.
39092         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39093         (Makefile.am): Add it to lib_SOURCES.
39094
39095 2009-12-10  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39098
39099 2009-12-10  Bruno Haible  <bruno@clisp.org>
39100
39101         Declare which arguments expect non-NULL values, for GCC and clang.
39102         * build-aux/arg-nonnull.h: New file.
39103         * modules/arg-nonnull: New file.
39104         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39105         (inet_ntop, inet_pton): Use it.
39106         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39107         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39108         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39109         (open, openat): Use it.
39110         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39111         (fnmatch): Use it.
39112         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39113         (getopt, getopt_long, getopt_long_only): Use it.
39114         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39115         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39116         Use it.
39117         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39118         (iconv_open): Use it.
39119         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39120         (strtoimax, strtoumax): Use it.
39121         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39122         (duplocale): Use it.
39123         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39124         (frexp, frexpl): Use it.
39125         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39126         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39127         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39128         (tsearch, tfind, tdelete, twalk): Use it.
39129         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39130         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39131         sigpending): Use it.
39132         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39133         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39134         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39135         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39136         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39137         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39138         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39139         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39140         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39141         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39142         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39143         Use it.
39144         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39145         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39146         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39147         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39148         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39149         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39150         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39151         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39152         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39153         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39154         strtoull, unsetenv): Use it.
39155         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39156         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39157         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39158         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39159         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39160         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39161         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39162         (strcasecmp, strncasecmp): Use it.
39163         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39164         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39165         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39166         rpl_setsockopt): Use it.
39167         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39168         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39169         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39170         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39171         (gettimeofday): Use it.
39172         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39173         (times): Use it.
39174         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39175         (uname): Use it.
39176         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39177         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39178         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39179         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39180         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39181         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39182         unlinkat, write): Use it.
39183         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39184         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39185         * lib/argv-iter.h: Include arg-nonnull.h.
39186         (_ATTRIBUTE_NONNULL_): Remove macro.
39187         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39188         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39189         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39190         optimization.
39191         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39192         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39193         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39194         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39195         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39196         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39197         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39198         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39199         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39200         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39201         * modules/dirent (Depends-on): Add arg-nonnull.
39202         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39203         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39204         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39205         * modules/fnmatch (Depends-on): Add arg-nonnull.
39206         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39207         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39208         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39209         * modules/glob (Depends-on): Add arg-nonnull.
39210         (Makefile.am): Insert arg-nonnull.h into glob.h.
39211         * modules/iconv_open (Depends-on): Add arg-nonnull.
39212         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39213         * modules/inttypes (Depends-on): Add arg-nonnull.
39214         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39215         * modules/locale (Depends-on): Add arg-nonnull.
39216         (Makefile.am): Insert arg-nonnull.h into locale.h.
39217         * modules/math (Depends-on): Add arg-nonnull.
39218         (Makefile.am): Insert arg-nonnull.h into math.h.
39219         * modules/netdb (Depends-on): Add arg-nonnull.
39220         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39221         * modules/search (Depends-on): Add arg-nonnull.
39222         (Makefile.am): Insert arg-nonnull.h into search.h.
39223         * modules/signal (Depends-on): Add arg-nonnull.
39224         (Makefile.am): Insert arg-nonnull.h into signal.h.
39225         * modules/spawn (Depends-on): Add arg-nonnull.
39226         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39227         * modules/stdio (Depends-on): Add arg-nonnull.
39228         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39229         * modules/stdlib (Depends-on): Add arg-nonnull.
39230         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39231         * modules/string (Depends-on): Add arg-nonnull.
39232         (Makefile.am): Insert arg-nonnull.h into string.h.
39233         * modules/strings (Depends-on): Add arg-nonnull.
39234         (Makefile.am): Insert arg-nonnull.h into strings.h.
39235         * modules/sys_socket (Depends-on): Add arg-nonnull.
39236         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39237         * modules/sys_stat (Depends-on): Add arg-nonnull.
39238         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39239         * modules/sys_time (Depends-on): Add arg-nonnull.
39240         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39241         * modules/sys_times (Depends-on): Add arg-nonnull.
39242         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39243         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39244         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39245         * modules/time (Depends-on): Add arg-nonnull.
39246         (Makefile.am): Insert arg-nonnull.h into time.h.
39247         * modules/unistd (Depends-on): Add arg-nonnull.
39248         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39249         * modules/wchar (Depends-on): Add arg-nonnull.
39250         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39251         * modules/argv-iter (Depends-on): Add arg-nonnull.
39252         * tests/test-canonicalize.c (null_ptr): New function.
39253         (main): Use it.
39254         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39255         (main): Use it.
39256         * tests/test-memmem.c (null_ptr): New function.
39257         (main): Use it.
39258         Reported by Jim Meyering.
39259
39260 2009-12-10  Bruno Haible  <bruno@clisp.org>
39261
39262         Use spaces for indentation, not tabs.
39263         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39264         * m4/*.m4: Untabify.
39265         * build-aux/*.h: Untabify.
39266         * tests/**/*.[hc]: Untabify.
39267         * README: New section "Indent with spaces, not TABs", based on
39268         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39269         * NEWS: Mention the change.
39270
39271 2009-12-10  Bruno Haible  <bruno@clisp.org>
39272
39273         pty test: Fix link error.
39274         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39275         test_pty_LDADD.
39276
39277 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39278
39279         * modules/pty: New file.
39280         * modules/pty-tests: New file.
39281         * m4/pty.m4: New file.
39282         * tests/test-pty.c: New file.
39283         * doc/glibc-headers/pty.texi: Modified.
39284         * doc/glibc-functions/forkpty.texi: Modified.
39285         * doc/glibc-functions/openpty.texi: Modified.
39286
39287 2009-12-10  Bruno Haible  <bruno@clisp.org>
39288
39289         Avoid syntax error in C++ mode.
39290         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39291
39292 2009-12-10  Bruno Haible  <bruno@clisp.org>
39293
39294         Use sed with option -e.
39295         * gnulib-tool (func_version, func_emit_copyright_notice,
39296         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39297         option -e to sed.
39298         * modules/link-warning (Makefile.am): Likewise.
39299
39300 2009-12-10  Jim Meyering  <meyering@redhat.com>
39301
39302         mgetgroups: do not write bytes beyond end of malloc'd buffer
39303         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39304         username, we call getgroups with a one-element-shorter buffer,
39305         but still told it the length was original, max_n_groups.
39306
39307 2009-12-09  Eric Blake  <ebb9@byu.net>
39308
39309         cloexec: relax license
39310         * modules/cloexec (Maintainer): Add myself.
39311         (License): Use LGPL, not GPL.
39312
39313         link-warning: optimize generation
39314         * modules/link-warning (Makefile.am): Reduce process usage.
39315
39316 2009-12-09  Bruno Haible  <bruno@clisp.org>
39317
39318         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39319         workaround was added on 2009-11-17.
39320
39321 2009-12-09  Jim Meyering  <meyering@redhat.com>
39322             Bruno Haible  <bruno@clisp.org>
39323
39324         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39325         * modules/link-warning (Makefile.am): Make the comment-removing sed
39326         command more robust in the face of bootstrap-prepended comment lines.
39327
39328 2009-12-09  Bruno Haible  <bruno@clisp.org>
39329
39330         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39331         most one group.
39332
39333 2009-12-09  Simon Josefsson <simon@josefsson.org>
39334             Bruno Haible  <bruno@clisp.org>
39335
39336         * build-aux/link-warning.h: Add copyright notice.
39337         * modules/link-warning (Makefile.am): Generate link-warning.h from
39338         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39339         * NEWS: Mention change in link-warning module.
39340         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39341         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39342         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39343         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39344         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39345         * modules/math (Makefile.am): Add dependency to math.h.
39346         * modules/search (Makefile.am): Add dependency to search.h.
39347         * modules/signal (Makefile.am): Add dependency to signal.h.
39348         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39349         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39350         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39351         * modules/string (Makefile.am): Add dependency to string.h.
39352         * modules/strings (Makefile.am): Add dependency to strings.h.
39353         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39354         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39355         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39356         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39357         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39358         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39359         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39360         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39361         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39362
39363 2009-12-09  Bruno Haible  <bruno@clisp.org>
39364
39365         fchdir: Optimize away rpl_fstat when possible.
39366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39367         REPLACE_OPEN_DIRECTORY.
39368         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39369
39370 2009-12-09  Bruno Haible  <bruno@clisp.org>
39371
39372         * lib/fchdir.c: Update comment.
39373
39374 2009-12-09  Bruno Haible  <bruno@clisp.org>
39375
39376         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39377
39378 2009-12-08  Eric Blake  <ebb9@byu.net>
39379
39380         fchdir: avoid memory leak on re-registration.
39381         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39382
39383 2009-12-08  Jim Meyering  <meyering@redhat.com>
39384
39385         init.sh: avoid Solaris 10 /bin/sh portability problem
39386         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39387         sourced script:
39388           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39389           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39390           bar
39391         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39392         and two tests used that idiom.
39393         * tests/init.sh: Update suggested usage comments.
39394         (path_prepend_): New function, to be used in place
39395         of the --src-path=DIR option.
39396         (setup_): Move PATH-prepending code into path_prepend_.
39397         * tests/test-pread.sh: Adapt to new usage.
39398         * tests/test-xalloc-die.sh: Likewise.
39399
39400 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39401
39402         * doc/gnulib.texi (Glibc pty.h): Add.
39403         * doc/glibc-functions/forkpty.texi: Add.
39404         * doc/glibc-functions/openpty.texi: Add.
39405         Suggested by Bruno Haible.
39406
39407 2009-12-08  Eric Blake  <ebb9@byu.net>
39408
39409         fchdir: fix logic bugs
39410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39411         * tests/test-fchdir.c (main): Enhance test.
39412         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39413         is in use.
39414
39415         dup2: fix logic bugs
39416         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39417         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39418         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39419         exists.
39420         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39421
39422 2009-12-07  Eric Blake  <ebb9@byu.net>
39423
39424         unlink: fix m4 detection
39425         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39426
39427         unistd-safer: add unit test
39428         * modules/unistd-safer-tests: New file.
39429         * tests/test-dup-safer.c: Likewise.
39430         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39431         * tests/test-dup2.c (setmode): Likewise.
39432         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39433
39434         cloexec: preserve text vs. binary across dup_cloexec
39435         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39436         mode.
39437         * modules/dup2-tests (Depends-on): Add binary-io.
39438         * modules/cloexec-tests (Depends-on): Likewise.
39439         * tests/test-dup2.c (setmode, is_mode): New helpers.
39440         (main): Add tests that translation mode is preserved.
39441         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39442         Reported by Bruno Haible.
39443
39444         mgetgroups: reduce duplicate listings
39445         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39446         resulting array.
39447         * tests/test-chown.h (test_chown): Simplify client.
39448         * tests/test-lchown.h (test_lchown): Likewise.
39449
39450 2009-12-06  Bruno Haible  <bruno@clisp.org>
39451
39452         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39453         value.
39454
39455 2009-12-06  Bruno Haible  <bruno@clisp.org>
39456
39457         * lib/progname.c: Include stdio.h, stdlib.h.
39458         (set_program_name): Reject a NULL argument.
39459
39460 2009-12-05  Eric Blake  <ebb9@byu.net>
39461
39462         pipe2-safer: new module
39463         * modules/pipe2-safer: New file.
39464         * lib/unistd-safer.h (pipe2_safer): New prototype.
39465         * lib/unistd--.h (pipe2): New wrapper.
39466         * lib/pipe-safer.c (pipe2_safer): New function.
39467         * modules/pipe (Depends-on): Add pipe2-safer.
39468         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39469
39470         stdlib-safer: preserve cloexec flag for mkostemp[s]
39471         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39472         fd_safer_flag.
39473
39474         unistd-safer: allow preservation of cloexec status via flag
39475         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39476         prototypes.
39477         * lib/dup-safer.c (dup_safer_flag): New function.
39478         * lib/fd-safer.c (fd_safer_flag): Likewise.
39479         * modules/cloexec (configure.ac): Set witness.
39480
39481         test-dup2: enhance test
39482         * modules/dup2-tests (Depends-on): Add cloexec.
39483         * tests/test-dup2.c (main): Enhance test.
39484
39485         cloexec: add dup_cloexec
39486         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39487         header and comments.
39488         * lib/cloexec.c (set_cloexec_flag): Add comments.
39489         (dup_cloexec): New function, with mingw implementation borrowed
39490         from...
39491         * lib/w32spawn.h (dup_noinherit): ...here.
39492         * modules/execute (Depends-on): Add cloexec.
39493         * modules/pipe (Depends-on): Likewise.
39494         * modules/cloexec (Depends-on): Add dup2.
39495         * modules/cloexec-tests (Files): New file.
39496         * tests/test-cloexec.c: Likewise.
39497
39498         test-xalloc-die: fix test for mingw
39499         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39500         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39501         directory and .exe suffix off argv[0] output.
39502
39503         test-fseeko: fix test for mingw
39504         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39505         than undefining fseek, so test will pass on mingw.
39506
39507 2009-12-05  Bruno Haible  <bruno@clisp.org>
39508
39509         * lib/progname.h (set_program_name): Clarify specification.
39510         * lib/progname.c (set_program_name): Likewise.
39511         Reported by Jim Meyering.
39512
39513 2009-12-05  Jim Meyering  <meyering@redhat.com>
39514
39515         maint.mk: backslash-escape parens in default regexp
39516         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39517         backslash-escape the literal parentheses.
39518
39519         maint.mk: news-date-check: use grep -E
39520         * top/maint.mk (today): Define a Make variable, not a...
39521         (news-date-check): ...shell variable.
39522         (news-date-regexp): Use the Make variable.
39523         Use grep's -E option.  Change the failing diagnostic to mention
39524         the variable, $(news-date-regexp).
39525
39526 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39527
39528         maintainer-makefile: allow customization of NEWS entry format
39529         * top/maint.mk (news-date-regexp): New overridable variable.
39530         (news-date-check): Use it.
39531
39532 2009-12-04  Eric Blake  <ebb9@byu.net>
39533
39534         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39535         * lib/mgetgroups.h (xgetgroups): New prototype.
39536         * lib/mgetgroups.c (xgetgroups): New wrapper.
39537         (mgetgroups): Handle ENOSYS.
39538         * modules/mgetgroups (Depends-on): Add realloc.
39539         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39540
39541         mgetgroups: avoid argument promotion issues with -1
39542         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39543         for invalid gid_t.
39544         * tests/test-chown.h (getegid, test_chown): Likewise.
39545         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39546
39547 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39548
39549         exclude: Fix header file problems.
39550         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39551
39552 2009-12-01  Jim Meyering  <meyering@redhat.com>
39553
39554         fts: fts_open: do not let an empty string cause immediate failure
39555         This is required in support of GNU rm, for which the command
39556         "rm A '' B" must process and remove both A and B, in spite of
39557         the empty string argument.
39558         * lib/fts.c (fts_open): Do not let the presence of an empty string
39559         cause fts_open to fail immediately.  Most fts-using tools must be
39560         able to process all arguments, in order, and can be expected to
39561         diagnose such arguments themselves.
39562
39563 2009-11-30  Eric Blake  <ebb9@byu.net>
39564
39565         utimens: fix compilation error
39566         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39567         Declare variable at right scope.
39568
39569 2009-11-29  Jim Meyering  <meyering@redhat.com>
39570
39571         bootstrap: handle perl-5.11's changed --version output
39572         * build-aux/bootstrap (get_version): Handle perl separately,
39573         since perl-5.11's --version output is different.
39574
39575 2009-11-28  Jim Meyering  <meyering@redhat.com>
39576
39577         userspec: depend on the inttostr module, too
39578         * modules/userspec (Depends-on): Add inttostr.
39579
39580         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39581         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39582         number of MAXUID when it evaluates to (uid_t) -1.
39583         Likewise for group ID.  Reported by Matt McCutchen in
39584         <http://savannah.gnu.org/bugs/?28113>
39585
39586         userspec: reformat to use spaces, not TABs
39587         * lib/userspec.c: Expand TABs to spaces.
39588         Add Emacs' "indent-tabs-mode: nil" hint.
39589
39590 2009-11-27  Eric Blake  <ebb9@byu.net>
39591
39592         getopt-gnu: flush out another BSD bug
39593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39594         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39595         flush out BSD bug.
39596         * tests/test-getopt.h (test_getopt): End lists with NULL.
39597         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39598         (test_getopt_long_posix): Enhance test.
39599         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39600         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39601         getopt-gnu.
39602         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39603         Likewise.
39604
39605 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39606
39607         * modules/idpriv-droptemp-tests (Notice): Fix text.
39608
39609 2009-11-27  Jim Meyering  <meyering@redhat.com>
39610
39611         test-xalloc-die: avoid spurious failure due to libtool argv difference
39612         In a libtool-enabled project, this test would fail due to a difference
39613         in the emitted program name, e.g.,
39614         -test-xalloc-die: memory exhausted
39615         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39616         Use program to avoid that.
39617         * modules/xalloc-die-tests (Depends-on): Add progname.
39618         * tests/test-xalloc-die.c: Include progname.h".
39619         (program_name): Remove decl.
39620         (main): Call set_program_name.
39621         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39622
39623 2009-11-26  Richard Jones  <rjones@redhat.com>
39624
39625         w32sock: leave win32 error in place.
39626         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39627
39628 2009-11-26  Eric Blake  <ebb9@byu.net>
39629
39630         init.sh: suggest to use skip_ and fail_ functions in comments
39631         * tests/init.sh: Add a sentence.
39632
39633 2009-11-25  Bruno Haible  <bruno@clisp.org>
39634
39635         init.sh: add documentation in comments
39636         * tests/init.sh: Add some developer and user documentation.
39637
39638 2009-11-26  Jim Meyering  <meyering@redhat.com>
39639
39640         init.sh: accommodate even those who specify bogus srcdir manually
39641         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39642         configure-time tests to be sanitized, so that there is no need to
39643         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39644         (with no double quotes) suffices.  However, since tests may be
39645         invoked manually, and since you may explicitly set srcdir to the
39646         name of a directory containing spaces, do quote its uses here.
39647         * tests/test-pread.sh: Likewise.
39648         Suggested by Bruno Haible.
39649
39650         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39651         * tests/test-pread.sh: Write no data into the pipe, because
39652         test-pread actually reads none.  This avoids a diagnostic,
39653         "bash: echo: write error: Broken pipe", that arises in the unusual
39654         event something is ignoring SIGPIPE, and might be interpreted
39655         as some sort of failure.  Reported by Bruno Haible.
39656
39657 2009-11-25  Jim Meyering  <meyering@redhat.com>
39658
39659         test-pread: cover failure with ESPIPE and EINVAL
39660         * tests/test-pread.c (main): Test for failure, too.
39661         * tests/test-pread.sh: Invoke with stdin on a pipe.
39662         Suggested by Eric Blake.
39663
39664         pread: improvement and fix
39665         * modules/pread (Depends-on): Depend on lseek, for portability to
39666         e.g., mingw.  Suggested by Eric Blake.
39667         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39668
39669         unistd.in.h: correct declaration of pread
39670         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39671         Reported by Richard W.M. Jones.
39672
39673         test-pread.sh: distribute the test script
39674         * modules/pread-tests (Files): Include test-pread.sh.
39675
39676         test-pread.sh: clean up
39677         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39678         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39679         That is unnecessary, since it's always ".".
39680         Suggestion from Eric Blake.
39681
39682         test-pread.sh: make executable
39683         * tests/test-pread.sh: Set executable bit.
39684         Reported by Eric Blake.
39685
39686         correct typo in test-pread.sh
39687         * tests/test-pread.sh: Add #! line.
39688
39689         test pread
39690         * tests/test-pread.c: New file.
39691         * tests/test-pread.sh: Likewise.
39692         * modules/pread-tests: Likewise.
39693
39694         pread: new module
39695         * modules/pread: New file.
39696         * lib/unistd.in.h (pread): Define/declare.
39697         * lib/pread.c (pread): New file.
39698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39699         * modules/unistd (Makefile.am): Substitute witnesses.
39700         * doc/posix-functions/pread.texi (pread): Update.
39701         * MODULES.html.sh: Add pread.
39702
39703 2009-11-25  Jim Meyering  <meyering@redhat.com>
39704
39705         tests/init.sh: new file to be used via most *.sh tests
39706         * tests/init.sh: New file.
39707
39708 2009-11-25  Eric Blake  <ebb9@byu.net>
39709
39710         utimens: work around older Linux failure with symlinks
39711         * lib/utimens.c (lutimensat_works_really): New variable.
39712         (fdutimens, lutimens): Use it to manage kernels that support
39713         nanosecond times on files, but not on symlinks.
39714         Reported by OndÅ™ej Vašík.
39715
39716         utimes: fix configure grammar
39717         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39718
39719 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39720
39721         regex: Fix fastmap for multibyte character ranges.
39722         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39723         characters when a multibyte character range is included.
39724
39725 2009-11-22  Andy Wingo  <wingo@pobox.com>
39726
39727         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39728         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39729
39730 2009-11-24  Bruno Haible  <bruno@clisp.org>
39731
39732         doc: Most *_l functions exist in MacOS X 10.5.
39733         * doc/posix-functions/duplocale.texi: Update platforms list.
39734         * doc/posix-functions/freelocale.texi: Likewise.
39735         * doc/posix-functions/newlocale.texi: Likewise.
39736         * doc/posix-functions/uselocale.texi: Likewise.
39737         * doc/posix-functions/isalnum_l.texi: Likewise.
39738         * doc/posix-functions/isalpha_l.texi: Likewise.
39739         * doc/posix-functions/isblank_l.texi: Likewise.
39740         * doc/posix-functions/iscntrl_l.texi: Likewise.
39741         * doc/posix-functions/isdigit_l.texi: Likewise.
39742         * doc/posix-functions/isgraph_l.texi: Likewise.
39743         * doc/posix-functions/islower_l.texi: Likewise.
39744         * doc/posix-functions/isprint_l.texi: Likewise.
39745         * doc/posix-functions/ispunct_l.texi: Likewise.
39746         * doc/posix-functions/isspace_l.texi: Likewise.
39747         * doc/posix-functions/isupper_l.texi: Likewise.
39748         * doc/posix-functions/iswalnum_l.texi: Likewise.
39749         * doc/posix-functions/iswalpha_l.texi: Likewise.
39750         * doc/posix-functions/iswblank_l.texi: Likewise.
39751         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39752         * doc/posix-functions/iswctype_l.texi: Likewise.
39753         * doc/posix-functions/iswdigit_l.texi: Likewise.
39754         * doc/posix-functions/iswgraph_l.texi: Likewise.
39755         * doc/posix-functions/iswlower_l.texi: Likewise.
39756         * doc/posix-functions/iswprint_l.texi: Likewise.
39757         * doc/posix-functions/iswpunct_l.texi: Likewise.
39758         * doc/posix-functions/iswspace_l.texi: Likewise.
39759         * doc/posix-functions/iswupper_l.texi: Likewise.
39760         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39761         * doc/posix-functions/isxdigit_l.texi: Likewise.
39762         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39763         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39764         * doc/posix-functions/strcoll_l.texi: Likewise.
39765         * doc/posix-functions/strfmon_l.texi: Likewise.
39766         * doc/posix-functions/strftime_l.texi: Likewise.
39767         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39768         * doc/posix-functions/strxfrm_l.texi: Likewise.
39769         * doc/posix-functions/tolower_l.texi: Likewise.
39770         * doc/posix-functions/toupper_l.texi: Likewise.
39771         * doc/posix-functions/towctrans_l.texi: Likewise.
39772         * doc/posix-functions/towlower_l.texi: Likewise.
39773         * doc/posix-functions/towupper_l.texi: Likewise.
39774         * doc/posix-functions/wcscoll_l.texi: Likewise.
39775         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39776         * doc/posix-functions/wctrans_l.texi: Likewise.
39777         * doc/posix-functions/wctype_l.texi: Likewise.
39778         * doc/glibc-functions/strptime_l.texi: Likewise.
39779         * doc/glibc-functions/strtod_l.texi: Likewise.
39780         * doc/glibc-functions/strtof_l.texi: Likewise.
39781         * doc/glibc-functions/strtol_l.texi: Likewise.
39782         * doc/glibc-functions/strtold_l.texi: Likewise.
39783         * doc/glibc-functions/strtoll_l.texi: Likewise.
39784         * doc/glibc-functions/strtoul_l.texi: Likewise.
39785         * doc/glibc-functions/strtoull_l.texi: Likewise.
39786         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39787         * doc/glibc-functions/wcstod_l.texi: Likewise.
39788         * doc/glibc-functions/wcstof_l.texi: Likewise.
39789         * doc/glibc-functions/wcstol_l.texi: Likewise.
39790         * doc/glibc-functions/wcstold_l.texi: Likewise.
39791         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39792         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39793         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39794
39795 2009-11-24  Bruno Haible  <bruno@clisp.org>
39796
39797         duplocale: Fix logic bug.
39798         * lib/duplocale.c: Don't include <langinfo.h>.
39799         (_NL_LOCALE_NAME): Remove macro.
39800         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39801         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39802
39803 2009-11-23  Jim Meyering  <meyering@redhat.com>
39804
39805         test-update-copyright: don't hard-code /usr/bin/perl
39806         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39807         perl to print the current year.  Gilles Espinasse reported that
39808         the replaced use of perl was hard-coded as /usr/bin/perl.
39809
39810 2009-11-23  Bruno Haible  <bruno@clisp.org>
39811
39812         duplocale: Add support for glibc 2.3.x.
39813         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39814
39815 2009-11-22  Bruno Haible  <bruno@clisp.org>
39816
39817         vasnprintf: Tiny optimization.
39818         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
39819         MacOS X.
39820
39821 2009-11-22  Bruno Haible  <bruno@clisp.org>
39822
39823         Tests for module 'duplocale'.
39824         * modules/duplocale-tests: New file.
39825         * tests/test-duplocale.c: New file.
39826
39827         New module 'duplocale'.
39828         * m4/duplocale.m4: New file.
39829         * lib/locale.in.h (duplocale): New declaration.
39830         * lib/duplocale.c: New file.
39831         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
39832         gl_LOCALE_H_DEFAULTS): New macros.
39833         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
39834         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
39835         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
39836         REPLACE_DUPLOCALE.
39837         * modules/duplocale: New file.
39838         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
39839
39840 2009-11-22  Bruno Haible  <bruno@clisp.org>
39841
39842         * modules/locale-tests (configure.ac): Test for newlocale function.
39843         * tests/test-locale.c: When the system has extended locale functions,
39844         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
39845
39846         locale: Make locale_t available when possible.
39847         * lib/locale.in.h: Include <xlocale.h> when it exists.
39848         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
39849         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
39850         * modules/locale (Depends-on): Add extensions.
39851         (Makefile.am): Also substitute HAVE_XLOCALE_H.
39852         * doc/posix-headers/locale.texi: Document the problem with locale_t.
39853
39854 2009-11-22  Bruno Haible  <bruno@clisp.org>
39855
39856         Add comments.
39857         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
39858         invocation.
39859         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39860         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39861         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39862
39863 2009-11-22  Bruno Haible  <bruno@clisp.org>
39864
39865         error: account for the possibility of freopen (stdout).
39866         * lib/error.c: Include <unistd.h>.
39867         (flush_stdout): New function, extracted from error and error_at_line.
39868         Determine stdout's fd dynamically.
39869         (error, error_at_line): Invoke flush_stdout.
39870         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
39871         * modules/error (Depends-on): Add unistd.
39872
39873 2009-11-22  Bruno Haible  <bruno@clisp.org>
39874
39875         diffseq: Add comment.
39876         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
39877
39878 2009-11-22  Jim Meyering  <meyering@redhat.com>
39879
39880         c-stack: avoid defining an unused static function
39881         * lib/c-stack.c (find_stack_direction): Do not define this function
39882         when it will not be used.
39883
39884         diffseq: avoid spurious gcc warnings
39885         * lib/diffseq.h (IF_LINT2): Define.
39886         (compareseq): Use it to initialize two members of "part".
39887         This avoids two used-uninitialized warnings.
39888
39889 2009-11-21  Jim Meyering  <meyering@redhat.com>
39890
39891         c-stack: avoid "ignoring return value of `write'" warning
39892         * lib/c-stack.c: Include "ignore-value.h".
39893         (die): Explicitly ignore each write return value.
39894         * modules/c-stack (Depends-on): Add ignore-value.
39895
39896 2009-11-21  Bruno Haible  <bruno@clisp.org>
39897
39898         diffseq: reduce scope of variable 'best'.
39899         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
39900         variable, earlier used for two different purposes.
39901
39902 2009-11-21  Jim Meyering  <meyering@redhat.com>
39903
39904         diffseq: remove useless assignment to "best"
39905         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
39906         assignment.  At that point "best" is already guaranteed to be zero.
39907
39908 2009-11-20  Eric Blake  <ebb9@byu.net>
39909
39910         build: mention ftp redirector in release announcements
39911         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
39912         values that used to come from cfg.mk; mention FTP redirect URL.
39913         * build-aux/announce-gen: Mention the mirror list.
39914         Suggested by Karl Berry.
39915
39916         nanosleep: improve port to mingw
39917         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
39918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
39919         LIB_NANOSLEEP, but only when needed.
39920         * modules/select (Link): Document LIBSOCKET.
39921         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
39922         enough.
39923
39924         nanosleep: work around cygwin bug
39925         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
39926         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
39927         bug.
39928         (getnow): Delete, not needed.
39929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
39930         LIB_CLOCK_GETTIME.
39931         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
39932         clock-time, gettime.
39933         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
39934         bug.
39935         * modules/nanosleep-tests: New test.
39936         * tests/test-nanosleep.c: New file.
39937
39938         sleep: work around cygwin bug
39939         * lib/sleep.c (rpl_sleep): Work around the bug.
39940         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
39941         (gl_PREREQ_SLEEP): Delete unused macro.
39942         * modules/sleep (Depends-on): Add verify.
39943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39944         * modules/unistd (Makefile.am): Substitute witness.
39945         * lib/unistd.in.h (sleep): Update prototype.
39946         * doc/posix-functions/sleep.texi (sleep): Document the bug.
39947         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
39948         * modules/sleep-tests (Depends-on): Check for alarm.
39949
39950 2009-11-20  Jim Meyering  <meyering@redhat.com>
39951
39952         maint.mk: improve sc_prohibit_magic_number_exit
39953         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39954         so it does not match uses like System.exit(1).
39955         Add comments showing how to correct all offenders.
39956
39957 2009-11-19  Eric Blake  <ebb9@byu.net>
39958
39959         xalloc-die-tests: add missing library
39960         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39961
39962         test-xvasprintf: silence compiler warnings
39963         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39964         empty string from gcc.
39965
39966 2009-11-19  Jim Meyering  <meyering@redhat.com>
39967
39968         xfreopen: new module, from coreutils
39969         * modules/xfreopen: New module.
39970         * lib/xfreopen.c: New file.
39971         * lib/xfreopen.h: New file.
39972         * MODULES.html.sh (File stream based Input/Output"): Add it.
39973
39974 2009-11-19  Eric Blake  <ebb9@byu.net>
39975
39976         manywarnings: depend on warnings
39977         * modules/manywarnings (Depends-on): Add warnings.
39978
39979         build: avoid compiler warnings
39980         * lib/select.c (rpl_select): Delete unused variable.
39981         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39982
39983 2009-11-18  Eric Blake  <ebb9@byu.net>
39984
39985         tests: avoid false negative with --with-packager
39986         * tests/test-version-etc.sh: Discard packager information.
39987         * tests/test-argp-version-etc-1.sh: Likewise.
39988         Reported by Mike Frysinger.
39989
39990         utimens: fix regression on Solaris
39991         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39992         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39993         can only change fd timestamps via futimesat.  Instead, use an
39994         additional witness macro to avoid BSD bug.
39995         Reported by Jim Meyering.
39996
39997 2009-11-17  Eric Blake  <ebb9@byu.net>
39998
39999         usleep: use it to simplify tests
40000         * modules/stat-time-tests (Depends-on): Add usleep.
40001         (configure.ac): Drop usleep check.
40002         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40003         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40004         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40005         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40006         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40007         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40008         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40009         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40010         Likewise.
40011         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40012         * tests/test-lchown.h (nap): Likewise.
40013         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40014         * tests/test-stat-time.c (nap): Likewise.
40015         * tests/test-utimens-common.h (nap): Update comments.
40016
40017         usleep: new module
40018         * modules/usleep: New file.
40019         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40020         * lib/usleep.c (usleep): Likewise.
40021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40022         * modules/unistd (Makefile.am): Substitute witnesses.
40023         * lib/unistd.in.h (usleep): Add declaration.
40024         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40025         * MODULES.html.sh (Date and time): Likewise.
40026         * modules/usleep-tests (Depends-on): New test.
40027         * tests/test-usleep.c: New file.
40028
40029         chown: work around OpenBSD bug
40030         * lib/chown.c (rpl_chown): Work around the bug.
40031         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40032         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40033         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40034         * modules/chown (Depends-on): Add stdbool.
40035         * modules/lchown (Depends-on): Likewise.
40036         * doc/posix-functions/chown.texi (chown): Document the bug.
40037         * doc/posix-functions/lchown.texi (lchown): Likewise.
40038         * tests/test-lchown.h (test_chown): Relax test.
40039
40040         mkstemp: avoid conflict with C++ keyword template
40041         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40042         * lib/mkostemp.c (mkostemp): Likewise.
40043         * lib/mkostemps.c (mkostemps): Likewise.
40044         * lib/mkstemp.c (mkstemp): Likewise.
40045         * lib/mkstemps.c (mkstemps): Likewise.
40046
40047         xalloc-die-tests: optimize
40048         * tests/test-xalloc-die.sh: Reduce number of processes.
40049
40050 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40051
40052         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40053         patch from ludo@gnu.org (Ludovic Courtès).
40054
40055 2009-11-17  Jim Meyering  <meyering@redhat.com>
40056
40057         version-etc: use proper license string
40058         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40059         * modules/version-etc-fsf: Likewise.
40060
40061 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40062
40063         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40064         printed to stdout.  Deal with EOL differences.
40065
40066 2009-11-17  Eric Blake  <ebb9@byu.net>
40067
40068         unsetenv: work around Solaris bug
40069         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40070         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40071         Reported by Jim Meyering.
40072
40073         vasnprintf: avoid compiler warnings
40074         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40075         variables.
40076         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40077
40078 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40079
40080         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40081         settings since xalloc-die is no longer the self test,
40082         xalloc-die.sh is.
40083
40084 2009-11-17  Jim Meyering  <meyering@redhat.com>
40085
40086         test-xalloc-die.sh: make the code agree with the commit log
40087         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40088         at the end, just in case you happen to have a test-xalloc-die
40089         program in some other PATH directory.
40090
40091         test-xalloc-die.sh: fix a portability bug
40092         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40093         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40094         Otherwise, argv[0] (as often seen in diagnostics) would be too
40095         system-dependent, sometimes with, and sometimes without the leading "./".
40096
40097         version-etc-fsf: relax license to LGPLv3+
40098         * modules/version-etc-fsf (License): Relax license.
40099
40100 2009-11-16  Eric Blake  <ebb9@byu.net>
40101
40102         xalloc-die-tests: avoid printing null pointer
40103         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40104         shell script.
40105         * tests/test-xalloc-die.c (program_name): Declare.
40106         * tests/test-xalloc-die.sh (tmpfiles): New file.
40107
40108         setenv, unsetenv: work around various bugs
40109         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40110         (setenv) [HAVE_SETENV]: Work around bugs.
40111         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40112         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40113         for bugs.
40114         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40115         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40117         * modules/stdlib (Makefile.am): Update substitutions.
40118         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40119         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40120         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40121         * modules/setenv-tests: New test.
40122         * modules/unsetenv-tests: Likewise.
40123         * tests/test-setenv.c: New file.
40124         * tests/test-unsetenv.c: Likewise.
40125
40126 2009-11-16  Jim Meyering  <meyering@redhat.com>
40127
40128         version-etc: relax license to LGPLv3+
40129         * modules/version-etc (License): Relax license.
40130
40131         better AC_REQUIRE expanded-before-required-warning avoidance
40132         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40133         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40134         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40135         which is no longer needed.
40136
40137 2009-11-16  Eric Blake  <ebb9@byu.net>
40138
40139         test-freading: clean up temporary file
40140         * tests/test-freading.c (main): Remove file on success, and use
40141         ASSERT more liberally.
40142         Reported by Jim Meyering.
40143
40144 2009-11-16  Jim Meyering  <meyering@redhat.com>
40145
40146         avoid new AC_REQUIRE expanded-before-required warnings
40147         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40148         merely using it.
40149         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40150         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40151
40152 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40153
40154         * tests/test-xalloc-die.c: New file.
40155         * modules/xalloc-die-tests: New file.
40156         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40157         XFAIL_TESTS so it can be appended by modules.
40158
40159 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40160
40161         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40162         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40163
40164 2009-11-14  Eric Blake  <ebb9@byu.net>
40165
40166         fnmatch: avoid compiler warning
40167         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40168         to silence compiler warning about mismatch signedness in ?:.
40169         Reported by Robert Millan.
40170
40171         intprops: add double-inclusion guard
40172         * lib/intprops.h: Allow idempotent includes.
40173         Suggested by Bruce Korb.
40174
40175         openat: detect Solaris fchownat bug
40176         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40177         penalizing glibc chownat when only lchownat is broken.
40178         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40179         trailing slash bugs.
40180         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40181         * modules/openat-tests (Files): Include more files.
40182         (Depends-on): Add mgetgroups, sleep, stat-time.
40183         (configure.ac): Add additional checks.
40184         (Makefile.am): Build new test.
40185         * tests/test-fchownat.c: New file.
40186
40187         lchown: detect Solaris and FreeBSD bug
40188         * lib/lchown.c (rpl_lchown): Work around bug.
40189         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40191         * modules/unistd (Makefile.am): Populate it.
40192         * lib/unistd.in.h (lchown): Update declaration.
40193         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40194         * modules/lchown-tests: New file.
40195         * tests/test-lchown.h (test_lchown): Likewise.
40196         * tests/test-lchown.c (main): Likewise.
40197
40198         chown: detect Solaris and FreeBSD bug
40199         * lib/chown.c (rpl_chown): Work around bug.
40200         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40201         (gl_PREREQ_CHOWN): Delete.
40202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40203         * modules/unistd (Makefile.am): Populate it.
40204         * lib/unistd.in.h (chown): Update declaration.
40205         * lib/lchown.c (chown): Update client.
40206         * modules/lchown (Depends-on): Add lstat.
40207         * doc/posix-functions/chown.texi (chown): Document the bug.
40208         * doc/posix-functions/getgroups.texi (getgroups): Document
40209         getgroups pitfall.
40210         * modules/chown-tests: New file.
40211         * tests/test-chown.h (test_chown): Likewise.
40212         * tests/test-chown.c (main): Likewise.
40213
40214 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40215
40216         gnulib-tool: correctly detect absence of m4 directories
40217         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40218
40219 2009-11-14  Jim Meyering  <meyering@redhat.com>
40220
40221         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40222         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40223
40224 2009-11-14  John W. Eaton  <jwe@gnu.org>
40225
40226         strftime.h: wrap function declaration in extern "C" block
40227         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40228
40229 2009-11-13  Eric Blake  <ebb9@byu.net>
40230
40231         getgroups: avoid compiler warning
40232         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40233
40234         getgroups: work around FreeBSD bug
40235         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40236         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40237         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40238         * tests/test-getgroups.c (main): Fix buffer overrun.
40239
40240         getgroups: avoid compilation failure
40241         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40242         * modules/getgroups (Depends-on): Add stdint.
40243
40244 2009-11-13  Jim Meyering  <meyering@redhat.com>
40245
40246         test-getgroups: avoid compilation failure
40247         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40248
40249 2009-11-13  Eric Blake  <ebb9@byu.net>
40250
40251         mgetgroups: new module, taken from coreutils
40252         * modules/mgetgroups: New file.
40253         * lib/mgetgroups.h: Likewise.
40254         * lib/mgetgroups.c (mgetgroups): Likewise.
40255         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40256         * MODULES.html.sh (Users and groups): Mention it.
40257
40258         getgroups: don't expose GETGROUPS_T to user
40259         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40260         an element at a time if GETGROUPS_T is wrong size.
40261         * lib/getugroups.h (getugroups): Change signature.
40262         * lib/unistd.in.h (getgroups): Likewise.
40263         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40264         signature needs fixing.
40265         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40266         AC_TYPE_GETGROUPS.
40267         * modules/group-member (Depends-on): Add getgroups.
40268         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40269         (group_member): Rely on getgroups replacement.
40270         * lib/getugroups.c (getugroups): Use gid_t.
40271         * tests/test-getgroups.c (main): Likewise.
40272         * NEWS: Mention the signature change.
40273         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40274         problem with signature.
40275         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40276         GETGROUPS_T is still useful for setgroups.
40277
40278         getgroups, getugroups: provide stubs for mingw
40279         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40280         * lib/getugroups.c (getugroups): Likewise.
40281         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40282         function.  Modernize replacement scheme.
40283         (gl_PREREQ_GETGROUPS): Delete.
40284         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40285         * modules/getgroups (configure.ac): Declare witness.
40286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40287         * modules/unistd (Depends-on): Substitute witness.
40288         * lib/unistd.in.h (getgroups): Declare replacement.
40289
40290         getgroups: avoid calling exit
40291         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40292         drop xalloc.
40293         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40294         dependencies.
40295         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40296         exiting, in the rare case of malloc failure.
40297
40298         getgroups: fix logic error
40299         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40300         has more than 20 groups.
40301         * modules/getgroups-tests: New test.
40302         * tests/test-getgroups.c: New file.
40303
40304 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40305
40306         * tests/test-base64.c: Improve.
40307
40308 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40309
40310         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40311         Blake <ebb9@byu.net>.
40312
40313 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40314
40315         * tests/test-xvasprintf.c: Add %s%s related checks.
40316
40317 2009-11-12  Eric Blake  <ebb9@byu.net>
40318
40319         version-etc: match standards.texi style
40320         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40321         and use <> only for URLs.
40322
40323 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40324
40325         fts: do not fail on a submount during traversal
40326         * lib/fts.c (fts_build): Read the stat info again after opening
40327         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40328         Original report at http://bugzilla.redhat.com/501848.
40329
40330 2009-11-12  Jim Meyering  <meyering@redhat.com>
40331
40332         bootstrap: sync from coreutils
40333         * build-aux/bootstrap (bootstrap_epilogue): New function.
40334         Use git_modules_config in one more place.  This make bootstrap's
40335         --gnulib-srcdir option more useful for testing.
40336
40337         bootstrap: generalize autoheader check
40338         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40339         AC_CONFIG_HEADERS.
40340
40341 2009-11-11  Eric Blake  <ebb9@byu.net>
40342
40343         mkfifoat: use new modules for Solaris and BSD bugs
40344         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40345         * lib/mkfifoat.c (mknodat): Split...
40346         * lib/mknodat.c (mknodat): ...into new file.
40347         * modules/mkfifoat (Files): Ship new file.
40348         (Depends-on): Add mkfifo, mknod.
40349         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40350         (Depends-on): Add symlink.
40351         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40352         redundant with test_mkfifo.h.
40353         (do_mkfifoat, do_mknodat): New helpers.
40354
40355         mknod: new module
40356         * modules/mknod: New file.
40357         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40358         * lib/mknod.c (mknod): Likewise.
40359         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40360         defaults.
40361         * modules/sys_stat (Makefile.am): Substitute them.
40362         * lib/sys_stat.in.h (mknod): Declare replacement.
40363         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40364         Document it.
40365         * doc/posix-functions/mknod.texi (mknod): Likewise.
40366         * modules/mknod-tests: New test.
40367         * tests/test-mknod.c: Likewise.
40368
40369         mkfifo: new module
40370         * modules/mkfifo: New file.
40371         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40372         * lib/mkfifo.c (mkfifo): Likewise.
40373         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40374         defaults.
40375         * modules/sys_stat (Makefile.am): Substitute them.
40376         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40377         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40378         Document it.
40379         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40380         * modules/mkfifo-tests: New test.
40381         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40382         from test-mkfifoat.c.
40383         * tests/test-mkfifo.c: New file.
40384
40385         readlink: detect FreeBSD bug
40386         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40387         slash on symlink.
40388         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40389         * tests/test-readlink.h (test_readlink): Enhance test.
40390
40391         symlink: detect FreeBSD bug
40392         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40393         slash on symlink.
40394         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40395         * tests/test-symlink.h (test_symlink): Enhance test.
40396
40397 2009-11-10  Eric Blake  <ebb9@byu.net>
40398
40399         link: detect FreeBSD bug
40400         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40401         symlink.
40402         * doc/posix-functions/link.texi (link): Document the bug.
40403         * tests/test-link.h (test_link): Enhance test.
40404         * tests/test-linkat.c (main): Update caller.
40405
40406         unlink, remove: detect FreeBSD bug
40407         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40408         slash on symlink.
40409         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40410         * doc/posix-functions/remove.texi (remove): Likewise.
40411         * tests/test-unlink.h (test_unlink): Enhance test.
40412         * tests/test-remove.c (main): Likewise.
40413
40414 2009-11-09  Eric Blake  <ebb9@byu.net>
40415
40416         rename: detect FreeBSD bug
40417         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40418         slash on symlink.
40419         * modules/renameat-tests (Depends-on): Add filenamecat.
40420         * tests/test-rename.h (test_rename): Allow one more errno.
40421         * tests/test-renameat.c (main): Likewise.
40422         * doc/posix-functions/rename.texi (rename): Document the bug.
40423
40424         open: detect FreeBSD bug
40425         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40426         symlink.
40427         * doc/posix-functions/open.texi (open): Document the bug.
40428         * doc/posix-functions/utimes.texi (utimes): Likewise.
40429         * tests/test-open.h (test_open): Add parameters, and test symlink
40430         handling.
40431         * tests/test-open.c (main): Adjust caller.
40432         * tests/test-fcntl-safer.c (main): Likewise.
40433         * modules/open-tests (Depends-on): Add stdbool, symlink.
40434         * modules/fcntl-safer-tests (Depends-on): Likewise.
40435         * tests/test-openat.c (main): Add test-open tests.
40436
40437         stat: detect FreeBSD bug
40438         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40439         symlink.
40440         * doc/posix-functions/stat.texi (stat): Document the bug.
40441         * tests/test-stat.h (test_stat_func): Add argument.
40442         * tests/test-stat.c (main): Adjust caller.
40443         * tests/test-fstatat.c (main): Likewise.
40444         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40445         Reported by Jim Meyering.
40446
40447 2009-11-09  James Youngman  <jay@gnu.org>
40448
40449         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40450         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40451
40452 2009-11-08  Jim Meyering  <meyering@redhat.com>
40453
40454         utimens: remove invalid futimesat call
40455         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40456         It used the file descriptor of the target file as the DIR_FD
40457         parameter and NULL as the file name.  That caused failure with
40458         errno == EFAULT on FreeBSD-8.0-rc2
40459
40460 2009-11-07  Eric Blake  <ebb9@byu.net>
40461
40462         fflush, freadseek: use fseeko, not fseek
40463         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40464         (clear_ungetc_buffer): Avoid potential problems on large files.
40465         * lib/freadseek.c (freadseek): Likewise.
40466         * modules/freadseek (Depends-on): Add fseeko.
40467         * modules/fseek (configure.ac): Set a witness.
40468         * tests/test-fflush.c (main): Use fseeko.
40469         * tests/test-fpurge.c (fseek): Disable link warning.
40470         * tests/test-freadable.c (fseek): Likewise.
40471         * tests/test-freading.c (fseek): Likewise.
40472         * tests/test-fseeko.c (fseek): Likewise.
40473         * tests/test-ftell.c (fseek): Likewise.
40474         * tests/test-ftello.c (fseek): Likewise.
40475         * tests/test-fwritable.c (fseek): Likewise.
40476         * tests/test-fwriting.c (fseek): Likewise.
40477
40478 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40479
40480         * modules/memchr (Depends-on): Drop getpagesize dependency.
40481
40482 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40483
40484         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40485         Reported by Ludovic Courtès.
40486         * build-aux/pmccabe2html: Improve example usage.
40487         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40488
40489 2009-11-06  Jim Meyering  <meyering@redhat.com>
40490
40491         do-release-commit-and-tag: New module.
40492         Automate the release-commit and tag process.
40493         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40494         * modules/do-release-commit-and-tag: New file.
40495         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40496
40497 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40498
40499         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40500         because test-select.c uses inet_pton.
40501
40502 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40503
40504         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40505         GETADDRINFO_LIB.  Bump serial number.
40506         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40507         Suggested by Eric Blake <ebb9@byu.net>.
40508
40509 2009-11-05  Eric Blake  <ebb9@byu.net>
40510
40511         strtod: detect darwin bug
40512         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40513         Reported by Leo Davis.
40514
40515         freopen-safer: new module
40516         * modules/freopen-safer: New module.
40517         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40518         * lib/freopen-safer.c (freopen_safer): New file.
40519         * lib/stdio-safer.h (freopen_safer): New declaration.
40520         * lib/stdio--.h (freopen): New override.
40521         * MODULES.html.sh (File stream based Input/Output): Mention it.
40522         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40523         freopen-safer module.
40524         * doc/posix-functions/stderr.texi (stderr): Likewise.
40525         * doc/posix-functions/stdin.texi (stdin): Likewise.
40526         * doc/posix-functions/stdout.texi (stdout): Likewise.
40527         * modules/freopen-safer-tests: New test.
40528         * tests/test-reopen-safer.c: New file.
40529
40530 2009-11-05  Jim Meyering  <meyering@redhat.com>
40531
40532         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40533         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40534
40535 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40536
40537         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40538
40539 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40540
40541         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40542
40543 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40544
40545         Fix link error.
40546         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40547         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40548
40549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40550
40551         * tests/test-func.c: Also test value of __func__.
40552
40553 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40554
40555         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40556         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40557
40558 2009-11-05  Bruno Haible  <bruno@clisp.org>
40559
40560         Fix link error.
40561         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40562         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40563         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40564
40565 2009-11-05  Bruno Haible  <bruno@clisp.org>
40566
40567         Tests for module 'inet_pton'.
40568         * modules/inet_pton-tests: New file.
40569         * tests/test-inet_pton.c: New file.
40570
40571 2009-11-05  Bruno Haible  <bruno@clisp.org>
40572
40573         Tests for module 'inet_ntop'.
40574         * modules/inet_ntop-tests: New file.
40575         * tests/test-inet_ntop.c: New file.
40576
40577 2009-11-04  Eric Blake  <ebb9@byu.net>
40578
40579         stdlib-safer: wrap all mkstemp variants
40580         * modules/mkostemp (configure.ac): Set witness.
40581         * modules/mkostemps (configure.ac): Likewise.
40582         * modules/mkstemps (configure.ac): Likewise.
40583         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40584         (mkstemps_safer): Wrap more functions.
40585         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40586         wrapping.
40587         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40588         (mkstemps_safer): Implement the wrappers.
40589
40590         mkstemps, mkostemps: new modules
40591         * modules/mkostemps: New module.
40592         * modules/mkstemps: Likewise.
40593         * lib/mkostemps.c (mkostemps): New file.
40594         * lib/mkstemps.c (mkstemps): Likewise.
40595         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40596         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40597         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40598         * modules/stdlib (Makefile.am): Substitute them.
40599         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40600         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40601         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40602         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40603         * MODULES.html.sh (File system functions): Mention them.
40604
40605         tempname: resync from glibc
40606         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40607         same values for __GT_FILE as glibc.  Abort even when assertions
40608         are disabled.
40609         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40610         match its value otherwise.  Allow idempotent inclusion.
40611         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40612         * lib/mkostemp.c (mkostemp): Likewise.
40613         * lib/mkstemp.c (mkstemp): Likewise.
40614         * lib/tmpfile.c (tmpfile): Likewise.
40615         * NEWS: Document this.
40616
40617         utimens: fix use of futimens on older Linux
40618         * lib/utimens.c (fdutimens): Use updated, rather than original,
40619         timespec to avoid bug in older Linux kernel.
40620         Reported by Simon Josefsson.
40621
40622 2009-11-04  Bruno Haible  <bruno@clisp.org>
40623
40624         Make num_processors more flexible and consistent.
40625         * lib/nproc.h (enum nproc_query): New type.
40626         (num_processors): Add a 'query' argument.
40627         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40628         (num_processors): Add a 'query' argument. Test the value of the
40629         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40630         mingw, count the number of CPUs available for the current process.
40631         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40632         Check for sched_getaffinity and sched_getaffinity_np.
40633         * modules/nproc (Depends-on): Add c-ctype, extensions.
40634         * NEWS: Mention the change.
40635
40636 2009-11-03  Bruno Haible  <bruno@clisp.org>
40637
40638         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40639
40640 2009-11-03  Jim Meyering  <meyering@redhat.com>
40641
40642         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40643         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40644         if it is defined.
40645
40646 2009-11-02  Eric Blake  <ebb9@byu.net>
40647
40648         mktime, timegm: share common declaration
40649         * lib/mktime-internal.h: New file.
40650         * lib/mktime.c: Use it rather than open-coding a declaration.
40651         * lib/timegm.c: Likewise.
40652         * modules/mktime (Files): Ship it.
40653         * modules/timegm (Files): Likewise.
40654         Suggested by Bruno Haible.
40655
40656         test-update-copyright: update test to match script changes
40657         * tests/test-update-copyright.sh: Avoid hard-coding perl
40658         location.  Don't update *.bak created by earlier runs.
40659
40660 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40661             Simon Josefsson  <simon@josefsson.org>
40662             Bruno Haible  <bruno@clisp.org>
40663
40664         Fix link error on Solaris 8.
40665         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40666         also in libnsl. Define also INET_PTON_LIB.
40667         * modules/inet_pton (Link): New section.
40668
40669 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40670             Bruno Haible  <bruno@clisp.org>
40671
40672         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40673         * modules/inet_ntop (Link): New section.
40674         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40675
40676 2009-11-02  Eric Blake  <ebb9@byu.net>
40677
40678         maint: avoid compiler warnings in m4 macros
40679         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40680         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40681
40682 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40683
40684         * m4/pmccabe2html.m4: Remove file.
40685         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40686         function.  Change maintainer.
40687         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40688         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40689         Courtès).
40690
40691 2009-10-31  Eric Blake  <ebb9@byu.net>
40692
40693         fseeko: fix m4 regression
40694         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40695         regression from 2009-10-27.
40696         Reported by Ralf Wildenhues.
40697
40698 2009-10-31  Jim Meyering  <meyering@redhat.com>
40699
40700         inttostr: aesthetics and improved (compile-time) safety
40701         Define inttype_is_signed rather than inttype_is_unsigned,
40702         since the sole use is via "#if inttype_is_signed".
40703         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40704         inttype_is_unsigned.
40705         * lib/offtostr.c (inttype_is_signed): Likewise.
40706         * lib/uinttostr.c (inttype_is_signed): Likewise.
40707         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40708         * lib/inttostr.c (inttostr): Use verify to cross-check the
40709         inttype_is_signed value and the signedness of the actual type.
40710         * modules/inttostr (Depends-on): Add verify.
40711
40712 2009-10-30  Eric Blake  <ebb9@byu.net>
40713
40714         build: avoid compiler warnings
40715         * lib/fchmodat.c (lchmod): Mark unused variables.
40716         * lib/getopt.c (_getopt_initialize): Likewise.
40717         * lib/mktime.c (__mktime_internal): Provide prototype.
40718         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40719         older gcc that do not understand #pragma GCC diagnostic.
40720         * lib/uinttostr.c (inttype_is_unsigned): Define.
40721         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40722
40723 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40724
40725         stat: fix compilation on AIX
40726         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40727         only see struct stat64.
40728
40729 2009-10-30  Eric Blake  <ebb9@byu.net>
40730
40731         exclude: make more robust
40732         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40733         rather than masking a coding bug.
40734         Suggested by Bruno Haible.
40735
40736 2009-10-30  Jim Meyering  <meyering@redhat.com>
40737
40738         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40739         Rather than putting #!/usr/bin/perl on the first line,
40740         start with a variant of what's recommended by "man perlrun" that
40741         invokes the first "perl" program from your shell's search path.
40742         * build-aux/gitlog-to-changelog: Replace #!... as above.
40743         Add a "Local Variables" perl mode setting.
40744         Prompted by a patch from Ludovic Courtès.
40745         Improved by Eric Blake.
40746         * build-aux/useless-if-before-free: Likewise.
40747         * build-aux/announce-gen: Likewise.
40748         * build-aux/update-copyright: Likewise.
40749
40750 2009-10-29  Eric Blake  <ebb9@byu.net>
40751
40752         filenamecat-lgpl: adjust clients
40753         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40754         filenamecat.
40755         * modules/renameat (Depends-on): Likewise.
40756
40757         filenamecat: split into filenamecat-lgpl
40758         * modules/filenamecat-lgpl: New module.
40759         * modules/filenamecat (Files): Move library-safe files into
40760         filenamecat-lgpl.
40761         (Depends-on): Add filenamecat-lgpl.
40762         (configure.ac): Declare witness.
40763         * lib/filenamecat.h (file_name_concat): Only declare when using
40764         GPL module.
40765         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40766         Move...
40767         * lib/filenamecat-lgpl.c: ...into new file.
40768         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40769         (gl_FILE_NAME_CONCAT): Use it.
40770         * MODULES.html.sh (File system functions): Mention new module.
40771
40772         argp: avoid memory leak
40773         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40774         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40775         base_name, since the latter malloc()s and can call exit().
40776         Leak introduced 2006-07-03.
40777
40778         dirname-lgpl: adjust clients that don't need full dirname
40779         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40780         * modules/filenamecat (Depends-on): Likewise.
40781         * modules/linkat (Depends-on): Likewise.
40782         * modules/mkancesdirs (Depends-on): Likewise.
40783         * modules/mkdir (Depends-on): Likewise.
40784         * modules/openat (Depends-on): Likewise.
40785         * modules/savewd (Depends-on): Likewise.
40786         * modules/rename (Depends-on): Likewise.
40787         (License): Relax license.
40788         * modules/mkdir-tests (Depends-on): Drop progname.
40789         (Makefile.am): Delete unneeded LDADD.
40790         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40791
40792         dirname: split into dirname-lgpl
40793         * modules/dirname-lgpl: New module.
40794         * modules/dirname (Files): Move library-safe files into
40795         dirname-lgpl.
40796         (Depends-on): Add dirname-lgpl.
40797         (configure.ac): Declare witness.
40798         * modules/double-slash-root (License): Relax license.
40799         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40800         module.
40801         * lib/dirname.c (dir_len, mdir_name): Move...
40802         * lib/dirname-lgpl.c: ...into new file.
40803         * lib/basename.c (last_component, base_len): Move...
40804         * lib/basename-lgpl.c: ...into new file.
40805         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40806         (gl_DIRNAME): Use it.
40807         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40808         Mention new module.
40809         * modules/dirname-tests (Depends-on): Add progname.
40810         * tests/test-dirname.c (program_name): Delete.
40811
40812         mkdir: make safe for libraries
40813         * modules/mkdir (Depends-on): Drop xalloc.
40814         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40815         exit.
40816
40817         tests: avoid some compiler warnings
40818         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
40819         literals.
40820         * tests/test-memchr.c (main): Avoid type mismatch.
40821         * tests/test-arpa_inet.c (main): Avoid unused parameters.
40822         * tests/test-base64.c (main): Likewise.
40823         * tests/test-getdelim.c (main): Likewise.
40824         * tests/test-gethostname.c (main): Likewise.
40825         * tests/test-getline.c (main): Likewise.
40826         * tests/test-netinet_in.c (main): Likewise.
40827         * tests/test-select.c (open_server_socket, main): Likewise.
40828         * tests/test-select-stdin.c (main): Likewise.
40829         * tests/test-sockets.c (main): Likewise.
40830         * tests/test-strsignal.c (main): Likewise.
40831         * tests/test-sys_select.c (main): Likewise.
40832         * tests/test-sys_socket.c (main): Likewise.
40833         * tests/test-u64.c (main): Likewise.
40834         * tests/test-xfprintf-posix.c (main): Likewise.
40835         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
40836
40837         sockets: avoid compiler warning
40838         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
40839
40840         maint: detect usage(1) and other suspicious exits
40841         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
40842
40843 2009-10-29  Jim Meyering  <meyering@redhat.com>
40844
40845         timespec: long-to-int truncation could make timespec_cmp malfunction
40846         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
40847         a multiple of 2^32 nanoseconds as no difference.
40848
40849 2009-10-28  Jim Meyering  <meyering@redhat.com>
40850
40851         fprintftime: wrap macro code argument in "do {...} while(0)"
40852         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
40853         cpy macro must be a statement that can be followed by a semicolon.
40854         Now that the else clause contains a comment and is hence longer
40855         than one line, I require curly braces.  That in turn requires
40856         that we wrap this code block in the standard do...while(0).
40857
40858         fprintftime: remove stray semicolon from previous change
40859         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
40860
40861         fprintftime: avoid a warning about ignored fwrite return value
40862         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
40863         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
40864         that is unsafe.
40865         * modules/fprintftime (Depends-on): Add ignore-value.
40866
40867         exclude: avoid an unwarranted warning
40868         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
40869
40870 2009-10-27  Eric Blake  <ebb9@byu.net>
40871
40872         fseek: avoid compilation failure when fflush is replaced
40873         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
40874         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
40875         module is in use.
40876         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
40877         module is not in use; since REPLACE_FSEEK worked otherwise.
40878         (GNULIB_FTELLO): Likewise for ftell.
40879         Reported by Ian Beckwith and others.
40880
40881 2009-10-27  Bruno Haible  <bruno@clisp.org>
40882
40883         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
40884         Reported by Jim Meyering.
40885
40886 2009-10-27  Jim Meyering  <jim@meyering.net>
40887             Bruno Haible  <bruno@clisp.org>
40888
40889         Avoid warning despite dropping the return value of fwrite.
40890         * lib/unicodeio.c: Include ignore-value.h.
40891         (fwrite_success_callback): Explicitly ignore fwrite's return value.
40892         * modules/unicodeio (Depends-on): Add ignore-value.
40893
40894 2009-10-26  Eric Blake  <ebb9@byu.net>
40895
40896         areadlinkat: fix fallback path
40897         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
40898         pointer and zero.
40899
40900 2009-10-22  Pádraig Brady  <P@draigBrady.com>
40901
40902         Use a better IO block size for modern systems
40903         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
40904         * lib/md2.c: Likewise.
40905         * lib/md4.c: Likewise.
40906         * lib/md5.c: Likewise.
40907         * lib/sha1.c: Likewise.
40908         * lib/sha256.c: Likewise.
40909         * lib/sha512.c: Likewise.
40910
40911 2009-10-22  Eric Blake  <ebb9@byu.net>
40912
40913         tests: avoid several compiler warnings
40914         * tests/test-getcwd.c (main): Avoid buffer underflow.
40915         * tests/test-getdate.c (main): String literals are not safe with
40916         putenv, so use setenv.  Declare unused argument.
40917         * modules/getdate-tests (Depends-on): Add setenv.
40918         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
40919         problems with string literals in char *.
40920         * tests/test-hash.c (main): Avoid shadowing declaration.
40921         (insert_new): Treat string literals as char const *.
40922         * tests/test-getopt.h (test_getopt): Likewise.
40923         (getopt_loop): Alter types to minimize casting elsewhere.
40924         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
40925         (test_getopt_long_posix): Likewise.
40926         (do_getopt_long): Add wrapper to minimize casting.
40927         * tests/test-atexit.c (clear_temp_file): Use void.
40928         * tests/test-areadlink-with-size.c (main): Declare unused
40929         arguments.
40930         * tests/test-areadlink.c (main): Likewise.
40931         * tests/test-areadlinkat-with-size.c (main): Likewise.
40932         * tests/test-areadlinkat.c (main): Likewise.
40933         * tests/test-canonicalize-lgpl.c (main): Likewise.
40934         * tests/test-canonicalize.c (main): Likewise.
40935         * tests/test-dirent-safer.c (main): Likewise.
40936         * tests/test-dirname.c (main): Likewise.
40937         * tests/test-dup2.c (main): Likewise.
40938         * tests/test-fchdir.c (main): Likewise.
40939         * tests/test-fcntl-h.c (main): Likewise.
40940         * tests/test-fcntl-safer.c (main): Likewise.
40941         * tests/test-fdopendir.c (main): Likewise.
40942         * tests/test-fdutimensat.c (main): Likewise.
40943         * tests/test-fflush.c (main): Likewise.
40944         * tests/test-filenamecat.c (main): Likewise.
40945         * tests/test-filevercmp.c (main): Likewise.
40946         * tests/test-fopen-safer.c (main): Likewise.
40947         * tests/test-fopen.c (main): Likewise.
40948         * tests/test-fpending.c (main): Likewise.
40949         * tests/test-fpurge.c (main): Likewise.
40950         * tests/test-freading.c (main): Likewise.
40951         * tests/test-fstatat.c (main): Likewise.
40952         * tests/test-fsync.c (main): Likewise.
40953         * tests/test-futimens.c (main): Likewise.
40954         * tests/test-getndelim2.c (main): Likewise.
40955         * tests/test-gettimeofday.c (main): Likewise.
40956         * tests/test-getopt.c (main): Likewise.
40957         * tests/test-i-ring.c (main): Likewise.
40958         * tests/test-inttypes.c (main): Likewise.
40959         * tests/test-link.c (main): Likewise.
40960         * tests/test-lstat.c (main): Likewise.
40961         * tests/test-math.c (main): Likewise.
40962         * tests/test-md5.c (main): Likewise.
40963         * tests/test-memchr2.c (main): Likewise.
40964         * tests/test-memrchr.c (main): Likewise.
40965         * tests/test-mkdir.c (main): Likewise.
40966         * tests/test-mkdirat.c (main): Likewise.
40967         * tests/test-mkfifoat.c (main): Likewise.
40968         * tests/test-open.c (main): Likewise.
40969         * tests/test-openat-safer.c (main): Likewise.
40970         * tests/test-openat.c (main): Likewise.
40971         * tests/test-quotearg.c (main): Likewise.
40972         * tests/test-rawmemchr.c (main): Likewise.
40973         * tests/test-readlink.c (main): Likewise.
40974         * tests/test-remove.c (main): Likewise.
40975         * tests/test-rename.c (main): Likewise.
40976         * tests/test-renameat.c (main): Likewise.
40977         * tests/test-rmdir.c (main): Likewise.
40978         * tests/test-sha1.c (main): Likewise.
40979         * tests/test-signal.c (main): Likewise.
40980         * tests/test-sigaction.c (main): Likewise.
40981         * tests/test-stat.c (main): Likewise.
40982         * tests/test-stat-time.c (main): Likewise.
40983         * tests/test-stddef.c (main): Likewise.
40984         * tests/test-stdint.c (main): Likewise.
40985         * tests/test-stdio.c (main): Likewise.
40986         * tests/test-stdlib.c (main): Likewise.
40987         * tests/test-strchrnul.c (main): Likewise.
40988         * tests/test-strerror.c (main): Likewise.
40989         * tests/test-string.c (main): Likewise.
40990         * tests/test-strtod.c (main): Likewise.
40991         * tests/test-strverscmp.c (main): Likewise.
40992         * tests/test-symlink.c (main): Likewise.
40993         * tests/test-symlinkat.c (main): Likewise.
40994         * tests/test-sys_stat.c (main): Likewise.
40995         * tests/test-sys_time.c (main): Likewise.
40996         * tests/test-time.c (main): Likewise.
40997         * tests/test-unistd.c (main): Likewise.
40998         * tests/test-unlink.c (main): Likewise.
40999         * tests/test-unlinkat.c (main): Likewise.
41000         * tests/test-utimens.c (main): Likewise.
41001         * tests/test-utimensat.c (main): Likewise.
41002         * tests/test-version-etc.c (main): Likewise.
41003         * tests/test-wchar.c (main): Likewise.
41004         * tests/test-wctype.c (main): Likewise.
41005         * tests/test-xprintf-posix.c (main): Likewise.
41006         * tests/test-posixtm.c (main): Likewise.
41007         (STREQ): Delete unused macro.
41008         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41009         shadowed variables.
41010         * tests/test-memchr.c (main): Likewise.
41011
41012 2009-10-21  Eric Blake  <ebb9@byu.net>
41013
41014         areadlinkat: avoid failure on older glibc
41015         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41016         rather than mis-comparing 0 against FUNC_RESULT of char*.
41017
41018 2009-10-21  Bruno Haible  <bruno@clisp.org>
41019
41020         * modules/stpncpy (License): Relicense under LGPLv2+.
41021         Reported by David Lutterkort <lutter@redhat.com>.
41022
41023 2009-10-20  Eric Blake  <ebb9@byu.net>
41024
41025         utimensat: work around Solaris 9 bug
41026         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41027         has trailing slash bugs.
41028         * tests/test-lutimens.h (test_lutimens): Enhance test.
41029         * tests/test-utimens.h (test_utimens): Likewise.
41030         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41031         * doc/posix-functions/utimes.texi (utimes): Likewise.
41032         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41033         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41034         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41035         * doc/posix-functions/futimens.texi (futimens): Likewise.
41036
41037         fdutimensat: new module
41038         * modules/fdutimensat: New file.
41039         * lib/fdutimensat.c (fdutimensat): Likewise.
41040         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41041         * MODULES.html.sh (File system functions): Mention module.
41042         * modules/fdutimensat-tests: New test.
41043         * tests/test-fdutimensat.c: Likewise.
41044
41045         doc: regenerate INSTALL
41046         * doc/INSTALL: Reflect recent autoconf update.
41047         * doc/INSTALL.ISO: Likewise.
41048         * doc/INSTALL.UTF-8: Likewise.
41049
41050 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41051
41052         acl: warn if ACL support is not detected
41053         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41054
41055 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41056
41057         * lib/nproc.h: Add extern "C" block for C++.
41058
41059 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41060             Bruno Haible  <bruno@clisp.org>
41061
41062         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41063         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41064         * doc/posix-functions/isalpha.texi: Likewise.
41065         * doc/posix-functions/isblank.texi: Likewise.
41066         * doc/posix-functions/iscntrl.texi: Likewise.
41067         * doc/posix-functions/isdigit.texi: Likewise.
41068         * doc/posix-functions/isgraph.texi: Likewise.
41069         * doc/posix-functions/islower.texi: Likewise.
41070         * doc/posix-functions/isprint.texi: Likewise.
41071         * doc/posix-functions/ispunct.texi: Likewise.
41072         * doc/posix-functions/isspace.texi: Likewise.
41073         * doc/posix-functions/isupper.texi: Likewise.
41074         * doc/posix-functions/isxdigit.texi: Likewise.
41075
41076 2009-10-18  Bruno Haible  <bruno@clisp.org>
41077
41078         Tests for module 'isblank'.
41079         * modules/isblank-tests: New file.
41080         * tests/test-isblank.c: New file.
41081
41082         New module 'isblank'.
41083         * lib/isblank.c: New file.
41084         * m4/isblank.m4: New file.
41085         * modules/isblank: New file.
41086         * doc/posix-functions/isblank.texi: Mention the new module.
41087
41088 2009-10-18  Bruno Haible  <bruno@clisp.org>
41089
41090         New module 'ctype'.
41091         * lib/ctype.in.h: New file.
41092         * m4/ctype.m4: New file.
41093         * modules/ctype: New file.
41094         * doc/posix-headers/ctype.texi: Mention the new module.
41095
41096 2009-10-18  Jim Meyering  <meyering@redhat.com>
41097
41098         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41099         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41100         right after its initialization, rather than farther down.
41101         Keeping these in close proximity makes it easier to ensure
41102         that each such variable is initialized.  E.g.,
41103
41104             LIB_CLOCK_GETTIME=
41105             AC_SUBST([LIB_CLOCK_GETTIME])
41106
41107         This change also increments these serial numbers.
41108         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41109         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41111
41112 2009-10-18  Bruno Haible  <bruno@clisp.org>
41113
41114         Don't let environment variables perturb build.
41115         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41116         (gl_PREREQ_GETHRXTIME): ... not here.
41117
41118 2009-10-18  Bruno Haible  <bruno@clisp.org>
41119
41120         Avoid symlink attack in localcharset module.
41121         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41122         (O_NOFOLLOW): Define fallback.
41123         (get_charset_aliases): Don't open the file if it is a symbolic link.
41124         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41125         gl_FCNTL_H.
41126         (gl_FCNTL_H): Require it.
41127         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41128         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41129         Reported by Fergal Glynn <fglynn@veracode.com>.
41130
41131 2009-10-18  Bruno Haible  <bruno@clisp.org>
41132
41133         Implement nproc for mingw.
41134         * lib/nproc.c: Include <windows.h>
41135         (num_processors): On native Windows platforms, try GetSystemInfo.
41136
41137 2009-10-18  Bruno Haible  <bruno@clisp.org>
41138
41139         Implement nproc for IRIX.
41140         * lib/nproc.c: Include <sys/sysmp.h>.
41141         (num_processors): On IRIX systems, try sysmp.
41142         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41143
41144 2009-10-18  Bruno Haible  <bruno@clisp.org>
41145
41146         Implement nproc for HP-UX.
41147         * lib/nproc.c: Include <sys/pstat.h>
41148         (num_processors): On HP-UX systems, try pstat_getdynamic.
41149         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41150         pstat_getdynamic.
41151
41152 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41153             Bruno Haible  <bruno@clisp.org>
41154
41155         Implement nproc for NetBSD, OpenBSD.
41156         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41157         (ARRAY_SIZE): New macro.
41158         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41159         * m4/nproc.m4: New file.
41160         * modules/nproc (Files): Add m4/nproc.m4.
41161         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41162         (Makefile.am): Instead, augment lib_SOURCES.
41163
41164 2009-10-18  Bruno Haible  <bruno@clisp.org>
41165
41166         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41167         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41168         sys/param.h.
41169
41170 2009-10-16  Eric Blake  <ebb9@byu.net>
41171
41172         utimensat: new module
41173         * modules/utimensat: New file.
41174         * lib/utimensat.c (utimensat): Likewise.
41175         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41176         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41177         so we can work around Linux bugs.
41178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41179         * modules/sys_stat (Makefile.am): Substitute them.
41180         * lib/sys_stat.in.h (utimensat): Declare it.
41181         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41182         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41183         * modules/utimensat-tests: New test.
41184         * tests/test-utimensat.c: Likewise.
41185
41186         utimens: let lutimens work on non-symlinks
41187         * lib/utimens.c (lutimens): Fall back to utimens rather than
41188         failing with ENOSYS, when file is not a symlink.
41189         (utimens): Reduce redirection.
41190         * tests/test-lutimens.h (test_lutimens): Update test to cover
41191         non-symlinks.
41192         * tests/test-utimens.h (test_utimens): Update test to cover
41193         symlinks.
41194         * tests/test-utimens.c (main): Update caller.
41195
41196         utimens: cache whether utimensat syscall works
41197         * lib/utimens.c (utimensat_works_really): New cache variable.
41198         (fdutimens, lutimens): Use it to avoid failing syscall.
41199
41200         test-stat-time, test-utimens: improve portability
41201         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41202         ext4 on alpha, and for cygwin.
41203         * tests/test-utimens-common.h: New file.
41204         (nap): Factor delays into single function.
41205         * tests/test-lutimens.h (test_lutimens): Use new header.
41206         * tests/test-futimens.h (test_futimens): Likewise.
41207         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41208         timestamps to occur from same machine, as was done previously for
41209         test_utimens.
41210         * modules/utimens-tests (Files): Ship new file.
41211         * modules/futimens-tests (Files): Likewise.
41212         Reported in part by Jim Meyering.
41213
41214         sys_stat: sort replacement declarations
41215         * lib/sys_stat.in.h: Sort declarations.
41216         * lib/futimens.c (futimens): Fix typo.
41217
41218 2009-10-15  Jim Meyering  <meyering@redhat.com>
41219
41220         don't let environment settings perturb build
41221         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41222         could cause a configure-time and/or build-time malfunction.
41223         Typically, a configure-time function-in-library test is performed
41224         via code like this:
41225
41226           LIB_VAR=
41227           AC_SUBST([LIB_VAR])
41228           prefix_saved_LIBS=$LIBS
41229             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41230                        [test "$ac_cv_search_FUNC" = "none required" ||
41231                         LIB_VAR=$ac_cv_search_FUNC])
41232           LIBS=$prefix_saved_LIBS
41233
41234         However, in each of the files affected by this change, the LIB_VAR=
41235         initialization was omitted.  Thus, when set in the environment, its
41236         value would propagate into generated Makefiles when FUNC is not found
41237         in LIB_NAME.
41238         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41239         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41241
41242 2009-10-14  Eric Blake  <ebb9@byu.net>
41243
41244         fchdir: avoid infinite recursion in mingw
41245         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41246         recursing.
41247
41248         test-stat-time: port to mingw
41249         * tests/test-stat-time.c (force_unlink): Return a value.
41250         (test_ctime) [W32]: Fix compilation error.
41251         (nap): Don't call usleep with too large an argument.  Use
41252         force_unlink.
41253         * doc/pastposix-functions/usleep.texi (usleep): Document the
41254         portability issue.
41255
41256 2009-10-13  Jim Meyering  <meyering@redhat.com>
41257
41258         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41259         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41260         * modules/pipe-filter-ii: Likewise.
41261         * modules/sys_socket-tests: Likewise.
41262         * modules/tsearch-tests: Likewise.
41263         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41264         (check): Depend on it.
41265
41266 2009-10-12  Eric Blake  <ebb9@byu.net>
41267
41268         utimens-tests: port to NFS file systems
41269         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41270         comparisons to avoid spurious failures from timestamp drift
41271         between NFS machines.
41272
41273 2009-10-12  Eric Blake  <ebb9@byu.net>
41274
41275         stat-time-tests: minor cleanups
41276         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41277         * tests/test-stat-time.c (nap): Separate assignment from call.
41278         Suggested by Paolo Bonzini and Bruno Haible.
41279
41280         sys_stat: guarantee struct timespec
41281         * lib/sys_stat.in.h (includes): Always include <time.h>
41282         * modules/sys_stat (Depends-on): Add time.
41283         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41284         mode_t permission values.
41285         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41286         get at subsecond timestamps.
41287
41288 2009-10-10  Eric Blake  <ebb9@byu.net>
41289
41290         futimens: new module
41291         * modules/futimens: New file.
41292         * lib/futimens.c (futimens): Likewise.
41293         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41294         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41295         we can work around Linux bugs.
41296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41297         * modules/sys_stat (Makefile.am): Substitute them.
41298         * lib/sys_stat.in.h (futimens): Declare it.
41299         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41300         * doc/posix-functions/futimens.texi (futimens): Likewise.
41301         * modules/futimens-tests: New test.
41302         * tests/test-futimens.c: Likewise.
41303
41304         utimens: introduce fdutimens
41305         * lib/utimens.h (fdutimens): New prototype.
41306         * lib/utimens.c (gl_futimens): Move guts...
41307         (fdutimens): ...to new interface.
41308         * tests/test-utimens.c (do_fdutimens): Use it.
41309
41310         utimens: add UTIME_NOW and UTIME_OMIT support
41311         * lib/utimens.c (validate_timespec, update_timespec): New helper
41312         functions.
41313         (gl_futimens, lutimens): Use them.
41314         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41315         stdbool, sys_stat.
41316         (Link): Mention resulting library dependency.
41317         * modules/utimecmp (Link): Likewise.
41318         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41319         (Makefile.am): Pick up library dependency.
41320         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41321         definition.
41322         * tests/test-sys_stat.c: Test the definitions.
41323         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41324         * NEWS: Document library dependency.
41325
41326         utimecmp: support symlink timestamps
41327         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41328         hashing when possible.  Use pathconf when available.
41329         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41330         * modules/utimecmp (Depends-on): Add lstat.
41331
41332         utimens: add lutimens interface
41333         * lib/utimens.c (lutimens): New function.
41334         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41335         * lib/utimens.h (lutimens): Declare new interface.
41336         * tests/test-utimens.c (main): Enhance test.
41337         * tests/test-lutimens.h (test_lutimens): New file.
41338         * modules/utimens-tests (Files): Distribute it.
41339         (Depends-on): Add symlink.
41340         (configure.ac): Check for usleep.
41341
41342         utimens: validate futimens usage
41343         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41344         fewer syscalls on failure later on.  Avoid compiler warning on
41345         mingw.
41346         * modules/utimens (Depends-on): Add dup2.
41347
41348         utimens: add test
41349         * modules/utimens-tests: New test.
41350         * tests/test-utimens.h: New file.
41351         * tests/test-futimens.h: Likewise.
41352         * tests/test-utimens.c: Likewise.
41353
41354         doc: mention timestamp portability issues
41355         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41356         instead.
41357         * doc/posix-functions/utime.texi (utime): Likewise.
41358         * doc/posix-functions/utimes.texi (utimes): Likewise.
41359         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41360         instead.
41361         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41362         module.
41363         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41364         Mention weakness with symlink timestamps.
41365         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41366         to utimensat/futimens instead.
41367         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41368
41369         test-dup2: enhance test
41370         * tests/test-dup2.c (main): Also check AT_FDCWD.
41371
41372         test-stat-time: avoid more spurious failures
41373         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41374         xfs; and avoid race if the two timestamps cross quantization edge.
41375
41376         relocatable: prefer 'file system' over 'filesystem'
41377         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41378         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41379         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41380         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41381         * lib/relocatable.c (compute_curr_prefix): Likewise.
41382
41383 2009-10-10  Jim Meyering  <meyering@redhat.com>
41384
41385         stat-time-tests: check for the usleep function
41386         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41387
41388 2009-10-10  Bruno Haible  <bruno@clisp.org>
41389
41390         * modules/xnanosleep: Put the Link section after the Include section.
41391
41392 2009-10-09  Eric Blake  <ebb9@byu.net>
41393
41394         dup2: work around FreeBSD 6.1 bug
41395         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41396         * doc/posix-functions/dup2.texi (dup2): Document it.
41397         Reported by Nelson H. F. Beebe and Jim Meyering.
41398
41399         test-stat-time: port to buggy NFS clients
41400         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41401         (test_ctime): Also skip test if mtime and ctime are skewed.
41402
41403         maint: prefer 'file system' over 'filesystem'
41404         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41405         * doc/posix-functions/lstat.texi (lstat): Likewise.
41406         * lib/file-has-acl.c (file_has_acl): Likewise.
41407         * lib/fwriteerror.c [TEST]: Likewise.
41408         * tests/test-areadlink.h (test_areadlink): Likewise.
41409         * tests/test-areadlinkat-with-size.c (main): Likewise.
41410         * tests/test-areadlinkat.c (main): Likewise.
41411         * tests/test-canonicalize-lgpl.c (main): Likewise.
41412         * tests/test-canonicalize.c (main): Likewise.
41413         * tests/test-fstatat.c (main): Likewise.
41414         * tests/test-linkat.c (main): Likewise.
41415         * tests/test-lstat.h (test_lstat_func): Likewise.
41416         * tests/test-mkdir.h (test_mkdir): Likewise.
41417         * tests/test-readlink.h (test_readlink): Likewise.
41418         * tests/test-remove.c (main): Likewise.
41419         * tests/test-rename.h (test_rename): Likewise.
41420         * tests/test-renameat.c (main): Likewise.
41421         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41422         * tests/test-symlink.h (test_symlink): Likewise.
41423         * tests/test-symlinkat.c (main): Likewise.
41424         * tests/test-unlink.h (test_unlink_func): Likewise.
41425         * tests/test-unlinkat.c (main): Likewise.
41426
41427         maint: make realtime library usage explicit
41428         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41429         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41430         * modules/settime (Link): Likewise.
41431         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41432
41433         test-stat-time: speed up execution
41434         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41435         warning on mingw.
41436         (nap): New helper function.
41437         (prepare_test): Use it to reduce sleep time.
41438         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41439         execution.
41440         * modules/stat-time-tests (configure.ac): Check for usleep.
41441
41442 2009-10-09  Jim Meyering  <meyering@redhat.com>
41443
41444         selinux-h: always use getfilecon wrappers
41445         * lib/getfilecon.c: New file.
41446         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41447         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41448         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41449         (fgetfilecon): Provide a stub.
41450         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41451         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41452         file unconditionally.
41453         When <selinux/selinux.h> is found, arrange to use wrappers.
41454         * modules/selinux-h (Files): Add getfilecon.c.
41455         (Makefile.am): Substitute include-next-related bits
41456         into the now-always-generated selinux/selinux.h file.
41457         * doc/glibc-functions/lgetfilecon.texi: New file.
41458         * doc/glibc-functions/fgetfilecon.texi: New file.
41459         * doc/glibc-functions/getfilecon.texi: New file.
41460         * doc/glibc-functions/getfilecon-desc.texi: New file.
41461         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41462         which to pull in the new files.
41463         * MODULES.html.sh (Misc): Add selinux-h.
41464
41465 2009-10-08  Jim Meyering  <meyering@redhat.com>
41466
41467         unistd: fix comment typo
41468         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41469
41470 2009-10-08  Eric Blake  <ebb9@byu.net>
41471
41472         areadlink: use SIZE_MAX consistently
41473         * modules/areadlink (Depends-on): Add stdint.
41474         * modules/areadlink-with-size (Depends-on): Likewise.
41475         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41476         gives NULL; drop sys/types, since unistd gives size_t; and add
41477         stdint for SIZE_MAX.
41478         (SIZE_MAX): Rely on headers.
41479         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41480         and add stdint.
41481         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41482         (SIZE_MAX): Likewise.
41483         (INITIAL_BUF_SIZE): Turn into enum.
41484         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41485
41486 2009-10-08  Jim Meyering  <meyering@redhat.com>
41487
41488         areadlinkat: avoid compilation failure
41489         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41490         Fix typo in comment.
41491
41492 2009-10-07  Eric Blake  <ebb9@byu.net>
41493
41494         areadlinkat-with-size: new module
41495         * modules/areadlinkat-with-size: New module.
41496         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41497         * lib/areadlink.h (areadlinkat): Declare it.
41498         * MODULES.html.sh (File system functions): Mention it.
41499         * modules/areadlinkat-with-size-tests: New test.
41500         * tests/test-areadlinkat-with-size.c: New file.
41501
41502         xreadlinkat: new module
41503         * modules/xreadlinkat: New module.
41504         * lib/xreadlinkat.c (xreadlinkat): New file.
41505         * lib/xreadlink.h (xreadlinkat): Declare it.
41506         * MODULES.html.sh (File system functions): Mention it.
41507
41508         areadlinkat: new module
41509         * lib/at-func.c (FUNC_FAIL): New define.
41510         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41511         * modules/areadlinkat: New module.
41512         * lib/linkat.c (areadlinkat): Move...
41513         * lib/areadlinkat.c (areadlinkat): ...to new file.
41514         * lib/areadlink.h (areadlinkat): Declare it.
41515         * modules/linkat (Depends-on): Add areadlinkat.
41516         * MODULES.html.sh (File system functions): Mention it.
41517         * modules/areadlinkat-tests: New test.
41518         * tests/test-areadlinkat.c: New file.
41519
41520         areadlink, areadlink-with-size: add tests
41521         * modules/areadlink-tests: New test.
41522         * modules/areadlink-with-size-tests: Likewise.
41523         * tests/test-areadlink.h: New file.
41524         * tests/test-areadlink.c: Likewise.
41525         * tests/test-areadlink-with-size.c: Likewise.
41526
41527         maint: minor cleanups
41528         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41529         _UNUSED_PARAMETER_ instead.
41530         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41531         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41532         * modules/linkat-tests (Files): Distribute test-link.h.
41533
41534         openat, utimens: whitespace cleanup
41535         * lib/openat.c: Prefer space throughout, rather than mix of 8
41536         spaces vs. tabs.
41537         * lib/at-func.c: Likewise.
41538         * lib/utimens.c: Likewise.
41539
41540         openat: avoid using wrong fd
41541         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41542         working directory chooses same fd.
41543         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41544
41545         mkdir, mkdirat: fix cygwin 1.5.x bug
41546         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41547         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41548         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41549         bug.
41550         (gl_PREREQ_MKDIR): Delete unused macro.
41551         * modules/mkdir (Files): Track file rename.
41552         (configure.ac): Update macro name.
41553         * modules/openat (Depends-on): Add mkdir.
41554         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41555
41556         mkdir, mkdirat: add tests
41557         * modules/mkdir-tests: New test.
41558         * tests/test-mkdir.h: New file.
41559         * tests/test-mkdir.c: Likewise.
41560         * tests/test-mkdirat.c: Likewise.
41561         * modules/openat-tests (Files): Add new files.
41562         (Makefile.am): Run new test.
41563
41564 2009-10-06  Eric Blake  <ebb9@byu.net>
41565
41566         doc: tweak *at function documentation
41567         * doc/posix-functions/faccessat.texi (faccessat): Mention
41568         known issue with replacement.
41569         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41570         * doc/posix-functions/linkat.texi (linkat): Likewise.
41571         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41572         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41573         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41574         * doc/posix-functions/renameat.texi (renameat): Likewise.
41575         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41576
41577         openat: fix GNU/Hurd bug in unlinkat
41578         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41579         broken.
41580         * doc/posix-functions/unlink.texi (unlink): Document this.
41581         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41582
41583         fdopendir: fix GNU/Hurd bug
41584         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41585         allowing non-directory fds.
41586         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41587         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41588         * modules/dirent (Makefile.am): Substitute it.
41589         * lib/dirent.in.h (fdopendir): Declare replacement.
41590         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41591         * tests/test-fdopendir.c (main): Test something other than
41592         /dev/null, since on Hurd that behaves like a directory.
41593
41594         test-symlink: port to GNU/Hurd
41595         * tests/test-symlink.h (test_symlink): Relax expected errno.
41596
41597         doc: tweak more cygwin information
41598         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41599         now compatible with glibc.
41600         * doc/posix-functions/getopt.texi (getopt): Likewise.
41601
41602         getopt-gnu: add another test
41603         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41604         guarantee behavior relied on by m4.
41605         * tests/test-getopt.c (main): Use it.
41606         * modules/getopt-posix-tests (Depends-on): Add setenv.
41607         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41608
41609         getopt: fix compilation on darwin
41610         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41611         include.
41612         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41613         Reported by Ludovic Courtès.
41614
41615 2009-10-06  Bruno Haible  <bruno@clisp.org>
41616
41617         * modules/size_max (Description): Discourage its use.
41618         Reported by Simon Josefsson.
41619
41620 2009-10-06  Jim Meyering  <meyering@redhat.com>
41621
41622         linkat: avoid compilation failure
41623         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41624
41625 2009-10-05  Eric Blake  <ebb9@byu.net>
41626
41627         linkat: support Linux 2.6.17
41628         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41629         linkat on Linux, but allow cache variable override.
41630         * lib/linkat.c (rpl_linkat): Define override.
41631         * modules/linkat (Depends-on): Add symlinkat.
41632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41633         * modules/unistd (Makefile.am): Substitute it.
41634         * lib/unistd.in.h (linkat): Declare replacement.
41635         Reported by Pádraig Brady.
41636
41637         quotearg: port test to systems with C.UTF-8 locale
41638         * tests/test-quotearg.c (struct result_strings): Add another
41639         member, differentiating between C.ASCII and C.UTF-8 handling.
41640         (compare_strings): Add parameter.
41641         (main): Adjust all callers.
41642
41643         getopt: avoid clash with FreeBSD _getopt_internal
41644         * lib/getopt.in.h (_getopt_internal): Override the name.
41645         * lib/getopt_int.h (includes): Pick up any overrides.
41646         Reported by Reuben Thomas.
41647
41648         hash: allow C89 compilation
41649         * lib/hash.c (check_tuning): Move declaration before statement.
41650         Reported by Reuben Thomas.
41651
41652 2009-10-05  Karl Berry  <karl@gnu.org>
41653
41654         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41655
41656 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41657             Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/uname.c (uname): Use a table-driven algorithm to compute
41660         Windows NT versions.
41661
41662 2009-10-04  Bruno Haible  <bruno@clisp.org>
41663
41664         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41665         program_invocation_short_name.
41666         * modules/progname (configure.ac): Test for presence of
41667         program_invocation_short_name.
41668         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41669
41670 2009-10-04  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/progname.c (set_program_name): Fix comment.
41673         Reported by Jim Meyering.
41674
41675 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/uname.c: Include <string.h>.
41679         (uname): Do only one call to GetVersionEx in the common case.
41680
41681 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41682             Bruno Haible  <bruno@clisp.org>
41683
41684         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41685         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41686         (uname): Add support for Windows CE and various non-x86 CPU types.
41687
41688 2009-10-03  Bruno Haible  <bruno@clisp.org>
41689
41690         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41691         invocation to tests/configure.ac.
41692         Reported by Ian Beckwith <ianb@erislabs.net>.
41693
41694 2009-10-02  Eric Blake  <ebb9@byu.net>
41695
41696         fchdir: avoid compiler warning
41697         * lib/fchdir.c (canonicalize_file_name)
41698         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41699
41700         test-open: support mingw errno values
41701         * tests/test-open.h (test_open): Relax test.
41702         * tests/test-fopen.h (test_fopen): Likewise.
41703         * tests/test-openat-safer.c (main): Likewise.
41704
41705         open: fix opening directory on mingw
41706         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41707
41708         test-open: on GNU/Hurd, /dev/null is a directory
41709         * tests/test-fopen.h (main): Rename...
41710         (test_fopen): ...to this.  Use a guaranteed non-directory when
41711         confirming open behavior on trailing slash.
41712         * tests/test-openat-safer.c (main): Likewise.
41713         * tests/test-open.h (main): Likewise....
41714         (test_open): ...to this.
41715         * tests/test-fopen.c (main): Adjust caller.
41716         * tests/test-fopen-safer.c (main): Likewise.
41717         * tests/test-open.c (main): Likewise.
41718         * tests/test-fcntl-safer.c (main): Likewise.
41719         Reported by Samuel Thibault.
41720
41721         rename, fchdir: don't ignore chdir failure
41722         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41723         * lib/rename.c (rpl_rename) [W32]: Likewise.
41724         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41725         an empty destination directory if source cannot be renamed,
41726         although there is still possibility for failure.
41727         * doc/posix-functions/rename.texi (rename): Document the race.
41728         Reported by Jim Meyering.
41729
41730         maint: cleanup whitespace in recent commits
41731         * lib/rename.c (rpl_rename): Remove tabs.
41732         * tests/test-link.h (test_link): Likewise.
41733         * lib/fchdir.c (get_name): Likewise.
41734         Reported by Jim Meyering.
41735
41736 2009-10-02  Ben Pfaff  <blp@gnu.org>
41737
41738         relocatable-prog-wrapper: Add missing dependency on
41739         double-slash-root.
41740         * modules/relocatable-prog-wrapper: Add dependency.
41741         Reported by Ian Beckwith <ianb@erislabs.net>.
41742
41743 2009-10-02  Eric Blake  <ebb9@byu.net>
41744
41745         renameat: fix Solaris bugs
41746         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41747         needed fixing.
41748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41749         * modules/stdio (Makefile.am): Substitute it.
41750         * lib/stdio.in.h (renameat): Declare replacement.
41751         * lib/renameat.c (rpl_renameat): Implement fix.
41752
41753         renameat: new module
41754         * modules/renameat: New file.
41755         * lib/renameat.c (renameat): Likewise.
41756         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41758         * modules/stdio (Makefile.am): Substitute them.
41759         * lib/stdio.in.h (renameat): Declare it.
41760         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41761         * doc/posix-functions/renameat.texi (renameat): Likewise.
41762         * modules/renameat-tests: New test.
41763         * tests/test-renameat.c: Likewise.
41764
41765         rename: fix mingw bugs
41766         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41767         directory overwrite bugs.
41768
41769         rename: fix another cygwin 1.5 bug
41770         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41771         checks.
41772         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41773         unnecessary cygwin workarounds.  Also work around bug with moving
41774         full directory onto an empty one.
41775         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41776
41777         rename-dest-slash: merge into rename module
41778         * modules/rename-dest-slash (Status): Mark obsolete.
41779         (Depends-on): Add rename.
41780         (Files): Let rename do it all.
41781         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41782         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41783         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41784         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41785         * lib/rename.c (rpl_rename): Update comments.
41786
41787         rename: fix cygwin 1.5.x bugs
41788         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41789         * lib/rename.c (rpl_rename): Work around them.
41790         * modules/rename (Depends-on): Add same-inode.
41791
41792         rename: fix Solaris 10 bug
41793         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41794         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41795         was the only bug.
41796
41797         rename: fix Solaris 9 bug
41798         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41799         on non-directory.  Avoid calling exit.
41800         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41801         strdup.
41802         * modules/rename-tests (Depends-on): Drop lstat.
41803         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41804         (gl_PREREQ_RENAME): Delete unused macro.
41805
41806         rename-dest-slash: fix NetBSD bug
41807         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41808         links.
41809         * modules/rename-dest-slash (Depends-on): Add same-inode.
41810
41811         rename-tests: new test, exposes several platform bugs
41812         * modules/rename-tests: New file.
41813         * tests/test-rename.h: Likewise.
41814         * tests/test-rename.c: Likewise.
41815         * doc/posix-functions/rename.texi (rename): Improve documentation,
41816         including bugs that will eventually be fixed in gnulib.
41817
41818 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
41819
41820         * lib/uname.c: Include <stdlib.h>
41821         (uname): Assume version info is available.
41822
41823 2009-10-02  Jim Meyering  <meyering@redhat.com>
41824
41825         gnu-web-doc-update: correct --help output
41826         * build-aux/gnu-web-doc-update: Make --help output relevant.
41827
41828         gnu-web-doc-update: add standard options
41829         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
41830
41831         gnu-web-doc-update: New module.
41832         Use this script to automatically update the on-line web documentation
41833         for your GNU project at http://www.gnu.org/software/$pkg/manual/
41834         * modules/gnu-web-doc-update: New file, from coreutils.
41835         * build-aux/gnu-web-doc-update: New script.
41836
41837 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
41838
41839         link: LoadLibrary is not needed.
41840         * lib/link.c: Use GetModuleHandle.
41841
41842 2009-10-01  Eric Blake  <ebb9@byu.net>
41843
41844         getopt: bump serial number
41845         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
41846         change.
41847
41848         tests: tighten link, rmdir, and remove tests
41849         * tests/test-link.h (includes): No need to use <config.h> here.
41850         Clean up if directory hard link was created, otherwise test for
41851         trailing '.'.
41852         * tests/test-linkat.c (main): Simplify.
41853         * tests/test-remove.c (main): Enhance test for trailing '.'.
41854         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41855
41856 2009-10-01  Jim Meyering  <meyering@redhat.com>
41857
41858         maint.mk: requiring "make major" was annoying, for a "minor" release.
41859         What is intended is "stable", to contrast with alpha and beta,
41860         so require "make stable", not "make major".
41861         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
41862         (get_tool_versions): Likewise.
41863         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
41864
41865 2009-09-30  Ben Pfaff  <blp@gnu.org>
41866
41867         Fix broken build of replacement for Windows tmpfile().
41868         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
41869         flags argument added along with the 'mkostemp' module.
41870
41871 2009-09-28  Bruno Haible  <bruno@clisp.org>
41872
41873         Avoid identifier clash with POSIX function 'remove' defined as a macro.
41874         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
41875         to 'remove_elt'.
41876         (gl_list_remove): Update.
41877         * lib/gl_list.c (gl_list_remove): Update.
41878         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
41879         to 'remove_elt'.
41880         (gl_oset_remove): Update.
41881         * lib/gl_list.c (gl_oset_remove): Update.
41882         Reported by Eric Blake.
41883
41884 2009-09-28  Eric Blake  <ebb9@byu.net>
41885
41886         doc: mention yet more cygwin 1.7 status
41887         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
41888         cygwin.
41889         * doc/glibc-functions/execvpe.texi (execvpe): New file.
41890         * doc/gnulib.texi (Glibc unistd.h): Mention it.
41891
41892         argp: fix test failure
41893         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
41894         that are not upper-case.  Pass correct range to tolower.
41895
41896 2009-09-27  Jim Meyering  <meyering@redhat.com>
41897
41898         test-yesno: work around sparc-dash here-document infelicity
41899         Without this change, the literal \177 byte in a here document
41900         would make dash 0.5.5.1-3 access uninitialized memory.
41901         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
41902         Instead, use a marker, "@", and filter through tr to create the desired
41903         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
41904
41905 2009-09-27  Bruno Haible  <bruno@clisp.org>
41906
41907         Disable untested support for new flavours of ACLs on AIX.
41908         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
41909         progress.
41910         * lib/set-mode-acl.c (qset_acl): Likewise.
41911
41912 2008-12-07  Bruno Haible  <bruno@clisp.org>
41913
41914         Add support for new flavours of ACLs on AIX. (Untested.)
41915         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
41916         (file_has_acl): Add support for newer AIX.
41917         * lib/set-mode-acl.c (qset_acl): Likewise.
41918         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
41919         Rainer Tammer <tammer@tammer.net>.
41920
41921 2009-09-26  Eric Blake  <ebb9@byu.net>
41922
41923         argp: fix compilation of getopt
41924         * lib/getopt.in.h (includes): Use different guard than glibc.
41925         Reported by Sergey Poznyakoff.
41926
41927         doc: mention more cygwin 1.7 status
41928         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
41929         bug.
41930         * doc/posix-functions/execl.texi (execl): Likewise.
41931         * doc/posix-functions/execle.texi (execle): Likewise.
41932         * doc/posix-functions/execlp.texi (execlp): Likewise.
41933         * doc/posix-functions/execv.texi (execv): Likewise.
41934         * doc/posix-functions/execve.texi (execve): Likewise.
41935         * doc/posix-functions/execvp.texi (execvp): Likewise.
41936         * doc/glibc-functions/canonicalize_file_name.texi
41937         (canonicalize_file_name): Cygwin 1.7 now provides this.
41938         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
41939         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
41940         on AT_SYMLINK_NOFOLLOW.
41941
41942 2009-09-24  Eric Blake  <ebb9@byu.net>
41943
41944         test-linkat: make test more robust
41945         * tests/test-linkat.c (main): Avoid collision with EEXIST.
41946
41947         getopt: fix inclusion guards for cygwin
41948         * modules/getopt-posix (Depends-on): Add include-next.
41949         (Makefile.am): Substitute more items in replacement header.
41950         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41951         <getopt.h>.
41952         * lib/getopt.in.h (includes): Use split inclusion guard, and
41953         prefer <getopt.h> over include <unistd.h> when one is present.
41954         (option): Also override name of 'struct option'.
41955
41956         same-inode: revert prior change; it is not yet ready
41957         * NEWS: Undo mention of this change.
41958         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41959         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41960         * lib/cycle-check.c (cycle_check): Likewise.
41961         * lib/same.c (same_name): Likewise.
41962         * lib/at-func2.c (at_func2): Likewise.
41963
41964 2009-09-23  Eric Blake  <ebb9@byu.net>
41965
41966         linkat: new module
41967         * modules/linkat: New file.
41968         * lib/at-func2.c (at_func2): Likewise.
41969         * lib/linkat.c (linkat): Likewise.
41970         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41971         * lib/openat-priv.h (at_func2): Add declaration.
41972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41973         * modules/unistd (Makefile.am): Substitute them.
41974         * lib/unistd.in.h (linkat): Declare it.
41975         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41976         * doc/posix-functions/linkat.texi (linkat): Likewise.
41977         * doc/posix-functions/link.texi (link): Tweak wording.
41978         * tests/test-link.c (main): Move guts...
41979         * tests/test-link.h (test_link): ...into new file.
41980         * modules/linkat-tests: New test.
41981         * tests/test-linkat.c: Likewise.
41982         * modules/link-tests (Files): Ship new file.
41983         (Depends-on): Add stdbool.
41984
41985         dirname: add library-safe mdir_name
41986         * lib/dirname.h (mdir_name): New prototype.
41987         * lib/dirname.c (dir_name): Move guts...
41988         (mdir_name): ...to new function that avoids xalloc_die.
41989
41990         fchdir: another mingw fix
41991         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41992         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41993         on mingw (where it has not yet been ported), and make it optional
41994         elsewhere.
41995         (_gl_register_fd): Use it.
41996
41997         same-inode: make SAME_INODE tri-state, to port to mingw
41998         * NEWS: Mention this change.
41999         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42000         st_ino always being 0.
42001         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42002         * lib/cycle-check.c (cycle_check): Likewise.
42003         * lib/same.c (same_name): Likewise.
42004
42005         lstat: avoid mingw compilation error
42006         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42007         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42008         lstat ourselves.
42009         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42010         was adequate.
42011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42012         the checks for lstat.
42013         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42014
42015         link: fix test failure on Solaris 9
42016         * lib/link.c (rpl_link): Don't assume link will catch bogus
42017         trailing slash on source.
42018
42019         test-symlinkat: enhance test
42020         * tests/test-readlink.c (main): Move guts...
42021         * tests/test-readlink.h (test_readlink): ...into new file.
42022         * tests/test-symlink.c (main): Move guts...
42023         * tests/test-symlink.h (test_symlink): ...into new file.
42024         * tests/test-symlinkat.c (main): Use new files for further
42025         coverage.
42026         (do_symlink, do_readlink): New helper functions.
42027         * modules/symlink-tests (Files): Ship new file.
42028         (Depends-on): Add stdbool.
42029         * modules/readlink-tests (Files): Ship new file.
42030         (Depends-on): Add stdbool.
42031         * modules/symlinkat-tests (Files): Use new files.
42032
42033 2009-09-23  Eric Blake  <ebb9@byu.net>
42034
42035         readlink: document portability issue with symlink length
42036         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42037         systems have bogus st_size on symlinks, and mention the
42038         areadlink-with-size module.
42039         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42040         * doc/posix-functions/readlink.texi (readlink): Mention the
42041         areadlink module, and ERANGE failure.
42042         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42043         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42044
42045         readlink: fix Solaris 9 bug with trailing slash
42046         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42047         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42048         * doc/posix-functions/readlink.texi (readlink): Document this.
42049         * modules/readlink-tests: New test.
42050         * tests/test-readlink.c: Likewise.
42051
42052         readlink: fix cygwin 1.5.x bug with return type
42053         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42054         * lib/unistd.in.h (readlink): Use ssize_t.
42055         * lib/readlink.c (readlink): Likewise.
42056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42057         * modules/unistd (Makefile.am): Substitute it.
42058         * lib/unistd.in.h (readlink): Declare replacement.
42059         * doc/posix-functions/readlink.texi (readlink): Document this.
42060
42061         symlink: use throughout gnulib
42062         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42063         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42064         symlink is not used.
42065         * modules/symlinkat (Depends-on): Add symlink.
42066         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42067         * modules/canonicalize-tests (Depends-on): Likewise.
42068         * modules/lstat-tests (Depends-on): Likewise.
42069         * modules/openat-tests (Depends-on): Likewise.
42070         * modules/remove-tests (Depends-on): Likewise.
42071         * modules/rmdir-tests (Depends-on): Likewise.
42072         * modules/unlink-tests (Depends-on): Likewise.
42073         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42074         * tests/test-canonicalize.c (symlink): Likewise.
42075         * tests/test-fstatat.c (symlink): Likewise.
42076         * tests/test-lstat.c (symlink): Likewise.
42077         * tests/test-remove.c (symlink): Likewise.
42078         * tests/test-rmdir.c (symlink): Likewise.
42079         * tests/test-unlink.c (symlink): Likewise.
42080         * tests/test-unlinkat.c (symlink): Likewise.
42081
42082         symlink: new module, for Solaris 9 bug
42083         * modules/symlink: New file.
42084         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42085         * lib/symlink.c: Likewise.
42086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42087         * modules/unistd (Makefile.am): Substitute them.
42088         * lib/unistd.in.h (symlink): Declare replacement.
42089         * MODULES.html.sh (File system functions): Mention it.
42090         * doc/posix-functions/symlink.texi (symlink): Likewise.
42091         * modules/symlink-tests: New test.
42092         * tests/test-symlink.c: Likewise.
42093
42094 2009-09-23  Bruno Haible  <bruno@clisp.org>
42095
42096         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42097         when needed.
42098         Test case: gnulib-tool --import --with-tests atexit inttypes.
42099         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42100
42101 2009-09-23  Bruno Haible  <bruno@clisp.org>
42102
42103         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42104         subcommand, not in a subshell.
42105
42106 2009-09-22  Eric Blake  <ebb9@byu.net>
42107
42108         unistd: sort replacement declarations
42109         * lib/unistd.in.h: Sort declarations.
42110
42111         open, openat: minor optimization
42112         * lib/open.c (open): If open succeeded, len is non-zero.
42113         * lib/openat.c (rpl_openat): Likewise.
42114
42115         link-follow: ensure correct result
42116         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42117         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42118         distinguish between possible failures.
42119
42120 2009-09-21  Eric Blake  <ebb9@byu.net>
42121
42122         fts: avoid compiler warning
42123         * lib/fts.c (dirent_inode_sort_may_be_useful)
42124         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42125
42126 2009-09-19  Bruno Haible  <bruno@clisp.org>
42127
42128         * lib/progreloc.c (canonicalize_file_name): New declaration.
42129
42130 2009-09-19  Eric Blake  <ebb9@byu.net>
42131
42132         link: fix quoting
42133         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42134
42135         openat: fix openat bugs on Solaris 9
42136         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42137         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42138         * modules/openat (Depends-on): Add open.
42139         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42140         * modules/fcntl-h (Makefile.am): Substitute it.
42141         * lib/fcntl.in.h (openat): Declare replacement.
42142         * doc/posix-functions/openat.texi (openat): Document this.
42143
42144         openat: move fstatat and unlinkat into correct files
42145         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42146         compiled.
42147         * lib/openat.c (fstatat, unlinkat): Move...
42148         * lib/fstatat.c (fstatat): ...into correct files.
42149         * lib/unlinkat.c (unlinkat): Likewise.
42150
42151         openat: fix unlinkat bugs on Solaris 9
42152         * lib/unlinkat.c (unlinkat): New file.
42153         * modules/openat (Depends-on): Add unlink.
42154         (Files): Distribute it.
42155         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42156         trailing slash behavior is broken.
42157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42158         * modules/unistd (Makefile.am): Substitute it.
42159         * lib/unistd.in.h (unlinkat): Declare replacement.
42160         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42161
42162         openat: fix fstatat bugs on Solaris 9
42163         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42164         stat.
42165         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42166
42167         test-unlinkat: enhance test, to expose Solaris 9 bug
42168         * tests/test-unlink.c (main): Factor guts...
42169         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42170         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42171         * tests/test-rmdir.c (main): Adjust caller.
42172         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42173         (unlinker): New helper function.
42174         (rmdirat): Enhance check.
42175         * modules/rmdir-tests (Depends-on): Add stdbool.
42176         * modules/unlink-tests (Depends-on): Likewise.
42177         (Files): Add test-unlink.h.
42178         * modules/openat-tests (Files): Likewise.
42179         (Depends-on): Add unlinkdir.
42180
42181         test-fstatat: new test, to expose Solaris 9 bugs
42182         * tests/test-stat.c (main): Factor guts...
42183         * tests/test-stat.h (test_stat_func): ...into new file.
42184         * tests/test-lstat.c (main): Factor guts...
42185         * tests/test-lstat.h (test_lstat_func): ...into new file.
42186         * tests/test-fstatat.c: New file.
42187         * modules/stat-tests (Files): Add test-stat.h.
42188         * modules/lstat-tests (Files): Add test-lstat.h.
42189         (Depends-on): Add stdbool.
42190         * modules/openat-tests (Depends-on): Add pathmax.
42191         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42192         (Makefile.am): Run new test.
42193
42194         remove: new module, for mingw and Solaris 9 bugs
42195         * modules/remove: New file.
42196         * lib/remove.c: Likewise.
42197         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42199         * modules/stdio (Makefile.am): Use them.
42200         * lib/stdio.in.h (remove): Declare replacement.
42201         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42202         * doc/posix-functions/remove.texi (remove): Likewise.
42203         * modules/remove-tests: New test.
42204         * tests/test-remove.c: Likewise.
42205
42206         unlink: new module, for Solaris 9 bug
42207         * modules/unlink: New file.
42208         * lib/unlink.c: Likewise.
42209         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42211         * modules/unistd (Makefile.am): Use them.
42212         * lib/unistd.in.h (stat): Declare replacement.
42213         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42214         * doc/posix-functions/unlink.texi (unlink): Likewise.
42215         * modules/unlink-tests: New test.
42216         * tests/test-unlink.c: Likewise.
42217
42218         lstat: fix Solaris 9 bug
42219         * lib/lstat.c (lstat): Also check for trailing slash on
42220         non-symlink, non-directories.  Use stat module to simplify logic.
42221         * doc/posix-functions/lstat.texi (lstat): Document it.
42222         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42223         (configure.ac): Check for symlink.
42224         * tests/test-lstat.c (main): Add more tests.
42225
42226         stat: add as dependency to other modules
42227         * modules/chown (Depends-on): Add stat.
42228         * modules/euidaccess (Depends-on): Likewise.
42229         * modules/fchdir (Depends-on): Likewise.
42230         * modules/isdir (Depends-on): Likewise.
42231         * modules/link (Depends-on): Likewise.
42232         * modules/lstat (Depends-on): Likewise.
42233         * modules/mkdir-p (Depends-on): Likewise.
42234         * modules/modechange (Depends-on): Likewise.
42235         * modules/open (Depends-on): Likewise.
42236         * modules/readlink (Depends-on): Likewise.
42237         * modules/same (Depends-on): Likewise.
42238
42239         stat: fix Solaris 9 bug
42240         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42241         slash.
42242         * lib/stat.c (rpl_stat): Work around it.
42243         * doc/posix-functions/stat.texi (stat): Update documentation.
42244
42245         stat: new module, for mingw bug
42246         * modules/stat: New file.
42247         * lib/stat.c: Likewise.
42248         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42249         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42250         * modules/sys_stat (Makefile.am): Use them.
42251         * lib/sys_stat.in.h (stat): Declare replacement.
42252         * lib/openat.c (fstatat): Deal with lstat and stat being function
42253         macros.
42254         * modules/openat (Depends-on): Add inline.
42255         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42256         * doc/posix-functions/stat.texi (stat): Likewise.
42257         * modules/stat-tests: New test.
42258         * tests/test-stat.c: Likewise.
42259
42260 2009-09-19  Jim Meyering  <meyering@redhat.com>
42261
42262         syntax-check: detect unnecessary inclusion of canonicalize.h
42263         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42264
42265 2009-09-19  Eric Blake  <ebb9@byu.net>
42266
42267         canonicalize-lgpl: adjust clients to use correct header
42268         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42269         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42270         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42271         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42272         * lib/progreloc.c (includes): Likewise.
42273
42274 2009-09-19  Jim Meyering  <meyering@redhat.com>
42275
42276         test-posixtm.c: correct a comment
42277         * tests/test-posixtm.c: Correct first-line comment.
42278         Spotted by Eric Blake.
42279
42280 2009-09-16  Jim Meyering  <meyering@redhat.com>
42281
42282         posixtm-tests: make T const-correct; add a test case
42283         * tests/test-posixtm.c (T): Declare const.
42284         Add a test for -(2^31+1).
42285         Remove useless can-succeed-only-in-2002 test.
42286
42287         posixtm-tests: adjust the sole failing test
42288         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42289         expected output matches what mktime now produces.  Cross-checked via
42290         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42291
42292         posixtm: move #ifdef'd tests into a new module
42293         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42294         * tests/test-posixtm.c: ... this new file.
42295         * modules/posixtm-tests: New module.
42296
42297 2009-09-19  Eric Blake  <ebb9@byu.net>
42298
42299         openat: simplify use of at-func.c
42300         * lib/at-func.c (includes): Include prerequisites here, to
42301         simplify requirements on client files.
42302         * lib/openat-priv.h: Add double-inclusion guard.
42303         * lib/faccessat.c (includes): Simplify.
42304         * lib/fchmodat.c (includes): Likewise.
42305         * lib/fchownat.c (includes): Likewise.
42306         * lib/mkdirat.c (includes): Likewise.
42307         * lib/mkfifoat.c (includes): Likewise.
42308         * lib/symlinkat.c (includes): Likewise.
42309
42310         openat: allow return of fd 0
42311         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42312         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42313         unistd-safer.
42314         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42315         <fcntl.h>; this module does not leak fds.
42316         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42317         must be allowed to return 0, leaving openat_safer to add the
42318         safety.
42319         (openat_permissive): Avoid writing to just-opened fd 2 if
42320         restoring the current directory fails.
42321         * lib/openat-die.c (openat_restore_fail): Add comment.
42322         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42323         (save_cwd): Guarantee safe fd, but without use of open_safer.
42324         * tests/test-openat.c: New test.
42325         * modules/openat-tests (Files, Makefile.am): Distribute and build
42326         new file.
42327
42328         relocatable-prog-wrapper: fix build
42329         * modules/relocatable-prog-wrapper (Files): Update name of
42330         canonicalize m4 file, broken on 2009-09-17.
42331         Reported by emad hajjar <aleppos@hotmail.com>.
42332
42333 2009-09-19  Bruno Haible  <bruno@clisp.org>
42334
42335         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42336         * lib/safe-alloc.c: Likewise.
42337         Reported by Ian Beckwith <ianb@erislabs.net>.
42338
42339 2009-09-18  Bruno Haible  <bruno@clisp.org>
42340
42341         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42342         Reported by <erobles@sensacd.com.mx>.
42343
42344 2009-09-17  Eric Blake  <ebb9@byu.net>
42345
42346         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42347         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42348         slashes when checking if last component is missing.
42349         * tests/test-canonicalize.c (main): Test this.
42350
42351         canonicalize, canonicalize-lgpl: honor // if distinct from /
42352         * modules/canonicalize (Files): Add double-slash-root.m4.
42353         * modules/canonicalize-lgpl (Files): Likewise.
42354         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42355         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42356         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42357         fallback definition.
42358         (canonicalize_filename_mode): Use it to protect //.
42359         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42360         (__realpath): Likewise.
42361         * tests/test-canonicalize.c (main): Test this.
42362         * tests/test-canonicalize-lgpl.c (main): Likewise.
42363         * modules/canonicalize-tests (Depends-on): Add same-inode.
42364         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42365
42366         canonicalize-lgpl: fix glibc bug with trailing slash
42367         * m4/canonicalize-lgpl.m4: Move contents...
42368         * m4/canonicalize.m4: ...here.
42369         (gl_CANONICALIZE_LGPL): Factor realpath check...
42370         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42371         glibc 2.3.5 bug, fixed 2005-04-27.
42372         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42373         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42374         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42375         * modules/canonicalize-lgpl (Files): Manage file rename.
42376         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42377         * modules/stdlib (Makefile.am): Substitute witness.
42378         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42379         is needed.
42380         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42381         replacement is required.
42382         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42383         * doc/glibc-functions/canonicalize_file_name.texi
42384         (canonicalize_file_name): Document this.
42385         * doc/posix-functions/realpath.texi (realpath): Likewise.
42386
42387         canonicalize-lgpl: reject non-directory with trailing slash
42388         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42389         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42390         catches failures in glibc 2.3.5.
42391         * tests/test-canonicalize.c (main): Likewise.
42392
42393         canonicalize-lgpl: use native realpath if it works
42394         * lib/canonicalize-lgpl.c (realpath): Guard with
42395         FUNC_REALPATH_WORKS.
42396         * lib/stdlib.in.h (realpath): Make declaration optional based on
42397         HAVE_REALPATH.
42398         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42399         native realpath works.
42400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42401         * modules/stdlib (Makefile.am): Substitute witness.
42402
42403         canonicalize, canonicalize-lgpl: use <stdlib.h>
42404         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42405         (Include): Mention <stdlib.h>.
42406         (configure.ac): Mention functions we provide.
42407         * modules/canonicalize (configure.ac): Likewise.
42408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42409         realpath if canonicalize_file_name is missing.
42410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42411         * modules/stdlib (Makefile.am): Substitute witnesses.
42412         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42413         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42414         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42415         * NEWS: Document this.
42416         * doc/glibc-functions/canonicalize_file_name.texi
42417         (canonicalize_file_name): Likewise.
42418         * doc/posix-functions/realpath.texi (realpath): Likewise.
42419         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42420
42421         test-canonicalize: consolidate into single C program
42422         * tests/test-canonicalize.sh: Delete; move setup into...
42423         * tests/test-canonicalize.c (main): ...the program, making it
42424         easier to run in debugger.  Add some tests.
42425         * modules/canonicalize-tests (Files): Remove unused file.
42426         (Depends-on): Add progname.
42427         (configure.ac, Makefile.am): Simplify.
42428
42429         test-canonicalize-lgpl: consolidate into single C program
42430         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42431         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42432         easier to run in debugger.  Add some tests.
42433         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42434         (configure.ac, Makefile.am): Simplify.
42435
42436         canonicalize: avoid resolvepath
42437         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42438         unnecessary checks.
42439         * lib/canonicalize.c (includes): Simplify.
42440         (canonicalize_file_name): Drop resolvepath implementation.
42441         * modules/canonicalize (Depends-on): Drop filenamecat.
42442
42443         canonicalize: don't lose errno
42444         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42445         over calls to free.
42446
42447         canonicalize: simplify errno handling
42448         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42449         assignment.
42450
42451         canonicalize, canonicalize-lgpl: update module dependencies
42452         * modules/canonicalize (Depends-on): Add extensions, lstat,
42453         pathmax, stdlib.
42454         (Files): Drop pathmax.h.
42455         (configure.ac): Adjust macro name.
42456         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42457         lstat, stdlib, sys_stat.
42458         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42459         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42460         extensions.
42461         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42462         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42463         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42464         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42465         declaration, if available.
42466         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42467         we can rely on the readlink module.
42468         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42469         (includes): Use <unistd.h> unconditionally.
42470
42471 2009-09-17  Eric Blake  <ebb9@byu.net>
42472
42473         maint: make Include sections of modules consistent
42474         * modules/alloca: Use only header name; no need to list #include.
42475         * modules/alloca-opt: Likewise.
42476         * modules/arpa_inet: Likewise.
42477         * modules/canon-host: Likewise.
42478         * modules/configmake: Likewise.
42479         * modules/dirent: Likewise.
42480         * modules/eealloc: Likewise.
42481         * modules/environ: Likewise.
42482         * modules/fchdir: Likewise.
42483         * modules/fcntl: Likewise.
42484         * modules/fcntl-h: Likewise.
42485         * modules/gethrxtime: Likewise.
42486         * modules/gettime: Likewise.
42487         * modules/ignore-value: Likewise.
42488         * modules/inet_ntop: Likewise.
42489         * modules/inet_pton: Likewise.
42490         * modules/inttypes: Likewise.
42491         * modules/isnand-nolibm: Likewise.
42492         * modules/isnanf-nolibm: Likewise.
42493         * modules/mbchar: Likewise.
42494         * modules/mbfile: Likewise.
42495         * modules/mbiter: Likewise.
42496         * modules/mbuiter: Likewise.
42497         * modules/netdb: Likewise.
42498         * modules/netinet_in: Likewise.
42499         * modules/nproc: Likewise.
42500         * modules/pagealign_alloc: Likewise.
42501         * modules/poll: Likewise.
42502         * modules/printf-frexp: Likewise.
42503         * modules/pthread: Likewise.
42504         * modules/putenv: Likewise.
42505         * modules/random_r: Likewise.
42506         * modules/relocatable-prog: Likewise.
42507         * modules/search: Likewise.
42508         * modules/select: Likewise.
42509         * modules/selinux-h: Likewise.
42510         * modules/settime: Likewise.
42511         * modules/signal: Likewise.
42512         * modules/size_max: Likewise.
42513         * modules/socklen: Likewise.
42514         * modules/ssize_t: Likewise.
42515         * modules/stdarg: Likewise.
42516         * modules/stdbool: Likewise.
42517         * modules/stddef: Likewise.
42518         * modules/stdint: Likewise.
42519         * modules/stdio: Likewise.
42520         * modules/stdlib: Likewise.
42521         * modules/string: Likewise.
42522         * modules/strings: Likewise.
42523         * modules/sys_file: Likewise.
42524         * modules/sys_ioctl: Likewise.
42525         * modules/sys_select: Likewise.
42526         * modules/sys_socket: Likewise.
42527         * modules/sys_stat: Likewise.
42528         * modules/sys_time: Likewise.
42529         * modules/sys_times: Likewise.
42530         * modules/sys_utsname: Likewise.
42531         * modules/sys_wait: Likewise.
42532         * modules/sysexits: Likewise.
42533         * modules/time: Likewise.
42534         * modules/times: Likewise.
42535         * modules/tmpfile: Likewise.
42536         * modules/trim: Likewise.
42537         * modules/unistd: Likewise.
42538         * modules/wchar: Likewise.
42539         * modules/wctype: Likewise.
42540
42541 2009-09-17  Bruno Haible  <bruno@clisp.org>
42542
42543         Make getdate.y compile on QNX and NetBSD 5 / i386.
42544         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42545         TIME_T_FITS_IN_LONG_INT.
42546         * lib/getdate.y (long_time_t): New type.
42547         (relative_time): Change type of 'seconds' field to long_time_t.
42548         (get_date): Update types of local variables. Check against overflow
42549         during conversion from long_time_t to time_t.
42550         Reported by Matt Kraai <kraai@ftbfs.org>
42551         and Hasso Tepper <hasso@netbsd.org>.
42552
42553 2009-09-17  Bruno Haible  <bruno@clisp.org>
42554
42555         * modules/COPYING: Update copyright years.
42556         * modules/README: Likeiwse.
42557         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42558         Reported by Ian Beckwith <ianb@erislabs.net>.
42559
42560 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42561
42562         * users.txt: Update references for gnuit package.
42563
42564 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42565
42566         * m4/getdelim.m4: Fix typo in copyright line.
42567
42568 2009-09-17  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/atoll.c: Use the standard header with GPL copyright.
42571         * lib/argz.in.h: Likewise.
42572         * lib/glob.c: Likewise.
42573         * lib/glob-libc.h: Likewise.
42574         * lib/random_r.c: Likewise.
42575         * lib/siglist.h: Likewise.
42576         * lib/strsignal.c: Likewise.
42577         Reported by Ian Beckwith <ianb@erislabs.net>.
42578
42579 2009-09-17  Eric Blake  <ebb9@byu.net>
42580
42581         rmdir: ensure correct dependency order
42582         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42583
42584 2009-09-17  Bruno Haible  <bruno@clisp.org>
42585
42586         Disable assertion that fails on NetBSD 5 / i386.
42587         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42588         Reported by Sam Steingold <sds@gnu.org>
42589         and Hasso Tepper <hasso@netbsd.org>.
42590
42591 2009-09-16  Eric Blake  <ebb9@byu.net>
42592
42593         unlinkdir: port to mingw
42594         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42595         on which no one can unlink a directory.
42596
42597         stdlib: sort witness names
42598         * modules/stdlib (Makefile.am): Sort replacements.
42599         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42600         * lib/stdlib.in.h: Likewise.
42601
42602         parse-duration-tests: avoid link failure
42603         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42604         LIBINTL.
42605         Reported by Tom G. Christensen.
42606
42607         openat-tests: ensure unlinkat behaves like rmdir
42608         * tests/test-rmdir.c (main): Factor guts...
42609         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42610         * modules/rmdir-tests (Files): Ship new file.
42611         * modules/openat-tests: New test.
42612         * tests/test-unlinkat.c: Likewise.
42613
42614         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42615         * modules/rmdir-errno (Status, Notice): Now obsolete.
42616
42617         rmdir: work around cygwin 1.5.x and mingw bugs
42618         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42619         * lib/rmdir.c (rmdir): Work around it.
42620         * modules/rmdir (Status, Notice): No longer obsolete.
42621         (Files): Add dos.m4.
42622         (Depends-on): Add unistd.
42623         (configure.ac): Set witnesses.
42624         (License): Relax to LGPLv2+.
42625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42626         * modules/unistd (Makefile.am): Substitute witnesses.
42627         * lib/unistd.in.h (rmdir): Declare replacement.
42628         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42629         * modules/rmdir-tests: New tests.
42630         * tests/test-rmdir.c: Likewise.
42631
42632 2009-09-15  Eric Blake  <ebb9@byu.net>
42633
42634         fchdir: improve use of replacement functions
42635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42637         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42638         REPLACE_CLOSEDIR.
42639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42640         * modules/sys_stat (Makefile.am): Substitute correct witness.
42641         * modules/dirent (Makefile.am): Likewise.
42642         * modules/unistd (Makefile.am): Likewise.
42643         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42644         * lib/unistd.in.h (dup): Likewise.
42645         * lib/sys_stat.in.h (fstat): Likewise.
42646
42647         maint: ignore gnulib-tool temp files
42648         * .gitignore: Ignore files created during gnulib-tool --test.
42649
42650 2009-09-13  Jim Meyering  <meyering@redhat.com>
42651
42652         posixtm: don't reject a time that specify "60" as the number of seconds
42653         * lib/posixtm.c (posixtime): The code to reject invalid dates
42654         would also reject a time specified with the .60 suffix.
42655         But POSIX allows that, in order to accommodate leap seconds.
42656         So don't reject it.
42657         (main): Adjust tests accordingly.
42658         * modules/posixtm (Depends-on): Add stpcpy.
42659
42660 2009-09-11  Jim Meyering  <meyering@redhat.com>
42661
42662         announce-gen: include [$release_type] in emitted Subject:
42663         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42664         e.g., [stable] in the emitted Subject: line.
42665
42666 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42667
42668         Remove obsolete macros from several modules.
42669         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42670         obsolete Autoconf macros with their modern counterparts.
42671         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42672         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42674         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42675         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42676         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42678         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42679         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42680         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42681         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42682         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42683         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42684         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42685         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42686         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42687         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42688         * m4/time_r.m4 (gl_TIME_R): Likewise.
42689         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42690         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42691         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42692
42693         Fix copyright header in build-aux scripts.
42694         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42695         recommendation.
42696         * build-aux/ncftpput-ftp: Likewise.
42697         * build-aux/update-copyright: Likewise.
42698
42699 2009-09-09  Eric Blake  <ebb9@byu.net>
42700
42701         test-link: allow Linux choice of errno
42702         * tests/test-link.c (main): Relax test for alternate error.
42703
42704         strndup: fix improper m4 caching
42705         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42706         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42707         (gl_PREREQ_STRNDUP): Delete.
42708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42709         * modules/string (Makefile.am): Substitute it.
42710         * lib/string.in.h (strndup): Modernize prototype.
42711
42712         getcwd: port to mingw
42713         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42714         different from the POSIX assumptions made throughout the getcwd
42715         module; fortunately, the mingw getcwd does not need replacement.
42716         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42717         * modules/getcwd-tests: New test.
42718         * tests/test-getcwd.c: Likewise.
42719
42720         link: fix platform bugs
42721         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42722         * lib/link.c (link): Work around them.  Fix related mingw bug.
42723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42724         * modules/unistd (Makefile.am): Substitute it.
42725         * lib/unistd.in.h (link): Declare replacement.
42726         * doc/posix-functions/link.texi (link): Document this.
42727         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42728
42729         test-link: consolidate into single C program, test more cases
42730         * tests/test-link.sh: Delete.
42731         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42732         at least Cygwin and Solaris.
42733         * modules/link-tests (Files): Remove unused file.
42734         (Depends-on): Add errno, sys_stat.
42735         (Makefile.am): Simplify.
42736
42737 2009-09-08  Bruno Haible  <bruno@clisp.org>
42738
42739         Work around towlower, towupper bug on mingw.
42740         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42741         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42742         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42743         * doc/posix-functions/towupper.texi: Likewise.
42744         Reported by Eric Blake.
42745
42746 2009-09-08  Jim Meyering  <meyering@redhat.com>
42747
42748         build: don't try to run autoheader if we don't use it
42749         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42750         is not used in configure.ac.
42751
42752 2009-09-08  Eric Blake  <ebb9@byu.net>
42753
42754         euidaccess: fix compilation error
42755         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42756
42757         rawmemchr: relax license
42758         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42759         okay.
42760         Reported by Jim Meyering.
42761
42762         mkfifoat: new module
42763         * modules/mkfifoat: New file.
42764         * lib/mkfifoat.c: Likewise.
42765         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42766         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42767         * modules/sys_stat (Makefile.am): Use them.
42768         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42769         * MODULES.html.sh (File system functions): Mention module.
42770         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42771         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42772         * modules/mkfifoat-tests: New test.
42773         * tests/test-mkfifoat.c: Likewise.
42774
42775         strchrnul: relax license
42776         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42777         okay.
42778         Reported by Jim Meyering.
42779
42780 2009-09-08  Eric Blake  <ebb9@byu.net>
42781
42782         fstatat: fix compilation on Solaris
42783         * lib/fstatat.c (includes): Add fcntl.h.
42784         Reported by Pádraig Brady.
42785
42786 2009-09-07  Eric Blake  <ebb9@byu.net>
42787
42788         rename: modernize replacement
42789         * modules/rename (Depends-on): Add stdio.
42790         (configure.ac): Declare witness.
42791         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42792         stdio take care of replacement.
42793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42794         * modules/stdio (Makefile.am): Substitute them.
42795         * lib/stdio.in.h (rename): Declare replacement.
42796         * lib/rename.c (includes): Allow cross-compilation to non-windows
42797         machines.
42798         * doc/posix-functions/rename.texi (rename): Improve
42799         documentation.
42800
42801         stdio: sort witness names
42802         * modules/stdio (Makefile.am): Sort replacements.
42803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42804         * lib/stdio.in.h: Likewise.
42805
42806         getcwd: minor cleanups
42807         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42808         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42809
42810         openat: provide more convenience names
42811         * modules/faccessat (configure.ac): Add C witness.
42812         * lib/unistd.in.h (readlinkat): Fix typo.
42813         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42814         convenience wrappers.
42815         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42816         wrappers in syntax checks.
42817
42818 2009-09-06  Eric Blake  <ebb9@byu.net>
42819
42820         doc: fix comments in recent patches
42821         * lib/faccessat.c: Mention correct function.
42822         * lib/fchmodat.c: Likewise.
42823         * lib/fchownat.c: Likewise.
42824         * lib/symlinkat.c: Likewise.
42825         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
42826         constants.
42827
42828         faccessat, symlinkat: continue cleanup of previous patch
42829         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
42830         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42831         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
42832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
42833         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
42834         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
42835         set.
42836
42837 2009-09-06  Bruno Haible  <bruno@clisp.org>
42838
42839         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
42840         (fstatat): Declare if GNULIB_FSTATAT is set.
42841         (mkdirat): Declare if GNULIB_MKDIRAT is set.
42842         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
42843         (unlinkat): Declare if GNULIB_UNLINKAT is set.
42844         * modules/fcntl-h (Files): Remove m4/openat.m4.
42845         * modules/sys_stat (Files): Remove m4/openat.m4.
42846         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
42847         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
42848         * modules/unistd (Files): Remove m4/openat.m4.
42849         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
42850         GNULIB_OPENAT.
42851         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
42852         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
42853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
42854         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
42855         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
42856         gl_OPENAT_DEFAULTS.
42857         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
42858         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
42859         Don't require gl_OPENAT_DEFAULTS.
42860         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
42861         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
42862         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
42863         (gl_OPENAT_DEFAULTS): Remove macro.
42864
42865 2009-09-06  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/openat (configure.ac): Remove unneeded witness.
42868
42869 2009-09-06  Bruno Haible  <bruno@clisp.org>
42870
42871         Set errno to ENOSYS when a function is entirely unsupported.
42872         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
42873         EOPNOTSUPP.
42874         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42875         * modules/chown (Depends-on): Remove errno.
42876
42877 2009-09-06  Bruno Haible  <bruno@clisp.org>
42878
42879         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
42880
42881 2009-09-06  Bruno Haible  <bruno@clisp.org>
42882
42883         * lib/sys_stat.in.h: Fix preprocessor command indentation.
42884
42885 2009-09-06  Ben Pfaff  <blp@gnu.org>
42886             Bruno Haible  <bruno@clisp.org>
42887
42888         Work around a glibc bug in strtok_r.
42889         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
42890         Undefine if UNDEFINE_STRTOK_R is set.
42891         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
42892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42893         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
42894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
42895         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
42896         UNDEFINE_STRTOK_R.
42897         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
42898
42899 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
42900
42901         exclude: minor fix
42902         * lib/exclude.c: Include wctype.h
42903
42904 2009-09-06  Akim Demaille  <demaille@gostai.com>
42905
42906         bootstrap: improve error message
42907         * build-aux/bootstrap (find_tool): Upon failure, report the list
42908         of candidates.
42909         Honor the initial value of the envvar.
42910
42911 2009-09-05  Eric Blake  <ebb9@byu.net>
42912
42913         symlinkat: new module
42914         * modules/symlinkat: New file.
42915         * lib/symlinkat.c: Likewise.
42916         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
42917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42918         * modules/unistd (Makefile.am): Use them.
42919         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
42920         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
42921         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
42922         * MODULES.html.sh (File system functions): Mention module.
42923         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42924         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42925         * modules/symlinkat-tests: New test.
42926         * tests/test-symlinkat.c: Likewise.
42927
42928         test-openat-safer: add more checks
42929         * tests/test-openat-safer.c (main): Check more code paths.
42930
42931 2009-09-05  Jim Meyering  <meyering@redhat.com>
42932
42933         syntax-check: detect unnecessary inclusion of openat.h
42934         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
42935
42936 2009-09-05  Bruno Haible  <bruno@clisp.org>
42937
42938         Support towlower, towupper.
42939         * doc/posix-functions/towlower.texi: Mention module wctype.
42940         * doc/posix-functions/towupper.texi: Likewise.
42941         * lib/wctype.in.h (towlower, towupper): New functions.
42942         * tests/test-wctype.c: Include stdio.h, stdlib.h.
42943         (ASSERT): New macro.
42944         (e): New variable.
42945         (main): Test also towlower, towupper. Test WEOF argument.
42946         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42947
42948 2009-09-05  Bruno Haible  <bruno@clisp.org>
42949
42950         Fix conversion behaviour when the input is invalid.
42951         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42952         mark occurring in first pass of indirect conversion.
42953         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42954         input.
42955         Found by clang's static analyzer.
42956
42957 2009-09-05  Bruno Haible  <bruno@clisp.org>
42958
42959         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42960         where direct conversion is possible.
42961
42962 2009-09-04  Eric Blake  <ebb9@byu.net>
42963
42964         openat: fail with ENOENT on empty name
42965         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42966         buffer.
42967
42968         link-follow: fix logic bug in prior patch
42969         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42970         reversed sense of yes and no in prior patch.  Avoid confusing
42971         compilation failure with desired semantics.
42972
42973         link-follow: accommodate mingw and cross-compilation
42974         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42975         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42976         cross-compilation results to -1, to make linkat easier to
42977         implement when cross-compiling.  Trivially support mingw.
42978         * modules/link-follow (configure.ac): Call new name.
42979         * NEWS: Mention this.
42980
42981 2009-09-03  Eric Blake  <ebb9@byu.net>
42982
42983         faccessat: compile replacement
42984         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42985         needed.
42986
42987         fts: fix compilation error
42988         * lib/fts.c (includes): Re-add "openat.h", for
42989         openat_needs_fchdir.
42990
42991         faccessat: new module
42992         * modules/faccessat: New file.
42993         * lib/faccessat.c: Likewise.
42994         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42996         * modules/unistd (Makefile.am): Use it.
42997         * lib/unistd.in.h (faccessat): Declare it.
42998         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42999         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43000         * MODULES.html.sh (File system functions): Mention it.
43001         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43002         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43003
43004         euidaccess: prefer POSIX over non-standard implementation
43005         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43006         * lib/euidaccess.c (euidaccess): Use it if available.
43007
43008         openat: make template easier to use
43009         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43010         AT_FUNC_F2 to be undefined.
43011         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43012         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43013         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43014         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43015         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43016         Likewise.
43017         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43018         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43019         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43020         Likewise.
43021
43022         openat: declare in POSIX headers
43023         * NEWS: Mention this.
43024         * modules/openat (configure.ac): Declare witnesses.
43025         (Depends-on): Add fcntl-h, sys_stat, unistd.
43026         (Include): Mention correct headers.
43027         * modules/fcntl-h (Depends-on): Add link-warning.
43028         (Files): Add openat.m4.
43029         (Makefile.am): Substitute witnesses.
43030         * modules/sys_stat (Files, Makefile.am): Likewise.
43031         * modules/unistd (Files, Makefile.am): Likewise.
43032         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43033         (gl_OPENAT_DEFAULTS): New macro.
43034         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43036         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43037         (SYS_STAT_H): Remove unused variable.
43038         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43039         * lib/fcntl--.h (includes): Remove unneeded header.
43040         * lib/openat-safer.c (includes): Likewise.
43041         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43042         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43043         appropriate headers.
43044         (__OPENAT_PREFIX): Delete.
43045         * lib/fcntl.in.h (openat): Provide declaration.
43046         (AT_FDCWD): Fix Solaris bug.
43047         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43048         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43049         * lib/fchmodat.c (includes):  Adjust to find declaration.
43050         * lib/fchownat.c (includes): Likewise.
43051         * lib/mkdirat.c (includes): Likewise.
43052         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43053         still visible.
43054
43055 2009-09-02  Eric Blake  <ebb9@byu.net>
43056
43057         errno: use consistently
43058         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43059         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43060         * lib/canonicalize.c (ELOOP): Likewise.
43061         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43062         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43063         * lib/lchown.c (EOPNOTSUPP): Likewise.
43064         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43065         * lib/savewd.c (ESTALE): Likewise.
43066         * lib/settime.c (ENOSYS): Likewise.
43067         * lib/utimens.c (ENOSYS): Likewise.
43068         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43069         * lib/chdir-safer.c (ELOOP): Likewise.
43070         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43071         * modules/c-stack (Depends-on): Add errno.
43072         * modules/canonicalize (Depends-on): Likewise.
43073         * modules/chdir-safer (Depends-on): Likewise.
43074         * modules/fdopendir (Depends-on): Likewise.
43075         * modules/inet_ntop (Depends-on): Likewise.
43076         * modules/inet_pton (Depends-on): Likewise.
43077         * modules/lchown (Depends-on): Likewise.
43078         * modules/openat (Depends-on): Likewise.
43079         * modules/savewd (Depends-on): Likewise.
43080         * modules/settime (Depends-on): Likewise.
43081         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43082
43083         fts: avoid leaking fds
43084         * modules/fts (Depends-on): Add cloexec.
43085         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43086         flag.
43087
43088         fts: make directory fds more robust
43089         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43090         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43091
43092         backupfile, chdir-long, fts, savedir: make safer
43093         * lib/backupfile.c (includes): Use "dirent--.h", since
43094         numbered_backup can write to stderr during readdir.
43095         * lib/savedir.c (includes): Likewise.
43096         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43097         emulation can write to stderr on failure.
43098         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43099         * lib/getcwd.c: Document why opendir_safer is unused.
43100         * lib/glob.c: Likewise.
43101         * lib/scandir.c: Likewise.
43102         * lib/openat-proc.c: Likewise, for open_safer.
43103         * modules/backupfile (Depends-on): Add dirent-safer.
43104         * modules/savedir (Depends-on): Likewise.
43105         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43106         * modules/chdir-long (Depends-on): Add openat-safer.
43107
43108         openat-safer: new module
43109         * modules/openat-safer: New file.
43110         * lib/openat-safer.c: Likewise.
43111         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43112         * lib/fcntl-safer.h (openat_safer): Declare.
43113         * lib/fcntl--.h (openat): Override.
43114         * MODULES.html.sh (File descriptor based I/O): Mention it.
43115         * lib/openat.h: Add double-inclusion guards.
43116         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43117         "fcntl--.h", so we can implement openat.
43118         * modules/openat-safer-tests: New test.
43119         * tests/test-openat-safer.c: New file.
43120
43121         dirent-safer: new module
43122         * modules/dirent-safer: New file.
43123         * lib/dirent--.h: Likewise.
43124         * lib/dirent-safer.h: Likewise.
43125         * lib/opendir-safer.c: Likewise.
43126         * m4/dirent-safer.m4: Likewise.
43127         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43128         * modules/dirent-safer-tests: New test.
43129         * tests/test-dirent-safer.c: New file.
43130         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43131
43132         fdopendir: optimize on mingw
43133         * lib/unistd.in.h (_gl_directory_name): New prototype.
43134         * lib/fchdir.c (_gl_directory_name): Implement it.
43135         (fchdir): Use it to simplify implementation.
43136         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43137         fchdir, when available, to avoid calling [f]chdir().
43138
43139         fdopendir: split into its own module
43140         * lib/openat.c (fdopendir): Move...
43141         * lib/fdopendir.c: ...into new file.
43142         * modules/fdopendir: New module.
43143         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43144         * modules/openat (Depends-on): Add fdopendir.
43145         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43146         fdopendir here.
43147         * modules/savedir (Depends-on): Only need fdopendir, not full
43148         openat.
43149         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43150         * lib/openat.h (fdopendir): Drop prototype.
43151         * lib/dirent.in.h (fdopendir): Provide prototype.
43152         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43153         * modules/dirent (Makefile.am): Substitute them.
43154         * MODULES.html.sh (File system functions): Mention it.
43155         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43156         * modules/fdopendir-tests: New file.
43157         * tests/test-fdopendir.c: Likewise.
43158
43159         fchdir: use more consistent macro convention
43160         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43161         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43162         REPLACE_FCHDIR, rather than relying on config.h macros.
43163         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43164         inside a single make-time REPLACE_FCHDIR block, rather than using
43165         the config.h FCHDIR_REPLACEMENT.
43166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43167         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43168         Manage fstat replacement.
43169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43170         REPLACE_FCHDIR.
43171         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43172         (Makefile.am): Substitute REPLACE_FCHDIR.
43173         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43174         FCHDIR_REPLACEMENT.
43175         * lib/dup-safer.c (dup_safer): Likewise.
43176         * lib/dup2.c (rpl_dup2): Likewise.
43177         * lib/dup3.c (rpl_dup3): Likewise.
43178         * lib/open.c (rpl_open): Likewise.
43179
43180         fchdir: simplify error handling, and support dup3
43181         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43182         stdbool, malloc-posix, realloc-posix.
43183         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43184         (ensure_dirs_slot): Return false on allocation failure.
43185         (rpl_dup2): Delete.
43186         (_gl_register_dup): New function.
43187         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43188         (_gl_register_fd): Close fd on allocation failure.
43189         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43190         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43191         prototype.
43192         (rpl_dup2_fchdir): Delete prototype.
43193         * lib/open.c (open): Update caller.
43194         * lib/dup2.c (dup2): Track fchdir metadata.
43195         * lib/dup3.c (dup3): Likewise.
43196         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43198
43199 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43200
43201         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43202         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43203         don't pass arguments to AC_OUTPUT.
43204
43205 2009-09-02  Bruno Haible  <bruno@clisp.org>
43206
43207         * modules/mkdtemp (License): Relicense under LGPLv2+.
43208         Reported by Paolo Bonzini.
43209
43210 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43211
43212         Replace uses of obsolete autoconf macros in Jim's modules.
43213         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43214         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43215         can evoke a warning from autoconf when run with -Wobsolete
43216         enabled.  They were declared obsolete for good reasons (see
43217         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43218         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43219         should not continue using the deprecated macros.
43220         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43221         obsolete Autoconf macros with modern counterparts.
43222         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43223         * m4/dos.m4 (gl_AC_DOS): Likewise.
43224         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43225         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43226         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43227         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43228         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43230         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43231         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43232         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43233         Likewise.
43234         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43235         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43236         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43237         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43238         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43239         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43240
43241 2009-09-01  Eric Blake  <ebb9@byu.net>
43242
43243         fchdir: fix off-by-one bug in previous patch
43244         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43245         (_gl_unregister_fd): Delete useless if.
43246
43247 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43248
43249         maint.mk: sort the list of syntax-check rules
43250         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43251         easier to get a sense of progress when the rules are run sequentially
43252         and take a long time.
43253
43254 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43255
43256         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43257         * modules/netinet_in: Likewise.
43258         * modules/sys_file: Likewise.
43259         * modules/sys_ioctl: Likewise.
43260         * modules/sys_select: Likewise.
43261         * modules/sys_socket: Likewise.
43262         * modules/sys_stat: Likewise.
43263         * modules/sys_time: Likewise.
43264         * modules/sys_times: Likewise.
43265         * modules/sys_utsname: Likewise.
43266         * modules/sys_wait: Likewise.
43267
43268 2009-09-01  Jim Meyering  <meyering@redhat.com>
43269
43270         fts: help ensure that return values are not ignored
43271         * lib/fts_.h (__GNUC_PREREQ): Define.
43272         (__attribute_warn_unused_result__): Define.
43273         (fts_children, fts_close, fts_open, fts_read): Declare with
43274         __attribute_warn_unused_result__.
43275
43276         fts: fts_close now fails also when closing a dir file descriptor fails
43277         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43278         and propagate to caller, along with errno.
43279
43280         announce-gen: correct formatting in --help output
43281         * build-aux/announce-gen (usage): Move the one-line description in
43282         --help output "up", to where it belongs, just after Usage:.
43283
43284 2009-08-31  Eric Blake  <ebb9@byu.net>
43285
43286         fchdir: port to mingw
43287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43288         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43289         opened, then use a substitute.
43290         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43291         replacement.
43292         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43293         (_gl_register_fd): No need to check stat if open already filters
43294         all directories.
43295         (fchdir): Fix error condition to match POSIX.
43296         * modules/fchdir (Depends-on): Add sys_stat.
43297         * doc/posix-functions/open.texi (open): Document the limitation.
43298         * modules/fchdir-tests: New file.
43299         * tests/test-fchdir.c: Likewise.
43300
43301         canonicalize: allow cross-testing from cygwin to mingw
43302         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43303         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43304         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43305         Likewise.
43306         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43307         target does not support symlinks.
43308         * tests/test-canonicalize-lgpl.sh: Likewise.
43309
43310         chown: avoid compilation warning on mingw
43311         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43312         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43313         mingw.
43314         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43315         * modules/chown (Depends-on): Add errno.
43316
43317 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43318
43319         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43320         command.
43321
43322 2009-08-31  Jim Meyering  <meyering@redhat.com>
43323
43324         canonicalize: remove useless initialization
43325         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43326         initialization of local, "end".
43327
43328 2009-08-30  Bruno Haible  <bruno@clisp.org>
43329
43330         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43331         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43332         ENOSYS.
43333
43334 2009-08-30  Bruno Haible  <bruno@clisp.org>
43335
43336         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43337         /usr/xpg4/bin/tr when it exists.
43338         * tests/test-pipe-filter-gi1.sh: Likewise.
43339
43340 2009-08-30  Bruno Haible  <bruno@clisp.org>
43341
43342         Work around deficient /usr/bin/id program on Solaris.
43343         * tests/test-file-has-acl.sh (ID): New variable.
43344         * tests/test-set-mode-acl.sh (ID): Likewise.
43345         * tests/test-copy-acl.sh (ID): Likewise.
43346         * tests/test-copy-file.sh (ID): Likewise.
43347
43348 2009-08-30  Bruno Haible  <bruno@clisp.org>
43349
43350         New module 'xstriconveh'.
43351         * lib/xstriconveh.h: New file.
43352         * lib/xstriconveh.c: New file.
43353         * modules/xstriconveh: New file.
43354
43355 2009-08-30  Bruno Haible  <bruno@clisp.org>
43356
43357         Make it easier to use mem_cd_iconveh.
43358         * lib/striconveh.h (iconveh_t): New type.
43359         (iconveh_open, iconveh_close): New declarations.
43360         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43361         with a single 'const iconveh_t *' argument.
43362         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43363         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43364         with a single 'const iconveh_t *' argument.
43365         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43366         * tests/test-striconveh.c (main): Update.
43367         * NEWS: Mention the change.
43368
43369 2009-08-30  Bruno Haible  <bruno@clisp.org>
43370
43371         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43372         problem.
43373
43374 2009-08-30  Bruno Haible  <bruno@clisp.org>
43375
43376         Work around iconv_open problem on Solaris.
43377         * lib/iconv_open-solaris.gperf: New file.
43378         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43379         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43380         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43381         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43382         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43383         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43384
43385 2009-08-29  Jim Meyering  <meyering@redhat.com>
43386
43387         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43388         * top/maint.mk (cvs-check): Remove target; it was just an alias
43389         to the better-named vc-diff-check.
43390         (maintainer-distcheck): Remove rule.  It was used only from
43391         the (alpha/beta/major) target, and all of its commands but one
43392         were coreutils-specific.
43393         (vc-dist): Remove rule.
43394         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43395         Run vc-diff-check, not vc-dist.
43396         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43397
43398 2009-08-27  Bruno Haible  <bruno@clisp.org>
43399
43400         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43401         of 0.
43402
43403 2009-08-27  Bruno Haible  <bruno@clisp.org>
43404
43405         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43406         compilers.
43407         * doc/func.texi: Document the SunPRO C bug.
43408
43409 2009-08-27  Bruno Haible  <bruno@clisp.org>
43410
43411         Fix link error on Solaris.
43412         * tests/test-parse-duration.c (xstrdup): Remove function.
43413
43414 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43415
43416         ignore-value: handle pointer types, too
43417         * lib/ignore-value.h (__attribute__): Remove definition.
43418         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43419         of a more concise and more-often effective "(void) i" statement.
43420         (ignore_ptr): New function to suppress warnings from functions that
43421         return pointers, and to make it explicit that one function doesn't
43422         handle all cases.
43423
43424 2009-08-25  Bruno Haible  <bruno@clisp.org>
43425
43426         dup2: work around a Linux bug.
43427         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43428         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43429         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43430         Reported by Simon Josefsson.
43431
43432 2009-08-25  Jim Meyering  <meyering@redhat.com>
43433
43434         libguestfs uses gnulib
43435         * users.txt: Add libguestfs.
43436
43437 2009-08-24  Eric Blake  <ebb9@byu.net>
43438
43439         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43440         * lib/pipe2.c (includes): Add binary-io.h.
43441         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43442
43443 2009-08-24  Bruno Haible  <bruno@clisp.org>
43444
43445         Tolerate declared but missing accept4 syscall.
43446         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43447         available.
43448         * lib/sys_socket.in.h (accept4): If the function is already present,
43449         override it.
43450         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43451         * modules/accept4 (Makefile.am): Compile accept4.c always.
43452         Reported by Paolo Bonzini and Eric Blake.
43453
43454 2009-08-23  Bruno Haible  <bruno@clisp.org>
43455
43456         New module 'accept4'.
43457         * lib/sys_socket.in.h (accept4): New declaration.
43458         * lib/accept4.c: New file.
43459         * m4/accept4.m4: New file.
43460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43461         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43462         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43463         HAVE_ACCEPT4.
43464         * modules/accept4: New file.
43465         * doc/glibc-functions/accept4.texi: Mention the new module.
43466
43467 2009-08-24  Jim Meyering  <meyering@redhat.com>
43468
43469         progname: also set global program_invocation_name, when possible
43470         Before this change, a libtool-enabled program that calls glibc's
43471         error function would report the program name as
43472         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43473         * modules/progname (configure.ac): Check for a declaration of
43474         program_invocation_name.
43475         * lib/progname.c:  Include <errno.h>.
43476         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43477         Set program_invocation_name.
43478
43479 2009-08-23  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/dup3.c: Include <string.h>.
43482
43483 2009-08-23  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43486         * lib/pipe2.c (pipe2): Likewise.
43487         Suggested by Eric Blake.
43488
43489 2009-08-23  Bruno Haible  <bruno@clisp.org>
43490
43491         Tolerate declared but missing dup3 syscall.
43492         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43493         * lib/unistd.in.h (dup3): If the function is already present,
43494         override it.
43495         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43496         * modules/dup3 (Makefile.am): Compile dup3.c always.
43497         Reported by Paolo Bonzini.
43498
43499 2009-08-23  Bruno Haible  <bruno@clisp.org>
43500
43501         Tolerate declared but missing pipe2 syscall.
43502         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43503         available.
43504         * lib/unistd.in.h (pipe2): If the function is already present,
43505         override it.
43506         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43507         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43508         Reported by Paolo Bonzini.
43509
43510 2009-08-23  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/pipe2.c (pipe2): Move #ifs inside function.
43513
43514 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43515
43516         quotearg: document limitations of quote_these_too
43517         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43518         those limitations are created.
43519         * lib/quotearg.h (set_char_quoting): Document that digits and
43520         letters that are special after backslash are not permitted.
43521         (quotearg_char): Cross-reference set_char_quoting documentation.
43522
43523 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43524
43525         quotearg: implement custom_quoting_style
43526         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43527         right_quote fields.
43528         (set_custom_quoting): New public function.
43529         (quotearg_buffer_restyled): Add left_quote and right_quote
43530         arguments, handle them very much like locale quoting, and update
43531         all uses.
43532         (quotearg_n_custom): New public function.
43533         (quotearg_n_custom_mem): New public function.
43534         (quotearg_custom): New public function.
43535         (quotearg_custom_mem): New public function.
43536         * lib/quotearg.h: Prototype and document new public functions.
43537         (enum quoting_style): For escape_quoting_style and
43538         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43539         ignored even though they're otherwise like c_quoting_style.
43540         Add custom_quoting_style member and document with comparison to
43541         clocale_quoting_style.
43542         * tests/test-quotearg.c (custom_quotes): New array.
43543         (custom_results): New array.
43544         (main): Extend to test custom quoting.
43545
43546 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43547
43548         quotearg: fix right quote escaping when it's in quote_these_too
43549         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43550         quote, be sure to prepend only one backslash.
43551         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43552         (main): Test it.
43553
43554 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43555
43556         quotearg-tests: test escaping of embedded locale quotes
43557         * tests/test-quotearg.c (struct result_strings): Add member for
43558         new input.
43559         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43560         (inputs): Add new input.
43561         (results_g): Add expected results.
43562         (flag_results): Likewise.
43563         (locale_results): Likewise.
43564         (compare_strings): Check those.
43565
43566 2009-08-23  Bruno Haible  <bruno@clisp.org>
43567
43568         Tests for module 'dup3'.
43569         * modules/dup3-tests: New file.
43570         * tests/test-dup3.c: New file.
43571
43572         New module 'dup3'.
43573         * lib/unistd.in.h (dup3): New declaration.
43574         * lib/dup3.c: New file.
43575         * m4/dup3.m4: New file.
43576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43577         HAVE_DUP3.
43578         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43579         * modules/dup3: New file.
43580         * doc/glibc-functions/dup3.texi: Mention the new module.
43581
43582 2009-08-23  Bruno Haible  <bruno@clisp.org>
43583
43584         Tweak the dup2 test.
43585         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43586         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43587         the test file is still empty. Fix argument order of lseek.
43588
43589 2009-08-23  Bruno Haible  <bruno@clisp.org>
43590
43591         Avoid test link errors when the modules getopt-gnu, gettext are used.
43592         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43593         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43594
43595 2009-08-23  Bruno Haible  <bruno@clisp.org>
43596
43597         Fix getdtablesize() on mingw.
43598         * lib/getdtablesize.c (getdtablesize): Implement differently.
43599         * lib/unistd.in.h (getdtablesize): Improve comment.
43600
43601 2009-08-23  Bruno Haible  <bruno@clisp.org>
43602
43603         New module 'mkostemp'.
43604         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43605         * lib/stdlib.in.h (mksotemp): New declaration.
43606         * lib/mkostemp.c: New file, from glibc with modifications.
43607         * lib/tempname.h (GT_FILE): Remove outdated comment.
43608         (gen_tempname): Add flags argument.
43609         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43610         (__GT_FILE): Map to 1.
43611         (small_open, large_open): Remove macros.
43612         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43613         * lib/mkstemp.c (mkstemp): Update.
43614         * lib/mkdtemp.c (mkdtemp): Likewise.
43615         * m4/mkostemp.m4: New file.
43616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43617         HAVE_MKOSTEMP.
43618         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43619         HAVE_MKOSTEMP.
43620         * modules/mkostemp: New file, based on modules/mkstemp.
43621         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43622         * NEWS: Mention the change.
43623
43624 2009-08-23  Bruno Haible  <bruno@clisp.org>
43625
43626         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43627         Reported by Eric Blake.
43628
43629 2009-08-23  Bruno Haible  <bruno@clisp.org>
43630
43631         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43632         Reported by Eric Blake.
43633
43634 2009-08-23  Bruno Haible  <bruno@clisp.org>
43635
43636         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43637         * modules/pipe2 (Depends-on): Likewise.
43638
43639 2009-08-23  Eric Blake  <ebb9@byu.net>
43640
43641         fcntl-h: add O_TTY_INIT support
43642         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43643         * tests/test-fcntl-h.c (o): Test it.
43644         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43645
43646         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43647         * modules/fcntl: Move <fcntl.h> header replacement...
43648         * modules/fcntl-h: ...to new name, so as not to collide with
43649         like-named function.
43650         * tests/test-fcntl.c: Rename...
43651         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43652         * modules/fcntl-tests: Rename...
43653         * modules/fcntl-h-tests: ...to this.  Update test file name.
43654         * modules/chdir-long (Depends-on): Update clients.
43655         * modules/chdir-safer (Depends-on): Likewise.
43656         * modules/fcntl-safer (Depends-on): Likewise.
43657         * modules/fts (Depends-on): Likewise.
43658         * modules/mkancesdirs (Depends-on): Likewise.
43659         * modules/mkdir-p (Depends-on): Likewise.
43660         * modules/open (Depends-on): Likewise.
43661         * modules/savewd (Depends-on): Likewise.
43662         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43663         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43664
43665 2009-08-22  Bruno Haible  <bruno@clisp.org>
43666
43667         * modules/binary-io (License): Relicense under LGPL.
43668         * modules/pipe2 (License): Likewise.
43669
43670 2009-08-22  Bruno Haible  <bruno@clisp.org>
43671
43672         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43673         return value.
43674         * lib/pipe-filter-gi.c (filter_init): Likewise.
43675         Reported by Eric Blake.
43676
43677 2009-08-22  Bruno Haible  <bruno@clisp.org>
43678
43679         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43680         * modules/pipe (Depends-on): Add pipe2.
43681
43682 2009-08-22  Bruno Haible  <bruno@clisp.org>
43683
43684         Tests for module 'pipe2'.
43685         * modules/pipe2-tests: New file.
43686         * tests/test-pipe2.c: New file.
43687
43688         New module 'pipe2'.
43689         * lib/unistd.in.h (pipe2): New declaration.
43690         * lib/pipe2.c: New file.
43691         * m4/pipe2.m4: New file.
43692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43693         HAVE_PIPE2.
43694         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43695         * modules/pipe2: New file.
43696         * doc/glibc-functions/pipe2.texi: Mention the new module.
43697
43698 2009-08-22  Bruno Haible  <bruno@clisp.org>
43699
43700         Reference some new glibc functions.
43701         * doc/glibc-functions/accept4.texi: New file.
43702         * doc/glibc-functions/dup3.texi: New file.
43703         * doc/glibc-functions/mkostemp.texi: New file.
43704         * doc/glibc-functions/pipe2.texi: New file.
43705         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43706         (Glibc sys/socket.h): Refer to accept4.
43707         (Glibc unistd.h): Refer to dup3, pipe2.
43708         Reported by Eric Blake.
43709
43710 2009-08-22  Jim Meyering  <meyering@redhat.com>
43711             Bruno Haible  <bruno@clisp.org>
43712
43713         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43714         This makes it so packages using automake-1.11's silent-rules option
43715         can print e.g., a single "GEN    configmake.h" line, rather than
43716         the 30+ statements that perform the job.  If you want to see the
43717         actual commands, you can still run "make V=1".
43718         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43719         so that make output is abbreviated when those variables are defined
43720         appropriately.
43721         * modules/argz: Likewise.
43722         * modules/arpa_inet: Likewise.
43723         * modules/byteswap: Likewise.
43724         * modules/configmake: Likewise.
43725         * modules/dirent: Likewise.
43726         * modules/errno: Likewise.
43727         * modules/fcntl: Likewise.
43728         * modules/float: Likewise.
43729         * modules/fnmatch: Likewise.
43730         * modules/getopt-posix: Likewise.
43731         * modules/glob: Likewise.
43732         * modules/iconv_open: Likewise.
43733         * modules/inttypes: Likewise.
43734         * modules/localcharset: Likewise.
43735         * modules/locale: Likewise.
43736         * modules/math: Likewise.
43737         * modules/netdb: Likewise.
43738         * modules/netinet_in: Likewise.
43739         * modules/poll: Likewise.
43740         * modules/posix_spawnp-tests: Likewise.
43741         * modules/sched: Likewise.
43742         * modules/search: Likewise.
43743         * modules/selinux-h: Likewise.
43744         * modules/signal: Likewise.
43745         * modules/spawn: Likewise.
43746         * modules/stdarg: Likewise.
43747         * modules/stdbool: Likewise.
43748         * modules/stddef: Likewise.
43749         * modules/stdint: Likewise.
43750         * modules/stdio: Likewise.
43751         * modules/stdlib: Likewise.
43752         * modules/string: Likewise.
43753         * modules/strings: Likewise.
43754         * modules/sys_file: Likewise.
43755         * modules/sys_ioctl: Likewise.
43756         * modules/sys_select: Likewise.
43757         * modules/sys_socket: Likewise.
43758         * modules/sys_stat: Likewise.
43759         * modules/sys_time: Likewise.
43760         * modules/sys_times: Likewise.
43761         * modules/sys_utsname: Likewise.
43762         * modules/sys_wait: Likewise.
43763         * modules/sysexits: Likewise.
43764         * modules/time: Likewise.
43765         * modules/unistd: Likewise.
43766         * modules/wchar: Likewise.
43767         * modules/wctype: Likewise.
43768
43769 2009-08-22  Jim Meyering  <meyering@redhat.com>
43770
43771         announce-gen: detect write failure
43772         * build-aux/announce-gen: Add Coda at end.
43773         Remove equivalent-but-more-verbose block at top.
43774
43775 2009-08-19  Akim Demaille  <demaille@gostai.com>
43776
43777         bootstrap: --help to stdout.
43778         * bootstrap (usage): Don't send --help to stderr.
43779         Use a here doc instead of a long string.
43780
43781 2009-08-21  Eric Blake  <ebb9@byu.net>
43782
43783         test-popen-safer: split from test-popen
43784         * tests/test-popen.c (main): Move...
43785         * tests/test-popen.h: ...into new file.
43786         * tests/test-popen-safer2.c: New file.
43787         * modules/popen-tests (Files): Add test-popen.h.
43788         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43789         Suggested by Bruno Haible.
43790
43791         test-fcntl-safer: split from test-open
43792         * tests/test-open.c (main): Move...
43793         * tests/test-open.h: ...into new file.
43794         * tests/test-fcntl-safer.c: New file.
43795         * modules/open-tests (Files): Add test-open.h.
43796         * modules/fcntl-safer-tests: New file.
43797         Suggested by Bruno Haible.
43798
43799         test-fopen-safer: split from test-fopen
43800         * tests/test-fopen.c (main): Move...
43801         * tests/test-fopen.h: ...into new file.
43802         * tests/test-fopen-safer.c: New file.
43803         * modules/fopen-tests (Files): Add test-fopen.h.
43804         * modules/fopen-safer-tests: New file.
43805         Suggested by Bruno Haible.
43806
43807 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43808
43809         popen-safer: test O_CLOEXEC at run-time.
43810         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43811
43812 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43813
43814         fcntl: move more flags to the header
43815         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43816         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43817         * lib/fcntl.in.h: Do both things here.
43818
43819 2009-08-21  Jim Meyering  <meyering@redhat.com>
43820
43821         consistently remove $@-t before redirecting to it
43822         * modules/argz: Remove $@-t and $@ before redirecting to the former.
43823         * modules/alloca-opt: Likewise.
43824         * modules/byteswap: Likewise.
43825         * modules/fnmatch: Likewise.
43826         * modules/getopt-posix: Likewise.
43827         * modules/glob: Likewise.
43828         * modules/poll: Likewise.
43829         * modules/posix_spawnp-tests: Likewise.
43830         * modules/sys_socket: Likewise.
43831         * modules/sysexits: Likewise.
43832
43833 2009-08-21  Eric Blake  <ebb9@byu.net>
43834
43835         popen: simplify access to original popen
43836         * lib/popen.c (rpl_popen): No need to worry about popen being a
43837         macro.
43838         Reported by Bruno Haible.
43839
43840 2009-08-20  Eric Blake  <ebb9@byu.net>
43841
43842         build: avoid some compiler warnings
43843         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
43844         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
43845         type.
43846         (new_exclude_segment, excluded_file_pattern_p)
43847         (excluded_file_name_p): Reduce scope.
43848         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
43849         old-style declaration.
43850
43851 2009-08-20  Simon Josefsson  <simon@josefsson.org>
43852
43853         * tests/test-exclude1.sh: Handle Windows EOL.
43854         * tests/test-exclude2.sh: Likewise.
43855         * tests/test-exclude3.sh: Likewise.
43856         * tests/test-exclude4.sh: Likewise.
43857         * tests/test-exclude5.sh: Likewise.
43858         * tests/test-exclude6.sh: Likewise.
43859         * tests/test-exclude7.sh: Likewise.
43860
43861 2009-08-19  Akim Demaille  <demaille@gostai.com>
43862
43863         bootstrap: find sha1sum when named gsha1sum.
43864         * bootstrap (find_tool): New.
43865         ($SHA1SUM): New.
43866         Use it.
43867
43868 2009-08-20  Jim Meyering  <meyering@redhat.com>
43869
43870         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
43871         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
43872         expression that converts "." in a file name to "\." in the resulting
43873         regexp.  Start with a dummy statement, so that prior shell variable
43874         definitions are expanded portably.  Reported by Simon Josefsson.
43875
43876 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
43877
43878         Fix polling for writeability of a screen buffer.
43879         * lib/poll.c: Distinguish input and screen buffers for the
43880         Win32 implementation.
43881         * lib/select.c: Likewise.
43882
43883 2009-08-19  Eric Blake  <ebb9@byu.net>
43884
43885         popen-safer: prevent popen from clobbering std descriptors
43886         * modules/popen-safer: New file.
43887         * lib/popen-safer.c: Likewise.
43888         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
43889         * lib/stdio--.h (popen): Provide override.
43890         * lib/stdio-safer.h (popen_safer): Provide declaration.
43891         * tests/test-popen.c (includes): Partially test this.
43892         * modules/popen-safer-tests: New file, for more tests.
43893         * tests/test-popen-safer.c: Likewise.
43894         * MODULES.html.sh (file stream based Input/Output): Mention it.
43895
43896         tests: test some of the *-safer modules
43897         * modules/fopen-safer (Depends-on): Add fopen.
43898         * modules/fcntl-safer (Depends-on): Add fcntl.
43899         * modules/stdlib-safer (Depends-on): Add stdlib.
43900         (configure.ac): Set indicator.
43901         * modules/unistd-safer (configure.ac): Likewise.
43902         * modules/tmpfile-safer (configure.ac): Likewise.
43903         (Depends-on): Add tmpfile.
43904         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
43905         active.
43906         * tests/test-fopen.c (includes): Test safer versions when they are
43907         in use.
43908         * tests/test-open.c (includes): Likewise.
43909
43910         popen: fix cygwin 1.5 bug when stdin closed
43911         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
43912         * modules/popen: New file.
43913         * modules/popen-tests: Likewise.
43914         * tests/test-popen.c: Likewise.
43915         * m4/popen.m4: Likewise.
43916         * lib/popen.c: Likewise.
43917         * lib/stdio.in.h (popen): New declaration.
43918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
43919         * modules/stdio (Makefile.am): Likewise.
43920         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
43921
43922 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
43923
43924         maint.mk: give full control over update-copyright exclusions
43925         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
43926         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
43927         (update-copyright): Don't force inclusion of top-level
43928         ChangeLog.  Don't force exclusion of all COPYING files, but make
43929         them the default exclusion instead.
43930
43931 2009-08-16  Bruno Haible  <bruno@clisp.org>
43932
43933         Fix test failures on Solaris 10.
43934         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
43935         tests when Solaris iconv() is used.
43936         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43937         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43938         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43939         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43940         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43941
43942 2009-08-16  Bruno Haible  <bruno@clisp.org>
43943
43944         Fix test failures on Solaris 10.
43945         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
43946         'tr' program and pass it as first argument.
43947         * tests/test-pipe-filter-gi1.sh: Likewise.
43948         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43949         program as first argument.
43950         * tests/test-pipe-filter-gi1.c (main): Likewise.
43951
43952 2009-08-16  Eric Blake  <ebb9@byu.net>
43953
43954         fpurge: fix previous commits
43955         * modules/fpurge (Makefile.am): Make replacement conditional,
43956         partially reverting 2007-04-29 change; missed in previous
43957         attempt.
43958         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43959         is missing.
43960
43961 2009-08-16  Bruno Haible  <bruno@clisp.org>
43962
43963         Clarify fpurge's effect on the file position.
43964         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43965         * tests/test-fpurge.c (main): Make a second pass for checking the file
43966         position.
43967
43968 2009-08-16  Bruno Haible  <bruno@clisp.org>
43969
43970         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43971         declaration of fpurge is missing.
43972         * tests/test-fpurge.c (main): Check that the file has not more contents
43973         than expected. Close the file before removing it.
43974
43975 2009-08-15  Eric Blake  <ebb9@byu.net>
43976
43977         fpurge: don't wrap working cygwin implementation
43978         * lib/fpurge.c (fpurge): Fix comment typo.
43979         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43980         1.7 to avoid replacement.
43981         * tests/test-fpurge.c (main): Enhance test.
43982
43983 2009-08-15  Eric Blake  <ebb9@byu.net>
43984         and Jim Meyering  <meyering@redhat.com>
43985
43986         test-update-copyright: skip if perl is insufficient
43987         * tests/test-update-copyright.sh: Failure to run maintainer tool
43988         should not cause testsuite failure on cygwin 1.5.
43989
43990 2009-08-14  Eric Blake  <ebb9@byu.net>
43991
43992         doc: mention more functions added in cygwin 1.7.0
43993         * doc/posix-headers/limits.texi (limits.h): Update for recent
43994         cygwin additions.
43995         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43996         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43997         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43998         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43999         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44000
44001 2009-08-14  Eric Blake  <ebb9@byu.net>
44002
44003         maint.mk: simplify update-copyright rule
44004         * top/maint.mk (update-copyright-local): Delete, and document how
44005         to do it in cfg.mk instead.
44006         (update-copyright-exclude-regexp): Delete, and document how to do
44007         it in .x-update-copyright instead.
44008         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44009         exclude ChangeLog.
44010
44011 2009-08-14  Bruno Haible  <bruno@clisp.org>
44012
44013         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44014
44015 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44016
44017         maint.mk: support update-copyright-env
44018         * top/maint.mk (update-copyright-env): Define place-holder.
44019         (update-copyright): Expand $(update-copyright-env) before
44020         invoking update-copyright.
44021
44022 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44023
44024         update-copyright: implement forced reformatting
44025         * build-aux/update-copyright: Implement and document
44026         UPDATE_COPYRIGHT_FORCE.
44027         * tests/test-update-copyright.sh: Test it.
44028
44029 2009-08-14  Eric Blake  <ebb9@byu.net>
44030         and Bruno Haible  <bruno@clisp.org>
44031
44032         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44033         * tests/test-locale.c: Revert previous patch related to NULL.
44034         * tests/test-stdio.c: Likewise.
44035         * tests/test-stdlib.c: Likewise.
44036         * tests/test-string.c: Likewise.
44037         * tests/test-unistd.c: Likewise.
44038         * modules/time-tests (Depends-on): Add verify.
44039         * modules/wchar-tests (Depends-on): Likewise.
44040         * tests/test-time.c: Test for NULL compliance.
44041         * tests/test-wchar.c: Likewise.
44042         * modules/locale (Depends-on): Add stddef.
44043         * modules/stdio (Depends-on): Likewise.
44044         * modules/stdlib (Depends-on): Likewise.
44045         * modules/string (Depends-on): Likewise.
44046         * modules/time (Depends-on): Likewise.
44047         * modules/unistd (Depends-on): Likewise.
44048         * modules/wchar (Depends-on): Likewise.
44049         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44050         * lib/stdlib.in.h (includes): Likewise.
44051         * lib/string.in.h (includes): Likewise.
44052         * lib/time.in.h (includes): Likewise.
44053         * lib/unistd.in.h (includes): Likewise.
44054         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44055         replaced.
44056         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44057         * m4/stddef_h.m4: New file.
44058         * modules/stddef: Likewise.
44059         * lib/stddef.in.h: Likewise.
44060         * modules/stddef-tests: Likewise.
44061         * tests/test-stddef.c: Likewise.
44062         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44063         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44064         * doc/posix-headers/locale.texi (locale.h): Likewise.
44065         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44066         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44067         * doc/posix-headers/string.texi (string.h): Likewise.
44068         * doc/posix-headers/time.texi (time.h): Likewise.
44069         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44070         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44071
44072 2009-08-14  Eric Blake  <ebb9@byu.net>
44073
44074         doc: improve git diff of texinfo files
44075         * .gitattributes: Add rule for *.texi files, with hint on how to
44076         use it.
44077         Copied from m4, and based on a report by Bruno Haible.
44078
44079 2009-08-14  Bruno Haible  <bruno@clisp.org>
44080
44081         Disable multithread support by default on Cygwin 1.5.x for real.
44082         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44083
44084 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44085
44086         update-copyright: much ado about intervals
44087         * build-aux/update-copyright: Implement and document
44088         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44089         of copyright year intervals.
44090         Also, document UPDATE_COPYRIGHT_YEAR.
44091         * tests/test-update-copyright.sh: Test it.
44092
44093         update-copyright: convert 2-digit to 4-digit years
44094         * build-aux/update-copyright: Implement and document.
44095         * tests/test-update-copyright.sh: Update.
44096
44097 2009-08-14  Jim Meyering  <meyering@redhat.com>
44098
44099         test-exclude: avoid coreutils "make check" failure
44100         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44101         just as in test-argmatch.c.
44102
44103 2009-08-13  Eric Blake  <ebb9@byu.net>
44104
44105         test-dup2: fix bad assumption
44106         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44107         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44108
44109         test-version-etc: fix CRLF portability issue
44110         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44111         recognize \r.
44112         * tests/test-argp-version-etc-1.sh: Likewise.
44113
44114         getopt: update client modules
44115         * modules/argp (Depends-on): Use getopt-gnu.
44116         * modules/git-merge-changelog (Depends-on): Likewise.
44117         * modules/long-options (Depends-on): Likewise.
44118         * modules/xstrtol (Depends-on): Likewise.
44119
44120 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44121
44122         * tests/test-version-etc.sh: Don't fail on different
44123         project/version.  Don't fail on CRLF differences.  Rewrite to use
44124         multiple -e instead of multiple sed forks, suggested by Eric Blake
44125         <ebb9@byu.net>.
44126         * tests/test-argp-version-etc-1.sh: Likewise.
44127
44128 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44129
44130         * tests/test-version-etc.sh: Don't fail on different
44131         project/version.
44132
44133 2009-08-12  Bruno Haible  <bruno@clisp.org>
44134
44135         Tests for modules 'getopt-posix', 'getopt-gnu'.
44136         * modules/getopt-posix-tests: New file.
44137         * tests/test-getopt.c: New file.
44138         * tests/test-getopt.h: New file.
44139         * tests/test-getopt_long.h: New file.
44140
44141         New modules 'getopt-posix', 'getopt-gnu'.
44142         * modules/getopt-gnu: New file, renamed from modules/getopt.
44143         * modules/getopt-posix: New file.
44144         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44145         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44146         (gl_GETOPT): Remove macro.
44147         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44148         Disable the test against BSD systems that declare optreset. Test
44149         against mingw bug. Test against lack of support of optional arguments
44150         on many platforms.
44151         * doc/glibc-headers/getopt.texi: Update module name and list of
44152         relevant platforms.
44153         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44154         'getopt-gnu' and more portability problems.
44155         * NEWS: Mention the changes.
44156
44157 2009-08-12  Bruno Haible  <bruno@clisp.org>
44158
44159         Ensure that optarg etc. get declared by <unistd.h>.
44160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44161         AC_USE_SYSTEM_EXTENSIONS.
44162         * modules/getopt (Depends-on): Add 'extensions'.
44163
44164 2009-08-12  Bruno Haible  <bruno@clisp.org>
44165
44166         Avoid test link errors.
44167         * modules/pipe-filter-ii-tests (Makefile.am): Define
44168         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44169         * modules/pipe-filter-gi-tests (Makefile.am): Define
44170         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44172
44173 2009-08-12  Bruno Haible  <bruno@clisp.org>
44174
44175         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44176         gl_GETOPT_SUBSTITUTE before.
44177         (gl_GETOPT): Use it.
44178         * m4/argp.m4 (gl_ARGP): Update.
44179         Reported by Sergey Poznyakoff.
44180
44181         * m4/getopt.m4: Reorder macros.
44182         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44183         (gl_GETOPT_SUBSTITUTE): Remove macro.
44184
44185 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44186
44187         Minor improvement in gitlog-to-changelog
44188
44189         * build-aux/gitlog-to-changelog: New option `--format' makes
44190         output format string configurable.
44191
44192 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44193
44194         Optimize exclude: use hash tables for non-wildcard patterns.
44195
44196         * lib/exclude.c: Include hash.h and mbuiter.h
44197         (struct exclude_pattern, exclude_segment): New data types.
44198         (struct exclude): Rewrite.
44199         (fnmatch_pattern_has_wildcards): New function.
44200         (new_exclude_segment, free_exclude_segment): New functions.
44201         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44202         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44203         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44204         * modules/exclude: Depend on hash and mbuiter.
44205
44206         * modules/exclude-tests: New file.
44207         * tests/test-exclude.c: New file.
44208         * tests/test-exclude1.sh: New file.
44209         * tests/test-exclude2.sh: New file.
44210         * tests/test-exclude3.sh: New file.
44211         * tests/test-exclude4.sh: New file.
44212         * tests/test-exclude5.sh: New file.
44213         * tests/test-exclude6.sh: New file.
44214         * tests/test-exclude7.sh: New file.
44215
44216 2009-08-12  Bruno Haible  <bruno@clisp.org>
44217
44218         Ensure that getopt() gets declared by <unistd.h>.
44219         * lib/unistd.in.h: Conditionally include getopt.h.
44220         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44221         Set GNULIB_UNISTD_H_GETOPT.
44222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44223         GNULIB_UNISTD_H_GETOPT.
44224         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44225
44226 2009-08-12  Bruno Haible  <bruno@clisp.org>
44227
44228         Clarify logic.
44229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44230         gl_replace_getopt instead of GETOPT_H.
44231
44232 2009-08-12  Bruno Haible  <bruno@clisp.org>
44233
44234         * m4/getopt.m4: Add comments.
44235
44236 2009-08-12  Bruno Haible  <bruno@clisp.org>
44237
44238         Disable multithread support by default on Cygwin 1.5.x.
44239         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44240         set gl_use_threads=no if not specified otherwise.
44241
44242 2009-08-11  Bruno Haible  <bruno@clisp.org>
44243
44244         Avoid compilation error on NetBSD 5.0.
44245         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44246         * tests/test-stdio.c: Likewise.
44247         * tests/test-stdlib.c: Likewise.
44248         * tests/test-string.c: Likewise.
44249         * tests/test-unistd.c: Likewise.
44250         Reported by Greg Troxel <gdt@ir.bbn.com>
44251         at <https://savannah.gnu.org/support/?106973>.
44252
44253 2009-08-11  Bruno Haible  <bruno@clisp.org>
44254
44255         * modules/dup2-tests (Depends-on): Remove close.
44256
44257         Undo 2009-07-19 commit.
44258         * modules/acl-tests (Depends-on): Remove close.
44259         * modules/binary-io-tests (Depends-on): Likewise.
44260         * modules/closein-tests (Depends-on): Likewise.
44261         * modules/flock-tests (Depends-on): Likewise.
44262         * modules/fsync-tests (Depends-on): Likewise.
44263         * modules/lseek-tests (Depends-on): Likewise.
44264         * modules/pipe-tests (Depends-on): Likewise.
44265         * modules/posix_spawn-tests (Depends-on): Likewise.
44266         * modules/posix_spawnp-tests (Depends-on): Likewise.
44267         * modules/stat-time-tests (Depends-on): Likewise.
44268         * modules/yesno-tests (Depends-on): Likewise.
44269
44270 2009-08-10  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44273
44274 2009-08-10  Bruno Haible  <bruno@clisp.org>
44275
44276         Fix a gcc warning.
44277         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44278
44279 2009-08-10  Bruno Haible  <bruno@clisp.org>
44280
44281         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44282         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44283         not only the first time.
44284         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44285         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44286         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44287         is 1, not only the the first time.
44288
44289 2009-08-10  Bruno Haible  <bruno@clisp.org>
44290
44291         Make it possible to use module 'gethostname' without module 'close'.
44292         * lib/unistd.in.h (close): Evoke a link error only if
44293         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44295         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44296         * modules/unistd (Makefile.am): Substitute
44297         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44298         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44299         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44300         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44301         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44302         * modules/sys_ioctl (Makefile.am): Substitute
44303         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44304         * modules/socket (configure.ac): On native Windows, set
44305         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44306         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44307         Reported by Sam Steingold <sds@gnu.org>.
44308
44309 2009-08-10  Bruno Haible  <bruno@clisp.org>
44310
44311         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44312         * modules/ioctl (configure.ac): Likewise.
44313
44314 2009-08-10  Bruno Haible  <bruno@clisp.org>
44315
44316         Avoid collision between gnulib wrapper and libintl wrapper.
44317         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44318         already defined in intl/printf.c.
44319         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44320         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44321
44322 2009-08-09  Bruno Haible  <bruno@clisp.org>
44323
44324         Make <sys/select.h> really self-contained, also on Solaris 10.
44325         * lib/sys_select.in.h: Include <string.h>.
44326         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44327         Solaris 10 problem.
44328         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44329         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44330         Reported by Jim Meyering.
44331
44332 2009-08-09  Bruno Haible  <bruno@clisp.org>
44333
44334         Avoid warnings from 'aclocal' that are due to a use of macro name
44335         AM_XGETTEXT_OPTION that is not defined in automake.
44336         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44337         automake.
44338         * modules/error (configure.ac): Likewise.
44339         * modules/propername (configure.ac): Likewise.
44340         * modules/vasprintf (configure.ac): Likewise.
44341         * modules/verror (configure.ac): Likewise.
44342         * modules/xprintf (configure.ac): Likewise.
44343         * modules/xvasprintf (configure.ac): Likewise.
44344
44345 2009-08-08  Bruno Haible  <bruno@clisp.org>
44346
44347         Avoid compilation error in C++ mode.
44348         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44349         Reported by Sam Steingold <sds@gnu.org>.
44350
44351 2009-08-08  Bruno Haible  <bruno@clisp.org>
44352
44353         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44354         for the various Unix platforms.
44355         * doc/posix-headers/limits.texi: Update platforms list regarding
44356         HOST_NAME_MAX.
44357         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44358
44359 2009-08-07  Jim Meyering  <meyering@redhat.com>
44360
44361         selinux-at: fix typo in a comment
44362         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44363         Spotted by Paolo Bonzini.
44364
44365         selinux-at: remove redundant m4 code, add documentation
44366         * modules/selinux-at (configure.ac): Remove redundant code.
44367         LIB_SELINUX is already set via the dependent module, selinux-h.
44368         (Include): Add quotes around selinux-at.h.
44369         * lib/selinux-at.h: Add documentation.
44370         Reported by Bruno Haible in
44371         http://marc.info/?l=gnulib-bug&m=124958988300749
44372
44373 2009-08-07  Bruno Haible  <bruno@clisp.org>
44374
44375         Avoid link error on MacOS X 10.3 and 10.4.
44376         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44377         on non-ELF systems.
44378         * lib/argp-pv.c (argp_program_version): Likewise.
44379         Reported by Simon Josefsson.
44380
44381 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44382
44383         * tests/test-version-etc.sh: Use $EXEEXT.
44384
44385 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44386
44387         update-copyright: update documentation to point to maint.mk
44388         * build-aux/update-copyright: Here.
44389
44390 2009-08-06  Jim Meyering  <meyering@redhat.com>
44391
44392         maint.mk: support update-copyright-local
44393         * top/maint.mk (update-copyright-local): Define place-holder.
44394         (update-copyright): Depend on $(update-copyright-local).
44395
44396 2009-08-06  Jim Meyering  <meyering@redhat.com>
44397
44398         selinux-at: new module
44399         Initially written for coreutils, this module will soon be
44400         used by findutils, too.
44401         * MODULES.html.sh [Misc]: Add selinux-at.
44402         * lib/selinux-at.h: New file, from coreutils.
44403         * lib/selinux-at.c: Likewise.
44404         * modules/selinux-at: Likewise.
44405         (License): Change from LGPL to GPL, since it depends
44406         on the GPL'd openat module.
44407
44408         doc: update README
44409         * README: Remove references to cogito.
44410         Remove cvs-repo-updating instructions from 2007.
44411         Don't imply that CVS is better if you have limited disk space.
44412
44413 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44414
44415         update-copyright: support C-style comments
44416         * build-aux/update-copyright: Implement and document.
44417         * tests/test-update-copyright.sh: Test.
44418
44419 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44420
44421         update-copyright: support omitted "(C)"
44422         * build-aux/update-copyright: Implement and document.  Also,
44423         allow variable whitespace before "(C)".
44424         * tests/test-update-copyright.sh: Test.
44425
44426 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44427
44428         update-copyright: don't trip on non-FSF copyright statements
44429         * build-aux/update-copyright: Fix so that the first correctly
44430         formatted FSF copyright statement is recognized no matter what
44431         appears before it.  Update documentation.
44432         * tests/test-update-copyright.sh: Test that.
44433
44434 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44435
44436         update-copyright: clean up code a little
44437         * build-aux/update-copyright: Append "_re" to the name of any
44438         variable holding a regular expression.
44439         Replace "old" and "new" with "stmt" in variable names.
44440         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44441         handled correctly.
44442         Format code more consistently.
44443
44444 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44445
44446         update-copyright-tests: improve portability
44447         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44448         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44449
44450 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44451
44452         update-copyright: support @copyright{} and &copy;
44453         * build-aux/update-copyright: Implement and document.
44454         * tests/test-update-copyright.sh: Test.
44455
44456 2009-08-04  Jim Meyering  <meyering@redhat.com>
44457
44458         update-copyright-tests: correctly test EOL=\r\n handling
44459         * tests/test-update-copyright.sh: Put \r at the end of some lines
44460         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44461
44462         maint.mk: make update-copyright exclusion list more configurable
44463         * top/maint.mk (update-copyright): Default to excluding COPYING,
44464         but allow an override, in case someone does want to update that file.
44465
44466         maint.mk: don't update copyright date in COPYING
44467         * top/maint.mk (update-copyright): Exclude COPYING.
44468
44469         maint.mk: add a copyright-updating rule
44470         * top/maint.mk (update-copyright): New rule.
44471         Derived from coreutils/Makefile.am.
44472
44473         update-copyright: rename some variables
44474         * build-aux/update-copyright: Rename a few variables for clarity.
44475         Tweak syntax.  List Joel E. Denny as coauthor.
44476
44477 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44478
44479         update-copyright: fix bug for 2-digit last year and add tests
44480         * build-aux/update-copyright: Fix bug.
44481         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44482         specified.
44483         * modules/update-copyright-tests: New
44484         * tests/test-update-copyright.sh: New.
44485
44486 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44487
44488         update-copyright: handle leading tabs in line prefix
44489         * build-aux/update-copyright: Count leading tabs as 8 spaces
44490         when computing margin.  This helps with the formatting of
44491         ChangeLogs, for example.
44492         Fix documentation a little.
44493
44494 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44495
44496         update-copyright: support EOL=\r\n
44497         * build-aux/update-copyright: Implement that.
44498
44499 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44500
44501         update-copyright: automatically format copyright statements
44502         * build-aux/update-copyright: Implement that.
44503         Also, be a little more predictable and safer by always failing
44504         when the full copyright format is not perfectly recognized as an
44505         unbroken whole.  Discussed at
44506         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44507         Rewrite documentation.
44508
44509 2009-08-03  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44512
44513 2009-08-02  Bruno Haible  <bruno@clisp.org>
44514
44515         Tests for module 'uname'.
44516         * modules/uname-tests: New file.
44517         * tests/test-uname.c: New file.
44518
44519         New module 'uname'.
44520         * lib/uname.c: New file.
44521         * m4/uname.m4: New file.
44522         * modules/uname: New file.
44523         * doc/posix-functions/uname.texi: Mention the new module.
44524
44525 2009-08-02  Bruno Haible  <bruno@clisp.org>
44526
44527         Tests for module 'sys_utsname'.
44528         * modules/sys_utsname-tests: New file.
44529         * tests/test-sys_utsname.c: New file.
44530
44531         New module 'sys_utsname'.
44532         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44533         * m4/sys_utsname_h.m4: New file.
44534         * modules/sys_utsname: New file.
44535         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44536
44537 2009-08-02  Bruno Haible  <bruno@clisp.org>
44538
44539         Implicitly initialize the sockets library.
44540         * lib/gethostname.c: Include sockets.h.
44541         (rpl_gethostname): Invoke gl_sockets_startup.
44542         * lib/socket.c: Include sockets.h.
44543         (rpl_socket): Invoke gl_sockets_startup.
44544         * modules/gethostname (Depends-on): Add sockets.
44545         * modules/socket (Depends-on): Likewise.
44546         * tests/test-poll.c: Don't include sockets.h.
44547         (main): Don't invoke gl_sockets_startup.
44548         * tests/test-select.c: Don't include sockets.h.
44549         (main): Don't invoke gl_sockets_startup.
44550
44551 2009-08-02  Bruno Haible  <bruno@clisp.org>
44552
44553         Allow multiple calls to gl_sockets_startup.
44554         * lib/sockets.c (initialized_sockets_version): New variable.
44555         (gl_sockets_startup): Do nothing if already called for this or a higher
44556         version.
44557         (gl_sockets_cleanup): Reset initialized_sockets_version.
44558
44559 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44560
44561         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44562         different project/version.
44563
44564 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44565             Bruno Haible  <bruno@clisp.org>
44566
44567         Tests for module 'pipe-filter-gi'.
44568         * modules/pipe-filter-gi-tests: New file.
44569         * tests/test-pipe-filter-gi1.sh: New file.
44570         * tests/test-pipe-filter-gi1.c: New file.
44571         * tests/test-pipe-filter-gi2.sh: New file.
44572         * tests/test-pipe-filter-gi2-main.c: New file.
44573         * tests/test-pipe-filter-gi2-child.c: New file.
44574
44575         New module 'pipe-filter-gi'.
44576         * lib/pipe-filter-gi.c: New file.
44577         * modules/pipe-filter-gi: New file.
44578
44579 2009-08-02  Bruno Haible  <bruno@clisp.org>
44580             Paolo Bonzini  <bonzini@gnu.org>
44581
44582         Tests for module 'pipe-filter-ii'.
44583         * modules/pipe-filter-ii-tests: New file.
44584         * tests/test-pipe-filter-ii1.sh: New file.
44585         * tests/test-pipe-filter-ii1.c: New file.
44586         * tests/test-pipe-filter-ii2.sh: New file.
44587         * tests/test-pipe-filter-ii2-main.c: New file.
44588         * tests/test-pipe-filter-ii2-child.c: New file.
44589
44590         New module 'pipe-filter-ii'.
44591         * lib/pipe-filter.h: New file.
44592         * lib/pipe-filter-ii.c: New file.
44593         * lib/pipe-filter-aux.h: New file.
44594         * modules/pipe-filter-ii: New file.
44595
44596 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44597
44598         * lib/gc-libgcrypt.c: Change copyright to FSF.
44599         * lib/gc-gnulib.c: Likewise.
44600
44601 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44602
44603         * lib/gethostname.c: Include limits.h.
44604
44605 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44606             Bruno Haible  <bruno@clisp.org>
44607
44608         Ensure HOST_NAME_MAX as part of the gethostname module.
44609         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44610         define also HOST_NAME_MAX.
44611         * tests/test-gethostname.c: Include <limits.h>.
44612         (main): Check also HOST_NAME_MAX.
44613         * doc/posix-headers/limits.texi: Document the mingw problem.
44614
44615 2009-08-02  Bruno Haible  <bruno@clisp.org>
44616
44617         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44618         Add comments.
44619
44620 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44621
44622         * lib/gethostname.c: Add Windows wrapper.
44623         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44624         * modules/gethostname: Depend on sys_socket & errno, for also
44625         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44626         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44627
44628 2009-07-31  Jim Meyering  <meyering@redhat.com>
44629
44630         getloadavg: fix symbol name in comment
44631         * lib/getloadavg.c: Correct a typo I introduced when adding
44632         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44633         Matt Kraai spotted the problem.
44634
44635 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44636
44637         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44638         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44639         code also if ! defined N_NAME_POINTER.
44640         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44641         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44642         but the n_name member is a 12-byte array.
44643
44644 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44645
44646         update-copyright: generalize comment handling
44647         * build-aux/update-copyright: Handle copyright statements
44648         within more comment styles.
44649         Document usage.
44650         Report any file with an external copyright holder or parse failure.
44651
44652 2009-07-29  Jim Meyering  <meyering@redhat.com>
44653
44654         mktime: correct setting of REPLACE_MKTIME
44655         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44656
44657         update-copyright: new module
44658         * modules/update-copyright: New file.
44659         * build-aux/update-copyright: New file.
44660         * MODULES.html.sh (maint+release support): Add update-copyright.
44661
44662 2009-07-27  Bruno Haible  <bruno@clisp.org>
44663
44664         Fix compilation error when <ctime> is used and mktime is replaced.
44665         * lib/time.in.h (mktime): New declaration.
44666         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44667         REPLACE_MKTIME instead of defining mktime in config.h.
44668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44669         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44670         Reported by Ross McFarland <rwmcfa1@neces.com>.
44671
44672 2009-07-27  Bruno Haible  <bruno@clisp.org>
44673
44674         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44675         Reported by Matt Kraai <mkraai@beckman.com>.
44676
44677 2009-07-25  Jim Meyering  <meyering@redhat.com>
44678
44679         maint.mk: avoid warnings about missing files
44680         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44681         diagnostic when .prev-version does not exist.
44682         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44683         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44684         nonexistent cfg.mk.
44685         Suggestions from Simon Josefsson.
44686
44687 2009-07-25  Bruno Haible  <bruno@clisp.org>
44688
44689         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44690         defined as macros. Needed on QNX 6.4.1.
44691         Reported by Matt Kraai <mkraai@beckman.com>.
44692
44693 2009-07-23  Jim Meyering  <meyering@redhat.com>
44694
44695         maint.mk: invoke "make dist" with a working value of XZ_OPT
44696         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44697
44698 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44699
44700         Make fseeko.c compile on QNX.
44701         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44702
44703 2009-07-22  Peter Simons  <simons@cryp.to>
44704
44705         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44706         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44707         * lib/md4.h: Likewise.
44708         * lib/md5.h: Likewise.
44709         * lib/sha1.h: Likewise.
44710         * lib/sha256.h: Likewise.
44711         * lib/sha512.h: Likewise.
44712
44713         tests-sha1: don't assign literal string to 'char *' variable
44714         * tests/test-sha1.c (main): Declare locals with "const" to match
44715         attributes of the right hand side.
44716
44717 2009-07-21  Eric Blake  <ebb9@byu.net>
44718
44719         dup2: fix more mingw problems
44720         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44721         fd to itself.
44722         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44723         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44724         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44725         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44726         care of mingw bugs.
44727
44728 2009-07-21  Jim Meyering  <meyering@redhat.com>
44729
44730         vc-list-files: avoid failure when /bin/sh is dash
44731         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44732         On some Debian based systems, /bin/sh is a symlink to dash, and running
44733         this command would omit the "/" following each 'tests' prefix:
44734           dash -x build-aux/vc-list-files -C . tests
44735         That is because bash and dash work differently:
44736           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44737           bash ok
44738           dash odd
44739
44740 2009-07-21  Eric Blake  <ebb9@byu.net>
44741
44742         dup2-tests: test previous patch
44743         * modules/dup2-tests: New file.
44744         * tests/test-dup2.c: Likewise.
44745         * tests/test-open.c (main): Avoid unspecified behavior.
44746         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44747         test.
44748
44749         dup2: work around mingw and cygwin 1.5 bug
44750         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44752         * modules/unistd (Makefile.am): Substitute it.
44753         * lib/unistd.in.h (dup2): Declare the replacement.
44754         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44755         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44756         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44757         * modules/execute (Depends-on): Add dup2.
44758         * modules/fseterr (Depends-on): Likewise.
44759         * modules/pipe (Depends-on): Likewise.
44760         * modules/posix_spawn-internal (Depends-on): Likewise.
44761
44762 2009-07-21  Bruno Haible  <bruno@clisp.org>
44763
44764         * modules/.gitattributes: New file.
44765
44766 2009-07-20  Bruno Haible  <bruno@clisp.org>
44767
44768         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44769         (main): Use it.
44770
44771 2009-07-20  Eric Blake  <ebb9@byu.net>
44772
44773         test-pipe: make a bit more robust.
44774         * tests/test-pipe.c (myerr): Allow error messages regardless of
44775         what we do to stderr.
44776         (test_pipe): Rearrange to avoid deadlock.
44777         (child_main): Try a larger read, to ensure we avoided deadlock.
44778         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44779         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44780         if misused.
44781
44782 2009-07-19  Jim Meyering  <meyering@redhat.com>
44783
44784         fts: avoid false-positive cycle-detection
44785         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44786         for each new command line argument.
44787
44788 2009-07-19  Bruno Haible  <bruno@clisp.org>
44789
44790         Fix build error on mingw with the modules sys_select and unistd.
44791         * modules/acl-tests (Depends-on): Add close.
44792         * modules/binary-io-tests (Depends-on): Likewise.
44793         * modules/closein-tests (Depends-on): Likewise.
44794         * modules/flock-tests (Depends-on): Likewise.
44795         * modules/fsync-tests (Depends-on): Likewise.
44796         * modules/lseek-tests (Depends-on): Likewise.
44797         * modules/pipe-tests (Depends-on): Likewise.
44798         * modules/posix_spawn-tests (Depends-on): Likewise.
44799         * modules/posix_spawnp-tests (Depends-on): Likewise.
44800         * modules/stat-time-tests (Depends-on): Likewise.
44801         * modules/yesno-tests (Depends-on): Likewise.
44802
44803 2009-07-19  Bruno Haible  <bruno@clisp.org>
44804
44805         Unify conditionals.
44806         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44807         macros, not at the compiler macros.
44808         * lib/pipe.c: Likewise.
44809         * lib/execute.c: Likewise.
44810         * lib/spawni.c: Likewise.
44811
44812 2009-07-19  Bruno Haible  <bruno@clisp.org>
44813
44814         Fix handling of closed stdin/stdout/stderr on mingw.
44815         * lib/w32spawn.h: Include unistd.h.
44816         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44817         file descriptor with O_NOINHERIT flag.
44818         (fd_safer_noinherit): New function, based on fd-safer.c.
44819         (dup_safer_noinherit): New function, based on dup-safer.c.
44820         (undup_safer_noinherit): New function.
44821         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
44822         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
44823         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
44824         instead of fd_safer.
44825         * tests/test-pipe.c: Include <windows.h>.
44826         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
44827         result.
44828
44829         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
44830         from main.
44831         (test_pipe): Pass an extra argument for disambiguation.
44832         (main): Invoke parent_main or child_main.
44833
44834         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
44835         consistently.
44836
44837 2009-07-18  Eric Blake  <ebb9@byu.net>
44838
44839         test-pipe: fix mingw build
44840         * tests/test-pipe.c (main): Avoid fcntl on mingw.
44841
44842 2009-07-18  Bruno Haible  <bruno@clisp.org>
44843
44844         * modules/pipe-tests (Makefile.am): Fix typo.
44845
44846 2009-07-18  Eric Blake  <ebb9@byu.net>
44847
44848         error: fix mingw build
44849         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
44850         Reported by Bruno Haible.
44851
44852         error: avoid undefined use of stdout
44853         * lib/error.c (error, error_at_line): Check that fd 1 is open
44854         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
44855         is handling faults and the close_stdout module wants to report the
44856         detection of closed stdout as an error.
44857
44858 2009-07-17  Eric Blake  <ebb9@byu.net>
44859
44860         pipe: be robust in face of closed fds
44861         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
44862         should cause child to misbehave.
44863         * modules/pipe-tests: New module.
44864         * tests/test-pipe.c: New file.
44865         * tests/test-pipe.sh: New file.
44866         Reported by Akim Demaille.
44867
44868 2009-07-14  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
44871         Reported by anonymous kc.
44872
44873 2009-07-07  Jim Meyering  <meyering@redhat.com>
44874
44875         maint.mk: don't look for translatable strings in *.m4 or *.mk
44876         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
44877         when searching for translatable strings.
44878
44879 2009-07-05  Jim Meyering  <meyering@redhat.com>
44880
44881         remove superfluous parentheses in STREQ definition
44882         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
44883         * lib/getugroups.c (STREQ): Likewise.
44884         * lib/fnmatch.c (STREQ): Likewise.
44885         Spotted by Bruno Haible.
44886
44887 2009-07-04  Jim Meyering  <meyering@redhat.com>
44888
44889         argv-iter: new module
44890         * MODULES.html.sh: Add argv-iter.
44891         * lib/argv-iter.c, lib/argv-iter.h: New files.
44892         * modules/argv-iter: New file.
44893         * modules/argv-iter-tests: New file.
44894         * tests/test-argv-iter.c: Test it.
44895
44896 2009-07-04  Bruno Haible  <bruno@clisp.org>
44897
44898         Fix assertion.
44899         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
44900         contains more exact copies of a given entry than file2, leave the extra
44901         copies unpaired rather than aborting.
44902         Reported by Eric Blake.
44903
44904 2009-07-02  Bruno Haible  <bruno@clisp.org>
44905
44906         Speedup git-merge-changelog for git cherry-pick.
44907         * lib/git-merge-changelog.c (struct entries_mapping): New type.
44908         (entries_mapping_get): New function, extracted from compute_mapping.
44909         (entries_mapping_reverse_get): New function.
44910         (compute_mapping): Add a 'full' argument. Return the result in a
44911         'struct entries_mapping'.
44912         (main): Update. Access the mappings through entries_mapping_get.
44913         Reported by Eric Blake.
44914
44915 2009-07-02  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
44918         best_i.
44919
44920 2009-07-02  Bruno Haible  <bruno@clisp.org>
44921
44922         Speed up approximate search for matching ChangeLog entries.
44923         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
44924         argument. Call fstrcmp_bounded instead of fstrcmp.
44925         (compute_mapping, try_split_merged_entry, main): Update callers.
44926
44927 2009-07-02  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
44930
44931 2009-06-30  Bruno Haible  <bruno@clisp.org>
44932
44933         Reduce the number of uc_is_cased calls.
44934         * lib/unicase.h (casing_suffix_context_t): Add
44935         'first_char_except_ignorable' field.
44936         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
44937         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
44938         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
44939         Update initializer.
44940         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
44941         case-ignorable characters.
44942         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
44943         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
44944         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
44945         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
44946         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
44947
44948 2009-06-30  Bruno Haible  <bruno@clisp.org>
44949
44950         Tests for module 'unicase/ignorable'.
44951         * modules/unicase/ignorable-tests: New file.
44952         * tests/unicase/test-ignorable.c: New file, generated by
44953         gen-uni-tables.
44954
44955         Tests for module 'unicase/cased'.
44956         * modules/unicase/cased-tests: New file.
44957         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44958         * tests/unicase/test-predicate-part1.h: New file, derived from
44959         tests/unictype/test-predicate-part1.h.
44960         * tests/unicase/test-predicate-part2.h: New file, same as
44961         tests/unictype/test-predicate-part2.h.
44962
44963         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44964         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44965         (output_casing_properties): New function.
44966         (main): Call it.
44967         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44968         * lib/unicase/cased.c: Include unictype/bitmap.h.
44969         (uc_is_cased): Define through a bitmap lookup.
44970         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44971         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44972         (uc_is_case_ignorable): Define through a bitmap lookup.
44973         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44974         lib/unictype/bitmap.h.
44975         (Depends-on): Add inline. Clean up.
44976         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44977         lib/unictype/bitmap.h.
44978         (Depends-on): Add inline. Clean up.
44979         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44980         recognition.
44981         * tests/unicase/test-u16-tolower.c (main): Likewise.
44982         * tests/unicase/test-u32-tolower.c (main): Likewise.
44983
44984 2009-06-30  Bruno Haible  <bruno@clisp.org>
44985
44986         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44987         * lib/unicase/u16-casemap.c: Likewise.
44988         * lib/unicase/u32-casemap.c: Likewise.
44989
44990 2009-06-29  Bruno Haible  <bruno@clisp.org>
44991
44992         Define u32_casefold as a wrapper around u32_ct_casefold.
44993         * lib/unicase/u32-casefold.c: Update.
44994         * modules/unicase/u32-casefold (Depends-on): Add
44995         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44996         unicase/empty-suffix-context. Clean up.
44997
44998         Define u16_casefold as a wrapper around u16_ct_casefold.
44999         * lib/unicase/u16-casefold.c: Update.
45000         * modules/unicase/u16-casefold (Depends-on): Add
45001         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45002         unicase/empty-suffix-context. Clean up.
45003
45004         Define u8_casefold as a wrapper around u8_ct_casefold.
45005         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45006         * lib/unicase/u8-casefold.c: Update.
45007         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45008         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45009
45010         Define u32_totitle as a wrapper around u32_ct_totitle.
45011         * lib/unicase/u32-totitle.c: Update.
45012         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45013         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45014
45015         Define u16_totitle as a wrapper around u16_ct_totitle.
45016         * lib/unicase/u16-totitle.c: Update.
45017         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45018         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45019
45020         Define u8_totitle as a wrapper around u8_ct_totitle.
45021         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45022         functions.
45023         (FUNC): Delegate to U_CT_TOTITLE.
45024         * lib/unicase/u8-totitle.c: Update.
45025         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45026         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45027
45028         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45029         invocation.
45030         * modules/unicase/u32-tolower (Depends-on): Add
45031         unicase/empty-prefix-context, unicase/empty-suffix-context.
45032
45033         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45034         invocation.
45035         * modules/unicase/u16-tolower (Depends-on): Add
45036         unicase/empty-prefix-context, unicase/empty-suffix-context.
45037
45038         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45039         * modules/unicase/u8-tolower (Depends-on): Add
45040         unicase/empty-prefix-context, unicase/empty-suffix-context.
45041
45042         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45043         invocation.
45044         * modules/unicase/u32-toupper (Depends-on): Add
45045         unicase/empty-prefix-context, unicase/empty-suffix-context.
45046
45047         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45048         invocation.
45049         * modules/unicase/u16-toupper (Depends-on): Add
45050         unicase/empty-prefix-context, unicase/empty-suffix-context.
45051
45052         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45053         * modules/unicase/u8-toupper (Depends-on): Add
45054         unicase/empty-prefix-context, unicase/empty-suffix-context.
45055
45056         New module 'unicase/u32-ct-casefold'.
45057         * lib/unicase/u32-ct-casefold.c: New file.
45058         * modules/unicase/u32-ct-casefold: New file.
45059
45060         New module 'unicase/u16-ct-casefold'.
45061         * lib/unicase/u16-ct-casefold.c: New file.
45062         * modules/unicase/u16-ct-casefold: New file.
45063
45064         New module 'unicase/u8-ct-casefold'.
45065         * lib/unicase/u8-ct-casefold.c: New file.
45066         * lib/unicase/u-ct-casefold.h: New file, derived from
45067         lib/unicase/u-casefold.h.
45068         * modules/unicase/u8-ct-casefold: New file.
45069
45070         New module 'unicase/u32-ct-totitle'.
45071         * lib/unicase/u32-ct-totitle.c: New file.
45072         * modules/unicase/u32-ct-totitle: New file.
45073
45074         New module 'unicase/u16-ct-totitle'.
45075         * lib/unicase/u16-ct-totitle.c: New file.
45076         * modules/unicase/u16-ct-totitle: New file.
45077
45078         New module 'unicase/u8-ct-totitle'.
45079         * lib/unicase/u8-ct-totitle.c: New file.
45080         * lib/unicase/u-ct-totitle.h: New file, derived from
45081         lib/unicase/u-totitle.h.
45082         * modules/unicase/u8-ct-totitle: New file.
45083
45084         New module 'unicase/u32-ct-tolower'.
45085         * lib/unicase/u32-ct-tolower.c: New file.
45086         * modules/unicase/u32-ct-tolower: New file.
45087
45088         New module 'unicase/u16-ct-tolower'.
45089         * lib/unicase/u16-ct-tolower.c: New file.
45090         * modules/unicase/u16-ct-tolower: New file.
45091
45092         New module 'unicase/u8-ct-tolower'.
45093         * lib/unicase/u8-ct-tolower.c: New file.
45094         * modules/unicase/u8-ct-tolower: New file.
45095
45096         New module 'unicase/u32-ct-toupper'.
45097         * lib/unicase/u32-ct-toupper.c: New file.
45098         * modules/unicase/u32-ct-toupper: New file.
45099
45100         New module 'unicase/u16-ct-toupper'.
45101         * lib/unicase/u16-ct-toupper.c: New file.
45102         * modules/unicase/u16-ct-toupper: New file.
45103
45104         New module 'unicase/u8-ct-toupper'.
45105         * lib/unicase/u8-ct-toupper.c: New file.
45106         * modules/unicase/u8-ct-toupper: New file.
45107
45108         Add context arguments to u*_casemap functions.
45109         * lib/unicase/unicasemap.h: Include unicase.h.
45110         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45111         suffix_context arguments.
45112         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45113         functions.
45114         (FUNC): Add prefix_context and suffix_context arguments. Use
45115         uc_is_cased and uc_is_case_ignorable.
45116         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45117         * lib/unicase/u16-casemap.c: Likewise.
45118         * lib/unicase/u32-casemap.c: Likewise.
45119         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45120         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45121         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45122         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45123         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45124         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45125
45126         New module 'unicase/u32-suffix-context'.
45127         * lib/unicase/u32-suffix-context.c: New file.
45128         * modules/unicase/u32-suffix-context: New file.
45129
45130         New module 'unicase/u16-suffix-context'.
45131         * lib/unicase/u16-suffix-context.c: New file.
45132         * modules/unicase/u16-suffix-context: New file.
45133
45134         New module 'unicase/u8-suffix-context'.
45135         * lib/unicase/u8-suffix-context.c: New file.
45136         * lib/unicase/u-suffix-context.h: New file.
45137         * modules/unicase/u8-suffix-context: New file.
45138
45139         New module 'unicase/empty-suffix-context'.
45140         * lib/unicase/empty-suffix-context.c: New file.
45141         * modules/unicase/empty-suffix-context: New file.
45142
45143         New module 'unicase/u32-prefix-context'.
45144         * lib/unicase/u32-prefix-context.c: New file.
45145         * modules/unicase/u32-prefix-context: New file.
45146
45147         New module 'unicase/u16-prefix-context'.
45148         * lib/unicase/u16-prefix-context.c: New file.
45149         * modules/unicase/u16-prefix-context: New file.
45150
45151         New module 'unicase/u8-prefix-context'.
45152         * lib/unicase/u8-prefix-context.c: New file.
45153         * lib/unicase/u-prefix-context.h: New file.
45154         * lib/unicase/context.h: New file.
45155         * modules/unicase/u8-prefix-context: New file.
45156
45157         New module 'unicase/empty-prefix-context'.
45158         * lib/unicase/empty-prefix-context.c: New file.
45159         * modules/unicase/empty-prefix-context: New file.
45160
45161         New module 'unicase/ignorable'.
45162         * lib/unicase/ignorable.c: New file.
45163         * modules/unicase/ignorable: New file.
45164
45165         New module 'unicase/cased'.
45166         * lib/unicase/caseprop.h: New file.
45167         * lib/unicase/cased.c: New file.
45168         * modules/unicase/cased: New file.
45169
45170         New functions for case mapping of substrings.
45171         * lib/unicase.h (casing_prefix_context_t): New type.
45172         (unicase_empty_prefix_context): New variable.
45173         (u8_casing_prefix_context, u16_casing_prefix_context,
45174         u32_casing_prefix_context, u8_casing_prefixes_context,
45175         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45176         declarations.
45177         (casing_suffix_context_t): New type.
45178         (unicase_empty_suffix_context): New variable.
45179         (u8_casing_suffix_context, u16_casing_suffix_context,
45180         u32_casing_suffix_context, u8_casing_suffixes_context,
45181         u16_casing_suffixes_context, u32_casing_suffixes_context,
45182         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45183         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45184         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45185         declarations.
45186
45187 2009-06-28  Jim Meyering  <meyering@redhat.com>
45188
45189         boostrap: indent only with spaces
45190         * build-aux/bootstrap: Indent only with spaces, never TABs.
45191
45192         bootstrap: split long lines
45193         * build-aux/bootstrap: Keep line length < 80.
45194
45195         bootstrap: sync from coreutils
45196         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45197         just as autoreconf does.  Verify a list of prerequisite
45198         package-name,version-number pairs if defined in bootstrap.conf.
45199         Refer to README-prereq, if prerequisites are not satisfied.
45200
45201 2009-06-27  Eric Blake  <ebb9@byu.net>
45202
45203         tests: add test for bogus NULL definition
45204         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45205         * tests/test-stdlib.c: Likewise.
45206         * tests/test-string.c: Likewise.
45207         * tests/test-locale.c: Likewise.
45208         * tests/test-unistd.c: Likewise.
45209         * modules/stdio-tests (Depends-on): Add verify.
45210         * modules/stdlib-tests (Depends-on): Likewise.
45211         * modules/string-tests (Depends-on): Likewise.
45212         * modules/locale-tests (Depends-on): Likewise.
45213         * modules/unistd-tests (Depends-on): Likewise.
45214
45215 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45216
45217         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45218         self-explaining comment.
45219         * m4/selinux-selinux-h: Update serial.
45220         (gl_LIBSELINUX): New macro, adding a warning for missing development
45221         packages to code extracted from...
45222         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45223         Add warning for missing development packages here, too.
45224
45225 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45226
45227         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45228
45229 2009-06-25  Eric Blake  <ebb9@byu.net>
45230
45231         version-etc: fix regression
45232         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45233         gcc.
45234         (version_etc): Use it, to catch bugs with trailing NULL.
45235         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45236         (version_etc_va): Fix logic bug.
45237         * modules/version-etc-tests: Add test.
45238         * tests/test-version-etc.c: New file.
45239         * tests/test-version-etc.sh: Likewise.
45240
45241 2009-06-25  Sam Steingold  <sds@gnu.org>
45242
45243         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45244         mbtowc declaration.
45245
45246 2009-06-25  Eric Blake  <ebb9@byu.net>
45247
45248         fpurge: migrate into <stdio.h>
45249         * lib/fpurge.h: Delete...
45250         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45251         * lib/fpurge.c (fpurge): Change declaring header.
45252         * modules/fpurge (Files): Drop deleted file.
45253         (Depends-on): Add stdio.
45254         (configure.ac): Set witness.
45255         * modules/stdio (Makefile.am): Support fpurge macros.
45256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45257         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45258         * lib/fflush.c: Update client.
45259         * tests/test-fpurge.c: Likewise.
45260         * NEWS: Mention the change.
45261
45262 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45263
45264         * lib/argp-version-etc.c (program_authors): Add const
45265         qualifier.
45266         * lib/version-etc.c: Fix typos in the comments.
45267         * modules/argp-version-etc: Depends on version-etc.
45268
45269 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45270
45271         argp-version-etc: new module.
45272
45273         * lib/argp-version-etc.c: New file.
45274         * lib/argp-version-etc.h: New file.
45275         * modules/argp-version-etc: New file.
45276         * modules/argp-version-etc-tests: New file.
45277         * tests/test-argp-version-etc.c: New test.
45278         * tests/test-argp-version-etc-1.sh: New test.
45279
45280 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45281
45282         Provide additional interfaces and documentation for version-etc
45283         module.
45284
45285         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45286         interfaces.
45287         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45288         prototypes.
45289
45290 2009-06-24  Bruno Haible  <bruno@clisp.org>
45291
45292         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45293         HAVE_LIB${NAME} macro.
45294         Reported by Sam Steingold <sds@gnu.org>.
45295
45296 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45297
45298         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45299         needed.
45300
45301 2009-06-21  Bruno Haible  <bruno@clisp.org>
45302
45303         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45304         work.
45305         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45306         together with LIB${NAME}, LTLIB${NAME}.
45307         Reported by Sam Steingold <sds@gnu.org>.
45308
45309 2009-06-20  Jim Meyering  <meyering@redhat.com>
45310
45311         tests: make sc_require_test_exit_idiom more generic
45312         * top/maint.mk (Exit_witness_file): New overridable variable.
45313         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45314         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45315
45316 2009-06-19  Jim Meyering  <meyering@redhat.com>
45317
45318         hash: reverse order of src/dst parameters in an internal interface
45319         * lib/hash.c (transfer_entries): Reverse order of parameters to
45320         put DST before SRC.  Adjust callers.
45321
45322         tests: test-hash: avoid wholesale duplication
45323         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45324         Instead, use a loop and add a single conditional.
45325
45326         tests: test-hash: allow seed selection via a command line argument
45327         * tests/test-hash.c (get_seed): New function.
45328         (main): Use it.
45329
45330 2009-06-19  Eric Blake  <ebb9@byu.net>
45331
45332         hash: avoid memory leak on allocation failure
45333         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45334         failure.  Factor repeated algorithm...
45335         (transfer_entries): ...into new helper routine.
45336         (hash_delete): React to hash_rehash return value.
45337
45338         hash: reduce memory pressure in hash_rehash no-op case
45339         * lib/hash.c (next_prime): Avoid overflow.
45340         (hash_initialize): Factor bucket size computation...
45341         (compute_bucket_size): ...into new helper function.
45342         (hash_rehash): Use new function and open coding to reduce memory
45343         pressure, and avoid a memory leak in USE_OBSTACK code.
45344         Reported by Jim Meyering.
45345
45346 2009-06-18  Eric Blake  <ebb9@byu.net>
45347
45348         hash: make rotation more obvious
45349         * modules/hash (Depends-on): Add bitrotate and stdint.
45350         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45351         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45352         (SIZE_MAX): Rely on headers for definition.
45353         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45354         (raw_hasher): Use rotr_sz.
45355         Suggested by Jim Meyering.
45356
45357         hash: fix memory leak in last patch
45358         * lib/hash.c (hash_rehash): Avoid memory leak.
45359
45360         hash: avoid no-op rehashing
45361         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45362
45363         hash: provide default callback functions
45364         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45365         (hash_initialize): Use them as defaults.
45366         * tests/test-hash.c (main): Test this.
45367
45368         hash: minor optimization
45369         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45370         when possible.
45371         (hash_initialize): Document this promise.
45372         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45373         * tests/test-hash.c (hash_compare_strings): Test this.
45374
45375 2009-06-18  Bruno Haible  <bruno@clisp.org>
45376
45377         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45378         going to be replaced anyway.
45379
45380 2009-06-18  Bruno Haible  <bruno@clisp.org>
45381
45382         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45383         in one place.
45384         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45385         be replaced anyway.
45386
45387 2009-06-18  Eric Blake  <ebb9@byu.net>
45388
45389         hash: check for resize before insertion
45390         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45391         threshold before insertion, so that a pathological hash_rehash
45392         that fills every bucket can still trigger another rehash.
45393
45394 2009-06-18  Jim Meyering  <meyering@redhat.com>
45395
45396         hash-tests: add a loop around the small tests
45397         * tests/test-hash.c (main): Repeat small tests with selected
45398         small initial table sizes.
45399
45400 2009-06-17  Eric Blake  <ebb9@byu.net>
45401
45402         hash: minor cleanups
45403         * lib/hash.h (hash_entry): Make opaque, by moving...
45404         * lib/hash.c (hash_entry): ...here.
45405         (hash_insert): Clarify restrictions on what can be inserted.
45406         (hash_get_next): Clarify when it is safe to remove an element
45407         during traversal.
45408         (check_tuning): Skip verification when tuning is known safe.
45409         (hash_initialize): Clarify restrictions on tuning.
45410
45411 2009-06-17  Jim Meyering  <jim@meyering.net>
45412         and Eric Blake  <ebb9@byu.net>
45413
45414         hash-tests: new module
45415         * modules/hash-tests: New file.
45416         * tests/test-hash.c: New file.
45417
45418 2009-06-17  Eric Blake  <ebb9@byu.net>
45419
45420         strstr-simple: document new module
45421         * MODULES.html.sh: Document new module.
45422
45423         strstr, strcasestr: replace on platforms with broken memchr
45424         * modules/strstr: Split into...
45425         * modules/strstr-simple: ...new module that does not care about
45426         performance, but does care about glibc bug.
45427         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45428         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45429         if platform memchr is broken, per Debian bug 521737.
45430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45431         memchr.
45432         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45433         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45434         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45435         * modules/mountlist (Depends-on): Add strstr-simple.
45436         * modules/gen-uni-tables (Depends-on): Likewise.
45437         * modules/argz (Depends-on): Add strstr.
45438
45439 2009-06-17  Bruno Haible  <bruno@clisp.org>
45440
45441         * modules/posix_spawn-internal (Depends-on): Add errno.
45442
45443 2009-06-17  Bruno Haible  <bruno@clisp.org>
45444
45445         Define missing ESTALE on Interix 3.5.
45446         * lib/errno.in.h (ESTALE): Assign a value if missing.
45447         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45448         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45449         missing.
45450         * doc/posix-headers/errno.texi: Mention the Interix bug.
45451         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45452
45453 2009-06-15  Eric Blake  <ebb9@byu.net>
45454
45455         memchr, memchr2: add valgrind exception
45456         * lib/memchr.valgrind: New file.
45457         * lib/memchr2.valgrind: New file.
45458         * modules/memchr (Files): Distribute valgrind file.
45459         * modules/memchr2 (Files): Likewise.
45460
45461         docs: memchr is no longer obsolete
45462         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45463         * lib/string.in.h (memchr): Simplify logic.
45464
45465 2009-06-14  Jim Meyering  <meyering@redhat.com>
45466
45467         link-follow: fix the "checking..." message to not mention trailing slash
45468         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45469         never considered trailing slashes.
45470
45471 2009-06-14  Bruno Haible  <bruno@clisp.org>
45472
45473         * m4/memchr.m4: Mention also the bug on IA-64.
45474         * doc/posix-functions/memchr.texi: Likewise.
45475
45476 2009-06-12  Eric Blake  <ebb9@byu.net>
45477
45478         memchr: detect broken x86_64 and alpha implementations
45479         * modules/memchr-tests (Depends-on): Move mmap detection...
45480         * modules/memchr (Depends-on): ...here.
45481         (configure.ac): Set indicator.
45482         * lib/string.in.h (memchr): Declare replacement.
45483         * modules/string (Makefile.am): Trigger replacement.
45484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45485         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45486         bugs.
45487         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45488         * modules/getpagesize (License): Relax license.
45489
45490 2009-06-11  Bruno Haible  <bruno@clisp.org>
45491
45492         * lib/idpriv.h: Add more references.
45493
45494 2009-06-08  Bruno Haible  <bruno@clisp.org>
45495
45496         Tests for module 'idpriv-droptemp'.
45497         * modules/idpriv-droptemp-tests: New file.
45498         * tests/test-idpriv-droptemp.sh: New file.
45499         * tests/test-idpriv-droptemp.su.sh: New file.
45500         * tests/test-idpriv-droptemp.c: New file.
45501
45502         New module 'idpriv-droptemp'.
45503         * lib/idpriv-droptemp.c: New file.
45504         * modules/idpriv-droptemp: New file.
45505
45506 2009-06-08  Bruno Haible  <bruno@clisp.org>
45507
45508         Tests for module 'idpriv-drop'.
45509         * modules/idpriv-drop-tests: New file.
45510         * tests/test-idpriv-drop.sh: New file.
45511         * tests/test-idpriv-drop.su.sh: New file.
45512         * tests/test-idpriv-drop.c: New file.
45513
45514         New module 'idpriv-drop'.
45515         * lib/idpriv.h: New file.
45516         * lib-idpriv-drop.c: New file.
45517         * m4/idpriv.m4: New file.
45518         * modules/idpriv-drop: New file.
45519
45520 2009-06-08  Bruno Haible  <bruno@clisp.org>
45521
45522         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45523         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45524         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45525         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45526         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45527         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45528         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45529
45530 2009-06-08  Eric Blake  <ebb9@byu.net>
45531
45532         test-strstr: use memory fence, when possible
45533         * tests/test-strstr.c (main): Use memory fence, in order to be
45534         more likely to trigger Debian bug 521737.
45535         * modules/strstr-tests (Files): Pull in additional files.
45536
45537         memchr: no longer obsolete, for wider field testing
45538         * modules/memchr (Status, Notice): Delete, this module is no
45539         longer obsolete.
45540         * modules/vasnprintf (Depends-on): Add memchr.
45541
45542 2009-06-07  Jim Meyering  <meyering@redhat.com>
45543
45544         hash: declare some functions with the warn_unused_result attribute
45545         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45546
45547 2009-06-07  Bruno Haible  <bruno@clisp.org>
45548
45549         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45550         Reported by Eric Blake.
45551
45552 2009-06-06  Eric Blake  <ebb9@byu.net>
45553
45554         test-alignof: fix typo with long double
45555         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45556         compiler error.
45557
45558 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45559
45560         Escape non-texinfo { and }s.
45561         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45562         markup error.
45563
45564 2009-06-04  Jim Meyering  <meyering@redhat.com>
45565
45566         gitlog-to-changelog: don't infloop on an empty commit log
45567         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45568         Reported by Boris Petersen <transacid@centerim.org>.
45569
45570 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45571
45572         version-etc: extend for packagers
45573         Add three new configure options, intended for packagers:
45574           --with-packager="packager name"
45575           --with-packager-version="packager-specific version"
45576           --with-packager-bug-reports="packager bug reporting"
45577         An example with coreutils:
45578           $ ./configure \
45579             --with-packager=Gentoo \
45580             --with-packager-bug-report=http://bugs.gentoo.org/ \
45581             --with-packager-version="patchset 1.6"
45582           $ ./src/ls --version | head -n2
45583           ls (GNU coreutils) 7.1-dirty
45584           Packaged by Gentoo (patchset 1.6)
45585         Note that the bug reporting info via --help doesn't show up because
45586         coreutils uses its own custom emit_bug_reporting_address() implementation
45587         in src/system.h.  If it didn't, it'd look like:
45588           $ ./src/ls --help | tail -n4
45589           Report bugs to <bug-coreutils@gnu.org>.
45590           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45591           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45592           General help using GNU software: <http://www.gnu.org/gethelp/>.
45593         * lib/version-etc.c: Print new information, if provided.
45594         * m4/version-etc.m4: New file.
45595         * modules/version-etc (Files): Add m4/version-etc.m4.
45596         (configure.ac): Add gl_VERSION_ETC.
45597
45598 2009-05-31  Bruno Haible  <bruno@clisp.org>
45599
45600         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45601         and 'int64_t'.
45602         * modules/alignof-tests (Dependencies): Add stdint.
45603         Reported by Eric Blake.
45604
45605 2009-05-31  Bruno Haible  <bruno@clisp.org>
45606
45607         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45608         restriction due to compiler bugs.
45609         Reported by Eric Blake.
45610
45611 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45612             Bruno Haible  <bruno@clisp.org>
45613
45614         Fix test-alignof failure.
45615         * lib/alignof.h (alignof_slot): New macro.
45616         (alignof_type): New macro, with the same semantics as the previous
45617         'alignof'.
45618         (alignof): Alias to alignof_slot.
45619         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45620         check that the results are usable as constant expressions.
45621
45622 2009-05-31  Bruno Haible  <bruno@clisp.org>
45623
45624         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45625         * tests/test-memchr.c (main): Check that memchr does not read past the
45626         first occurrence of the byte.
45627         * tests/test-strstr.c (main): Update comment.
45628         Suggested by Eric Blake.
45629
45630 2009-05-30  Bruno Haible  <bruno@clisp.org>
45631
45632         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45633         detail how to use dumpbin.
45634         Reported by David Byron <dbyron@dbyron.com>.
45635
45636 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45637
45638         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45639
45640 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45641
45642         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45643
45644 2009-05-28  Bruno Haible  <bruno@clisp.org>
45645
45646         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45647         build-aux/ files.
45648
45649 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45650
45651         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45652
45653 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45654
45655         * gnulib-tool (sed_transform_main_lib_file)
45656         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45657         regexps.
45658
45659 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45660
45661         * tests/test-strstr.c: Add another self-test.
45662         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45663         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45664
45665 2009-05-23  Bruno Haible  <bruno@clisp.org>
45666
45667         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45668         change.
45669
45670 2009-05-21  Bruno Haible  <bruno@clisp.org>
45671
45672         Simplify use of mode_t varargs.
45673         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45674         uses 'mode_t' or 'int'.
45675         * lib/openat.c (openat): Likewise.
45676         * lib/open-safer.c (open_safer): Likewise.
45677         * m4/mode_t.m4: New file.
45678         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45679         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45680         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45681         * modules/open (Files): Add m4/mode_t.m4.
45682         * modules/openat (Files): Likewise.
45683         * modules/fcntl-safer (Files): Likewise.
45684         Suggested by Eric Blake.
45685
45686 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45687
45688         * doc/glibc-functions/fallocate.texi: New file.
45689         * doc/gnulib.texi: Include it.
45690
45691 2009-05-21  Eric Blake  <ebb9@byu.net>
45692             Bruno Haible  <bruno@clisp.org>
45693
45694         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45695         invocations.
45696         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45697
45698 2009-05-21  Eric Blake  <ebb9@byu.net>
45699             Bruno Haible  <bruno@clisp.org>
45700
45701         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45702         include_next. Fix of 2008-11-20 commit.
45703         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45704         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45705         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45706         NEXT_MATH_H.
45707         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45708         instead of NEXT_MATH_H.
45709
45710 2009-05-21  Bruno Haible  <bruno@clisp.org>
45711
45712         Avoid redefinition warnings for SIZE_MAX.
45713         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45714         Reported by Simon Josefsson.
45715
45716 2009-05-21  Bruno Haible  <bruno@clisp.org>
45717
45718         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45719         AC_CACHE_VAL.
45720
45721 2009-05-20  Bruno Haible  <bruno@clisp.org>
45722
45723         Make zeroptr.h work on mingw.
45724         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45725         mprotect.
45726         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45727         * modules/memchr2-tests (configure.ac): Likewise.
45728         * modules/memcmp-tests (configure.ac): Likewise.
45729         * modules/memmem-tests (configure.ac): Likewise.
45730         * modules/memrchr-tests (configure.ac): Likewise.
45731         Reported by Simon Josefsson.
45732
45733 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45734
45735         * tests/test-glob.c: Include string.h for strcmp prototype.
45736
45737 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45738
45739         * modules/getdelim (Depends-on): Add explicit stdint, although it
45740         was implicitly already pulled in via realloc-posix.
45741         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45742
45743 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45744
45745         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45746         G. Christensen" <tgc@jupiterrise.com>.
45747         * m4/sys_socket_h.m4: Check for sa_family_t.
45748         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45749         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45750         * tests/test-sys_socket.c: Check that sa_family_t works.
45751
45752 2009-05-18  Eric Blake  <ebb9@byu.net>
45753
45754         maint.mk: allow gnulib_dir in VPATH build
45755         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45756
45757 2009-05-15  Jim Meyering  <meyering@redhat.com>
45758
45759         maint.mk: Give gnulib_dir a default definition.
45760         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45761         Thus, most packages no longer need to specify this variable in cfg.mk
45762
45763 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45764
45765         rename.m4: fix typos that would make non-mingw cross-configure fail
45766         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45767
45768 2009-05-13  Eric Blake  <ebb9@byu.net>
45769
45770         mmap-anon: avoid out-of-order autoconf expansion
45771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45772         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45773         * modules/memchr-tests (Depends-on): Add extensions.
45774         * modules/memchr2-tests (Depends-on): Add extensions.
45775         * modules/memcmp-tests (Depends-on): Add extensions.
45776         * modules/memmem-tests (Depends-on): Add extensions.
45777         * modules/memrchr-tests (Depends-on): Add extensions.
45778
45779 2009-05-13  Bruno Haible  <bruno@clisp.org>
45780
45781         Make some tests ISO C 99 compliant.
45782         * tests/zerosize-ptr.h: New file.
45783         * tests/test-memchr.c: Include zerosize-ptr.h.
45784         (main): Use a zero-size object pointer instead of NULL.
45785         * tests/test-memchr2.c: Include zerosize-ptr.h.
45786         (main): Use a zero-size object pointer instead of NULL.
45787         * tests/test-memcmp.c: Include zerosize-ptr.h.
45788         (main): Use a zero-size object pointer instead of NULL.
45789         * tests/test-memmem.c: Include zerosize-ptr.h.
45790         (main): Use a zero-size object pointer instead of NULL.
45791         * tests/test-memrchr.c: Include zerosize-ptr.h.
45792         (main): Use a zero-size object pointer instead of NULL.
45793         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45794         m4/mmap-anon.m4.
45795         (Depends-on): Add getpagesize.
45796         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45797         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45798         m4/mmap-anon.m4.
45799         (Depends-on): Add getpagesize.
45800         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45801         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45802         m4/mmap-anon.m4.
45803         (Depends-on): Add getpagesize.
45804         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45805         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45806         m4/mmap-anon.m4.
45807         (Depends-on): Add getpagesize.
45808         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45809         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45810         m4/mmap-anon.m4.
45811         (Depends-on): Add getpagesize.
45812         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45813
45814 2009-05-12  Bruno Haible  <bruno@clisp.org>
45815
45816         Tests for module 'alignof'.
45817         * modules/alignof-tests: New file.
45818         * tests/test-alignof.c: New file.
45819
45820 2009-05-12  Bruno Haible  <bruno@clisp.org>
45821
45822         Fix alignof macro.
45823         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
45824         vendor compilers that are always correct.
45825
45826 2009-05-12  Bruno Haible  <bruno@clisp.org>
45827
45828         Make the MAP_ANONYMOUS detection work on HP-UX 11.
45829         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
45830         not whether its fully works.
45831
45832 2009-05-12  Bruno Haible  <bruno@clisp.org>
45833
45834         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
45835
45836 2009-05-12  Jim Meyering  <meyering@redhat.com>
45837
45838         * top/maint.mk: Adjust backslash alignment.
45839
45840 2009-05-11  Simon Josefsson  <simon@josefsson.org>
45841
45842         * top/maint.mk: Make $(srcdir)/build-aux configurable.
45843
45844 2009-05-11  Eric Blake  <ebb9@byu.net>
45845
45846         argp: avoid undefined behavior
45847         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
45848         macros.
45849
45850 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45851
45852         * tests/test-vc-list-files-git.sh: Do git config of user.email and
45853         user.name to prevent git commit from complaining.
45854
45855 2009-05-10  Bruno Haible  <bruno@clisp.org>
45856
45857         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
45858         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
45859         it rewrites every file name only once.
45860         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
45861
45862 2009-05-08  Bruno Haible  <bruno@clisp.org>
45863
45864         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
45865         instead of 'max'.
45866
45867 2009-05-08  Simon Josefsson  <simon@josefsson.org>
45868
45869         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
45870         sockaddr_storage test.
45871
45872 2009-05-07  Simon Josefsson  <simon@josefsson.org>
45873
45874         * modules/sys_socket (Makefile.am): Substitute
45875         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
45876         * m4/sys_socket_h.m4: Check for sockaddr_storage.
45877         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
45878         * tests/test-sys_socket.c: Check sockaddr_storage.
45879
45880 2009-05-08  Bruno Haible  <bruno@clisp.org>
45881
45882         New module 'alignof'.
45883         * lib/alignof.h: New file.
45884         * modules/alignof: New file.
45885
45886 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45887             Bruno Haible  <bruno@clisp.org>
45888
45889         Fix test-file-has-acl on FreeBSD.
45890         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
45891         mask is implicitly added.
45892         * tests/test-file-has-acl.c: Include <signal.h>.
45893         (main): Terminate the test after 5 seconds.
45894         * modules/acl-tests (configure.ac): Check for alarm function.
45895
45896 2009-05-04  Bruno Haible  <bruno@clisp.org>
45897
45898         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
45899         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
45900         * modules/errno (configure.ac): Drop AC_REQUIRE.
45901         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
45902         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
45903
45904 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45905
45906         * modules/glob-tests: New module.
45907         * tests/test-glob.c: Add.
45908
45909 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45910
45911         * modules/fnmatch-tests: New module.
45912         * tests/test-fnmatch.c: Add.
45913
45914 2009-05-04  Eric Blake  <ebb9@byu.net>
45915
45916         maint: make the new no-submodule-changes rule VPATH-safe
45917         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
45918
45919 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45920             Bruno Haible  <bruno@clisp.org>
45921
45922         acl: Fix infinite loop on FreeBSD.
45923         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
45924         of return value from acl_get_entry.
45925         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
45926         Likewise.
45927
45928 2009-05-03  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/acl-internal.h (acl_entries): Clarify return value.
45931         * lib/acl_entries.c (acl_entries): Likewise.
45932
45933 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45934
45935         Bug fix in acl module.
45936         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
45937
45938 2009-05-03  Bruno Haible  <bruno@clisp.org>
45939
45940         Create gperf-generated file in the source dir, not in the build dir.
45941         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
45942         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
45943         * modules/unicase/locale-language (unicase/locale-languages.h):
45944         Likewise.
45945         * modules/unicase/special-casing (unicase/special-casing-table.h):
45946         Likewise.
45947         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
45948         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45949         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45950         Reported by Ralf Wildenhues.
45951
45952 2009-05-03  Bruno Haible  <bruno@clisp.org>
45953
45954         * modules/fnmatch (Description, configure.ac): Taken from
45955         fnmatch-posix.
45956         * modules/fnmatch-posix: Turn into a symbolic reference to the
45957         'fnmatch' module, and deprecate.
45958         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45959
45960 2009-05-03  Bruno Haible  <bruno@clisp.org>
45961
45962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45963         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45964         Reported by Ralf Wildenhues.
45965
45966 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45967
45968         * m4/fnmatch.m4: Fix fnmatch re-define.
45969
45970 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45971
45972         priv-set: new module and tests; adapt write-any-file
45973         * lib/priv-set.c: New file.
45974         * lib/priv-set.h: New file.
45975         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45976         * lib/write-any-file.c: Simplify by using priv-set module.
45977         * m4/priv-set.m4: New file.
45978         * modules/priv-set: New file.
45979         * modules/unlinkdir: Add dependency on priv-set module.
45980         * modules/write-any-file: Likewise.
45981
45982         Tests for module 'priv-set'.
45983         * modules/priv-set-tests: New file.
45984         * tests/test-priv-set.c: New file.
45985
45986 2009-05-03  Jim Meyering  <meyering@redhat.com>
45987             Bruno Haible  <bruno@clisp.org>
45988
45989         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45990         use the converted UTF-8 variant of the name instead.
45991
45992 2009-05-03  Jim Meyering  <meyering@redhat.com>
45993
45994         tests: tighten some getdate tests
45995         * tests/test-getdate.c (main): Tighten tests: require equality,
45996         not just greater than.  Set TZ envvar to UTC0.
45997
45998 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45999
46000         getdate: correctly interpret "next monday" when run on a Monday
46001         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46002         that e.g., "next tues" (when run on a tuesday) results in a date
46003         that is one week in the future, and not today's date.
46004         I.e., add a week when the wday is the same as the current one.
46005         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46006         and earlier by Martin Bernreuther and Jan Minář.
46007         * tests/test-getdate.c (main): Check that "next DAY" is always in
46008         the future and that "last DAY" is always in the past.
46009
46010 2009-05-02  Jim Meyering  <meyering@redhat.com>
46011
46012         build: ensure that a release build fails when a submodule is unclean
46013         * top/maint.mk (no-submodule-changes): New rule.
46014         (alpha beta major): Depend on it.
46015
46016 2009-05-02  Bruno Haible  <bruno@clisp.org>
46017
46018         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46019         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46020         shell variable gl_fnmatch_required to detect which variant is
46021         requested.
46022         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46023         gl_FUNC_FNMATCH_POSIX.
46024         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46025         exclude fnmatch-posix.
46026
46027 2009-05-02  Bruno Haible  <bruno@clisp.org>
46028
46029         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46030         * modules/mbsrtowcs (License): Change to LGPLv2+.
46031         * modules/strnlen1 (License): Likewise.
46032         Reported by Simon Josefsson.
46033
46034 2009-05-02  Bruno Haible  <bruno@clisp.org>
46035
46036         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46037         "cross".
46038         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46039         gnulib-tool was called with option --source-base=lib.
46040
46041 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46042
46043         Use automake *-local hooks without commands, for extensibility.
46044         * modules/localcharset (Makefile.am): Rename install-exec-local
46045         rule to install-exec-localcharset, and make it a prerequisite of
46046         install-exec-local.  Likewise, rename the uninstall-local rule to
46047         uninstall-localcharset, and make it a prerequisite of the former.
46048
46049 2009-05-01  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46052         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46053         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46055         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46056         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46057         m4/locale-zh.m4, m4/codeset.m4.
46058
46059         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46060         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46061         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46062         m4/locale-zh.m4.
46063
46064         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46065         REPLACE_WCRTOMB if mbstate_t must be replaced.
46066         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46067         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46068
46069 2009-05-01  Bruno Haible  <bruno@clisp.org>
46070
46071         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46072         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46073         dngettext, dcngettext, textdomain, bindtextdomain,
46074         bind_textdomain_codeset): Undefine before redefining.
46075
46076 2009-04-30  Bruno Haible  <bruno@clisp.org>
46077
46078         Fix bug introduced on 2009-04-25.
46079         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46080         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46081         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46082         is defined.
46083         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46084         is defined.
46085         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46086         is defined.
46087         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46088
46089 2009-04-28  Bruno Haible  <bruno@clisp.org>
46090
46091         Comment tweaks.
46092         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46093         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46094         * lib/unicase.h (u*_casexfrm): Likewise.
46095         Reported by Paolo Bonzini.
46096
46097 2009-04-28  Bruno Haible  <bruno@clisp.org>
46098
46099         Fix a compilation error.
46100         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46101         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46102         Reported by Jim Meyering.
46103
46104 2009-04-27  Bruno Haible  <bruno@clisp.org>
46105
46106         New module 'libunistring'.
46107         * modules/libunistring: New file.
46108         * m4/libunistring.m4: New file.
46109         * MODULES.html.sh (Unicode string functions): Add it.
46110
46111 2009-04-27  Eric Blake  <ebb9@byu.net>
46112
46113         maint.mk: allow package-specific header to provide <config.h>
46114         * top/maint.mk (sc_require_config_h): New variable.
46115         (sc_require_config_h, sc_require_config_h_first): Use it.
46116
46117 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46118
46119         * top/maint.mk (sc_avoid_if_before_free): Except
46120         useless-if-before-free script.
46121
46122 2009-04-27  Eric Blake  <ebb9@byu.net>
46123
46124         maintainer-makefile: depend on all required helper scripts
46125         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46126         useless-if-before-free.
46127         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46128         version, rather than assuming gnulib checkout is available.
46129         Reported by Simen Josefsson.
46130
46131 2009-04-26  Bruno Haible  <bruno@clisp.org>
46132
46133         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46134         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46135         "../" or "..".
46136
46137 2009-04-26  Bruno Haible  <bruno@clisp.org>
46138
46139         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46140         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46141         AC_LIB_HAVE_LINKFLAGS.
46142
46143 2009-04-26  Bruno Haible  <bruno@clisp.org>
46144
46145         Simplify calling convention of u*_conv_from_encoding.
46146         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46147         u32_conv_from_encoding): Expect a resultbuf argument and return the
46148         result directly as a pointer.
46149         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46150         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46151         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46152         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46153         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46154         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46155         Update.
46156         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46157         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46158         * lib/vasnprintf.c (VASNPRINTF): Update.
46159         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46160         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46161         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46162         * NEWS: Mention the change.
46163
46164 2009-04-26  Bruno Haible  <bruno@clisp.org>
46165
46166         Simplify calling convention of u*_conv_to_encoding.
46167         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46168         u32_conv_to_encoding): Expect a resultbuf argument and return the
46169         result directly as a pointer.
46170         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46171         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46172         freeing scaled_offsets if mem_iconveha failed.
46173         * lib/unicase/u-casexfrm.h (FUNC): Update.
46174         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46175         * lib/vasnprintf.c (VASNPRINTF): Update.
46176         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46177         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46178         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46179         * NEWS: Mention the change.
46180
46181 2009-04-26  Bruno Haible  <bruno@clisp.org>
46182
46183         Avoid test failures on AIX and OSF/1.
46184         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46185         malloc(0).
46186         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46187         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46188         Likewise.
46189         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46190         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46191         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46192         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46193         * doc/posix-functions/malloc.texi: Document the portability problem
46194         related to malloc(0).
46195
46196 2009-04-26  Bruno Haible  <bruno@clisp.org>
46197
46198         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46199         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46200         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46201
46202 2009-04-25  Bruno Haible  <bruno@clisp.org>
46203
46204         Avoid link error when creating a namespace clean library.
46205         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46206         as macro with arguments if already defined as an alias.
46207         * lib/signbitf.c (gl_signbitf): Don't undefine.
46208         * lib/signbitd.c (gl_signbitd): Don't undefine.
46209         * lib/signbitl.c (gl_signbitl): Don't undefine.
46210
46211 2009-04-25  Jim Meyering  <meyering@redhat.com>
46212
46213         vc-list-files: fix another quoting bug
46214         * build-aux/vc-list-files: Avoid sed backslash expansion
46215         of pathological directory names.
46216
46217 2009-04-25  Eric Blake  <ebb9@byu.net>
46218
46219         vc-list-files: fix shell quoting error
46220         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46221         timestamp.
46222
46223 2009-04-25  Jim Meyering  <meyering@redhat.com>
46224
46225         vc-list-files: restore lost functionality with subdir argument
46226         * build-aux/vc-list-files: When given a non-"." sub-directory
46227         argument, substitute the $dir/ prefix back onto each resulting name.
46228         Otherwise, coreutils' root_tests check would fail.
46229
46230 2009-04-24  Eric Blake  <ebb9@byu.net>
46231
46232         vc-list-files: ignore git symlinks
46233         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46234         than ls-files, to ignore git symlinks.
46235
46236         maint.mk: import improvements from m4
46237         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46238         (move_if_change): Delete unused macro.
46239         (news-date-check, vc-diff-check): Support VPATH builds.
46240         (announcement): Likewise.  Split --bootstrap-tools list...
46241         (boostrap-tools): ...into separate list, which can be overridden
46242         in cfg.mk.
46243         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46244         requiring dependency on useless-if-before-free module.
46245         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46246         Support VPATH builds.
46247
46248 2009-04-24  Jim Meyering  <meyering@redhat.com>
46249
46250         maint.mk: remove coreutils-specific rules and variables
46251         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46252         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46253         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46254
46255         maint.mk: remove obsolete rule
46256         * top/maint.mk (rel-check): Remove rule.
46257         (WGET, WGETFLAGS): Remove now-unused variables.
46258
46259 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46260
46261         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46262         consistency.
46263
46264         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46265         '$(PATH_SEPARATOR)' instead of ':'.
46266
46267 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46268
46269         * lib/getopt1.c (main): Use 'const' for static array.
46270
46271 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46272
46273         * top/maint.mk: Sync with coreutils.
46274         * NEWS: Explain incompatibilities.
46275
46276 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46277             Bruno Haible  <bruno@clisp.org>
46278
46279         Fix cross-compilation results.
46280         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46281         statement, as third argument of AC_TRY_RUN.
46282         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46283         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46284         Likewise.
46285         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46286         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46287         Likewise.
46288         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46290         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46291
46292 2009-04-20  Bruno Haible  <bruno@clisp.org>
46293
46294         Avoid test failure on mingw.
46295         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46296
46297 2009-04-20  Bruno Haible  <bruno@clisp.org>
46298
46299         Avoid compilation error on mingw.
46300         * modules/localename-tests (Depends-on): Add locale.
46301
46302 2009-04-19  Bruno Haible  <bruno@clisp.org>
46303
46304         Support for building a shared library on Windows platforms.
46305         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46306         (main): Test the presence of UNINORM_NFC here.
46307         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46308         (main): Test the presence of UNINORM_NFD here.
46309         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46310         (main): Test the presence of UNINORM_NFKC here.
46311         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46312         (main): Test the presence of UNINORM_NFKD here.
46313
46314 2009-04-19  Bruno Haible  <bruno@clisp.org>
46315
46316         Avoid a compiler warning.
46317         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46318         Change type of variable 'sequence'.
46319
46320 2009-04-19  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/configmake (Makefile.am): When the contents of configmake.h
46323         does not change, arrange to preserve its modification time.
46324
46325 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46326
46327         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46328         gettext domain.
46329
46330 2009-04-16  Jim Meyering  <meyering@redhat.com>
46331
46332         useless-if-before-free: improve conversion code
46333         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46334         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46335
46336 2009-04-14  Bruno Haible  <bruno@clisp.org>
46337
46338         * modules/fcntl (Depends-on): Add extensions.
46339         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46340
46341 2009-04-12  Ben Pfaff  <blp@gnu.org>
46342
46343         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46344         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46345
46346 2009-03-20  Ben Pfaff  <blp@gnu.org>
46347
46348         Make rename replace existing destinations on Windows.
46349         * m4/rename.m4: Add test for Mingw.
46350         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46351         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46352         * doc/posix-functions/rename.texi: Document.
46353
46354 2009-04-10  Bruno Haible  <bruno@clisp.org>
46355
46356         New include file "iconveh.h".
46357         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46358         * lib/striconveh.h: Include it.
46359         (enum iconv_ilseq_handler): Remove definition.
46360         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46361         striconveh.h.
46362         * lib/striconveha.c: Include striconveh.h.
46363         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46364         * modules/striconveh (Files): Add lib/iconveh.h.
46365         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46366         lib/striconveh.h.
46367
46368 2009-04-10  Bruno Haible  <bruno@clisp.org>
46369
46370         * lib/uniconv.h: Update comment.
46371
46372 2009-04-10  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46375         always.
46376         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46377         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46378         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46379         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46380         "unistring-notinline.h", so that the function gets defined always.
46381         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46382         * lib/unistr/u8-uctomb.c: Likewise.
46383         * lib/unistr/u16-mbtouc.c: Likewise.
46384         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46385         * lib/unistr/u16-uctomb.c: Likewise.
46386         * lib/unistr/u32-mbtouc.c: Likewise.
46387         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46388         * lib/unistr/u32-uctomb.c: Likewise.
46389
46390 2009-04-10  Bruno Haible  <bruno@clisp.org>
46391
46392         Mark 'utime' obsolete.
46393         * modules/utime (Status, Notice): New sections.
46394         Suggested by Jim Meyering.
46395
46396         Fix cross-compile guess for utime test.
46397         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46398         autoconf.
46399         * doc/posix-functions/utime.texi: Give more precisions.
46400         Reported by Jan <ipif@ymail.com>.
46401
46402 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46403
46404         filevercmp: correct today's change
46405         * lib/filevercmp.c: Also handle coreutils' test inputs.
46406         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46407
46408         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46409         for reporting it.
46410         * lib/filevercmp.c: Special handle for "", "." and "..".
46411         * tests/test-filevercmp.c: Enlarge the set suite.
46412
46413 2009-04-07  Jim Meyering  <meyering@redhat.com>
46414
46415         useless-if-before-free: show how to remove braced useless free, too
46416         * build-aux/useless-if-before-free: still only in a comment, though.
46417
46418 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46419
46420         maint.mk: import changes to syntax-check macros from coreutils
46421         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46422         Use them in the relevant macros.
46423
46424 2009-04-06  Bruno Haible  <bruno@clisp.org>
46425
46426         Fix unportable use of bit-fields.
46427         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46428         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46429         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46430
46431 2009-04-06  Bruno Haible  <bruno@clisp.org>
46432
46433         Avoid test failures on AIX and OSF/1.
46434         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46435         that malloc(0) = NULL.
46436         * tests/unicase/test-u8-tolower.c (check): Likewise.
46437         * tests/unicase/test-u8-totitle.c (check): Likewise.
46438         * tests/unicase/test-u8-toupper.c (check): Likewise.
46439         * tests/unicase/test-u16-casefold.c (check): Likewise.
46440         * tests/unicase/test-u16-tolower.c (check): Likewise.
46441         * tests/unicase/test-u16-totitle.c (check): Likewise.
46442         * tests/unicase/test-u16-toupper.c (check): Likewise.
46443         * tests/unicase/test-u32-casefold.c (check): Likewise.
46444         * tests/unicase/test-u32-tolower.c (check): Likewise.
46445         * tests/unicase/test-u32-totitle.c (check): Likewise.
46446         * tests/unicase/test-u32-toupper.c (check): Likewise.
46447         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46448         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46449         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46450         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46451         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46452         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46453         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46454         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46455         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46456         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46457         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46458         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46459
46460 2009-04-05  Bruno Haible  <bruno@clisp.org>
46461
46462         Work around an autoconf limitation.
46463         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46464         comment line if it would be longer than 3 KB.
46465
46466 2009-04-05  Bruno Haible  <bruno@clisp.org>
46467
46468         Avoid test failure with libiconv-1.13.
46469         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46470         of the expected test results.
46471
46472 2009-04-05  Bruno Haible  <bruno@clisp.org>
46473
46474         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46475         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46476         that it should be installed.
46477
46478 2009-04-05  Bruno Haible  <bruno@clisp.org>
46479
46480         * gnulib-tool: New option --copy-file.
46481         (func_usage): Document it.
46482         (func_dest_tmpfilename): Moved out of func_import.
46483         (func_add_file, func_update_file): New functions, extracted from
46484         func_import.
46485         (func_import): Update.
46486
46487 2009-04-05  Karl Berry  <karl@gnu.org>
46488
46489         * README: prominently mention gnulib-tool.
46490         Rearrange sections so getting the code is near the top.
46491
46492 2009-04-05  Bruno Haible  <bruno@clisp.org>
46493
46494         * lib/unicase.h: Mention u*_cmp2.
46495         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46496         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46497         * lib/unicase/ulc-casecmp.c: Likewise.
46498         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46499         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46500         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46501         unistr/u8-cmp.
46502         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46503         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46504         unistr/u16-cmp.
46505         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46506         unistr/u32-cmp.
46507
46508         * lib/uninorm.h: Mention u*_cmp2.
46509         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46510         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46511         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46512         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46513         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46514         unistr/u8-cmp.
46515         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46516         unistr/u16-cmp.
46517         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46518         unistr/u32-cmp.
46519
46520         New module 'unistr/u32-cmp2'.
46521         * lib/unistr/u32-cmp2.c: New file.
46522         * modules/unistr/u32-cmp2: New file.
46523
46524         New module 'unistr/u16-cmp2'.
46525         * lib/unistr/u16-cmp2.c: New file.
46526         * modules/unistr/u16-cmp2: New file.
46527
46528         New module 'unistr/u8-cmp2'.
46529         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46530         * lib/unistr/u8-cmp2.c: New file.
46531         * lib/unistr/u-cmp2.h: New file.
46532         * modules/unistr/u8-cmp2: New file.
46533
46534 2009-04-05  Bruno Haible  <bruno@clisp.org>
46535
46536         * lib/unictype.h (uc_property_is_valid): New macro.
46537         * tests/unictype/test-pr_byname.c (main): Use it.
46538
46539         * lib/unistr.h: Doc fixes.
46540         * lib/uniconv.h: Doc fixes.
46541         * lib/unictype.h: Doc fixes.
46542
46543 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46544
46545         Port coreutils 7.2 to Solaris 8.
46546
46547         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46548         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46549         for Solaris 8.  This is a bit of a hack, as it means it's the
46550         caller's responsibility to add -lnsl if needed, but most likely it
46551         won't be needed since only getaddrinfo uses this and getaddrinfo
46552         isn't needed on Solaris 8.
46553
46554         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46555         problem to Solaris 8 encountered with coreutils 7.2, which
46556         resulted in a message "fnmatch.c:292: warning: passing argument 4
46557         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46558         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46559
46560 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46561
46562         * m4/ld-version-script.m4: Add FIXME comment.
46563
46564 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46565
46566         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46567         SOVERSION variable.
46568
46569 2009-04-02  Bruno Haible  <bruno@clisp.org>
46570
46571         * Makefile (info, html, dvi, pdf): Combine the rules.
46572         Suggested by Jim Meyering.
46573
46574 2009-04-01  Bruno Haible  <bruno@clisp.org>
46575
46576         * Makefile (info, html, dvi, pdf): New targets.
46577         Reported by Reuben Thomas <rrt@sc3d.org>.
46578
46579 2009-04-01  Bruno Haible  <bruno@clisp.org>
46580
46581         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46582         can be put into PATH.
46583         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46584
46585 2009-04-01  Bruno Haible  <bruno@clisp.org>
46586
46587         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46588
46589 2009-04-01  Bruno Haible  <bruno@clisp.org>
46590
46591         Rename module 'visibility'.
46592         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46593         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46594         * doc/gnulib.texi: Update.
46595         * MODULES.html.sh (Misc): Update.
46596         * NEWS: Mention the change.
46597
46598 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46599
46600         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46601         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46602         Eric Blake <ebb9@byu.net> for review.
46603         * MODULES.html.sh: Add lib-msvc-compat.
46604         * doc/gnulib.texi: Link to new section.
46605         * m4/ld-output-def.m4: New file.
46606         * doc/ld-output-def.texi: New file.
46607
46608 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46609
46610         Rename ld-version-script to lib-symbol-versions.  Suggested by
46611         Bruno Haible <bruno@clisp.org>.
46612         * modules/ld-version-script: Renamed to lib-symbol-versions.
46613         * doc/ld-version-script.texi: Fix module name.
46614         * MODULES.html.sh: Add lib-symbol-versions.
46615
46616 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46617
46618         * modules/u64-tests: New file.
46619         * tests/test-u64.c: New file.
46620
46621 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46622
46623         * MODULES.html.sh: Mention u64.
46624         * modules/u64: New module.
46625         * modules/crypto/sha512: Depend on u64 module instead of providing
46626         u64.h.
46627
46628 2009-03-27  Eric Blake  <ebb9@byu.net>
46629
46630         test-strerror: make debugging EAI_SYSTEM easier
46631         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46632         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46633         failure was EAI_SYSTEM.
46634
46635 2009-03-25  Bruno Haible  <bruno@clisp.org>
46636
46637         Fix a problem with --enable-relocatable on Solaris 7.
46638         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46639         since 2008-02-24.
46640
46641 2009-03-25  Eric Blake  <ebb9@byu.net>
46642
46643         test-sockets: avoid gcc warning
46644         * tests/test-sockets.c (main): Silence compiler warning.
46645
46646 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46647
46648         New modules nproc, pthread, contributed by Glen Lenker.
46649
46650         * MODULES.html.sh: Add pthread, nproc.
46651         * lib/nproc.c: New file.
46652         * lib/nproc.h: New file.
46653         * lib/pthread.in.h: New file.
46654         * m4/pthread.m4: New file.
46655         * modules/nproc: New file.
46656         * modules/pthread: New file.
46657
46658 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46659
46660         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46661         New variable.
46662
46663 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46664
46665         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46666         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46667         * tests/test-filevercmp.c: Add tests for backup suffixes.
46668
46669 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46670
46671         * modules/stdlib (Depends-on): Add stdint, needed when defining
46672         struct random_data on, for example, HP-UX 10.20.  Reported by
46673         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46674
46675 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46676
46677         * lib/readline.c (readline): Call fflush on stdout after printing
46678         prompt.
46679
46680 2009-03-20  Bruno Haible  <bruno@clisp.org>
46681
46682         Remove dependency from 'close' module to -lws2_32 on native Windows.
46683         * lib/close-hook.h: New file.
46684         * lib/close-hook.c: New file.
46685         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46686         w32sock.h.
46687         (_gl_close_fd_maybe_socket): Remove function.
46688         (rpl_close): Invoke execute_all_close_hooks instead of
46689         _gl_close_fd_maybe_socket.
46690         * lib/sockets.c: Include close-hook.h, w32sock.h.
46691         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46692         (close_sockets_hook): New variable.
46693         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46694         (gl_sockets_cleanup): Unregister it.
46695         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46696         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46697         * modules/close-hook: New file.
46698         * modules/close (Files): Remove lib/w32sock.h.
46699         (Depends-on): Add close-hook.
46700         (Link): Remove section.
46701         * modules/sockets (Files): Add lib/w32sock.h.
46702         (Depends-on): Add close-hook.
46703         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46704         invocation.
46705         * NEWS: Mention that LIB_CLOSE is gone.
46706
46707 2009-03-23  Eric Blake  <ebb9@byu.net>
46708
46709         signal-tests: test previous patch
46710         * tests/test-signal.c: New file.
46711         * modules/signal-tests: Likewise.
46712
46713         signal.h: always support 'volatile sig_atomic_t'
46714         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46715         (gl_SIGNAL_H_DEFAULTS): Add a default.
46716         * modules/signal (Makefile.am): Substitute if needed.
46717         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46718         users can blindly add volatile.
46719         * doc/posix-headers/signal.texi (signal.h): Document it.
46720         Reported by Matthew Woehlke.
46721
46722 2009-03-23  Jim Meyering  <meyering@redhat.com>
46723
46724         pathmax: PATH_MAX: use pathconf only when available
46725         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46726         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46727         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46728         This avoids a link failure in a PSP cross-compilation environment
46729         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46730
46731         * lib/vasnprintf.c (divide): Fix typo in comment.
46732
46733 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46734
46735         * gnulib-tool (func_filter_filelist): Fix comment.
46736
46737 2009-03-20  Bruno Haible  <bruno@clisp.org>
46738
46739         Make sockets.h self-contained.
46740         * lib/sockets.c: Include sockets.h first.
46741         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46742
46743 2009-03-19  Eric Blake  <ebb9@byu.net>
46744
46745         doc: mention more functions added in cygwin 1.7.0
46746         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46747         addition.
46748         * doc/posix-functions/log2f.texi: Likewise.
46749
46750 2009-03-19  Jim Meyering  <meyering@redhat.com>
46751
46752         fsusage: avoid syntax error due to statement-before-declaration
46753         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46754         after all declarations.  Reported by Matthew Woehlke in
46755         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46756
46757 2009-03-18  Eric Blake  <ebb9@byu.net>
46758
46759         build-aux/compile: sync from automake
46760         * build-aux/compile: New file, from automake.
46761         * config/srclist.txt: Mention build-aux/compile.
46762
46763 2009-03-17  Bruno Haible  <bruno@clisp.org>
46764
46765         * lib/git-merge-changelog.c: Fix typo in comment.
46766         Reported by Reuben Thomas <rrt@sc3d.org>.
46767
46768 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46769
46770         * m4/regex.m4: update and improve help for
46771         --without-included-regex.
46772
46773 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46774
46775         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46776         failure on missing include files.
46777
46778 2009-03-17  Eric Blake  <ebb9@byu.net>
46779
46780         doc: mention more functions added in cygwin 1.7.0
46781         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46782         addition.
46783         * doc/posix-functions/fwscanf.texi: Likewise.
46784         * doc/posix-functions/swprintf.texi: Likewise.
46785         * doc/posix-functions/swscanf.texi: Likewise.
46786         * doc/posix-functions/vfwprintf.texi: Likewise.
46787         * doc/posix-functions/vfwscanf.texi: Likewise.
46788         * doc/posix-functions/vswprintf.texi: Likewise.
46789         * doc/posix-functions/vswscanf.texi: Likewise.
46790         * doc/posix-functions/vwprintf.texi: Likewise.
46791         * doc/posix-functions/vwscanf.texi: Likewise.
46792         * doc/posix-functions/wcscasecmp.texi: Likewise.
46793         * doc/posix-functions/wcsdup.texi: Likewise.
46794         * doc/posix-functions/wcsftime.texi: Likewise.
46795         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46796         * doc/posix-functions/wprintf.texi: Likewise.
46797         * doc/posix-functions/wscanf.texi: Likewise.
46798         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46799
46800 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46801
46802         maint.mk: really add $(AM_MAKEFLAGS)
46803         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46804         was inadvertently omitted in the last commit.
46805         Spotted by Bruno Haible.
46806
46807         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46808         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46809         $(AM_MAKEFLAGS)' rather than plain `make'.
46810
46811         gnulib-tool: execute $MAKE not make
46812         * gnulib-tool: Default $MAKE to 'make'.
46813         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46814         than make.  Initialize $MAKE in the do-autobuild script.
46815
46816         gnulib-tool: use $MAKE not make in generated files
46817         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
46818         make, in generated files.  Initialize $MAKE in the do-autobuild
46819         script.
46820
46821         * top/GNUmakefile (_have-git-version-gen): Fix typo.
46822
46823         GNUmakefile: disable parallelism only for multiple, recursive targets
46824         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
46825         additions in the Makefile.
46826         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
46827         by Automake.
46828         (.NOTPARALLEL): Only disable parallel builds if multiple targets
46829         are listed on the command line and at least one of them is
46830         listed in $(ALL_RECURSIVE_TARGETS).
46831
46832 2009-03-14  Bruno Haible  <bruno@clisp.org>
46833
46834         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
46835         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
46836         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
46837         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
46838         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
46839         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
46840         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
46841         unistr/u8-uctomb.
46842         * modules/unistr/u8-strchr (Depends-on): Likewise.
46843         * modules/unistr/u8-strrchr (Depends-on): Likewise.
46844         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
46845         unistr/u16-uctomb.
46846         * modules/unistr/u16-strchr (Depends-on): Likewise.
46847         * modules/unistr/u16-strrchr (Depends-on): Likewise.
46848
46849 2009-03-12  Bruno Haible  <bruno@clisp.org>
46850
46851         Work around select() bug on Interix 3.5.
46852         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
46853         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
46854         * m4/select.m4: New file.
46855         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
46856         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
46857         * modules/select (Files): Add m4/select.m4.
46858         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
46859         * modules/nanosleep (Depends-on): Add select.
46860         * modules/poll (Depends-on): Likewise.
46861         * doc/posix-functions/select.texi: Mention the Interix bug.
46862         Reported by Markus Duft <mduft@gentoo.org>.
46863
46864         * lib/select.c: Renamed from lib/winsock-select.c.
46865         * modules/select (Files): Add lib/select.c, remove
46866         lib/winsock-select.c.
46867         (configure.ac): Update.
46868
46869 2009-03-12  Jim Meyering  <meyering@redhat.com>
46870
46871         avoid gcc warnings about unused macro definitions
46872         * lib/readtokens.c (STREQ): Remove unused definition.
46873         * lib/xmalloc.c (SIZE_MAX): Likewise.
46874         * lib/openat-die.c (N_): Likewise.
46875         * lib/mountlist.c (SIZE_MAX): Remove definition.
46876         Instead, include <stdint.h>.
46877         * lib/readutmp.c: Likewise.
46878         * modules/readutmp (Depends-on): Add stdint.
46879         * modules/mountlist (Depends-on): Add stdint.
46880         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
46881
46882 2009-03-10  Bruno Haible  <bruno@clisp.org>
46883
46884         Tests for module 'mbmemcasecoll'.
46885         * modules/mbmemcasecoll-tests: New file.
46886         * tests/test-mbmemcasecoll1.sh: New file.
46887         * tests/test-mbmemcasecoll2.sh: New file.
46888         * tests/test-mbmemcasecoll3.sh: New file.
46889         * tests/test-mbmemcasecoll.c: New file.
46890
46891         New module 'mbmemcasecoll'.
46892         * lib/mbmemcasecoll.h: New file.
46893         * lib/mbmemcasecoll.c: New file.
46894         * modules/mbmemcasecoll: New file.
46895
46896         * tests/test-mbmemcasecmp.h: New file, extracted from
46897         tests/test-mbmemcasecmp.c.
46898         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
46899         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
46900         (main): Update.
46901         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
46902
46903 2009-03-09  Bruno Haible  <bruno@clisp.org>
46904
46905         Tests for module 'mbmemcasecmp'.
46906         * modules/mbmemcasecmp-tests: New file.
46907         * tests/test-mbmemcasecmp1.sh: New file.
46908         * tests/test-mbmemcasecmp2.sh: New file.
46909         * tests/test-mbmemcasecmp3.sh: New file.
46910         * tests/test-mbmemcasecmp.c: New file.
46911
46912         New module 'mbmemcasecmp'.
46913         * lib/mbmemcasecmp.h: New file.
46914         * lib/mbmemcasecmp.c: New file.
46915         * modules/mbmemcasecmp: New file.
46916
46917 2009-03-09  Bruno Haible  <bruno@clisp.org>
46918
46919         Tests for module 'unicase/ulc-casecoll'.
46920         * modules/unicase/ulc-casecoll-tests: New file.
46921         * tests/unicase/test-ulc-casecoll1.sh: New file.
46922         * tests/unicase/test-ulc-casecoll2.sh: New file.
46923         * tests/unicase/test-ulc-casecoll.c: New file.
46924
46925         New module 'unicase/ulc-casecoll'.
46926         * lib/unicase.h (ulc_casecoll): New declaration.
46927         * lib/unicase/ulc-casecoll.c: New file.
46928         * modules/unicase/ulc-casecoll: New file.
46929
46930         New module 'unicase/ulc-casexfrm'.
46931         * lib/unicase.h (ulc_casexfrm): New declaration.
46932         * lib/unicase/ulc-casexfrm.c: New file.
46933         * modules/unicase/ulc-casexfrm: New file.
46934
46935 2009-03-09  Bruno Haible  <bruno@clisp.org>
46936
46937         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
46938         invocations.
46939
46940         * m4/mbscasecmp.m4: Remove file.
46941         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
46942         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
46943
46944         * m4/mbscasestr.m4: Remove file.
46945         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
46946         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
46947
46948         * m4/mbschr.m4: Remove file.
46949         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46950         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46951
46952         * m4/mbscspn.m4: Remove file.
46953         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46954         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46955
46956         * m4/mbslen.m4: Remove file.
46957         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46958         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46959
46960         * m4/mbsncasecmp.m4: Remove file.
46961         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46962         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46963
46964         * m4/mbsnlen.m4: Remove file.
46965         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46966         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46967
46968         * m4/mbspbrk.m4: Remove file.
46969         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46970         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46971
46972         * m4/mbspcasecmp.m4: Remove file.
46973         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46974         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46975
46976         * m4/mbsrchr.m4: Remove file.
46977         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46978         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46979
46980         * m4/mbssep.m4: Remove file.
46981         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46982         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46983
46984         * m4/mbsspn.m4: Remove file.
46985         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46986         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46987
46988         * m4/mbsstr.m4: Remove file.
46989         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46990         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46991
46992         * m4/mbstok_r.m4: Remove file.
46993         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46994         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46995
46996         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46997
46998         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46999         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47000
47001         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47002
47003 2009-03-08  Bruno Haible  <bruno@clisp.org>
47004
47005         Tests for module 'unicase/ulc-casecmp'.
47006         * modules/unicase/ulc-casecmp-tests: New file.
47007         * tests/unicase/test-ulc-casecmp1.sh: New file.
47008         * tests/unicase/test-ulc-casecmp2.sh: New file.
47009         * tests/unicase/test-ulc-casecmp.c: New file.
47010
47011         New module 'unicase/ulc-casecmp'.
47012         * lib/unicase.h (ulc_casecmp): New declaration.
47013         * lib/unicase/ulc-casecmp.c: New file.
47014         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47015         'const SRC_UNIT *'.
47016         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47017         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47018         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47019         * modules/unicase/ulc-casecmp: New file.
47020
47021         Tests for module 'unicase/u32-is-cased'.
47022         * modules/unicase/u32-is-cased-tests: New file.
47023         * tests/unicase/test-u32-is-cased.c: New file.
47024
47025         Tests for module 'unicase/u16-is-cased'.
47026         * modules/unicase/u16-is-cased-tests: New file.
47027         * tests/unicase/test-u16-is-cased.c: New file.
47028
47029         Tests for module 'unicase/u8-is-cased'.
47030         * modules/unicase/u8-is-cased-tests: New file.
47031         * tests/unicase/test-u8-is-cased.c: New file.
47032         * tests/unicase/test-is-cased.h: New file.
47033
47034         New module 'unicase/u32-is-cased'.
47035         * lib/unicase/u32-is-cased.c: New file.
47036         * modules/unicase/u32-is-cased: New file.
47037
47038         New module 'unicase/u16-is-cased'.
47039         * lib/unicase/u16-is-cased.c: New file.
47040         * modules/unicase/u16-is-cased: New file.
47041
47042         New module 'unicase/u8-is-cased'.
47043         * lib/unicase/u8-is-cased.c: New file.
47044         * lib/unicase/u-is-cased.h: New file.
47045         * modules/unicase/u8-is-cased: New file.
47046
47047         Tests for module 'unicase/u32-is-casefolded'.
47048         * modules/unicase/u32-is-casefolded-tests: New file.
47049         * tests/unicase/test-u32-is-casefolded.c: New file.
47050
47051         Tests for module 'unicase/u16-is-casefolded'.
47052         * modules/unicase/u16-is-casefolded-tests: New file.
47053         * tests/unicase/test-u16-is-casefolded.c: New file.
47054
47055         Tests for module 'unicase/u8-is-casefolded'.
47056         * modules/unicase/u8-is-casefolded-tests: New file.
47057         * tests/unicase/test-u8-is-casefolded.c: New file.
47058         * tests/unicase/test-is-casefolded.h: New file.
47059
47060         New module 'unicase/u32-is-casefolded'.
47061         * lib/unicase/u32-is-casefolded.c: New file.
47062         * modules/unicase/u32-is-casefolded: New file.
47063
47064         New module 'unicase/u16-is-casefolded'.
47065         * lib/unicase/u16-is-casefolded.c: New file.
47066         * modules/unicase/u16-is-casefolded: New file.
47067
47068         New module 'unicase/u8-is-casefolded'.
47069         * lib/unicase/u8-is-casefolded.c: New file.
47070         * modules/unicase/u8-is-casefolded: New file.
47071
47072         Tests for module 'unicase/u32-is-titlecase'.
47073         * modules/unicase/u32-is-titlecase-tests: New file.
47074         * tests/unicase/test-u32-is-titlecase.c: New file.
47075
47076         Tests for module 'unicase/u16-is-titlecase'.
47077         * modules/unicase/u16-is-titlecase-tests: New file.
47078         * tests/unicase/test-u16-is-titlecase.c: New file.
47079
47080         Tests for module 'unicase/u8-is-titlecase'.
47081         * modules/unicase/u8-is-titlecase-tests: New file.
47082         * tests/unicase/test-u8-is-titlecase.c: New file.
47083         * tests/unicase/test-is-titlecase.h: New file.
47084
47085         New module 'unicase/u32-is-titlecase'.
47086         * lib/unicase/u32-is-titlecase.c: New file.
47087         * modules/unicase/u32-is-titlecase: New file.
47088
47089         New module 'unicase/u16-is-titlecase'.
47090         * lib/unicase/u16-is-titlecase.c: New file.
47091         * modules/unicase/u16-is-titlecase: New file.
47092
47093         New module 'unicase/u8-is-titlecase'.
47094         * lib/unicase/u8-is-titlecase.c: New file.
47095         * modules/unicase/u8-is-titlecase: New file.
47096
47097         Tests for module 'unicase/u32-is-lowercase'.
47098         * modules/unicase/u32-is-lowercase-tests: New file.
47099         * tests/unicase/test-u32-is-lowercase.c: New file.
47100
47101         Tests for module 'unicase/u16-is-lowercase'.
47102         * modules/unicase/u16-is-lowercase-tests: New file.
47103         * tests/unicase/test-u16-is-lowercase.c: New file.
47104
47105         Tests for module 'unicase/u8-is-lowercase'.
47106         * modules/unicase/u8-is-lowercase-tests: New file.
47107         * tests/unicase/test-u8-is-lowercase.c: New file.
47108         * tests/unicase/test-is-lowercase.h: New file.
47109
47110         New module 'unicase/u32-is-lowercase'.
47111         * lib/unicase/u32-is-lowercase.c: New file.
47112         * modules/unicase/u32-is-lowercase: New file.
47113
47114         New module 'unicase/u16-is-lowercase'.
47115         * lib/unicase/u16-is-lowercase.c: New file.
47116         * modules/unicase/u16-is-lowercase: New file.
47117
47118         New module 'unicase/u8-is-lowercase'.
47119         * lib/unicase/u8-is-lowercase.c: New file.
47120         * modules/unicase/u8-is-lowercase: New file.
47121
47122         Tests for module 'unicase/u32-is-uppercase'.
47123         * modules/unicase/u32-is-uppercase-tests: New file.
47124         * tests/unicase/test-u32-is-uppercase.c: New file.
47125
47126         Tests for module 'unicase/u16-is-uppercase'.
47127         * modules/unicase/u16-is-uppercase-tests: New file.
47128         * tests/unicase/test-u16-is-uppercase.c: New file.
47129
47130         Tests for module 'unicase/u8-is-uppercase'.
47131         * modules/unicase/u8-is-uppercase-tests: New file.
47132         * tests/unicase/test-u8-is-uppercase.c: New file.
47133         * tests/unicase/test-is-uppercase.h: New file.
47134
47135         New module 'unicase/u32-is-uppercase'.
47136         * lib/unicase/u32-is-uppercase.c: New file.
47137         * modules/unicase/u32-is-uppercase: New file.
47138
47139         New module 'unicase/u16-is-uppercase'.
47140         * lib/unicase/u16-is-uppercase.c: New file.
47141         * modules/unicase/u16-is-uppercase: New file.
47142
47143         New module 'unicase/u8-is-uppercase'.
47144         * lib/unicase/u8-is-uppercase.c: New file.
47145         * modules/unicase/u8-is-uppercase: New file.
47146
47147         New module 'unicase/u32-is-invariant'.
47148         * lib/unicase/u32-is-invariant.c: New file.
47149         * modules/unicase/u32-is-invariant: New file.
47150
47151         New module 'unicase/u16-is-invariant'.
47152         * lib/unicase/u16-is-invariant.c: New file.
47153         * modules/unicase/u16-is-invariant: New file.
47154
47155         New module 'unicase/u8-is-invariant'.
47156         * lib/unicase/u8-is-invariant.c: New file.
47157         * lib/unicase/invariant.h: New file.
47158         * lib/unicase/u-is-invariant.h: New file.
47159         * modules/unicase/u8-is-invariant: New file.
47160
47161         Tests for module 'unicase/u32-casecoll'.
47162         * modules/unicase/u32-casecoll-tests: New file.
47163         * tests/unicase/test-u32-casecoll.c: New file.
47164
47165         Tests for module 'unicase/u16-casecoll'.
47166         * modules/unicase/u16-casecoll-tests: New file.
47167         * tests/unicase/test-u16-casecoll.c: New file.
47168
47169         Tests for module 'unicase/u8-casecoll'.
47170         * modules/unicase/u8-casecoll-tests: New file.
47171         * tests/unicase/test-u8-casecoll.c: New file.
47172
47173         New module 'unicase/u32-casecoll'.
47174         * lib/unicase/u32-casecoll.c: New file.
47175         * modules/unicase/u32-casecoll: New file.
47176
47177         New module 'unicase/u16-casecoll'.
47178         * lib/unicase/u16-casecoll.c: New file.
47179         * modules/unicase/u16-casecoll: New file.
47180
47181         New module 'unicase/u8-casecoll'.
47182         * lib/unicase/u8-casecoll.c: New file.
47183         * lib/unicase/u-casecoll.h: New file.
47184         * modules/unicase/u8-casecoll: New file.
47185
47186         New module 'unicase/u32-casexfrm'.
47187         * lib/unicase/u32-casexfrm.c: New file.
47188         * modules/unicase/u32-casexfrm: New file.
47189
47190         New module 'unicase/u16-casexfrm'.
47191         * lib/unicase/u16-casexfrm.c: New file.
47192         * modules/unicase/u16-casexfrm: New file.
47193
47194         New module 'unicase/u8-casexfrm'.
47195         * lib/unicase/u8-casexfrm.c: New file.
47196         * lib/unicase/u-casexfrm.h: New file.
47197         * modules/unicase/u8-casexfrm: New file.
47198
47199         Tests for module 'unicase/u32-casecmp'.
47200         * modules/unicase/u32-casecmp-tests: New file.
47201         * tests/unicase/test-u32-casecmp.c: New file.
47202
47203         Tests for module 'unicase/u16-casecmp'.
47204         * modules/unicase/u16-casecmp-tests: New file.
47205         * tests/unicase/test-u16-casecmp.c: New file.
47206
47207         Tests for module 'unicase/u8-casecmp'.
47208         * modules/unicase/u8-casecmp-tests: New file.
47209         * tests/unicase/test-u8-casecmp.c: New file.
47210         * tests/unicase/test-casecmp.h: New file.
47211
47212         New module 'unicase/u32-casecmp'.
47213         * lib/unicase/u32-casecmp.c: New file.
47214         * modules/unicase/u32-casecmp: New file.
47215
47216         New module 'unicase/u16-casecmp'.
47217         * lib/unicase/u16-casecmp.c: New file.
47218         * modules/unicase/u16-casecmp: New file.
47219
47220         New module 'unicase/u8-casecmp'.
47221         * lib/unicase/u8-casecmp.c: New file.
47222         * lib/unicase/u-casecmp.h: New file.
47223         * modules/unicase/u8-casecmp: New file.
47224
47225         Tests for module 'unicase/u32-casefold'.
47226         * modules/unicase/u32-casefold-tests: New file.
47227         * tests/unicase/test-u32-casefold.c: New file.
47228
47229         Tests for module 'unicase/u16-casefold'.
47230         * modules/unicase/u16-casefold-tests: New file.
47231         * tests/unicase/test-u16-casefold.c: New file.
47232
47233         Tests for module 'unicase/u8-casefold'.
47234         * modules/unicase/u8-casefold-tests: New file.
47235         * tests/unicase/test-u8-casefold.c: New file.
47236
47237         New module 'unicase/u32-casefold'.
47238         * lib/unicase/u32-casefold.c: New file.
47239         * modules/unicase/u32-casefold: New file.
47240
47241         New module 'unicase/u16-casefold'.
47242         * lib/unicase/u16-casefold.c: New file.
47243         * modules/unicase/u16-casefold: New file.
47244
47245         New module 'unicase/u8-casefold'.
47246         * lib/unicase/u8-casefold.c: New file.
47247         * lib/unicase/u-casefold.h: New file.
47248         * modules/unicase/u8-casefold: New file.
47249
47250         New module 'unicase/tocasefold'.
47251         * lib/unicase/casefold.h: New file.
47252         * lib/unicase/tocasefold.c: New file.
47253         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47254         * modules/unicase/tocasefold: New file.
47255
47256         Tests for module 'unicase/u32-totitle'.
47257         * modules/unicase/u32-totitle-tests: New file.
47258         * tests/unicase/test-u32-totitle.c: New file.
47259
47260         Tests for module 'unicase/u16-totitle'.
47261         * modules/unicase/u16-totitle-tests: New file.
47262         * tests/unicase/test-u16-totitle.c: New file.
47263
47264         Tests for module 'unicase/u8-totitle'.
47265         * modules/unicase/u8-totitle-tests: New file.
47266         * tests/unicase/test-u8-totitle.c: New file.
47267
47268         New module 'unicase/u32-totitle'.
47269         * lib/unicase/u32-totitle.c: New file.
47270         * modules/unicase/u32-totitle: New file.
47271
47272         New module 'unicase/u16-totitle'.
47273         * lib/unicase/u16-totitle.c: New file.
47274         * modules/unicase/u16-totitle: New file.
47275
47276         New module 'unicase/u8-totitle'.
47277         * lib/unicase/u8-totitle.c: New file.
47278         * lib/unicase/u-totitle.h: New file.
47279         * modules/unicase/u8-totitle: New file.
47280
47281         Tests for module 'unicase/u32-tolower'.
47282         * modules/unicase/u32-tolower-tests: New file.
47283         * tests/unicase/test-u32-tolower.c: New file.
47284
47285         Tests for module 'unicase/u16-tolower'.
47286         * modules/unicase/u16-tolower-tests: New file.
47287         * tests/unicase/test-u16-tolower.c: New file.
47288
47289         Tests for module 'unicase/u8-tolower'.
47290         * modules/unicase/u8-tolower-tests: New file.
47291         * tests/unicase/test-u8-tolower.c: New file.
47292
47293         New module 'unicase/u32-tolower'.
47294         * lib/unicase/u32-tolower.c: New file.
47295         * modules/unicase/u32-tolower: New file.
47296
47297         New module 'unicase/u16-tolower'.
47298         * lib/unicase/u16-tolower.c: New file.
47299         * modules/unicase/u16-tolower: New file.
47300
47301         New module 'unicase/u8-tolower'.
47302         * lib/unicase/u8-tolower.c: New file.
47303         * modules/unicase/u8-tolower: New file.
47304
47305         Tests for module 'unicase/u32-toupper'.
47306         * modules/unicase/u32-toupper-tests: New file.
47307         * tests/unicase/test-u32-toupper.c: New file.
47308
47309         Tests for module 'unicase/u16-toupper'.
47310         * modules/unicase/u16-toupper-tests: New file.
47311         * tests/unicase/test-u16-toupper.c: New file.
47312
47313         Tests for module 'unicase/u8-toupper'.
47314         * modules/unicase/u8-toupper-tests: New file.
47315         * tests/unicase/test-u8-toupper.c: New file.
47316
47317         New module 'unicase/u32-toupper'.
47318         * lib/unicase/u32-toupper.c: New file.
47319         * modules/unicase/u32-toupper: New file.
47320
47321         New module 'unicase/u16-toupper'.
47322         * lib/unicase/u16-toupper.c: New file.
47323         * modules/unicase/u16-toupper: New file.
47324
47325         New module 'unicase/u8-toupper'.
47326         * lib/unicase/u8-toupper.c: New file.
47327         * modules/unicase/u8-toupper: New file.
47328
47329         New module 'unicase/u32-casemap'.
47330         * lib/unicase/u32-casemap.c: New file.
47331         * modules/unicase/u32-casemap: New file.
47332
47333         New module 'unicase/u16-casemap'.
47334         * lib/unicase/u16-casemap.c: New file.
47335         * modules/unicase/u16-casemap: New file.
47336
47337         New module 'unicase/u8-casemap'.
47338         * lib/unicase/unicasemap.h: New file.
47339         * lib/unicase/u8-casemap.c: New file.
47340         * lib/unicase/u-casemap.h: New file.
47341         * modules/unicase/u8-casemap: New file.
47342
47343         New module 'unicase/special-casing'.
47344         * lib/unicase/special-casing.h: New file.
47345         * lib/unicase/special-casing.c: New file.
47346         * lib/unicase/special-casing-table.gperf: New file, generated by
47347         gen-uni-tables.c.
47348         * modules/unicase/special-casing: New file.
47349
47350         Tests for module 'unicase/locale-language'.
47351         * modules/unicase/locale-language-tests: New file.
47352         * tests/unicase/test-locale-language.sh: New file.
47353         * tests/unicase/test-locale-language.c: New file.
47354
47355         New module 'unicase/locale-language'.
47356         * lib/unicase/locale-language.c: New file.
47357         * lib/unicase/locale-languages.gperf: New file.
47358         * modules/unicase/locale-language: New file.
47359
47360         Generate more tables for case conversion and case folding.
47361         * lib/gen-uni-tables.c (SCC_*): New enum items.
47362         (struct special_casing_rule): New type.
47363         (casing_rules, num_casing_rules, allocated_casing_rules): New
47364         variables.
47365         (add_casing_rule, fill_casing_rules): New functions.
47366         (struct casefold_rule): New type.
47367         (casefolding_rules, num_casefolding_rules,
47368         allocated_casefolding_rules): New variables.
47369         (fill_casefolding_rules): New function.
47370         (unicode_casefold): New variable.
47371         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47372         sort_casing_rules, output_casing_rules): New functions.
47373         (main): Accept to more arguments: SpecialCasing.txt and
47374         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47375         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47376         Output mapping for casefolding.
47377
47378         * lib/unicase.h: Include stdbool.h, uninorm.h.
47379         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47380         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47381         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47382         arguments.
47383         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47384         resultp arguments.
47385         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47386         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47387         resultp arguments.
47388         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47389         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47390         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47391         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47392         declarations.
47393         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47394
47395 2009-03-08  Bruno Haible  <bruno@clisp.org>
47396
47397         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47398         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47399         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47400         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47401
47402 2009-03-07  Bruno Haible  <bruno@clisp.org>
47403
47404         Adjust u*_normcmp, u*_normcoll API.
47405         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47406         u16_normcoll, u32_normcoll): Change failure conventions.
47407         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47408         errno and return -1.
47409         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47410
47411 2009-03-07  Bruno Haible  <bruno@clisp.org>
47412
47413         Tests for module 'uninorm/u32-normcoll'.
47414         * modules/uninorm/u32-normcoll-tests: New file.
47415         * tests/uninorm/test-u32-normcoll.c: New file.
47416
47417         Tests for module 'uninorm/u16-normcoll'.
47418         * modules/uninorm/u16-normcoll-tests: New file.
47419         * tests/uninorm/test-u16-normcoll.c: New file.
47420
47421         Tests for module 'uninorm/u8-normcoll'.
47422         * modules/uninorm/u8-normcoll-tests: New file.
47423         * tests/uninorm/test-u8-normcoll.c: New file.
47424
47425 2009-03-07  Bruno Haible  <bruno@clisp.org>
47426
47427         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47428         tests/uninorm/test-u32-normcmp.c.
47429         * tests/uninorm/test-u32-normcmp.c: Include it.
47430         (test_nonascii): New function, extracted from main. Add some more
47431         tests.
47432         (main): Invoke test_ascii and test_nonascii.
47433         * modules/uninorm/u32-normcmp-tests (Files): Add
47434         tests/uninorm/test-u32-normcmp.h.
47435         (Depends-on): Remove uninorm/u32-normcmp.
47436
47437         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47438         tests/uninorm/test-u16-normcmp.c.
47439         * tests/uninorm/test-u16-normcmp.c: Include it.
47440         (test_nonascii): New function, extracted from main. Add some more
47441         tests.
47442         (main): Invoke test_ascii and test_nonascii.
47443         * modules/uninorm/u16-normcmp-tests (Files): Add
47444         tests/uninorm/test-u16-normcmp.h.
47445         (Depends-on): Remove uninorm/u16-normcmp.
47446
47447         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47448         tests/uninorm/test-u8-normcmp.c.
47449         * tests/uninorm/test-u8-normcmp.c: Include it.
47450         (test_nonascii): New function, extracted from main. Add some more
47451         tests.
47452         (main): Invoke test_ascii and test_nonascii.
47453         * modules/uninorm/u8-normcmp-tests (Files): Add
47454         tests/uninorm/test-u8-normcmp.h.
47455         (Depends-on): Remove uninorm/u8-normcmp.
47456
47457 2009-03-07  Bruno Haible  <bruno@clisp.org>
47458
47459         New module 'uninorm/u32-normcoll'.
47460         * lib/uninorm/u32-normcoll.c: New file.
47461         * modules/uninorm/u32-normcoll: New file.
47462
47463         New module 'uninorm/u16-normcoll'.
47464         * lib/uninorm/u16-normcoll.c: New file.
47465         * modules/uninorm/u16-normcoll: New file.
47466
47467         New module 'uninorm/u8-normcoll'.
47468         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47469         declarations.
47470         * lib/uninorm/u8-normcoll.c: New file.
47471         * lib/uninorm/u-normcoll.h: New file.
47472         * modules/uninorm/u8-normcoll: New file.
47473
47474         New module 'uninorm/u32-normxfrm'.
47475         * lib/uninorm/u32-normxfrm.c: New file.
47476         * modules/uninorm/u32-normxfrm: New file.
47477
47478         New module 'uninorm/u16-normxfrm'.
47479         * lib/uninorm/u16-normxfrm.c: New file.
47480         * modules/uninorm/u16-normxfrm: New file.
47481
47482         New module 'uninorm/u8-normxfrm'.
47483         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47484         declarations.
47485         * lib/uninorm/u8-normxfrm.c: New file.
47486         * lib/uninorm/u-normxfrm.h: New file.
47487         * modules/uninorm/u8-normxfrm: New file.
47488
47489 2009-03-07  Bruno Haible  <bruno@clisp.org>
47490
47491         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47492         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47493         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47494
47495 2009-03-07  Bruno Haible  <bruno@clisp.org>
47496
47497         New module 'memxfrm'.
47498         * lib/memxfrm.h: New file.
47499         * lib/memxfrm.c: New file.
47500         * modules/memxfrm: New file.
47501
47502 2009-03-07  Bruno Haible  <bruno@clisp.org>
47503
47504         New module 'memcmp2'.
47505         * lib/memcmp2.h: New file.
47506         * lib/memcmp2.c: New file.
47507         * modules/memcmp2: New file.
47508
47509 2009-03-07  Bruno Haible  <bruno@clisp.org>
47510
47511         Tests for module 'uninorm/decomposing-form'.
47512         * modules/uninorm/decomposing-form-tests: New file.
47513         * tests/uninorm/test-decomposing-form.c: New file.
47514
47515         New module 'uninorm/decomposing-form'.
47516         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47517         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47518         Add 'decomposing_variant' field.
47519         * lib/uninorm/decomposing-form.c: New file.
47520         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47521         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47522         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47523         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47524         * modules/uninorm/decomposing-form: New file.
47525         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47526         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47527
47528 2009-03-07  Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47531         strings.
47532
47533 2009-03-06  Bruno Haible  <bruno@clisp.org>
47534
47535         Tests for module 'uninorm/u32-normcmp'.
47536         * tests/uninorm/test-u32-normcmp.c: New file.
47537         * modules/uninorm/u32-normcmp-tests: New file.
47538
47539         Tests for module 'uninorm/u16-normcmp'.
47540         * tests/uninorm/test-u16-normcmp.c: New file.
47541         * modules/uninorm/u16-normcmp-tests: New file.
47542
47543         Tests for module 'uninorm/u8-normcmp'.
47544         * tests/uninorm/test-u8-normcmp.c: New file.
47545         * modules/uninorm/u8-normcmp-tests: New file.
47546
47547         New module 'uninorm/u32-normcmp'.
47548         * lib/uninorm/u32-normcmp.c: New file.
47549         * modules/uninorm/u32-normcmp: New file.
47550
47551         New module 'uninorm/u16-normcmp'.
47552         * lib/uninorm/u16-normcmp.c: New file.
47553         * modules/uninorm/u16-normcmp: New file.
47554
47555         New module 'uninorm/u8-normcmp'.
47556         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47557         declarations.
47558         * lib/uninorm/u8-normcmp.c: New file.
47559         * lib/uninorm/u-normcmp.h: New file.
47560         * modules/uninorm/u8-normcmp: New file.
47561
47562 2009-03-06  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47565         Reported by Eric Blake.
47566
47567 2009-03-06  Eric Blake  <ebb9@byu.net>
47568             Bruno Haible  <bruno@clisp.org>
47569
47570         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47571         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47572         condition.
47573         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47574         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47575         condition.
47576         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47577
47578 2009-03-06  Eric Blake  <ebb9@byu.net>
47579
47580         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47581         to avoid compiler warnings.
47582         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47583
47584 2009-03-05  Bruno Haible  <bruno@clisp.org>
47585
47586         * tests/test-ftell.c (main): Disable test beyond end of file on
47587         FreeMiNT.
47588         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47589
47590 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47591
47592         * lib/filevercmp.c: Move hidden files up in ordering.
47593         * tests/test-filevercmp.c: Add tests for hidden files.
47594
47595 2009-03-04  Bruno Haible  <bruno@clisp.org>
47596
47597         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47598         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47599         AM_CFLAGS.
47600         Reported by Simon Josefsson.
47601
47602 2009-03-03  Bruno Haible  <bruno@clisp.org>
47603
47604         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47605         Reported by Simon Josefsson.
47606
47607         * doc/ld-version-script.texi: Update node reference.
47608
47609 2009-03-03  Bruno Haible  <bruno@clisp.org>
47610
47611         * modules/visibility (License): Change to 'unlimited'.
47612         Suggested by Simon Josefsson.
47613
47614 2009-03-03  Jim Meyering  <meyering@redhat.com>
47615
47616         unlinkdir: cannot_unlink_dir may modify process state
47617         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47618         it's neither thread-safe nor appropriate for use in a library.
47619
47620 2009-03-03  Eric Blake  <ebb9@byu.net>
47621
47622         test-closein: silence test under Darwin
47623         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47624         care if it dies from EPIPE or EBADF.
47625
47626 2009-03-03  Bruno Haible  <bruno@clisp.org>
47627
47628         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47629         earlier.
47630         * doc/visibility.texi: Fix @node and @section.
47631
47632 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47633
47634         * doc/gnulib.texi: Link to sections for ld version script and
47635         visibility.
47636         * doc/visibility.texi: Add @node and @section.
47637         * modules/ld-version-script: New module.
47638         * m4/ld-version-script.m4: New file.
47639         * doc/ld-version-script.texi: New file.
47640
47641 2009-03-02  David Lutterkort  <lutter@redhat.com>
47642
47643         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47645
47646 2009-03-02  Bruno Haible  <bruno@clisp.org>
47647
47648         * doc/visibility.texi: Mention libtool's -export-symbols option.
47649
47650 2009-03-02  Jim Meyering  <meyering@redhat.com>
47651
47652         announce-gen: new option: --no-print-checksums
47653         * build-aux/announce-gen (usage): Describe it.
47654         (print_checksums): Print a newline here, not in the [*] footnote.
47655         (main): Honor it.
47656
47657 2009-03-01  Bruno Haible  <bruno@clisp.org>
47658
47659         Use socklen_t in the native Windows replacements prototypes.
47660         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47661         instead of 'int'.
47662         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47663         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47664         * modules/getsockopt (Depends-on): Add socklen.
47665         * modules/setsockopt (Depends-on): Add socklen.
47666
47667 2009-03-01  Bruno Haible  <bruno@clisp.org>
47668
47669         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47670         least 4.2.
47671
47672 2009-03-01  Eric Blake  <ebb9@byu.net>
47673             Bruno Haible  <bruno@clisp.org>
47674
47675         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47676         error messages.
47677         * lib/wait-process.c (wait_subprocess): Omit error message about
47678         deadly signal sent to the child of termsigp != NULL.
47679
47680 2009-03-01  Eric Blake  <ebb9@byu.net>
47681
47682         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47683
47684 2009-03-01  Bruno Haible  <bruno@clisp.org>
47685
47686         Avoid a gcc warning.
47687         * tests/test-sched.c (b): Make global.
47688         Reported by Eric Blake.
47689
47690 2009-01-19  Martin Lambers  <marlam@marlam.de>
47691
47692         Provide POSIX semantics for socket timeout options on W32.
47693         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47694         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47695         * modules/setsockopt: Depend on sys_time module for struct timeval.
47696         * modules/getsockopt: Depend on sys_time module for struct timeval.
47697
47698 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47699
47700         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47701         __USE_GNU, for consistency with netdb.in.h.
47702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47703
47704 2009-03-01  Bruno Haible  <bruno@clisp.org>
47705
47706         More support for FreeMiNT.
47707         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47709
47710 2009-03-01  Bruno Haible  <bruno@clisp.org>
47711
47712         More support for FreeMiNT.
47713         * lib/fpurge.c (fpurge): Correct last commit.
47714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47715
47716 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47717
47718         Fix unportable awk script in vc-list-files.
47719         * build-aux/vc-list-files: In the replacement awk script, use
47720         substr with a second argument of 1, not zero.
47721         Report by Simon Josefsson.
47722
47723 2009-02-28  Bruno Haible  <bruno@clisp.org>
47724
47725         More support for FreeMiNT.
47726         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47727         to FreeMiNT today.
47728         * lib/fwriting.c (fwriting): Likewise.
47729         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47730
47731 2009-02-28  Bruno Haible  <bruno@clisp.org>
47732
47733         * tests/test-freadseek.c (main): Disable test beyond end of file on
47734         FreeMiNT.
47735         * tests/test-ftello.c (main): Likewise.
47736         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47737
47738 2009-02-28  Bruno Haible  <bruno@clisp.org>
47739
47740         Add tentative support for FreeMiNT.
47741         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47742         * lib/fpurge.c (fpurge): Likewise.
47743         * lib/freadable.c (freadable): Likewise.
47744         * lib/freading.c (freading): Likewise.
47745         * lib/freadptr.c (freadptr): Likewise.
47746         * lib/freadseek.c (freadptrinc): Likewise.
47747         * lib/fseeko.c (rpl_fseeko): Likewise.
47748         * lib/fseterr.c (fseterr): Likewise.
47749         * lib/fwritable.c (fwritable): Likewise.
47750         * lib/fwriting.c (fwriting): Likewise.
47751         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47752         Hourihane.
47753         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47754
47755 2009-02-28  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47758         SIGCHLD.
47759         Reported by Jim Meyering.
47760
47761 2009-02-28  Bruno Haible  <bruno@clisp.org>
47762
47763         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47764         Mention the results of these tests on various platforms.
47765         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47766         order.
47767         * doc/posix-functions/printf.texi: Likewise.
47768         * doc/posix-functions/snprintf.texi: Likewise.
47769         * doc/posix-functions/sprintf.texi: Likewise.
47770         * doc/posix-functions/vfprintf.texi: Likewise.
47771         * doc/posix-functions/vprintf.texi: Likewise.
47772         * doc/posix-functions/vsnprintf.texi: Likewise.
47773         * doc/posix-functions/vsprintf.texi: Likewise.
47774         * doc/glibc-functions/obstack_printf.texi: Likewise.
47775         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47776
47777 2009-02-28  Bruno Haible  <bruno@clisp.org>
47778
47779         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47780         Reported by Loïc Minier <lool@dooz.org>.
47781
47782 2009-02-27  Bruno Haible  <bruno@clisp.org>
47783
47784         * gnulib-tool (func_import): Make the sed expression used to create the
47785         sed script for updating the .gitignore file POSIX compliant.
47786         Reported by Eric Blake.
47787
47788 2009-02-27  Bruno Haible  <bruno@clisp.org>
47789
47790         * gnulib-tool (sed): Don't alias as "sed --posix".
47791         Reported by Eric Blake.
47792
47793 2009-02-27  Bruno Haible  <bruno@clisp.org>
47794
47795         Avoid test link errors.
47796         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47797         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47798         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47799         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47800         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47801
47802 2009-02-27  Bruno Haible  <bruno@clisp.org>
47803
47804         Avoid spurious "(cached)" in configure output.
47805         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47806         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47807         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47808         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47809         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47811         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47812         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47813         Reported by Eric Blake.
47814
47815 2009-02-27  Eric Blake  <ebb9@byu.net>
47816
47817         printf: fix regression in previous patch
47818         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
47819
47820 2009-02-27  Bruno Haible  <bruno@clisp.org>
47821
47822         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
47823         value.
47824         * lib/stdint.in.h: Likewise.
47825         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
47826
47827 2009-02-27  Eric Blake  <ebb9@byu.net>
47828
47829         doc: mention more functions added in cygwin 1.7.0
47830         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
47831         addition.
47832         * doc/posix-functions/open_wmemstream.texi: Likewise.
47833         * doc/posix-functions/wcsnlen.texi: Likewise.
47834         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47835         * doc/posix-functions/wcstod.texi: Likewise.
47836         * doc/posix-functions/wcstof.texi: Likewise.
47837         * doc/posix-functions/wcstoimax.texi: Likewise.
47838         * doc/posix-functions/wcstok.texi: Likewise.
47839         * doc/posix-functions/wcstoumax.texi: Likewise.
47840
47841         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
47842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
47843         * doc/posix-functions/fprintf.texi: Update.
47844         * doc/posix-functions/printf.texi: Update.
47845         * doc/posix-functions/snprintf.texi: Update.
47846         * doc/posix-functions/sprintf.texi: Update.
47847         * doc/posix-functions/vfprintf.texi: Update.
47848         * doc/posix-functions/vprintf.texi: Update.
47849         * doc/posix-functions/vsnprintf.texi: Update.
47850         * doc/posix-functions/vsprintf.texi: Update.
47851         * doc/glibc-functions/obstack_printf.texi: Update.
47852         * doc/glibc-functions/obstack_vprintf.texi: Update.
47853
47854 2009-02-26  Eric Blake  <ebb9@byu.net>
47855
47856         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
47857         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
47858         compilation bug by using runtime conversion.
47859         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47860         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
47861         * modules/ceill-tests (Files): Use nan.h.
47862         * modules/floorl-tests (Files): Likewise.
47863         * modules/frexpl-tests (Files): Likewise.
47864         * modules/isnanl-tests (Files): Likewise.
47865         * modules/ldexpl-tests (Files): Likewise.
47866         * modules/roundl-tests (Files): Likewise.
47867         * modules/truncl-tests (Files): Likewise.
47868         * tests/test-ceill.c (main): Use a working NaN.
47869         * tests/test-floorl.c (main): Likewise.
47870         * tests/test-frexpl.c (main): Likewise.
47871         * tests/test-isnan.c (test_long_double): Likewise.
47872         * tests/test-isnanl.h (main): Likewise.
47873         * tests/test-ldexpl.h (main): Likewise.
47874         * tests/test-roundl.h (main): Likewise.
47875         * tests/test-truncl.h (main): Likewise.
47876         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
47877
47878 2009-02-26  Eric Blake  <ebb9@byu.net>
47879             Bruno Haible  <bruno@clisp.org>
47880
47881         Work around a *printf bug with %ls on Solaris.
47882         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
47883         precision is specified, sprintf stops converting the wide string
47884         argument when the number of bytes that have been produced by this
47885         conversion equals or exceeds the precision.
47886         * doc/posix-functions/fprintf.texi: Update.
47887         * doc/posix-functions/printf.texi: Update.
47888         * doc/posix-functions/snprintf.texi: Update.
47889         * doc/posix-functions/sprintf.texi: Update.
47890         * doc/posix-functions/vfprintf.texi: Update.
47891         * doc/posix-functions/vprintf.texi: Update.
47892         * doc/posix-functions/vsnprintf.texi: Update.
47893         * doc/posix-functions/vsprintf.texi: Update.
47894         * doc/glibc-functions/obstack_printf.texi: Update.
47895         * doc/glibc-functions/obstack_vprintf.texi: Update.
47896
47897 2009-02-26  Eric Blake  <ebb9@byu.net>
47898
47899         stdlib: favor compiler check of random.h
47900         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
47901         to avoid an ObjC random.h installed by Swarm.
47902
47903 2009-02-26  Bruno Haible  <bruno@clisp.org>
47904
47905         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
47906         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
47907         Reported by Gary V. Vaughan <gary@gnu.org>.
47908
47909 2009-02-26  Bruno Haible  <bruno@clisp.org>
47910
47911         Fix *printf behaviour regarding the %ls directive.
47912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
47913         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
47914         NEED_PRINTF_DIRECTIVE_LS.
47915         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
47916         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47918         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
47919         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
47920         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
47921         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47922         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47924         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47926         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
47927         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47930         * doc/posix-functions/fprintf.texi: Update.
47931         * doc/posix-functions/printf.texi: Update.
47932         * doc/posix-functions/snprintf.texi: Update.
47933         * doc/posix-functions/sprintf.texi: Update.
47934         * doc/posix-functions/vfprintf.texi: Update.
47935         * doc/posix-functions/vprintf.texi: Update.
47936         * doc/posix-functions/vsnprintf.texi: Update.
47937         * doc/posix-functions/vsprintf.texi: Update.
47938         * doc/glibc-functions/obstack_printf.texi: Update.
47939         * doc/glibc-functions/obstack_vprintf.texi: Update.
47940         Reported by Eric Blake.
47941
47942 2009-02-25  Bruno Haible  <bruno@clisp.org>
47943
47944         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
47945         with known value.
47946         Reported by Gary V. Vaughan <gary@gnu.org>.
47947
47948 2009-02-25  Bruno Haible  <bruno@clisp.org>
47949
47950         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47951         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47952         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47953         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47954         Reported by Gary V. Vaughan <gary@gnu.org>.
47955
47956 2009-02-25  Bruno Haible  <bruno@clisp.org>
47957
47958         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47959         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47960         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47961         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47962         Reported by Gary V. Vaughan <gary@gnu.org>.
47963
47964 2009-02-25  Eric Blake  <ebb9@byu.net>
47965
47966         tests: skip fseek/ftell tests if ungetc is broken
47967         * m4/ungetc.m4: New file.
47968         * modules/fseek-tests: Split test, so ungetc dependency is
47969         separate from rest of test.
47970         * modules/fseeko-tests: Likewise.
47971         * modules/ftell-tests: Likewise.
47972         * modules/ftello-tests: Likewise.
47973         * tests/test-fseek.c (main): Isolate ungetc dependency.
47974         * tests/test-fseeko.c (main): Likewise.
47975         * tests/test-ftell.c (main): Likewise.
47976         * tests/test-ftello.c (main): Likewise.
47977         * tests/test-fseek2.sh: New file.
47978         * tests/test-fseeko2.sh: Likewise.
47979         * tests/test-ftell2.sh: Likewise.
47980         * tests/test-ftello2.sh: Likewise.
47981
47982 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
47983
47984         test-getaddrinfo: fix usage of skip return code 77
47985         * tests/test-gettaddrinfo.c: Return skip code 77 only
47986         for first occurrence of skip (4x77 is not 77)
47987
47988 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47989
47990         strtod: avoid C99 decl-after-statement
47991         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47992
47993 2009-02-24  Eric Blake  <ebb9@byu.net>
47994
47995         strtod: detect HP-UX 11.31 bug
47996         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47997         Reported by Gary V. Vaughan.
47998
47999 2009-02-23  Bruno Haible  <bruno@clisp.org>
48000
48001         Fix invalid read past end of memory block.
48002         * lib/vasnprintf.c (DCHAR_SET): Define.
48003         (local_wcslen): Define only when needed.
48004         (local_strnlen, local_wcsnlen): New functions.
48005         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48006         directives that involve a conversion ourselves.
48007         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48008         wcsnlen, mbrtowc, wcrtomb.
48009         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48010         * tests/test-vasprintf-posix.c (test_function): Likewise.
48011         * tests/test-snprintf-posix.h (test_function): Likewise.
48012         * tests/test-sprintf-posix.h (test_function): Likewise.
48013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48014
48015 2009-02-22  Bruno Haible  <bruno@clisp.org>
48016
48017         Implement new clarified decomposition of Hangul syllables.
48018         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48019         of type LTV, return only a pairwise decomposition.
48020         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48021         Likewise.
48022         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48023         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48024         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48025
48026 2009-02-22  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48029         zero-length results and shrink excess allocated memory.
48030         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48031         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48032         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48033         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48034         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48035         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48036         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48037         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48038         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48039         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48040         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48041         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48042
48043 2009-02-21  Bruno Haible  <bruno@clisp.org>
48044
48045         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48046         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48047         spaces after a period. Put a space between a macro name and its
48048         argument list. Trivial rewordings.
48049         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48050         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48051         (main): Return 0 explicitly.
48052
48053 2009-02-21  Bruno Haible  <bruno@clisp.org>
48054
48055         Tests for module 'uninorm/filter'.
48056         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48057         * modules/uninorm/filter-tests: New file.
48058
48059         New module 'uninorm/filter'.
48060         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48061         uninorm_filter_flush, uninorm_filter_free): New declarations.
48062         * lib/uninorm/uninorm-filter.c: New file.
48063         * modules/uninorm/filter: New file.
48064
48065 2009-02-21  Bruno Haible  <bruno@clisp.org>
48066
48067         Tests for module 'uninorm/nfkc'.
48068         * tests/uninorm/test-nfkc.c: New file.
48069         * tests/uninorm/test-u8-nfkc.c: New file.
48070         * tests/uninorm/test-u16-nfkc.c: New file.
48071         * tests/uninorm/test-u32-nfkc.c: New file.
48072         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48073         * tests/uninorm/test-u32-nfkc-big.c: New file.
48074         * modules/uninorm/nfkc-tests: New file.
48075
48076         New module 'uninorm/nfkc'.
48077         * lib/uninorm/nfkc.c: New file.
48078         * modules/uninorm/nfkc: New file.
48079
48080         Tests for module 'uninorm/nfkd'.
48081         * tests/uninorm/test-nfkd.c: New file.
48082         * tests/uninorm/test-u8-nfkd.c: New file.
48083         * tests/uninorm/test-u16-nfkd.c: New file.
48084         * tests/uninorm/test-u32-nfkd.c: New file.
48085         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48086         * tests/uninorm/test-u32-nfkd-big.c: New file.
48087         * modules/uninorm/nfkd-tests: New file.
48088
48089         New module 'uninorm/nfkd'.
48090         * lib/uninorm/nfkd.c: New file.
48091         * modules/uninorm/nfkd: New file.
48092
48093         Tests for module 'uninorm/nfc'.
48094         * tests/uninorm/test-nfc.c: New file.
48095         * tests/uninorm/test-u8-nfc.c: New file.
48096         * tests/uninorm/test-u16-nfc.c: New file.
48097         * tests/uninorm/test-u32-nfc.c: New file.
48098         * tests/uninorm/test-u32-nfc-big.sh: New file.
48099         * tests/uninorm/test-u32-nfc-big.c: New file.
48100         * modules/uninorm/nfc-tests: New file.
48101
48102         New module 'uninorm/nfc'.
48103         * lib/uninorm/nfc.c: New file.
48104         * modules/uninorm/nfc: New file.
48105
48106         Tests for module 'uninorm/nfd'.
48107         * tests/uninorm/test-nfd.c: New file.
48108         * tests/uninorm/test-u8-nfd.c: New file.
48109         * tests/uninorm/test-u16-nfd.c: New file.
48110         * tests/uninorm/test-u32-nfd.c: New file.
48111         * tests/uninorm/test-u32-nfd-big.sh: New file.
48112         * tests/uninorm/test-u32-nfd-big.c: New file.
48113         * tests/uninorm/test-u32-normalize-big.h: New file.
48114         * tests/uninorm/test-u32-normalize-big.c: New file.
48115         * tests/uninorm/NormalizationTest.txt: New file, created from
48116         Unicode 5.1.0 NormalizationTest.txt.
48117         * modules/uninorm/nfd-tests: New file.
48118
48119         New module 'uninorm/nfd'.
48120         * lib/uninorm/nfd.c: New file.
48121         * modules/uninorm/nfd: New file.
48122
48123         New module 'uninorm/u32-normalize'.
48124         * lib/uninorm/u32-normalize.c: New file.
48125         * modules/uninorm/u32-normalize: New file.
48126
48127         New module 'uninorm/u16-normalize'.
48128         * lib/uninorm/u16-normalize.c: New file.
48129         * modules/uninorm/u16-normalize: New file.
48130
48131         New module 'uninorm/u8-normalize'.
48132         * lib/uninorm/u8-normalize.c: New file.
48133         * lib/uninorm/normalize-internal.h: New file.
48134         * lib/uninorm/u-normalize-internal.h: New file.
48135         * modules/uninorm/u8-normalize: New file.
48136
48137         New module 'uninorm/decompose-internal'.
48138         * lib/uninorm/decompose-internal.c: New file.
48139         * modules/uninorm/decompose-internal: New file.
48140
48141         Tests for module 'uninorm/composition'.
48142         * tests/uninorm/test-composition.c: New file.
48143         * modules/uninorm/composition-tests: New file.
48144
48145         New module 'uninorm/composition'.
48146         * lib/uninorm/composition.c: New file.
48147         * lib/uninorm/composition-table.gperf: New file, generated by
48148         gen-uni-tables.
48149         * modules/uninorm/composition: New file.
48150
48151         Tests for module 'uninorm/compat-decomposition'.
48152         * tests/uninorm/test-compat-decomposition.c: New file.
48153         * modules/uninorm/compat-decomposition-tests: New file.
48154
48155         New module 'uninorm/compat-decomposition'.
48156         * lib/uninorm/decompose-internal.h: New file.
48157         * lib/uninorm/compat-decomposition.c: New file.
48158         * modules/uninorm/compat-decomposition: New file.
48159
48160         Tests for module 'uninorm/canonical-decomposition'.
48161         * tests/uninorm/test-canonical-decomposition.c: New file.
48162         * modules/uninorm/canonical-decomposition-tests: New file.
48163
48164         New module 'uninorm/canonical-decomposition'.
48165         * lib/uninorm/canonical-decomposition.c: New file.
48166         * modules/uninorm/canonical-decomposition: New file.
48167
48168         Tests for module 'uninorm/decomposition'.
48169         * tests/uninorm/test-decomposition.c: New file.
48170         * modules/uninorm/decomposition-tests: New file.
48171
48172         New module 'uninorm/decomposition'.
48173         * lib/uninorm/decomposition.c: New file.
48174         * modules/uninorm/decomposition: New file.
48175
48176         New module 'uninorm/decomposition-table'.
48177         * lib/uninorm/decomposition-table.h: New file.
48178         * lib/uninorm/decomposition-table.c: New file.
48179         * lib/uninorm/decomposition-table1.h: New file, generated by
48180         gen-uni-tables.
48181         * lib/uninorm/decomposition-table2.h: New file, generated by
48182         gen-uni-tables.
48183         * modules/uninorm/decomposition-table: New file.
48184
48185         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48186         (UC_DECOMP_*): New enumeration items.
48187         (get_decomposition): New function.
48188         (struct decomp_table): New type.
48189         (output_decomposition, output_decomposition_tables): New functions.
48190         (unicode_composition_exclusions): New variable.
48191         (fill_composition_exclusions, debug_output_composition_tables): New
48192         functions.
48193         (main): Accept one more argument. Invoke fill_composition_exclusions.
48194         Output decomposition and composition tables.
48195
48196         New module 'uninorm/base'.
48197         * lib/uninorm.h: New file.
48198         * lib/unictype.h: Update comment.
48199         * modules/uninorm/base: New file.
48200
48201 2009-02-21  David Lutterkort  <lutter@redhat.com>
48202
48203         Tests for module 'safe-alloc'.
48204         * tests/test-safe-alloc.c: New file.
48205         * modules/safe-alloc-tests: New file.
48206
48207         New module 'safe-alloc'.
48208         * lib/safe-alloc.h: New file.
48209         * lib/safe-alloc.c: New file.
48210         * m4/safe-alloc.m4: New file.
48211         * modules/safe-alloc: New file.
48212         * doc/safe-alloc.texi: New file.
48213         * doc/gnulib.texi: Include it.
48214         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48215         safe-alloc.
48216
48217 2009-02-18  Bruno Haible  <bruno@clisp.org>
48218
48219         Fix link error on non-glibc systems.
48220         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48221         variable.
48222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48223
48224 2009-02-18  Jim Meyering  <meyering@redhat.com>
48225
48226         fts: avoid used-uninitialized error due to recent change
48227         * lib/fts.c (fts_read): Guard uses of the new member,
48228         parent->fts_n_dirs_remaining, since it's not relevant for
48229         the parent of a directory specified on the command-line.
48230
48231 2009-02-17  James Youngman  <jay@gnu.org>
48232             Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/include_next.m4: Reformulate comment.
48235
48236 2009-02-16  Jim Meyering  <meyering@redhat.com>
48237
48238         fts: add #if guards so that the fts_lgpl module still builds
48239         * lib/fts.c: Guard just-added hash-table-using parts with
48240         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48241         Reported by Simon Josefsson.
48242
48243 2009-02-15  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/array-mergesort-tests: New file.
48246         * tests/test-array-mergesort.c: New file.
48247
48248         New module 'array-mergesort'.
48249         * modules/array-mergesort: New file.
48250         * lib/array-mergesort.h: New file.
48251
48252 2009-02-15  Bruno Haible  <bruno@clisp.org>
48253
48254         Fix 2009-02-07 commit.
48255         * lib/gen-uni-tables.c (output_predicate, output_category,
48256         output_combclass, output_bidi_category, output_decimal_digit,
48257         output_digit, output_numeric, output_mirror, output_scripts,
48258         output_ident_category, output_simple_mapping): Fix format directives.
48259         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48260
48261 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48262
48263         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48264         fixes are available from IBM.
48265
48266 2009-02-13  Jim Meyering  <meyering@redhat.com>
48267
48268         fts: arrange not to stat non-directories in more cases
48269         This makes GNU find (when it doesn't need to stat each file)
48270         *much* more efficient at traversing reiserfs file systems.
48271         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48272         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48273         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48274         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48275         (leaf_optimization_applies): New function.
48276         (LCO_hash, LCO_compare): New helper functions.
48277         (link_count_optimize_ok): New function.
48278         (fts_stat): Initialize new member (if dir).
48279         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48280         we've just stat'ed a directory.  Skip the stat call when possible.
48281         ---
48282         Note this AFS-related exchange:
48283         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48284         and note find's pioctl call in find/fstype.c.
48285         But that is necessary only if you want to enable the
48286         optimization for AFS, and for now, I don't.
48287
48288         fts: move a function definition "up" (no semantic change)
48289         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48290         "up" to precede upcoming use of a related function.
48291
48292 2009-02-11  Jim Meyering  <meyering@redhat.com>
48293
48294         fts: correct internal computation of nlinks (optimization-related)
48295         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48296         whether the current entry is a directory, so don't test it.
48297
48298 2009-02-10  Bruno Haible  <bruno@clisp.org>
48299
48300         Tests for module 'uniwbrk/ulc-wordbreaks'.
48301         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48302         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48303         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48304
48305         Tests for module 'uniwbrk/u32-wordbreaks'.
48306         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48307         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48308
48309         Tests for module 'uniwbrk/u16-wordbreaks'.
48310         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48311         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48312
48313         Tests for module 'uniwbrk/u8-wordbreaks'.
48314         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48315         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48316
48317 2009-02-10  Bruno Haible  <bruno@clisp.org>
48318
48319         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48320         property.
48321         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48322         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48323         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48324
48325 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48326
48327         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48328         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48329
48330 2009-02-10  Bruno Haible  <bruno@clisp.org>
48331
48332         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48333         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48334         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48335         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48336         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48337         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48338
48339 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48340
48341         * lib/sockets.h (gl_fd_to_handle): New function.
48342
48343         * tests/test-sockets.c: Call gl_fd_to_handle.
48344
48345 2009-02-09  Bruno Haible  <bruno@clisp.org>
48346
48347         * doc/havelib.texi: Document the conventions on bi-arch systems.
48348
48349 2009-02-08  Bruno Haible  <bruno@clisp.org>
48350
48351         Document the AC_LIB_LINKFLAGS macro.
48352         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48353         * doc/gnulib.texi: Include it.
48354
48355 2009-02-08  Bruno Haible  <bruno@clisp.org>
48356
48357         Fix wrong order of sections, compared to TOC.
48358         * doc/gnulib.texi: Include relocatable-maint.texi after the
48359         "Regular expressions" node, not before.
48360
48361 2009-02-08  Bruno Haible  <bruno@clisp.org>
48362
48363         Tests for module 'unicase/totitle'.
48364         * modules/unicase/totitle-tests: New file.
48365
48366         Tests for module 'unicase/tolower'.
48367         * modules/unicase/tolower-tests: New file.
48368
48369         Tests for module 'unicase/toupper'.
48370         * modules/unicase/toupper-tests: New file.
48371         * tests/unicase/test-mapping-part1.h: New file.
48372         * tests/unicase/test-mapping-part2.h: New file.
48373
48374         New module 'unicase/totitle'.
48375         * modules/unicase/totitle: New file.
48376         * lib/unicase/totitle.c: New file.
48377
48378         New module 'unicase/tolower'.
48379         * modules/unicase/tolower: New file.
48380         * lib/unicase/tolower.c: New file.
48381
48382         New module 'unicase/toupper'.
48383         * modules/unicase/toupper: New file.
48384         * lib/unicase/toupper.c: New file.
48385         * lib/unicase/simple-mapping.h: New file.
48386
48387         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48388         (mapping_table): New structure.
48389         (output_simple_mapping): New function.
48390         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48391         * modules/gen-uni-tables (Description): Update.
48392         * lib/unicase/toupper.h: New file, automatically generated by
48393         gen-uni-tables.
48394         * lib/unicase/tolower.h: New file, automatically generated by
48395         gen-uni-tables.
48396         * lib/unicase/totitle.h: New file, automatically generated by
48397         gen-uni-tables.
48398         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48399         gen-uni-tables.
48400         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48401         gen-uni-tables.
48402         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48403         gen-uni-tables.
48404
48405         New module 'unicase/base'.
48406         * modules/unicase/base: New file.
48407         * lib/unicase.h: New file.
48408
48409 2009-02-08  Bruno Haible  <bruno@clisp.org>
48410
48411         New module 'uniwbrk/ulc-wordbreaks'.
48412         * modules/uniwbrk/ulc-wordbreaks: New file.
48413         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48414
48415         New module 'uniwbrk/u32-wordbreaks'.
48416         * modules/uniwbrk/u32-wordbreaks: New file.
48417         * lib/uniwbrk/u32-wordbreaks.c: New file.
48418
48419         New module 'uniwbrk/u16-wordbreaks'.
48420         * modules/uniwbrk/u16-wordbreaks: New file.
48421         * lib/uniwbrk/u16-wordbreaks.c: New file.
48422
48423         New module 'uniwbrk/u8-wordbreaks'.
48424         * modules/uniwbrk/u8-wordbreaks: New file.
48425         * lib/uniwbrk/u8-wordbreaks.c: New file.
48426         * lib/uniwbrk/u-wordbreaks.h: New file.
48427
48428         New module 'uniwbrk/table'.
48429         * modules/uniwbrk/table: New file.
48430         * lib/uniwbrk/wbrktable.h: New file.
48431         * lib/uniwbrk/wbrktable.c: New file.
48432
48433         New module 'uniwbrk/wordbreak-property'.
48434         * modules/uniwbrk/wordbreak-property: New file.
48435         * lib/uniwbrk/wordbreak-property.c: New file.
48436
48437         * lib/gen-uni-tables.c (WBP_*): New enum items.
48438         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48439         (unicode_org_wbp): New variable.
48440         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48441         New functions.
48442         (wbp_table): New structure.
48443         (output_wbp, output_wbrk_tables): New functions.
48444         (main): Accept additional argument. Invoke fill_org_wbp,
48445         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48446         output_wbrk_tables.
48447         * modules/gen-uni-tables (Description): Update.
48448         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48449         gen-uni-tables.
48450
48451         New module 'uniwbrk/base'.
48452         * modules/uniwbrk/base: New file.
48453         * lib/uniwbrk.h: New file.
48454
48455 2009-02-08  Bruno Haible  <bruno@clisp.org>
48456
48457         Update to Unicode 5.1.0.
48458         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48459         U+2185..U+2188.
48460         (is_property_default_ignorable_code_point): Don't include characters
48461         of category Cc or Cs and not-a-characters.
48462         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48463         U+0D79, U+109E, U+109F, U+A60C.
48464         * lib/unictype/bidi_of.h: Regenerated.
48465         * lib/unictype/blocks.h: Regenerated.
48466         * lib/unictype/categ_C.h: Regenerated.
48467         * lib/unictype/categ_Cf.h: Regenerated.
48468         * lib/unictype/categ_Cn.h: Regenerated.
48469         * lib/unictype/categ_L.h: Regenerated.
48470         * lib/unictype/categ_Ll.h: Regenerated.
48471         * lib/unictype/categ_Lm.h: Regenerated.
48472         * lib/unictype/categ_Lo.h: Regenerated.
48473         * lib/unictype/categ_Lu.h: Regenerated.
48474         * lib/unictype/categ_M.h: Regenerated.
48475         * lib/unictype/categ_Mc.h: Regenerated.
48476         * lib/unictype/categ_Me.h: Regenerated.
48477         * lib/unictype/categ_Mn.h: Regenerated.
48478         * lib/unictype/categ_N.h: Regenerated.
48479         * lib/unictype/categ_Nd.h: Regenerated.
48480         * lib/unictype/categ_Nl.h: Regenerated.
48481         * lib/unictype/categ_No.h: Regenerated.
48482         * lib/unictype/categ_P.h: Regenerated.
48483         * lib/unictype/categ_Pd.h: Regenerated.
48484         * lib/unictype/categ_Pe.h: Regenerated.
48485         * lib/unictype/categ_Pf.h: Regenerated.
48486         * lib/unictype/categ_Pi.h: Regenerated.
48487         * lib/unictype/categ_Po.h: Regenerated.
48488         * lib/unictype/categ_Ps.h: Regenerated.
48489         * lib/unictype/categ_S.h: Regenerated.
48490         * lib/unictype/categ_Sk.h: Regenerated.
48491         * lib/unictype/categ_Sm.h: Regenerated.
48492         * lib/unictype/categ_So.h: Regenerated.
48493         * lib/unictype/categ_of.h: Regenerated.
48494         * lib/unictype/combining.h: Regenerated.
48495         * lib/unictype/ctype_alnum.h: Regenerated.
48496         * lib/unictype/ctype_alpha.h: Regenerated.
48497         * lib/unictype/ctype_graph.h: Regenerated.
48498         * lib/unictype/ctype_lower.h: Regenerated.
48499         * lib/unictype/ctype_print.h: Regenerated.
48500         * lib/unictype/ctype_punct.h: Regenerated.
48501         * lib/unictype/ctype_upper.h: Regenerated.
48502         * lib/unictype/decdigit.h: Regenerated.
48503         * lib/unictype/digit.h: Regenerated.
48504         * lib/unictype/mirror.h: Regenerated.
48505         * lib/unictype/numeric.h: Regenerated.
48506         * lib/unictype/pr_alphabetic.h: Regenerated.
48507         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48508         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48509         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48510         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48511         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48512         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48513         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48514         * lib/unictype/pr_combining.h: Regenerated.
48515         * lib/unictype/pr_dash.h: Regenerated.
48516         * lib/unictype/pr_decimal_digit.h: Regenerated.
48517         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48518         * lib/unictype/pr_deprecated.h: Regenerated.
48519         * lib/unictype/pr_diacritic.h: Regenerated.
48520         * lib/unictype/pr_extender.h: Regenerated.
48521         * lib/unictype/pr_format_control.h: Regenerated.
48522         * lib/unictype/pr_grapheme_base.h: Regenerated.
48523         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48524         * lib/unictype/pr_grapheme_link.h: Regenerated.
48525         * lib/unictype/pr_id_continue.h: Regenerated.
48526         * lib/unictype/pr_id_start.h: Regenerated.
48527         * lib/unictype/pr_ideographic.h: Regenerated.
48528         * lib/unictype/pr_ignorable_control.h: Regenerated.
48529         * lib/unictype/pr_lowercase.h: Regenerated.
48530         * lib/unictype/pr_math.h: Regenerated.
48531         * lib/unictype/pr_numeric.h: Regenerated.
48532         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48533         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48534         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48535         * lib/unictype/pr_other_id_continue.h: Regenerated.
48536         * lib/unictype/pr_other_lowercase.h: Regenerated.
48537         * lib/unictype/pr_other_math.h: Regenerated.
48538         * lib/unictype/pr_punctuation.h: Regenerated.
48539         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48540         * lib/unictype/pr_soft_dotted.h: Regenerated.
48541         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48542         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48543         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48544         * lib/unictype/pr_uppercase.h: Regenerated.
48545         * lib/unictype/pr_xid_continue.h: Regenerated.
48546         * lib/unictype/pr_xid_start.h: Regenerated.
48547         * lib/unictype/pr_zero_width.h: Regenerated.
48548         * lib/unictype/scripts.h: Regenerated.
48549         * lib/unictype/scripts_byname.gperf: Regenerated.
48550         * lib/unictype/sy_java_ident.h: Regenerated.
48551         * lib/unilbrk/lbrkprop1.h: Regenerated.
48552         * lib/unilbrk/lbrkprop2.h: Regenerated.
48553         * tests/unictype/test-categ_C.c: Regenerated.
48554         * tests/unictype/test-categ_Cf.c: Regenerated.
48555         * tests/unictype/test-categ_Cn.c: Regenerated.
48556         * tests/unictype/test-categ_L.c: Regenerated.
48557         * tests/unictype/test-categ_Ll.c: Regenerated.
48558         * tests/unictype/test-categ_Lm.c: Regenerated.
48559         * tests/unictype/test-categ_Lo.c: Regenerated.
48560         * tests/unictype/test-categ_Lu.c: Regenerated.
48561         * tests/unictype/test-categ_M.c: Regenerated.
48562         * tests/unictype/test-categ_Mc.c: Regenerated.
48563         * tests/unictype/test-categ_Me.c: Regenerated.
48564         * tests/unictype/test-categ_Mn.c: Regenerated.
48565         * tests/unictype/test-categ_N.c: Regenerated.
48566         * tests/unictype/test-categ_Nd.c: Regenerated.
48567         * tests/unictype/test-categ_Nl.c: Regenerated.
48568         * tests/unictype/test-categ_No.c: Regenerated.
48569         * tests/unictype/test-categ_P.c: Regenerated.
48570         * tests/unictype/test-categ_Pd.c: Regenerated.
48571         * tests/unictype/test-categ_Pe.c: Regenerated.
48572         * tests/unictype/test-categ_Pf.c: Regenerated.
48573         * tests/unictype/test-categ_Pi.c: Regenerated.
48574         * tests/unictype/test-categ_Po.c: Regenerated.
48575         * tests/unictype/test-categ_Ps.c: Regenerated.
48576         * tests/unictype/test-categ_S.c: Regenerated.
48577         * tests/unictype/test-categ_Sk.c: Regenerated.
48578         * tests/unictype/test-categ_Sm.c: Regenerated.
48579         * tests/unictype/test-categ_So.c: Regenerated.
48580         * tests/unictype/test-ctype_alnum.c: Regenerated.
48581         * tests/unictype/test-ctype_alpha.c: Regenerated.
48582         * tests/unictype/test-ctype_graph.c: Regenerated.
48583         * tests/unictype/test-ctype_lower.c: Regenerated.
48584         * tests/unictype/test-ctype_print.c: Regenerated.
48585         * tests/unictype/test-ctype_punct.c: Regenerated.
48586         * tests/unictype/test-ctype_upper.c: Regenerated.
48587         * tests/unictype/test-decdigit.h: Regenerated.
48588         * tests/unictype/test-digit.h: Regenerated.
48589         * tests/unictype/test-numeric.h: Regenerated.
48590         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48591         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48592         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48593         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48594         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48595         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48596         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48597         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48598         * tests/unictype/test-pr_combining.c: Regenerated.
48599         * tests/unictype/test-pr_dash.c: Regenerated.
48600         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48601         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48602         * tests/unictype/test-pr_deprecated.c: Regenerated.
48603         * tests/unictype/test-pr_diacritic.c: Regenerated.
48604         * tests/unictype/test-pr_extender.c: Regenerated.
48605         * tests/unictype/test-pr_format_control.c: Regenerated.
48606         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48607         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48608         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48609         * tests/unictype/test-pr_id_continue.c: Regenerated.
48610         * tests/unictype/test-pr_id_start.c: Regenerated.
48611         * tests/unictype/test-pr_ideographic.c: Regenerated.
48612         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48613         * tests/unictype/test-pr_lowercase.c: Regenerated.
48614         * tests/unictype/test-pr_math.c: Regenerated.
48615         * tests/unictype/test-pr_numeric.c: Regenerated.
48616         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48617         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48618         Regenerated.
48619         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48620         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48621         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48622         * tests/unictype/test-pr_other_math.c: Regenerated.
48623         * tests/unictype/test-pr_punctuation.c: Regenerated.
48624         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48625         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48626         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48627         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48628         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48629         * tests/unictype/test-pr_uppercase.c: Regenerated.
48630         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48631         * tests/unictype/test-pr_xid_start.c: Regenerated.
48632         * tests/unictype/test-pr_zero_width.c: Regenerated.
48633
48634         Update to Unicode 5.1.0.
48635         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48636         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48637         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48638         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48639         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48640         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48641         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48642         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48643         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48644         (nonspacing_table_ind): Update.
48645         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48646
48647         Update to Unicode 5.1.0.
48648         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48649         code transform.
48650         * lib/uniname/uniname.c (unicode_character_name,
48651         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48652         * lib/uniname/uninames.h: Regenerated.
48653         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48654
48655 2009-02-07  Bruno Haible  <bruno@clisp.org>
48656
48657         Merge gen-ctype and gen-lbrk into a single program.
48658         * lib/gen-uni-tables.c: New file, incorporating
48659         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48660         Add directory prefixes to the names of the generated files.
48661         * lib/unictype/gen-ctype.c: Remove file.
48662         * lib/unilbrk/gen-lbrk.c: Remove file.
48663         * modules/gen-uni-tables: New file.
48664         * modules/unictype/gen-ctype: Remove file.
48665         * modules/unilbrk/gen-lbrk: Remove file.
48666
48667 2009-02-07  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48670
48671         New module 'unistr/u32-strcoll'.
48672         * modules/unistr/u32-strcoll: New file.
48673         * lib/unistr/u32-strcoll.c: New file.
48674
48675         New module 'unistr/u16-strcoll'.
48676         * modules/unistr/u16-strcoll: New file.
48677         * lib/unistr/u16-strcoll.c: New file.
48678
48679         New module 'unistr/u8-strcoll'.
48680         * modules/unistr/u8-strcoll: New file.
48681         * lib/unistr/u8-strcoll.c: New file.
48682         * lib/unistr/u-strcoll.h: New file.
48683
48684 2009-02-07  Bruno Haible  <bruno@clisp.org>
48685
48686         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48687         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48688         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48689         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48690         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48691         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48692
48693 2009-02-07  Bruno Haible  <bruno@clisp.org>
48694
48695         Make 64-bit clean.
48696         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48697         output_combclass, output_bidi_category, output_decimal_digit,
48698         output_digit, output_numeric, output_mirror, output_scripts,
48699         output_ident_category): Use proper width specifier in format strings.
48700
48701 2009-02-07  Bruno Haible  <bruno@clisp.org>
48702
48703         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48704         failure behaviour.
48705
48706 2009-02-07  Jim Meyering  <meyering@redhat.com>
48707
48708         regex: avoid compilation failure with upcoming gcc-4.4
48709         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48710         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48711         "... error: integer overflow in preprocessor expression".
48712
48713 2009-02-05  Ben Pfaff  <blp@gnu.org>
48714
48715         Fix link errors on Windows when close module is used.
48716         * modules/close: Add $(LIB_CLOSE) to Link section.
48717         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48718         $(LIB_CLOSE) on Windows.
48719
48720 2009-02-05  Jim Meyering  <meyering@redhat.com>
48721
48722         still avoid unused-parameter warnings, but do it cleanly
48723         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48724         (get_fs_usage): Cast to void instead.
48725         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48726         (dev_from_mount_options, read_file_system_list): Cast to void.
48727         Prompted by Bruno Haible.
48728
48729 2009-02-04  Jim Meyering  <meyering@redhat.com>
48730
48731         fsusage.c: correct copyright year
48732         * lib/fsusage.c: Reflect year in which the change is pushed into
48733
48734         avoid misc. warnings
48735         * lib/fsusage.c (UNUSED_PARAM): Define.
48736         (get_fs_usage): Mark parameter "disk" as unused.
48737         * lib/getugroups.c (getgrent): Use "void" in prototype.
48738         * lib/mountlist.c: Mark unused parameters.
48739         (read_file_system_list): Declare a local with "const".
48740         * lib/nanosleep.c (getnow): Declare static.
48741         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48742
48743         dirfd: set errno upon failure
48744         * lib/dirfd.c: Include <errno.h>.
48745         Set errno to ENOTSUP when returning -1.
48746         * modules/dirfd (Depends-on): Add errno.
48747         Suggested by John Kodis <kodis@comcast.net>.
48748
48749 2009-02-01  Bruno Haible  <bruno@clisp.org>
48750
48751         Don't assume sizeof (long) >= sizeof (void *).
48752         * lib/memcmp.c: Include stdint.h.
48753         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48754         srcp2 to 'const byte *'.
48755         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48756         types to uintptr_t.
48757         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48758         * modules/memcmp (Depends-on): Add stdint.
48759         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48760
48761 2009-01-30  Eric Blake  <ebb9@byu.net>
48762
48763         fix more require-before-expand issues
48764         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48765         expand, AC_PROG_AWK.
48766         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48767
48768 2009-01-28  Eric Blake  <ebb9@byu.net>
48769
48770         version-etc: use consistent URL formatting
48771         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48772         Improve formatting.  Use fputs for string without %.
48773
48774 2009-01-28  Jim Meyering  <meyering@redhat.com>
48775
48776         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48777         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48778         "underquoted definition of NAME" from autoconf-2.59.
48779
48780 2009-01-28  Bruno Haible  <bruno@clisp.org>
48781
48782         * doc/gnulib.texi: Add "Obsolete modules" to index.
48783
48784 2009-01-28  Jim Meyering  <meyering@redhat.com>
48785
48786         useless-if-before-free: recognize more variants
48787         * build-aux/useless-if-before-free: Also recognize e.g.,
48788         if (NULL != p) free (p);
48789
48790 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48791
48792         test-getaddrinfo: skip (don't fail) this test when there's no network
48793         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48794         on the presumption that it means you lack network access.
48795
48796 2009-01-26  Jim Meyering  <meyering@redhat.com>
48797
48798         fflush: avoid warnings on modern systems
48799         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48800         pos and result, into scopes where they're used.
48801
48802 2009-01-26  Eric Blake  <ebb9@byu.net>
48803
48804         Silence warning reintroduced by recent extensions patch.
48805         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48806         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48807         autoconf.
48808
48809         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48810         * m4/00gnulib.m4: New file.
48811         * gnulib-tool (func_get_filelist): Always use it.
48812         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48813         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48814
48815 2009-01-25  Bruno Haible  <bruno@clisp.org>
48816
48817         Make test-quotearg work on MacOS X and AIX.
48818         * tests/test-quotearg.sh: New file.
48819         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
48820         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
48821         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
48822         include <libintl.h>.
48823         (fake_locale): Remove variable.
48824         (gettext, dgettext, dcgettext): Remove functions.
48825         (main): Instead of setting a fake locale, set a real locale. Call
48826         textdomain and bindtextdomain.
48827         * modules/quotearg-tests (Files): Add the new files.
48828         (Depends-on): Add gettext, setenv, unsetenv.
48829         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
48830         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
48831         Augment TESTS_ENVIRONMENT.
48832
48833 2009-01-25  Bruno Haible  <bruno@clisp.org>
48834
48835         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
48836         fr_FR.ISO8859-1 locale on MacOS X.
48837         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
48838         ja_JP.eucJP locale on MacOS X.
48839         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
48840         zh_CN.GB18030 locale on MacOS X.
48841
48842 2009-01-25  Bruno Haible  <bruno@clisp.org>
48843
48844         Avoid link errors on MacOS X 10.3.
48845         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
48846         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48847
48848 2009-01-25  Bruno Haible  <bruno@clisp.org>
48849
48850         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48851         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
48852         * modules/pipe (Files): Remove m4/posix_spawn.m4.
48853         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48854         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
48855         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48856         posix_spawnattr_init, posix_spawnattr_setsigmask,
48857         posix_spawnattr_setflags, posix_spawnattr_destroy.
48858
48859         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
48860         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
48861         * modules/execute (Files): Remove m4/posix_spawn.m4.
48862         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
48863         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
48864         posix_spawnattr_init, posix_spawnattr_setsigmask,
48865         posix_spawnattr_setflags, posix_spawnattr_destroy.
48866
48867 2009-01-25  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/glthread/threadlib.c: Include <stdlib.h>.
48870
48871 2009-01-25  Bruno Haible  <bruno@clisp.org>
48872
48873         * lib/glthread/threadlib.c (dummy): New declaration.
48874
48875 2009-01-25  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
48878         multibyte characters also for the GB18030 encoding. Don't crash when
48879         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
48880
48881 2009-01-25  Bruno Haible  <bruno@clisp.org>
48882
48883         Avoid redefining 'struct random_data' on OSF/1 5.1.
48884         * lib/stdlib.in.h: Include <random.h> if it exists.
48885         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
48886         HAVE_RANDOM_H. Include <random.h> when testing whether
48887         'struct random_data' exists.
48888         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
48889
48890 2009-01-25  Bruno Haible  <bruno@clisp.org>
48891
48892         Don't install charset.alias on MacOS X >= 10.3.
48893         * lib/localcharset.c (DARWIN7): New macro.
48894         (get_charset_aliases): Hardcode the result for Darwin7.
48895         * modules/localcharset (install-exec-local): Don't install
48896         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
48897
48898 2009-01-25  Bruno Haible  <bruno@clisp.org>
48899
48900         Don't install charset.alias on mingw and Cygwin.
48901         * modules/localcharset (install-exec-local): Don't install
48902         charset.alias on mingw and Cygwin, if the file does not yet exist.
48903         The result for these platforms is hardcoded in localcharset.c.
48904
48905 2009-01-25  Bruno Haible  <bruno@clisp.org>
48906
48907         Make it possible again to use AC_GNU_SOURCE together with gnulib.
48908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
48909         before requiring AC_USE_SYSTEM_EXTENSIONS.
48910
48911 2009-01-25  Jim Meyering  <meyering@redhat.com>
48912
48913         c-strtod: avoid warnings
48914         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
48915         "assignment discards qualifiers from pointer target type" warnings.
48916
48917 2009-01-24  Bruno Haible  <bruno@clisp.org>
48918
48919         Add support for non-UTF-8 locales on MacOS X.
48920         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
48921         canonical encodings. For Darwin 7 and newer, don't map traditional
48922         encodings to UTF-8.
48923         Reported by Vincent Lefevre <vincent@vinc17.org>
48924         at <http://savannah.gnu.org/bugs/?25235>.
48925
48926 2009-01-24  Bruno Haible  <bruno@clisp.org>
48927
48928         * doc/gnulib.texi (Obsolete modules): New section.
48929         Reported by Mike Frysinger <vapier@gentoo.org>.
48930
48931 2009-01-24  Bruno Haible  <bruno@clisp.org>
48932
48933         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
48934         (%.dvi): New rule.
48935
48936 2009-01-24  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
48939         Reported by Eric Blake.
48940
48941 2009-01-24  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
48944         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
48945         Reported by Gary V. Vaughan <gary@gnu.org>.
48946
48947 2009-01-24  Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48950
48951 2009-01-23  Bruno Haible  <bruno@clisp.org>
48952
48953         Make c-strtod, c-strtold usable in libraries.
48954         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48955         (C_STRTOD): Call strdup instead of xstrdup.
48956         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48957         * modules/c-strtold (Depends-on): Likewise.
48958         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48959         * NEWS: Mention the change.
48960         Reported by Michael Gold <mgold@ncf.ca>.
48961
48962 2009-01-23  Jim Meyering  <meyering@redhat.com>
48963
48964         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48965         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48966         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48967
48968 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48969
48970         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48971         GNU CoreUtils.
48972         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48973         * modules/version-etc (Description): Update.
48974
48975 2009-01-22  Bruno Haible  <bruno@clisp.org>
48976
48977         Cache the C locale object.
48978         * lib/c-strtod.c (c_locale_cache): New variable.
48979         (c_locale): New function.
48980         (C_STRTOD): Use it, and don't call freelocale.
48981         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48982         Suggested by Paolo Bonzini.
48983
48984 2009-01-21  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48987         conditions other than overflow.
48988
48989 2009-01-21  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/c-strtod.c: Include errno.h.
48992         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48993         value from STRTOD_L and STRTOD.
48994
48995 2009-01-21  Bruno Haible  <bruno@clisp.org>
48996         and Jim Meyering  <meyering@redhat.com>
48997
48998         nanosleep: skip configure test (fail it) for apple universal builds
48999         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49000         universal builds, assume that nanosleep does not work.
49001         * modules/nanosleep (Depends-on): Add multiarch.
49002
49003         mktime: skip configure test (fail it) for apple universal builds
49004         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49005         universal builds, assume that mktime does not work.
49006         * modules/mktime (Depends-on): Add multiarch.
49007
49008 2009-01-21  Eric Blake  <ebb9@byu.net>
49009
49010         multiarch: avoid expand-before-require warning
49011         * modules/multiarch (configure.ac): Require, rather than expand,
49012         gl_MULTIARCH.
49013         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49014         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49015         enforce that all clients require it.  Partial reversion of
49016         2008-12-29 patch.
49017
49018         error: avoid expand-before-require warning
49019         * modules/errno (configure.ac): Require, rather than expand,
49020         gl_HEADER_ERRNO_H.
49021         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49022         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49023         enforce that all clients require it.
49024
49025         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49026         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49027         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49028         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49029
49030 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49031
49032         Revert:
49033         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49034
49035         regex: do not depend on obsolete modules.
49036         * modules/regex: Remove memcmp and memmove.
49037
49038 2009-01-20  Bruno Haible  <bruno@clisp.org>
49039
49040         Make the 'link' module link on Windows NT 4.
49041         * lib/link.c (_WIN32_WINNT): Don't define.
49042         (CreateHardLinkFuncType): New type.
49043         (CreateHardLinkFunc, initialized): New variables.
49044         (initialize): New function.
49045         (link): Invoke CreateHardLink indirectly through the function pointer.
49046
49047 2009-01-20  Bruno Haible  <bruno@clisp.org>
49048
49049         Fix compilation failure on mingw.
49050         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49051
49052 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49053
49054         * doc/c-strtod.texi: Mention a couple of restrictions.
49055
49056 2009-01-20  Jim Meyering  <meyering@redhat.com>
49057
49058         gettimeofday: move more declarations out of functions
49059         * lib/gettimeofday.c: Move extern declarations of tzset and
49060         gmtime out of containing functions.  Prompted by Bruno Haible.
49061
49062 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49063
49064         regex: do not depend on obsolete modules.
49065         * modules/regex: Remove memcmp and memmove.
49066
49067 2009-01-19  Bruno Haible  <bruno@clisp.org>
49068
49069         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49070         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49071         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49072         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49073         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49074
49075 2009-01-19  Bruno Haible  <bruno@clisp.org>
49076
49077         * tests/test-link.c: Include <errno.h>.
49078         (main): Exit with code 77 when a hard link cannot be created due to
49079         the file system.
49080         * tests/test-link.sh: Skip test when a hard link cannot be created due
49081         to the file system.
49082         Suggested by Eric Blake.
49083
49084 2009-01-19  Martin Lambers  <marlam@marlam.de>
49085
49086         * modules/link-tests: New file.
49087         * tests/test-link.sh: New file.
49088         * tests/test-link.c: New file.
49089
49090 2009-01-19  Eric Blake  <ebb9@byu.net>
49091
49092         doc: mention another function added in cygwin 1.7.0
49093         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49094         Another new function in cygwin 1.7.
49095
49096 2009-01-19  Bruno Haible  <bruno@clisp.org>
49097
49098         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49099         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49100         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49101         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49102         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49103         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49104         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49105         * m4/md4.m4 (gl_MD4): Likewise.
49106         * m4/md5.m4 (gl_MD5): Likewise.
49107         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49108         * m4/sha1.m4 (gl_SHA1): Likewise.
49109         * m4/sha256.m4 (gl_SHA256): Likewise.
49110         * m4/sha512.m4 (gl_SHA512): Likewise.
49111
49112 2009-01-19  Bruno Haible  <bruno@clisp.org>
49113
49114         * modules/uniname/uniname-tests (Depends-on): Add progname.
49115         * tests/uniname/test-uninames.c: Include progname.h.
49116         (main): Call set_program_name.
49117
49118         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49119         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49120         (main): Call set_program_name.
49121
49122         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49123         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49124         (main): Call set_program_name.
49125
49126         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49127         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49128         (main): Call set_program_name.
49129
49130         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49131         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49132         (main): Call set_program_name.
49133
49134         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49135         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49136         (main): Call set_program_name.
49137
49138         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49139         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49140         (main): Call set_program_name.
49141
49142         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49143         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49144         (main): Call set_program_name.
49145
49146         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49147         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49148         (main): Call set_program_name.
49149
49150 2009-01-19  Eric Blake  <ebb9@byu.net>
49151
49152         test-unistd: test previous patch
49153         * tests/test-unistd.c: Test *_FILENO macros.
49154
49155         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49156         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49157         Guarantee a definition.
49158         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49159         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49160         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49161         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49162         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49163         Likewise.
49164         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49165         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49166         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49167         Likewise.
49168         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49169         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49170         (STDERR_FILENO): Likewise.
49171         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49172         (STDERR_FILENO): Likewise.
49173         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49174         (STDERR_FILENO): Likewise.
49175         Reported by Elbert Pol.
49176
49177 2009-01-19  Eric Blake  <ebb9@byu.net>
49178
49179         doc: mention more functions added in cygwin 1.7.0
49180         * doc/posix-functions/abort.texi (abort): Update wording related
49181         to cygwin.
49182         * doc/posix-functions/daylight.texi (daylight): Likewise.
49183         * doc/posix-functions/optarg.texi (optarg): Likewise.
49184         * doc/posix-functions/optarg.texi (opterr): Likewise.
49185         * doc/posix-functions/optarg.texi (optind): Likewise.
49186         * doc/posix-functions/optarg.texi (optopt): Likewise.
49187         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49188         worked in 1.5.x, and was withdrawn in 1.7.
49189         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49190         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49191         cygwin versions.
49192         * doc/posix-functions/perror.texi (perror): Likewise.
49193         * doc/posix-functions/printf.texi (printf): Likewise.
49194         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49195         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49196         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49197         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49198         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49199         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49200         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49201         Likewise.
49202         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49203         Likewise.
49204         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49205         this function.
49206         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49207         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49208         Likewise.
49209         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49210         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49211         * doc/posix-functions/confstr.texi (confstr): Likewise.
49212         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49213         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49214         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49215         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49216         * doc/posix-functions/fputws.texi (fputws): Likewise.
49217         * doc/posix-functions/fwide.texi (fwide): Likewise.
49218         * doc/posix-functions/getwc.texi (getwc): Likewise.
49219         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49220         * doc/posix-functions/putwc.texi (putwc): Likewise.
49221         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49222         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49223         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49224         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49225         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49226         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49227         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49228         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49229         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49230         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49231         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49232
49233 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49234
49235         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49236         * lib/ioctl.c: Include <sys/ioctl.h>.
49237
49238 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49239
49240         * modules/getdate-tests (Depends-on): Add progname.
49241         * tests/test-getdate.c: Use progname module, to avoid link errors
49242         on non-glibc systems.
49243
49244 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49245
49246         * modules/filenamecat-tests (Depends-on): Add progname.
49247         * modules/fstrcmp-tests (Depends-on): Likewise.
49248
49249         * tests/test-filenamecat.c: Use progname module, to avoid link
49250         errors on non-glibc systems.
49251         * tests/test-fstrcmp.c: Likewise.
49252
49253 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49254
49255         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49256         * lib/gettimeofday.c: Move extern declaration out of function.
49257
49258 2009-01-18  Bruno Haible  <bruno@clisp.org>
49259
49260         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49261         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49262         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49263
49264 2009-01-18  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/strftime.c (MEMPCPY): Remove unused macro.
49267         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49268
49269 2009-01-18  Martin Lambers  <marlam@marlam.de>
49270
49271         New module 'link'.
49272         * lib/unistd.in.h (link): New declaration.
49273         * lib/link.c: New file.
49274         * m4/link.m4: New file.
49275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49276         HAVE_LINK.
49277         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49278         * modules/link: New file.
49279         * doc/posix-functions/link.texi: Mention the new module.
49280
49281 2009-01-18  Bruno Haible  <bruno@clisp.org>
49282
49283         * tests/test-avltree_list.c (main): Call set_program_name.
49284         * tests/test-avltree_oset.c (main): Likewise.
49285         * tests/test-obstack-printf.c: Include progname.h.
49286         (main): Call set_program_name.
49287         * tests/test-quotearg.c: Include progname.h.
49288         (main): Call set_program_name.
49289         * tests/test-xmemdup0.c: Include progname.h.
49290         (main): Call set_program_name.
49291
49292 2009-01-18  Bruno Haible  <bruno@clisp.org>
49293
49294         New module 'alphasort'.
49295         * lib/dirent.in.h (alphasort): New declaration.
49296         * lib/alphasort.c: New file, from glibc with modifications.
49297         * m4/alphasort.m4: New file.
49298         * modules/alphasort: New file.
49299         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49300         HAVE_ALPHASORT.
49301         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49302         HAVE_ALPHASORT.
49303         * doc/posix-functions/alphasort.texi: Mention the new module and the
49304         portability problems.
49305
49306 2009-01-18  Bruno Haible  <bruno@clisp.org>
49307
49308         New module 'scandir'.
49309         * lib/dirent.in.h (scandir): New declaration.
49310         * lib/scandir.c: New file, from glibc with modifications.
49311         * m4/scandir.m4: New file.
49312         * modules/scandir: New file.
49313         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49314         HAVE_SCANDIR.
49315         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49316         HAVE_SCANDIR.
49317         * doc/posix-functions/scandir.texi: Mention the new module and the
49318         portability problems.
49319
49320 2009-01-17  Bruno Haible  <bruno@clisp.org>
49321
49322         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49323         Update documentation.
49324         (func_remove_suffix): Escape all dots in the suffix. Update
49325         documentation.
49326         (func_filter_filelist): Update documentation.
49327         Reported by Ralf Wildenhues.
49328
49329 2009-01-17  Bruno Haible  <bruno@clisp.org>
49330
49331         * modules/dprintf-posix-tests: New file.
49332         * tests/test-dprintf-posix.sh: New file.
49333         * tests/test-dprintf-posix.c: New file.
49334
49335         New modules 'dprintf', 'dprintf-posix'.
49336         * lib/stdio.in.h (dprintf): New declaration.
49337         * lib/dprintf.c: New file.
49338         * m4/dprintf.m4: New file.
49339         * m4/dprintf-posix.m4: New file.
49340         * modules/dprintf: New file.
49341         * modules/dprintf-posix: New file.
49342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49343         HAVE_DPRINTF, REPLACE_DPRINTF.
49344         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49345         HAVE_DPRINTF, REPLACE_DPRINTF.
49346         * doc/posix-functions/dprintf.texi: Mention the new modules.
49347
49348 2009-01-17  Bruno Haible  <bruno@clisp.org>
49349
49350         * modules/vdprintf-posix-tests: New file.
49351         * tests/test-vdprintf-posix.sh: New file.
49352         * tests/test-vdprintf-posix.c: New file.
49353
49354         New modules 'vdprintf', 'vdprintf-posix'.
49355         * lib/stdio.in.h (vdprintf): New declaration.
49356         * lib/vdprintf.c: New file.
49357         * m4/vdprintf.m4: New file.
49358         * m4/vdprintf-posix.m4: New file.
49359         * modules/vdprintf: New file.
49360         * modules/vdprintf-posix: New file.
49361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49362         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49363         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49364         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49365         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49366
49367 2009-01-17  Bruno Haible  <bruno@clisp.org>
49368
49369         Fix replacement of fopen on mingw.
49370         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49371         mingw.
49372
49373 2009-01-17  Bruno Haible  <bruno@clisp.org>
49374
49375         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49376         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49377
49378 2009-01-17  Bruno Haible  <bruno@clisp.org>
49379
49380         Avoid test-fflush2.sh failure on mingw.
49381         * tests/test-fflush2.c: Include binary-io.h.
49382         (main): Put standard input into binary mode.
49383         * modules/fflush-tests (Depends-on): Add binary-io.
49384
49385 2009-01-17  Bruno Haible  <bruno@clisp.org>
49386
49387         * lib/wchar.in.h: In another particular situation, include only the
49388         system's <wchar.h> file.
49389         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49390         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49391         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49392
49393 2009-01-17  Bruno Haible  <bruno@clisp.org>
49394
49395         Support for stripping executables in --enable-relocatable.
49396         * build-aux/install-reloc: Expect one more argument, or an environment
49397         variable RELOC_STRIP_PROG. If set, strip the destination program and
49398         its wrapper.
49399         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49400         RELOC_STRIP_PROG.
49401         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49402         to set RELOCATABLE_STRIP.
49403         * NEWS: Mention the new Makefile requirement.
49404
49405 2009-01-17  Bruno Haible  <bruno@clisp.org>
49406
49407         * build-aux/install-reloc: Remove debugging information left over by
49408         C compiler on MacOS X.
49409
49410 2009-01-17  Bruno Haible  <bruno@clisp.org>
49411
49412         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49413         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49414         _NSGetExecutablePath.
49415
49416 2009-01-16  Jim Meyering  <meyering@redhat.com>
49417
49418         strerror: avoid warnings about discarding "const"
49419         * lib/strerror.c (rpl_strerror): Instead of returning a const
49420         string from each and every "case", use a variable, and add a single
49421         cast after the switch.
49422
49423 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49424
49425         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49426
49427 2009-01-16  Bruno Haible  <bruno@clisp.org>
49428
49429         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49430         array initializer syntax that also works in C++ mode.
49431         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49432
49433 2009-01-16  Jim Meyering  <meyering@redhat.com>
49434
49435         poll: suppress a warning
49436         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49437         to ignore "...unsigned expression < 0 is always false" warnings.
49438
49439 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49440
49441         poll: remove declarations of unused variables
49442         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49443         sockbuf and optlen.
49444
49445 2009-01-15  Bruno Haible  <bruno@clisp.org>
49446
49447         Make fflush-after-ungetc POSIX compliant on BSD systems.
49448         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49449         (clear_ungetc_buffer): Implement also for other systems.
49450         (rpl_fflush): On glibc systems, invoke
49451         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49452         clear_ungetc_buffer after fetching the stream's position, not before.
49453
49454 2009-01-15  Bruno Haible  <bruno@clisp.org>
49455
49456         Make fflush-after-ungetc POSIX compliant on glibc systems.
49457         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49458         after ungetc.
49459         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49460         (rpl_fflush): On glibc systems, simply call the system's fflush
49461         function after clearing the ungetc buffer.
49462         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49463         Instead, lseek only to the end of file, then use the system's fseeko
49464         for the rest. On glibc systems, reset the EOF indicator bit.
49465
49466 2009-01-15  Jim Meyering  <meyering@redhat.com>
49467
49468         openmp.m4: revert quote-adding change, for portability to older autoconf
49469         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49470         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49471         Simon Josefsson noticed the problem when using autoconf-2.61.
49472
49473 2009-01-15  Bruno Haible  <bruno@clisp.org>
49474
49475         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49476         * tests/test-fflush2.c (ASSERT): Always fail.
49477         (main): Add two tests for fflush() after ungetc(), taking into account
49478         the Austin Group's clarification.
49479         Suggested by Eric Blake.
49480
49481 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49482
49483         mktime.m4: remove K&R-style function prototypes
49484         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49485         for the Sun C++ compiler.
49486
49487 2009-01-14  Bruno Haible  <bruno@clisp.org>
49488
49489         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49490         while including <wchar.h>.
49491         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49492         the system's <wchar.h> file.
49493         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49494
49495 2009-01-14  Bruno Haible  <bruno@clisp.org>
49496
49497         * m4/csharp.m4: Don't mention gettext on the serial number line.
49498         * m4/csharpexec.m4: Likewise.
49499         * m4/eaccess.m4: Likewise.
49500         * m4/javaexec.m4: Likewise.
49501         * m4/sig_atomic_t.m4: Likewise.
49502         * m4/tmpdir.m4: Likewise.
49503         * m4/intldir.m4: Bump gettext version.
49504         * m4/lib-ld.m4: Likewise.
49505
49506 2009-01-14  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/progname.c (set_program_name): Add more comments.
49509         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49510
49511 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49512
49513         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49514         were sys/stat.h does not define it.
49515
49516 2009-01-14  Jim Meyering  <meyering@redhat.com>
49517
49518         many *.m4 files: improve m4 quoting
49519         99% of this change was performed by running the following commands:
49520         git ls-files | grep '\.m4$' | xargs perl -pi \
49521           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49522           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49523           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49524           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49525         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49526         The remainder were to add Copyright dates, increment serial numbers,
49527         undo some changes in comments, exclude m4/intl.m4, and add quotes
49528         around the "1" in ",1" where the unusual spacing prohibited the
49529         above regexps from doing the job.  For more details, see
49530         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49531         * m4/acl.m4: Modified.
49532         * m4/afs.m4: Likewise.
49533         * m4/alloca.m4: Likewise.
49534         * m4/argp.m4: Likewise.
49535         * m4/argz.m4: Likewise.
49536         * m4/atexit.m4: Likewise.
49537         * m4/bison-i18n.m4: Likewise.
49538         * m4/bison.m4: Likewise.
49539         * m4/byteswap.m4: Likewise.
49540         * m4/c-stack.m4: Likewise.
49541         * m4/c-strtod.m4: Likewise.
49542         * m4/calloc.m4: Likewise.
49543         * m4/canonicalize-lgpl.m4: Likewise.
49544         * m4/chown.m4: Likewise.
49545         * m4/clock_time.m4: Likewise.
49546         * m4/codeset.m4: Likewise.
49547         * m4/copy-file.m4: Likewise.
49548         * m4/csharp.m4: Likewise.
49549         * m4/csharpcomp.m4: Likewise.
49550         * m4/csharpexec.m4: Likewise.
49551         * m4/d-ino.m4: Likewise.
49552         * m4/d-type.m4: Likewise.
49553         * m4/dirfd.m4: Likewise.
49554         * m4/double-slash-root.m4: Likewise.
49555         * m4/eaccess.m4: Likewise.
49556         * m4/eealloc.m4: Likewise.
49557         * m4/environ.m4: Likewise.
49558         * m4/errno_h.m4: Likewise.
49559         * m4/euidaccess.m4: Likewise.
49560         * m4/execute.m4: Likewise.
49561         * m4/fatal-signal.m4: Likewise.
49562         * m4/fchdir.m4: Likewise.
49563         * m4/fcntl_h.m4: Likewise.
49564         * m4/fileblocks.m4: Likewise.
49565         * m4/filenamecat.m4: Likewise.
49566         * m4/findprog.m4: Likewise.
49567         * m4/flexmember.m4: Likewise.
49568         * m4/fnmatch.m4: Likewise.
49569         * m4/fopen.m4: Likewise.
49570         * m4/fpending.m4: Likewise.
49571         * m4/fprintf-posix.m4: Likewise.
49572         * m4/free.m4: Likewise.
49573         * m4/frexp.m4: Likewise.
49574         * m4/frexpl.m4: Likewise.
49575         * m4/fsusage.m4: Likewise.
49576         * m4/ftruncate.m4: Likewise.
49577         * m4/gc-camellia.m4: Likewise.
49578         * m4/gc-random.m4: Likewise.
49579         * m4/gc.m4: Likewise.
49580         * m4/getaddrinfo.m4: Likewise.
49581         * m4/getcwd-abort-bug.m4: Likewise.
49582         * m4/getcwd-path-max.m4: Likewise.
49583         * m4/getdate.m4: Likewise.
49584         * m4/getdomainname.m4: Likewise.
49585         * m4/getgroups.m4: Likewise.
49586         * m4/gethostname.m4: Likewise.
49587         * m4/gethrxtime.m4: Likewise.
49588         * m4/getline.m4: Likewise.
49589         * m4/getloadavg.m4: Likewise.
49590         * m4/getndelim2.m4: Likewise.
49591         * m4/getpass.m4: Likewise.
49592         * m4/gettext.m4: Likewise.
49593         * m4/gettime.m4: Likewise.
49594         * m4/gettimeofday.m4: Likewise.
49595         * m4/gnulib-common.m4: Likewise.
49596         * m4/group-member.m4: Likewise.
49597         * m4/host-os.m4: Likewise.
49598         * m4/iconv.m4: Likewise.
49599         * m4/iconv_open.m4: Likewise.
49600         * m4/inet_ntop.m4: Likewise.
49601         * m4/inet_pton.m4: Likewise.
49602         * m4/inline.m4: Likewise.
49603         * m4/intldir.m4: Likewise.
49604         * m4/intlmacosx.m4: Likewise.
49605         * m4/intmax.m4: Likewise.
49606         * m4/intmax_t.m4: Likewise.
49607         * m4/inttypes.m4: Likewise.
49608         * m4/inttypes_h.m4: Likewise.
49609         * m4/inttypes-pri.m4: Likewise.
49610         * m4/isapipe.m4: Likewise.
49611         * m4/isnand.m4: Likewise.
49612         * m4/isnanf.m4: Likewise.
49613         * m4/isnanl.m4: Likewise.
49614         * m4/javacomp.m4: Likewise.
49615         * m4/javaexec.m4: Likewise.
49616         * m4/jm-winsz1.m4: Likewise.
49617         * m4/jm-winsz2.m4: Likewise.
49618         * m4/lchown.m4: Likewise.
49619         * m4/lcmessage.m4: Likewise.
49620         * m4/ldexpl.m4: Likewise.
49621         * m4/lib-ld.m4: Likewise.
49622         * m4/lib-link.m4: Likewise.
49623         * m4/libsigsegv.m4: Likewise.
49624         * m4/link-follow.m4: Likewise.
49625         * m4/localcharset.m4: Likewise.
49626         * m4/locale-fr.m4: Likewise.
49627         * m4/locale-ja.m4: Likewise.
49628         * m4/locale-tr.m4: Likewise.
49629         * m4/locale-zh.m4: Likewise.
49630         * m4/lock.m4: Likewise.
49631         * m4/longlong.m4: Likewise.
49632         * m4/ls-mntd-fs.m4: Likewise.
49633         * m4/lstat.m4: Likewise.
49634         * m4/malloc.m4: Likewise.
49635         * m4/mathl.m4: Likewise.
49636         * m4/mbrtowc.m4: Likewise.
49637         * m4/mbstate_t.m4: Likewise.
49638         * m4/mbswidth.m4: Likewise.
49639         * m4/memchr.m4: Likewise.
49640         * m4/memcmp.m4: Likewise.
49641         * m4/memcpy.m4: Likewise.
49642         * m4/memmem.m4: Likewise.
49643         * m4/memmove.m4: Likewise.
49644         * m4/mempcpy.m4: Likewise.
49645         * m4/memrchr.m4: Likewise.
49646         * m4/memset.m4: Likewise.
49647         * m4/minmax.m4: Likewise.
49648         * m4/mkdir-slash.m4: Likewise.
49649         * m4/mkdtemp.m4: Likewise.
49650         * m4/mktime.m4: Likewise.
49651         * m4/mmap-anon.m4: Likewise.
49652         * m4/mountlist.m4: Likewise.
49653         * m4/nanosleep.m4: Likewise.
49654         * m4/nls.m4: Likewise.
49655         * m4/nocrash.m4: Likewise.
49656         * m4/open.m4: Likewise.
49657         * m4/openat.m4: Likewise.
49658         * m4/openmp.m4: Likewise.
49659         * m4/pathmax.m4: Likewise.
49660         * m4/perl.m4: Likewise.
49661         * m4/physmem.m4: Likewise.
49662         * m4/pipe.m4: Likewise.
49663         * m4/po.m4: Likewise.
49664         * m4/poll.m4: Likewise.
49665         * m4/posixtm.m4: Likewise.
49666         * m4/posixver.m4: Likewise.
49667         * m4/printf-frexp.m4: Likewise.
49668         * m4/printf-frexpl.m4: Likewise.
49669         * m4/printf-posix.m4: Likewise.
49670         * m4/printf-posix-rpl.m4: Likewise.
49671         * m4/printf.m4: Likewise.
49672         * m4/progtest.m4: Likewise.
49673         * m4/putenv.m4: Likewise.
49674         * m4/readline.m4: Likewise.
49675         * m4/readlink.m4: Likewise.
49676         * m4/readutmp.m4: Likewise.
49677         * m4/realloc.m4: Likewise.
49678         * m4/regex.m4: Likewise.
49679         * m4/relocatable.m4: Likewise.
49680         * m4/relocatable-lib.m4: Likewise.
49681         * m4/rename-dest-slash.m4: Likewise.
49682         * m4/rename.m4: Likewise.
49683         * m4/rmdir-errno.m4: Likewise.
49684         * m4/rmdir.m4: Likewise.
49685         * m4/roundf.m4: Likewise.
49686         * m4/roundl.m4: Likewise.
49687         * m4/rpmatch.m4: Likewise.
49688         * m4/save-cwd.m4: Likewise.
49689         * m4/selinux-selinux-h.m4: Likewise.
49690         * m4/setenv.m4: Likewise.
49691         * m4/settime.m4: Likewise.
49692         * m4/sig2str.m4: Likewise.
49693         * m4/sig_atomic_t.m4: Likewise.
49694         * m4/signalblocking.m4: Likewise.
49695         * m4/signbit.m4: Likewise.
49696         * m4/sigpipe.m4: Likewise.
49697         * m4/sockets.m4: Likewise.
49698         * m4/sockpfaf.m4: Likewise.
49699         * m4/st_dm_mode.m4: Likewise.
49700         * m4/stat-time.m4: Likewise.
49701         * m4/stdbool.m4: Likewise.
49702         * m4/stdint.m4: Likewise.
49703         * m4/stdint_h.m4: Likewise.
49704         * m4/stpcpy.m4: Likewise.
49705         * m4/stpncpy.m4: Likewise.
49706         * m4/strcase.m4: Likewise.
49707         * m4/strchrnul.m4: Likewise.
49708         * m4/strcspn.m4: Likewise.
49709         * m4/strdup.m4: Likewise.
49710         * m4/strftime.m4: Likewise.
49711         * m4/strndup.m4: Likewise.
49712         * m4/strnlen.m4: Likewise.
49713         * m4/strpbrk.m4: Likewise.
49714         * m4/strptime.m4: Likewise.
49715         * m4/strsep.m4: Likewise.
49716         * m4/strtod.m4: Likewise.
49717         * m4/strtoimax.m4: Likewise.
49718         * m4/strtok_r.m4: Likewise.
49719         * m4/strtol.m4: Likewise.
49720         * m4/strtoll.m4: Likewise.
49721         * m4/strtoul.m4: Likewise.
49722         * m4/strtoull.m4: Likewise.
49723         * m4/strtoumax.m4: Likewise.
49724         * m4/strverscmp.m4: Likewise.
49725         * m4/threadlib.m4: Likewise.
49726         * m4/timegm.m4: Likewise.
49727         * m4/tm_gmtoff.m4: Likewise.
49728         * m4/tmpdir.m4: Likewise.
49729         * m4/tmpfile.m4: Likewise.
49730         * m4/tzset.m4: Likewise.
49731         * m4/uintmax_t.m4: Likewise.
49732         * m4/unlinkdir.m4: Likewise.
49733         * m4/unlocked-io.m4: Likewise.
49734         * m4/uptime.m4: Likewise.
49735         * m4/userspec.m4: Likewise.
49736         * m4/utimbuf.m4: Likewise.
49737         * m4/utime.m4: Likewise.
49738         * m4/utimes-null.m4: Likewise.
49739         * m4/utimes.m4: Likewise.
49740         * m4/vararrays.m4: Likewise.
49741         * m4/vasnprintf.m4: Likewise.
49742         * m4/vfprintf-posix.m4: Likewise.
49743         * m4/vprintf-posix.m4: Likewise.
49744         * m4/wait-process.m4: Likewise.
49745         * m4/wchar_t.m4: Likewise.
49746         * m4/wint_t.m4: Likewise.
49747         * m4/write-any-file.m4: Likewise.
49748         * m4/yield.m4: Likewise.
49749
49750 2009-01-13  Bruno Haible  <bruno@clisp.org>
49751
49752         Avoid test-copy-file.sh failures when ACL support insufficient.
49753         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49754         TESTS_ENVIRONMENT.
49755         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49756         Reported by Jim Meyering.
49757
49758 2009-01-13  Bruno Haible  <bruno@clisp.org>
49759
49760         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49761         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49762         * modules/unistdio/u8-printf-parse (Files): Likewise.
49763         * modules/unistdio/u32-printf-parse (Files): Likewise.
49764         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49765
49766 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49767
49768         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49769         and m4/inttypes_h.m4 too.
49770
49771 2009-01-12  Eric Blake  <ebb9@byu.net>
49772
49773         tests: IRIX 6.2 cc can't compile -0.0 into .data
49774         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49775         rather than at compile-time.
49776         * tests/test-floorl.c (minus_zero): Likewise.
49777         * tests/test-frexpl.c (minus_zero): Likewise.
49778         * tests/test-isnan.c (minus_zerol): Likewise.
49779         * tests/test-isnanl.h (minus_zero): Likewise.
49780         * tests/test-ldexpl.c (minus_zero): Likewise.
49781         * tests/test-roundl.c (minus_zero): Likewise.
49782         * tests/test-signbit.c (minus_zerol): Likewise.
49783         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49784         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49785         * tests/test-truncl.c (minus_zero): Likewise.
49786         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49787         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49788         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49789
49790 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49791
49792         regex: fix glibc bug 9697
49793         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49794         handling.
49795
49796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49797
49798         regex: fix glibc bug 697
49799         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49800         being NULL also if there are no backreferences.
49801
49802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49803
49804         regex: merge glibc changes
49805         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49806         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49807         re_string_skip_chars, re_string_reconstruct): Likewise.
49808         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49809
49810 2009-01-07  Jim Meyering  <meyering@redhat.com>
49811
49812         poll: filter through cppi
49813         * lib/poll.c: Indent cpp directives to reflect nesting.
49814
49815 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49816
49817         poll: don't return uninitialized
49818         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
49819
49820 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
49821
49822         avoid compile failure on AIX 6.1
49823         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
49824         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
49825
49826 2009-01-04  Jim Meyering  <meyering@redhat.com>
49827
49828         remove duplicate inclusion of <stdio.h>
49829         * tests/test-fprintf-posix.c: Likewise.
49830         * tests/test-printf-posix.c: Likewise.
49831         * tests/test-snprintf-posix.c: Likewise.
49832         * tests/test-sprintf-posix.c: Likewise.
49833         * tests/test-vasprintf-posix.c: Likewise.
49834         * tests/test-vfprintf-posix.c: Likewise.
49835         * tests/test-vprintf-posix.c: Likewise.
49836         * tests/test-vsnprintf-posix.c: Likewise.
49837         * tests/test-vsprintf-posix.c: Likewise.
49838
49839 2009-01-03  Jim Meyering  <meyering@redhat.com>
49840
49841         gnulib-tool: fix sed-based filtering
49842         * gnulib-tool (func_filter_filelist): Remove extra backslash
49843         in sed_fff_filter definition.
49844
49845 2009-01-02  Jim Meyering  <meyering@redhat.com>
49846
49847         strftime: avoid compilation failure on Solaris 2.6
49848         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
49849         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
49850         Don't #define mbrlen or mbsinit, since now they're guaranteed to
49851         be available.  Reported by Tom G. Christensen.  Details in
49852         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
49853
49854 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49855             Bruno Haible  <bruno@clisp.org>
49856
49857         Speed up gnulib-tool by doing more string processing through shell
49858         built-ins.
49859         * gnulib-tool (fast_func_append): New variable.
49860         (func_remove_prefix, func_remove_suffix): New functions.
49861         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
49862         (func_filter_filelist): New function.
49863         (func_get_dependencies): Use func_remove_suffix instead of sed.
49864         (func_get_automake_snippet): Use func_filter_filelist instead of a
49865         subshell and sed invocation.
49866
49867 2009-01-01  Bruno Haible  <bruno@clisp.org>
49868
49869         Fix a security bug.
49870         * gnulib-tool (func_import, import, update): Don't allow the characters
49871         '"', '$', '`', '\' in macro arguments that become part of commands that
49872         are evaluated.
49873
49874 2009-01-01  Bruno Haible  <bruno@clisp.org>
49875
49876         * gnulib-tool (func_reset_sigpipe): Add more comments.
49877
49878 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49879
49880         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
49881         func_emit_tests_Makefile_am, func_import): Abort loops early if we
49882         already know the answer.
49883
49884 2009-01-01  Jim Meyering  <meyering@redhat.com>
49885
49886         * lib/version-etc.c (version_etc_va): Update copyright year.
49887
49888 2008-12-30  Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
49891         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
49892         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
49893
49894 2008-12-29  Eric Blake  <ebb9@byu.net>
49895
49896         multiarch: avoid autoconf AC_REQUIRE bug
49897         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
49898         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
49899         2.63 and older.
49900         Reported by Bruno Haible, and analyzed in
49901         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
49902
49903 2008-12-29  Bruno Haible  <bruno@clisp.org>
49904
49905         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
49906         files in subdirectories correctly.
49907         Reported by Ralf Wildenhues.
49908
49909 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49910
49911         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
49912         rather than 'join FILE -', for Solaris join.
49913
49914 2008-12-29  Bruno Haible  <bruno@clisp.org>
49915
49916         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
49917         quoting.
49918         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
49919         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
49920         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
49921         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
49922         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
49923         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
49924         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
49925         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
49926         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49927         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
49928         * m4/nls.m4 (AM_NLS): Likewise.
49929         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
49930         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
49931         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49932         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
49933         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
49934         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
49935         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
49936         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
49937         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
49938         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
49939         * m4/xsize.m4 (gl_XSIZE): Likewise.
49940         Suggested by Jim Meyering.
49941
49942 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49943
49944         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
49945         * lib/parse-duration.c: use a switch instead of cascading if's.
49946
49947 2008-12-29  Eric Blake  <ebb9@byu.net>
49948
49949         wchar.h: supply WEOF on Irix 5.3
49950         * lib/wchar.in.h (wint_t): Also supply WEOF.
49951         * lib/wctype.in.h (wint_t): Likewise.
49952         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49953         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49954         Reported by Tom G. Christensen.
49955
49956 2008-12-26  Bruno Haible  <bruno@clisp.org>
49957
49958         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49959         i486, i586, i686.
49960
49961 2008-12-26  Bruno Haible  <bruno@clisp.org>
49962
49963         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49964
49965 2008-12-26  Bruno Haible  <bruno@clisp.org>
49966
49967         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49968         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49969         not __STDC_CONSTANT_MACROS.
49970         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49971
49972 2008-12-25  Bruno Haible  <bruno@clisp.org>
49973
49974         Add support for universal builds to vasnprintf.
49975         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49976         universal builds, guess no.
49977         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49978         * modules/vasprintf-posix (Depends-on): Likewise.
49979         * modules/fprintf-posix (Depends-on): Likewise.
49980         * modules/vfprintf-posix (Depends-on): Likewise.
49981         * modules/snprintf-posix (Depends-on): Likewise.
49982         * modules/vsnprintf-posix (Depends-on): Likewise.
49983         * modules/sprintf-posix (Depends-on): Likewise.
49984         * modules/vsprintf-posix (Depends-on): Likewise.
49985         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49986         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49987         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49988         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49989         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49990         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49991         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49992
49993         Add support for universal builds to <inttypes.h>.
49994         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49995         _SCNu64_PREFIX): In Apple
49996         universal builds, define directly, using _LP64.
49997         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49998         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49999         * modules/inttypes (Depends-on): Add multiarch.
50000         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50001
50002         Add support for universal builds to <stdint.h>.
50003         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50004         universal builds, define directly, using _LP64.
50005         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50006         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50007         and size_t.
50008         * modules/stdint (Depends-on): Add multiarch.
50009         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50010
50011         New module 'multiarch'.
50012         * modules/multiarch: New file.
50013         * m4/multiarch.m4: New file.
50014
50015 2008-12-25  Bruno Haible  <bruno@clisp.org>
50016
50017         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50018
50019 2008-12-25  Bruno Haible  <bruno@clisp.org>
50020
50021         * modules/btowc (License): Relicense under LGPLv2+.
50022         * modules/mbsinit (License): Likewise.
50023         * modules/mbrtowc (License): Likewise.
50024         * modules/wcrtomb (License): Likewise.
50025         * modules/streq (License): Likewise.
50026         Reported by David Lutterkort <lutter@redhat.com>.
50027
50028 2008-12-23  Bruno Haible  <bruno@clisp.org>
50029
50030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50031
50032 2008-12-23  Bruno Haible  <bruno@clisp.org>
50033
50034         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50035         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50036         GETADDRINFO_LIB, not in LIBS.
50037         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50038         * modules/canon-host (Link): Likewise.
50039         * NEWS: Mention the change.
50040         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50041         GETADDRINFO_LIB.
50042
50043 2008-12-22  Bruno Haible  <bruno@clisp.org>
50044
50045         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50046         * doc/posix-functions/iswalpha_l.texi: Likewise.
50047         * doc/posix-functions/iswblank_l.texi: Likewise.
50048         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50049         * doc/posix-functions/iswctype_l.texi: Likewise.
50050         * doc/posix-functions/iswdigit_l.texi: Likewise.
50051         * doc/posix-functions/iswgraph_l.texi: Likewise.
50052         * doc/posix-functions/iswlower_l.texi: Likewise.
50053         * doc/posix-functions/iswprint_l.texi: Likewise.
50054         * doc/posix-functions/iswpunct_l.texi: Likewise.
50055         * doc/posix-functions/iswspace_l.texi: Likewise.
50056         * doc/posix-functions/iswupper_l.texi: Likewise.
50057         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50058         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50059         * doc/posix-functions/open_wmemstream.texi: Likewise.
50060         * doc/posix-functions/swscanf.texi: Likewise.
50061         * doc/posix-functions/towctrans_l.texi: Likewise.
50062         * doc/posix-functions/towlower.texi: Likewise.
50063         * doc/posix-functions/towlower_l.texi: Likewise.
50064         * doc/posix-functions/towupper.texi: Likewise.
50065         * doc/posix-functions/towupper_l.texi: Likewise.
50066         * doc/posix-functions/vfwprintf.texi: Likewise.
50067         * doc/posix-functions/vfwscanf.texi: Likewise.
50068         * doc/posix-functions/vswscanf.texi: Likewise.
50069         * doc/posix-functions/vwprintf.texi: Likewise.
50070         * doc/posix-functions/vwscanf.texi: Likewise.
50071         * doc/posix-functions/wcpcpy.texi: Likewise.
50072         * doc/posix-functions/wcpncpy.texi: Likewise.
50073         * doc/posix-functions/wcscasecmp.texi: Likewise.
50074         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50075         * doc/posix-functions/wcscoll_l.texi: Likewise.
50076         * doc/posix-functions/wcsdup.texi: Likewise.
50077         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50078         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50079         * doc/posix-functions/wcsnlen.texi: Likewise.
50080         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50081         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50082         * doc/posix-functions/wctrans_l.texi: Likewise.
50083         * doc/posix-functions/wctype_l.texi: Likewise.
50084         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50085         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50086         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50087         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50088         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50089         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50090         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50091         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50092         * doc/glibc-functions/wcschrnul.texi: Likewise.
50093         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50094         * doc/glibc-functions/wcstod_l.texi: Likewise.
50095         * doc/glibc-functions/wcstof_l.texi: Likewise.
50096         * doc/glibc-functions/wcstol_l.texi: Likewise.
50097         * doc/glibc-functions/wcstold_l.texi: Likewise.
50098         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50099         * doc/glibc-functions/wcstoq.texi: Likewise.
50100         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50101         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50102         * doc/glibc-functions/wcstouq.texi: Likewise.
50103         * doc/glibc-functions/wmempcpy.texi: Likewise.
50104
50105 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50106             Eric Blake  <ebb9@byu.net>
50107             Paolo Bonzini  <bonzini@gnu.org>
50108             Bruno Haible  <bruno@clisp.org>
50109
50110         Make c-stack work on Haiku.
50111         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50112         (c_stack_action): Use SA_ONSTACK flag.
50113
50114 2008-12-22  Bruno Haible  <bruno@clisp.org>
50115
50116         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50117
50118 2008-12-22  Bruno Haible  <bruno@clisp.org>
50119
50120         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50121         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50122         being overridden.
50123         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50124         New macros.
50125         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50126         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50127         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50128         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50129
50130 2008-12-22  Bruno Haible  <bruno@clisp.org>
50131
50132         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50133         from test code.
50134
50135 2008-12-22  Eric Blake  <ebb9@byu.net>
50136
50137         Avoid gcc warnings on cygwin.
50138         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50139         Avoid unused variable.
50140         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50141         Likewise.
50142
50143 2008-12-22  Bruno Haible  <bruno@clisp.org>
50144
50145         Remove HAVE_MBRTOWC conditionals.
50146         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50147         (mbscasecmp): Assume mbrtowc function.
50148         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50149         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50150         * lib/mbschr.c: Include mbuiter.h unconditionally.
50151         (mbschr): Assume mbrtowc function.
50152         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50153         (mbscspn): Assume mbrtowc function.
50154         * lib/mbslen.c: Include mbuiter.h unconditionally.
50155         (mbslen): Assume mbrtowc function.
50156         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50157         (mbsncasecmp): Assume mbrtowc function.
50158         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50159         (mbsnlen): Assume mbrtowc function.
50160         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50161         (mbspbrk): Assume mbrtowc function.
50162         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50163         (mbspcasecmp): Assume mbrtowc function.
50164         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50165         (mbsrchr): Assume mbrtowc function.
50166         * lib/mbssep.c: Include mbuiter.h unconditionally.
50167         (mbssep): Assume mbrtowc function.
50168         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50169         (mbsspn): Assume mbrtowc function.
50170         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50171         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50172         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50173         (mbstok_r): Assume mbrtowc function.
50174         * lib/propername.c: Include mbuiter.h unconditionally.
50175         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50176         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50177         (trim2): Assume mbrtowc function.
50178         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50179         (mbsnwidth): Assume mbrtowc function.
50180         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50181         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50182         fallback definitions.
50183         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50184
50185 2008-12-22  Bruno Haible  <bruno@clisp.org>
50186
50187         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50188
50189 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50190
50191         * modules/regex: Request emulations for the mb*/wc* functions we need.
50192         * m4/regex.m4: Don't look for those functions here.
50193         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50194
50195 2008-12-22  Bruno Haible  <bruno@clisp.org>
50196
50197         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50198
50199 2008-12-21  Bruno Haible  <bruno@clisp.org>
50200
50201         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50202         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50203         (Include): Remove conditionalization.
50204         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50205         (Include): Remove conditionalization.
50206         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50207         (Include): Remove conditionalization.
50208         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50209         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50210         * NEWS: Mention the change.
50211         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50212         via Sergey Poznyakoff <gray@gnu.org.ua>.
50213
50214 2008-12-21  Bruno Haible  <bruno@clisp.org>
50215
50216         * MODULES.html.sh (Extended multibyte and wide character utilities
50217         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50218         wcrtomb, wcsrtombs.
50219         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50220         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50221         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50222         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50223
50224 2008-12-21  Bruno Haible  <bruno@clisp.org>
50225
50226         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50227
50228 2008-12-21  Bruno Haible  <bruno@clisp.org>
50229
50230         * modules/wcsnrtombs-tests: New file.
50231         * tests/test-wcsnrtombs1.sh: New file.
50232         * tests/test-wcsnrtombs2.sh: New file.
50233         * tests/test-wcsnrtombs3.sh: New file.
50234         * tests/test-wcsnrtombs4.sh: New file.
50235         * tests/test-wcsnrtombs.c: New file.
50236
50237         New module 'wcsnrtombs'.
50238         * lib/wchar.in.h (wcsnrtombs): New declaration.
50239         * lib/wcsnrtombs.c: New file.
50240         * lib/wcsrtombs-state.c: New file.
50241         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50242         (internal_state): Remove variable.
50243         * m4/wcsnrtombs.m4: New file.
50244         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50245         compilation units.
50246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50247         HAVE_WCSNRTOMBS.
50248         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50249         HAVE_WCSNRTOMBS.
50250         * modules/wcsnrtombs: New file.
50251         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50252         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50253
50254 2008-12-21  Bruno Haible  <bruno@clisp.org>
50255
50256         * modules/wcsrtombs-tests: New file.
50257         * tests/test-wcsrtombs1.sh: New file.
50258         * tests/test-wcsrtombs2.sh: New file.
50259         * tests/test-wcsrtombs3.sh: New file.
50260         * tests/test-wcsrtombs4.sh: New file.
50261         * tests/test-wcsrtombs.c: New file.
50262
50263         New module 'wcsrtombs'.
50264         * lib/wchar.in.h (wcsrtombs): New declaration.
50265         * lib/wcsrtombs.c: New file.
50266         * m4/wcsrtombs.m4: New file.
50267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50268         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50269         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50270         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50271         * modules/wcsrtombs: New file.
50272         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50273         bugs.
50274
50275 2008-12-21  Bruno Haible  <bruno@clisp.org>
50276
50277         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50278         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50279         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50280         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50281         if not correct.
50282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50283         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50284         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50285         m4/locale-zh.m4, m4/codeset.m4.
50286         * doc/posix-functions/wcrtomb.texi: Document the bug.
50287
50288 2008-12-21  Bruno Haible  <bruno@clisp.org>
50289
50290         Work around a btowc() bug on IRIX 6.5.
50291         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50292         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50293         REPLACE_WTOBC if not.
50294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50295         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50296         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50297
50298 2008-12-21  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/wcrtomb-tests: New file.
50301         * tests/test-wcrtomb.sh: New file.
50302         * tests/test-wcrtomb.c: New file.
50303
50304         New module 'wcrtomb'.
50305         * lib/wchar.in.h (wcrtomb): New declaration.
50306         * lib/wcrtomb.c: New file.
50307         * m4/wcrtomb.m4: New file.
50308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50309         HAVE_WCRTOMB.
50310         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50311         HAVE_WCRTOMB.
50312         * modules/wcrtomb: New file.
50313         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50314
50315 2008-12-21  Bruno Haible  <bruno@clisp.org>
50316
50317         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50318         * modules/mbsrtowcs (Files): Likewise.
50319         * modules/wctob (Files): Likewise.
50320         * modules/c-strcase-tests (Files): Likewise.
50321         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50322         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50323         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50324         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50325         * modules/vasnprintf-posix-tests (Files): Likewise.
50326
50327 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50328
50329         gitlog-to-changelog: pass all command-line arguments to git-log
50330         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50331         it is sometimes convenient to filter the commits in various ways.
50332         gitlog-to-changelog only allows --since to specify a start date,
50333         but git-log itself supports many other filtering mechanisms.
50334         At the moment, I want to filter by branch name.  Rather than
50335         adding a --branch option to gitlog-to-changelog, it seems more
50336         flexible to simply pass all options directly to git-log and let
50337         git do the work.  Notice that this effectively makes --since a
50338         redundant option for gitlog-to-changelog, but removing it would
50339         require current usage to change since calls would then require
50340         an additional '--'.
50341
50342 2008-12-21  Bruno Haible  <bruno@clisp.org>
50343
50344         * modules/mbsnrtowcs-tests: New file.
50345         * tests/test-mbsnrtowcs1.sh: New file.
50346         * tests/test-mbsnrtowcs2.sh: New file.
50347         * tests/test-mbsnrtowcs3.sh: New file.
50348         * tests/test-mbsnrtowcs4.sh: New file.
50349         * tests/test-mbsnrtowcs.c: New file.
50350
50351         New module 'mbsnrtowcs'.
50352         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50353         * lib/mbsnrtowcs.c: New file.
50354         * lib/mbsrtowcs-state.c: New file.
50355         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50356         (internal_state): Remove variable.
50357         * m4/mbsnrtowcs.m4: New file.
50358         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50359         compilation units.
50360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50361         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50362         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50363         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50364         * modules/mbsnrtowcs: New file.
50365         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50366         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50367         portability problem.
50368
50369 2008-12-21  Bruno Haible  <bruno@clisp.org>
50370
50371         Work around mbsrtowcs bug.
50372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50373         (gl_FUNC_MBSRTOWCS): Invoke it.
50374         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50375         m4/locale-zh.m4.
50376         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50377
50378 2008-12-21  Bruno Haible  <bruno@clisp.org>
50379
50380         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50381
50382 2008-12-21  Bruno Haible  <bruno@clisp.org>
50383
50384         Update doc for AIX.
50385         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50386         16-bit wchar_t type.
50387         * doc/posix-functions/btowc.texi: Likewise.
50388         * doc/posix-functions/fgetwc.texi: Likewise.
50389         * doc/posix-functions/fgetws.texi: Likewise.
50390         * doc/posix-functions/fputwc.texi: Likewise.
50391         * doc/posix-functions/fputws.texi: Likewise.
50392         * doc/posix-functions/fwide.texi: Likewise.
50393         * doc/posix-functions/fwprintf.texi: Likewise.
50394         * doc/posix-functions/fwscanf.texi: Likewise.
50395         * doc/posix-functions/getwchar.texi: Likewise.
50396         * doc/posix-functions/getwc.texi: Likewise.
50397         * doc/posix-functions/iswalnum.texi: Likewise.
50398         * doc/posix-functions/iswalpha.texi: Likewise.
50399         * doc/posix-functions/iswblank.texi: Likewise.
50400         * doc/posix-functions/iswcntrl.texi: Likewise.
50401         * doc/posix-functions/iswctype.texi: Likewise.
50402         * doc/posix-functions/iswdigit.texi: Likewise.
50403         * doc/posix-functions/iswgraph.texi: Likewise.
50404         * doc/posix-functions/iswlower.texi: Likewise.
50405         * doc/posix-functions/iswprint.texi: Likewise.
50406         * doc/posix-functions/iswpunct.texi: Likewise.
50407         * doc/posix-functions/iswspace.texi: Likewise.
50408         * doc/posix-functions/iswupper.texi: Likewise.
50409         * doc/posix-functions/iswxdigit.texi: Likewise.
50410         * doc/posix-functions/mbrtowc.texi: Likewise.
50411         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50412         * doc/posix-functions/mbstowcs.texi: Likewise.
50413         * doc/posix-functions/mbtowc.texi: Likewise.
50414         * doc/posix-functions/putwchar.texi: Likewise.
50415         * doc/posix-functions/putwc.texi: Likewise.
50416         * doc/posix-functions/swprintf.texi: Likewise.
50417         * doc/posix-functions/tolower.texi: Likewise.
50418         * doc/posix-functions/toupper.texi: Likewise.
50419         * doc/posix-functions/towctrans.texi: Likewise.
50420         * doc/posix-functions/ungetwc.texi: Likewise.
50421         * doc/posix-functions/vswprintf.texi: Likewise.
50422         * doc/posix-functions/wcrtomb.texi: Likewise.
50423         * doc/posix-functions/wcscat.texi: Likewise.
50424         * doc/posix-functions/wcschr.texi: Likewise.
50425         * doc/posix-functions/wcscmp.texi: Likewise.
50426         * doc/posix-functions/wcscoll.texi: Likewise.
50427         * doc/posix-functions/wcscpy.texi: Likewise.
50428         * doc/posix-functions/wcscspn.texi: Likewise.
50429         * doc/posix-functions/wcsftime.texi: Likewise.
50430         * doc/posix-functions/wcslen.texi: Likewise.
50431         * doc/posix-functions/wcsncat.texi: Likewise.
50432         * doc/posix-functions/wcsncmp.texi: Likewise.
50433         * doc/posix-functions/wcsncpy.texi: Likewise.
50434         * doc/posix-functions/wcspbrk.texi: Likewise.
50435         * doc/posix-functions/wcsrchr.texi: Likewise.
50436         * doc/posix-functions/wcsrtombs.texi: Likewise.
50437         * doc/posix-functions/wcsspn.texi: Likewise.
50438         * doc/posix-functions/wcsstr.texi: Likewise.
50439         * doc/posix-functions/wcstod.texi: Likewise.
50440         * doc/posix-functions/wcstof.texi: Likewise.
50441         * doc/posix-functions/wcstoimax.texi: Likewise.
50442         * doc/posix-functions/wcstok.texi: Likewise.
50443         * doc/posix-functions/wcstold.texi: Likewise.
50444         * doc/posix-functions/wcstoll.texi: Likewise.
50445         * doc/posix-functions/wcstol.texi: Likewise.
50446         * doc/posix-functions/wcstombs.texi: Likewise.
50447         * doc/posix-functions/wcstoull.texi: Likewise.
50448         * doc/posix-functions/wcstoul.texi: Likewise.
50449         * doc/posix-functions/wcstoumax.texi: Likewise.
50450         * doc/posix-functions/wcswidth.texi: Likewise.
50451         * doc/posix-functions/wcsxfrm.texi: Likewise.
50452         * doc/posix-functions/wctob.texi: Likewise.
50453         * doc/posix-functions/wctomb.texi: Likewise.
50454         * doc/posix-functions/wctrans.texi: Likewise.
50455         * doc/posix-functions/wctype.texi: Likewise.
50456         * doc/posix-functions/wcwidth.texi: Likewise.
50457         * doc/posix-functions/wmemchr.texi: Likewise.
50458         * doc/posix-functions/wmemcmp.texi: Likewise.
50459         * doc/posix-functions/wmemcpy.texi: Likewise.
50460         * doc/posix-functions/wmemmove.texi: Likewise.
50461         * doc/posix-functions/wmemset.texi: Likewise.
50462         * doc/posix-functions/wprintf.texi: Likewise.
50463         * doc/posix-functions/wscanf.texi: Likewise.
50464
50465 2008-12-21  Bruno Haible  <bruno@clisp.org>
50466
50467         Update doc for HP-UX 11.11.
50468         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50469         in HP-UX version 11.00, not in all versions of HP-UX 11.
50470         * doc/posix-functions/fwide.texi: Likewise.
50471         * doc/posix-functions/fwprintf.texi: Likewise.
50472         * doc/posix-functions/fwscanf.texi: Likewise.
50473         * doc/posix-functions/inet_ntop.texi: Likewise.
50474         * doc/posix-functions/inet_pton.texi: Likewise.
50475         * doc/posix-functions/mbrlen.texi: Likewise.
50476         * doc/posix-functions/mbrtowc.texi: Likewise.
50477         * doc/posix-functions/mbsinit.texi: Likewise.
50478         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50479         * doc/posix-functions/swprintf.texi: Likewise.
50480         * doc/posix-functions/swscanf.texi: Likewise.
50481         * doc/posix-functions/towctrans.texi: Likewise.
50482         * doc/posix-functions/vfwprintf.texi: Likewise.
50483         * doc/posix-functions/vswprintf.texi: Likewise.
50484         * doc/posix-functions/vwprintf.texi: Likewise.
50485         * doc/posix-functions/wcrtomb.texi: Likewise.
50486         * doc/posix-functions/wcsrtombs.texi: Likewise.
50487         * doc/posix-functions/wcsstr.texi: Likewise.
50488         * doc/posix-functions/wctob.texi: Likewise.
50489         * doc/posix-functions/wctrans.texi: Likewise.
50490         * doc/posix-functions/wmemchr.texi: Likewise.
50491         * doc/posix-functions/wmemcmp.texi: Likewise.
50492         * doc/posix-functions/wmemcpy.texi: Likewise.
50493         * doc/posix-functions/wmemmove.texi: Likewise.
50494         * doc/posix-functions/wmemset.texi: Likewise.
50495         * doc/posix-functions/wprintf.texi: Likewise.
50496         * doc/posix-functions/wscanf.texi: Likewise.
50497
50498 2008-12-21  Bruno Haible  <bruno@clisp.org>
50499
50500         Work around a portability problem.
50501         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50502         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50503
50504 2008-12-20  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50507         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50508         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50510         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50511
50512         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50513         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50514         set.
50515         (GNULIB_defined_mbstate_t): New macro.
50516         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50517         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50518         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50519         reuses the system's mbrtowc function but works around the bugs.
50520         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50521         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50522         macros.
50523         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50524         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50525         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50526         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50527         REPLACE_MBSINIT if mbsinit needs to be overridden.
50528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50529         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50530         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50531         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50532         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50533         m4/locale-zh.m4.
50534         (Depends): Add mbsinit.
50535         * modules/mbsinit (Depends): Add mbrtowc.
50536         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50537
50538 2008-12-20  Bruno Haible  <bruno@clisp.org>
50539
50540         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50541         so that there are no conversion errors on AIX.
50542         * tests/test-mbsrtowcs.c (main): LIkewise.
50543
50544 2008-12-20  Bruno Haible  <bruno@clisp.org>
50545
50546         Work around wctob bug on Solaris <= 9.
50547         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50548         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50550         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50551         * modules/wctob (Files): Add m4/locale-fr.m4.
50552         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50553
50554 2008-12-20  Bruno Haible  <bruno@clisp.org>
50555
50556         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50557         /dev/null.
50558         * tests/test-select-in.sh: Likewise.
50559         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50560
50561 2008-12-20  Bruno Haible  <bruno@clisp.org>
50562
50563         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50564         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50565         Cygwin 1.5.x.
50566
50567 2008-12-20  Bruno Haible  <bruno@clisp.org>
50568
50569         Ensure mbstate_t is defined on HP-UX 11.11.
50570         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50571         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50572         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50573         AC_USE_SYSTEM_EXTENSIONS.
50574         * modules/fnmatch (Depends-on): Add extensions.
50575         * modules/mbrlen (Depends-on): Likewise.
50576         * modules/mbrtowc (Depends-on): Likewise.
50577         * modules/mbsinit (Depends-on): Likewise.
50578         * modules/mbsrtowcs (Depends-on): Likewise.
50579         * modules/mbswidth (Depends-on): Likewise.
50580         * modules/quotearg (Depends-on): Likewise.
50581         * modules/strftime (Depends-on): Likewise.
50582
50583 2008-12-20  Bruno Haible  <bruno@clisp.org>
50584
50585         Ensure wctob is declared on IRIX 6.5.
50586         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50587         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50588         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50590         of HAVE_WCTOB.
50591         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50592         HAVE_WCTOB.
50593         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50594
50595 2008-12-19  Bruno Haible  <bruno@clisp.org>
50596
50597         * modules/mbsrtowcs-tests: New file.
50598         * tests/test-mbsrtowcs1.sh: New file.
50599         * tests/test-mbsrtowcs2.sh: New file.
50600         * tests/test-mbsrtowcs3.sh: New file.
50601         * tests/test-mbsrtowcs4.sh: New file.
50602         * tests/test-mbsrtowcs.c: New file.
50603
50604         New module 'mbsrtowcs'.
50605         * lib/wchar.in.h (mbsrtowcs): New declaration.
50606         * lib/mbsrtowcs.c: New file.
50607         * m4/mbsrtowcs.m4: New file.
50608         * modules/mbsrtowcs: New file.
50609         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50610         HAVE_MBSRTOWCS.
50611         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50612         HAVE_MBSRTOWCS.
50613         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50614
50615 2008-12-19  Bruno Haible  <bruno@clisp.org>
50616
50617         New module 'mbrlen'.
50618         * lib/wchar.in.h (mbrlen): New declaration.
50619         * lib/mbrlen.c: New file.
50620         * m4/mbrlen.m4: New file.
50621         * modules/mbrlen: New file.
50622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50623         HAVE_MBRLEN.
50624         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50625         HAVE_MBRLEN.
50626         * doc/posix-functions/mbrlen.texi: Document the new module.
50627
50628 2008-12-19  Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50631         * modules/mbrtowc (Depends-on): Add verify.
50632         Suggested by Paul Eggert.
50633
50634 2008-12-18  Bruno Haible  <bruno@clisp.org>
50635
50636         * modules/mbsinit-tests: New file.
50637         * tests/test-mbsinit.sh: New file.
50638         * tests/test-mbsinit.c: New file.
50639
50640 2008-12-18  Bruno Haible  <bruno@clisp.org>
50641
50642         * modules/mbrtowc-tests: New file.
50643         * tests/test-mbrtowc1.sh: New file.
50644         * tests/test-mbrtowc2.sh: New file.
50645         * tests/test-mbrtowc3.sh: New file.
50646         * tests/test-mbrtowc4.sh: New file.
50647         * tests/test-mbrtowc.c: New file.
50648
50649         New module 'mbrtowc'.
50650         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50651         mbsinit and mbrtowc.
50652         (mbrtowc): New declaration.
50653         * lib/mbrtowc.c: New file.
50654         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50655         * modules/mbrtowc: New file.
50656         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50657         HAVE_MBRTOWC.
50658         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50659         HAVE_MBRTOWC.
50660         * doc/posix-functions/mbrtowc.texi: Document the new module.
50661
50662 2008-12-18  Bruno Haible  <bruno@clisp.org>
50663
50664         New module 'wctob'.
50665         * lib/wchar.in.h (wctob): New declaration.
50666         * lib/wctob.c: New file.
50667         * m4/wctob.m4: New file.
50668         * modules/wctob: New file.
50669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50670         HAVE_WCTOB.
50671         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50672         * doc/posix-functions/wctob.texi: Document the new module.
50673
50674 2008-12-18  Bruno Haible  <bruno@clisp.org>
50675
50676         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50677         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50678
50679 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50680
50681         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50682         G. Christensen" <tgc@jupiterrise.com>.
50683
50684         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50685         G. Christensen" <tgc@jupiterrise.com>.
50686
50687         * lib/flock.c: Need to include string.h.  Reported by "Tom
50688         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50689         <ebb9@byu.net>.
50690
50691 2008-12-18  Bruno Haible  <bruno@clisp.org>
50692
50693         * m4/locale-ja.m4: New file, from GNU gettext.
50694
50695 2008-12-17  Bruno Haible  <bruno@clisp.org>
50696
50697         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50698         Suggested by Eric Blake.
50699
50700 2008-12-17  Bruno Haible  <bruno@clisp.org>
50701
50702         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50703
50704 2008-12-17  Bruno Haible  <bruno@clisp.org>
50705
50706         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50707         * modules/mbsinit (Depends-on): Add verify.
50708         Suggested by Paul Eggert.
50709
50710 2008-12-17  Bruno Haible  <bruno@clisp.org>
50711
50712         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50713         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50714         gl_FUNC_MBRTOWC.
50715         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50716         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50717         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50718         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50719         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50720         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50721         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50722         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50723         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50724         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50725         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50726         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50727         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50728         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50729         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50730         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50731         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50732         * modules/trim (configure.ac): Likewise.
50733
50734 2008-12-17  Bruno Haible  <bruno@clisp.org>
50735
50736         * modules/btowc-tests: New file.
50737         * tests/test-btowc1.sh: New file.
50738         * tests/test-btowc2.sh: New file.
50739         * tests/test-btowc.c: New file.
50740
50741         New module 'btowc'.
50742         * lib/wchar.in.h (btowc): New declaration.
50743         * lib/btowc.c: New file.
50744         * m4/btowc.m4: New file.
50745         * modules/btowc: New file.
50746         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50747         HAVE_BTOWC.
50748         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50749         * doc/posix-functions/btowc.texi: Document the new module.
50750
50751 2008-12-17  Bruno Haible  <bruno@clisp.org>
50752
50753         New module 'mbsinit'.
50754         * lib/wchar.in.h (mbsinit): New declaration.
50755         * lib/mbsinit.c: New file.
50756         * m4/mbsinit.m4: New file.
50757         * modules/mbsinit: New file.
50758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50759         HAVE_MBSINIT.
50760         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50761         HAVE_MBSINIT.
50762         * doc/posix-functions/mbsinit.texi: Document the new module.
50763
50764 2008-12-16  Bruno Haible  <bruno@clisp.org>
50765
50766         * lib/unistd.in.h: Add comment.
50767         * tests/test-environ.c: Don't include <stdlib.h>.
50768
50769 2008-12-16  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/parse-duration.h (parse_duration): Document return value
50772         convention.
50773         * lib/parse-duration.c: Include specification header first. Add
50774         comments.
50775         (_): Remove macro.
50776         (parse_year_month_day, parse_hour_minute_second): Move side effects
50777         outside of strchr call.
50778         (parse_non_iso8601): Move side effects outside of isspace call.
50779         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50780         call.
50781
50782 2008-12-16  Bruno Haible  <bruno@clisp.org>
50783
50784         * tests/test-parse-duration.sh: Produce no output when the test
50785         succeeds.
50786
50787 2008-12-16  Bruno Haible  <bruno@clisp.org>
50788
50789         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50790         expressions.
50791
50792 2008-12-15  Bruno Haible  <bruno@clisp.org>
50793
50794         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50795         * doc/glibc-functions/flistxattr.texi: Likewise.
50796         * doc/glibc-functions/fopencookie.texi: Likewise.
50797         * doc/glibc-functions/fremovexattr.texi: Likewise.
50798         * doc/glibc-functions/fsetxattr.texi: Likewise.
50799         * doc/glibc-functions/getxattr.texi: Likewise.
50800         * doc/glibc-functions/lgetxattr.texi: Likewise.
50801         * doc/glibc-functions/listxattr.texi: Likewise.
50802         * doc/glibc-functions/llistxattr.texi: Likewise.
50803         * doc/glibc-functions/lremovexattr.texi: Likewise.
50804         * doc/glibc-functions/lsetxattr.texi: Likewise.
50805         * doc/glibc-functions/removexattr.texi: Likewise.
50806         * doc/glibc-functions/setxattr.texi: Likewise.
50807         * doc/posix-functions/open_memstream.texi: Likewise.
50808
50809 2008-12-15  Eric Blake  <ebb9@byu.net>
50810
50811         Update doc for cygwin 1.7.
50812         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50813         functions.
50814         * doc/posix-functions/fchmodat.texi: Likewise.
50815         * doc/posix-functions/fchownat.texi: Likewise.
50816         * doc/posix-functions/fdopendir.texi: Likewise.
50817         * doc/posix-functions/fmemopen.texi: Likewise.
50818         * doc/posix-functions/freeaddrinfo.texi: Likewise.
50819         * doc/posix-functions/fstatat.texi: Likewise.
50820         * doc/posix-functions/futimens.texi: Likewise.
50821         * doc/posix-functions/gai_strerror.texi: Likewise.
50822         * doc/posix-functions/getaddrinfo.texi: Likewise.
50823         * doc/posix-functions/getnameinfo.texi: Likewise.
50824         * doc/posix-functions/if_freenameindex.texi: Likewise.
50825         * doc/posix-functions/if_indextoname.texi: Likewise.
50826         * doc/posix-functions/if_nameindex.texi: Likewise.
50827         * doc/posix-functions/if_nametoindex.texi: Likewise.
50828         * doc/posix-functions/insque.texi: Likewise.
50829         * doc/posix-functions/linkat.texi: Likewise.
50830         * doc/posix-functions/llrint.texi: Likewise.
50831         * doc/posix-functions/llrintf.texi: Likewise.
50832         * doc/posix-functions/llrintl.texi: Likewise.
50833         * doc/posix-functions/lockf.texi: Likewise.
50834         * doc/posix-functions/lrintl.texi: Likewise.
50835         * doc/posix-functions/mkdirat.texi: Likewise.
50836         * doc/posix-functions/mkfifoat.texi: Likewise.
50837         * doc/posix-functions/mknodat.texi: Likewise.
50838         * doc/posix-functions/mq_close.texi: Likewise.
50839         * doc/posix-functions/mq_getattr.texi: Likewise.
50840         * doc/posix-functions/mq_notify.texi: Likewise.
50841         * doc/posix-functions/mq_open.texi: Likewise.
50842         * doc/posix-functions/mq_receive.texi: Likewise.
50843         * doc/posix-functions/mq_send.texi: Likewise.
50844         * doc/posix-functions/mq_setattr.texi: Likewise.
50845         * doc/posix-functions/mq_timedreceive.texi: Likewise.
50846         * doc/posix-functions/mq_timedsend.texi: Likewise.
50847         * doc/posix-functions/mq_unlink.texi: Likewise.
50848         * doc/posix-functions/open_memstream.texi: Likewise.
50849         * doc/posix-functions/openat.texi: Likewise.
50850         * doc/posix-functions/posix_fadvise.texi: Likewise.
50851         * doc/posix-functions/posix_fallocate.texi: Likewise.
50852         * doc/posix-functions/posix_madvise.texi: Likewise.
50853         * doc/posix-functions/posix_memalign.texi: Likewise.
50854         * doc/posix-functions/posix_openpt.texi: Likewise.
50855         * doc/posix-functions/readlinkat.texi: Likewise.
50856         * doc/posix-functions/remque.texi: Likewise.
50857         * doc/posix-functions/renameat.texi: Likewise.
50858         * doc/posix-functions/rintl.texi: Likewise.
50859         * doc/posix-functions/sem_unlink.texi: Likewise.
50860         * doc/posix-functions/shm_open.texi: Likewise.
50861         * doc/posix-functions/shm_unlink.texi: Likewise.
50862         * doc/posix-functions/signgam.texi: Likewise.
50863         * doc/posix-functions/sigset.texi: Likewise.
50864         * doc/posix-functions/stpcpy.texi: Likewise.
50865         * doc/posix-functions/stpncpy.texi: Likewise.
50866         * doc/posix-functions/strerror.texi: Likewise.
50867         * doc/posix-functions/strtod.texi: Likewise.
50868         * doc/posix-functions/symlinkat.texi: Likewise.
50869         * doc/posix-functions/unlinkat.texi: Likewise.
50870         * doc/posix-functions/utimensat.texi: Likewise.
50871         * doc/glibc-functions/bindresvport.texi: Likewise.
50872         * doc/glibc-functions/dn_expand.texi: Likewise.
50873         * doc/glibc-functions/exp10.texi: Likewise.
50874         * doc/glibc-functions/exp10f.texi: Likewise.
50875         * doc/glibc-functions/fgetxattr.texi: Likewise.
50876         * doc/glibc-functions/flistxattr.texi: Likewise.
50877         * doc/glibc-functions/fopencookie.texi: Likewise.
50878         * doc/glibc-functions/freeifaddrs.texi: Likewise.
50879         * doc/glibc-functions/fremovexattr.texi: Likewise.
50880         * doc/glibc-functions/fsetxattr.texi: Likewise.
50881         * doc/glibc-functions/getifaddrs.texi: Likewise.
50882         * doc/glibc-functions/getxattr.texi: Likewise.
50883         * doc/glibc-functions/lgetxattr.texi: Likewise.
50884         * doc/glibc-functions/listxattr.texi: Likewise.
50885         * doc/glibc-functions/llistxattr.texi: Likewise.
50886         * doc/glibc-functions/lremovexattr.texi: Likewise.
50887         * doc/glibc-functions/lsetxattr.texi: Likewise.
50888         * doc/glibc-functions/pow10.texi: Likewise.
50889         * doc/glibc-functions/pow10f.texi: Likewise.
50890         * doc/glibc-functions/rcmd_af.texi: Likewise.
50891         * doc/glibc-functions/removexattr.texi: Likewise.
50892         * doc/glibc-functions/res_init.texi: Likewise.
50893         * doc/glibc-functions/res_mkquery.texi: Likewise.
50894         * doc/glibc-functions/res_query.texi: Likewise.
50895         * doc/glibc-functions/res_querydomain.texi: Likewise.
50896         * doc/glibc-functions/res_send.texi: Likewise.
50897         * doc/glibc-functions/rresvport_af.texi: Likewise.
50898         * doc/glibc-functions/setxattr.texi: Likewise.
50899         * doc/glibc-functions/strcasestr.texi: Likewise.
50900
50901 2008-12-15  Bruno Haible  <bruno@clisp.org>
50902
50903         Fix compilation error on OSF/1 4.0.
50904         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
50905         <sys/time.h>, simply delegate to the system header.
50906         Reported by Daniel Richard G. <oss@teragram.com>.
50907
50908 2008-12-15  Bruno Haible  <bruno@clisp.org>
50909
50910         * doc/posix-functions/openat.texi: Mention the 'openat' module.
50911         * doc/posix-functions/fchmodat.texi: Likewise.
50912         * doc/posix-functions/fchownat.texi: Likewise.
50913         * doc/posix-functions/fdopendir.texi: Likewise.
50914         * doc/posix-functions/fstatat.texi: Likewise.
50915         * doc/posix-functions/mkdirat.texi: Likewise.
50916         * doc/posix-functions/unlinkat.texi: Likewise.
50917
50918 2008-12-14  Bruno Haible  <bruno@clisp.org>
50919
50920         Update doc for POSIX:2008.
50921         * doc/posix-functions/faccessat.texi: New file.
50922         * doc/posix-functions/fchmodat.texi: New file.
50923         * doc/posix-functions/fchownat.texi: New file.
50924         * doc/posix-functions/fdopendir.texi: New file.
50925         * doc/posix-functions/fstatat.texi: New file.
50926         * doc/posix-functions/futimens.texi: New file.
50927         * doc/posix-functions/linkat.texi: New file.
50928         * doc/posix-functions/mkdirat.texi: New file.
50929         * doc/posix-functions/mkfifoat.texi: New file.
50930         * doc/posix-functions/mknodat.texi: New file.
50931         * doc/posix-functions/open_wmemstream.texi: New file.
50932         * doc/posix-functions/openat.texi: New file.
50933         * doc/posix-functions/psiginfo.texi: New file.
50934         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
50935         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
50936         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
50937         * doc/posix-functions/readlinkat.texi: New file.
50938         * doc/posix-functions/renameat.texi: New file.
50939         * doc/posix-functions/strerror_l.texi: New file.
50940         * doc/posix-functions/symlinkat.texi: New file.
50941         * doc/posix-functions/unlinkat.texi: New file.
50942         * doc/posix-functions/utimensat.texi: New file.
50943         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50944
50945 2008-12-14  Bruno Haible  <bruno@clisp.org>
50946
50947         Update doc for POSIX:2008.
50948         * doc/posix-functions/alphasort.texi: Renamed from
50949         doc/glibc-functions/alphasort.texi.
50950         * doc/posix-functions/dirfd.texi: Renamed from
50951         doc/glibc-functions/dirfd.texi.
50952         * doc/posix-functions/dprintf.texi: Renamed from
50953         doc/glibc-functions/dprintf.texi.
50954         * doc/posix-functions/duplocale.texi: Renamed from
50955         doc/glibc-functions/duplocale.texi.
50956         * doc/posix-functions/fexecve.texi: Renamed from
50957         doc/glibc-functions/fexecve.texi.
50958         * doc/posix-functions/fmemopen.texi: Renamed from
50959         doc/glibc-functions/fmemopen.texi.
50960         * doc/posix-functions/freelocale.texi: Renamed from
50961         doc/glibc-functions/freelocale.texi.
50962         * doc/posix-functions/getdate_err.texi: Renamed from
50963         doc/glibc-functions/getdate_err.texi.
50964         * doc/posix-functions/isalnum_l.texi: Renamed from
50965         doc/glibc-functions/isalnum_l.texi.
50966         * doc/posix-functions/isalpha_l.texi: Renamed from
50967         doc/glibc-functions/isalpha_l.texi.
50968         * doc/posix-functions/isblank_l.texi: Renamed from
50969         doc/glibc-functions/isblank_l.texi.
50970         * doc/posix-functions/iscntrl_l.texi: Renamed from
50971         doc/glibc-functions/iscntrl_l.texi.
50972         * doc/posix-functions/isdigit_l.texi: Renamed from
50973         doc/glibc-functions/isdigit_l.texi.
50974         * doc/posix-functions/isgraph_l.texi: Renamed from
50975         doc/glibc-functions/isgraph_l.texi.
50976         * doc/posix-functions/islower_l.texi: Renamed from
50977         doc/glibc-functions/islower_l.texi.
50978         * doc/posix-functions/isprint_l.texi: Renamed from
50979         doc/glibc-functions/isprint_l.texi.
50980         * doc/posix-functions/ispunct_l.texi: Renamed from
50981         doc/glibc-functions/ispunct_l.texi.
50982         * doc/posix-functions/isspace_l.texi: Renamed from
50983         doc/glibc-functions/isspace_l.texi.
50984         * doc/posix-functions/isupper_l.texi: Renamed from
50985         doc/glibc-functions/isupper_l.texi.
50986         * doc/posix-functions/iswalnum_l.texi: Renamed from
50987         doc/glibc-functions/iswalnum_l.texi.
50988         * doc/posix-functions/iswalpha_l.texi: Renamed from
50989         doc/glibc-functions/iswalpha_l.texi.
50990         * doc/posix-functions/iswblank_l.texi: Renamed from
50991         doc/glibc-functions/iswblank_l.texi.
50992         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50993         doc/glibc-functions/iswcntrl_l.texi.
50994         * doc/posix-functions/iswctype_l.texi: Renamed from
50995         doc/glibc-functions/iswctype_l.texi.
50996         * doc/posix-functions/iswdigit_l.texi: Renamed from
50997         doc/glibc-functions/iswdigit_l.texi.
50998         * doc/posix-functions/iswgraph_l.texi: Renamed from
50999         doc/glibc-functions/iswgraph_l.texi.
51000         * doc/posix-functions/iswlower_l.texi: Renamed from
51001         doc/glibc-functions/iswlower_l.texi.
51002         * doc/posix-functions/iswprint_l.texi: Renamed from
51003         doc/glibc-functions/iswprint_l.texi.
51004         * doc/posix-functions/iswpunct_l.texi: Renamed from
51005         doc/glibc-functions/iswpunct_l.texi.
51006         * doc/posix-functions/iswspace_l.texi: Renamed from
51007         doc/glibc-functions/iswspace_l.texi.
51008         * doc/posix-functions/iswupper_l.texi: Renamed from
51009         doc/glibc-functions/iswupper_l.texi.
51010         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51011         doc/glibc-functions/iswxdigit_l.texi.
51012         * doc/posix-functions/isxdigit_l.texi: Renamed from
51013         doc/glibc-functions/isxdigit_l.texi.
51014         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51015         doc/glibc-functions/mbsnrtowcs.texi.
51016         * doc/posix-functions/mkdtemp.texi: Renamed from
51017         doc/glibc-functions/mkdtemp.texi.
51018         * doc/posix-functions/newlocale.texi: Renamed from
51019         doc/glibc-functions/newlocale.texi.
51020         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51021         doc/glibc-functions/nl_langinfo_l.texi.
51022         * doc/posix-functions/open_memstream.texi: Renamed from
51023         doc/glibc-functions/open_memstream.texi.
51024         * doc/posix-functions/opterr.texi: Renamed from
51025         doc/glibc-functions/opterr.texi.
51026         * doc/posix-functions/optind.texi: Renamed from
51027         doc/glibc-functions/optind.texi.
51028         * doc/posix-functions/optopt.texi: Renamed from
51029         doc/glibc-functions/optopt.texi.
51030         * doc/posix-functions/psignal.texi: Renamed from
51031         doc/glibc-functions/psignal.texi.
51032         * doc/posix-functions/scandir.texi: Renamed from
51033         doc/glibc-functions/scandir.texi.
51034         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51035         doc/glibc-functions/sched_get_priority_min.texi.
51036         * doc/posix-functions/signgam.texi: Renamed from
51037         doc/glibc-functions/signgam.texi.
51038         * doc/posix-functions/stpcpy.texi: Renamed from
51039         doc/glibc-functions/stpcpy.texi.
51040         * doc/posix-functions/stpncpy.texi: Renamed from
51041         doc/glibc-functions/stpncpy.texi.
51042         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51043         doc/glibc-functions/strcasecmp_l.texi.
51044         * doc/posix-functions/strcoll_l.texi: Renamed from
51045         doc/glibc-functions/strcoll_l.texi.
51046         * doc/posix-functions/strfmon_l.texi: Renamed from
51047         doc/glibc-functions/strfmon_l.texi.
51048         * doc/posix-functions/strftime_l.texi: Renamed from
51049         doc/glibc-functions/strftime_l.texi.
51050         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51051         doc/glibc-functions/strncasecmp_l.texi.
51052         * doc/posix-functions/strndup.texi: Renamed from
51053         doc/glibc-functions/strndup.texi.
51054         * doc/posix-functions/strnlen.texi: Renamed from
51055         doc/glibc-functions/strnlen.texi.
51056         * doc/posix-functions/strsignal.texi: Renamed from
51057         doc/glibc-functions/strsignal.texi.
51058         * doc/posix-functions/strxfrm_l.texi: Renamed from
51059         doc/glibc-functions/strxfrm_l.texi.
51060         * doc/posix-functions/timer_gettime.texi: Renamed from
51061         doc/glibc-functions/timer_gettime.texi.
51062         * doc/posix-functions/tolower_l.texi: Renamed from
51063         doc/glibc-functions/tolower_l.texi.
51064         * doc/posix-functions/toupper_l.texi: Renamed from
51065         doc/glibc-functions/toupper_l.texi.
51066         * doc/posix-functions/towctrans_l.texi: Renamed from
51067         doc/glibc-functions/towctrans_l.texi.
51068         * doc/posix-functions/towlower_l.texi: Renamed from
51069         doc/glibc-functions/towlower_l.texi.
51070         * doc/posix-functions/towupper_l.texi: Renamed from
51071         doc/glibc-functions/towupper_l.texi.
51072         * doc/posix-functions/uselocale.texi: Renamed from
51073         doc/glibc-functions/uselocale.texi.
51074         * doc/posix-functions/vdprintf.texi: Renamed from
51075         doc/glibc-functions/vdprintf.texi.
51076         * doc/posix-functions/wcpcpy.texi:
51077         Renamed from doc/glibc-functions/wcpcpy.texi.
51078         * doc/posix-functions/wcpncpy.texi: Renamed from
51079         doc/glibc-functions/wcpncpy.texi.
51080         * doc/posix-functions/wcscasecmp.texi: Renamed from
51081         doc/glibc-functions/wcscasecmp.texi.
51082         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51083         doc/glibc-functions/wcscasecmp_l.texi.
51084         * doc/posix-functions/wcscoll_l.texi: Renamed from
51085         doc/glibc-functions/wcscoll_l.texi.
51086         * doc/posix-functions/wcsdup.texi: Renamed from
51087         doc/glibc-functions/wcsdup.texi.
51088         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51089         doc/glibc-functions/wcsncasecmp.texi.
51090         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51091         doc/glibc-functions/wcsncasecmp_l.texi.
51092         * doc/posix-functions/wcsnlen.texi: Renamed from
51093         doc/glibc-functions/wcsnlen.texi.
51094         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51095         doc/glibc-functions/wcsnrtombs.texi.
51096         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51097         doc/glibc-functions/wcsxfrm_l.texi.
51098         * doc/posix-functions/wctrans_l.texi: Renamed from
51099         doc/glibc-functions/wctrans_l.texi.
51100         * doc/posix-functions/wctype_l.texi: Renamed from
51101         doc/glibc-functions/wctype_l.texi.
51102         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51103         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51104         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51105         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51106         these subsections.
51107         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51108         Remove sections.
51109
51110 2008-12-14  Bruno Haible  <bruno@clisp.org>
51111
51112         Update doc for POSIX:2008.
51113         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51114
51115 2008-12-14  Bruno Haible  <bruno@clisp.org>
51116
51117         Update doc for POSIX:2008.
51118         * doc/pastposix-functions/bcmp.texi: Renamed from
51119         doc/posix-functions/bcmp.texi.
51120         * doc/pastposix-functions/bcopy.texi: Renamed from
51121         doc/posix-functions/bcopy.texi.
51122         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51123         doc/posix-functions/bsd_signal.texi.
51124         * doc/pastposix-functions/bzero.texi: Renamed from
51125         doc/posix-functions/bzero.texi.
51126         * doc/pastposix-functions/ecvt.texi: Renamed from
51127         doc/posix-functions/ecvt.texi.
51128         * doc/pastposix-functions/fcvt.texi: Renamed from
51129         doc/posix-functions/fcvt.texi.
51130         * doc/pastposix-functions/ftime.texi: Renamed from
51131         doc/posix-functions/ftime.texi.
51132         * doc/pastposix-functions/gcvt.texi: Renamed from
51133         doc/posix-functions/gcvt.texi.
51134         * doc/pastposix-functions/getcontext.texi: Renamed from
51135         doc/posix-functions/getcontext.texi.
51136         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51137         doc/posix-functions/gethostbyaddr.texi.
51138         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51139         doc/posix-functions/gethostbyname.texi.
51140         * doc/pastposix-functions/getwd.texi: Renamed from
51141         doc/posix-functions/getwd.texi.
51142         * doc/pastposix-functions/h_errno.texi: Renamed from
51143         doc/posix-functions/h_errno.texi.
51144         * doc/pastposix-functions/index.texi: Renamed from
51145         doc/posix-functions/index.texi.
51146         * doc/pastposix-functions/makecontext.texi: Renamed from
51147         doc/posix-functions/makecontext.texi.
51148         * doc/pastposix-functions/mktemp.texi: Renamed from
51149         doc/posix-functions/mktemp.texi.
51150         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51151         doc/posix-functions/pthread_attr_getstackaddr.texi.
51152         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51153         doc/posix-functions/pthread_attr_setstackaddr.texi.
51154         * doc/pastposix-functions/rindex.texi: Renamed from
51155         doc/posix-functions/rindex.texi.
51156         * doc/pastposix-functions/scalb.texi: Renamed from
51157         doc/posix-functions/scalb.texi.
51158         * doc/pastposix-functions/setcontext.texi: Renamed from
51159         doc/posix-functions/setcontext.texi.
51160         * doc/pastposix-functions/swapcontext.texi: Renamed from
51161         doc/posix-functions/swapcontext.texi.
51162         * doc/pastposix-functions/ualarm.texi: Renamed from
51163         doc/posix-functions/ualarm.texi.
51164         * doc/pastposix-functions/usleep.texi: Renamed from
51165         doc/posix-functions/usleep.texi.
51166         * doc/pastposix-functions/vfork.texi: Renamed from
51167         doc/posix-functions/vfork.texi.
51168         * doc/pastposix-functions/wcswcs.texi: Renamed from
51169         doc/posix-functions/wcswcs.texi.
51170         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51171         (Function Substitutes): Update.
51172
51173 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51174
51175         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51176         m4/strerror.m4.
51177
51178 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51179             Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51182
51183 2008-12-13  Bruno Haible  <bruno@clisp.org>
51184
51185         * modules/strtoull (Depends-on): Remove unistd.
51186
51187 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51188
51189         * modules/strtoull (Depends-on): Add stdlib.
51190
51191 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51192
51193         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51194
51195 2008-12-10  Jim Meyering  <meyering@redhat.com>
51196
51197         gl_ASSERT: don't say assertions are disabled when they're not
51198         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51199         "checking whether to enable assertions... no", when they are in
51200         fact enabled.  This is solely a bug in the output of configure.
51201         In spite of saying "no", NDEBUG was not defined in that case.
51202         Also, as noted by Eric Blake, leave assertions enabled upon
51203         --enable-assert=INVALID.
51204
51205 2008-12-10  Bruno Haible  <bruno@clisp.org>
51206
51207         Change MODULES.html to refer to POSIX:2008 where possible.
51208         * MODULES.html.sh (POSIX2008_URL): New variable.
51209         (posix_headers): Remove sys/timeb, ucontext.
51210         (posix2001_headers): New variable.
51211         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51212         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51213         index, makecontext, mktemp, pthread_attr_getstackaddr,
51214         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51215         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51216         (posix2001_functions): New variable.
51217         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51218         otherwise.
51219
51220 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51221
51222         add missing include to parse-duration.c
51223         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51224         * modules/parse-duration (Depends-on): Add xalloc.
51225
51226         fix sed script reading maint.mk
51227         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51228         (syntax-check-rules): Use it.
51229
51230 2008-12-09  Bruno Haible  <bruno@clisp.org>
51231
51232         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51233         MacOS X 10.4/PowerPC.
51234         Reported by Simon Josefsson.
51235
51236 2008-12-08  Jim Meyering  <meyering@redhat.com>
51237
51238         work around mingw's lack of some S_IF definitions
51239         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51240         Reported by Simon Josefsson.
51241
51242 2008-12-08  Bruno Haible  <bruno@clisp.org>
51243
51244         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51245         applied to variables. Needed on MacOS X 10.4/PowerPC.
51246         Reported by Simon Josefsson.
51247
51248 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51249         and Eric Blake  <ebb9@byu.net>
51250
51251         assert: honor --enable-assert
51252         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51253         order to honor --enable-assert, rather than treating it as a
51254         synonym for --disable-assert.
51255
51256 2008-12-08  Jim Meyering  <meyering@redhat.com>
51257
51258         * lib/posixtm.c: Remove now-useless declaration of mktime.
51259
51260         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51261
51262 2008-12-07  Bruno Haible  <bruno@clisp.org>
51263
51264         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51265         test_once): Mark functions as static.
51266         * tests/test-tls.c (test_tls): Likewise.
51267
51268 2008-12-07  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51271         iconv_register_autodetect.
51272
51273 2008-12-07  Jim Meyering  <meyering@redhat.com>
51274
51275         posixtm.c: avoid a warning
51276         * lib/posixtm.c (posixtime): Don't initialize tm0.
51277         It's no longer needed to placate gcc4's -Wuninitialized,
51278         and the attempt to placate would elicit a new warning.
51279
51280         unicodeio.c: mark unused parameters
51281         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51282         (fallback_failure_callback): Likewise.
51283
51284 2008-12-07  Bruno Haible  <bruno@clisp.org>
51285
51286         * gnulib-tool (func_create_testdir): When building the tests
51287         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51288         Reported by Simon Josefsson.
51289
51290 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51291
51292         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51293
51294 2008-12-06  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51297         Suggested by Eric Blake.
51298
51299 2008-12-06  Bruno Haible  <bruno@clisp.org>
51300
51301         Fix a c-stack test failure on MacOS X.
51302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51303         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51304         handler for SIGBUS as well.
51305         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51306         install a signal handler for SIGBUS as well.
51307         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51308
51309 2008-12-06  Bruno Haible  <bruno@clisp.org>
51310
51311         Advocacy documentation.
51312         * doc/gnulib-intro.texi (Benefits): New section.
51313         * doc/gnulib.texi: Update.
51314
51315 2008-12-06  Bruno Haible  <bruno@clisp.org>
51316
51317         Document the 'manywarnings' module.
51318         * doc/manywarnings.texi: New file.
51319         * doc/gnulib.texi: Include it.
51320
51321 2008-12-05  Eric Blake  <ebb9@byu.net>
51322
51323         tests: silence some gcc warnings
51324         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51325         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51326         type mismatches.
51327
51328 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51329             Bruno Haible  <bruno@clisp.org>
51330
51331         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51332
51333 2008-11-29  Jim Meyering  <meyering@redhat.com>
51334
51335         unicodeio.c: mark unused parameters
51336         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51337         (fallback_failure_callback): Likewise.
51338
51339         fts: fix a thinko
51340         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51341         (set_stat_type): Return S_IF*-valued "type" directly.
51342         Prompted by James Youngman's spotting a related bug.
51343         Confirmed by further testing through find.
51344
51345         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51346         * lib/fts.c (D_TYPE): Define.
51347         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51348         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51349         (s_ifmt_shift_bits): New function.
51350         (set_stat_type): New function.
51351         (fts_build): When not calling fts_stat, call set_stat_type
51352         to propagate dirent.d_type info to fts_read caller.
51353         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51354         fts_statp->st_mode type information may be valid.
51355
51356 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51357
51358         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51359         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51360         <sds@gnu.org>.
51361
51362 2008-11-20  Bruno Haible  <bruno@clisp.org>
51363
51364         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51365         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51366         INCLUDE_NEXT.
51367         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51368         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51369         * modules/math (Makefile.am): Substitute
51370         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51371         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51372
51373 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51374             Bruno Haible  <bruno@clisp.org>
51375
51376         * lib/stdint.in.h: Define all type macros so that their expansion is
51377         a single typedef'ed token. Fixes a compilation failure in Boost which
51378         does "using ::int8_t;".
51379
51380 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51381
51382         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51383         gl_MANYWARN_ALL_GCC.
51384         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51385         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51386         * modules/manywarnings: New file.
51387         * MODULES.html.sh: Mention manywarnings module.
51388
51389 2008-11-18  Bruno Haible  <bruno@clisp.org>
51390
51391         * doc/gnulib-tool.texi (Unit tests): New section.
51392
51393 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51394
51395         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51396         paths like 'lib/po/foo.po'.
51397
51398 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51399
51400         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51401         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51402
51403 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51404
51405         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51406         parameter works.
51407
51408 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51409
51410         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51411
51412 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51413
51414         * modules/parse-duration-tests: New file.
51415         * tests/test-parse-duration.sh: New file.
51416         * tests/test-parse-duration.c: New file.
51417
51418         New module 'parse-duration'.
51419         * lib/parse-duration.h: New file.
51420         * lib/parse-duration.c: New file.
51421         * modules/parse-duration: New file.
51422
51423 2008-11-17  Bruno Haible  <bruno@clisp.org>
51424
51425         * tests/test-select-out.sh: Comment out the first pipe test.
51426         Reported by Simon Josefsson.
51427
51428 2008-11-17  Bruno Haible  <bruno@clisp.org>
51429
51430         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51431         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51432         gl_HOSTENT.
51433
51434 2008-11-17  Bruno Haible  <bruno@clisp.org>
51435
51436         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51437         -lnetwork and -lnet. Needed for Haiku and BeOS.
51438
51439 2008-11-16  Bruno Haible  <bruno@clisp.org>
51440
51441         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51442
51443 2008-11-16  Bruno Haible  <bruno@clisp.org>
51444
51445         Avoid test failure on Haiku.
51446         * tests/test-fsync.c: Include <errno.h>.
51447         (main): Don't require that fsync (0) fails.
51448
51449 2008-11-15  Bruno Haible  <bruno@clisp.org>
51450
51451         New module 'hostent'.
51452         * modules/hostent: New file.
51453         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51454
51455 2008-11-15  Bruno Haible  <bruno@clisp.org>
51456
51457         New module 'servent'.
51458         * modules/servent: New file.
51459         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51460
51461 2008-11-15  Bruno Haible  <bruno@clisp.org>
51462
51463         Avoid generating same test program with two different rules.
51464         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51465         test-frexp to test-frexp-nolibm.
51466         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51467         test-frexpl to test-frexpl-nolibm.
51468
51469 2008-11-15  Bruno Haible  <bruno@clisp.org>
51470
51471         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51472         $(FREXPL_LIBM).
51473
51474 2008-11-15  Bruno Haible  <bruno@clisp.org>
51475
51476         * lib/netdb.in.h: Activate the definitions also when the system's
51477         <netdb.h> has 'struct addrinfo'.
51478         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51479         EAI_OVERFLOW or AI_NUMERICSERV.
51480         * doc/posix-headers/netdb.texi: Document the problem.
51481
51482 2008-11-15  Bruno Haible  <bruno@clisp.org>
51483
51484         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51485
51486         Make the 'sched' module work on platforms where <sched.h> exists but
51487         is incomplete (such as Haiku).
51488         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51489         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51490         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51491         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51492         HAVE_STRUCT_SCHED_PARAM.
51493         * modules/sched (Depends-on): Add include_next.
51494         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51495         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51496         * doc/posix-headers/sched.texi: Document the issue.
51497
51498 2008-11-13  Jim Meyering  <meyering@redhat.com>
51499
51500         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51501         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51502         test would fail due to the difference in the Report bugs to ...
51503         line.  The expected address is empty, "<>", while the actual
51504         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51505
51506 2008-11-12  Bruno Haible  <bruno@clisp.org>
51507
51508         lstat: don't compile lstat.c on systems lacking lstat
51509         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51510         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51511         Reported by Daniel P. Berrange via Jim Meyering.
51512
51513 2008-11-12  Jim Meyering  <meyering@redhat.com>
51514
51515         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51516
51517 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51518
51519         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51520         instead.
51521
51522 2008-11-12  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/unicodeio.c: Include unistr.h.
51525         (utf8_wctomb): Remove function.
51526         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51527
51528 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51529
51530         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51531         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51532         <bruno@clisp.org>.
51533         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51534
51535 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51536
51537         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51538         * doc/gnulib.texi: Add section for warnings.
51539
51540 2008-11-11  Bruno Haible  <bruno@clisp.org>
51541
51542         * lib/sockets.h: Add a comment.
51543
51544 2008-11-11  Karl Berry  <karl@gnu.org>
51545
51546         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51547
51548 2008-11-11  Eric Blake  <ebb9@byu.net>
51549
51550         fdl.texi: avoid git symlinks
51551         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51552
51553 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51554
51555         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51556
51557 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51558
51559         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51560         (gl_WARN_ADD): Substitute $2 if literal.
51561
51562 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51563
51564         * m4/warning.m4: Remove.
51565
51566 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51567
51568         * m4/warnings.m4: Almost complete rewrite. :-)
51569
51570 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51571
51572         * modules/warnings: New module.
51573         * m4/warnings.m4: New file.
51574         * MODULES.html.sh: Mention warnings module.
51575         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51576         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51577
51578 2008-11-10  Eric Blake  <ebb9@byu.net>
51579
51580         fdl.texi: make a symlink to the latest version
51581         * doc/standards.texi: Revert today's earlier change.
51582         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51583         * doc/fdl.texi: ...and replace this with a symlink to the newer
51584         fdl-1.3.texi.
51585
51586 2008-11-10  Bruno Haible  <bruno@clisp.org>
51587
51588         * tests/test-select-fd.c (main): Accept the result file name as fourth
51589         argument.
51590         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51591         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51592
51593 2008-11-10  Bruno Haible  <bruno@clisp.org>
51594
51595         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51596         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51597         as autoconf-substituted macros.
51598         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51599         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51600         gl_NETDB_H_DEFAULTS. Set these variables.
51601         * modules/netdb (Makefile.am): Substitute these variables.
51602
51603 2008-11-10  Eric Blake  <ebb9@byu.net>
51604
51605         standards.texi: include correct file for FDL 1.3
51606         * doc/standards.texi (GNU Free Documentation License): Change
51607         include file to pull in FDL 1.3, not 1.2.
51608
51609         fdl.texi: revert accidental change to license
51610         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51611
51612 2008-11-10  Bruno Haible  <bruno@clisp.org>
51613
51614         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51615         cross-compiling guesses also when the native compile gives no result.
51616
51617 2008-11-10  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/spawni.c (__spawni): Force variable into the stack.
51620
51621 2008-11-10  Bruno Haible  <bruno@clisp.org>
51622
51623         Add support for Haiku.
51624         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51625         glibc and BeOS, but also on Haiku.
51626         * lib/fpurge.c (fpurge): Likewise.
51627         * lib/freadable.c (freadable): Likewise.
51628         * lib/freadahead.c (freadahead): Likewise.
51629         * lib/freading.c (freading): Likewise.
51630         * lib/freadptr.c (freadptr): Likewise.
51631         * lib/freadseek.c (freadptrinc): Likewise.
51632         * lib/fseeko.c (rpl_fseeko): Likewise.
51633         * lib/fseterr.c (fseterr): Likewise.
51634         * lib/fwritable.c (fwritable): Likewise.
51635         * lib/fwriting.c (fwriting): Likewise.
51636         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51637
51638 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51639
51640         * lib/config.charset: Treat Haiku like BeOS.
51641
51642 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51643
51644         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51645         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51646
51647 2008-11-08  Bruno Haible  <bruno@clisp.org>
51648
51649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51650         AC_CACHE_CHECK.
51651
51652 2008-11-08  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51655
51656 2008-11-08  Bruno Haible  <bruno@clisp.org>
51657
51658         * tests/test-select-fd.c: New file.
51659         * tests/test-select-in.sh: New file.
51660         * tests/test-select-out.sh: New file.
51661         * tests/test-select-stdin.c: New file.
51662         * modules/select-tests (Files): Add the new files.
51663         (Depends-on): Add gettimeofday.
51664         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51665         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51666         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51667
51668 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51669             Bruno Haible  <bruno@clisp.org>
51670
51671         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51672
51673 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51674
51675         * build-aux/pmccabe2html: Added support for C++ source files.
51676
51677 2008-11-05  Ben Pfaff  <blp@gnu.org>
51678
51679         Fix lib/close.c build on Windows.
51680         * modules/close (Files): Add lib/w32sock.h.
51681
51682 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51683
51684         Accept Bison's NEWS format.
51685         * build-aux/announce-gen (print_news_deltas): Tweak
51686         $re_prefix.
51687
51688 2008-11-04  Bruno Haible  <bruno@clisp.org>
51689
51690         * modules/random_r (Maintainer): Add glibc.
51691
51692 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51693
51694         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51695         by karl@freefriends.org (Karl Berry).
51696         * doc/alloca.texi: Likewise.
51697         * doc/c-ctype.texi: Likewise.
51698         * doc/c-strcase.texi: Likewise.
51699         * doc/c-strcaseeq.texi: Likewise.
51700         * doc/c-strcasestr.texi: Likewise.
51701         * doc/c-strstr.texi: Likewise.
51702         * doc/c-strtod.texi: Likewise.
51703         * doc/c-strtold.texi: Likewise.
51704         * doc/ctime.texi: Likewise.
51705         * doc/error.texi: Likewise.
51706         * doc/fdl.texi: Likewise.
51707         * doc/gcd.texi: Likewise.
51708         * doc/getdate.texi: Likewise.
51709         * doc/gnulib-intro.texi: Likewise.
51710         * doc/gnulib-tool.texi: Likewise.
51711         * doc/gnulib.texi: Likewise.
51712         * doc/inet_ntoa.texi: Likewise.
51713         * doc/maintain.texi: Likewise.
51714         * doc/make-stds.texi: Likewise.
51715         * doc/quote.texi: Likewise.
51716         * doc/regexprops-generic.texi: Likewise.
51717         * doc/standards.texi: Likewise.
51718         * doc/verify.texi: Likewise.
51719         * doc/visibility.texi: Likewise.
51720         * doc/gnulib.texi (GNU Free Documentation License): Include
51721         fdl-1.3.texi instead of fdl.texi.
51722
51723 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51724
51725         * doc/fdl-1.3.texi: New file, from
51726         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51727         * modules/fdl-1.3: Add.
51728         * MODULES.html.sh: Add fdl-1.3.
51729
51730 2008-11-03  Bruno Haible  <bruno@clisp.org>
51731
51732         Make determination of absolute name of header file work with AIX xlc.
51733         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51734         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51735         preprocessing.
51736         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51737         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51738
51739 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51740
51741         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51742         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51743         <ludo@gnu.org>.
51744
51745 2008-11-02  Bruno Haible  <bruno@clisp.org>
51746
51747         Mark 'strpbrk' obsolete.
51748         * modules/strpbrk (Status, Notice): New sections.
51749         * modules/strtok_r (Depends-on): Add strpbrk.
51750
51751 2008-11-02  Bruno Haible  <bruno@clisp.org>
51752
51753         Mark 'strdup' obsolete.
51754         * modules/strdup (Status, Notice): New sections.
51755         * modules/findprog (Depends-on): Add strdup.
51756         * modules/getaddrinfo (Depends-on): Likewise.
51757         * modules/localename (Depends-on): Likewise.
51758         * modules/relocatable-lib (Depends-on): Likewise.
51759         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51760         * modules/relocatable-prog (Depends-on): Likewise.
51761         * modules/trim (Depends-on): Likewise.
51762         * modules/unictype/gen-ctype (Depends-on): Likewise.
51763         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51764
51765 2008-11-02  Bruno Haible  <bruno@clisp.org>
51766
51767         Mark 'strcspn' obsolete.
51768         * modules/strcspn (Status, Notice): New sections.
51769
51770 2008-11-02  Bruno Haible  <bruno@clisp.org>
51771
51772         Mark 'rmdir' obsolete.
51773         * modules/rmdir (Status, Notice): New sections.
51774         * modules/clean-temp (Depends-on): Add rmdir.
51775         * modules/openat (Depends-on): Likewise.
51776
51777 2008-11-02  Bruno Haible  <bruno@clisp.org>
51778
51779         Mark 'raise' obsolete.
51780         * modules/raise (Status, Notice): New sections.
51781         (Include): Specify <signal.h>.
51782         * modules/stdio (Depends-on): Add raise.
51783         * modules/write (Depends-on): Likewise.
51784
51785 2008-11-02  Bruno Haible  <bruno@clisp.org>
51786
51787         Mark 'memset' obsolete.
51788         * modules/memset (Status, Notice): New sections.
51789
51790 2008-11-02  Bruno Haible  <bruno@clisp.org>
51791
51792         Mark 'memmove' obsolete.
51793         * modules/memmove (Status, Notice): New sections.
51794         * modules/argp (Depends-on): Add memmove.
51795         * modules/argz (Depends-on): Likewise.
51796         * modules/canonicalize (Depends-on): Likewise.
51797         * modules/canonicalize-lgpl (Depends-on): Likewise.
51798         * modules/fts (Depends-on): Likewise.
51799         * modules/getcwd (Depends-on): Likewise.
51800         * modules/human (Depends-on): Likewise.
51801         * modules/regex (Depends-on): Likewise.
51802         * modules/striconveh (Depends-on): Likewise.
51803         * modules/trim (Depends-on): Likewise.
51804         * modules/unistr/u8-move (Depends-on): Likewise.
51805         * modules/unistr/u16-move (Depends-on): Likewise.
51806         * modules/unistr/u32-move (Depends-on): Likewise.
51807
51808 2008-11-02  Bruno Haible  <bruno@clisp.org>
51809
51810         Mark 'memcpy' obsolete.
51811         * modules/memcpy (Status, Notice): New sections.
51812
51813 2008-11-02  Bruno Haible  <bruno@clisp.org>
51814
51815         Mark 'memcmp' obsolete.
51816         * modules/memcmp (Status, Notice): New sections.
51817         * modules/argmatch (Depends-on): Add memchr.
51818         * modules/backupfile (Depends-on): Likewise.
51819         * modules/c-strcasestr (Depends-on): Likewise.
51820         * modules/crypto/des (Depends-on): Likewise.
51821         * modules/csharpcomp (Depends-on): Likewise.
51822         * modules/fnmatch (Depends-on): Likewise.
51823         * modules/git-merge-changelog (Depends-on): Likewise.
51824         * modules/isnand (Depends-on): Likewise.
51825         * modules/isnand-nolibm (Depends-on): Likewise.
51826         * modules/isnanf (Depends-on): Likewise.
51827         * modules/isnanf-nolibm (Depends-on): Likewise.
51828         * modules/isnanl (Depends-on): Likewise.
51829         * modules/isnanl-nolibm (Depends-on): Likewise.
51830         * modules/mbchar (Depends-on): Likewise.
51831         * modules/memcoll (Depends-on): Likewise.
51832         * modules/quotearg (Depends-on): Likewise.
51833         * modules/regex (Depends-on): Likewise.
51834         * modules/relocatable-prog (Depends-on): Likewise.
51835         * modules/same (Depends-on): Likewise.
51836         * modules/signbit (Depends-on): Likewise.
51837         * modules/strcasestr-simple (Depends-on): Likewise.
51838         * modules/unictype/gen-ctype (Depends-on): Likewise.
51839         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51840         * modules/uniname/uniname (Depends-on): Likewise.
51841         * modules/unistr/u8-cmp (Depends-on): Likewise.
51842
51843 2008-11-02  Bruno Haible  <bruno@clisp.org>
51844
51845         Mark 'memchr' obsolete.
51846         * modules/memchr (Status, Notice): New sections.
51847         * modules/argp (Depends-on): Add memchr.
51848         * modules/base64 (Depends-on): Likewise.
51849         * modules/c-strcasestr (Depends-on): Likewise.
51850         * modules/chdir-long (Depends-on): Likewise.
51851         * modules/fnmatch (Depends-on): Likewise.
51852         * modules/getsubopt (Depends-on): Likewise.
51853         * modules/git-merge-changelog (Depends-on): Likewise.
51854         * modules/glob (Depends-on): Likewise.
51855         * modules/strcasestr-simple (Depends-on): Likewise.
51856         * modules/strnlen (Depends-on): Likewise.
51857
51858 2008-11-02  Bruno Haible  <bruno@clisp.org>
51859
51860         Mark 'atexit' obsolete.
51861         * modules/atexit (Status, Notice): New sections.
51862         * modules/chdir-long (Depends-on): Add atexit.
51863         * modules/wait-process (Depends-on): Likewise.
51864
51865 2008-11-02  Bruno Haible  <bruno@clisp.org>
51866
51867         * gnulib-tool: New option --with-obsolete.
51868         (func_usage): Document it.
51869         (func_modules_transitive_closure): Drop obsolete dependencies if
51870         incobsolete is not true.
51871         (func_import): Read and save the incobsolete variable to the cache.
51872
51873 2008-11-02  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/TEMPLATE-EXTENDED: New field 'Status'.
51876         * gnulib-tool: New option --extract-status.
51877         (func_usage): Document it.
51878         (sed_extract_prog): Recognize it.
51879         (func_get_status): New function.
51880
51881 2008-10-30  Simon Josefsson  <simon@josefsson.org>
51882
51883         * modules/sockets (License): Change from LGPL to LGPLv2+.
51884
51885 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51886
51887         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
51888
51889 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51890
51891         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51892         Mention times and sys_times.
51893         * modules/sys_times, modules/sys_times-tests: New modules.
51894         * modules/times, modules/times-tests: Likewise
51895         * m4/sys_times_h.m4: New file.
51896         * lib/sys_times.in.h: Likewise
51897         * lib/times.c: Likewise.
51898         * tests/test-sys_times.c: Likewise.
51899         * tests/test-times.c: Likewise.
51900         * doc/posix-headers/sys_times.texi: Update.
51901         * doc/posix-functions/times.texi: Update.
51902
51903 2008-10-28  Jim Meyering  <meyering@redhat.com>
51904
51905         * modules/tempname (Depends-on): Add lstat.
51906
51907         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
51908
51909 2008-10-28  Simon Josefsson  <simon@josefsson.org>
51910
51911         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
51912         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
51913         using idiom used elsewhere in gnulib.
51914
51915 2008-10-27  Jim Meyering  <meyering@redhat.com>
51916
51917         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
51918
51919 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51920
51921         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
51922         TESTS_ENVIRONMENT, for shell scripts that needs to call built
51923         programs.
51924         * tests/test-argp-2.sh: Use $EXEEXT when needed.
51925
51926 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51927
51928         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
51929
51930 2008-10-27  Bruno Haible  <bruno@clisp.org>
51931
51932         * tests/test-lstat.c: Include <stdio.h>.
51933
51934 2008-10-27  Simon Josefsson  <simon@josefsson.org>
51935
51936         * modules/lstat-tests: New module.
51937         * tests/test-lstat.c: New file.
51938
51939 2008-10-26  Jim Meyering  <meyering@redhat.com>
51940
51941         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
51942
51943 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51944             Bruno Haible  <bruno@clisp.org>
51945
51946         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
51947         * modules/configmake (Include): Add a note that the include must come
51948         after all system headers.
51949         * lib/javaversion.c: Include configmake.h after all other includes.
51950
51951 2008-10-26  Bruno Haible  <bruno@clisp.org>
51952
51953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51954         HAVE_STRUCT_RANDOM_DATA to 1.
51955         (gl_STDLIB_H): Simplify.
51956
51957 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51958
51959         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51960         substitute HAVE_STRUCT_RANDOM_DATA.
51961         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51962         random_data.
51963         * modules/stdlib (Makefile.am): Substitute
51964         HAVE_STRUCT_RANDOM_DATA.
51965
51966 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51967
51968         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51969         * doc/gnulib-intro.texi (Copyright): Likewise.
51970
51971 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51972
51973         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51974         findings.
51975
51976 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51977             Bruno Haible  <bruno@clisp.org>
51978
51979         * lib/unistd.in.h: Include <winsock2.h>.
51980         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51981         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51982         Provide dummy declarations.
51983         (gethostname): Override.
51984         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51985         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51986         gl_PREREQ_SYS_H_WINSOCK2.
51987         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51988         * doc/posix-functions/gethostname.texi: More details.
51989
51990 2008-10-25  Bruno Haible  <bruno@clisp.org>
51991
51992         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51993         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51994         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51995
51996         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51997         here ...
51998         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51999         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52000         gl_UNISTD_H_DEFAULTS.
52001
52002 2008-10-25  Eric Blake  <ebb9@byu.net>
52003
52004         signbit: avoid spurious compiler failure
52005         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52006         declarations inside function.
52007
52008 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52009             Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52012         * modules/random_r (Depends-on): Add stdint.
52013
52014 2008-10-24  Bruno Haible  <bruno@clisp.org>
52015
52016         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52017         Eggert.
52018         * modules/strerror (License): Likewise.
52019
52020 2008-10-24  Jim Meyering  <meyering@redhat.com>
52021
52022         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52023         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52024
52025 2008-10-24  Eric Blake  <ebb9@byu.net>
52026
52027         getgroups: fix compilation when getgroups is available
52028         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52029         but with <config.h> override of getgroups disabled.
52030
52031 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52032
52033         * doc/gnulib.texi (Header files): Add note about C++ problems.
52034         Explained by Bruno Haible <bruno@clisp.org>.
52035
52036 2008-10-23  Bruno Haible  <bruno@clisp.org>
52037
52038         Define a dummy SA_NODEFER macro on Interix.
52039         * lib/signal.in.h (SA_NODEFER): Define fallback.
52040         Reported by Aleksey Cheusov <cheusov@tut.by> via
52041         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52042
52043 2008-10-23  Bruno Haible  <bruno@clisp.org>
52044
52045         * modules/freadahead (License): Change to LGPLv2+.
52046         Suggested by Simon Josefsson.
52047
52048 2008-10-23  Jim Meyering  <meyering@redhat.com>
52049
52050         random_r: new module
52051         * modules/random_r: New file.
52052         * m4/random_r.m4: New file.
52053         * lib/random_r.c: New file, from glibc.
52054         * modules/random_r-tests: New file.
52055         * tests/test-random_r.c: New file.
52056         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52057          Declare.
52058         (RAND_MAX): Define.
52059         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52060         * modules/stdlib: Substitute them, too.
52061         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52062         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52063         * doc/glibc-functions/random_r.texi: Likewise.
52064         * doc/glibc-functions/setstate_r.texi: Likewise.
52065         * doc/glibc-functions/srandom_r.texi: Likewise.
52066         * config/srclist.txt: Mention it.
52067
52068 2008-10-23  David Lutterkort  <lutter@redhat.com>
52069
52070         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52071         link requirement
52072
52073 2008-10-23  Jim Meyering  <meyering@redhat.com>
52074
52075         selinux-h: mark parameters of stub functions as intentionally unused
52076         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52077         * lib/se-context.in.h: Likewise.
52078
52079 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52080
52081         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52082
52083 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52084
52085         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52086
52087 2008-10-22  Eric Blake  <ebb9@byu.net>
52088
52089         glthread/thread: avoid compiler warning
52090         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52091         Add unreachable abort to silence compiler.
52092
52093 2008-10-22  Eric Blake  <ebb9@byu.net>
52094
52095         netdb: also supply struct addrinfo for cygwin 1.5.x
52096         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52097         older cygwin.
52098         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52099         cygwin.
52100         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52101
52102 2008-10-22  Bruno Haible  <bruno@clisp.org>
52103
52104         * users.txt: Update entry about pspp.
52105
52106 2008-10-21  Bruno Haible  <bruno@clisp.org>
52107
52108         Simplification.
52109         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52110         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52111
52112         Simplification.
52113         * lib/ioctl.c (ioctl): Don't undefine.
52114         * lib/socket.c (socket): Don't undefine.
52115
52116         Remove unused module indicator macros.
52117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52118         GNULIB_$1 as a C macro.
52119
52120         * doc/posix-functions/close.texi: Undo last change.
52121         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52122         Windows platforms.
52123
52124 2008-10-21  Bruno Haible  <bruno@clisp.org>
52125
52126         Add gethostname() declaration to <unistd.h>.
52127         * lib/unistd.in.h (gethostname): New declaration.
52128         * lib/gethostname.c: Include <unistd.h>.
52129         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52130         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52132         and HAVE_GETHOSTNAME.
52133         * modules/gethostname (Depends-on): Add unistd.
52134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52135         (Include): Specify <unistd.h>.
52136         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52137         HAVE_GETHOSTNAME.
52138         * tests/test-gethostname.c: Include <unistd.h> first.
52139
52140 2008-10-21  Bruno Haible  <bruno@clisp.org>
52141
52142         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52143         * modules/select-tests (Depends-on): Likewise.
52144         Reported by Simon Josefsson.
52145
52146 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52147
52148         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52149         * lib/accept.c: New file, based on winsock.c.
52150         * lib/bind.c: New file, based on winsock.c.
52151         * lib/connect.c: New file, based on winsock.c.
52152         * lib/getpeername.c: New file, based on winsock.c.
52153         * lib/getsockname.c: New file, based on winsock.c.
52154         * lib/getsockopt.c: New file, based on winsock.c.
52155         * lib/ioctl.c: New file, based on winsock.c.
52156         * lib/listen.c: New file, based on winsock.c.
52157         * lib/recv.c: New file, based on winsock.c.
52158         * lib/recvfrom.c: New file, based on winsock.c.
52159         * lib/send.c: New file, based on winsock.c.
52160         * lib/sendto.c: New file, based on winsock.c.
52161         * lib/setsockopt.c: New file, based on winsock.c.
52162         * lib/shutdown.c: New file, based on winsock.c.
52163         * lib/socket.c: New file, based on winsock.c.
52164         * lib/w32sock.h: New file, based on winsock.c.
52165         * lib/winsock.c: Remove file.
52166         * modules/accept: Likewise.
52167         * modules/bind: Likewise.
52168         * modules/connect: Likewise.
52169         * modules/getpeername: Likewise.
52170         * modules/getsockname: Likewise.
52171         * modules/getsockopt: Likewise.
52172         * modules/ioctl: Likewise.
52173         * modules/listen: Likewise.
52174         * modules/recv: Likewise.
52175         * modules/recvfrom: Likewise.
52176         * modules/send: Likewise.
52177         * modules/sendto: Likewise.
52178         * modules/setsockopt: Likewise.
52179         * modules/shutdown: Likewise.
52180         * modules/socket: Use socket.c instead of winsock.c.
52181         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52182         * doc/posix-functions/accept.texi: Doc fix.
52183         * doc/posix-functions/bind.texi: Doc fix.
52184         * doc/posix-functions/close.texi: Doc fix.
52185         * doc/posix-functions/connect.texi: Doc fix.
52186         * doc/posix-functions/getpeername.texi: Doc fix.
52187         * doc/posix-functions/getsockname.texi: Doc fix.
52188         * doc/posix-functions/getsockopt.texi: Doc fix.
52189         * doc/posix-functions/ioctl.texi: Doc fix.
52190         * doc/posix-functions/listen.texi: Doc fix.
52191         * doc/posix-functions/recv.texi: Doc fix.
52192         * doc/posix-functions/recvfrom.texi: Doc fix.
52193         * doc/posix-functions/send.texi: Doc fix.
52194         * doc/posix-functions/sendto.texi: Doc fix.
52195         * doc/posix-functions/setsockopt.texi: Doc fix.
52196         * doc/posix-functions/shutdown.texi: Doc fix.
52197         * doc/posix-functions/socket.texi: Doc fix.
52198
52199 2008-10-20  Bruno Haible  <bruno@clisp.org>
52200
52201         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52202         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52203         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52204         as an alias for SIGABRT.
52205         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52206         (sigaction): Map it to SIGABRT.
52207         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52208
52209 2008-10-20  Bruno Haible  <bruno@clisp.org>
52210
52211         * lib/fts.c: Don't include lstat.h.
52212         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52213
52214         Move the lstat() declaration to <sys/stat.h>.
52215         * lib/lstat.h: Remove file.
52216         * lib/sys_stat.in.h: Add special invocation convention.
52217         (lstat): New declaration.
52218         * lib/lstat.c (orig_lstat): New function.
52219         (rpl_lstat): Use orig_lstat instead of lstat.
52220         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52221         AC_C_INLINE. Set REPLACE_LSTAT.
52222         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52223         and REPLACE_LSTAT.
52224         * modules/lstat (Files): Remove lib/lstat.h.
52225         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52226         (Include): Specify <sys/stat.h> instead of lstat.h.
52227         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52228         REPLACE_LSTAT.
52229         * NEWS: Mention the change.
52230
52231 2008-10-20  Bruno Haible  <bruno@clisp.org>
52232
52233         * modules/posix_spawn-tests: New file.
52234         * tests/test-posix_spawn3.c: New file.
52235
52236 2008-10-20  Bruno Haible  <bruno@clisp.org>
52237
52238         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52239         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52240         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52241         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52242         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52243
52244 2008-10-20  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52247         of posix_spawn on AIX 5.3.
52248
52249 2008-10-20  Bruno Haible  <bruno@clisp.org>
52250
52251         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52252
52253 2008-10-20  Bruno Haible  <bruno@clisp.org>
52254
52255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52256         of AC_LANG_PROGRAM.
52257
52258 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52259
52260         * lib/netdb.in.h: Don't define GNU specific constants until they
52261         are supported or needed.  Reported by Bruno Haible
52262         <bruno@clisp.org>.
52263
52264 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52265
52266         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52267
52268 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52269
52270         * lib/getaddrinfo.h: Remove file.
52271         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52272         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52273         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52274         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52275         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52276         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52277         * tests/test-getaddrinfo.c: Likewise.
52278         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52279         * NEWS: Mention change.
52280
52281 2008-10-19  Bruno Haible  <bruno@clisp.org>
52282
52283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52284
52285 2008-10-19  Bruno Haible  <bruno@clisp.org>
52286
52287         * lib/wait-process.c: Include simply <sys/wait.h>.
52288         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52289         WIFSTOPPED): Remove fallback definitions.
52290         * modules/wait-process (Depends-on): Add sys_wait.
52291
52292         New module 'sys_wait'.
52293         * modules/sys_wait: New file.
52294         * lib/sys_wait.in.h: New file, partially copied from
52295         lib/wait-process.c.
52296         * m4/sys_wait_h.m4: New file.
52297         * doc/posix-headers/sys_wait.texi: Mention the new module.
52298
52299 2008-10-19  Bruno Haible  <bruno@clisp.org>
52300
52301         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52302
52303 2008-10-19  Bruno Haible  <bruno@clisp.org>
52304
52305         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52306         * lib/wait-process.c (WAIT_T): Remove type.
52307         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52308         (wait_subprocess): Update.
52309
52310 2008-10-19  Bruno Haible  <bruno@clisp.org>
52311
52312         New module 'atoll'.
52313         * modules/atoll: New file.
52314         * lib/stdlib.in.h (atoll): New declaration.
52315         * lib/atoll.c: New file, from glibc with modifications.
52316         * m4/atoll.m4: New file.
52317         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52318         HAVE_ATOLL.
52319         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52320         * doc/posix-functions/atoll.texi: Mention the new module.
52321
52322 2008-10-19  Bruno Haible  <bruno@clisp.org>
52323
52324         Add strtoull() declaration to <stdlib.h>.
52325         * lib/stdlib.in.h (strtoull): New declaration.
52326         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52327         Set HAVE_STRTOULL.
52328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52329         HAVE_STRTOULL.
52330         * modules/strtoull (Depends-on): Add stdlib.
52331         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52332         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52333         HAVE_STRTOULL.
52334
52335 2008-10-19  Bruno Haible  <bruno@clisp.org>
52336
52337         Add strtoll() declaration to <stdlib.h>.
52338         * lib/stdlib.in.h (strtoll): New declaration.
52339         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52340         Set HAVE_STRTOLL.
52341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52342         HAVE_STRTOLL.
52343         * modules/strtoll (Depends-on): Add stdlib.
52344         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52345         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52346
52347 2008-10-19  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/bcopy (Depends-on): Add strings.
52350         (Include): Specify <strings.h>.
52351
52352 2008-10-19  Bruno Haible  <bruno@clisp.org>
52353
52354         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52355
52356 2008-10-19  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52359         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52360         mingw.
52361
52362 2008-10-19  Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/atanl.c: Don't include isnanl.h.
52365         * lib/cosl.c: Likewise.
52366         * lib/ldexpl.c: Likewise.
52367         * lib/logl.c: Likewise.
52368         * lib/sinl.c: Likewise.
52369         * lib/sqrtl.c: Likewise.
52370         * lib/tanl.c: Likewise.
52371
52372         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52373         * lib/isnanf.h: Remove file.
52374         * lib/isnand.h: Remove file.
52375         * lib/isnanl.h: Remove file.
52376         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52377         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52378         macros.
52379         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52380         HAVE_ISNANF, don't define it as a C macro.
52381         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52382         HAVE_ISNAND, don't define it as a C macro.
52383         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52384         HAVE_ISNANL, don't define it as a C macro.
52385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52386         HAVE_ISNAN[FDL].
52387         * modules/isnanf (Files): Remove lib/isnanf.h.
52388         (Depends-on): Add math.
52389         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52390         (Include): Specify <math.h> instead of isnanf.h.
52391         * modules/isnand (Files): Remove lib/isnand.h.
52392         (Depends-on): Add math.
52393         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52394         (Include): Specify <math.h> instead of isnand.h.
52395         * modules/isnanl (Files): Remove lib/isnanl.h.
52396         (Depends-on): Add math.
52397         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52398         (Include): Specify <math.h> instead of isnanl.h.
52399         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52400         HAVE_ISNAN[FDL].
52401         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52402         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52403         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52404         * NEWS: Mention the change.
52405
52406 2008-10-18  Bruno Haible  <bruno@clisp.org>
52407
52408         Add getusershell(), setusershell(), endusershell() declarations to
52409         <unistd.h>.
52410         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52411         declarations.
52412         * lib/getusershell.c: Include unistd.h.
52413         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52414         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52415         HAVE_GETUSERSHELL.
52416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52417         and HAVE_GETUSERSHELL.
52418         * modules/getusershell (Depends-on): Add unistd, extensions.
52419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52420         (Include): Specify <unistd.h>.
52421         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52422         HAVE_GETUSERSHELL.
52423
52424 2008-10-18  Bruno Haible  <bruno@clisp.org>
52425
52426         Add a getloadavg() declaration to <stdlib.h>.
52427         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52428         getloadavg declaration.
52429         (getloadavg): New declaration.
52430         * lib/getloadavg.c: Include <stdlib.h> first.
52431         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52432         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52433         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52435         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52436         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52437         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52438         (Include): Specify <stdlib.h>.
52439         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52440         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52441
52442 2008-10-18  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/dirchownmod.c: Don't include lchmod.h.
52445
52446         Move the lchmod() declaration to <sys/stat.h>.
52447         * lib/lchmod.h: Remove file.
52448         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52449         (lchmod): New declaration, moved here from lib/lchown.h.
52450         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52451         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52453         and HAVE_LCHMOD.
52454         * modules/lchmod (Files): Remove lib/lchmod.h.
52455         (Depends-on): Add sys_stat, extensions.
52456         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52457         (Include): Specify <sys/stat.h> instead of lchmod.h.
52458         * modules/sys_stat (Depends-on): Add link-warning.
52459         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52460         definition of GL_LINK_WARNING.
52461         * NEWS: Mention the change.
52462
52463 2008-10-18  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/fchdir.c: Don't include dirfd.h.
52466         * lib/fts.c: Likewise.
52467         * lib/getcwd.c: Likewise.
52468         * lib/glob.c: Likewise.
52469
52470         Move the dirfd() declaration to <dirent.h>.
52471         * lib/dirfd.h: Remove file.
52472         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52473         (dirfd): New declaration.
52474         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52475         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52476         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52477         HAVE_DECL_DIRFD.
52478         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52479         HAVE_DECL_DIRFD.
52480         * modules/dirfd (Files): Remove lib/dirfd.h.
52481         (Depends-on): Add dirent, extensions.
52482         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52483         (Include): Specify <dirent.h> instead of dirfd.h.
52484         * modules/dirent (Depends-on): Add link-warning.
52485         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52486         definition of GL_LINK_WARNING.
52487         * NEWS: Mention the change.
52488
52489 2008-10-18  Bruno Haible  <bruno@clisp.org>
52490
52491         Move the euidaccess() declaration to <unistd.h>.
52492         * lib/euidaccess.h: Remove file.
52493         * lib/unistd.in.h (euidaccess): New declaration.
52494         * lib/euidaccess.c: Don't include euidaccess.h.
52495         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52496         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52498         and HAVE_EUIDACCESS.
52499         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52500         (Depends-on): Add unistd.
52501         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52502         (Include): Specify <unistd.h> instead of euidaccess.h.
52503         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52504         HAVE_EUIDACCESS.
52505         * NEWS: Mention the change.
52506
52507 2008-10-18  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52510
52511         Move the getdomainname() declaration to <unistd.h>.
52512         * lib/getdomainname.h: Remove file.
52513         * lib/unistd.in.h (getdomainname): New declaration.
52514         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52515         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52516         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52517         HAVE_GETDOMAINNAME.
52518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52519         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52520         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52521         (Depends-on): Add unistd, extensions.
52522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52523         (Includes): Specify <unistd.h> instead of getdomainname.h.
52524         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52525         HAVE_GETDOMAINNAME.
52526         * NEWS: Mention the change.
52527
52528 2008-10-18  Bruno Haible  <bruno@clisp.org>
52529
52530         * modules/dirent: New file.
52531         * m4/dirent_h.m4: New file.
52532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52533         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52534         * modules/fchdir (Files): Remove lib/dirent.in.h.
52535         (Depends-on): Add dirent.
52536         (Makefile.am): Move rules to modules/dirent.
52537         * doc/posix-headers/dirent.texi: Mention the new module.
52538
52539 2008-10-18  Bruno Haible  <bruno@clisp.org>
52540
52541         Avoid -Wunused-parameter warnings in public gnulib header files.
52542         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52543         macro.
52544         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52545
52546 2008-10-18  Bruno Haible  <bruno@clisp.org>
52547
52548         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52549         * doc/glibc-functions/error.texi: Mention the module 'error'.
52550         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52551         * doc/glibc-functions/getdomainname.texi: Mention the module
52552         'getdomainname'.
52553         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52554         * doc/glibc-functions/getpagesize.texi: Mention the module
52555         'getpagesize'.
52556         * doc/glibc-functions/getusershell.texi: Mention the module
52557         'getusershell'.
52558         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52559         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52560         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52561         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52562         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52563         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52564         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52565         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52566         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52567         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52568         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52569         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52570         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52571         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52572
52573 2008-10-17  Bruno Haible  <bruno@clisp.org>
52574
52575         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52576         HP-UX and IRIX, use -0.0L.
52577         * tests/test-ceill.c (minus_zero): Likewise.
52578         * tests/test-floorl.c (minus_zero): Likewise.
52579         * tests/test-frexpl.c (minus_zero): Likewise.
52580         * tests/test-isnan.c (minus_zerol): Likewise.
52581         * tests/test-isnanl.h (minus_zero): Likewise.
52582         * tests/test-ldexpl.c (minus_zero): Likewise.
52583         * tests/test-roundl.c (minus_zero): Likewise.
52584         * tests/test-signbit.c (minus_zerol): Likewise.
52585         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52586         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52587         * tests/test-truncl.c (minus_zero): Likewise.
52588         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52589         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52590         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52591         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52592
52593 2008-10-17  Bruno Haible  <bruno@clisp.org>
52594
52595         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52596         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52597         that it gets activated only for gcc >= 3.0.
52598         * lib/dirent.in.h: Likewise.
52599         * lib/errno.in.h: Likewise.
52600         * lib/fcntl.in.h: Likewise.
52601         * lib/float.in.h: Likewise.
52602         * lib/iconv.in.h: Likewise.
52603         * lib/inttypes.in.h: Likewise.
52604         * lib/locale.in.h: Likewise.
52605         * lib/math.in.h: Likewise.
52606         * lib/netdb.in.h: Likewise.
52607         * lib/netinet_in.in.h: Likewise.
52608         * lib/search.in.h: Likewise.
52609         * lib/signal.in.h: Likewise.
52610         * lib/spawn.in.h: Likewise.
52611         * lib/stdarg.in.h: Likewise.
52612         * lib/stdint.in.h: Likewise.
52613         * lib/stdio.in.h: Likewise.
52614         * lib/stdlib.in.h: Likewise.
52615         * lib/string.in.h: Likewise.
52616         * lib/strings.in.h: Likewise.
52617         * lib/sys_file.in.h: Likewise.
52618         * lib/sys_ioctl.in.h: Likewise.
52619         * lib/sys_select.in.h: Likewise.
52620         * lib/sys_socket.in.h: Likewise.
52621         * lib/sys_stat.in.h: Likewise.
52622         * lib/sys_time.in.h: Likewise.
52623         * lib/sysexits.in.h: Likewise.
52624         * lib/time.in.h: Likewise.
52625         * lib/unistd.in.h: Likewise.
52626         * lib/wchar.in.h: Likewise.
52627         * lib/wctype.in.h: Likewise.
52628         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52629
52630 2008-10-17  Jim Meyering  <meyering@redhat.com>
52631
52632         ignore-value: don't depend on inline module
52633         * modules/ignore-value (Depends-on): Remove 'inline'.
52634         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52635         Suggestion from Bruno Haible.
52636
52637 2008-10-17  Bruno Haible  <bruno@clisp.org>
52638
52639         New implementation of condition variables for Win32.
52640         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52641         (gl_linked_waitqueue_t): New type.
52642         (gl_cond_t): Use it.
52643         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52644         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52645         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52646         (glthread_cond_init_func, glthread_cond_wait_func,
52647         glthread_cond_timedwait_func, glthread_cond_signal_func,
52648         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52649         Reimplemented on the basis of gl_linked_waitqueue_t.
52650         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52651         gl_waitqueue_t.
52652         (gl_rwlock_t): Update.
52653         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52654
52655 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52656
52657         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52658         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52659
52660 2008-10-17  Jim Meyering  <meyering@redhat.com>
52661
52662         ignore-value: new module
52663         * modules/ignore-value: New file.
52664         * lib/ignore-value.h: New file.
52665         * MODULES.html.sh (Compiler warning management): New section,
52666         just for this module.  More to come.
52667
52668 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52669
52670         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52671         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52672         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52673
52674 2008-10-16  Jim Meyering  <meyering@redhat.com>
52675
52676         openat-die.c: avoid 'no previous prototype' warning
52677         * lib/openat-die.c: Include "openat.h".
52678         Reported by Reuben Thomas <rrt@sc3d.org>.
52679
52680 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52681
52682         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52683         * lib/netdb.in.h: Fix typo.
52684         Reported by Bruno Haible  <bruno@clisp.org>
52685
52686         * lib/netdb.in.h: Include sys/socket.h for platforms without
52687         netdb.h, to get structures like hostent on MinGW.
52688         * modules/netdb (Depends-on): Add sys_socket.
52689
52690 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52691
52692         * modules/netdb, modules/netdb-tests: New file.
52693         * m4/netdb_h.m4: New file.
52694         * lib/netdb.in.h: Add, currently just an empty file pending
52695         definitions.
52696         * tests/test-netdb.c: New file.
52697         * doc/posix-headers/netdb.texi: Mention that we replace it if
52698         needed.
52699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52700         netdb.
52701
52702 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52703
52704         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52705         with code.
52706
52707 2008-10-13  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/glthread/cond.c (glthread_cond_wait_func,
52710         glthread_cond_timedwait_func): Add a comment.
52711
52712 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52713
52714         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52715         * tests/test-select.c: Likewise,
52716
52717 2008-10-13  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/glthread/cond.c (glthread_cond_wait_func,
52720         glthread_cond_timedwait_func): Fix variable name.
52721         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52722
52723 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52724
52725         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52727         struct sockaddr.sa_len.
52728         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52729
52730 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52731
52732         * build-aux/pmccabe2html: Add css and css_url parameters.
52733
52734 2008-10-12  Bruno Haible  <bruno@clisp.org>
52735
52736         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52737         calling aclx_get.
52738         Reported by Rainer Tammer <tammer@tammer.net>.
52739
52740 2008-10-12  Bruno Haible  <bruno@clisp.org>
52741
52742         Use msvcrt aware primitives for creation/termination of Win32 threads.
52743         * lib/glthread/thread.c: Include <process.h>.
52744         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52745         (wrapper_func): Update signature.
52746         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52747
52748 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52749             Bruno Haible  <bruno@clisp.org>
52750
52751         Provide a Win32 implementation of the 'cond' module.
52752         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52753         * lib/glthread/cond.c (glthread_cond_init_func,
52754         glthread_cond_wait_func, glthread_cond_timedwait_func,
52755         glthread_cond_signal_func, glthread_cond_broadcast_func,
52756         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52757         * modules/cond (Dependencies): Add gettimeofday.
52758
52759 2008-10-11  Bruno Haible  <bruno@clisp.org>
52760
52761         Make sleep work on older versions of mingw.
52762         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52763         only whether it exists.
52764         * doc/posix-functions/sleep.texi: Mention the problem with older
52765         versions of mingw.
52766
52767 2008-10-11  Bruno Haible  <bruno@clisp.org>
52768
52769         New module 'shutdown'.
52770         * modules/shutdown: New file.
52771         * lib/sys_socket.in.h (shutdown): New declaration.
52772         * lib/winsock.c (shutdown): New function.
52773         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52774         GNULIB_SHUTDOWN.
52775         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52776         * doc/posix-functions/shutdown.texi: Document the new module.
52777
52778 2008-10-11  Jim Meyering  <meyering@redhat.com>
52779
52780         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52781
52782 2008-10-11  Bruno Haible  <bruno@clisp.org>
52783
52784         New module 'fclose'.
52785         * modules/fclose: New file.
52786         * lib/stdio.in.h (fclose): New declaration.
52787         * lib/fclose.c: New file.
52788         * m4/fclose.m4: New file.
52789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52790         REPLACE_FCLOSE.
52791         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52792         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52793         REPLACE_FCLOSE.
52794         * modules/close (Depends-on): fclose.
52795         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52796
52797 2008-10-11  Bruno Haible  <bruno@clisp.org>
52798
52799         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52800         set errno and don't call _close.
52801
52802 2008-10-10  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52805         ACL, not afterwards. Fixes test failure on Cygwin.
52806
52807 2008-10-09  Ben Pfaff  <blp@gnu.org>
52808
52809         * build-aux/announce-gen: Fix gnulib version related part of usage
52810         message.  Die with a useful error message if no tarballs are
52811         found.
52812
52813 2008-10-10  Jim Meyering  <meyering@redhat.com>
52814
52815         bootstrap: use git's --depth=N option only if it's supported
52816         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52817         recognize the --depth option.  Reported by Pádraig Brady.
52818
52819 2008-10-09  Bruno Haible  <bruno@clisp.org>
52820
52821         New module 'ioctl'.
52822         * modules/ioctl: New file.
52823         * lib/sys_socket.in.h (ioctl): Remove declaration.
52824         * lib/winsock.c: Include <sys/ioctl.h>.
52825         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
52826         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52827         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
52828         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
52829         * doc/posix-functions/ioctl.texi: Mention the new module.
52830
52831 2008-10-09  Bruno Haible  <bruno@clisp.org>
52832
52833         New module 'sys_ioctl'.
52834         * lib/sys_ioctl.in.h: New file.
52835         * m4/sys_ioctl_h.m4: New file.
52836         * modules/sys_ioctl: New file.
52837         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
52838
52839 2008-10-09  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
52842         * lib/winsock.c: Include <stdarg.h>.
52843         (rpl_ioctl): Change to second argument 'int' and then varargs.
52844
52845 2008-10-09  Bruno Haible  <bruno@clisp.org>
52846
52847         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
52848         when the sys_socket module is present and the system has <winsock2.h>.
52849
52850 2008-10-09  Bruno Haible  <bruno@clisp.org>
52851
52852         * doc/posix-functions/close.texi: Mention module 'close' instead of
52853         module 'sys_socket'.
52854
52855 2008-10-09  Bruno Haible  <bruno@clisp.org>
52856
52857         * doc/glibc-headers/sys_ioctl.texi: New file.
52858         * doc/gnulib.texi: Include it.
52859
52860 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52861             Bruno Haible  <bruno@clisp.org>
52862
52863         Combine the two replacements of 'close'.
52864         * lib/sys_socket.in.h (close): Define to a reminder to include
52865         <unistd.h>.
52866         (_gl_close_fd_maybe_socket): New declaration.
52867         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
52868         * lib/winsock.c (close): Remove undefinition.
52869         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
52870         needed for the gnulib module 'close'.
52871         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
52872         define to an error symbol or to a warning, if suitable.
52873         * lib/close.c: Include <sys/socket.h>.
52874         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
52875         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
52876         UNISTD_H_HAVE_WINSOCK2_H.
52877         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
52878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52879         UNISTD_H_HAVE_WINSOCK2_H.
52880         * modules/sys_socket (Files): Add m4/unistd_h.m4.
52881         (configure.ac): Set a module indicator.
52882         (Makefile.am): Substitute GNULIB_CLOSE.
52883         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
52884         * modules/poll-tests (Depends-on): Add close.
52885         * modules/select-tests (Depends-on): Likewise.
52886
52887 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52888             Bruno Haible  <bruno@clisp.org>
52889
52890         New module 'close'.
52891         * modules/close: New file.
52892         * lib/unistd.in.h (close): Move declaration out of the
52893         FCHDIR_REPLACEMENT scope.
52894         (_gl_unregister_fd): New declaration.
52895         * lib/close.c: New file.
52896         * lib/fchdir.c (rpl_close): Remove function.
52897         * m4/close.m4: New file.
52898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52899         close.
52900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
52901         REPLACE_CLOSE.
52902         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
52903         REPLACE_CLOSE.
52904         * modules/fchdir (Depends-on): Add close.
52905
52906 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52907             Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/fcntl.in.h (open): Simplify conditionals.
52910         (_gl_register_fd): New declaration.
52911         * lib/fchdir.c (rpl_open): Remove function.
52912         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
52913         also.
52914         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
52915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
52916         open.
52917
52918 2008-10-09  Jim Meyering  <meyering@redhat.com>
52919
52920         GNUmakefile: use the more name-space-friendly "_version"
52921         * top/GNUmakefile (_dummy): Update.
52922         (_version): Rename from "version".
52923
52924 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52925             Bruno Haible  <bruno@clisp.org>
52926
52927         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
52928         rpl_close.
52929         (_gl_register_fd): New function, extracted from rpl_open.
52930         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
52931         (rpl_open, rpl_opendir): Use _gl_register_fd.
52932
52933 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
52934
52935         Fix organization of 'open' replacement.
52936         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
52937         (gl_FUNC_OPEN): Use it.
52938         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
52939
52940 2008-10-08  Bruno Haible  <bruno@clisp.org>
52941
52942         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
52943
52944 2008-10-08  Simon Josefsson  <simon@josefsson.org>
52945
52946         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
52947         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
52948         listen).
52949
52950 2008-10-08  Eric Blake  <ebb9@byu.net>
52951
52952         GNUmakefile: add 'make version' target
52953         * top/GNUmakefile (_curr-ver): Split version update rules...
52954         (version): ...into a target.
52955
52956 2008-10-07  Bruno Haible  <bruno@clisp.org>
52957
52958         Use a more portable replacement expression for -0.0L.
52959         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52960         instead of -0.0L. Fix m4 quotation.
52961
52962         * tests/test-signbit.c: Include <float.h>.
52963         (minus_zero): New variable.
52964         (test_signbitl): Use minus_zero instead of -zero.
52965         * modules/signbit-tests (Depends-on): Add float.
52966
52967         * tests/test-ceill.c: Include <float.h>.
52968         (zero): Remove variable.
52969         (minus_zero): New variable.
52970         (main): Use minus_zero instead of -zero.
52971         * modules/ceill-tests (Depends-on): Add float.
52972
52973         * tests/test-floorl.c: Include <float.h>.
52974         (zero): Remove variable.
52975         (minus_zero): New variable.
52976         (main): Use minus_zero instead of -zero.
52977         * modules/floorl-tests (Depends-on): Add float.
52978
52979         * tests/test-roundl.c: Include <float.h>.
52980         (zero): Remove variable.
52981         (minus_zero): New variable.
52982         (main): Use minus_zero instead of -zero.
52983         * modules/roundl-tests (Depends-on): Add float.
52984
52985         * tests/test-truncl.c: Include <float.h>.
52986         (zero): Remove variable.
52987         (minus_zero): New variable.
52988         (main): Use minus_zero instead of -zero.
52989         * modules/truncl-tests (Depends-on): Add float.
52990
52991         * tests/test-frexpl.c (zero): Remove variable.
52992         (minus_zero): New variable.
52993         (main): Use minus_zero instead of -zero.
52994         * modules/frexpl-tests (Depends-on): Add float.
52995
52996         * tests/test-isnan.c (zerol): Remove variable.
52997         (minus_zerol): New variable.
52998         (test_long_double): Use minus_zerol instead of -zerol.
52999         * modules/isnan-tests (Depends-on): Add float.
53000
53001         * tests/test-isnanl.h (zero): Remove variable.
53002         (minus_zero): New variable.
53003         (main): Use minus_zero instead of -zero.
53004         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53005         * modules/isnanl-tests (Depends-on): Add float.
53006
53007         * tests/test-ldexpl.c (zero): Remove variable.
53008         (minus_zero): New variable.
53009         (main): Use minus_zero instead of -zero.
53010         * modules/ldexpl-tests (Depends-on): Add float.
53011
53012         * tests/test-snprintf-posix.h (zerol): Remove variable.
53013         (minus_zerol): New variable.
53014         (test_function): Use minus_zerol instead of -zerol.
53015         * modules/snprintf-posix-tests (Depends-on): Add float.
53016         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53017
53018         * tests/test-sprintf-posix.h (zerol): Remove variable.
53019         (minus_zerol): New variable.
53020         (test_function): Use minus_zerol instead of -zerol.
53021         * modules/sprintf-posix-tests (Depends-on): Add float.
53022         * modules/vsprintf-posix-tests (Depends-on): Add float.
53023
53024         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53025         (minus_zerol): New variable.
53026         (test_function): Use minus_zerol instead of -zerol.
53027         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53028
53029         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53030         (minus_zerol): New variable.
53031         (test_function): Use minus_zerol instead of -zerol.
53032         * modules/vasprintf-posix-tests (Depends-on): Add float.
53033
53034 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53035
53036         * MODULES.html.sh (Support for building documentation): Mention
53037         pmccabe2html.  Sort entries.
53038
53039         Add pmccabe2html module, from gnupdf.
53040         * build-aux/pmccabe.css: New file.
53041         * build-aux/pmccabe2html: New file.
53042         * m4/pmccabe2html.m4: New file.
53043         * modules/pmccabe2html: New file.
53044
53045 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53046
53047         flock: new module
53048         * MODULES.html.sh: Add to list of modules.
53049         * lib/flock.c: flock implementation for Windows and Unix systems
53050         which have fcntl.
53051         * doc/glibc-functions/flock.texi: Update documentation.
53052         * lib/sys_file.in.h: <sys/file.h> header file.
53053         * m4/flock.m4: M4 macros.
53054         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53055         * modules/flock: flock module.
53056         * modules/flock-tests: flock tests module.
53057         * modules/sys_file: sys/file.h module.
53058         * tests/test-flock.c: test suite for flock.
53059
53060 2008-10-06  Jim Meyering  <meyering@redhat.com>
53061
53062         bootstrap: check for LT_INIT more portably still ;-)
53063         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53064         Spotted by Bruno Haible.
53065
53066 2008-10-06  Eric Blake  <ebb9@byu.net>
53067
53068         test-signbit: avoid tripping Irix cc bug on -0.0L
53069         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53070         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53071         entire testsuite consistent and avoids an Irix 6.2 bug.
53072
53073 2008-10-05  Bruno Haible  <bruno@clisp.org>
53074             Jim Meyering  <jim@meyering.net>
53075
53076         Add an option for ignoring EPIPE during close_stdout.
53077         * lib/closeout.h: Include <stdbool.h>.
53078         (close_stdout_set_ignore_EPIPE): New declaration.
53079         * lib/closeout.c: Include <stdbool.h>.
53080         (ignore_EPIPE): New variable.
53081         (close_stdout_set_ignore_EPIPE): New function.
53082         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53083         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53084         failure.
53085         * modules/closeout (Depends-on): Add stdbool.
53086
53087 2008-10-05  Bruno Haible  <bruno@clisp.org>
53088
53089         * modules/accept: New file.
53090         * modules/bind: New file.
53091         * modules/connect: New file.
53092         * modules/getpeername: New file.
53093         * modules/getsockname: New file.
53094         * modules/getsockopt: New file.
53095         * modules/listen: New file.
53096         * modules/recv: New file.
53097         * modules/recvfrom: New file.
53098         * modules/send: New file.
53099         * modules/sendto: New file.
53100         * modules/setsockopt: New file.
53101         * modules/socket: New file.
53102         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53103         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53104         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53105         the particular module is requested. Add a link warning when the
53106         particular module is not requested.
53107         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53108         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53109         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53110         the particular module is requested.
53111         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53112         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53113         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53114         * modules/sys_socket (Depends-on): Add link-warning.
53115         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53116         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53117         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53118         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53119         GL_LINK_WARNING.
53120         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53121         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53122         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53123         * doc/posix-functions/getpeername.texi: Mention the new module
53124         'getpeername'.
53125         * doc/posix-functions/getsockname.texi: Mention the new module
53126         'getsockname'.
53127         * doc/posix-functions/getsockopt.texi: Mention the new module
53128         'getsockopt'.
53129         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53130         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53131         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53132         * doc/posix-functions/send.texi: Mention the new module 'send'.
53133         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53134         * doc/posix-functions/setsockopt.texi: Mention the new module
53135         'setsockopt'.
53136         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53137         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53138         listen, connect, accept.
53139         * modules/select-tests (Depends-on): Likewise.
53140
53141 2008-10-05  Bruno Haible  <bruno@clisp.org>
53142
53143         * lib/winsock.c (strerror): Remove unused #undef.
53144         (rpl_close): Remove unused local variable.
53145
53146         * modules/sys_socket (Depends-on); Add errno.
53147
53148 2008-10-05  Bruno Haible  <bruno@clisp.org>
53149
53150         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53151         (select): Add a link warning when the 'select' module is not used.
53152         * modules/sys_select (Depends-on): Add link-warning.
53153         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53154         Suggested by Paolo Bonzini.
53155
53156 2008-10-05  Jim Meyering  <meyering@redhat.com>
53157
53158         bootstrap: check for LT_INIT more portably
53159         * build-aux/bootstrap: Avoid using grep -E, since it's not
53160         portable enough.  Suggestion from Bruno Haible.
53161
53162 2008-10-05  Bruno Haible  <bruno@clisp.org>
53163
53164         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53165         as being fixed by gnulib.
53166
53167 2008-10-05  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/select-tests: New file, mostly copied from
53170         modules/sys_select-tests.
53171         * tests/test-select.c: New file, mostly copied from
53172         tests/test-sys_select.c.
53173         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53174         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53175         (Makefile.am): Remove test_sys_select_LDADD.
53176
53177         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53178         to an undefined symbol, for an error message.
53179         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53180         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53181         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53182         winsock-select.c here.
53183         * modules/sys_select (Files): Remove lib/winsock-select.c.
53184         (Depends-on): Remove alloca.
53185         (Makefile.am): Substitute GNULIB_SELECT.
53186         * modules/select: New file.
53187         * doc/posix-functions/select.texi: Update.
53188
53189 2008-10-05  Bruno Haible  <bruno@clisp.org>
53190
53191         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53192         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53193         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53194         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53195         getdtablesize.
53196         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53197         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53198
53199 2008-10-05  Bruno Haible  <bruno@clisp.org>
53200
53201         * modules/getdtablesize-tests: New file.
53202         * tests/test-getdtablesize.c: New file.
53203
53204         New module 'getdtablesize'.
53205         * lib/unistd.in.h (getdtablesize): New declaration.
53206         * lib/getdtablesize.c: New file.
53207         * m4/getdtablesize.m4: New file.
53208         * modules/getdtablesize: New file.
53209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53210         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53211         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53212         HAVE_GETDTABLESIZE.
53213         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53214
53215 2008-10-05  Bruno Haible  <bruno@clisp.org>
53216
53217         * modules/sched (Makefile.am): Fix typo.
53218         Reported by Simon Josefsson.
53219
53220 2008-10-05  Jim Meyering  <meyering@redhat.com>
53221
53222         bootstrap: check for LT_INIT, too
53223         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53224         are deprecated.  Suggestion from Ralf Wildenhues.
53225
53226 2008-10-05  Bruno Haible  <bruno@clisp.org>
53227
53228         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53229         overriding them by ours.
53230         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53231
53232 2008-10-05  Jim Meyering  <meyering@redhat.com>
53233
53234         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53235         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53236         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53237
53238 2008-10-04  Bruno Haible  <bruno@clisp.org>
53239
53240         * modules/dup2 (License): Change to LGPLv2+.
53241         * modules/sleep (License): Likewise.
53242         * modules/perror (License): Likewise.
53243         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53244         Blake.
53245         * modules/signal (License): Likewise.
53246         * modules/sigprocmask (License): Likewise.
53247         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53248         Meyering.
53249
53250 2008-10-04  Bruno Haible  <bruno@clisp.org>
53251
53252         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53253         Reported by Rainer Tammer <tammer@tammer.net>.
53254
53255 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53256             Bruno Haible  <bruno@clisp.org>
53257
53258         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53259         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53260         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53261
53262 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53263
53264         filevercmp: new module
53265         * lib/filevercmp.h: New function filevercmp comparing version strings.
53266         * lib/filevercmp.c: Implementation of filevercmp function.
53267         * modules/filevercmp: Module metadata.
53268         * tests/test-filevercmp.c: Unit test for new module.
53269         * modules/filevercmp-tests: Unit test metadata.
53270         * MODULES.html.sh: Add filevercmp module.
53271
53272 2008-10-03  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/c-ctype.h: Add comment.
53275         Reported by Jim Meyering.
53276
53277 2008-10-02  Bruno Haible  <bruno@clisp.org>
53278
53279         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53280
53281 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53282
53283         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53284         name of bootstrap.conf accordingly.
53285
53286 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53287
53288         * build-aux/bootstrap: Install git-merge-changelog configuration
53289         items into .gitconfig if needed.
53290
53291 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53292
53293         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53294         git repository, and initialize/update it accordingly.
53295
53296 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53297
53298         * modules/fsync-tests: New file.
53299         * tests/test-fsync.c: New file.
53300
53301         New module 'fsync'.
53302         * lib/fsync.c: New file.
53303         * m4/fsync.m4: New file.
53304         * modules/fsync: New file.
53305         * lib/unistd.in.h (fsync): New declaration.
53306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53307         GNULIB_FSYNC and HAVE_FSYNC.
53308         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53309         * MODULES.html.sh (posix_functions): Add fsync.
53310         * doc/posix-functions/fsync.texi: Mention the new module.
53311
53312 2008-10-02  Jim Meyering  <meyering@redhat.com>
53313
53314         fts.c: sync with similar code from coreutils' remove.c
53315         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53316         Guard also with "#if defined __linux__", since for now at least,
53317         this code is Linux-kernel-specific.
53318
53319 2008-10-02  Jim Meyering  <meyering@redhat.com>
53320
53321         fts: bug fixes
53322         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53323         Include <sys/vfs.h>, not <sys/statfs.h>.
53324
53325         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53326         Include <sys/vfs.h>, not <sys/statfs.h>.
53327
53328 2008-10-01  Bruno Haible  <bruno@clisp.org>
53329
53330         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53331         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53332         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53333         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53334         * doc/posix-functions/posix_spawnp.texi: Likewise.
53335         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53336         whether posix_spawn actually works.
53337         * m4/pipe.m4 (gl_PIPE): Likewise.
53338         * modules/execute (Files): Add m4/posix_spawn.m4.
53339         * modules/pipe (Files): Add m4/posix_spawn.m4.
53340         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53341
53342 2008-10-01  Jim Meyering  <meyering@redhat.com>
53343
53344         remove trailing spaces
53345         * NEWS: Likewise.
53346         * lib/poll.c (poll): Likewise.
53347         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53348         * lib/winsock.c (rpl_close): Likewise.
53349         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53350         * modules/yield: Likewise.
53351         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53352         * tests/test-sys_select.c (connect_to_socket): Likewise.
53353
53354         fts.c: adjust a new interface to be more generally useful
53355         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53356         (fts_build): Adjust caller.
53357
53358 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53359
53360         * modules/cond-tests: New file.
53361         * tests/test-cond.c: New file.
53362
53363 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53364             Bruno Haible  <bruno@clisp.org>
53365
53366         * modules/cond (Dependencies): Add errno, time.
53367         * lib/glthread/cond.h: Include <time.h>.
53368         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53369         across platforms.
53370
53371 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53372             Bruno Haible  <bruno@clisp.org>
53373
53374         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53375
53376 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53377             Bruno Haible  <bruno@clisp.org>
53378
53379         * modules/tls-tests (Depends-on): Add thread, yield.
53380         (configure.ac): Remove all checks.
53381         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53382         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53383         gl_thread_self): Remove definitions. Include glthread/thread.h and
53384         glthread/yield.h instead.
53385         (test_tls): Pass an additional NULL argument to gl_thread_join.
53386
53387 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53388             Bruno Haible  <bruno@clisp.org>
53389
53390         * modules/lock-tests (Depends-on): Add thread, yield.
53391         (configure.ac): Remove all checks.
53392         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53393         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53394         gl_thread_self): Remove definitions. Include glthread/thread.h and
53395         glthread/yield.h instead.
53396         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53397         additional NULL argument to gl_thread_join.
53398
53399 2008-09-30  Bruno Haible  <bruno@clisp.org>
53400
53401         Fix the Win32 implementation of the 'thread' module.
53402         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53403         pointer type.
53404         (gl_thread_self): Invoke gl_thread_self_func.
53405         (gl_thread_self_func): New declaration.
53406         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53407         (do_init_self_key, init_self_key): New functions.
53408         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53409         Remove some fields.
53410         (running_threads, running_lock): Remove variables.
53411         (get_current_thread_handle): New function.
53412         (gl_thread_self_func, wrapper_func, glthread_create_func,
53413         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53414         simplified.
53415
53416 2008-09-30  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53419         files.
53420
53421 2008-09-30  Jim Meyering  <meyering@redhat.com>
53422
53423         fts.m4: correct the test for statfs.f_type
53424         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53425         when checking for statfs.f_type.
53426
53427 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53428
53429         tests: avoid some compiler warnings
53430         * tests/test-memchr.c (main): Pass NULL indirectly.
53431         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53432
53433 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
53434
53435         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53436         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53437         exactly specified dayshifts.
53438         (dayshift): New rule.
53439         (rel): Add dayshift.
53440         (relative_time_table) [tomorrow, yesterday, today, now]:
53441         Use tDAY_SHIFT in place of tDAY_UNIT.
53442         * tests/test-getdate.c: Add tests for now-disallowed countable
53443         dayshifts, e.g., "4 yesterday ago".
53444
53445 2008-09-29  Bruno Haible  <bruno@clisp.org>
53446
53447         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53448         * tests/test-posix_spawn1.in.sh: Renamed from
53449         tests/test-posix_spawn.in.sh.
53450         * tests/test-posix_spawn2.c: New file.
53451         * tests/test-posix_spawn2.in.sh: New file.
53452         * modules/posix_spawnp-tests (Files): Update.
53453         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53454
53455 2008-09-29  Bruno Haible  <bruno@clisp.org>
53456
53457         Propagate effects of putenv/setenv/unsetenv to child processes.
53458         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53459         * lib/pipe.c (create_pipe): Likewise.
53460
53461 2008-09-29  Bruno Haible  <bruno@clisp.org>
53462
53463         Enable use of shell scripts as executables in mingw.
53464         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53465         run the program as a shell script.
53466         * lib/pipe.c (create_pipe): Likewise.
53467         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53468         resulting array.
53469
53470 2008-09-29  Eric Blake  <ebb9@byu.net>
53471
53472         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53473
53474 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53475
53476         * doc/posix-functions/accept.texi: Update mingw problems.
53477         * doc/posix-functions/bind.texi: Update mingw problems.
53478         * doc/posix-functions/close.texi: Update mingw problems.
53479         * doc/posix-functions/connect.texi: Update mingw problems.
53480         * doc/posix-functions/getpeername.texi: Update mingw problems.
53481         * doc/posix-functions/getsockname.texi: Update mingw problems.
53482         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53483         * doc/posix-functions/ioctl.texi: Update mingw problems.
53484         * doc/posix-functions/listen.texi: Update mingw problems.
53485         * doc/posix-functions/recv.texi: Update mingw problems.
53486         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53487         * doc/posix-functions/select.texi: Update mingw problems.
53488         * doc/posix-functions/send.texi: Update mingw problems.
53489         * doc/posix-functions/sendto.texi: Update mingw problems.
53490         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53491         * doc/posix-functions/socket.texi: Update mingw problems.
53492
53493 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53494             Bruno Haible  <bruno@clisp.org>
53495
53496         * lib/sys_select.in.h: Include sys/time.h.
53497         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53498         * modules/sys_select: Depend on sys_time.
53499         * tests/test-sys_select.c: Test that sys/select.h defines struct
53500         timeval fully.
53501
53502 2008-09-29  Bruno Haible  <bruno@clisp.org>
53503
53504         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53505         * lib/sys_select.in.h: Likewise.
53506
53507 2008-09-29  Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53510
53511 2008-09-29  Bruno Haible  <bruno@clisp.org>
53512
53513         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53514         Set LIBSOCKET instead of augmenting LIBS.
53515         * modules/sockets (Link): New section.
53516         * modules/sockets-tests (test_sockets_LDADD): New variable.
53517         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53518         * modules/poll-tests (test_poll_LDADD): New variable.
53519         * NEWS: Document the change.
53520
53521 2008-09-29  Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53524         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53525         ARPA_INET_H directly.
53526         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53527
53528 2008-09-28  Bruno Haible  <bruno@clisp.org>
53529
53530         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53531         from gl_HEADER_SYS_SOCKET.
53532         (gl_HEADER_SYS_SOCKET): Invoke it.
53533         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53534
53535 2008-09-28  Bruno Haible  <bruno@clisp.org>
53536
53537         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53538         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53539         Needed on OSF/1 4.0.
53540
53541 2008-09-28  Bruno Haible  <bruno@clisp.org>
53542
53543         Override open more carefully.
53544         * lib/open.c (orig_open): New function.
53545         (rpl_open): Use orig_open instead of open.
53546         * lib/fcntl.in.h: Add special invocation convention.
53547         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53548         (gl_FUNC_OPEN): Invoke it.
53549
53550         Override freopen more carefully.
53551         * lib/freopen.c (orig_freopen): New function.
53552         (rpl_freopen): Use orig_freopen instead of freopen.
53553         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53554         (gl_FUNC_FREOPEN): Invoke it.
53555
53556         Override fopen more carefully.
53557         * lib/fopen.c (orig_fopen): New function.
53558         (rpl_fopen): Use orig_fopen instead of fopen.
53559         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53560         (gl_FUNC_FOPEN): Invoke it.
53561         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53562
53563 2008-09-28  Bruno Haible  <bruno@clisp.org>
53564
53565         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53566         SIGPIPE.
53567
53568 2008-09-28  Bruno Haible  <bruno@clisp.org>
53569
53570         * tests/test-sigaction.c (handler, main): Disable the check whether
53571         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53572         glibc systems with LinuxThreads.
53573
53574 2008-09-28  Bruno Haible  <bruno@clisp.org>
53575
53576         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53577
53578         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53579         with AIX xlc.
53580         * lib/fcntl.in.h (open): Likewise.
53581         Reported by Rainer Tammer <tammer@tammer.net>.
53582
53583 2008-09-28  Bruno Haible  <bruno@clisp.org>
53584
53585         * modules/posix_spawnp-tests: New file.
53586         * tests/test-posix_spawn.c: New file.
53587         * tests/test-posix_spawn.in.sh: New file.
53588
53589         New module 'posix_spawnp'.
53590         * modules/posix_spawnp: New file.
53591         * lib/spawnp.c: New file, from GNU libc with modifications.
53592         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53593
53594         New module 'posix_spawn'.
53595         * modules/posix_spawn: New file.
53596         * lib/spawn.c: New file, from GNU libc with modifications.
53597         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53598
53599         New module 'posix_spawnattr_destroy'.
53600         * modules/posix_spawnattr_destroy: New file.
53601         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53602         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53603         module.
53604
53605         New module 'posix_spawnattr_setsigmask'.
53606         * modules/posix_spawnattr_setsigmask: New file.
53607         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53608         modifications.
53609         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53610         new module.
53611
53612         New module 'posix_spawnattr_getsigmask'.
53613         * modules/posix_spawnattr_getsigmask: New file.
53614         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53615         modifications.
53616         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53617         new module.
53618
53619         New module 'posix_spawnattr_setsigdefault'.
53620         * modules/posix_spawnattr_setsigdefault: New file.
53621         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53622         modifications.
53623         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53624         new module.
53625
53626         New module 'posix_spawnattr_getsigdefault'.
53627         * modules/posix_spawnattr_getsigdefault: New file.
53628         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53629         modifications.
53630         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53631         new module.
53632
53633         New module 'posix_spawnattr_setschedpolicy'.
53634         * modules/posix_spawnattr_setschedpolicy: New file.
53635         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53636         modifications.
53637         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53638         new module.
53639
53640         New module 'posix_spawnattr_getschedpolicy'.
53641         * modules/posix_spawnattr_getschedpolicy: New file.
53642         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53643         modifications.
53644         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53645         new module.
53646
53647         New module 'posix_spawnattr_setschedparam'.
53648         * modules/posix_spawnattr_setschedparam: New file.
53649         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53650         modifications.
53651         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53652         new module.
53653
53654         New module 'posix_spawnattr_getschedparam'.
53655         * modules/posix_spawnattr_getschedparam: New file.
53656         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53657         modifications.
53658         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53659         new module.
53660
53661         New module 'posix_spawnattr_setpgroup'.
53662         * modules/posix_spawnattr_setpgroup: New file.
53663         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53664         modifications.
53665         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53666         module.
53667
53668         New module 'posix_spawnattr_getpgroup'.
53669         * modules/posix_spawnattr_getpgroup: New file.
53670         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53671         modifications.
53672         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53673         module.
53674
53675         New module 'posix_spawnattr_setflags'.
53676         * modules/posix_spawnattr_setflags: New file.
53677         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53678         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53679         module.
53680
53681         New module 'posix_spawnattr_getflags'.
53682         * modules/posix_spawnattr_getflags: New file.
53683         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53684         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53685         module.
53686
53687         New module 'posix_spawnattr_init'.
53688         * modules/posix_spawnattr_init: New file.
53689         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53690         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53691         module.
53692
53693         New module 'posix_spawn_file_actions_destroy'.
53694         * modules/posix_spawn_file_actions_destroy: New file.
53695         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53696         modifications.
53697         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53698         the new module.
53699
53700         New module 'posix_spawn_file_actions_addopen'.
53701         * modules/posix_spawn_file_actions_addopen: New file.
53702         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53703         modifications.
53704         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53705         the new module.
53706
53707         New module 'posix_spawn_file_actions_adddup2'.
53708         * modules/posix_spawn_file_actions_adddup2: New file.
53709         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53710         modifications.
53711         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53712         the new module.
53713
53714         New module 'posix_spawn_file_actions_addclose'.
53715         * modules/posix_spawn_file_actions_addclose: New file.
53716         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53717         modifications.
53718         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53719         the new module.
53720
53721         New module 'posix_spawn_file_actions_init'.
53722         * modules/posix_spawn_file_actions_init: New file.
53723         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53724         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53725         new module.
53726
53727         New module 'posix_spawn-internal'.
53728         * modules/posix_spawn-internal: New file.
53729         * lib/spawn_int.h: New file, from GNU libc with modifications.
53730         * lib/spawni.c: New file, from GNU libc with modifications.
53731         * m4/posix_spawn.m4: New file.
53732
53733         New module 'spawn'.
53734         * modules/spawn: New file.
53735         * lib/spawn.in.h: New file, from GNU libc with modifications.
53736         * m4/spawn_h.m4: New file.
53737         * doc/posix-headers/spawn.texi: Mention the new module.
53738
53739 2008-09-28  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/sched-tests: New file.
53742         * tests/test-sched.c: New file.
53743
53744         New module 'sched'.
53745         * modules/sched: New file.
53746         * lib/sched.in.h: New file.
53747         * m4/sched_h.m4: New file.
53748         * doc/posix-headers/sched.texi: Mention the new module.
53749
53750 2008-09-27  Eric Blake  <ebb9@byu.net>
53751
53752         Fix previous patch, and tweak references to $0.
53753         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53754         (func_version, func_gnulib_dir): Don't call this program
53755         gnulib-tool.
53756         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53757         with using $0 in function.
53758         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53759         (func_fatal_error): Reuse the name the user invoked us with.
53760
53761 2008-09-27  Bruno Haible  <bruno@clisp.org>
53762
53763         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53764         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53765         (gl_ICONV_H): Not here.
53766         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53767         instead of assigning ICONV_H directly.
53768
53769         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53770         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53771         WCHAR_H directly.
53772
53773 2008-09-27  Bruno Haible  <bruno@clisp.org>
53774
53775         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53776         * modules/arpa_inet (Depends-on): Add link-warning.
53777         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53778         * modules/unistd (Makefile.am): Likewise.
53779
53780 2008-09-26  Bruno Haible  <bruno@clisp.org>
53781
53782         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53783         variables.
53784         (func_version): Essentially copied from gnulib-tool.
53785         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53786         func_readlink): Copied from gnulib-tool.
53787
53788 2008-09-26  Bruno Haible  <bruno@clisp.org>
53789
53790         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53791         invoking git-version-gen.
53792
53793 2008-09-26  Bruno Haible  <bruno@clisp.org>
53794
53795         * posix-modules: Update to directory names changed on 2008-01-19.
53796         Remove commas in output before splitting into words. No more need to
53797         avoid 'ftruncate' since 2007-02-19.
53798
53799 2008-09-26  Bruno Haible  <bruno@clisp.org>
53800
53801         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53802
53803 2008-09-26  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53806         * modules/fwriteerror (Depends-on): Add errno.
53807
53808 2008-09-26  Bruno Haible  <bruno@clisp.org>
53809
53810         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53811         * tests/test-vc-list-files-cvs.sh: Likewise.
53812
53813 2008-09-26  Bruno Haible  <bruno@clisp.org>
53814
53815         * doc/posix-headers/sys_resource.texi: Reorder items.
53816
53817 2008-09-26  Jim Meyering  <meyering@redhat.com>
53818
53819         fts: tweak inode comparison function
53820         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
53821         inode numbers, as documented.
53822
53823         fts: sort dirent entries on inode number before traversing
53824         This avoids a quadratic, seek-related performance penalty when
53825         operating on a directory containing many entries (measurable at 10k;
53826         3.5 hours at 2 million entries with a cold cache) on certain types
53827         of file systems, including ext3 and ext4, but not tmpfs.
53828         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
53829         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
53830         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
53831         (fs_handles_readdir_ordered_dirents_efficiently): New function.
53832         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
53833         (fts_build): Set the stat.st_ino member from D_INO.
53834         If it is likely to be useful, sort dirent entries on inode number.
53835
53836         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
53837         and the struct statfs.f_type member.
53838         * modules/fts (Depends-on): Add d-ino.
53839
53840 2008-09-26  Bruno Haible  <bruno@clisp.org>
53841
53842         * modules/sigpipe-die (Depends-on): Add sigpipe.
53843
53844         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
53845         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
53846         and GNULIB_STDIO_H_SIGPIPE are set.
53847         * lib/stdio-write.c: New file.
53848         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
53849         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53850         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53851         REPLACE_STDIO_WRITE_FUNCS.
53852         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
53853         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53854         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53855         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53856         * modules/stdio (Files): Add lib/stdio-write.c.
53857         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
53858         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
53859         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
53860         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
53861         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
53862         REPLACE_FPRINTF_POSIX.
53863         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
53864         REPLACE_PRINTF_POSIX.
53865         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
53866         REPLACE_VFPRINTF_POSIX.
53867         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
53868         REPLACE_VPRINTF_POSIX.
53869         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
53870         SIGPIPE issue.
53871         * doc/posix-functions/fputc.texi: Likewise.
53872         * doc/posix-functions/fputs.texi: Likewise.
53873         * doc/posix-functions/fwrite.texi: Likewise.
53874         * doc/posix-functions/printf.texi: Likewise.
53875         * doc/posix-functions/putc.texi: Likewise.
53876         * doc/posix-functions/putchar.texi: Likewise.
53877         * doc/posix-functions/puts.texi: Likewise.
53878         * doc/posix-functions/vfprintf.texi: Likewise.
53879         * doc/posix-functions/vprintf.texi: Likewise.
53880
53881         * modules/safe-write (Depends-on): Add write.
53882
53883         * modules/sigpipe-tests: New file.
53884         * tests/test-sigpipe.c: New file.
53885         * tests/test-sigpipe.sh: New file.
53886
53887         * modules/write: New file.
53888         * lib/unistd.in.h: Include <sys/types.h>.
53889         (write): New declaration.
53890         * lib/write.c: New file.
53891         * m4/write.m4: New file.
53892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53893         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
53894         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
53895         GNULIB_WRITE, REPLACE_WRITE.
53896         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
53897         and the SIGPIPE issue.
53898
53899         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
53900         (raise): New declaration.
53901         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
53902         (ext_signal): New function.
53903         (rpl_raise): New function.
53904         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
53905         GNULIB_SIGNAL_H_SIGPIPE.
53906         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
53907         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
53908
53909         * modules/sigpipe: New file.
53910         * m4/sigpipe.m4: New file.
53911
53912 2008-09-25  Derek Price  <derek@ximbiot.com>
53913             Bruno Haible  <bruno@clisp.org>
53914
53915         * gnulib-tool (func_import): Report all license incompatibilities, not
53916         just the first one.
53917
53918 2008-09-25  Bruno Haible  <bruno@clisp.org>
53919
53920         * gnulib-tool (func_import): When computing the edits, consider not
53921         only the Makefile.ams that exist but also those that will be generated.
53922
53923 2008-09-25  Simon Josefsson  <simon@josefsson.org>
53924
53925         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
53926         fixes gnulib-tool --test warning about duplicate dependency.
53927
53928 2008-09-25  Bruno Haible  <bruno@clisp.org>
53929
53930         * gnulib-tool: Don't ask the user to perform edits in the generated
53931         Makefile.ams.
53932         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
53933         apply to the Makefile.am being generated.
53934         (func_emit_tests_Makefile_am): Execute edits that apply to the
53935         Makefile.am being generated.
53936         (func_import): Setup list of Makefile.am edits before emitting the
53937         Makefile.ams, not at the end.
53938         (func_create_testdir): Update.
53939         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53940
53941 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53942
53943         * gnulib-tool (func_import): Store the --tests-base option in the
53944         comment in gnulib-cache.m4.
53945
53946 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
53947
53948         * NEWS: Document increased portability that sys_select now provides.
53949
53950         * lib/sys_select.in.h: Install select wrapper.
53951         * lib/sys_socket.in.h: Use more descriptive name when there is no
53952         select wrapper.
53953         * lib/winsock-select.c: New.
53954         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53955         Require gl_HEADER_SYS_SOCKET.
53956         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53957         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53958         * tests/test-sys_select.c: Add functional tests.
53959
53960 2008-09-24  Eric Blake  <ebb9@byu.net>
53961
53962         open, fopen: close fd leak in last patch
53963         * lib/open.c (rpl_open): Close fd before returning error.
53964         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53965         * doc/posix-functions/open.texi (open): Document that Irix also
53966         has the bug.
53967         * doc/posix-functions/fopen.texi (fopen): Likewise.
53968         Reported by Paolo Bonzini.
53969
53970 2008-09-24  Bruno Haible  <bruno@clisp.org>
53971
53972         Ensure that a filename ending in a slash cannot be used to access a
53973         non-directory.
53974         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53975         to check whether it's really a directory.
53976         * lib/fopen.c: Include fcntl.h, unistd.h.
53977         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53978         and fdopen().
53979         * modules/fopen (Depends-on): Add unistd.
53980         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53981         * tests/test-fopen.c (main): Likewise.
53982         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53983         * doc/posix-functions/fopen.texi: Likewise.
53984         Reported by Eric Blake.
53985
53986 2008-09-23  Eric Blake  <ebb9@byu.net>
53987
53988         c-stack: avoid compiler optimizations when provoking overflow
53989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53990         recursion harder to optimize, to ensure a stack overflow occurs.
53991         * tests/test-c-stack.c (recurse): Likewise.
53992         Borrowed from libsigsegv.
53993
53994         c-stack: work around Irix sigaltstack bug
53995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53996         whether sigaltstack uses wrong end of stack_t (copied in part from
53997         libsigsegv).
53998         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53999         Irix bug, without requiring an over-allocation.
54000         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54001         bug.
54002
54003         fopen: document mingw bug on directories
54004         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54005         not allowing a stream visiting a directory, even though reading
54006         from such a stream is not portable.
54007
54008 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54009
54010         * lib/poll.c: Rewrite.
54011         * modules/poll: Depend on alloca.
54012
54013 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54014
54015         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54016         instead define prototypes for a full set of wrappers.  Ensure
54017         that Cygwin does not use the compatibility code, which is only
54018         for MinGW.
54019         * lib/winsock.c: New.
54020         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54021         * modules/sys_socket: Add lib/winsock.c.
54022
54023         * modules/poll-tests: Add errno and perror.
54024         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54025
54026 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54027
54028         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54029
54030 2008-09-23  Bruno Haible  <bruno@clisp.org>
54031
54032         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54033         * doc/glibc-functions/*: Likewise.
54034
54035 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54036
54037         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54038         success.
54039
54040 2008-09-22  Eric Blake  <ebb9@byu.net>
54041             Bruno Haible  <bruno@clisp.org>
54042
54043         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54044         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54045         supply %A but mishandle pseudo-NaN.
54046         Reported by Simon Josefsson.
54047
54048 2008-09-21  Bruno Haible  <bruno@clisp.org>
54049
54050         * tests/test-lock.c (main): Tweak skip message.
54051         * tests/test-tls.c (main): Likewise.
54052
54053 2008-09-21  Bruno Haible  <bruno@clisp.org>
54054
54055         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54056         whether 'struct sigaction' has sa_sigaction here...
54057         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54058         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54059
54060 2008-09-21  Bruno Haible  <bruno@clisp.org>
54061
54062         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54063         section.
54064         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54065         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54066         the new section.
54067         (Support for obsolete systems lacking POSIX:2001): New section.
54068         (String handling <string.h>): Move strdup to the new section.
54069         Suggested by Simon Josefsson and Paolo Bonzini.
54070
54071 2008-09-21  Bruno Haible  <bruno@clisp.org>
54072
54073         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54074         exponents in %e and %g results on 'long double'. Needed for mingw's
54075         improved *printf functions.
54076         * tests/test-vasprintf-posix.c (test_function): Likewise.
54077         * tests/test-snprintf-posix.h (test_function): Likewise.
54078         * tests/test-sprintf-posix.h (test_function): Likewise.
54079         Reported by Eric Blake.
54080
54081 2008-09-21  Bruno Haible  <bruno@clisp.org>
54082
54083         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54084         * tests/test-sprintf-posix.h (test_function): Likewise.
54085
54086 2008-09-21  Bruno Haible  <bruno@clisp.org>
54087
54088         * modules/getpass (Depends-on): Add strdup-posix.
54089
54090         New module 'strdup-posix'.
54091         * modules/strdup-posix: New file.
54092         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54093         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54095         REPLACE_STRDUP.
54096         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54097         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54099         strdup-posix.
54100
54101         * modules/strdup (Depends-on): Remove malloc-posix.
54102
54103 2008-09-20  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54106         Wildenhues.
54107
54108 2008-09-20  Bruno Haible  <bruno@clisp.org>
54109
54110         Ensure that wint_t gets defined on IRIX 5.3.
54111         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54112         * lib/wctype.in.h (wint_t): Likewise.
54113         (__wctype_wint_t): Remove type.
54114         (isw*): Use wint_t instead of __wctype_wint_t.
54115         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54116         * modules/wchar (Files): Add m4/wint_t.m4.
54117         (Makefile.am): Substitute HAVE_WINT_T.
54118         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54119         * tests/test-wctype.c: Check that wint_t is defined.
54120         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54121         * doc/posix-headers/wctype.texi: Likewise.
54122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54123
54124 2008-09-18  Bruno Haible  <bruno@clisp.org>
54125
54126         * gnulib-tool (func_exit): Update comment.
54127
54128 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54129
54130         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54131         assumes strdup exists and does not depend on strdup to return
54132         ENOMEM on out of memory conditions.
54133
54134 2008-09-18  Bruno Haible  <bruno@clisp.org>
54135
54136         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54137         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54138         digits for the exponent.
54139
54140 2008-09-18  Jim Meyering  <meyering@redhat.com>
54141             Bruno Haible  <bruno@clisp.org>
54142
54143         * lib/vasnprintf.c (decimal_point_char): Define also if
54144         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54145
54146 2008-09-16  Bruno Haible  <bruno@clisp.org>
54147         and Eric Blake  <ebb9@byu.net>
54148
54149         vasnprintf: support Irix 5.3
54150         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54151         that mishandle long double infinity.
54152         Reported by Tom G. Christensen.
54153
54154 2008-09-16  Bruno Haible  <bruno@clisp.org>
54155
54156         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54157         Solaris 9.
54158         * doc/glibc-functions/alphasort.texi: Likewise.
54159         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54160
54161 2008-09-16  Jim Meyering  <meyering@redhat.com>
54162
54163         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54164         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54165         a umask modification leak out of a subshell.  Otherwise, the
54166         opensolaris /bin/sh would be accepted and thus cause unwarranted
54167         failures in the coreutils test suite.
54168
54169 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54170
54171         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54172         to succeed.
54173
54174 2008-09-16  Jim Meyering  <meyering@redhat.com>
54175
54176         avoid spurious test failure when library is built without ACL support
54177         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54178         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54179         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54180         * tests/test-copy-acl.sh: Likewise.
54181
54182 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54183
54184         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54185         based on character occurrence counts.
54186
54187 2008-09-15  Eric Blake  <ebb9@byu.net>
54188
54189         tests: avoid some compiler warnings
54190         * tests/test-memchr.c (main): Pass NULL indirectly.
54191         * tests/test-closein.c (main): Avoid unused variable.
54192
54193 2008-09-15  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54196         are missing on OpenBSD 4.0 individually.
54197         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54198
54199 2008-09-15  Bruno Haible  <bruno@clisp.org>
54200
54201         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54202         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54203         * doc/posix-functions/perror.texi: Likewise.
54204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54205         is missing.
54206         Reported by Eric Blake.
54207
54208         * lib/errno.in.h: Use replacement values >= 2000.
54209         Reported by Eric Blake.
54210
54211 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54212
54213         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54214         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54215         limit.
54216         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54217         compareseq was aborted.
54218
54219 2008-09-14  Bruno Haible  <bruno@clisp.org>
54220
54221         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54222         yvec_edit_count.
54223         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54224         (fstrcmp_bounded): Simplify result computation accordingly.
54225
54226 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54227
54228         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54229         (fstrcmp): Define in terms of fstrcmp_bounded.
54230         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54231         lower_bound argument.
54232         Return quickly if the result is certainly < lower_bound.
54233         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54234
54235 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54236
54237         * lib/diffseq.h (EARLY_ABORT): New macro.
54238         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54239         evaluates to true.
54240
54241 2008-09-14  Bruno Haible  <bruno@clisp.org>
54242
54243         * modules/perror-tests: New file.
54244         * tests/test-perror.sh: New file.
54245         * tests/test-perror.c: New file.
54246
54247         New module 'perror'.
54248         * lib/stdio.in.h (perror): New declaration.
54249         * lib/perror.c: New file.
54250         * m4/perror.m4: New file.
54251         * modules/perror: New file.
54252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54253         * doc/posix-functions/perror.texi: Mention the perror module.
54254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54255         REPLACE_PERROR.
54256         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54257         REPLACE_PERROR.
54258
54259 2008-09-14  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/stdio (Makefile.am): Reorder to match the order in
54262         lib/stdio.in.h.
54263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54264
54265 2008-09-13  Bruno Haible  <bruno@clisp.org>
54266
54267         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54268
54269 2008-09-13  Bruno Haible  <bruno@clisp.org>
54270
54271         Extend strerror to cover the added errno values.
54272         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54273         (rpl_strerror): Provide error messages for the added errno values and
54274         for the WSA* values.
54275         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54276         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54277         strerror.
54278         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54279         * modules/strerror (Depends-on): Add errno.
54280         * doc/posix-functions/strerror.texi: Document the change.
54281         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54282         and EOVERFLOW.
54283
54284 2008-09-13  Bruno Haible  <bruno@clisp.org>
54285
54286         * modules/EOVERFLOW: Remove file.
54287         * m4/eoverflow.m4: Remove file.
54288         * modules/EOVERFLOW-tests: Remove file.
54289         * tests/test-EOVERFLOW.c: Remove file.
54290         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54291         * modules/ftell (Depends-on): Likewise.
54292         * modules/getdelim (Depends-on): Likewise.
54293         * modules/getugroups (Depends-on): Likewise.
54294         * modules/poll (Depends-on): Likewise.
54295         * modules/snprintf (Depends-on): Likewise.
54296         * modules/sprintf-posix (Depends-on): Likewise.
54297         * modules/vasnprintf (Depends-on): Likewise.
54298         * modules/vasprintf (Depends-on): Likewise.
54299         * modules/vfprintf-posix (Depends-on): Likewise.
54300         * modules/vsnprintf (Depends-on): Likewise.
54301         * modules/vsprintf-posix (Depends-on): Likewise.
54302         * modules/xvasprintf (Depends-on): Likewise.
54303         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54304         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54305         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54306         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54307         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54308         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54309         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54310         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54311         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54312         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54313         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54314         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54315         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54316         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54317         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54318         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54319         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54320         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54321         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54322         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54323         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54324         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54325         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54326         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54327         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54328         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54329         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54330         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54331         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54332         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54333         * MODULES.html.sh: Remove EOVERFLOW.
54334         * NEWS: Mention the change.
54335
54336 2008-09-13  Bruno Haible  <bruno@clisp.org>
54337
54338         * modules/errno-tests: New file.
54339         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54340
54341         * lib/errno.in.h: New file.
54342         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54343         * modules/errno: New file.
54344         * doc/posix-headers/errno.texi: Update documentation.
54345         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54346
54347 2008-09-13  Bruno Haible  <bruno@clisp.org>
54348
54349         * tests/test-poll.c: Use #if for native Windows, rather than testing
54350         __MSVCRT__.
54351
54352 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54353             Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/glob.c: Don't include <pwd.h> on native Windows.
54356         (WINDOWS32): New macro.
54357         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54358
54359 2008-09-13  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54362         (ETIMEDOUT): Remove macro.
54363         (glthread_cond_timedwait_multithreaded): New declaration.
54364         (glthread_cond_timedwait): Use it.
54365         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54366         (glthread_cond_timedwait_multithreaded): New function.
54367
54368 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54369
54370         * modules/poll-tests: Do not check for io.h.
54371         * tests/test-poll.c: Check for __MSVCRT__ instead.
54372
54373 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54374
54375         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54376         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54377         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54378
54379 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54380
54381         * modules/poll-tests: New.
54382         * tests/test-poll.c: New.
54383
54384 2008-09-12  Eric Blake  <ebb9@byu.net>
54385
54386         frexp: test for NetBSD failure on -0.0
54387         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54388         not all, bugs from NetBSD 3.0 have been fixed.
54389         * doc/posix-functions/frexp.texi (frexp): Document bug.
54390         Reported by Thomas Klausner.
54391
54392         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54393         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54394         literal -0.0.
54395         Reported by Jonathan C. Patschke <jp@centtech.com>.
54396
54397 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54398
54399         * lib/glthread/cond.h: Use dummy implementation also if
54400         USE_WIN32_THREADS.
54401
54402 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54403
54404         * modules/fnmatch-posix (License): Change to LGPLv2+.
54405         * modules/fnmatch-gnu (License): Likewise.
54406
54407 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54408
54409         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54410
54411 2008-09-11  Jim Meyering  <meyering@redhat.com>
54412
54413         * users.txt: Add gtk-vnc.
54414
54415 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54416
54417         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54418         rotate amounts.
54419
54420         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54421         required for 16-bit and 8-bit rotates.
54422         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54423         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54424         UINT8_MAX instead of hard-coded constants.
54425         Suggested by Paul Eggert.
54426
54427 2008-09-07  Bruno Haible  <bruno@clisp.org>
54428
54429         * tests/test-striconveh.c (main): Check behaviour when converting from
54430         UTF-7.
54431
54432         Make striconveh work better with stateful encodings.
54433         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54434         that iconv does not increment the inptr when returning -1/EINVAL.
54435
54436 2008-09-07  Bruno Haible  <bruno@clisp.org>
54437
54438         * build-aux/config.rpath: Update according to libtool-2.2.6.
54439         * build-aux/config.libpath: Likewise.
54440
54441 2008-09-06  Bruno Haible  <bruno@clisp.org>
54442
54443         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54444         * lib/freadptr.c (freadptr): Likewise.
54445         * lib/freadseek.c (freadptrinc): Likewise.
54446         Reported by Simon Josefsson.
54447
54448 2008-09-06  Bruno Haible  <bruno@clisp.org>
54449
54450         * modules/freadptr (License): Change to LGPLv2+.
54451         * modules/freadseek (License): Likewise.
54452         Suggested by Eric Blake.
54453
54454         * modules/memchr2 (License): Change to LGPLv2+.
54455         Approved by Eric Blake.
54456
54457 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54458             Bruno Haible  <bruno@clisp.org>
54459
54460         Make gnulib-tool work with native 'sed' on AIX.
54461         * gnulib-tool (sed_noop): New variable.
54462         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54463         func_add_or_update, func_create_testdir): Use it to initialize sed
54464         script variables.
54465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54466
54467 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54468             Bruno Haible  <bruno@clisp.org>
54469
54470         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54471         also works after #include directives.
54472
54473 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54474
54475         getdate.y: reject an out-of-range timezone value
54476         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54477         the range [-24...+24].  When specified with only one or two digits,
54478         * tests/test-getdate.c: Tests for the fix.
54479         * doc/getdate.texi: Document this change.
54480
54481 2008-09-03  Bruno Haible  <bruno@clisp.org>
54482
54483         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54484
54485 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54486
54487         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54488         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54489         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54490         Blake <ebb9@byu.net>.
54491
54492         * tests/test-bitrotate.c: Add more test vectors.
54493
54494 2008-09-02  Eric Blake  <ebb9@byu.net>
54495
54496         vasnprintf-posix: handle large precision via %.*d
54497         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54498         when handling it ourselves.
54499         * tests/test-vasnprintf-posix.c (test_function): Add test.
54500         * tests/test-snprintf-posix.h (test_function): Likewise.
54501         * tests/test-sprintf-posix.h (test_function): Likewise.
54502         * tests/test-vasprintf-posix.c (test_function): Likewise.
54503         Reported by Alain Guibert.
54504
54505 2008-09-01  Eric Blake  <ebb9@byu.net>
54506
54507         c-stack: make configure-time check more robust
54508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54509         successful sigaction call.
54510         Reported by Tom G. Christensen.
54511
54512 2008-09-01  Bruno Haible  <bruno@clisp.org>
54513
54514         New module 'findprog-lgpl'.
54515         * modules/findprog-lgpl: New file.
54516         * lib/findprog-lgpl.c: New file.
54517         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54518         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54519         to decide whether to use strdup or xstrdup, concatenated_filename or
54520         xconcatenated_filename.
54521
54522 2008-09-01  Bruno Haible  <bruno@clisp.org>
54523
54524         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54525         'xconcat-filename' (GPL).
54526         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54527         (License): Change to LGPLv2+.
54528         * modules/xconcat-filename: New file.
54529         * lib/concat-filename.h (concatenated_filename): Change specification.
54530         (xconcatenated_filename): New declaration.
54531         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54532         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54533         memory situations.
54534         * lib/xconcat-filename.c: New file.
54535         * NEWS: Mention the change.
54536         * lib/findprog.c: Include concat-filename.h, not filename.h.
54537         (find_in_path): Use xconcatenated_filename instead of
54538         concatenated_filename.
54539         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54540         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54541         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54542         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54543         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54544         instead of concatenated_filename.
54545         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54546         (execute_java_class): Use xconcatenated_filename instead of
54547         concatenated_filename.
54548         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54549         * modules/javacomp (Depends-on): Likewise.
54550         * modules/javaexec (Depends-on): Likewise.
54551
54552 2008-09-01  Bruno Haible  <bruno@clisp.org>
54553
54554         Split module 'filename' into 'filename' and 'concat-filename'.
54555         * modules/filename: Keep only lib/filename.h.
54556         (License): Change to LGPLv2+.
54557         * modules/concat-filename: New file, extracted from modules/filename.
54558         * lib/filename.h (concatenated_filename): Remove declaration.
54559         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54560         * lib/concat-filename.c: Include concat-filename.h.
54561         * NEWS: Mention the change.
54562
54563 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54564
54565         * lib/bitrotate.h (rotl8, rotr8): Add.
54566
54567         * modules/bitrotate (configure.ac): Need
54568         AC_REQUIRE([AC_C_INLINE]).
54569         (Description): Mention stdint.h.  Reported by Bruno Haible
54570         <bruno@clisp.org>.
54571
54572         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54573         Paolo Bonzini <bonzini@gnu.org>.
54574
54575 2008-08-31  Bruno Haible  <bruno@clisp.org>
54576
54577         Assume Solaris specific bi-arch conventions on Solaris systems.
54578         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54579         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54580         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54581         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54582         like acl_libdirstem.
54583         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54584         acl_libdirstem.
54585         * NEWS: Mention the change.
54586         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54587
54588 2008-08-31  Jim Meyering  <meyering@redhat.com>
54589
54590         * lib/strftime.h: Add comments describing the two added arguments.
54591
54592         remove duplicate #include directives
54593         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54594         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54595
54596 2008-08-31  Bruno Haible  <bruno@clisp.org>
54597
54598         New module 'sigpipe-die'.
54599         * modules/sigpipe-die: New file.
54600         * lib/sigpipe-die.h: New file.
54601         * lib/sigpipe-die.c: New file.
54602         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54603
54604 2008-08-31  Bruno Haible  <bruno@clisp.org>
54605
54606         Don't override previously installed signal handlers.
54607         * lib/fatal-signal.c (saved_sigactions): New variable.
54608         (uninstall_handlers): Reset the signal to the saved handler, not
54609         to SIG_DFL (except when ignored).
54610         (install_handlers): Save the previous handlers.
54611
54612 2008-08-30  Bruno Haible  <bruno@clisp.org>
54613
54614         * gnulib-tool (func_reset_sigpipe): New function.
54615         (func_get_automake_snippet, func_modules_transitive_closure,
54616         func_import): Invoke it before a join command that reads from stdin,
54617         to avoid "echo: write error: Broken pipe" error messages on stderr.
54618         Reported by Sam Steingold <sds@gnu.org>.
54619
54620 2008-08-30  Bruno Haible  <bruno@clisp.org>
54621
54622         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54623         Code copied from m4/open.m4.
54624         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54625         access and the filename ends in a slash. Code copied from lib/open.c.
54626         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54627         * tests/test-fopen.c (main): Check against bug with trailing slash.
54628
54629 2008-08-29  Bruno Haible  <bruno@clisp.org>
54630
54631         Avoid some "gcc -pedantic" warnings.
54632         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54633         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54634         * lib/dirent.in.h: Likewise.
54635         * lib/fcntl.in.h: Likewise.
54636         * lib/float.in.h: Likewise.
54637         * lib/iconv.in.h: Likewise.
54638         * lib/inttypes.in.h: Likewise.
54639         * lib/locale.in.h: Likewise.
54640         * lib/math.in.h: Likewise.
54641         * lib/netinet_in.in.h: Likewise.
54642         * lib/search.in.h: Likewise.
54643         * lib/signal.in.h: Likewise.
54644         * lib/stdarg.in.h: Likewise.
54645         * lib/stdint.in.h: Likewise.
54646         * lib/stdio.in.h: Likewise.
54647         * lib/stdlib.in.h: Likewise.
54648         * lib/string.in.h: Likewise.
54649         * lib/strings.in.h: Likewise.
54650         * lib/sys_select.in.h: Likewise.
54651         * lib/sys_socket.in.h: Likewise.
54652         * lib/sys_stat.in.h: Likewise.
54653         * lib/sys_time.in.h: Likewise.
54654         * lib/sysexits.in.h: Likewise.
54655         * lib/time.in.h: Likewise.
54656         * lib/unistd.in.h: Likewise.
54657         * lib/wchar.in.h: Likewise.
54658         * lib/wctype.in.h: Likewise.
54659         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54660         * modules/fchdir (Makefile.am): Likewise.
54661         * modules/fcntl (Makefile.am): Likewise.
54662         * modules/float (Makefile.am): Likewise.
54663         * modules/iconv_open (Makefile.am): Likewise.
54664         * modules/inttypes (Makefile.am): Likewise.
54665         * modules/locale (Makefile.am): Likewise.
54666         * modules/math (Makefile.am): Likewise.
54667         * modules/netinet_in (Makefile.am): Likewise.
54668         * modules/search (Makefile.am): Likewise.
54669         * modules/signal (Makefile.am): Likewise.
54670         * modules/stdarg (Makefile.am): Likewise.
54671         * modules/stdint (Makefile.am): Likewise.
54672         * modules/stdio (Makefile.am): Likewise.
54673         * modules/stdlib (Makefile.am): Likewise.
54674         * modules/string (Makefile.am): Likewise.
54675         * modules/strings (Makefile.am): Likewise.
54676         * modules/sys_select (Makefile.am): Likewise.
54677         * modules/sys_socket (Makefile.am): Likewise.
54678         * modules/sys_stat (Makefile.am): Likewise.
54679         * modules/sys_time (Makefile.am): Likewise.
54680         * modules/sysexits (Makefile.am): Likewise.
54681         * modules/time (Makefile.am): Likewise.
54682         * modules/unistd (Makefile.am): Likewise.
54683         * modules/wchar (Makefile.am): Likewise.
54684         * modules/wctype (Makefile.am): Likewise.
54685         Reported by Reuben Thomas <rrt@sc3d.org>.
54686
54687 2008-08-29  Bruno Haible  <bruno@clisp.org>
54688
54689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54690         any more.
54691
54692 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54693
54694         * MODULES.html.sh (Misc): Add bitrotate.
54695
54696         * modules/bitrotate: New file.
54697
54698         * lib/bitrotate.h: New file.
54699
54700         * modules/bitrotate-tests: New file.
54701
54702         * tests/test-bitrotate.c: New file.
54703
54704         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54705         on the bitrotate module.
54706
54707         * lib/arctwo.c: Use new bitrotate module.
54708
54709 2008-08-29  Jim Meyering  <meyering@redhat.com>
54710
54711         bootstrap: merge changes from coreutils
54712         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54713         of copied files.  Remove a kludge, now that this is fixed.
54714         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54715         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54716         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54717
54718 2008-08-29  Bruno Haible  <bruno@clisp.org>
54719
54720         * MODULES.html.sh: Remove --cvs-urls option.
54721
54722 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54723
54724         maint.mk: adjust to file name change
54725         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54726
54727 2008-08-28  Jim Meyering  <meyering@redhat.com>
54728
54729         * modules/getndelim2 (License): Relicense to LGPLv2+.
54730         Approved by Richard Stallman for the version of 1995, and by
54731         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54732
54733 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54734
54735         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54736         dummy if one is not available.  Do not touch them if
54737         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54738         (getc_maybe_unlocked): New.
54739         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54740
54741 2008-08-26  Eric Blake  <ebb9@byu.net>
54742
54743         doc/INSTALL: resync from autoconf
54744         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54745         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54746         moving...
54747         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54748         * INSTALL: Regenerate.
54749         * INSTALL.ISO: New file.
54750         * INSTALL.UTF-8: Likewise.
54751
54752 2008-08-26  Jim Meyering  <meyering@redhat.com>
54753
54754         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54755         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54756         these definitions conditional, so that they may be overridden, too.
54757
54758 2008-08-26  Bruno Haible  <bruno@clisp.org>
54759
54760         Generate INSTALL file variants with prettier quotes.
54761         * doc/Makefile (INSTALL_PRELUDE): New macro.
54762         (INSTALL): Use it.
54763         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54764
54765 2008-08-26  Bruno Haible  <bruno@clisp.org>
54766
54767         Run makeinfo in an English locale.
54768         * doc/Makefile (MAKEINFO): New variable.
54769
54770 2008-08-26  Bruno Haible  <bruno@clisp.org>
54771
54772         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54773         Suggested by Eric Blake.
54774
54775 2008-08-25  Bruno Haible  <bruno@clisp.org>
54776
54777         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54778
54779 2008-08-25  Eric Blake  <ebb9@byu.net>
54780
54781         c-stack: test that stack overflow can be caught
54782         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54783         that platform allows handling stack overflow; at least OS/2 EMX
54784         has sigaltstack, but crashes before transferring control to
54785         handler on stack overflow.
54786         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54787         check for HAVE_STACK_OVERFLOW_HANDLING.
54788         Reported by Elbert Pol.
54789
54790 2008-08-25  Bruno Haible  <bruno@clisp.org>
54791
54792         * doc/posix-functions/strftime.texi: Fix description of strftime
54793         module.
54794
54795 2008-08-24  Bruno Haible  <bruno@clisp.org>
54796
54797         * tests/uniwidth/test-uc_width2.c: New file.
54798         * tests/uniwidth/test-uc_width2.sh: New file.
54799         * modules/uniwidth/width-tests (Files): Add the new files.
54800         (TESTS): Add uniwidth/test-uc_width2.sh.
54801         (TESTS_ENVIRONMENT): New variable.
54802         (check_PROGRAMS): Add test-uc_width2.
54803         (test_uc_width2_SOURCES): New variable.
54804
54805         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54806         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54807         not 0x00AB.
54808         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54809
54810 2008-08-22  Eric Blake  <ebb9@byu.net>
54811
54812         test-lock, test-tls: mention why a test is skipped
54813         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54814         skipped.
54815         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54816
54817         count-one-bits: relax license
54818         * modules/count-one-bits (License): Relicense to LGPLv2+.
54819         Suggested by Ludovic Courtès, approved by Ben Pfaff.
54820
54821 2008-08-22  Andreas Schwab  <schwab@suse.de>
54822
54823         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
54824         Remove spurious space in assignment.
54825
54826 2008-08-21  Simon Josefsson  <simon@josefsson.org>
54827
54828         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
54829         Paul Eggert <eggert@CS.UCLA.EDU>.
54830
54831 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
54832
54833         * modules/gettext: Add m4/threadlib.m4.
54834
54835 2008-08-19  Eric Blake  <ebb9@byu.net>
54836
54837         test-c-stack: fix compilation failure on FreeBSD 5.0
54838         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
54839         headers before <sys/resource.h>.
54840         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
54841         the bug.
54842         Reported by Nelson H. F. Beebe.
54843
54844         strverscmp: migrate from "strverscmp.h" to <string.h>
54845         * modules/string (Makefile.am): Add new hooks.
54846         * modules/strverscmp (Files): Remove strverscmp.h.
54847         (Depends-on): Add string.
54848         (configure.ac): Add indicator.
54849         (Include): Mention new header.
54850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
54851         defaults.
54852         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
54853         results.
54854         * lib/strverscmp.h: Delete.
54855         * lib/string.in.h (strverscmp): Provide declaration, when needed.
54856         * tests/test-strverscmp.c (includes): Adjust client.
54857         * lib/check-version.c (includes): Likewise.
54858         * NEWS: Document the change.
54859
54860         strverscmp: add unit test
54861         * modules/strverscmp-tests: New file.
54862         * tests/test-strverscmp.c: Likewise.
54863
54864 2008-08-19  Simon Josefsson  <simon@josefsson.org>
54865
54866         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
54867         regarding Windows crypto stuff, from Mono.
54868
54869 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
54870
54871         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
54872         if present, for intel RND.  Return error on failures.
54873
54874 2008-08-18  Ben Pfaff  <blp@gnu.org>
54875
54876         gitlog-to-changelog: give better diagnostic for failed pipe-open
54877         * build-aux/gitlog-to-changelog: Improve error message: suggest
54878         that the version of Git may be too old.
54879
54880 2008-08-18  Simon Josefsson  <simon@josefsson.org>
54881
54882         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
54883         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
54884
54885 2008-08-18  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
54888         pthread_in_use().
54889
54890 2008-08-18  Bruno Haible  <bruno@clisp.org>
54891
54892         * lib/glthread/threadlib.c: Include <pthread.h>.
54893
54894 2008-08-18  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
54897         glthread_recursive_lock_* macros.
54898         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
54899         Fix syntax error.
54900
54901 2008-08-18  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/glthread/thread.c: Avoid forcing a context switch right after
54904         thread creation.
54905
54906 2008-08-17  Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
54909         * lib/glthread/thread.h: Provide Win32 specific implementation.
54910         * modules/thread (Files): Add lib/glthread/thread.c.
54911         (Depends-on): Add lock.
54912         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
54913
54914 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54915
54916         New module 'yield'.
54917         * modules/yield: New file.
54918         * lib/glthread/yield.h: New file.
54919         * m4/yield.m4: New file.
54920         * MODULES.html.sh (Multithreading): Add yield.
54921
54922 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54923
54924         New module 'thread'.
54925         * modules/thread: New file.
54926         * lib/glthread/thread.h: New file.
54927         * m4/thread.m4: New file.
54928         * MODULES.html.sh (Multithreading): Add thread.
54929
54930 2008-08-17  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/glthread/lock.h: Include <stdlib.h> always.
54933         * lib/glthread/tls.h: Likewise.
54934         * lib/glthread/cond.h: Likewise.
54935
54936 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54937
54938         New module 'cond'.
54939         * modules/cond: New file.
54940         * lib/glthread/cond.h: New file.
54941         * lib/glthread/cond.c: New file.
54942         * m4/cond.m4: New file.
54943         * MODULES.html.sh (Multithreading): Add cond.
54944
54945 2008-08-16  Eric Blake  <ebb9@byu.net>
54946
54947         c-stack: fix regression on Irix 5.3 from 2008-06-21
54948         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54949         sa_sigaction...
54950         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54951         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54952         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54953         * modules/signal (Makefile.am): Use the value.
54954         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54955         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54956         * doc/posix-headers/signal.texi (signal.h): Document this
54957         portability issue.
54958         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54959         Reported by Tom G. Christensen.
54960
54961 2008-08-17  Bruno Haible  <bruno@clisp.org>
54962
54963         New module 'threadlib'.
54964         * modules/threadlib: New file.
54965         * lib/glthread/threadlib.c: New file, extracted from
54966         lib/glthread/lock.c.
54967         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54968         functions.
54969         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54970         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54971         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54972         macros.
54973         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54974         (gl_DISABLE_THREADS): Remove macro.
54975         * modules/lock (Files): Remove build-aux/config.rpath.
54976         (Depends-on): Remove havelib. Add threadlib.
54977         (configure.ac-early): Remove section.
54978         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54979         * modules/tls (Depends-on): Remove lock. Add threadlib.
54980         (Link): New section, copied from threadlib.
54981         * MODULES.html.sh (Multithreading): Add threadlib.
54982
54983 2008-08-14  Bruno Haible  <bruno@clisp.org>
54984
54985         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54986         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54987         glthread_rwlock_unlock, glthread_rwlock_destroy,
54988         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54989         glthread_recursive_lock_destroy): Define as macros always.
54990         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54991         glthread_lock_lock.
54992         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54993         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54994         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54995         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54996         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54997         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54998         (glthread_recursive_lock_lock_func): Renamed from
54999         glthread_recursive_lock_lock.
55000         (glthread_recursive_lock_unlock_func): Renamed from
55001         glthread_recursive_lock_unlock.
55002         (glthread_recursive_lock_destroy_func): Renamed from
55003         glthread_recursive_lock_destroy.
55004
55005 2008-08-14  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/glthread/lock.h: Renamed from lib/lock.h.
55008         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55009         * lib/glthread/tls.h: Renamed from lib/tls.h.
55010         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55011         * lib/fstrcmp.c: Update includes.
55012         * lib/strsignal.c: Update includes.
55013         * modules/lock (Files, Makefile.am): Update.
55014         (Include): Change to "glthread/lock.h".
55015         * modules/tls (Files, Makefile.am): Update.
55016         (Include): Change to "glthread/tls.h".
55017         * tests/test-lock.c: Update includes.
55018         * tests/test-tls.c: Update includes.
55019         * NEWS: Mention the renamed header files.
55020
55021 2008-08-11  Jim Meyering  <meyering@redhat.com>
55022
55023         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55024
55025 2008-08-11  Eric Blake  <ebb9@byu.net>
55026
55027         test-c-stack: avoid C99-ism
55028         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55029         before statement.
55030         Reported by Alain Guibert.
55031
55032 2008-08-10  Jim Meyering  <meyering@redhat.com>
55033
55034         ensure that return value of uinttostr et al are not ignored
55035         * lib/inttostr.h (__GNUC_PREREQ): Define.
55036         (__attribute_warn_unused_result__): Define.
55037         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55038
55039 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55040
55041         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55042         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55043
55044 2008-08-07  Jim Meyering  <meyering@redhat.com>
55045
55046         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55047
55048         * modules/mkstemp (License): Relicense under LGPLv2+.
55049         * modules/tempname (License): Likewise.
55050
55051 2008-08-06  Bruno Haible  <bruno@clisp.org>
55052
55053         * lib/poll.c (poll): Further micro-optimization.
55054
55055 2008-08-06  Jim Meyering  <meyering@redhat.com>
55056
55057         inet_pton.c: use locale-independent tolower
55058         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55059         (inet_pton6): Use c_tolower rather than tolower.
55060         * modules/inet_pton (Depends-on): Add c-ctype.
55061
55062 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55063
55064         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55065         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55066
55067 2008-08-06  Jim Meyering  <meyering@redhat.com>
55068
55069         * modules/inet_pton (License): Relicense under LGPLv2+.
55070
55071 2008-08-03  Bruno Haible  <bruno@clisp.org>
55072
55073         Additional non-aborting API for lock and tls.
55074         * lib/lock.h: Include <errno.h>.
55075         (glthread_lock_init): New macro/function.
55076         (gl_lock_init): Define as wrapper around glthread_lock_init.
55077         (glthread_lock_lock): New macro/function.
55078         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55079         (glthread_lock_unlock): New macro/function.
55080         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55081         (glthread_lock_destroy): New macro/function.
55082         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55083         (glthread_rwlock_init): New macro/function.
55084         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55085         (glthread_rwlock_rdlock): New macro/function.
55086         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55087         (glthread_rwlock_wrlock): New macro/function.
55088         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55089         (glthread_rwlock_unlock): New macro/function.
55090         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55091         (glthread_rwlock_destroy): New macro/function.
55092         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55093         (glthread_recursive_lock_init): New macro/function.
55094         (gl_recursive_lock_init): Define as wrapper around
55095         glthread_recursive_lock_init.
55096         (glthread_recursive_lock_lock): New macro/function.
55097         (gl_recursive_lock_lock): Define as wrapper around
55098         glthread_recursive_lock_lock.
55099         (glthread_recursive_lock_unlock): New macro/function.
55100         (gl_recursive_lock_unlock): Define as wrapper around
55101         glthread_recursive_lock_unlock.
55102         (glthread_recursive_lock_destroy): New macro/function.
55103         (gl_recursive_lock_destroy): Define as wrapper around
55104         glthread_recursive_lock_destroy.
55105         (glthread_once): New macro/function.
55106         (gl_once): Define as wrapper around glthread_once.
55107         Update function declarations.
55108         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55109         glthread_rwlock_init. Return error code.
55110         (glthread_rwlock_rdlock_multithreaded): Renamed from
55111         glthread_rwlock_rdlock. Return error code.
55112         (glthread_rwlock_wrlock_multithreaded): Renamed from
55113         glthread_rwlock_wrlock. Return error code.
55114         (glthread_rwlock_unlock_multithreaded): Renamed from
55115         glthread_rwlock_unlock. Return error code.
55116         (glthread_rwlock_destroy_multithreaded): Renamed from
55117         glthread_rwlock_destroy. Return error code.
55118         (glthread_recursive_lock_init_multithreaded): Renamed from
55119         glthread_recursive_lock_init. Return error code.
55120         (glthread_recursive_lock_lock_multithreaded): Renamed from
55121         glthread_recursive_lock_lock. Return error code.
55122         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55123         glthread_recursive_lock_unlock. Return error code.
55124         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55125         glthread_recursive_lock_destroy. Return error code.
55126         (glthread_once_call): Make static.
55127         (glthread_once_multithreaded): Renamed from glthread_once.
55128         * lib/tls.h: Include <errno.h>.
55129         (glthread_tls_key_init): New macro/function.
55130         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55131         (glthread_tls_set): New macro/function.
55132         (gl_tls_set): Define as wrapper around glthread_tls_set.
55133         (glthread_tls_key_destroy): New macro/function.
55134         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55135         Update function declarations.
55136         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55137         glthread_tls_get.
55138         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55139
55140 2008-08-04  Eric Blake  <ebb9@byu.net>
55141
55142         gnumakefile: use space, not TAB, outside of targets
55143         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55144
55145 2008-08-02  Jim Meyering  <meyering@redhat.com>
55146
55147         getdate.y: avoid locale-dependent date parsing failure
55148         In Turkish locales, getdate would fail to recognize keywords
55149         containing a lowercase "i".  The solution is not to rely on
55150         locale-sensitive case-conversion.
55151         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55152         (lookup_word): Use c_toupper in place of toupper.
55153         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55154         Reported by Vefa Bicakci <bicave@superonline.com> in
55155         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55156         * modules/getdate (Depends-on): Add c-ctype.
55157
55158 2008-08-02  Bruno Haible  <bruno@clisp.org>
55159
55160         * gnulib-tool (func_import): When updating or creating a .gitignore
55161         file, prepend each added line with a slash, and ignore leading slashes
55162         from the existing lines.
55163         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55164
55165 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55166
55167         Portability fix for GNU make 3.79.1.
55168         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55169         versions do not understand.
55170
55171 2008-08-01  Bruno Haible  <bruno@clisp.org>
55172
55173         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55174         * tests/test-isnanf.h (zero): New variable.
55175         (main): Avoid literal -0.0f.
55176         * tests/test-isnand.h (zero): New variable.
55177         (main): Avoid literal -0.0.
55178         * tests/test-isnanl.h (zero): New variable.
55179         (main): Avoid literal -0.0L.
55180         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55181         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55182         -0.0, -0.0L.
55183         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55184         (test_signbitd): Avoid literal -0.0.
55185         (test_signbitl): Avoid literal -0.0L.
55186         * tests/test-ceilf1.c (zero): New variable.
55187         (main): Avoid literal -0.0f.
55188         * tests/test-ceill.c (zero): New variable.
55189         (main): Avoid literal -0.0L.
55190         * tests/test-floorf1.c (zero): New variable.
55191         (main): Avoid literal -0.0f.
55192         * tests/test-floorl.c (zero): New variable.
55193         (main): Avoid literal -0.0L.
55194         * tests/test-roundf1.c (zero): New variable.
55195         (main): Avoid literal -0.0f.
55196         * tests/test-round1.c (zero): New variable.
55197         (main): Avoid literal -0.0.
55198         * tests/test-roundl.c (zero): New variable.
55199         (main): Avoid literal -0.0L.
55200         * tests/test-truncf1.c (zero): New variable.
55201         (main): Avoid literal -0.0f.
55202         * tests/test-trunc1.c (zero): New variable.
55203         (main): Avoid literal -0.0.
55204         * tests/test-truncl.c (zero): New variable.
55205         (main): Avoid literal -0.0L.
55206         * tests/test-frexp.c (zero): New variable.
55207         (main): Avoid literal -0.0.
55208         * tests/test-frexpl.c (zero): New variable.
55209         (main): Avoid literal -0.0L.
55210         * tests/test-ldexpl.c (zero): New variable.
55211         (main): Avoid literal -0.0L.
55212         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55213         (zerod, zerol): New variables.
55214         (test_function): Avoid literals -0.0, -0.0L.
55215         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55216         (zerod, zerol): New variables.
55217         (test_function): Avoid literals -0.0, -0.0L.
55218         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55219         (zerod, zerol): New variables.
55220         (test_function): Avoid literals -0.0, -0.0L.
55221         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55222         (zerod, zerol): New variables.
55223         (test_function): Avoid literals -0.0, -0.0L.
55224         * tests/test-strtod.c (zero): New variable.
55225         (main): Avoid literal -0.0.
55226         Reported by Jonathan C. Patschke <jp@centtech.com>.
55227
55228 2008-07-31  Jim Meyering  <meyering@redhat.com>
55229
55230         sha256.h: correct definition of SHA224_DIGEST_SIZE
55231         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55232         Reported by Paulie Pena IV <paulie4@gmail.com>.
55233         Define as 224 / 8, rather than as a literal.
55234         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55235         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55236         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55237
55238 2008-07-31  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55241         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55242         Reported by Jonathan Patschke <jp@centtech.com>.
55243
55244 2008-07-31  Bruno Haible  <bruno@clisp.org>
55245
55246         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55247         Reported by Paolo Bonzini <bonzini@gnu.org>.
55248
55249 2008-07-30  Eric Blake  <ebb9@byu.net>
55250
55251         test-strtod: allow compilation without -lm
55252         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55253         Reported by Dennis Clarke <blastwave@gmail.com>.
55254
55255 2008-07-28  Jim Meyering  <meyering@redhat.com>
55256
55257         bootstrap: work also when there are no .po files in po/
55258         * build-aux/bootstrap (update_po_files): Complete the change
55259         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55260
55261 2008-07-27  Jim Meyering  <meyering@redhat.com>
55262
55263         * users.txt: Add zile.
55264
55265 2008-07-26  Ben Pfaff  <blp@gnu.org>
55266
55267         Add missing dependencies on new m4/exponent[fdl].m4 files.
55268         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55269         * modules/isnand-nolibm: Add m4/exponentd.m4.
55270         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55271         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55272         m4/isnan[fdl].m4, because the macros actually used moved.
55273         Reported by Jim Meyering.
55274
55275 2008-07-14  Ben Pfaff  <blp@gnu.org>
55276
55277         Add isinf module.
55278         * lib/isinf.c: New file.
55279         * lib/math.in.h: Define isinf macro if we have decided to replace
55280         it.
55281         * m4/isinf.m4: New file.
55282         * m4/math_h.m4: Initialize and substitute variables for isinf
55283         module.
55284         * modules/isinf: New file.
55285         * modules/isinf-tests: New file.
55286         * modules/math: Add substitutions for new module.
55287         * tests/test-isinf.c: New file.
55288         * doc/posix-functions/isinf.texi: Mention new module.
55289         * MODULES.html.sh: Mention new module.
55290
55291 2008-07-14  Ben Pfaff  <blp@gnu.org>
55292
55293         Factor out some macros for use by additional modules.
55294         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55295         exponentf.m4.
55296         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55297         exponentd.m4.
55298         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55299         file exponentl.m4.
55300         * m4/exponentf.m4: New file.
55301         * m4/exponentd.m4: New file.
55302         * m4/exponentl.m4: New file.
55303         * modules/isnanf: Use new file m4/exponentf.m4.
55304         * modules/isnand: Use new file m4/exponentd.m4.
55305         * modules/isnanl: Use new file m4/exponentl.m4.
55306
55307 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55308
55309         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55310         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55311         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55312         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55313
55314         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55315         readlink on platforms without PATH_MAX.
55316
55317 2008-07-21  Eric Blake  <ebb9@byu.net>
55318
55319         Warn, not fail, on stale version.
55320         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55321
55322         Don't allow installation with stale devel version number.
55323         * top/GNUmakefile (_is-install-target): New macro.
55324         (_curr-ver): Forbid installation with stale version number.
55325
55326 2008-07-20  Bruno Haible  <bruno@clisp.org>
55327
55328         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55329         TESTS_ENVIRONMENT.
55330         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55331
55332 2008-07-20  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/c-stack.h (c_stack_action): Add documentation.
55335         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55336
55337 2008-07-20  Bruno Haible  <bruno@clisp.org>
55338
55339         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55340         * modules/readlink (License): Likewise.
55341
55342 2008-07-17  Eric Blake  <ebb9@byu.net>
55343
55344         * modules/c-stack (Link): Fix typo.
55345
55346         Make c-stack use libsigsegv, when available.
55347         * modules/c-stack (Depends-on): Add libsigsegv.
55348         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55349         needed.
55350         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55351         (segv_handler, overflow_handler, c_stack_action)
55352         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55353         implementation when libsigsegv is available, but only when using
55354         the library is necessary.
55355         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55356         comment, explaining why XSI check fails on Linux.
55357         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55358         * tests/test-c-stack2.sh: Tweak skip message.
55359         * NEWS: Document new link-time requirements.
55360
55361 2008-07-16  Eric Blake  <ebb9@byu.net>
55362
55363         c-stack: Expose false positives when not using libsigsegv.
55364         * modules/c-stack-tests (Files): Expand test.
55365         * tests/test-c-stack.c (main): Add means to conditionally trigger
55366         non-overflow SIGSEGV.
55367         * tests/test-c-stack2.sh: New file.
55368
55369 2008-07-14  Bruno Haible  <bruno@clisp.org>
55370
55371         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55372         Reported by Eric Blake.
55373
55374 2008-07-14  Sam Steingold  <sds@gnu.org>
55375             Bruno Haible  <bruno@clisp.org>
55376
55377         New module libsigsegv.
55378         * modules/libsigsegv: New file.
55379         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55380         modifications.
55381         * MODULES.html.sh (Signal handling): New section.
55382
55383 2008-07-14  Bruno Haible  <bruno@clisp.org>
55384
55385         * modules/unictype/ctype-* (Description): Add the word "function".
55386         Improves the resulting doc in MODULES.html.
55387
55388 2008-07-12  Ben Pfaff  <blp@gnu.org>
55389
55390         Add longlong module.
55391         * modules/longlong: New file.
55392
55393 2008-07-12  Bruno Haible  <bruno@clisp.org>
55394
55395         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55396         to empty.
55397
55398 2008-07-10  Ben Pfaff  <blp@gnu.org>
55399
55400         Add isnan module.
55401         * doc/posix-functions/isnan.texi: Mention new module.
55402         * lib/math.in.h: Define isnan macro if we have decided to replace
55403         it.
55404         * m4/isnan.m4: New file.
55405         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55406         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55407         also.
55408         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55409         redundancy.
55410         * m4/math_h.m4: Initialize and substitute variables for isnan
55411         module.
55412         * modules/isnan: New file.
55413         * modules/isnan-tests: New file.
55414         * modules/math: Add substitutions for new module.
55415         * tests/test-isnan.c: New file.
55416         * MODULES.html.sh: Mention new module.
55417
55418 2008-07-10  Ben Pfaff  <blp@gnu.org>
55419
55420         Add isnanf module.
55421         * lib/isnanf.m4: New file.
55422         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55423         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55424         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55425         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55426         * modules/isnanf: New file.
55427         * modules/isnanf-tests: New file.
55428         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55429         files.
55430         * tests/test-isnanf-nolibm.c: factored most of its contents into
55431         new file tests/test-isnanf.h.
55432         * tests/test-isnanf.h: New file.
55433         * tests/test-isnanf.c: New file.
55434         * MODULES.html.sh: Mention new module.
55435         * doc/glibc-functions/isnanf.texi: Mention new module.
55436
55437 2008-07-10  Ben Pfaff  <blp@gnu.org>
55438
55439         Add isnand module.
55440         * lib/isnand.h: New file.
55441         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55442         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55443         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55444         functionality also.
55445         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55446         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55447         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55448         * modules/isnand: New file.
55449         * modules/isnand-tests: New file.
55450         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55451         files.
55452         * tests/test-isnand-nolibm.c: factored most of its contents into
55453         new file tests/test-isnand.h.
55454         * tests/test-isnand.h: New file.
55455         * tests/test-isnand.c: New file.
55456         * MODULES.html.sh: Mention new module.
55457
55458 2008-07-10  Ben Pfaff  <blp@gnu.org>
55459
55460         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55461         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55462         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55463         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55464         * modules/isnanf-nolibm: Update references to renamed files.
55465         * modules/isnand-nolibm: Likewise.
55466         * modules/isnanf-nolibm-tests: Likewise.
55467         * modules/isnand-nolibm-tests: Likewise.
55468         * lib/frexp.c: Likewise.
55469         * lib/isfinite.c: Likewise.
55470         * lib/signbitd.c: Likewise.
55471         * lib/signbitf.c: Likewise.
55472         * lib/vasnprintf.c: Likewise.
55473         * tests/test-ceilf1.c: Likewise.
55474         * tests/test-ceilf2.c: Likewise.
55475         * tests/test-floorf1.c: Likewise.
55476         * tests/test-floorf2.c: Likewise.
55477         * tests/test-frexp.c: Likewise.
55478         * tests/test-round1.c: Likewise.
55479         * tests/test-round2.c: Likewise.
55480         * tests/test-roundf1.c: Likewise.
55481         * tests/test-strtod.c: Likewise.
55482         * tests/test-trunc1.c: Likewise.
55483         * tests/test-trunc2.c: Likewise.
55484         * tests/test-truncf1.c: Likewise.
55485         * tests/test-truncf2.c: Likewise.
55486         * NEWS: Mention the renamed header files.
55487
55488 2008-07-11  Jim Meyering  <meyering@redhat.com>
55489
55490         vc-list-files: make the last-resort awk code more portable
55491         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55492         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55493         does not support it.
55494
55495 2008-07-10  Eric Blake  <ebb9@byu.net>
55496
55497         Work with tar's bootstrap.
55498         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55499         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55500         an m4 comment.
55501
55502 2008-07-09  Jim Meyering  <meyering@redhat.com>
55503
55504         posix-shell.m4: fix typo that made this test malfunction
55505         * m4/posix-shell.m4: Remove capitalization in variable name.
55506
55507 2008-07-08  Bruno Haible  <bruno@clisp.org>
55508
55509         * m4/onceonly.m4: Update comments.
55510         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55511
55512 2008-07-04  Jim Meyering  <meyering@redhat.com>
55513
55514         * users.txt: Add vc-dwim.
55515         (bison, coreutils): Use the gitweb URL.
55516
55517 2008-07-03  Jim Meyering  <meyering@redhat.com>
55518
55519         * users.txt: Add libffcall.  From Sam Steingold.
55520
55521 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55522
55523         getdate.y: do not ignore TZ with relative day, month or year offset
55524         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55525         relative-date-handling, since otherwise, the latter would clobber the
55526         sole output (an updated Start value) of the tz-handling block.
55527         * tests/test-getdate.c: Tests for the fix
55528
55529 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55530
55531         Recognize 'foo_LIBRARIES += libgnu.a'.
55532         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55533         makefile snippet has already specified an installation location,
55534         also using '+='.
55535
55536 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55537
55538         getdate.y: factor out common actions
55539         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55540         Use them in place of open-coded actions.
55541
55542 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55543
55544         Add self-test for getdate module.
55545         * modules/getdate-tests: New file.
55546         * tests/test-getdate.c: New file.
55547
55548 2008-06-29  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55551         .gitignore.
55552         Reported by Sylvain Beucler <beuc@beuc.net>.
55553
55554 2008-06-29  Bruno Haible  <bruno@clisp.org>
55555
55556         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55557         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55558
55559 2008-06-29  Bruno Haible  <bruno@clisp.org>
55560
55561         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55562         EXTRA_DIST.
55563         Reported by Sylvain Beucler <beuc@beuc.net>.
55564
55565 2008-06-26  Jim Meyering  <meyering@redhat.com>
55566
55567         make several modules depend on the "open" module
55568         This provides slightly increased consistency when opening-for-write
55569         the name of a non-directory spelled with a trailing slash.
55570         * modules/chdir-safer: Likewise.
55571         * modules/chown: Likewise.
55572         * modules/clean-temp: Likewise.
55573         * modules/copy-file: Likewise.
55574         * modules/fchdir: Likewise.
55575         * modules/fcntl-safer: Likewise.
55576         * modules/pipe: Likewise.
55577         * modules/utime: Likewise.
55578         Prompted by Eric Blake and Bruno Haible.
55579
55580 2008-06-24  Andreas Schwab  <schwab@suse.de>
55581
55582         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55583         literals can be used as initializers for global variables.
55584
55585 2008-06-23  Eric Blake  <ebb9@byu.net>
55586
55587         Make gnulib-cache.m4 easier to diff.
55588         * gnulib-tool (func_import): Allow newlines when reading cached
55589         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55590
55591 2008-06-23  Bruno Haible  <bruno@clisp.org>
55592
55593         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55594         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55595         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55596         m4/signalblocking.m4.
55597         (gl_PREREQ_SIGACTION): Don't invoke it.
55598         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55599         gl_PREREQ_SIG_HANDLER_H.
55600         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55601         Don't check for sigaction here.
55602
55603 2008-06-23  Bruno Haible  <bruno@clisp.org>
55604
55605         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55606         (install_handlers): Don't set the SA_RESETHAND flag.
55607
55608 2008-06-23  Bruno Haible  <bruno@clisp.org>
55609
55610         * m4/sigaction.m4: Comment fixes.
55611         * lib/signal.in.h: Likewise.
55612
55613 2008-06-23  Eric Blake  <ebb9@byu.net>
55614
55615         Fix typo.
55616         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55617
55618         Avoid SA_ namespace.
55619         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55620         Reported by Ralf Wildenhues.
55621
55622         Avoid test failure due to SA_RESTORER.
55623         * tests/test-sigaction.c (SA_MASK): New macro.
55624         (main): Avoid failing due to extension flags being set.
55625         Reported by Jim Meyering.
55626
55627         Revert use of sig-handler.h in sigprocmask.c.
55628         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55629         it requires the existence of struct sigaction.
55630         * lib/sigprocmask.c (handler_t): Restore typedef.
55631         (rpl_signal, old_handlers): Use local type.
55632
55633 2008-06-22  Bruno Haible  <bruno@clisp.org>
55634
55635         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55636         conditionally.
55637         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55638
55639 2008-06-22  Bruno Haible  <bruno@clisp.org>
55640
55641         * doc/posix-functions/siginterrupt.texi: Move note.
55642
55643         * lib/signal.in.h (SA_RESTART): New macro.
55644         * lib/sigaction.c: Update comment.
55645
55646         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55647
55648         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55649         (gl_PREREQ_SIGPROCMASK): Invoke it.
55650         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55651
55652         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55653
55654         * lib/sigprocmask.c: Update a comment.
55655
55656 2008-06-21  Eric Blake  <ebb9@byu.net>
55657
55658         Use sigaction module rather than signal().
55659         * modules/c-stack (Depends-on): Add sigaction.
55660         * modules/fatal-signal (Depends-on): Likewise.
55661         * modules/nanosleep (Depends-on): Likewise.
55662         * modules/sigprocmask (Files): Add sig-handler.h.
55663         * modules/sigaction (Files): Likewise.
55664         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55665         Eggert.
55666         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55667         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55668         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55669         (init_fatal_signals): Likewise.
55670         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55671         (siginterrupt): Delete fallback.
55672         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55673         instead.
55674         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55675         siginterrupt.
55676
55677         New module sigaction, for mingw.
55678         * modules/sigaction: New module...
55679         * modules/sigaction-tests: ...and its test.
55680         * m4/sigaction.m4: New file.
55681         * lib/sigaction.c: Likewise.
55682         * tests/test-sigaction.c: Likewise.
55683         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55684         * modules/signal (Makefile.am): Likewise.
55685         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55686         needed.
55687         * doc/posix-headers/signal.texi (signal.h): Mention provided
55688         types.
55689         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55690         that sigaction is preferable.
55691         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55692         module.
55693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55694         sigaction.
55695
55696         Improve robustness of sigprocmask by overriding signal.
55697         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55698         is in use.
55699         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55700         (SIGKILL, SIGSTOP): Provide fallbacks.
55701         (rpl_signal): Implement.
55702         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55703         signal can be called inside handlers.
55704
55705         Fix nanosleep module on mingw.
55706         * modules/nanosleep (Depends-on): Add sys_select.
55707         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55708
55709         Fix licensing of sigprocmask.
55710         * modules/raise (License): Relicense as LGPL.
55711
55712 2008-06-21  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55715         result if it contains question marks.
55716         Reported by Michael Geng <linux@michaelgeng.de>.
55717
55718 2008-06-19  Bruno Haible  <bruno@clisp.org>
55719
55720         Fix CVS-ism.
55721         * doc/gnulib.texi: Include updated-stamp.texi.
55722         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55723         (updated-stamp.texi): New rule.
55724         (gnulib.info): Depend on it.
55725         * doc/.gitignore: Add updated-stamp.texi.
55726         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55727
55728 2008-06-19  Bruno Haible  <bruno@clisp.org>
55729
55730         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55731         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55732
55733 2008-06-19  Eric Blake  <ebb9@byu.net>
55734
55735         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55736         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55737         Reported by Stepan Kasal.
55738
55739 2008-06-18  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55742         Reported by Eric Blake.
55743
55744 2008-06-18  Eric Blake  <ebb9@byu.net>
55745
55746         Work around cygwin 1.5.25 strsignal bug.
55747         * tests/test-strsignal.c: Allow for const char *.
55748         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55749
55750 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55751
55752         * users.txt: Update URL to article and add author/date
55753         information.
55754
55755 2008-06-17  Bruno Haible  <bruno@clisp.org>
55756
55757         New macro gl_DISABLE_THREADS.
55758         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55759         if the user did not pass --enable-threads or --disable-threads option.
55760         (gl_DISABLE_THREADS): New macro.
55761         Reported by Eric Blake <ebb9@byu.net>.
55762
55763 2008-06-17  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55766         when the macro ignores it.
55767         Based on a patch by Eric Blake <ebb9@byu.net>.
55768
55769 2008-06-17  Bruno Haible  <bruno@clisp.org>
55770
55771         * modules/tls (License): Change to LGPLv2+.
55772         Reported by Eric Blake.
55773
55774 2008-06-17  Eric Blake  <ebb9@byu.net>
55775
55776         Simplify c-stack prerequisites.
55777         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55778         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55779         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55780         check.
55781         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55782         <sys/resource.h>.
55783
55784         Move c-stack test into testsuite.
55785         * modules/c-stack-tests: New file.
55786         * lib/c-stack.c [DEBUG]: Move test program...
55787         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55788         fail test if sigaltstack is lacking.
55789         * tests/test-c-stack.sh: New driver file.
55790
55791 2008-06-16  Eric Blake  <ebb9@byu.net>
55792
55793         Use raise module consistently.
55794         * modules/fatal-signal (Depends-on): Add raise.
55795         * modules/sigprocmask (Depends-on): Likewise.
55796         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55797         * lib/sigprocmask.c (sigprocmask): Likewise.
55798         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55799         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55800
55801         Fix compliance bug in sigpending.
55802         * lib/sigprocmask.c (sigpending): Return pending array via
55803         parameter, not return value.
55804
55805 2008-06-14  Eric Blake  <ebb9@byu.net>
55806
55807         Improve obstack-printf test code.
55808         * tests/test-obstack-printf.c (test_function): Fix comment, and
55809         simplify usage of obstack_* in macros.  Add a test for coverage.
55810         Reported by Bruno Haible.
55811
55812 2008-06-14  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55815         array size as a constant, not as a const variable.
55816         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55817         AC_USE_SYSTEM_EXTENSIONS.
55818         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
55819         Test whether the obstack_printf function actually exists.
55820         * modules/obstack-printf (Depends-on): Add extensions.
55821         (Include): Remove obstack.h.
55822         * modules/obstack-printf-posix (Depends-on): Add extensions.
55823         (Include): Remove obstack.h.
55824
55825 2008-06-13  Eric Blake  <ebb9@byu.net>
55826
55827         Add obstack-printf and obstack-printf-posix modules.
55828         * modules/obstack-printf: New file.
55829         * modules/obstack-printf-posix: Likewise.
55830         * MODULES.html.sh (Misc): Mention them.
55831         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
55832         Likewise.
55833         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
55834         Likewise.
55835         * modules/stdio (Makefile.am): Accomodate new modules.
55836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55837         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
55838         Declare.
55839         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
55840         functions.
55841         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
55842         (gl_REPLACE_OBSTACK_PRINTF): New macros
55843         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
55844         * tests/test-obstack-printf.c: New file.
55845         * modules/obstack-printf-tests: Likewise.
55846         * modules/obstack-printf-posix-tests: Likewise.
55847
55848 2008-06-11  Bruno Haible  <bruno@clisp.org>
55849
55850         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
55851         * lib/open.c: Include errno.h.
55852         (open): Fail when attempting to write to a file that has a trailing
55853         slash.
55854         * tests/test-open.c (main): Test against trailing slash bug.
55855         * doc/posix-functions/open.texi: Mention the trailing slash bug.
55856
55857 2008-06-10  Bruno Haible  <bruno@clisp.org>
55858
55859         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
55860         for $? to work inside the trap command, with various /bin/sh-s.
55861         * tests/test-vc-list-files-cvs.sh: Likewise.
55862
55863 2008-06-10  Bruno Haible  <bruno@clisp.org>
55864
55865         * lib/acl-internal.h: Don't include gettext.h here.
55866         * lib/set-mode-acl.c: Include gettext.h here.
55867         * lib/copy-acl.c: Likewise.
55868
55869 2008-06-10  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
55872         * lib/wait-process.c (wait_subprocess): Likewise.
55873         * lib/execute.h (execute): Add termsigp argument.
55874         * lib/execute.c (execute): Likewise.
55875         * lib/csharpcomp.c (compile_csharp_using_pnet,
55876         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
55877         * lib/csharpexec.c (execute_csharp_using_pnet,
55878         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
55879         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
55880         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
55881         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
55882         is_jikes_present): Update.
55883         * lib/javaexec.c (execute_java_class): Update.
55884         * lib/javaversion.c (execute_and_read_line): Update.
55885         * NEWS: Document the changes.
55886         Reported by Eric Blake.
55887
55888 2008-06-10  Eric Blake  <ebb9@byu.net>
55889
55890         Add missing include.
55891         * tests/test-strstr.c (includes): Add <signal.h>.
55892         * tests/test-strcasestr.c (includes): Likewise.
55893         * tests/test-memmem.c (includes): Likewise.
55894
55895 2008-06-10  Bruno Haible  <bruno@clisp.org>
55896
55897         * lib/wait-process.c (wait_subprocess): Add an assertion.
55898
55899 2008-06-10  Bruno Haible  <bruno@clisp.org>
55900
55901         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
55902
55903 2008-06-10  Bruno Haible  <bruno@clisp.org>
55904
55905         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
55906         using alarm().
55907         * tests/test-strcasestr.c (main): Likewise.
55908         * tests/test-strstr.c (main): Likewise.
55909
55910 2008-06-09  Bruno Haible  <bruno@clisp.org>
55911
55912         Work around the Solaris 10 ACE ACLs ABI change.
55913         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
55914         declare if ACL_NO_TRIVIAL is present.
55915         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
55916         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
55917         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
55918         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
55919         define if ACL_NO_TRIVIAL is present.
55920         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
55921         and use the current ABI.
55922         (file_has_acl): Use same #if condition as elsewhere.
55923         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
55924         in use, and use the current ABI.
55925         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
55926         Reported by Jim Meyering.
55927
55928 2008-06-09  Eric Blake  <ebb9@byu.net>
55929
55930         Work around environments that (stupidly) ignore SIGALRM.
55931         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
55932         before using alarm().
55933         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55934         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55935         Reported by Ian Beckwith <ianb@erislabs.net>.
55936
55937         Produce autobuild blurb earlier in log.
55938         * modules/autobuild (configure.ac-early): Move AB_INIT here.
55939
55940 2008-06-09  Jim Meyering  <meyering@redhat.com>
55941         and OndÅ™ej Vašík  <ovasik@redhat.com>
55942
55943         utimens.c: correct kernel bug work-around
55944         OndÅ™ej Vašík found that the invalid return value of 280 indicates
55945         failure, not success, and the kernel bug we're trying to work
55946         around affects not just the utimensat call, but also the fallback
55947         futimens call.
55948         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55949         not success.
55950         [HAVE_FUTIMENS]: Use the same work-around, here.
55951
55952 2008-06-09  Jim Meyering  <meyering@redhat.com>
55953
55954         add more guards around definition of ACE_-related code
55955         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55956         ALLOW and ACE_OWNER are also defined.
55957
55958 2008-06-08  Bruno Haible  <bruno@clisp.org>
55959
55960         * lib/acl-internal.h: Add me as co-author.
55961         * lib/file-has-acl.c: Likewise.
55962         * lib/set-mode-acl.c: Likewise.
55963         * lib/copy-acl.c: Likewise.
55964
55965 2008-06-08  Bruno Haible  <bruno@clisp.org>
55966
55967         Add support for AIX ACLs.
55968         * lib/acl-internal.h (acl_nontrivial): New declaration.
55969         * lib/file-has-acl.c (acl_nontrivial): New function.
55970         (file_has_acl): Add implementation using AIX 4 ACL API.
55971         * lib/set-mode-acl.c (qset_acl): Likewise.
55972         * lib/copy-acl.c (qcopy_acl): Likewise.
55973
55974 2008-06-08  Bruno Haible  <bruno@clisp.org>
55975
55976         Add support for HP-UX ACLs.
55977         * lib/acl-internal.h (acl_nontrivial): New declaration.
55978         * lib/file-has-acl.c (acl_nontrivial): New function.
55979         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55980         * lib/set-mode-acl.c (qset_acl): Likewise.
55981         * lib/copy-acl.c (qcopy_acl): Likewise.
55982
55983 2008-06-08  Bruno Haible  <bruno@clisp.org>
55984
55985         Add support for Cygwin ACLs.
55986         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55987         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55988         the chmod_or_fchmod call.
55989         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55990
55991 2008-06-08  Bruno Haible  <bruno@clisp.org>
55992
55993         Fix bug with setuid modes in Solaris 10+ code.
55994         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55995         succeeded, when the mode contains some special bits.
55996
55997 2008-06-08  Bruno Haible  <bruno@clisp.org>
55998
55999         Add support for Solaris 7..10 ACLs.
56000         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56001         declarations.
56002         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56003         functions.
56004         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56005         * lib/set-mode-acl.c (qset_acl): Likewise.
56006         * lib/copy-acl.c (qcopy_acl): Likewise.
56007
56008 2008-06-08  Bruno Haible  <bruno@clisp.org>
56009
56010         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56011         declaration.
56012         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56013         (acl_access_nontrivial): Remove MacOS X case.
56014         (file_has_acl): Use acl_extended_nontrivial.
56015         * lib/copy-acl.c (qcopy_acl): Likewise.
56016
56017 2008-06-08  Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56020
56021 2008-06-08  Jim Meyering  <meyering@redhat.com>
56022
56023         * modules/acl (Maintainer): Add Bruno Haible.
56024
56025 2008-06-07  Bruno Haible  <bruno@clisp.org>
56026
56027         Improve support for Tru64 ACLs.
56028         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56029         ACL on OSF/1.
56030
56031 2008-06-07  Bruno Haible  <bruno@clisp.org>
56032
56033         Add support for MacOS X ACLs.
56034         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56035         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56036         * lib/set-mode-acl.c (qset_acl): Likewise.
56037         * lib/copy-acl.c (qcopy_acl): Likewise.
56038
56039 2008-06-07  Bruno Haible  <bruno@clisp.org>
56040
56041         Fix memory leak introduced on 2008-05-22.
56042         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56043         use.
56044
56045 2008-06-07  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56048         to construct an empty ACL.
56049
56050 2008-06-07  Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56053         precisely.
56054         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56055
56056 2008-06-07  Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56059         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56060
56061 2008-06-07  Bruno Haible  <bruno@clisp.org>
56062
56063         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56064         regardless of POSIX.
56065         * doc/posix-functions/_longjmp.texi: Likewise.
56066         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56067         SystemV platform in this case.
56068
56069 2008-06-06  Eric Blake  <ebb9@byu.net>
56070
56071         Document abort() bugs.
56072         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56073
56074         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56075         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56076         sigsetjmp.
56077         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56078         siglongjmp, but only as a macro.
56079         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56080         is obsolete.
56081         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56082
56083         Tweak documentation to cover cygwin argz bugs.
56084         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56085         argz bug fix; no code change needed since no cygwin releases
56086         occurred between the last fix and the bug being tested.
56087         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56088         module and recently fixed cygwin bugs.
56089         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56090         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56091         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56092         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56093         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56094         Likewise.
56095         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56096         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56097         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56098         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56099         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56100         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56101         Likewise.
56102
56103         Avoid gcc warning on cygwin.
56104         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56105         !ACL_NO_TRIVIAL]: Avoid unused variable.
56106
56107 2008-06-05  Eric Blake  <ebb9@byu.net>
56108
56109         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56110         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56111         git-version-gen fails to come up with a version.
56112         Reported by Simon Josefsson.
56113
56114 2008-06-05  Jim Meyering  <meyering@redhat.com>
56115             Paul Eggert  <eggert@cs.ucla.edu>
56116
56117         utimens.c: work around a probable Linux kernel bug
56118         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56119         appears to be a kernel bug that causes utimensat to return 280
56120         instead of 0, indicating success.
56121
56122 2008-06-04  Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56125         2008-06-01 commit.
56126
56127 2008-06-04  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56130         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56131         (file_has_acl): Use it. Save errno afterwards.
56132         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56133
56134 2008-06-03  Bruno Haible  <bruno@clisp.org>
56135
56136         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56137         draft code. Simplify #ifs.
56138         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56139         Put Solaris code after POSIX-draft code. Fix comments regarding
56140         Solaris 10, HP-UX. Mention Cygwin.
56141         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56142
56143 2008-06-03  Eric Blake  <ebb9@byu.net>
56144
56145         Provide fallback for older kernels.
56146         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56147         Provide runtime fallback if kernel lacks support.
56148         Reported by Mike Frysinger.
56149
56150 2008-06-02  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56153         it exists.
56154
56155 2008-06-02  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56158         * lib/copy-acl.c (qcopy_acl): Update comment.
56159
56160 2008-06-02  Bruno Haible  <bruno@clisp.org>
56161
56162         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56163         like ACL APIs.
56164
56165 2008-06-02  Bruno Haible  <bruno@clisp.org>
56166
56167         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56168         * tests/test-set-mode-acl.sh: Likewise.
56169         * tests/test-copy-acl.sh: Likewise.
56170         * tests/test-copy-file.sh: Likewise.
56171
56172 2008-06-02  Bruno Haible  <bruno@clisp.org>
56173
56174         * tests/test-file-has-acl.sh: Remove unused code.
56175
56176 2008-06-01  Bruno Haible  <bruno@clisp.org>
56177
56178         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56179         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56180         messages.
56181         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56182
56183 2008-06-01  Bruno Haible  <bruno@clisp.org>
56184
56185         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56186         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56187         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56188         APIs.
56189         * modules/acl-tests (configure.ac): Remove tests now contained in
56190         m4/acl.m4.
56191
56192 2008-06-02  Jim Meyering  <meyering@redhat.com>
56193
56194         announce-gen: use a better key-server host name
56195         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56196         it may be more consistently reliable.  Suggested by Werner Koch
56197         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56198
56199 2008-06-01  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56202         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56203
56204 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56205
56206         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56207
56208 2008-06-01  Bruno Haible  <bruno@clisp.org>
56209
56210         New ACL tests.
56211         * tests/test-file-has-acl.sh: New file.
56212         * tests/test-file-has-acl.c: New file.
56213         * tests/test-set-mode-acl.sh: New file.
56214         * tests/test-set-mode-acl.c: New file.
56215         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56216         * tests/test-copy-acl.c: New file.
56217         * modules/acl-tests: New file, based on modules/copy-file-tests.
56218         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56219         (Depends-on): Add acl-tests.
56220         (configure.ac): Remove checks.
56221         (Makefile.am): Don't create test-sameacls program here any more.
56222
56223 2008-06-01  Bruno Haible  <bruno@clisp.org>
56224
56225         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56226         * tests/test-sameacls.c: Include progname.h.
56227         (main): Invoke set_program_name. Portability fixes for MacOS X,
56228         Solaris, HP-UX.
56229
56230 2008-06-01  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56233         function.
56234         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56235
56236 2008-06-01  Bruno Haible  <bruno@clisp.org>
56237
56238         * modules/rpmatch (Depends-on): Add strdup.
56239
56240 2008-06-01  Bruno Haible  <bruno@clisp.org>
56241
56242         * lib/pipe.c: Include unistd-safer.h.
56243         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56244         * modules/pipe (Depends-on): Add unistd-safer.
56245
56246 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56247
56248         * modules/autobuild (configure.ac): Call AB_INIT.
56249
56250 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56251
56252         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56253         Suggested by Bruno Haible <bruno@clisp.org>.
56254
56255 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56256
56257         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56258         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56259         <bruno@clisp.org>.
56260
56261 2008-05-29  Eric Blake  <ebb9@byu.net>
56262
56263         Prefer new POSIX 200x interfaces over futimesat.
56264         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56265         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56266         when available.
56267         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56268
56269 2008-05-28  Bruno Haible  <bruno@clisp.org>
56270
56271         * modules/stpcpy (License): Change to LGPLv2+.
56272         Requested by David Lutterkort <dlutter@redhat.com>.
56273
56274 2008-05-27  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56277         current mingw.
56278         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56279
56280 2008-05-27  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/iconv_open (Link): New section, from module 'iconv'.
56283         * modules/striconv (Link): Likewise.
56284         * modules/striconveh (Link): Likewise.
56285         * modules/xstriconv (Link): Likewise.
56286         * modules/unicodeio (Link): Likewise.
56287         * modules/propername (Link): Likewise.
56288         Reported by Jim Meyering.
56289
56290 2008-05-26  Jim Meyering  <meyering@redhat.com>
56291
56292         sha256: do not artificially restrict buffer length to be < 2^32
56293         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56294         uint32_t to size_t.
56295         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56296         to match.
56297
56298         avoid unaligned access errors, e.g., on sparc
56299         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56300         direct access through a possibly-unaligned uint64* pointer.
56301         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56302         direct access through a possibly-unaligned uint32* pointer.
56303         Prompted by this patch from Tom "spot" Callaway:
56304         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56305
56306         sha512.c: fix typo in comment
56307         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56308
56309 2008-05-25  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56312         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56313         (Makefile.am): Update lib_SOURCES.
56314
56315 2008-05-25  Bruno Haible  <bruno@clisp.org>
56316
56317         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56318
56319 2008-05-25  Jim Meyering  <meyering@redhat.com>
56320
56321         useless-if-before-free: freed expr may have white-space differences
56322         * build-aux/useless-if-before-free: Recognize cases in which the
56323         freed expression differs from the tested one in embedded white
56324         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56325         $1 was used, so we can't make any regexp shy.  Improved tests now
56326         detect this.
56327
56328         useless-if-before-free: accept white space in the expression.
56329         * build-aux/useless-if-before-free: For now, any white space
56330         in the expression must be identical in the free argument.
56331
56332         useless-if-before-free: efficiency tweak
56333         * build-aux/useless-if-before-free: Make the expression-matching
56334         regexp "shy".
56335         Make the *outer* regexp shy, not the expr-matching one.
56336
56337         update code-in-comment to accept cast of free arg
56338         * build-aux/useless-if-before-free: Update regexp.
56339
56340 2008-05-25  Bruno Haible  <bruno@clisp.org>
56341
56342         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56343         * modules/copy-file-tests (Files, Makefile.am): Update.
56344         * tests/test-copy-file.c (func_test_copy): Update.
56345
56346 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56347
56348         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56349
56350 2008-05-23  Bruno Haible  <bruno@clisp.org>
56351
56352         Improve support for ACLs on OSF/1.
56353         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56354         Remove fallback for unknown flavors of ACLs.
56355
56356 2008-05-22  Bruno Haible  <bruno@clisp.org>
56357
56358         Add support for ACLs on OSF/1.
56359         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56360         replacements.
56361         (acl_free_text): New macro fallback.
56362         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56363         acl_free.
56364         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56365         acl_free_text function. Require AC_C_INLINE.
56366
56367 2008-05-22  Bruno Haible  <bruno@clisp.org>
56368
56369         Make copy_acl work on MacOS X 10.5.
56370         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56371         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56372         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56373         If MODE_INSIDE_ACL, don't assume that every system has the same text
56374         representation for ACLs as FreeBSD.
56375         * lib/copy-acl.c (copy_acl): Add support for platforms with
56376         !MODE_INSIDE_ACL.
56377         * lib/file-has-acl.c (file_has_acl): Likewise.
56378         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56379         FreeBSD, MacOS X, or IRIX, respectively.
56380
56381 2008-05-22  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/acl.h: Don't include <sys/acl.h>.
56384         (GETACLCNT): Move fallback to lib/acl-internal.h.
56385         * lib/acl-internal.h: Include <sys/acl.h> here.
56386         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56387
56388 2008-05-22  Bruno Haible  <bruno@clisp.org>
56389
56390         Split off copy_acl function to separate file.
56391         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56392         * lib/acl.c (copy_acl): Moved function to separate file.
56393         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56394         * modules/acl (Files): Add lib/copy-acl.c.
56395         (Makefiles.am): Augment lib_SOURCES.
56396
56397 2008-05-22  Bruno Haible  <bruno@clisp.org>
56398
56399         * modules/copy-file-tests: New file.
56400         * tests/test-copy-file.sh: New file.
56401         * tests/test-copy-file.c: New file.
56402         * tests/test-copy-file-sameacls.c: New file.
56403
56404 2008-05-22  Eric Blake  <ebb9@byu.net>
56405
56406         Avoid gcc warning.
56407         * tests/test-memcmp.c (main): Pass NULL indirectly.
56408
56409 2008-05-21  Bruno Haible  <bruno@clisp.org>
56410
56411         Add reference doc about ACLs.
56412         * doc/acl-resources.txt: New file.
56413         * doc/acl-cygwin.txt: New file.
56414
56415 2008-05-21  Bruno Haible  <bruno@clisp.org>
56416
56417         Avoid one more warning from gcc.
56418         * lib/vasnprintf.c (IF_LINT): Update comments.
56419         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56420
56421 2008-05-21  Jim Meyering  <meyering@redhat.com>
56422
56423         avoid a warning from gcc
56424         * lib/vasnprintf.c (IF_LINT): Define.
56425         (scale10_round_decimal_long_double):
56426         Use it to avoid a "may be used uninitialized" warning.
56427         (scale10_round_decimal_double): Likewise.
56428
56429 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56430
56431         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56432         declared.
56433
56434 2008-05-20  Bruno Haible  <bruno@clisp.org>
56435
56436         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56437         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56438
56439 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56440
56441         * modules/memcmp-tests: New file.
56442         * tests/test-memcmp.c: New file.
56443
56444 2008-05-19  Bruno Haible  <bruno@clisp.org>
56445
56446         * modules/propername (Notice, configure.ac): Put quoted "..." into
56447         --keyword option.
56448         * lib/propername.h: Update comments accordingly.
56449         Reported by Eric Blake.
56450
56451 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56452
56453         * modules/getpass-gnu (Depends-on): Add fseeko.
56454
56455 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56456
56457         * modules/base64-tests: New file.
56458
56459 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56460
56461         * lib/base64.c (base64_decode_ctx): If a decode context structure
56462         was passed in use it to ignore newlines.  If a context structure
56463         was _not_ passed in, continue to treat newlines as garbage (this
56464         is the historical behavior).  Formerly base64_decode.
56465         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56466         takes a decode context structure.
56467         * lib/base64.h (base64_decode): Macro for four-argument calls.
56468         (base64_decode_alloc): Likewise.
56469         * lib/base64.c (base64_decode_ctx): If a decode context structure
56470         was passed in use it to ignore newlines.  If a context structure
56471         was _not_ passed in, continue to treat newlines as garbage (this
56472         is the historical behavior).  Formerly base64_decode.
56473         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56474         takes a decode context structure.
56475         * lib/base64.h (base64_decode): Macro for four-argument calls.
56476         (base64_decode_alloc): Likewise.
56477
56478 2008-05-19  Jim Meyering  <meyering@redhat.com>
56479
56480         avoid a warning from gcc
56481         * lib/trim.c (IF_LINT): Define.
56482         (trim2): Use it to avoid a "may be used uninitialized" warning.
56483
56484         Fix doc typo.
56485         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56486
56487 2008-05-19  Bruno Haible  <bruno@clisp.org>
56488
56489         * doc/glibc-functions/getpass.texi: Document limits of other
56490         implementations.
56491
56492 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56493             Bruno Haible <bruno@clisp.org>
56494
56495         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56496
56497 2008-05-18  Bruno Haible  <bruno@clisp.org>
56498
56499         * modules/propername: New file, from GNU gettext.
56500         * lib/propername.h: New file, from GNU gettext.
56501         * lib/propername.c: New file, from GNU gettext.
56502         * MODULES.html.sh (Internationalization functions): Add propername.
56503
56504 2008-05-16  Jim Meyering  <meyering@redhat.com>
56505             Bruno Haible  <bruno@clisp.org>
56506
56507         Avoid some warnings from "gcc -Wshadow".
56508         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56509
56510 2008-05-15  Eric Blake  <ebb9@byu.net>
56511
56512         Extend previous patch to cygwin 1.7.0.
56513         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56514         fast implementation in cygwin >= 1.7.0.
56515         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56516         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56517
56518 2008-05-15  Bruno Haible  <bruno@clisp.org>
56519
56520         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56521         implementation in glibc >= 2.9.
56522         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56524
56525 2008-05-15  Bruno Haible  <bruno@clisp.org>
56526
56527         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56528         (Unicode string functions): Add unilbrk/*.
56529         Reported by Karl Berry.
56530
56531 2008-05-15  Eric Blake  <ebb9@byu.net>
56532
56533         Fix violation of <stdbool.h> replacement in regex.
56534         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56535         * lib/regexec.c (re_search_internal): Likewise.
56536         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56537
56538 2008-05-15  Jim Meyering  <meyering@redhat.com>
56539
56540         avoid distracting test output when git or cvs is not found
56541         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56542         * tests/test-vc-list-files-git.sh: Likewise.
56543
56544 2008-05-15  Eric Blake  <ebb9@byu.net>
56545
56546         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56547         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56548         glibc version.
56549         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56550         * doc/posix-functions/strstr.texi (strstr): Likewise.
56551         * lib/str-two-way.h (MAX): Sychronize with glibc.
56552
56553 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56554
56555         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56556         opr.ctx_type.
56557         (calc_first): Initialize constraint field.
56558         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56559         Fix grammar.
56560         (duplicate_node): Merge constraint field for all node types.
56561         (calc_eclosure_iter): Look at constraint field for all node types.
56562         * lib/regex_internal.c (create_cd_newstate): Don't look at
56563         opr.ctx_type.
56564
56565 2008-05-14  Bruno Haible  <bruno@clisp.org>
56566
56567         Help GCC to do better code generation.
56568         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56569         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56570         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56571         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56572         Declare with attribute 'malloc' if supported.
56573
56574 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56575
56576         use "echo STR|wc -c" rather than unportable "expr length STR"
56577         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56578         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56579
56580 2008-05-14  Jim Meyering  <meyering@redhat.com>
56581
56582         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56583         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56584         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56585         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56586         via Collin Lasse.
56587
56588 2008-05-14  Eric Blake  <ebb9@byu.net>
56589
56590         Avoid quadratic growth in gl_LIBSOURCES.
56591         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56592         Suggested by Bruno Haible.
56593
56594         Test xmemdup0.
56595         * modules/xmemdup0-tests: New file.
56596         * tests/test-xmemdup0.c: Likewise.
56597
56598 2008-05-13  Eric Blake  <ebb9@byu.net>
56599
56600         Split xmemdup0 into its own module.
56601         * modules/xmemdup0: New file.
56602         * lib/xmemdup0.h: Likewise.
56603         * lib/xmemdup0.c: Likewise.
56604         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56605         * lib/xalloc.h (xmemdup0): Remove.
56606         * lib/xmalloc.c (xmemdup0): Likewise.
56607
56608 2008-05-13  Eric Blake  <ebb9@byu.net>
56609             Bruno Haible  <bruno@clisp.org>
56610
56611         Reduce number of forks required during autoconf.
56612         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56613         and gl_LIBSOURCES_DIR.
56614         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56615         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56616         m4_syscmd per file.
56617         <m4_foreach_w>: Move...
56618         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56619
56620 2008-05-13  Eric Blake  <ebb9@byu.net>
56621
56622         * gnulib-tool: Fix various comment typos.
56623
56624 2008-05-12  Bruno Haible  <bruno@clisp.org>
56625
56626         Tailor the linebreaking algorithm.
56627         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56628
56629 2008-05-12  Bruno Haible  <bruno@clisp.org>
56630
56631         Update to Unicode 5.0.0.
56632         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56633         LBP_JV, LBP_JT. Redistribute values.
56634         (unilbrk_table): Change size.
56635         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56636         Unicode TR#14 rev. 22.
56637         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56638         LBP_JV, LBP_JT. Redistribute values.
56639         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56640         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56641         Update.
56642         * lib/unilbrk/lbrkprop1.h: Regenerated.
56643         * lib/unilbrk/lbrkprop2.h: Regenerated.
56644         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56645         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56646         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56647         Likewise.
56648         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56649         Likewise.
56650         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56651         result.
56652         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56653         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56654         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56655         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56656         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56657         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56658
56659 2008-05-11  Bruno Haible  <bruno@clisp.org>
56660
56661         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56662
56663 2008-05-11  Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56666         * modules/unilbrk/gen-lbrk: New file.
56667
56668 2008-05-11  Bruno Haible  <bruno@clisp.org>
56669
56670         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56671         * m4/sha512.m4 (gl_SHA512): Likewise.
56672
56673 2008-05-11  Jim Meyering  <meyering@redhat.com>
56674
56675         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56676         * modules/crypto/sha256: New file.
56677         * modules/crypto/sha512: Likewise.
56678         * lib/sha256.c: Likewise.
56679         * lib/sha256.h: Likewise.
56680         * lib/sha512.c: Likewise.
56681         * lib/sha512.h: Likewise.
56682         * lib/u64.h: Likewise.
56683         * m4/sha256.m4: Likewise.
56684         * m4/sha512.m4: Likewise.
56685         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56686
56687 2008-05-10  Bruno Haible  <bruno@clisp.org>
56688
56689         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56690         (Input/Output <stdio.h>): Add xprintf.
56691         (Signal handling <signal.h>): Add strsignal.
56692         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56693         (Core language properties): Add func.
56694         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56695         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56696         strings.
56697         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56698         (Input/output): New section.
56699         (File system functions): Add openat-die, stat-macros.
56700         (Networking functions): Add sockets.
56701         (Unicode string functions): Add unictype/*.
56702         (Support for building libraries and executables): Add gperf.
56703         (Support for building documentation): Add agpl-3.0.
56704         (Misc): Add nocrash.
56705
56706 2008-05-10  Bruno Haible  <bruno@clisp.org>
56707
56708         * modules/unictype/gen-ctype: New file.
56709
56710 2008-05-10  Jim Meyering  <meyering@redhat.com>
56711
56712         Make chdir-safer.c more efficient on a system with no symlinks.
56713         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56714         also if ELOOP is zero.  Suggested by Bruno Haible.
56715
56716         Make chdir-safer.c slightly safer.
56717         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56718         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56719
56720         Avoid compile failure on systems without ELOOP (like mingw).
56721         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56722         Reported by Bruno Haible.
56723
56724 2008-05-10  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56727         (is_utf8_encoding): Use a case-insensitive comparison.
56728         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56729         streq.
56730
56731 2008-05-10  Bruno Haible  <bruno@clisp.org>
56732
56733         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56734         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56735         * lib/unilbrk/ulc-common.h (iconv_string_length,
56736         iconv_string_keeping_offsets): Remove declarations.
56737         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56738         Don't include <iconv.h>, streq.h, xsize.h.
56739         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56740         conversion.
56741         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56742         <iconv.h>, streq.h, xsize.h.
56743         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56744         conversion.
56745         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56746         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56747         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56748         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56749
56750 2008-05-10  Bruno Haible  <bruno@clisp.org>
56751
56752         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56753         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56754
56755         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56756         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56757
56758         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56759         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56760
56761         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56762         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56763
56764         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56765         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56766
56767         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56768         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56769
56770         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56771         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56772
56773         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56774         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56775
56776 2008-05-10  Bruno Haible  <bruno@clisp.org>
56777
56778         Split up 'linebreak' module.
56779         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56780         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56781         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56782         modifications.
56783         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56784         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56785         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56786         lib/linebreak.c.
56787         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56788         lib/linebreak.c.
56789         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56790         lib/linebreak.c.
56791         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56792         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56793         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56794         lib/linebreak.c.
56795         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56796         lib/linebreak.c.
56797         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56798         lib/linebreak.c.
56799         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56800         lib/linebreak.c.
56801         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56802         lib/linebreak.c.
56803         * modules/unilbrk/base: New file.
56804         * modules/unilbrk/tables: New file.
56805         * modules/unilbrk/u8-possible-linebreaks: New file.
56806         * modules/unilbrk/u16-possible-linebreaks: New file.
56807         * modules/unilbrk/u32-possible-linebreaks: New file.
56808         * modules/unilbrk/ulc-common: New file.
56809         * modules/unilbrk/ulc-possible-linebreaks: New file.
56810         * modules/unilbrk/u8-width-linebreaks: New file.
56811         * modules/unilbrk/u16-width-linebreaks: New file.
56812         * modules/unilbrk/u32-width-linebreaks: New file.
56813         * modules/unilbrk/ulc-width-linebreaks: New file.
56814         * lib/linebreak.h: Remove file.
56815         * lib/linebreak.c: Remove file.
56816         * m4/linebreak.m4: Remove file.
56817         * modules/linebreak: Remove file.
56818         * NEWS: Mention the changes.
56819
56820 2008-05-09  Eric Blake  <ebb9@byu.net>
56821
56822         Add xmemdup0.
56823         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
56824         implementation.
56825         * lib/xmalloc.c (xmemdup0): New C implementation.
56826
56827 2008-05-08  Bruno Haible  <bruno@clisp.org>
56828
56829         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
56830
56831 2008-05-07  Eric Blake  <ebb9@byu.net>
56832
56833         Support cross-compilation of <wctype.h>.
56834         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
56835         AC_CACHE_CHECK.
56836
56837 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
56838
56839         * build-aux/vc-list-files: Add support for bzr.
56840
56841 2008-05-03  Jim Meyering  <meyering@redhat.com>
56842
56843         avoid failed assertion with tight malloc
56844         * tests/test-getndelim2.c: Correct an off-by-one assertion.
56845
56846 2008-05-03  Simon Josefsson  <simon@josefsson.org>
56847
56848         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
56849         are needed from arpa/inet.h.
56850         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
56851         Reported by Bruno Haible.
56852
56853 2008-05-02  Jim Meyering  <meyering@redhat.com>
56854
56855         avoid compilation error on FreeBSD 6
56856         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
56857
56858 2008-05-01  Jim Meyering  <meyering@redhat.com>
56859
56860         useless-if-before-free: correct --help's exit status description
56861         * build-aux/useless-if-before-free (usage): Like grep, exit 0
56862         for one or more matches, etc.  Reported by Bruno Haible.
56863
56864         vc-list-files: make the stand-alone gnulib test work
56865         * modules/vc-list-files-tests (configure.ac):
56866         Define and AC_SUBST abs_aux_dir.
56867         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
56868         $(abs_top_srcdir) to each script and having each of them
56869         duplicate the work of setting PATH, set PATH here, using
56870         the new variable, abs_aux_dir instead.
56871         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
56872         * tests/test-vc-list-files-git.sh: Likewise.
56873         Reported by Bruno Haible.
56874
56875 2008-05-01  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/getndelim2.c (getndelim2): Fix newsize computation during
56878         reallocation. Rename 'done' to 'found_delimiter'.
56879
56880 2008-05-01  Jim Meyering  <meyering@redhat.com>
56881
56882         vc-list-files: accommodate /bin/sh like the one from Solaris 10
56883         * build-aux/vc-list-files: Use `...`, not $(...).
56884
56885 2008-04-30  Jim Meyering  <meyering@redhat.com>
56886
56887         add tests for vc-list-files
56888         * modules/vc-list-files-tests: New module.
56889         * tests/test-vc-list-files-cvs.sh: New file.
56890         * tests/test-vc-list-files-git.sh: New file.
56891
56892         avoid a warning from gcc
56893         * lib/getndelim2.c (IF_LINT): Define.
56894         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
56895
56896         vc-list-files: work properly with build-aux/cvsu, too
56897         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
56898         to all cvs-based clauses.
56899
56900         vc-list-files: work properly in the CVS+awk case, too
56901         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
56902
56903         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
56904         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
56905         take more than one file argument, so .  Add quotes, just in case $dir
56906         ever contains a shell meta-character.  Prompted by Soren Hansen in
56907         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
56908
56909 2008-04-29  Eric Blake  <ebb9@byu.net>
56910
56911         Optimize getndelim2 to use block operations when possible.
56912         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
56913         freadseek, and memchr2.
56914         * lib/getndelim2.c (getndelim2): Use them for block reads.
56915
56916 2008-04-29  Bruno Haible  <bruno@clisp.org>
56917
56918         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
56919         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56920         * modules/inet_ntop (Depends-on): Add extensions.
56921         * modules/inet_pton (Depends-on): Likewise.
56922         Reported by Simon Josefsson.
56923
56924 2008-04-29  Jim Meyering  <meyering@redhat.com>
56925
56926         When the is more than one match in a block, match all of them.
56927         * build-aux/useless-if-before-free: Iterate through each block
56928         until there are no more matches.
56929
56930         Fix broken useless-if-before-free script.
56931         * build-aux/useless-if-before-free: Fix typo: missing "?" after
56932         the expression to match cast of argument to free-like function.
56933
56934 2008-04-29  Eric Blake  <ebb9@byu.net>
56935
56936         Use new header.
56937         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
56938
56939 2008-04-29  Jim Meyering  <meyering@redhat.com>
56940
56941         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
56942         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
56943         by gnulib to exist and to declare e.g., inet_ntop.
56944         Don't include "inet_ntop.h", now removed.
56945
56946         * m4/arpa_inet_h.m4: Remove trailing blanks.
56947
56948 2008-04-29  Eric Blake  <ebb9@byu.net>
56949
56950         Silence valgrind on safe reads beyond potential array bounds.
56951         * lib/rawmemchr.valgrind: New file.
56952         * lib/strchrnul.valgrind: Likewise.
56953         * modules/rawmemchr (Files): Distribute new file.
56954         * modules/strchrnul (Files): Likewise.
56955         Suggested by Bruno Haible.
56956
56957 2008-04-29  Bruno Haible  <bruno@clisp.org>
56958
56959         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56960         (inet_ntop, inet_pton): Change portability warning's wording.
56961         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56962         Invoke gl_CHECK_NEXT_HEADERS.
56963         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56964         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56965         set ARPA_INET_H.
56966         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56967         * modules/arpa_inet (Description): No longer only for systems that
56968         lack it.
56969         (Depends-on): Add include_next.
56970         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56971         HAVE_ARPA_INET_H.
56972
56973 2008-04-29  Jim Meyering  <meyering@redhat.com>
56974
56975         * modules/mkdir (License): Re-license as LGPLv2+.
56976
56977 2008-04-29  Bruno Haible  <bruno@clisp.org>
56978
56979         * modules/rawmemchr (Maintainer): Set to Eric.
56980         * modules/strchrnul (Maintainer): Likewise.
56981
56982 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56983
56984         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56985         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56986
56987         * modules/arpa_inet (arpa/inet.h): Use them.
56988
56989 2008-04-28  Eric Blake  <ebb9@byu.net>
56990
56991         Test getndelim2.
56992         * modules/getndelim2-tests: New file.
56993         * tests/test-getndelim2.c: Likewise.
56994         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56995         stream.
56996         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56997
56998         * MODULES.html.sh: Document new module.
56999
57000 2008-04-20  Bruno Haible  <bruno@clisp.org>
57001
57002         * lib/c-stack.c (die): Use raise.
57003         * modules/c-stack (Depends-on): Add raise.
57004
57005 2008-04-28  Bruno Haible  <bruno@clisp.org>
57006
57007         Expect rpmatch to be declared.
57008         * lib/yesno.c (rpmatch): Remove declaration.
57009
57010         Declare rpmatch.
57011         * lib/stdlib.in.h (rpmatch): New declaration.
57012         * lib/rpmatch.c: Include <stdlib.h> first.
57013         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57014         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57016         HAVE_RPMATCH.
57017         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57018         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57019         (Include): Set to <stdlib.h>.
57020         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57021         HAVE_RPMATCH.
57022         * NEWS: Document the change.
57023
57024 2008-04-28  Bruno Haible  <bruno@clisp.org>
57025
57026         Change rpmatch to use nl_langinfo when appropriate.
57027         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57028         (N_): New macro.
57029         (localized_pattern): New function/macro.
57030         (try): Remove match, nomatch arguments. Copy the pattern into safe
57031         memory before caching it.
57032         (rpmatch): Use localized_pattern. Add translator comments.
57033         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57034         Suggested by Eric Blake.
57035         * modules/rpmatch (Depends-on): Add stdbool.
57036
57037 2008-04-28  Eric Blake  <ebb9@byu.net>
57038
57039         Add rawmemchr module, matching glibc.
57040         * modules/string (Makefile.am): New indicator.
57041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57042         * lib/string.in.h (rawmemchr): Declare when appropriate.
57043         * modules/rawmemchr: New file.
57044         * m4/rawmemchr.m4: Likewise.
57045         * lib/rawmemchr.c: Likewise.
57046         * modules/rawmemchr-tests: Likewise.
57047         * tests/test-rawmemchr.c: Likewise.
57048         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57049         module.
57050         * modules/strchrnul (Depends-on): Add rawmemchr.
57051         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57052
57053         Whitespace cleanup.
57054         * tests/test-strchrnul.c: Reindent.
57055         * lib/strchrnul.c: Likewise.
57056
57057         Optimize and test strchrnul.
57058         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57059         * modules/strchrnul-tests: New file.
57060         * tests/test-strchrnul.c: Likewise.
57061
57062         Remove intprops dependency.
57063         * modules/memchr (Depends-on): Remove intprops.
57064         * modules/memrchr (Depends-on): Likewise.
57065         * modules/memchr2 (Depends-on): Likewise.
57066         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57067         * lib/memrchr.c (__memrchr): Likewise.
57068         * lib/memrchr2.c (memchr2): Likewise.
57069         Reported by Simon Josefsson.
57070
57071 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57072
57073         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57074         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57075
57076 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57077
57078         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57079
57080         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57081
57082         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57083
57084         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57085         declarations.
57086         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57087
57088         * m4/inet_pton.m4: Don't check for header files.
57089
57090         * m4/inet_ntop.m4: Don't check for header files.
57091
57092 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57093
57094         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57095         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57096         trigger for cygwin).
57097         Reported by Bruno Haible  <bruno@clisp.org>.
57098
57099 2008-04-28  Bruno Haible  <bruno@clisp.org>
57100
57101         * doc/posix-functions/strdup.texi: Mention mingw problem.
57102
57103 2008-04-27  Bruno Haible  <bruno@clisp.org>
57104
57105         * modules/stat-time-tests (Depends-on): Add sleep.
57106         * tests/test-stat-time.c (force_unlink): New function.
57107         (cleanup): Use it.
57108         (test_mtime): Remove the ctime related tests.
57109         (test_ctime): New function, containing the ctime related tests.
57110         (main): Call test_ctime, except on native Windows platforms.
57111
57112 2008-04-27  Bruno Haible  <bruno@clisp.org>
57113
57114         * lib/rpmatch.c (rpmatch): Add some comments.
57115         Reported by James Youngman <jay@gnu.org>.
57116
57117 2008-04-27  Bruno Haible  <bruno@clisp.org>
57118
57119         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57120         quiet NaNs.
57121
57122 2008-04-27  Bruno Haible  <bruno@clisp.org>
57123
57124         Make test-yesno.sh work on mingw.
57125         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57126         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57127         (main): Set stdin to binary mode.
57128         * modules/yesno-tests (Depends-on): Add binary-io.
57129
57130 2008-04-27  Bruno Haible  <bruno@clisp.org>
57131
57132         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57133         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57134         argument that lie outside the IEEE 854 domain.
57135         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57136         (gl_ISFINITE): Use it.
57137         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57138
57139 2008-04-27  Bruno Haible  <bruno@clisp.org>
57140
57141         Allow local renaming in config.h.
57142         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57143
57144 2008-04-27  Bruno Haible  <bruno@clisp.org>
57145
57146         * lib/memchr.c (__memchr): Change type of 'i'.
57147         * lib/memchr2.c (memchr2): Likewise.
57148
57149 2008-04-26  Eric Blake  <ebb9@byu.net>
57150         and Bruno Haible  <bruno@clisp.org>
57151
57152         Optimize and test memrchr.
57153         * modules/memrchr (Depends-on): Add intprops.
57154         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57155         * modules/memrchr-tests: New file.
57156         * tests/test-memrchr.c: New file.
57157
57158 2008-04-26  Bruno Haible  <bruno@clisp.org>
57159
57160         Add tentative support for DragonFly BSD.
57161         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57162         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57163         fp.
57164         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57165         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57166         * lib/fpurge.c (fpurge): Likewise.
57167         * lib/freadable.c (freaadable): Likewise.
57168         * lib/freadahead.c (freadahead): Likewise.
57169         * lib/freading.c (freading): Likewise.
57170         * lib/freadptr.c (freadptr): Likewise.
57171         * lib/freadseek.c (freadptrinc): Likewise.
57172         * lib/fseeko.c (fseeko): Likewise.
57173         * lib/fseterr.c (fseterr): Likewise.
57174         * lib/fwritable.c (fwritable): Likewise.
57175         * lib/fwriting.c (fwriting): Likewise.
57176
57177 2008-04-26  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/stdio-impl.h: New file.
57180         * lib/fbufmode.c: Include stdio-impl.h.
57181         (fbufmode): Use fp_, remove redundant #defines.
57182         * lib/fflush.c: Include stdio-impl.h.
57183         (clear_ungetc_buffer): Remove redundant #defines.
57184         * lib/fpurge.c: Include stdio-impl.h.
57185         (fpurge): Remove redundant #defines.
57186         * lib/freadable.c: Include stdio-impl.h.
57187         (freadable): Remove redundant #defines.
57188         * lib/freadahead.c: Include stdio-impl.h.
57189         (freadahead): Remove redundant #defines.
57190         * lib/freading.c: Include stdio-impl.h.
57191         (freading): Remove redundant #defines.
57192         * lib/freadptr.c: Include stdio-impl.h.
57193         (freadptr): Remove redundant #defines.
57194         * lib/freadseek.c: Include stdio-impl.h.
57195         (freadptrinc): Remove redundant #defines.
57196         * lib/fseeko.c: Include stdio-impl.h.
57197         (rpl_fseeko): Remove redundant #defines.
57198         * lib/fseterr.c: Include stdio-impl.h.
57199         (fseterr): Remove redundant #defines.
57200         * lib/fwritable.c: Include stdio-impl.h.
57201         (fwritable: Remove redundant #defines.
57202         * lib/fwriting.c: Include stdio-impl.h.
57203         (fwriting): Remove redundant #defines.
57204         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57205         * modules/fflush (Files): Likewise.
57206         * modules/fpurge (Files): Likewise.
57207         * modules/freadable (Files): Likewise.
57208         * modules/freadahead (Files): Likewise.
57209         * modules/freading (Files): Likewise.
57210         * modules/freadptr (Files): Likewise.
57211         * modules/freadseek (Files): Likewise.
57212         * modules/fseeko (Files): Likewise.
57213         * modules/fseterr (Files): Likewise.
57214         * modules/fwritable (Files): Likewise.
57215         * modules/fwriting (Files): Likewise.
57216
57217 2008-04-26  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57220         restore_seek_optimization, update_fpos_cache): New functions, extracted
57221         from rpl_fflush.
57222         (rpl_fflush): Use them.
57223         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57224         (gl_REPLACE_FFLUSH): Use it.
57225
57226 2008-04-26  Bruno Haible  <bruno@clisp.org>
57227
57228         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57229         on Solaris.
57230         * tests/test-xstrtoimax.sh: Likewise.
57231         * tests/test-xstrtoumax.sh: Likewise.
57232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57233
57234 2008-04-26  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/memchr-tests: New file.
57237         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57238
57239 2008-04-26  Eric Blake  <ebb9@byu.net>
57240             Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/memchr.c: Include intprops.h.
57243         (__memchr): Optimize parallel detection of matching bytes. Rename local
57244         variables. Add explanatory comments.
57245
57246 2008-04-26  Bruno Haible  <bruno@clisp.org>
57247
57248         Fix module 'memchr', broken since 2000-10-28.
57249         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57250
57251 2008-04-26  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57254         comments.
57255
57256 2008-04-25  Eric Blake  <ebb9@byu.net>
57257
57258         Use native fstatat on cygwin 1.7.0.
57259         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57260         first.
57261
57262 2008-04-23  Eric Blake  <ebb9@byu.net>
57263
57264         Improve memchr2 performance.
57265         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57266         NUL bytes.
57267         * modules/memchr2 (Depends-on): Use intprops.h.
57268
57269 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57270
57271         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57272         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57273         <blp@cs.stanford.edu>.
57274
57275 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57276
57277         * lib/arpa_inet.in.h: New file.
57278
57279         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57280         (Makefile.am): Sed in substitute header file.
57281
57282         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57283         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57284
57285         * modules/inet_ntop (configure.ac): Use
57286         gl_ARPA_INET_MODULE_INDICATOR.
57287
57288         * modules/inet_pton (configure.ac): Use
57289         gl_ARPA_INET_MODULE_INDICATOR.
57290
57291 2008-04-22  Jim Meyering  <meyering@redhat.com>
57292
57293         * modules/verify (License): Re-license as LGPLv2+.
57294
57295 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57296
57297         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57298         parameter to void* as per POSIX standard (MinGW uses char*).
57299
57300 2008-04-21  Bruno Haible  <bruno@clisp.org>
57301
57302         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57303         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57304         Define to replacements if REPLACE_ISWCNTRL is 1.
57305         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57306         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57307         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57308         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57309         what it fixes.
57310         * doc/posix-functions/iswalpha.texi: Likewise.
57311         * doc/posix-functions/iswblank.texi: Likewise.
57312         * doc/posix-functions/iswcntrl.texi: Likewise.
57313         * doc/posix-functions/iswdigit.texi: Likewise.
57314         * doc/posix-functions/iswgraph.texi: Likewise.
57315         * doc/posix-functions/iswlower.texi: Likewise.
57316         * doc/posix-functions/iswprint.texi: Likewise.
57317         * doc/posix-functions/iswpunct.texi: Likewise.
57318         * doc/posix-functions/iswspace.texi: Likewise.
57319         * doc/posix-functions/iswupper.texi: Likewise.
57320         * doc/posix-functions/iswxdigit.texi: Likewise.
57321         Reported by Alain Guibert.
57322
57323 2008-04-21  Bruno Haible  <bruno@clisp.org>
57324
57325         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57326         Patch by Alain Guibert.
57327
57328 2008-04-21  Bruno Haible  <bruno@clisp.org>
57329
57330         Fix test failures on mingw.
57331         * tests/test-xstrtol.c (print_no_progname): New function.
57332         (main): Install it in error_print_progname hook.
57333         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57334         * tests/test-xstrtoimax.sh: Likewise.
57335         * tests/test-xstrtoumax.sh: Likewise.
57336
57337 2008-04-21  Bruno Haible  <bruno@clisp.org>
57338
57339         Fix test failure on mingw.
57340         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57341
57342 2008-04-21  Bruno Haible  <bruno@clisp.org>
57343
57344         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57345         Actually assign a value.
57346
57347 2008-04-20  Bruno Haible  <bruno@clisp.org>
57348
57349         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57350         take 2.
57351         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57352         'canonicalize-lgpl' module is also used.
57353         * lib/canonicalize-lgpl.c: Undo last change.
57354         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57355
57356 2008-04-20  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57359         config.h. Provide _mkdir based fallback for mingw.
57360         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57361         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57362         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57363         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57364         rather than defining mkdir in config.h.
57365         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57366         (gl_SYS_STAT_H_DEFAULTS): New macro.
57367         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57368         HAVE_IO_H any more.
57369         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57370         HAVE_DECL_MKDIR and HAVE_IO_H.
57371
57372 2008-04-20  Bruno Haible  <bruno@clisp.org>
57373
57374         * lib/isapipe.c: Port to native Windows platforms.
57375
57376 2008-04-20  Bruno Haible  <bruno@clisp.org>
57377
57378         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57379
57380 2008-04-21  Eric Blake  <ebb9@byu.net>
57381
57382         Work around preprocessors that don't handle UINTMAX_MAX.
57383         * lib/memchr2.c (memchr2): Avoid embedded #if.
57384         Reported by Alain Guibert, fix suggested by Bruno Haible.
57385
57386 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57387
57388         * doc/posix-functions/strftime.texi (strftime): Explain better
57389         Windows incompatibility.  Suggested by Micah Cowan
57390         <micah@cowan.name>.
57391
57392 2008-04-20  Bruno Haible  <bruno@clisp.org>
57393
57394         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57395         unistr/u8-mblen.
57396
57397 2008-04-20  Bruno Haible  <bruno@clisp.org>
57398
57399         Fix test failure on platforms with non-GNU iconv.
57400         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57401         (U_TO_U8): Use it, rather than u16_to_u8.
57402         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57403         units at the end of the input string.
57404         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57405
57406 2008-04-20  Bruno Haible  <bruno@clisp.org>
57407
57408         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57409         when the resulting length is 0.
57410         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57411
57412 2008-04-20  Bruno Haible  <bruno@clisp.org>
57413
57414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57415         works.
57416         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57417
57418 2008-04-20  Bruno Haible  <bruno@clisp.org>
57419
57420         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57421         * modules/tsearch-tests (configure.ac): Test for initstate function.
57422
57423 2008-04-20  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57426         for nlink_t if missing.
57427         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57428
57429 2008-04-19  Bruno Haible  <bruno@clisp.org>
57430
57431         Work around snprintf bug on Linux libc5.
57432         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57434         gl_SNPRINTF_SIZE1.
57435         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57436         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57437         that test failed.
57438         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57439         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57440         * modules/snprintf (Files): Add m4/printf.m4.
57441         * modules/vsnprintf (Files): Likewise.
57442         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57443         * doc/posix-functions/vsnprintf.texi: Likewise.
57444
57445 2008-04-19  Bruno Haible  <bruno@clisp.org>
57446
57447         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57448         from 0.0058 to less than 10^-7.
57449
57450 2008-04-19  Bruno Haible  <bruno@clisp.org>
57451
57452         Fix rounding when a precision is given.
57453         * lib/vasnprintf.c (is_borderline): New function.
57454         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57455         9...9x.
57456         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57457         %e, %g.
57458         * tests/test-vasprintf-posix.c (test_function): Likewise.
57459         * tests/test-snprintf-posix.h (test_function): Likewise.
57460         * tests/test-sprintf-posix.h (test_function): Likewise.
57461         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57462         * tests/test-printf-posix.h (test_function): Likewise.
57463         * tests/test-printf-posix.output: Update.
57464         Reported by John Darrington <john@darrington.wattle.id.au> via
57465         Ben Pfaff <blp@cs.stanford.edu>.
57466
57467 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57468
57469         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57470         Suggested by Bruno Haible <bruno@clisp.org>.
57471
57472 2008-04-17  Bruno Haible  <bruno@clisp.org>
57473
57474         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57475         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57476         implementation.
57477         Patch by Bruce Merry <bmerry@gmail.com>.
57478
57479 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57480
57481         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57482         doesn't work under Windows.
57483
57484 2008-04-16  Bruno Haible  <bruno@clisp.org>
57485
57486         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57487         New macros.
57488         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57489         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57490         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57491         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57492         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57493         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57494         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57495         macros.
57496         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57497         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57498         Northern Sotho, Uighur.
57499
57500 2008-04-16  Bruno Haible  <bruno@clisp.org>
57501
57502         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57503         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57504         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57505         Reported by Daniel Bergström <daniel@octocode.com>.
57506
57507 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57508             Bruno Haible  <bruno@clisp.org>
57509
57510         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57511         function.
57512         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57513         New functions, mostly extracted from gl_locale_name_default.
57514         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57515
57516 2008-04-16  Eric Blake  <ebb9@byu.net>
57517
57518         Adjust strtod detection to catch glibc 2.7 bug.
57519         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57520         Reported by John Gatewood Ham.
57521
57522 2008-04-16  Bruno Haible  <bruno@clisp.org>
57523
57524         Add tentative support for Linux libc5.
57525         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57526         * lib/fpurge.c (fpurge): Likewise.
57527         * lib/freadable.c (freadable): Likewise.
57528         * lib/freadahead.c (freadahead): Likewise.
57529         * lib/freading.c (freading): Likewise.
57530         * lib/freadptr.c (freadptr): Likewise.
57531         * lib/freadseek.c (freadptrinc): Likewise.
57532         * lib/fseeko.c (rpl_fseeko): Likewise.
57533         * lib/fseterr.c (fseterr): Likewise.
57534         * lib/fwritable.c (fwritable): Likewise.
57535         * lib/fwriting.c (fwriting): Likewise.
57536         Reported by Alain Guibert <alguibert+bts@free.fr>.
57537
57538 2008-04-15  Bruno Haible  <bruno@clisp.org>
57539
57540         * modules/mathl (configure.ac): Define module indicator.
57541
57542 2008-04-15  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/logl.c (logl): Remove unused variables.
57545
57546 2008-04-15  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57549         fails.
57550
57551 2008-04-15  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/trim.c (trim2): Fix argument of isspace() macro.
57554
57555 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57556
57557         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57558         to 0.
57559         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57560
57561 2008-04-14  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57564         AC_LANG_PROGRAM argument.
57565         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57566         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57567         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57568         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57569         * m4/math_h.m4 (gl_MATH_H): Likewise.
57570         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57571         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57572         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57573         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57574         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57575         * m4/regex.m4 (gl_REGEX): Likewise.
57576         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57577         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57579         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57580         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57581         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57582         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57583         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57584
57585 2008-04-14  Jim Meyering  <meyering@redhat.com>
57586
57587         test-strtod: fix typos: s/abs/fabs/
57588         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57589
57590 2008-04-13  Bruno Haible  <bruno@clisp.org>
57591
57592         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57593         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57594         module is also used and while not building the reloc-wrapper.
57595
57596 2008-04-13  Bruno Haible  <bruno@clisp.org>
57597
57598         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57599
57600 2008-04-13  Bruno Haible  <bruno@clisp.org>
57601
57602         Fix AIX compilation failure introduced on 2008-04-02.
57603         * tests/test-frexp.c (exp): Undefine before redefining.
57604         * tests/test-frexpl.c (exp): Likewise.
57605
57606 2008-04-13  Bruno Haible  <bruno@clisp.org>
57607
57608         Work around a HP-UX stdio bug.
57609         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57610         * tests/test-ftello.c (main): Likewise.
57611         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57612         * doc/posix-functions/ftello.texi: Likewise.
57613
57614 2008-04-13  Bruno Haible  <bruno@clisp.org>
57615
57616         Make test-signbit pass on HP-UX/hppa.
57617         * tests/test-signbit.c (minus_zerol): New variable.
57618         (test_signbitl): Use it.
57619
57620 2008-04-13  Bruno Haible  <bruno@clisp.org>
57621
57622         Make truncl work on OSF/1 4.0.
57623         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57624         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57625         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57627         HAVE_DECL_TRUNCL.
57628         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57629         HAVE_DECL_TRUNCL.
57630         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57631
57632 2008-04-13  Bruno Haible  <bruno@clisp.org>
57633
57634         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57635
57636 2008-04-13  Bruno Haible  <bruno@clisp.org>
57637
57638         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57639         expression, so as to avoid HP-UX 11 cc compiler bug.
57640
57641 2008-04-13  Bruno Haible  <bruno@clisp.org>
57642
57643         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57644
57645 2008-04-13  Bruno Haible  <bruno@clisp.org>
57646
57647         * lib/git-merge-changelog.c: Remove empty declaration outside of
57648         functions.
57649
57650 2008-04-13  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57653
57654 2008-04-13  Bruno Haible  <bruno@clisp.org>
57655
57656         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57657         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57658         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57659         also if it exists but lacks definitions of the SHUT_* macros.
57660         * modules/sys_socket (Description): Update.
57661         Reported by Elbert Pol <e.pol@chello.nl>.
57662
57663 2008-04-13  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/localcharset.c (OS2): Don't redefine if already defined.
57666         Reported by Elbert Pol <e.pol@chello.nl>.
57667
57668 2008-04-13  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/binary-io.h [__EMX__]: Include <io.h>.
57671         Reported by Elbert Pol <e.pol@chello.nl>.
57672
57673 2008-04-12  Bruno Haible  <bruno@clisp.org>
57674
57675         * lib/fpucw.h: Enable the definitions also for x86_64.
57676         Needed for NetBSD/x86_64.
57677         Reported by Thomas Klausner <tk@giga.or.at>.
57678
57679 2008-04-12  Bruno Haible  <bruno@clisp.org>
57680
57681         * tests/test-strtod.c: Include isnand.h.
57682         (main): Use isnand instead of isnan.
57683         Reported by Jim Meyering.
57684
57685 2008-04-12  Bruno Haible  <bruno@clisp.org>
57686
57687         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57688         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57689
57690 2008-04-12  Jim Meyering  <meyering@redhat.com>
57691
57692         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57693
57694 2008-04-12  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57697         Reported by Elbert Pol <e.pol@chello.nl>.
57698
57699 2008-04-12  Eric Blake  <ebb9@byu.net>
57700
57701         Work around Solaris 10 math.h bug.
57702         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57703         (gl_MATH_H_DEFAULTS): Set up default.
57704         * modules/math (Makefile.am): Replace new indicators.
57705         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57706         * tests/test-math.c (main): Test this.
57707         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57708         * doc/posix-headers/math.texi (math.h): Mention bug.
57709         Reported by Nelson H. F. Beebe and Jim Meyering.
57710
57711 2008-04-11  Bruno Haible  <bruno@clisp.org>
57712
57713         Adapt to future versions of Apple GCC.
57714         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57715         Reported by Peter O'Gorman <peter@pogma.com>.
57716
57717 2008-04-11  Bruno Haible  <bruno@clisp.org>
57718
57719         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57720
57721 2008-04-11  Bruno Haible  <bruno@clisp.org>
57722
57723         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57724
57725         * modules/getaddrinfo-tests (Makefile.am): Define
57726         test_getaddrinfo_LDADD.
57727
57728 2008-04-11  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57731         (init): Fix syntax error.
57732         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57733         is declared.
57734
57735 2008-04-11  Bruno Haible  <bruno@clisp.org>
57736
57737         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57738         * modules/glob (Depends-on): Add stdbool.
57739
57740 2008-04-11  Bruno Haible  <bruno@clisp.org>
57741
57742         * lib/trim.c: Include <string.h>.
57743
57744 2008-04-11  Eric Blake  <ebb9@byu.net>
57745
57746         Avoid compile failure on OS/2.
57747         * lib/regex_internal.h (internal_function): Disable optimization
57748         on OS/2 (__EMX__), where it caused compiler error.
57749         Reported by Elbert Pol.
57750
57751 2008-04-11  Bruno Haible  <bruno@clisp.org>
57752
57753         Flush the standard error stream before aborting. Needed on mingw.
57754         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57755         * tests/test-array_list.c (ASSERT): Likewise.
57756         * tests/test-array_oset.c (ASSERT): Likewise.
57757         * tests/test-avltree_list.c (ASSERT): Likewise.
57758         * tests/test-avltree_oset.c (ASSERT): Likewise.
57759         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57760         * tests/test-binary-io.c (ASSERT): Likewise.
57761         * tests/test-byteswap.c (ASSERT): Likewise.
57762         * tests/test-c-ctype.c (ASSERT): Likewise.
57763         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57764         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57765         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57766         * tests/test-c-strstr.c (ASSERT): Likewise.
57767         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57768         * tests/test-canonicalize.c (ASSERT): Likewise.
57769         * tests/test-carray_list.c (ASSERT): Likewise.
57770         * tests/test-ceilf1.c (ASSERT): Likewise.
57771         * tests/test-ceilf2.c (ASSERT): Likewise.
57772         * tests/test-ceill.c (ASSERT): Likewise.
57773         * tests/test-count-one-bits.c (ASSERT): Likewise.
57774         * tests/test-fbufmode.c (ASSERT): Likewise.
57775         * tests/test-fflush2.c (ASSERT): Likewise.
57776         * tests/test-floorf1.c (ASSERT): Likewise.
57777         * tests/test-floorf2.c (ASSERT): Likewise.
57778         * tests/test-floorl.c (ASSERT): Likewise.
57779         * tests/test-fopen.c (ASSERT): Likewise.
57780         * tests/test-fpending.c (ASSERT): Likewise.
57781         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57782         * tests/test-fpurge.c (ASSERT): Likewise.
57783         * tests/test-freadable.c (ASSERT): Likewise.
57784         * tests/test-freadahead.c (ASSERT): Likewise.
57785         * tests/test-freading.c (ASSERT): Likewise.
57786         * tests/test-freadptr.c (ASSERT): Likewise.
57787         * tests/test-freadptr2.c (ASSERT): Likewise.
57788         * tests/test-freadseek.c (ASSERT): Likewise.
57789         * tests/test-freopen.c (ASSERT): Likewise.
57790         * tests/test-frexp.c (ASSERT): Likewise.
57791         * tests/test-frexpl.c (ASSERT): Likewise.
57792         * tests/test-fseek.c (ASSERT): Likewise.
57793         * tests/test-fseeko.c (ASSERT): Likewise.
57794         * tests/test-fstrcmp.c (ASSERT): Likewise.
57795         * tests/test-ftell.c (ASSERT): Likewise.
57796         * tests/test-ftello.c (ASSERT): Likewise.
57797         * tests/test-func.c (ASSERT): Likewise.
57798         * tests/test-fwritable.c (ASSERT): Likewise.
57799         * tests/test-fwriting.c (ASSERT): Likewise.
57800         * tests/test-getdelim.c (ASSERT): Likewise.
57801         * tests/test-getline.c (ASSERT): Likewise.
57802         * tests/test-i-ring.c (ASSERT): Likewise.
57803         * tests/test-iconv-utf.c (ASSERT): Likewise.
57804         * tests/test-iconv.c (ASSERT): Likewise.
57805         * tests/test-isfinite.c (ASSERT): Likewise.
57806         * tests/test-isnand.c (ASSERT): Likewise.
57807         * tests/test-isnanf.c (ASSERT): Likewise.
57808         * tests/test-isnanl.h (ASSERT): Likewise.
57809         * tests/test-ldexpl.c (ASSERT): Likewise.
57810         * tests/test-linked_list.c (ASSERT): Likewise.
57811         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57812         * tests/test-localename.c (ASSERT): Likewise.
57813         * tests/test-lseek.c (ASSERT): Likewise.
57814         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57815         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57816         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57817         * tests/test-mbscasestr3.c (ASSERT): Likewise.
57818         * tests/test-mbscasestr4.c (ASSERT): Likewise.
57819         * tests/test-mbschr.c (ASSERT): Likewise.
57820         * tests/test-mbscspn.c (ASSERT): Likewise.
57821         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
57822         * tests/test-mbspbrk.c (ASSERT): Likewise.
57823         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
57824         * tests/test-mbsrchr.c (ASSERT): Likewise.
57825         * tests/test-mbsspn.c (ASSERT): Likewise.
57826         * tests/test-mbsstr1.c (ASSERT): Likewise.
57827         * tests/test-mbsstr2.c (ASSERT): Likewise.
57828         * tests/test-mbsstr3.c (ASSERT): Likewise.
57829         * tests/test-memchr2.c (ASSERT): Likewise.
57830         * tests/test-memmem.c (ASSERT): Likewise.
57831         * tests/test-open.c (ASSERT): Likewise.
57832         * tests/test-printf-frexp.c (ASSERT): Likewise.
57833         * tests/test-printf-frexpl.c (ASSERT): Likewise.
57834         * tests/test-printf-posix.c (ASSERT): Likewise.
57835         * tests/test-quotearg.c (ASSERT): Likewise.
57836         * tests/test-rbtree_list.c (ASSERT): Likewise.
57837         * tests/test-rbtree_oset.c (ASSERT): Likewise.
57838         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
57839         * tests/test-round1.c (ASSERT): Likewise.
57840         * tests/test-roundf1.c (ASSERT): Likewise.
57841         * tests/test-roundl.c (ASSERT): Likewise.
57842         * tests/test-signbit.c (ASSERT): Likewise.
57843         * tests/test-sleep.c (ASSERT): Likewise.
57844         * tests/test-snprintf-posix.c (ASSERT): Likewise.
57845         * tests/test-snprintf.c (ASSERT): Likewise.
57846         * tests/test-sprintf-posix.c (ASSERT): Likewise.
57847         * tests/test-stat-time.c (ASSERT): Likewise.
57848         * tests/test-strcasestr.c (ASSERT): Likewise.
57849         * tests/test-strerror.c (ASSERT): Likewise.
57850         * tests/test-striconv.c (ASSERT): Likewise.
57851         * tests/test-striconveh.c (ASSERT): Likewise.
57852         * tests/test-striconveha.c (ASSERT): Likewise.
57853         * tests/test-strsignal.c (ASSERT): Likewise.
57854         * tests/test-strstr.c (ASSERT): Likewise.
57855         * tests/test-strtod.c (ASSERT): Likewise.
57856         * tests/test-trunc1.c (ASSERT): Likewise.
57857         * tests/test-trunc2.c (ASSERT): Likewise.
57858         * tests/test-truncf1.c (ASSERT): Likewise.
57859         * tests/test-truncf2.c (ASSERT): Likewise.
57860         * tests/test-truncl.c (ASSERT): Likewise.
57861         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
57862         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
57863         * tests/test-vasnprintf.c (ASSERT): Likewise.
57864         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
57865         * tests/test-vasprintf.c (ASSERT): Likewise.
57866         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
57867         * tests/test-vprintf-posix.c (ASSERT): Likewise.
57868         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
57869         * tests/test-vsnprintf.c (ASSERT): Likewise.
57870         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
57871         * tests/test-wcwidth.c (ASSERT): Likewise.
57872         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
57873         * tests/test-xprintf-posix.c (ASSERT): Likewise.
57874         * tests/test-xvasprintf.c (ASSERT): Likewise.
57875         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
57876         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
57877         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
57878         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
57879         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
57880         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
57881         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
57882         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
57883         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
57884         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
57885         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
57886         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
57887         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
57888         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
57889         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
57890         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
57891         * tests/unictype/test-block_list.c (ASSERT): Likewise.
57892         * tests/unictype/test-block_of.c (ASSERT): Likewise.
57893         * tests/unictype/test-block_test.c (ASSERT): Likewise.
57894         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
57895         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
57896         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
57897         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
57898         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
57899         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
57900         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
57901         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
57902         * tests/unictype/test-combining.c (ASSERT): Likewise.
57903         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
57904         * tests/unictype/test-digit.c (ASSERT): Likewise.
57905         * tests/unictype/test-mirror.c (ASSERT): Likewise.
57906         * tests/unictype/test-numeric.c (ASSERT): Likewise.
57907         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
57908         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
57909         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
57910         * tests/unictype/test-scripts.c (ASSERT): Likewise.
57911         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
57912         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
57913         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
57914         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
57915         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
57916         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
57917         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
57918         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
57919         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
57920         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
57921         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
57922         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
57923         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
57924         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
57925         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
57926         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
57927         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
57928         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
57929         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
57930         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
57931         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
57932         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
57933         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
57934         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
57935         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
57936         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
57937         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
57938         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
57939         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
57940         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
57941         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
57942         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
57943         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
57944         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
57945         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
57946         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
57947         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
57948         Reported by Eric Blake.
57949
57950 2008-04-11  Bruno Haible  <bruno@clisp.org>
57951
57952         * lib/wchar.in.h: Tweak comment.
57953
57954 2008-04-11  Bruno Haible  <bruno@clisp.org>
57955
57956         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57957         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57958         gl_COMMON.
57959         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57960
57961 2008-04-11  Bruno Haible  <bruno@clisp.org>
57962
57963         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57964
57965 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57966
57967         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57968         of attempting to use non-existing /dev/*random.  Based on patch
57969         from Adam Strzelecki <ono@java.pl> in
57970         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57971
57972 2008-04-08  Bruno Haible  <bruno@clisp.org>
57973
57974         Add tentative support for emx+gcc.
57975         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57976         * lib/fpurge.c (fpurge): Likewise.
57977         * lib/freadable.c (freadable): Likewise.
57978         * lib/freadahead.c (freadahead): Likewise.
57979         * lib/freading.c (freading): Likewise.
57980         * lib/freadptr.c (freadptr): Likewise.
57981         * lib/freadseek.c (freadptrinc): Likewise.
57982         * lib/fseeko.c (rpl_fseeko): Likewise.
57983         * lib/fseterr.c (fseterr): Likewise.
57984         * lib/fwritable.c (fwritable): Likewise.
57985         * lib/fwriting.c (fwriting): Likewise.
57986         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57987
57988 2008-04-09  Eric Blake  <ebb9@byu.net>
57989
57990         Avoid some autoconf warnings.
57991         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57992         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57993         * m4/afs.m4 (gl_AFS): Likewise.
57994         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57995         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57996         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57997         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57998         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57999         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58000         (AC_CHECK_DECLS_ONCE): Likewise.
58001         Rename file...
58002         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58003         gnulib-tool requires autoconf 2.59 or better.
58004         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58005
58006 2008-04-08  Eric Blake  <ebb9@byu.net>
58007
58008         Use 'git describe --match' if present (added in git 1.5.5).
58009         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58010         if possible.
58011
58012 2008-04-08  Bruno Haible  <bruno@clisp.org>
58013
58014         Add tentative support for OpenServer.
58015         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58016         _ptr, _cnt.
58017         * lib/fpurge.c (fpurge): Likewise.
58018         * lib/freadable.c (freadable): Likewise.
58019         * lib/freadahead.c (freadahead): Likewise.
58020         * lib/freading.c (freading): Likewise.
58021         * lib/freadptr.c (freadptr): Likewise.
58022         * lib/freadseek.c (freadptrinc): Likewise.
58023         * lib/fseeko.c (rpl_fseeko): Likewise.
58024         * lib/fseterr.c (fseterr): Likewise.
58025         * lib/fwritable.c (fwritable): Likewise.
58026         * lib/fwriting.c (fwriting): Likewise.
58027         Reported by Roger Cornelius <rac@tenzing.org> and
58028         Brian K. White <brian@aljex.com>.
58029
58030 2008-04-06  Jim Meyering  <meyering@redhat.com>
58031
58032         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58033
58034 2008-04-06  Bruno Haible  <bruno@clisp.org>
58035
58036         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58037         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58038         * tests/test-printf-posix.sh: Likewise.
58039         * tests/test-vfprintf-posix.sh: Likewise.
58040         * tests/test-vprintf-posix.sh: Likewise.
58041         * tests/test-xprintf-posix.sh: Likewise.
58042
58043 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58044
58045         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58046         hide error from 'ls', needed on OS/2.
58047         Report by Elbert Pol <elbert.pol@gmail.com>.
58048
58049 2008-04-04  Eric Blake  <ebb9@byu.net>
58050
58051         Make test-fseeko.c failures meaningful.
58052         * tests/test-fseeko.c: Print line number on failure.
58053         * tests/test-fseek.c: Likewise.
58054         Reported by Nelson H. F. Beebe.
58055
58056         Improve strtod bug detection check.
58057         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58058         required for Solaris 10.
58059         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58060
58061 2008-04-04  Bruno Haible  <bruno@clisp.org>
58062
58063         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58064         by m4/setenv.m4.
58065
58066 2008-04-03  Eric Blake  <ebb9@byu.net>
58067
58068         Ensure sane .version contents.
58069         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58070         version string.
58071         * build-aux/git-version-gen: Improve documentation.
58072
58073         Make GNU make output nicer.
58074         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58075         MAKECMDGOALS to enforce message for all command line targets.  Set
58076         srcdir for use in maint.mk.
58077
58078         Another maintainer tweak.
58079         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58080         a target that regenerates version.
58081
58082 2008-04-03  Jim Meyering  <meyering@redhat.com>
58083
58084         vc-list-files: don't cause coreutils "make po-check" failure
58085         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58086
58087 2008-04-03  Eric Blake  <ebb9@byu.net>
58088
58089         Allow VPATH usage of vc-list-files.
58090         * build-aux/vc-list-files (scriptversion): Add timestamp.
58091         (options): Add --help, --version, -C.
58092         (CVS): Support installed cvsu.
58093
58094 2008-04-02  Bruno Haible  <bruno@clisp.org>
58095
58096         Avoid some "statement with no effect" warnings from gcc.
58097         * tests/test-wctype.c (main): Explicitly ignore unused values.
58098         Reported by Jim Meyering.
58099
58100 2008-04-02  Jim Meyering  <meyering@redhat.com>
58101
58102         Avoid some warnings from "gcc -Wshadow".
58103         * tests/test-frexp.c (exp): Define to a different identifier.
58104         * tests/test-frexpl.c (exp): Likewise.
58105
58106 2008-04-03  Jim Meyering  <meyering@redhat.com>
58107
58108         bootstrap: remove dangling *.[ch] symlinks from lib
58109         * build-aux/bootstrap [dangling symlink removal]: Move find's
58110         -depth option to precede all others, to avoid a warning.
58111         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58112
58113 2008-04-02  Bruno Haible  <bruno@clisp.org>
58114
58115         Avoid some warnings from "gcc -Wshadow".
58116         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58117         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58118         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58119         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58120         Reported by Jim Meyering.
58121
58122 2008-04-01  Bruno Haible  <bruno@clisp.org>
58123
58124         Fix test to work on IRIX 6.5 with cc.
58125         * tests/test-math.c (numeric_equal): New function.
58126         (main): Use it.
58127
58128 2008-04-01  Bruno Haible  <bruno@clisp.org>
58129
58130         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58131
58132 2008-04-01  Bruno Haible  <bruno@clisp.org>
58133
58134         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58135         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58136         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58137         (Depends-on): Remove math.
58138
58139         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58140         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58141         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58142         (Depends-on): Remove math.
58143
58144         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58145         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58146         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58147         (Depends-on): Remove math.
58148         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58149         (Depends-on): Remove math.
58150
58151         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58152         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58153         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58154         (Depends-on): Remove math.
58155         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58156         (Depends-on): Remove math.
58157
58158         * tests/test-round1.c: Include nan.h.
58159         (main): Use NaNd instead of NAN.
58160         * modules/round-tests (Files): Add tests/nan.h.
58161
58162         * tests/test-trunc1.c: Include nan.h.
58163         (main): Use NaNd instead of NAN.
58164         * modules/trunc-tests (Files): Add tests/nan.h.
58165
58166         * tests/test-roundf1.c: Include nan.h.
58167         (main): Use NaNf instead of NAN.
58168         * modules/roundf-tests (Files): Add tests/nan.h.
58169
58170         * tests/test-truncf1.c: Include nan.h.
58171         (main): Use NaNf instead of NAN.
58172         * modules/truncf-tests (Files): Add tests/nan.h.
58173
58174         * tests/test-ceilf1.c: Include nan.h.
58175         (main): Use NaNf instead of NAN.
58176         * modules/ceilf-tests (Files): Add tests/nan.h.
58177
58178         * tests/test-floorf1.c: Include nan.h.
58179         (main): Use NaNf instead of NAN.
58180         * modules/floorf-tests (Files): Add tests/nan.h.
58181
58182         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58183         (main): Use NaNf instead of NAN.
58184         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58185
58186         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58187         (main): Use NaNd instead of NAN.
58188         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58189
58190         * tests/test-frexp.c: Include nan.h.
58191         (main): Use NaNd instead of NAN.
58192         * modules/frexp-tests (Files): Add tests/nan.h.
58193
58194         * lib/isnan.c: Don't include <math.h>.
58195         (FUNC): Don't use NAN macro.
58196         * modules/isnand-nolibm (Depends-on): Remove math.
58197         * modules/isnanf-nolibm (Depends-on): Remove math.
58198         * modules/isnanl (Depends-on): Remove math.
58199         * modules/isnanl-nolibm (Depends-on): Remove math.
58200
58201         * tests/nan.h: New file.
58202
58203 2008-04-01  Eric Blake  <ebb9@byu.net>
58204
58205         Fix typos.
58206         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58207         values to be the right type.
58208
58209         For now, cater to gnulib strtod inaccuracies.
58210         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58211         fractional results.  While not as nice from a QoI perspective, it
58212         is a quicker patch than correctly implementing decimal to binary
58213         rounding.
58214
58215 2008-03-31  Eric Blake  <ebb9@byu.net>
58216
58217         Guarantee a definition of NAN.
58218         * lib/math.in.h (NAN): Define if missing.
58219         * tests/test-math.c (main): Test it.
58220         * doc/posix-headers/math.texi (math.h): Document this.
58221         * lib/isnan.c (rpl_isnand): Use it.
58222         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58223         * tests/test-floorf1.c (NaN): Likewise.
58224         * tests/test-frexp.c (NaN): Likewise.
58225         * tests/test-isnand.c (NaN): Likewise.
58226         * tests/test-isnanf.c (NaN): Likewise.
58227         * tests/test-round1.c (NaN): Likewise.
58228         * tests/test-roundf1.c (NaN): Likewise.
58229         * tests/test-snprintf-posix.h (NaN): Likewise.
58230         * tests/test-sprintf-posix.h (NaN): Likewise.
58231         * tests/test-trunc1.c (NaN): Likewise.
58232         * tests/test-truncf1.c (NaN): Likewise.
58233         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58234         * tests/test-vasprintf-posix.c (NaN): Likewise.
58235         * modules/isnand-nolibm (Depends-on): Add math.
58236         * modules/isnanf-nolibm (Depends-on): Likewise.
58237         * modules/isnanl (Depends-on): Likewise.
58238         * modules/isnanl-nolibm (Depends-on): Likewise.
58239         * modules/snprintf-posix-tests (Depends-on): Likewise.
58240         * modules/sprintf-posix-tests (Depends-on): Likewise.
58241         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58242         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58243         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58244         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58245
58246 2008-03-31  Bruno Haible  <bruno@clisp.org>
58247
58248         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58249         * doc/posix-functions/strtod.texi: Likewise.
58250
58251 2008-03-31  Bruno Haible  <bruno@clisp.org>
58252
58253         * tests/test-strtod.c (main): Don't use C99 syntax.
58254
58255 2008-03-31  Bruno Haible  <bruno@clisp.org>
58256
58257         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58258         Reported by Eric Blake.
58259
58260 2008-03-31  Jim Meyering  <meyering@redhat.com>
58261
58262         Don't compare actual signbit return values.
58263         * tests/test-strtod.c (main): Rather, compare only their
58264         zero/non-zero nature.
58265
58266 2008-03-31  Eric Blake  <ebb9@byu.net>
58267
58268         More strtod documentation.
58269         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58270         failures as distinct bugs.
58271
58272 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58273
58274         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58275         Problem reported by Erik Benada in
58276         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58277
58278 2008-03-30  Bruno Haible  <bruno@clisp.org>
58279
58280         * tests/test-strtod.c: Add comments about which assertion fails on which
58281         platform.
58282         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58283
58284 2008-03-30  Eric Blake  <ebb9@byu.net>
58285
58286         Test signbit behavior on zeros.
58287         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58288         (test_signbitd, test_signbitl): Likewise.
58289
58290         More strtod touchups.
58291         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58292         sign of negative underflow, for now.  Use .5, not .1.
58293         * doc/posix-functions/strtod.texi (strtod): Mention these
58294         limitations.
58295         Reported by Jim Meyering.
58296
58297 2008-03-30  Bruno Haible  <bruno@clisp.org>
58298
58299         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58300         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58301
58302 2008-03-30  Bruno Haible  <bruno@clisp.org>
58303
58304         Avoid failure when attempting to return empty iconv results on some
58305         platforms.
58306         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58307         allocation, don't report ENOMEM when the resulting string is empty.
58308
58309 2008-03-30  Bruno Haible  <bruno@clisp.org>
58310
58311         Fix buffer overrun.
58312         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58313         Don't consider the width for tmp_length. Check count against tmp_length
58314         before doing the padding. Ensure enough allocation during padding.
58315
58316 2008-03-30  Eric Blake  <ebb9@byu.net>
58317
58318         strtod touchups.
58319         * lib/strtod.c (strtod): Avoid compiler warnings.
58320         Reported by Jim Meyering.
58321
58322 2008-03-30  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58325         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58326         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58327         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58328         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58329         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58330         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58331         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58332
58333         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58334         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58335         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58336         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58337         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58338         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58339         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58340         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58341
58342         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58343         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58344         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58345         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58346         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58347         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58348         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58349         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58350
58351         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58352         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58353
58354         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58355         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58356
58357         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58358         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58359
58360         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58362         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58363
58364         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58365         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58366         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58367
58368         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58369         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58370         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58371
58372         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58374         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58375
58376         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58377         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58379         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58380         (Depends-on): Add EOVERFLOW.
58381         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58382         (Depends-on): Add EOVERFLOW.
58383         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58384         (Depends-on): Add EOVERFLOW.
58385         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58386         (Depends-on): Add EOVERFLOW.
58387         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58388         (Depends-on): Add EOVERFLOW.
58389         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58390         (Depends-on): Add EOVERFLOW.
58391         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58392         (Depends-on): Add EOVERFLOW.
58393         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58394         (Depends-on): Add EOVERFLOW.
58395
58396         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58398         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58399
58400         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58401         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58402         * modules/snprintf (Depends-on): Add EOVERFLOW.
58403
58404         * lib/poll.c (EOVERFLOW): Remove fallback.
58405         * modules/poll (Depends-on): Add EOVERFLOW.
58406
58407         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58408         * modules/getugroups (Depends-on): Add EOVERFLOW.
58409
58410         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58411         * modules/getdelim (Depends-on): Add EOVERFLOW.
58412
58413         * lib/ftell.c (EOVERFLOW): Remove fallback.
58414         * modules/ftell (Depends-on): Add EOVERFLOW.
58415
58416         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58417         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58418         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58419
58420         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58421
58422         * modules/EOVERFLOW-tests: New file.
58423         * tests/test-EOVERFLOW.c: New file.
58424
58425         * modules/EOVERFLOW: New file.
58426         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58427
58428 2008-03-30  Bruno Haible  <bruno@clisp.org>
58429
58430         Fix bug introduced on 2007-06-10.
58431         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58432         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58433
58434 2008-03-30  Bruno Haible  <bruno@clisp.org>
58435
58436         Improve freadseek's efficiency after ungetc.
58437         * lib/freadseek.c: Include freadahead.h.
58438         (freadptrinc): New function, extracted from freadseek.
58439         (freadseek): Use it in a loop. Use freadahead to determine the number
58440         of loop iterations.
58441         * modules/freadseek (Depends-on): Add freadahead.
58442         (configure.ac): Require AC_C_INLINE.
58443
58444 2008-03-30  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/freadseek.c (freadseek): Don't ignore the return value of
58447         freadptr.
58448
58449 2008-03-29  Eric Blake  <ebb9@byu.net>
58450
58451         Add hex float support.
58452         * modules/strtod (Depends-on): Add c-ctype.
58453         (Link): Mention POW_LIB.
58454         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58455         whitespace between 'e' and exponent.
58456         * tests/test-strtod.c (main): Enable hex float tests.
58457         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58458         now provides.
58459
58460         Document various strtod bugs, with some fixes.
58461         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58462         "-0x", "inf", "nan", and hex constants.
58463         * doc/posix-functions/atof.texi (atof): Likewise.
58464         * modules/stdlib (Makefile.am): Support strtod.
58465         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58466         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58467         detect additional strtod bugs.
58468         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58469         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58470         bool where appropriate.  Parse 'inf' and 'nan'.
58471         * tests/test-strtod.c: New file.
58472         * modules/strtod (Depends-on): Add stdbool, stdlib.
58473         (configure.ac): Turn on module indicator.
58474         * modules/strtod-tests: New module.
58475
58476 2008-03-29  Eric Blake  <ebb9@byu.net>
58477
58478         Fix ftell on mingw.
58479         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58480         * modules/ftell-tests (Depends-on): Add binary-io.
58481         * modules/ftello-tests (Depends-on): Likewise.
58482         * tests/test-ftell.c (main): Enhance test to cover behavior after
58483         ungetc.  Enforce binary mode.
58484         * tests/test-ftello.c (main): Likewise.
58485
58486         Pass test-freadseek on cygwin.
58487         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58488         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58489         ungetc buffer.
58490
58491         * tests/test-fflush2.c (main): Fix typo.
58492
58493 2008-03-29  Bruno Haible  <bruno@clisp.org>
58494
58495         * tests/test-fflush2.c (main): Temporarily disable the contents of
58496         this test.
58497         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58498         Reported by Eric Blake.
58499
58500 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58501
58502         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58503         (GC_SHA224_DIGEST_SIZE): Add.
58504
58505         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58506         (gc_hash_digest_length): Likewise.
58507         (gc_hash_buffer): Likewise.
58508
58509 2008-03-25  Bruno Haible  <bruno@clisp.org>
58510
58511         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58512         detail which gettext release to use.
58513         Reported by Simon Josefsson.
58514
58515 2008-03-26  Jim Meyering  <meyering@redhat.com>
58516
58517         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58518         * modules/gnumakefile (clean-GNUmakefile): Also, use
58519         test ... && ... || : syntax rather than if-then ... fi.
58520
58521         gnumakefile: Don't double-quote-expand $(VPATH) value.
58522         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58523
58524 2008-03-24  Eric Blake  <ebb9@byu.net>
58525
58526         Alter GNUmakefile to install into top directory.
58527         * modules/maintainer-makefile: Split, and add dependency...
58528         * modules/gnumakefile: to this new module.
58529         * build-aux/GNUmakefile: Move...
58530         * top/GNUmakefile: ...here.
58531         * build-aux/maint.mk: Move...
58532         * top/maint.mk: ...here.
58533         * MODULES.html.sh (Support for maintaining...): Document new
58534         module.
58535
58536 2008-03-23  Bruno Haible  <bruno@clisp.org>
58537
58538         * gnulib-tool: New options --vc-files, --no-vc-files.
58539         (func_usage): Document them.
58540         (vc_files): New variable.
58541         (func_import): Consider vc_files.
58542         (func_create_testdir): Set vc_files to empty.
58543         Suggested by Jim Meyering and Karl Berry.
58544
58545 2008-03-23  Bruno Haible  <bruno@clisp.org>
58546
58547         Fix regex compilation error on HP-UX 11.
58548         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58549         * modules/regex (Files): Add m4/mbstate_t.m4.
58550         Reported by Ton Voon <ton.voon@altinity.com>.
58551
58552 2008-03-23  Bruno Haible  <bruno@clisp.org>
58553
58554         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58555
58556 2008-03-23  Eric Blake  <ebb9@byu.net>
58557             Bruno Haible  <bruno@clisp.org>
58558
58559         Install files from top/ in the destination directory.
58560         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58561         augmentation also for the files from top/.
58562         (func_import, func_create_testdir): Rewrite file names:
58563         top/filename -> filename.
58564
58565 2008-03-23  Bruno Haible  <bruno@clisp.org>
58566
58567         Tweak "gnulib --version" output.
58568         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58569
58570 2008-03-23  Bruno Haible  <bruno@clisp.org>
58571
58572         Tweak "gnulib --version" output.
58573         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58574         rather than contents of ChangeLog, when possible.
58575
58576 2008-03-21  Eric Blake  <ebb9@byu.net>
58577
58578         More --version tweaks.
58579         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58580         date of last ChangeLog entry.
58581
58582 2008-03-21  Jim Meyering  <meyering@redhat.com>
58583
58584         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58585
58586 2008-03-20  Eric Blake  <ebb9@byu.net>
58587
58588         VPATH fix.
58589         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58590
58591 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58592
58593         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58594         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58595
58596 2008-03-20  Eric Blake  <ebb9@byu.net>
58597
58598         Sync GNUmakefile with coreutils.
58599         * build-aux/GNUmakefile (have-Makefile): Rename...
58600         (_have-Makefile): ...to this, for namespace consideration.
58601         (GNUmakefile.cfg): Include, if present.
58602         (_autoreconf): Define a default.
58603         (_is-dist-target): New rule for rebuilds to pick up intra-release
58604         version.
58605         (maint-cfg.mk): Rename...
58606         (cfg.mk): ...to this.
58607
58608 2008-03-18  Jim Meyering  <meyering@redhat.com>
58609
58610         New script and module: mktempd
58611         * MODULES.html.sh (maint+release support): Add mktempd.
58612         * build-aux/mktempd: New file.
58613         * modules/mktempd: New file.
58614
58615 2008-03-15  Jim Meyering  <meyering@redhat.com>
58616
58617         Undo last change.
58618         * lib/sha1.c, lib/md5.c: 63 != ~63.
58619         Reported by Andreas Schwab.
58620
58621         sha1.c, md5.c: Hoist a redundant expression.
58622         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58623         "ctx->buflen" only once, before calling *_process_block.
58624         * lib/md5.c (md5_process_bytes): Likewise.
58625
58626 2008-03-14  Eric Blake  <ebb9@byu.net>
58627
58628         Bump copyright year in files generated by gnulib-tool.
58629         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58630         gnulib-tool, rather than hard-coding it.
58631
58632         Fix 'gnulib-tool --version' output to work with git.
58633         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58634         (startup): ...here.
58635         (func_version): Use it to invoke git-version-gen, rather than
58636         relying on CVS keyword expansion.  Modernize wording.
58637         (cvsdatestamp, last_checkin_date, version): Kill unused
58638         variables.
58639
58640 2008-03-12  Jim Meyering  <meyering@redhat.com>
58641
58642         Recognize optional cast of the argument to free.
58643         * build-aux/useless-if-before-free: Update regexps.
58644
58645         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58646
58647 2008-03-11  Bruno Haible  <bruno@clisp.org>
58648
58649         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58650         by a single package.
58651         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58652         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58653         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58654         Reported by Sam Steingold <sds@gnu.org>.
58655
58656 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58657
58658         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58659         repositories.
58660
58661 2008-03-11  Bruno Haible  <bruno@clisp.org>
58662
58663         Avoid conflicts between local macro definitions.
58664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58665         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58666
58667 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58668             Bruno Haible  <bruno@clisp.org>
58669
58670         Make va_copy work with some version of xlc on AIX 5.1.
58671         * lib/stdarg.in.h: New file.
58672         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58673         On AIX, use a <stdarg.h> file substitute.
58674         * modules/stdarg (Files): Add lib/stdarg.in.h.
58675         (Depends-on): Add include_next.
58676         (Makefile.am): Build a stdarg.h substitute if requested.
58677         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58678
58679 2008-03-10  Bruno Haible  <bruno@clisp.org>
58680
58681         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58682         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58683         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58684
58685 2008-03-10  Bruno Haible  <bruno@clisp.org>
58686
58687         * modules/stdlib (Depends-on): Add include_next, remove
58688         absolute-header.
58689
58690 2008-03-09  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/freadahead.h (freadahead): Document more precisely.
58693         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58694         the sum of both buffer sizes.
58695         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58696         * NEWS: Document the change.
58697
58698 2008-03-09  Bruno Haible  <bruno@clisp.org>
58699
58700         Extend freadptr to return also the buffer size.
58701         * lib/freadptr.h (freadptr): Add sizep argument.
58702         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58703         (freadptr): Add sizep argument. Determine buffer size like freadahead
58704         does.
58705         * tests/test-freadptr.c: Don't include freadahead.h.
58706         (main): Adapt for new calling convention of freadptr.
58707         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58708         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58709         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58710         tests/test-freadptr2.sh.
58711         (Depends): Remove freadahead.
58712         (TESTS): Add test-freadptr2.sh.
58713         (check_PROGRAMS): Add test-freadptr2.
58714
58715 2008-03-09  Bruno Haible  <bruno@clisp.org>
58716
58717         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58718         Report and solution by Simon Josefsson.
58719
58720 2008-03-06  Bruno Haible  <bruno@clisp.org>
58721
58722         Make fflush after ungetc work on BSD platforms.
58723         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58724         * tests/test-fflush2.c: New file.
58725         * tests/test-fflush2.sh: New file.
58726         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58727         tests/test-fflush2.c.
58728         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58729         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58730
58731 2008-03-06  Eric Blake  <ebb9@byu.net>
58732
58733         Likewise for ftello.
58734         * modules/ftello (Dependencies): Add extensions.
58735         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58736
58737 2008-03-06  Bruno Haible  <bruno@clisp.org>
58738
58739         * modules/fseeko (Dependencies): Add extensions.
58740         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58741         Needed on glibc systems.
58742
58743 2008-03-06  Bruno Haible  <bruno@clisp.org>
58744
58745         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58746         email address.
58747         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58748
58749 2008-03-06  Bruno Haible  <bruno@clisp.org>
58750
58751         * users.txt: Add libgnupdf.
58752
58753 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58754
58755         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58756         (Header File Substitutes, Function Substitutes,
58757         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58758         (Build robot for gnulib): Fix typo.
58759
58760 2008-03-06  Bruno Haible  <bruno@clisp.org>
58761
58762         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58763         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58764
58765 2008-03-06  Bruno Haible  <bruno@clisp.org>
58766
58767         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58768         * doc/gnulib.texi: Include it.
58769
58770 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58771
58772         * modules/func (License): Change license to unlimited; there was
58773         no LGPL parts in the module anyway.
58774
58775 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58776
58777         * modules/__func__: Renamed to modules/func.
58778         * modules/__func__-tests: Renamed to modules/func-tests.
58779         * tests/test-__func__.c: Renamed to tests/test-func.c.
58780         * m4/__func__.m4: Renamed to m4/func.m4.
58781         * doc/gnulib.texi (__func__): Section renamed to func.
58782         Suggested by Eric Blake <ebb9@byu.net>.
58783
58784 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58785
58786         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58787         about __func__.  Make example self-contained.  Suggested by Eric
58788         Blake <ebb9@byu.net>.
58789
58790         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58791         Suggested by Eric Blake <ebb9@byu.net>.
58792
58793 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58794
58795         * modules/__func__: New file.
58796         * modules/__func__-tests: New file.
58797         * tests/test-__func__.c: New file.
58798         * m4/__func__.m4: New file.
58799         * doc/gnulib.texi (__func__): Document __func__ module.
58800
58801 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58802
58803         * modules/byteswap (License): Re-license as LGPLv2+.
58804
58805 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58806
58807         * doc/Makefile: Add pdf target.
58808
58809 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58810
58811         * modules/inline (License): Use 'unlimited', since there are only
58812         *.m4 files in this module.
58813
58814 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58815             Bruno Haible  <bruno@clisp.org>
58816
58817         Add support for HP C 7.1 on OpenVMS 8.3.
58818         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
58819
58820 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58821
58822         Update VMS specifics.
58823         * lib/getopt.c [VMS]: Remove include of unixlib.h.
58824
58825 2008-03-02  Jim Meyering  <meyering@redhat.com>
58826
58827         Remove the last dependency on the "free" module.
58828         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
58829         Reported by Bob Proulx.
58830
58831         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
58832
58833         Remove useless "if" tests before free.  Deprecate "free" module.
58834         * doc/posix-functions/free.texi: Mention that this
58835         module is no longer useful.
58836         * modules/free (Notice): Say this module is obsolete.
58837         * modules/readutmp (Depends-on): Remove free.
58838         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
58839         * lib/putenv.c (putenv): Likewise.
58840         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
58841         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
58842         * tests/test-c-strcasestr.c (main): Likewise.
58843         * tests/test-c-strstr.c (main): Likewise.
58844         * tests/test-mbscasestr1.c (main): Likewise.
58845         * tests/test-mbscasestr2.c (main): Likewise.
58846         * tests/test-mbsstr1.c (main): Likewise.
58847         * tests/test-mbsstr2.c (main): Likewise.
58848         * tests/test-memmem.c (main): Likewise.
58849         * tests/test-strcasestr.c (main): Likewise.
58850         * tests/test-striconv.c (main): Likewise.
58851         * tests/test-striconveh.c (main): Likewise.
58852         * tests/test-striconveha.c (main): Likewise.
58853         * tests/test-strstr.c (main): Likewise.
58854
58855         * build-aux/git-version-gen: Adjust a comment and the Usage string.
58856
58857         bootstrap: sync from coreutils again
58858         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
58859
58860 2008-03-01  Jim Meyering  <meyering@redhat.com>
58861
58862         bootstrap: sync from coreutils
58863         * build-aux/bootstrap (update_po_files): Copy a .po file into place
58864         also when the target doesn't exist.
58865
58866 2008-03-01  Eric Blake  <ebb9@byu.net>
58867
58868         Fix bugs in last patch.
58869         * lib/memchr2.c (memchr2): Fix typo.
58870         * tests/test-memchr2.c: Test previous bug, and don't use GNU
58871         extension.
58872         Reported by Bruce Korb.
58873
58874         New module 'memchr2'.
58875         * modules/memchr2: New file.
58876         * modules/memchr2-tests: Likewise.
58877         * lib/memchr2.h: Likewise.
58878         * lib/memchr2.c: Likewise, based on memchr.c.
58879         * tests/test-memchr2.c: New test.
58880         * MODULES.html.sh (String handling): Add memchr2.
58881
58882 2008-02-29  Bruno Haible  <bruno@clisp.org>
58883
58884         * modules/freadseek-tests: New file.
58885         * tests/test-freadseek.sh: New file.
58886         * tests/test-freadseek.c: New file.
58887
58888         New module 'freadseek'.
58889         * modules/freadseek: New file.
58890         * lib/freadseek.h: New file.
58891         * lib/freadseek.c: New file.
58892         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
58893
58894 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58895
58896         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
58897         wydawca.
58898
58899         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
58900         program_invocation_name and program_invocation_short_name are
58901         present.
58902
58903 2008-02-28  Bruno Haible  <bruno@clisp.org>
58904
58905         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
58906         * tests/test-freadptr.sh: Also test non-seekable stdin.
58907
58908 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
58909
58910         * build-aux/bootstrap (source_base, m4_base)
58911         (doc_base, tests_base): New variables.
58912         (gnulib_tool_options): Do not hardcode base directories, use
58913         the above variables instead.
58914
58915 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
58916
58917         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
58918
58919 2008-02-28  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/freadptr-tests: New file.
58922         * tests/test-freadptr.sh: New file.
58923         * tests/test-freadptr.c: New file.
58924
58925         New module 'freadptr'.
58926         * modules/freadptr: New file.
58927         * lib/freadptr.h: New file.
58928         * lib/freadptr.c: New file.
58929         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
58930
58931 2008-02-26  Karl Berry  <karl@freefriends.org>
58932
58933         Sync from Libtool:
58934         * libltdl/argz.c (argz_add, argz_count): New functions.
58935         * libltdl/argz.in.h: Declare them.
58936         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
58937
58938 2008-02-22  Bruno Haible  <bruno@clisp.org>
58939
58940         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
58941         is a pointer type.  Needed for HP-UX 10.
58942         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
58943         * doc/posix-functions/gmtime_r.texi: Likewise.
58944         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58945
58946 2008-02-24  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/environ-tests: New file.
58949         * tests/test-environ.c: New file.
58950
58951         New module 'environ'.
58952         * modules/environ: New file.
58953         * lib/unistd.in.h (environ): New declaration.
58954         * m4/environ.m4: New file.
58955         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58956         after use.
58957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58958         HAVE_DECL_ENVIRON.
58959         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58960         HAVE_DECL_ENVIRON.
58961         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58962         wrong claim that 'environ' is missing on some systems.
58963         * modules/execute (Depends-on): Add environ.
58964         * lib/execute.c (environ): Remove fallback declaration.
58965         * modules/pipe (Depends-on): Add environ.
58966         * lib/pipe.c (environ): Remove fallback declaration.
58967         * modules/setenv (Depends-on): Add environ.
58968         * lib/setenv.c (environ): Remove fallback declaration.
58969         * modules/unsetenv (Depends-on): Add environ.
58970         * lib/unsetenv.c (environ): Remove fallback declaration.
58971         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58972         m4/environ.m4.
58973         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58974         (gl_PREREQ_UNSETENV): Likewise.
58975
58976 2008-02-24  Bruno Haible  <bruno@clisp.org>
58977
58978         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58979
58980 2008-02-20  Bob Proulx  <bob@proulx.com>
58981
58982         Enable use of older two part flavor 'git describe'.
58983         * build-aux/git-version-gen: If using the older two part flavor of
58984         git version then recreate the third part now present in the
58985         newer three part flavor of git describe.
58986
58987 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58988
58989         * lib/fts.c (fts_build): Typo correction to comment.
58990
58991 2008-02-17  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58994         generating no-op conflicts.
58995
58996 2008-02-17  Bruno Haible  <bruno@clisp.org>
58997
58998         Speed up by 10%.
58999         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59000         result_entries, rather than an index-based loop.
59001
59002 2008-02-17  Bruno Haible  <bruno@clisp.org>
59003
59004         Speed up by 25%.
59005         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59006         'hashcode_cached'.
59007         (entry_create): New function.
59008         (entry_hashcode): Use the cached hashcode if possible.
59009         (read_changelog_file, try_split_merged_entry): Use entry_create.
59010
59011 2008-02-17  Bruno Haible  <bruno@clisp.org>
59012
59013         Speed up from O(n^2) to O(n) for long ChangeLog files.
59014         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59015         (read_changelog_file): Change implementation of entries_reversed list
59016         to rbtreehash.
59017         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59018
59019 2008-02-17  Bruno Haible  <bruno@clisp.org>
59020
59021         New option --split-merged-entry.
59022         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59023         (find_paragraph_end, try_split_merged_entry): New functions.
59024         (long_options): Add option --split-merged-entry.
59025         (usage): Document option --split-merged-entry.
59026         (main): Implement option --split-merged-entry.
59027         Reported by Eric Blake.
59028
59029 2008-02-17  Bruno Haible  <bruno@clisp.org>
59030
59031         * lib/git-merge-changelog.c: Include c-strstr.h.
59032         (main): Support the "git pull --rebase" situation.
59033         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59034         Reported by Eric Blake.
59035
59036 2008-02-16  Eric Blake  <ebb9@byu.net>
59037
59038         Avoid doubling \ in common case of "c-maybe" quoting style.
59039         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59040         eliding outer quotes.
59041         * lib/quotearg.h: Document this.
59042         * tests/test-quotearg.c (result_strings, inputs, results_g)
59043         (flag_results, locale_results): Test it by adding a new string to
59044         each test group.
59045         (compare_strings): Test new string.
59046
59047 2008-02-13  Eric Blake  <ebb9@byu.net>
59048
59049         Avoid trigraph quoting in default output.
59050         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59051         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59052         unless explicitly requested.
59053         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59054
59055 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59056
59057         Don't rely on signed integer overflowing to negative value.
59058         * lib/getugroups.c (getugroups): Include <limits.h>.
59059         Instead, compare against INT_MAX, and increment only if the test passes.
59060
59061 2008-02-13  Jim Meyering  <meyering@redhat.com>
59062         and Eric Blake  <ebb9@byu.net>
59063
59064         Avoid shadowing warning and compile errors on Linux.
59065         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59066         forwarding macros on Linux.
59067         (dcgettext): Define a stub, for Linux.
59068         (results_g, main): Avoid warnings.
59069
59070 2008-02-12  Eric Blake  <ebb9@byu.net>
59071
59072         Silence warning in last patch.
59073         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59074
59075         Quotearg part 4: add tests, fix c-maybe colon quoting.
59076         * lib/quotearg.h: Improve documentation.
59077         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59078         escapes when adding outer quotes.  When quoting trigraphs, use
59079         valid C notation.  When quoting NUL, omit extra characters if next
59080         character is not digit.  Alter prototype.
59081         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59082         callers.
59083         * modules/quotearg-tests: New module.
59084         * tests/test-quotearg.c: New test.
59085
59086 2008-02-07  Eric Blake  <ebb9@byu.net>
59087
59088         Quotearg part 3: add flag to control outer quote elision.
59089         * lib/quotearg.h (c_maybe_quoting_style): New style.
59090         (enum quoting_flags): Better documentation of flags.
59091         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59092         c-maybe style.
59093         (quotearg_buffer_restyled): Handle new flag to elide outer
59094         quotes.
59095
59096         Quotearg part 2: add flag that can control NUL elision.
59097         * lib/quotearg.h (set_quoting_flags): New prototype.
59098         * lib/quotearg.c (struct quoting_options): Add flag field.
59099         (set_quoting_flags): New function.
59100         (quotearg_buffer_restyled): Add flags parameter.
59101         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59102         (quotearg_n_options): Set the flag, since length cannot be
59103         returned.
59104         (quoting_options_from_style): Default flags correctly.
59105
59106         Quotearg part 1: more wrappers, restore quotearg_char state.
59107         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59108         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59109         (quotearg_colon_mem): New wrappers.
59110         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59111         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59112         functions.
59113         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59114         (quotearg_colon_mem): New functions.
59115
59116 2008-02-11  Bruno Haible  <bruno@clisp.org>
59117
59118         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59119         library in the current directory: it does not work with parallel make.
59120         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59121
59122 2008-02-11  Bruno Haible  <bruno@clisp.org>
59123
59124         * .gitattributes: New file.
59125
59126 2008-02-11  Jim Meyering  <meyering@redhat.com>
59127
59128         useless-if-before-free: Fix reversed exit values.
59129         * build-aux/useless-if-before-free: Use correct values
59130         for EXIT_MATCH and EXIT_NO_MATCH.
59131
59132         * build-aux/useless-if-before-free: Close stdout carefully.
59133
59134 2008-02-10  Bruno Haible  <bruno@clisp.org>
59135
59136         New module 'git-merge-changelog'.
59137         * modules/git-merge-changelog: New file.
59138         * lib/git-merge-changelog.c: New file.
59139
59140 2008-02-10  Jim Meyering  <meyering@redhat.com>
59141
59142         useless-if-before-free: New option: --list (-l).
59143
59144         useless-if-before-free: Don't exit immediately upon open failure.
59145         * build-aux/useless-if-before-free: Exit 2 for errors.
59146         Upon failure to open a file, don't exit immediately.
59147         Rather, just warn and continue with any remaining files.
59148
59149 2008-02-10  Bruno Haible  <bruno@clisp.org>
59150
59151         New abstract list operation 'node_set_value'.
59152         * lib/gl_list.h (gl_list_node_set_value): New function.
59153         (struct gl_list_implementation): New field node_set_value.
59154         * lib/gl_list.c (gl_list_node_set_value): New function.
59155         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59156         (gl_array_list_implementation): Update.
59157         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59158         (gl_carray_list_implementation): Update.
59159         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59160         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59161         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59162         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59163         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59164         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59165         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59166         Update.
59167         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59168         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59169         (gl_sublist_list_implementation): Update.
59170
59171 2008-02-10  Bruno Haible  <bruno@clisp.org>
59172
59173         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59174         Needed when ELEMENT is #defined to 'some_type *'.
59175
59176 2008-02-10  Jim Meyering  <meyering@redhat.com>
59177
59178         New script and module: useless-if-before-free
59179         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59180         * build-aux/useless-if-before-free: New file.
59181         * modules/useless-if-before-free: New file.
59182
59183         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59184
59185         xstrtol_error: Fix typo.
59186         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59187         s/exit_failure/exit_status/.
59188
59189 2008-02-09  Jim Meyering  <meyering@redhat.com>
59190
59191         New script and module: gitlog-to-changelog
59192         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59193         * modules/gitlog-to-changelog: New file.
59194         * build-aux/gitlog-to-changelog: New file.
59195
59196 2008-02-08  Jim Meyering  <meyering@redhat.com>
59197
59198         Avoid two "parameter unused" warnings.
59199         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59200         Mark "st" as used.
59201
59202         Use "git COMMAND", not "git-COMMAND".
59203         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59204         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59205         * build-aux/git-version-gen: Use "git status", not "git-status".
59206
59207 2008-02-07  Bruno Haible  <bruno@clisp.org>
59208
59209         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59210         Avoids a crash on Windows Vista.
59211         Reported by Adam Strzelecki <ono@java.pl> via
59212         Simon Josefsson <simon@josefsson.org>.
59213
59214 2008-02-06  Bruno Haible  <bruno@clisp.org>
59215
59216         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59217         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59218         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59220         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59221         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59222         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59223         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59225         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59226         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59227         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59228         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59229         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59231         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59232         left-adjust flag.
59233         * tests/test-snprintf-posix.h (test_function): Likewise.
59234         * tests/test-sprintf-posix.h (test_function): Likewise.
59235         * tests/test-vasprintf-posix.c (test_function): Likewise.
59236         * doc/posix-functions/fprintf.texi: Update.
59237         * doc/posix-functions/printf.texi: Update.
59238         * doc/posix-functions/snprintf.texi: Update.
59239         * doc/posix-functions/sprintf.texi: Update.
59240         * doc/posix-functions/vfprintf.texi: Update.
59241         * doc/posix-functions/vprintf.texi: Update.
59242         * doc/posix-functions/vsnprintf.texi: Update.
59243         * doc/posix-functions/vsprintf.texi: Update.
59244         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59245
59246 2008-02-06  Bruno Haible  <bruno@clisp.org>
59247
59248         Fix bug introduced on 2008-01-26.
59249         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59250
59251 2008-02-06  Bruno Haible  <bruno@clisp.org>
59252
59253         Fix bug introduced on 2007-06-10.
59254         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59255         !NEED_PRINTF_FLAG_ZERO.
59256
59257 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59258
59259         getloadavg: use libperfstat on AIX5
59260         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59261
59262 2008-02-03  Bruno Haible  <bruno@clisp.org>
59263
59264         * lib/diffseq.h: Add comments about required #includes.
59265         Reported by Michael Biggs <gnulib@doubleplum.net>.
59266
59267 2008-02-01  Bruno Haible  <bruno@clisp.org>
59268
59269         * users.txt: Add gnuit.
59270
59271 2008-01-31  Bruno Haible  <bruno@clisp.org>
59272
59273         * lib/md4.c (set_uint32): Mark as inline.
59274         * lib/md5.c (set_uint32): Likewise.
59275         * lib/sha1.c (set_uint32): Likewise.
59276         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59277         * m4/md5.m4 (gl_MD5): Likewise.
59278         * m4/sha1.m4 (gl_SHA1): Likewise.
59279
59280 2008-01-31  Jim Meyering  <meyering@redhat.com>
59281
59282         Use "sizeof VAR", rather than a literal "4".
59283         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59284         * lib/md4.c (md4_read_ctx): Likewise.
59285         * lib/sha1.c (sha1_read_ctx): Likewise.
59286
59287 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59288
59289         * tests/test-sha1.c: New file, based on test-md5.c.
59290
59291         * modules/crypto/sha1-tests: New file.
59292
59293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59294
59295         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59296
59297 2008-01-31  Jim Meyering  <meyering@redhat.com>
59298
59299         Prefer "sizeof v" over the equivalent "4".
59300         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59301         * lib/md5.c (set_uint32): Likewise.
59302         * lib/sha1.c (set_uint32): Likewise.
59303
59304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59305
59306         * lib/sha1.c (set_uint32): Mark function as static.
59307
59308 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59309
59310         md2: clarify comments to say that alignment is not required.
59311         * lib/md2.h: Remove warning about alignment in comment.
59312         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59313         never been required.
59314
59315 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59316
59317         md4: adapt alignment constraint fix from sha1.
59318         * lib/md4.c (set_uint32): New function, from sha1.c
59319         (md4_read_ctx): Use it.
59320         (md4_finish_ctx): Doc fix.
59321         * lib/md4.h: Doc fix.
59322
59323 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59324
59325         md5: adapt alignment constraint fix from sha1.
59326         * lib/md5.c (set_uint32): New function, from sha1.c
59327         (md5_read_ctx): Use it.
59328         (md5_finish_ctx): Doc fix.
59329         * lib/md5.h: Doc fix.
59330
59331 2008-01-30  Peter Palfrader  <weasel@debian.org>
59332
59333         sha1: remove the result buffer alignment constraint
59334         * lib/sha1.c (set_uint32): New function.
59335         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59336         constraint.
59337         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59338         * lib/sha1.h: Likewise.
59339
59340 2008-01-30  Andreas Schwab  <schwab@suse.de>
59341             Bruno Haible  <bruno@clisp.org>
59342
59343         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59344         correct definition of LDBL_MIN_EXP.
59345
59346 2008-01-30  Karl Berry  <karl@gnu.org>
59347
59348         * config/srclist-update: try to preserve x bit on updates.
59349         * config/srclistvars.sh: update for karl.
59350
59351 2008-01-29  Jim Meyering  <meyering@redhat.com>
59352
59353         vasnprintf.c: Avoid warning about unused label
59354         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59355         "overflow" label definition and associated code with the
59356         same cpp condition that guards the sole use of that label.
59357
59358 2008-01-26  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59361         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59362         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59363         * lib/isnanl-nolibm.h (isnanl): Likewise.
59364         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59365
59366 2008-01-26  Bruno Haible  <bruno@clisp.org>
59367
59368         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59369         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59370
59371 2008-01-26  Bruno Haible  <bruno@clisp.org>
59372
59373         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59374         GCC >= 4.0 built-in.
59375         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59376
59377 2008-01-26  Bruno Haible  <bruno@clisp.org>
59378
59379         Rename isnan, applicable to 'double' only, to isnand.
59380         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59381         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59382         (configure.ac): Update.
59383         (Include): Replace "isnan.h" with "isnand.h".
59384         * m4/isnand.m4: Renamed from m4/isnan.m4.
59385         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59386         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59387         instead of isnan.c.
59388         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59389         instead of HAVE_ISNAN_IN_LIBC.
59390         (isnand): Renamed from isnan.
59391         * lib/isnand.c: New file.
59392         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59393         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59394         (Makefile.am): Update.
59395         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59396         Include isnand.h instead of isnan.h.
59397         (main): Test isnand instead of isnan.
59398         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59399         isnan-nolibm.
59400         * modules/frexp (Depends-on): Likewise.
59401         * modules/frexp-tests (Depends-on): Likewise.
59402         * modules/frexp-nolibm (Depends-on): Likewise.
59403         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59404         * modules/isfinite (Depends-on): Likewise.
59405         * modules/round-tests (Depends-on): Likewise.
59406         * modules/signbit (Depends-on): Likewise.
59407         * modules/signbit-tests (Depends-on): Likewise.
59408         * modules/snprintf-posix (Depends-on): Likewise.
59409         * modules/sprintf-posix (Depends-on): Likewise.
59410         * modules/trunc-tests (Depends-on): Likewise.
59411         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59412         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59413         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59414         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59415         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59416         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59417         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59418         * modules/vasnprintf-posix (Depends-on): Likewise.
59419         * modules/vasprintf-posix (Depends-on): Likewise.
59420         * modules/vfprintf-posix (Depends-on): Likewise.
59421         * modules/vsnprintf-posix (Depends-on): Likewise.
59422         * modules/vsprintf-posix (Depends-on): Likewise.
59423         * lib/frexp.c: Include isnand.h instead of isnan.h.
59424         (ISNAN): Set to isnand instead of isnan.
59425         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59426         (gl_isfinited): Use isnand instead of isnan.
59427         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59428         (gl_signbitd): Use isnand instead of isnan.
59429         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59430         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59431         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59432         (main): Use isnand instead of isnan.
59433         * tests/test-round1.c: Include isnand.h.
59434         (main): Use isnand instead of isnan.
59435         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59436         (ISNAN): Set to isnand instead of isnan.
59437         * tests/test-trunc1.c: Include isnand.h.
59438         (main): Use isnand instead of isnan.
59439         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59440         (equal): Use isnand instead of isnan.
59441         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59442         isnand-nolibm.
59443         * NEWS: Mention the change.
59444
59445 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59446             Bruno Haible  <bruno@clisp.org>
59447
59448         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59449         the GCC builtins for signbits are present and set
59450         REPLACE_SIGNBIT_USING_GCC if so.
59451         * lib/math.in.h (signbit): Define using GCC builtins if
59452         REPLACE_SIGNBIT_USING_GCC is set.
59453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59454         REPLACE_SIGNBIT_USING_GCC.
59455         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59456
59457 2008-01-25  Jim Meyering  <meyering@redhat.com>
59458
59459         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59460         * lib/poll.c: Include <config.h>, not "config.h".
59461         * tests/test-getaddrinfo.c: Likewise.
59462
59463 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59464
59465         * modules/sockets-tests: New file.
59466
59467 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59468
59469         * modules/sockets: New module, can be used to call WSA_Startup and
59470         WSA_Cleanup when needed.
59471
59472         * lib/sockets.h, lib/sockets.c: New files.
59473
59474         * m4/sockets.m4: New file.
59475
59476         * tests/test-sockets.c: New file.
59477
59478 2008-01-19  Bruno Haible  <bruno@clisp.org>
59479
59480         * doc/posix-headers: Renamed from doc/headers.
59481         * doc/posix-functions: Renamed from doc/functions.
59482         * doc/gnulib.texi: Update.
59483
59484 2008-01-19  Bruno Haible  <bruno@clisp.org>
59485
59486         * doc/glibc-functions/strcasestr.texi: Include contents of
59487         doc/functions/strcasestr.texi, fixing the list of platforms.
59488         * doc/functions/strcasestr.texi: Remove file.
59489
59490 2008-01-19  Bruno Haible  <bruno@clisp.org>
59491
59492         * doc/glibc-functions/memmem.texi: Include contents of
59493         doc/functions/memmem.texi.
59494         * doc/functions/memmem.texi: Remove file.
59495
59496 2008-01-18  Bruno Haible  <bruno@clisp.org>
59497
59498         * doc/glibc-functions/*.texi: New files.
59499         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59500         to use the new files.
59501
59502 2008-01-17  Bruno Haible  <bruno@clisp.org>
59503
59504         * tests/test-gethostname.c (main): Fix printf statement.
59505
59506 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59507
59508         * modules/gethostname-tests: New file.
59509
59510         * tests/test-gethostname.c: New file.
59511
59512 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59513
59514         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59515         used by the UNAME case.  Reported by Bruno Haible
59516         <bruno@clisp.org>.
59517
59518 2008-01-17  Eric Blake  <ebb9@byu.net>
59519
59520         Convert c-strcasestr to be more efficient.
59521         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59522         (Depends-on): Add c-strcase, remove malloca, strnlen.
59523         * tests/test-c-strcasestr.c (main): Enhance test.
59524         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59525
59526 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59527
59528         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59529         Use it in creating po/Makevars.
59530
59531 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59532
59533         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59534         Applications that requires it should initialize libgcrypt
59535         manually.
59536
59537 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59538
59539         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59540
59541 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59542
59543         Fix problem with getdate on mingw32 reported by Simon Josefsson
59544         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59545         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59546         tzname", when deciding whether to declare tzname.
59547         * lib/strftime.c (tzname): Likewise.
59548
59549 2008-01-15  Bruno Haible  <bruno@clisp.org>
59550
59551         Work around a MacOS X 10.5 bug in frexpl().
59552         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59553         * doc/functions/frexpl.texi: Document the bug.
59554         Reported by Elias Pipping <pipping@gentoo.org>.
59555
59556 2008-01-14  Eric Blake  <ebb9@byu.net>
59557
59558         Touch up previous patch.
59559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59560         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59561
59562         Convert strcasestr module to use Two-Way algorithm.
59563         * modules/strcasestr-simple: New module, based on the old
59564         strcasestr, but with Two-Way rather than KMP.
59565         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59566         * lib/string.in.h (rpl_strcasestr): Declare.
59567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59568         performance.
59569         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59570         * modules/string (Makefile.am): Support strcasestr.
59571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59572         * modules/strcasestr-tests (Depends-on): Check for alarm.
59573         * tests/test-strcasestr.c: Augment test.
59574         * lib/str-two-way.h: Clean up stray macro.
59575         * NEWS: Document new module.
59576         * MODULES.html.sh (string handling): Likewise.
59577         * doc/functions/strcasestr.texi: New file.
59578         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59579         here, since it is not a POSIX function.
59580
59581 2008-01-14  Colin Watson  <cjwatson@debian.org>
59582             Bruno Haible  <bruno@clisp.org>
59583
59584         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59585         works fine; if not, set REPLACE_STRSIGNAL.
59586         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59588         REPLACE_STRSIGNAL.
59589         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59590         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59591         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59592
59593 2008-01-14  Bruno Haible  <bruno@clisp.org>
59594
59595         * modules/strsignal (Include): Change to <string.h>.
59596
59597 2008-01-14  Colin Watson  <cjwatson@debian.org>
59598
59599         * modules/argp (Notice): Add a notice recommending to change
59600         XGETTEXT_OPTIONS.
59601         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59602
59603 2008-01-13  Colin Watson  <cjwatson@debian.org>
59604
59605         * modules/strsignal-tests: New file.
59606         * tests/test-strsignal.c: New file.
59607
59608         * lib/strsignal.c: New file, from glibc with modifications.
59609         * lib/siglist.h: New file, from glibc with modifications.
59610         * lib/string.in.h (strsignal): New declaration.
59611         * m4/strsignal.m4: New file.
59612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59613         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59614         * modules/strsignal: New file.
59615         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59616         HAVE_DECL_STRSIGNAL.
59617
59618 2008-01-13  Bruno Haible  <bruno@clisp.org>
59619
59620         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59621         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59622         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59623         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59624
59625 2008-01-13  Bruno Haible  <bruno@clisp.org>
59626
59627         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59628         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59629         * lib/argp.h (__attribute__): Likewise.
59630         * lib/c-stack.c (__attribute__): Likewise.
59631         * lib/error.h (__attribute__): Likewise.
59632         * lib/fts.c (__attribute__): Likewise.
59633         * lib/openat.h (__attribute__): Likewise.
59634         * lib/stdio.in.h (__attribute__): Likewise.
59635         * lib/string.in.h (__attribute__): Likewise.
59636         * lib/utimens.c (__attribute__): Likewise.
59637         * lib/vasnprintf.h (__attribute__): Likewise.
59638         * lib/xalloc.h (__attribute__): Likewise.
59639         * lib/xprintf.h (__attribute__): Likewise.
59640         * lib/xstrtol.h (__attribute__): Likewise.
59641         * lib/xvasprintf.h (__attribute__): Likewise.
59642
59643 2008-01-12  Bruno Haible  <bruno@clisp.org>
59644
59645         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59646         * doc/glibc-headers/a.out.texi: New file.
59647         * doc/glibc-headers/aliases.texi: New file.
59648         * doc/glibc-headers/alloca.texi: New file.
59649         * doc/glibc-headers/ar.texi: New file.
59650         * doc/glibc-headers/argp.texi: New file.
59651         * doc/glibc-headers/argz.texi: New file.
59652         * doc/glibc-headers/byteswap.texi: New file.
59653         * doc/glibc-headers/crypt.texi: New file.
59654         * doc/glibc-headers/endian.texi: New file.
59655         * doc/glibc-headers/envz.texi: New file.
59656         * doc/glibc-headers/err.texi: New file.
59657         * doc/glibc-headers/error.texi: New file.
59658         * doc/glibc-headers/execinfo.texi: New file.
59659         * doc/glibc-headers/fpu_control.texi: New file.
59660         * doc/glibc-headers/fstab.texi: New file.
59661         * doc/glibc-headers/fts.texi: New file.
59662         * doc/glibc-headers/getopt.texi: New file.
59663         * doc/glibc-headers/ieee754.texi: New file.
59664         * doc/glibc-headers/ifaddrs.texi: New file.
59665         * doc/glibc-headers/libintl.texi: New file.
59666         * doc/glibc-headers/mcheck.texi: New file.
59667         * doc/glibc-headers/mntent.texi: New file.
59668         * doc/glibc-headers/obstack.texi: New file.
59669         * doc/glibc-headers/paths.texi: New file.
59670         * doc/glibc-headers/printf.texi: New file.
59671         * doc/glibc-headers/pty.texi: New file.
59672         * doc/glibc-headers/resolv.texi: New file.
59673         * doc/glibc-headers/shadow.texi: New file.
59674         * doc/glibc-headers/sysexits.texi: New file.
59675         * doc/glibc-headers/ttyent.texi: New file.
59676
59677 2008-01-12  Jim Meyering  <meyering@redhat.com>
59678
59679         announce-gen: emit Gnulib's git-based version string.
59680         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59681         New option --gnulib-version=V, where V is expected to be
59682         the output of running git describe in the gnulib directory.
59683         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59684         not useful, and plan to stop publishing an xdelta file with each
59685         coreutils release.
59686
59687         * build-aux/announce-gen: Also check for lzma-compressed files.
59688
59689 2008-01-11  Bruno Haible  <bruno@clisp.org>
59690
59691         * tests/test-memmem.c (main): Increase maximum allowed time.
59692         * tests/test-strstr.c (main): Likewise.
59693
59694 2008-01-11  Bruno Haible  <bruno@clisp.org>
59695
59696         * doc/functions/memmem.texi: Add more precisions about platforms.
59697         * doc/functions/strstr.texi: Likewise.
59698
59699 2008-01-10  Eric Blake  <ebb9@byu.net>
59700
59701         * m4/strstr.m4: Delete cruft from copy-n-paste.
59702         Reported by Bruno Haible.
59703
59704 2008-01-10  Bruno Haible  <bruno@clisp.org>
59705
59706         Make c-strstr rely on strstr.
59707         * lib/c-strstr.c: Don't include str-kmp.h.
59708         (c_strstr): Define in terms of strstr.
59709         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59710         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59711
59712 2008-01-10  Bruno Haible  <bruno@clisp.org>
59713
59714         * doc/gnulib.texi (String Functions in C Locale): New section.
59715         * doc/c-ctype.texi: New file.
59716         * doc/c-strcase.texi: New file.
59717         * doc/c-strcaseeq.texi: New file.
59718         * doc/c-strcasestr.texi: New file.
59719         * doc/c-strstr.texi: New file.
59720         * doc/c-strtod.texi: New file.
59721         * doc/c-strtold.texi: New file.
59722
59723 2008-01-10  Eric Blake  <ebb9@byu.net>
59724
59725         * lib/relocatable.h: Fix a comment.
59726
59727 2008-01-10  Eric Blake  <ebb9@byu.net>
59728
59729         Share two-way algorithm.
59730         * lib/str-two-way.h: New file, merged from...
59731         * lib/memmem.c: ...here...
59732         * lib/strstr.c: ...and here.
59733         * modules/memmem (Files): Use it.
59734         * modules/strstr (Files): Likewise.
59735
59736         Avoid quadratic strstr implementations.
59737         * lib/strstr.c: New file.
59738         * m4/strstr.m4: Likewise.
59739         * modules/strstr: Likewise.
59740         * modules/strstr-tests: Likewise.
59741         * tests/test-strstr.c: Likewise.
59742         * lib/string.in.h (rpl_strstr): Declare.
59743         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59745         * modules/string (Makefile.am): Likewise.
59746         * MODULES.html.sh (string handling): Mention new module.
59747         * doc/functions/strstr.texi (strstr): Document the bug.
59748
59749 2008-01-10  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/relocatable.h (relocate): State whether result is freshly
59752         allocated or not.
59753         * lib/relocatable.c (relocate): Return a freshly allocated string
59754         instead of a pointer to a privately held string.
59755         Reported by Sylvain Beucler <beuc@gnu.org>.
59756
59757 2008-01-10  Colin Watson  <cjwatson@debian.org>
59758
59759         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59760         s/S_ISNLK/S_ISLNK/.
59761
59762 2008-01-09  Bruno Haible  <bruno@clisp.org>
59763
59764         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59765         and other files.
59766         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59767         if it's only a guess.
59768         * modules/memmem: Simplify by depending on memmem-simple.
59769
59770 2008-01-09  Bruno Haible  <bruno@clisp.org>
59771
59772         Work around OpenBSD 4.0 tdelete() bug.
59773         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59774         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59775         macros and don't redefine the enum values.
59776         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59777         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59778         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59779
59780 2008-01-09  Bruno Haible  <bruno@clisp.org>
59781
59782         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59783         (main): Don't perform the tests if setlocale did not install a UTF-8
59784         locale. Needed on OpenBSD 4.0.
59785         * modules/wcwidth-tests (Depends-on): Add localcharset.
59786
59787 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59790         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59791         * NEWS: announce this.
59792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59793
59794 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59795         and Eric Blake  <ebb9@byu.net>
59796
59797         Add memmem-simple module.
59798         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59799         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59800         * modules/memmem-simple: New file.
59801         * modules/memmem (Description): Tweak.
59802         * MODULES.html.sh (string handling): Mention new module.
59803         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59804         addressed by memmem-simple.
59805         * NEWS: Document the difference.
59806
59807 2008-01-09  Eric Blake  <ebb9@byu.net>
59808
59809         Give gcc some memmem optimization hints.
59810         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59811         (strcasestr): Declare as pure.
59812         * modules/memmem (Maintainer): Claim my implementation.
59813
59814 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59815
59816         Support AIX 6.1 and higher.
59817         * build-aux/config.libpath: Likewise.
59818         * build-aux/config.rpath: Likewise.
59819
59820 2008-01-08  Jim Meyering  <meyering@redhat.com>
59821             Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
59824         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
59825         Reported by Peter Fales in
59826         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
59827
59828 2008-01-08  Bruno Haible  <bruno@clisp.org>
59829
59830         * modules/unictype/category-of (Depends-on): Add
59831         unictype/category-none.
59832         * modules/unictype/category-and-tests (Depends-on): Add
59833         unictype/category-{L,N,Lu,Nd}.
59834         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
59835         * modules/unictype/category-or-tests (Depends-on): Add
59836         unictype/category-{L,N}.
59837         * modules/unictype/category-name-tests (Depends-on): Add
59838         unictype/category-{Z,Nl}.
59839         Reported by Simon Josefsson.
59840
59841 2008-01-08  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
59844         convention better.
59845         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
59846         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
59847         Reported by Peter Miller <millerp@canb.auug.org.au>.
59848
59849 2008-01-08  Eric Blake  <ebb9@byu.net>
59850
59851         Rewrite memmem to guarantee linear complexity without malloc.
59852         * lib/memmem.c (memmem): Use Two-Way rather than
59853         Knuth-Morris-Pratt, to allow O(1) space usage.
59854         (critical_factorization, two_way_short_needle)
59855         (two_way_long_needle): New functions.
59856         (knuth_morris_pratt): Delete.
59857         * modules/memmem (Depends-on): No longer need malloca or stdbool.
59858         Add stdint.
59859         * tests/test-memmem.c (main): Add tests for periodic needle and
59860         sublinear performance.
59861         * doc/functions/memmem.texi (memmem): Document other deficiencies
59862         in cygwin and older glibc.
59863
59864 2008-01-08  Bruno Haible  <bruno@clisp.org>
59865
59866         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
59867         augmentation.
59868
59869 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
59870
59871         Add a configure time option: --disable-acl.
59872         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
59873         AC_ARG_ENABLE(acl).
59874
59875 2008-01-06  Simon Josefsson  <simon@josefsson.org>
59876
59877         * tests/test-localename.c: Don't include obsolete "setenv.h".
59878
59879         * modules/localename-tests (Depends-on): Need unsetenv.
59880
59881 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59882
59883         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
59884
59885 2008-01-06  Colin Watson  <cjwatson@debian.org>
59886
59887         * users.txt: Add man-db.
59888
59889 2008-01-07  Bruno Haible  <bruno@clisp.org>
59890
59891         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
59892         previous section name.
59893
59894 2008-01-07  Bruno Haible  <bruno@clisp.org>
59895
59896         * lib/progname.c (set_program_name): Don't strip off a leading
59897         "lt-" prefix outside a .libs directory.
59898         Suggested by Paul Eggert.
59899
59900 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
59901             Bruno Haible  <bruno@clisp.org>
59902
59903         Improve memory cleanup in 'relocatable' module.
59904         * lib/relocatable.h (compute_curr_prefix): Change return type to
59905         'char *'.
59906         * lib/relocatable.c (compute_curr_prefix): Change return type to
59907         'char *'. Free curr_installdir after use.
59908         (relocate): Free curr_prefix_better after use.
59909         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
59910
59911 2008-01-01  Bruno Haible  <bruno@clisp.org>
59912
59913         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
59914         failure on older glibc systems.
59915         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59916
59917 2008-01-05  Eric Blake  <ebb9@byu.net>
59918
59919         Avoid quadratic system memmem.
59920         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
59921         Reported by Ralf Wildenhues.
59922
59923         Fix memmem test for mingw.
59924         * modules/memmem-tests (configure.ac): Check for alarm.
59925         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
59926         it.
59927         * doc/functions/memmem.texi: New file.
59928         * doc/gnulib.texi (Function Substitutes): Add memmem.
59929         Reported by Bruno Haible.
59930
59931 2008-01-04  Bruno Haible  <bruno@clisp.org>
59932
59933         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
59934         Require gl_HEADER_STRINGS_H_DEFAULTS, not
59935         gl_HEADER_STRING_H_DEFAULTS.
59936
59937 2008-01-04  Eric Blake  <ebb9@byu.net>
59938
59939         Shorten duration of memmem test.
59940         * tests/test-memmem.c (main): Use alarm to declare failure if test
59941         is taking too long.
59942         Reported by Ralf Wildenhues.
59943
59944 2007-12-21  Simon Josefsson  <simon@josefsson.org>
59945
59946         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
59947         string, needed by strerror.
59948
59949 2008-01-03  Colin Watson  <cjwatson@debian.org>
59950             Bruno Haible  <bruno@clisp.org>
59951
59952         * doc/gnulib-tool.texi (Localization): New section.
59953
59954 2008-01-02  Bruno Haible  <bruno@clisp.org>
59955
59956         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59957         variables to 'unsigned char *' type.
59958         Reported by Paul Eggert.
59959
59960 2008-01-02  Jim Meyering  <jim@meyering.net>
59961
59962         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59963
59964 2007-12-31  Jim Meyering  <jim@meyering.net>
59965
59966         Avoid use of private FTS type name.
59967         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59968
59969 2007-12-30  Karl Berry  <karl@gnu.org>
59970
59971         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59972         work around defect in Texinfo and/or the standalone Info browser.
59973
59974 2007-12-30  Bruno Haible  <bruno@clisp.org>
59975
59976         Unify 5 copies of the KMP code.
59977         * lib/str-kmp.h: New file.
59978         * lib/c-strcasestr.c: Include str-kmp.h.
59979         (knuth_morris_pratt): Remove function.
59980         (c_strcasestr): Update.
59981         * lib/c-strstr.c: Include str-kmp.h.
59982         (knuth_morris_pratt): Remove function.
59983         (c_strcasestr): Update.
59984         * lib/mbscasestr.c: Include str-kmp.h.
59985         (knuth_morris_pratt_unibyte): Remove function.
59986         * lib/mbsstr.c: Include str-kmp.h.
59987         (knuth_morris_pratt_unibyte): Remove function.
59988         * lib/strcasestr.c: Include str-kmp.h.
59989         (knuth_morris_pratt): Remove function.
59990         (strcasestr): Update.
59991         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59992         * modules/c-strstr (Files): Likewise.
59993         * modules/mbscasestr (Files): Likewise.
59994         * modules/mbsstr (Files): Likewise.
59995         * modules/strcasestr (Files): Likewise.
59996         Suggested by Paul Eggert.
59997
59998 2007-12-30  Bruno Haible  <bruno@clisp.org>
59999
60000         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60001         defined.
60002
60003 2007-12-30  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/xmalloca.h: Include xalloc.h.
60006         (xnmalloca): New macro.
60007
60008 2007-12-30  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/malloca.h (nmalloca): New macro.
60011         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60012         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60013         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60014         knuth_morris_pratt_multibyte): Likewise.
60015         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60016         knuth_morris_pratt_multibyte): Likewise.
60017         * lib/memmem.c (knuth_morris_pratt): Likewise.
60018         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60019
60020 2007-12-25  Bruno Haible  <bruno@clisp.org>
60021
60022         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60023         * lib/glob.c: Don't include openat.h.
60024         (link_exists2_p): Add back the code that deals with the
60025         !GLOB_ALTDIRFUNC case.
60026         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60027         let it do the filename concatenation.
60028         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60029         * modules/glob (Depends-on): Remove openat.
60030
60031 2007-12-31  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/dirfd (License): Change to LGPLv2+.
60034         Approved by Jim Meyering.
60035
60036 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60037
60038         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60039         when multiplying M by sizeof (size_t).
60040
60041 2007-12-10  Martin Lambers  <marlam@marlam.de>
60042
60043         Override getpagesize on mingw.
60044         * lib/getpagesize.c: New file.
60045         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60046         * modules/getpagesize (Files): Add lib/getpagesize.c.
60047         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60049         REPLACE_GETPAGESIZE.
60050         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60051
60052 2007-12-25  Bruno Haible  <bruno@clisp.org>
60053
60054         * modules/localcharset (Notice): New field.
60055         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60056         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60057
60058 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60059             Bruno Haible  <bruno@clisp.org>
60060
60061         Avoid using the syntax symbol() in formatted documentation.
60062         * MODULES.html.sh (func_module): When replacing symbol() with a
60063         hyperlink, remove the parentheses. Show an error if some remain.
60064         Recognize and render the '...' syntax.
60065         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60066         Rework. Add paragraph about GCC's inlining.
60067         * doc/alloca.texi: Likewise.
60068         * doc/error.texi: Remove parentheses from symbol reference.
60069         * doc/gnulib-intro.texi: Likewise.
60070         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60071         * modules/fnmatch (Description): Reword to say "the ... function".
60072         * modules/full-read (Description): Likewise.
60073         * modules/full-write (Description): Likewise.
60074         * modules/safe-read (Description): Likewise.
60075         * modules/safe-write (Description): Likewise.
60076         * modules/strchrnul (Description): Likewise.
60077         * modules/trim (Description): Likewise.
60078         * modules/error (Description): Remove parentheses from symbol
60079         references.
60080         * modules/verror (Description): Likewise.
60081         Reported by Karl Berry.
60082
60083 2007-12-25  Bruno Haible  <bruno@clisp.org>
60084
60085         Fixup after 2007-10-16 commit.
60086         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60087
60088 2007-12-24  Bruno Haible  <bruno@clisp.org>
60089
60090         Make --enable-relocatable work with DESTDIR.
60091         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60092         to compute installdir from destprog.
60093         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60094         also set the RELOC_DESTDIR variable.
60095         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60096
60097 2007-12-24  Bruno Haible  <bruno@clisp.org>
60098
60099         Fix link error due to xalloc_die().
60100         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60101         of xreadlink.
60102         * lib/relocwrapper.c: Update comments.
60103         * build-aux/install-reloc: Remove xreadlink.c from file list.
60104         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60105         xreadlink.c.
60106         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60107
60108 2007-12-24  Bruno Haible  <bruno@clisp.org>
60109
60110         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60111         * lib/setenv.h: Remove file.
60112         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60113         lib/setenv.h.
60114         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60115         (Depends-on): Add stdlib.
60116         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60117         gl_FUNC_UNSETENV.
60118         (Include): Replace setenv.h with <stdlib.h>.
60119         * modules/unsetenv: New file.
60120         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60121         * lib/unsetenv.c: Include <stdlib.h> first.
60122         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60123         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60124         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60125         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60126         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60127         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60129         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60130         * doc/functions/unsetenv.texi: Update.
60131         * modules/xsetenv (Depends-on): Add unsetenv.
60132         * modules/getdate (Depends-on): Likewise.
60133         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60134         * lib/xsetenv.c: Don't include setenv.h.
60135         * lib/getdate.y: Likewise.
60136         * lib/relocwrapper.c: Likewise.
60137         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60138         (Depends-on): Add stdlib.
60139         * NEWS: Mention the changes.
60140         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60141
60142 2007-12-23  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60145         indentation.
60146
60147 2007-12-23  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/c-strcasestr.c: Add more comments.
60150         * lib/c-strstr.c: Likewise.
60151         * lib/mbscasestr.c: Likewise.
60152         * lib/mbsstr.c: Likewise.
60153         * lib/strcasestr.c: Likewise.
60154         * lib/memmem.c: Likewise.
60155
60156 2007-12-23  Bruno Haible  <bruno@clisp.org>
60157
60158         * tests/test-memmem.c: Include <string.h> first.
60159
60160 2007-12-22  Bruno Haible  <bruno@clisp.org>
60161
60162         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60163         the contents of $testsbase.
60164         Reported by Ralf Wildenhues.
60165
60166 2007-12-22  Bruno Haible  <bruno@clisp.org>
60167
60168         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60169         two variables local_ldadd_before, local_ldadd_last.
60170
60171 2007-12-20  Eric Blake  <ebb9@byu.net>
60172
60173         Work around circular library issue when cross-compiling.
60174         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60175         that progname.o does not need to pull in rpl_memcmp.
60176
60177 2007-12-19  Eric Blake  <ebb9@byu.net>
60178
60179         Fix memmem to avoid O(n^2) worst-case complexity.
60180         * lib/memmem.c (knuth_morris_pratt): New function.
60181         (memmem): Use it if first few naive iterations fail.
60182         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60183         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60184         * modules/memchr (License): Likewise.
60185         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60186         malloca.
60187         * tests/test-memmem.c: Rewrite, borrowing ideas from
60188         test-mbsstr1.c; the old version wouldn't even compile!
60189         * modules/memmem-tests: New file.
60190         * lib/string.in.h (rpl_memmem): Add declaration.
60191         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60193         REPLACE_MEMMEM.
60194
60195 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60198         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60199         before any system include files, and undef after them all.  This
60200         should fix a problem on VMS reported by John E. Malmberg in
60201         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60202
60203 2007-12-17  Eric Blake  <ebb9@byu.net>
60204
60205         Revert addition of verify, for BSD/OS.
60206         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60207         can't handle large files, for the sake of obsolete platforms.
60208         * modules/fseeko (Depends-on): Remove verify.
60209         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60210         * doc/functions/ftello.texi (ftello): Likewise.
60211         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60212         Reported by Larry Jones.
60213
60214 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60215
60216         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60217         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60218
60219 2007-12-17  Jim Meyering  <meyering@redhat.com>
60220
60221         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60222         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60223         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60224         * modules/getcwd (Depends-on): Add openat.
60225         Reported by Petr Salinger.
60226
60227 2007-12-17  Bruno Haible  <bruno@clisp.org>
60228
60229         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60230         avoid a segmentation fault of the configure test on x86_64 systems.
60231
60232 2007-12-15  Jim Meyering  <meyering@redhat.com>
60233
60234         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60235
60236 2007-12-13  Eric Blake  <ebb9@byu.net>
60237
60238         Another fseek test.
60239         * tests/test-fseek.c (main): Also test ungetc handling.
60240         * tests/test-fseeko.c (main): Likewise.
60241         * modules/fseeko (Depends-on): Add verify.
60242         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60243         large.
60244         Reported by Larry Jones.
60245
60246         Fix fseeko on mingw.
60247         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60248         seek.
60249
60250         Beef up fseek tests.
60251         * tests/test-fseek.c (main): Also test eof handling.
60252         * tests/test-fseeko.c (main): Likewise.
60253         Reported by Larry Jones.
60254
60255 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60256
60257         Fix fseeko on BSD-based platforms.
60258         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60259         successful seek.
60260
60261 2007-12-12  Eric Blake  <ebb9@byu.net>
60262
60263         Allow circular dependency of separate libtests.a
60264         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60265         when use_libtests.
60266
60267 2007-12-11  Eric Blake  <ebb9@byu.net>
60268
60269         Fix bug with -0.0L in previous patch.
60270         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60271         * tests/test-isnan.c (main): Also test on zeroes.
60272         * tests/test-isnanf.c (main): Likewise.
60273         * tests/test-isnanl.h (main): Likewise.
60274
60275         Detect pseudo-denormals on x86 even when cross-compiling.
60276         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60277         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60278         invalid bit patterns that happen to satisfy ==.
60279
60280         Avoid link failures with separate libtests.a.
60281         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60282         last, to satisfy circular dependencies.
60283
60284 2007-12-11  Eric Blake  <ebb9@byu.net>
60285         and Bruno Haible  <bruno@clisp.org>
60286
60287         Fix OpenBSD 4.0 <float.h> handling of long double.
60288         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60289         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60290         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60291
60292 2007-12-11  Jim Meyering  <meyering@redhat.com>
60293
60294         * users.txt: Add libvirt.
60295
60296         Support versions of autoconf prior to 2.59c.
60297         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60298         if it is not already defined.
60299
60300 2007-12-09  Bruno Haible  <bruno@clisp.org>
60301
60302         Let 'gnulib-tool --import' collect sources needed for the tests in
60303         tests/ rather than in lib/.
60304         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60305         argument. If true, add rules to generate libtests.a, and put libtests.a
60306         into $(LDADD). Consider source files in subdirectories and set
60307         uses_subdirs.
60308         (func_emit_initmacro_start, func_emit_initmacro_end,
60309         func_emit_initmacro_done): Pass all arguments explicitly.
60310         (func_import): Determine two module lists main_modules,
60311         testsrelated_modules. Determine use_libtests. Determine two variables
60312         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60313         instead of just sed_transform_lib_file. Determine two variables
60314         main_files and testsrelated_files. Compute 'files' as the union of
60315         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60316         func_add_or_update. In the generated gnulib-comp.m4, collect the
60317         object files for tests/ in different variables than those for lib/.
60318         Substitute LIBTESTS_LIBDEPS.
60319         (func_create_testdir): Combine the uses_subdirs results from
60320         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60321
60322 2007-12-09  Bruno Haible  <bruno@clisp.org>
60323
60324         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60325         the build-aux directory.
60326
60327 2007-12-09  Bruno Haible  <bruno@clisp.org>
60328
60329         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60330         introduced on 2006-09-09.
60331
60332 2007-12-07  Jim Meyering  <meyering@redhat.com>
60333
60334         Let these macros work also with autoconf-2.59.
60335         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60336         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60337         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60338
60339 2007-12-06  Jim Meyering  <meyering@redhat.com>
60340
60341         Avoid a configure-time syntax error in gl_FUNC_ACL.
60342         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60343         function in each branch, before testing the cache variable.
60344
60345 2007-12-04  Eric Blake  <ebb9@byu.net>
60346
60347         Make scripts executable.
60348         * build-aux/config.guess: Add execute permissions.
60349         * build-aux/config.sub: Likewise.
60350         * build-aux/gendocs.sh: Likewise.
60351
60352         Fix frexp on mingw.
60353         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60354         cross-compiling.
60355         * doc/functions/frexp.texi (frexp): Document the bug.
60356
60357         Make cygwin fseeko check more reliable.
60358         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60359         version numbers, rather than unrelated feature check.
60360         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60361         * doc/functions/ftello.texi (ftello): Likewise.
60362         Reported by Bruno Haible.
60363
60364         * m4/strerror.m4: Bump version number.
60365
60366 2007-12-03  Bruno Haible  <bruno@clisp.org>
60367
60368         * doc/functions/mprotect.texi: Mention the mingw problem.
60369
60370 2007-12-03  Eric Blake  <ebb9@byu.net>
60371
60372         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60373         REPLACE_STRERROR is initialized before this macro.
60374
60375 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60378         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60379         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60380         put -lsec in even for programs other than 'ls'.  This fixes a problem
60381         for gettext reported by Bruno Haible in
60382         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60383         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60384         Add support for Solaris 10.  This isn't efficient, but should get the
60385         job done for now.
60386
60387 2007-12-03  James Youngman  <jay@gnu.org>
60388
60389         * doc/regexprops-generic.texi: change "an close-group" to "a
60390         close-group" and "illegal" to "not allowed".
60391
60392 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60393
60394         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60395         pr_byname.h. Needed for the rare case when the maintainer has done
60396         "make maintainer-clean" in the source directory and then attempts a
60397         build outside the source directory.
60398         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60399         scripts_byname.h.
60400
60401 2007-12-02  Martin Lambers <marlam@marlam.de>
60402             Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/getpagesize.h: Remove file.
60405         * lib/unistd.in.h: Include declaration of getpagesize here.
60406         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60407         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60408         HAVE_SYS_PARAM_H.
60409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60410         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60411         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60412         (Depends-on): Add unistd.
60413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60414         (Include): Use <unistd.h> instead of getpagesize.h.
60415         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60416         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60417         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60418         gl_GETPAGESIZE invocation, already handled by module dependency.
60419         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60420
60421 2007-12-02  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/strings-tests: New file.
60424         * tests/test-strings.c: New file.
60425
60426         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60427         * lib/strings.in.h: New file.
60428         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60429         * m4/strings_h.m4: New file.
60430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60431         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60432         * modules/strings: New file.
60433         * modules/string (Makefile.am): Update.
60434         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60435         Reported by Karl Berry.
60436
60437 2007-12-01  Eric Blake  <ebb9@byu.net>
60438
60439         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60440         accommodate fix in cygwin 1.5.25.
60441
60442 2007-12-01  Jim Meyering  <meyering@redhat.com>
60443
60444         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60445         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60446         that would inhibit utf8-optimization of a regexp containing line-
60447         or buffer-anchors, e.g., `^', `$'.
60448
60449 2007-11-30  Bruno Haible  <bruno@clisp.org>
60450
60451         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60452         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60453         glthread_recursive_lock_init.
60454         * lib/lock.c (glthread_recursive_lock_init)
60455         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60456         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60457
60458 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60459
60460         New function qset_acl, like set_acl but with syscall semantics.
60461         * lib/acl.h (qset_acl): New decl.
60462         * lib/acl.c (qset_acl): New function.
60463         (set_acl): Use new function.  Use more-consistent diagnostics.
60464
60465 2007-11-28  Jim Meyering  <meyering@redhat.com>
60466
60467         * modules/physmem (License): Change from GPL to LGPLv2+.
60468
60469 2007-11-26  Bruno Haible  <bruno@clisp.org>
60470
60471         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60472         'long double' type has excess precision.
60473         Reported by Jim Meyering in
60474         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60475
60476 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60477
60478         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60479         Sync from <http://gnu.org/licenses>.
60480         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60481         with license text from same location.
60482         * doc/maintain.texi, doc/standards.texi:  Sync from
60483         <http://savannah.gnu.org/projects/gnustandards>.
60484
60485 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60486         and Jim Meyering  <meyering@redhat.com>
60487
60488         Adjust getdate' grammar to accept a slightly more regular language.
60489         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60490         Before, the former was rejected.
60491         * lib/getdate.y (digits_to_date_time): New function, factored
60492         out of ...
60493         (number): ...here.  Just call digits_to_date_time.
60494         (hybrid): New non-terminal to handle an <unsigned number,
60495         signed relative offset> sequence consistently.
60496
60497 2007-11-18  Jim Meyering  <meyering@redhat.com>
60498
60499         Pull my changes from coreutils:
60500         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60501         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60502         use of $gnulib_tool_option_extras, so that it's separated from the
60503         preceding argument.
60504
60505         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60506         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60507         parent destination directories before copying a file into place.
60508
60509 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60510
60511         bootstrap: work also with 4-argument variant of AC_INIT
60512         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60513
60514 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60515
60516         Port test-getaddrinfo to Solaris.
60517         Problem reported by Bruno Haible in
60518         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60519         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60520         explanation of setting 'hints'.
60521         Don't reject an implementation merely because it returns EAI_SERVICE.
60522         (EAI_SERVICE): Define to 0 if not defined.
60523
60524 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60525
60526         The license of gnu-make and posix-shell is now "GPLed build tool".
60527         * modules/gnu-make (License): Likewise.
60528         * modules/posix-shell (License): Likewise.
60529
60530         New module posix-shell, for determining a POSIX shell
60531         or perhaps something that is close enough to a POSIX shell.
60532         * m4/posix-shell.m4: New file.
60533         * modules/posix-shell: New file.
60534
60535         * MODULES.html.sh: Mention new module.
60536
60537         New module gnu-make, for determining whether we're using GNU Make.
60538         * m4/gnu-make.m4: New file.
60539         * modules/gnu-make: New file.
60540         * MODULES.html.sh: Mention new module.
60541
60542 2007-11-14  Jim Meyering  <meyering@redhat.com>
60543
60544         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60545         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60546         use this macro to create a function _definition_.
60547         Remove useless "#undef ARGMATCH_DIE".
60548
60549 2007-11-14  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/config.charset: Update for OpenBSD 4.1.
60552         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60553
60554 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         Document 64-bit #if problems in stdint.texi.
60557         * doc/headers/stdint.texi (stdint.h): Mention problems with
60558         64-bit-#if, and how to work around them.
60559
60560         Don't insist on 'long long int' support in the preprocessor.  It
60561         breaks too many things.  For example, PRIdMAX still uses a 'long
60562         long int' format with the latest Sun compiler, even though
60563         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60564         preprocessor problem.  This causes the latest coreutils to dump
60565         core on Solaris 10 sparc with the Sun C compiler.
60566         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60567         the troublesome expressions at configure-time, not at #if-time.
60568         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60569         preprocessor.
60570         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60571         compile-time C checks, done at 'configure'-time.
60572         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60573         * modules/inttypes (Makefile): Substitute the new symbols that
60574         gl_INTTYPES_H now generates.
60575         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60576
60577 2007-11-12  Bruno Haible  <bruno@clisp.org>
60578
60579         Tests for Unicode character classification functions.
60580
60581         * modules/unictype/bidicategory-byname-tests: New file.
60582         * modules/unictype/bidicategory-name-tests: New file.
60583         * modules/unictype/bidicategory-of-tests: New file.
60584         * modules/unictype/bidicategory-test-tests: New file.
60585         * modules/unictype/block-list-tests: New file.
60586         * modules/unictype/block-of-tests: New file.
60587         * modules/unictype/block-test-tests: New file.
60588         * modules/unictype/category-C-tests: New file.
60589         * modules/unictype/category-Cc-tests: New file.
60590         * modules/unictype/category-Cf-tests: New file.
60591         * modules/unictype/category-Cn-tests: New file.
60592         * modules/unictype/category-Co-tests: New file.
60593         * modules/unictype/category-Cs-tests: New file.
60594         * modules/unictype/category-L-tests: New file.
60595         * modules/unictype/category-Ll-tests: New file.
60596         * modules/unictype/category-Lm-tests: New file.
60597         * modules/unictype/category-Lo-tests: New file.
60598         * modules/unictype/category-Lt-tests: New file.
60599         * modules/unictype/category-Lu-tests: New file.
60600         * modules/unictype/category-M-tests: New file.
60601         * modules/unictype/category-Mc-tests: New file.
60602         * modules/unictype/category-Me-tests: New file.
60603         * modules/unictype/category-Mn-tests: New file.
60604         * modules/unictype/category-N-tests: New file.
60605         * modules/unictype/category-Nd-tests: New file.
60606         * modules/unictype/category-Nl-tests: New file.
60607         * modules/unictype/category-No-tests: New file.
60608         * modules/unictype/category-P-tests: New file.
60609         * modules/unictype/category-Pc-tests: New file.
60610         * modules/unictype/category-Pd-tests: New file.
60611         * modules/unictype/category-Pe-tests: New file.
60612         * modules/unictype/category-Pf-tests: New file.
60613         * modules/unictype/category-Pi-tests: New file.
60614         * modules/unictype/category-Po-tests: New file.
60615         * modules/unictype/category-Ps-tests: New file.
60616         * modules/unictype/category-S-tests: New file.
60617         * modules/unictype/category-Sc-tests: New file.
60618         * modules/unictype/category-Sk-tests: New file.
60619         * modules/unictype/category-Sm-tests: New file.
60620         * modules/unictype/category-So-tests: New file.
60621         * modules/unictype/category-Z-tests: New file.
60622         * modules/unictype/category-Zl-tests: New file.
60623         * modules/unictype/category-Zp-tests: New file.
60624         * modules/unictype/category-Zs-tests: New file.
60625         * modules/unictype/category-and-not-tests: New file.
60626         * modules/unictype/category-and-tests: New file.
60627         * modules/unictype/category-byname-tests: New file.
60628         * modules/unictype/category-name-tests: New file.
60629         * modules/unictype/category-none-tests: New file.
60630         * modules/unictype/category-of-tests: New file.
60631         * modules/unictype/category-or-tests: New file.
60632         * modules/unictype/category-test-withtable-tests: New file.
60633         * modules/unictype/combining-class-tests: New file.
60634         * modules/unictype/ctype-alnum-tests: New file.
60635         * modules/unictype/ctype-alpha-tests: New file.
60636         * modules/unictype/ctype-blank-tests: New file.
60637         * modules/unictype/ctype-cntrl-tests: New file.
60638         * modules/unictype/ctype-digit-tests: New file.
60639         * modules/unictype/ctype-graph-tests: New file.
60640         * modules/unictype/ctype-lower-tests: New file.
60641         * modules/unictype/ctype-print-tests: New file.
60642         * modules/unictype/ctype-punct-tests: New file.
60643         * modules/unictype/ctype-space-tests: New file.
60644         * modules/unictype/ctype-upper-tests: New file.
60645         * modules/unictype/ctype-xdigit-tests: New file.
60646         * modules/unictype/decimal-digit-tests: New file.
60647         * modules/unictype/digit-tests: New file.
60648         * modules/unictype/mirror-tests: New file.
60649         * modules/unictype/numeric-tests: New file.
60650         * modules/unictype/property-alphabetic-tests: New file.
60651         * modules/unictype/property-ascii-hex-digit-tests: New file.
60652         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60653         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60654         * modules/unictype/property-bidi-block-separator-tests: New file.
60655         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60656         * modules/unictype/property-bidi-common-separator-tests: New file.
60657         * modules/unictype/property-bidi-control-tests: New file.
60658         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60659         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60660         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60661         * modules/unictype/property-bidi-european-digit-tests: New file.
60662         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60663         * modules/unictype/property-bidi-left-to-right-tests: New file.
60664         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60665         * modules/unictype/property-bidi-other-neutral-tests: New file.
60666         * modules/unictype/property-bidi-pdf-tests: New file.
60667         * modules/unictype/property-bidi-segment-separator-tests: New file.
60668         * modules/unictype/property-bidi-whitespace-tests: New file.
60669         * modules/unictype/property-byname-tests: New file.
60670         * modules/unictype/property-combining-tests: New file.
60671         * modules/unictype/property-composite-tests: New file.
60672         * modules/unictype/property-currency-symbol-tests: New file.
60673         * modules/unictype/property-dash-tests: New file.
60674         * modules/unictype/property-decimal-digit-tests: New file.
60675         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60676         * modules/unictype/property-deprecated-tests: New file.
60677         * modules/unictype/property-diacritic-tests: New file.
60678         * modules/unictype/property-extender-tests: New file.
60679         * modules/unictype/property-format-control-tests: New file.
60680         * modules/unictype/property-grapheme-base-tests: New file.
60681         * modules/unictype/property-grapheme-extend-tests: New file.
60682         * modules/unictype/property-grapheme-link-tests: New file.
60683         * modules/unictype/property-hex-digit-tests: New file.
60684         * modules/unictype/property-hyphen-tests: New file.
60685         * modules/unictype/property-id-continue-tests: New file.
60686         * modules/unictype/property-id-start-tests: New file.
60687         * modules/unictype/property-ideographic-tests: New file.
60688         * modules/unictype/property-ids-binary-operator-tests: New file.
60689         * modules/unictype/property-ids-trinary-operator-tests: New file.
60690         * modules/unictype/property-ignorable-control-tests: New file.
60691         * modules/unictype/property-iso-control-tests: New file.
60692         * modules/unictype/property-join-control-tests: New file.
60693         * modules/unictype/property-left-of-pair-tests: New file.
60694         * modules/unictype/property-line-separator-tests: New file.
60695         * modules/unictype/property-logical-order-exception-tests: New file.
60696         * modules/unictype/property-lowercase-tests: New file.
60697         * modules/unictype/property-math-tests: New file.
60698         * modules/unictype/property-non-break-tests: New file.
60699         * modules/unictype/property-not-a-character-tests: New file.
60700         * modules/unictype/property-numeric-tests: New file.
60701         * modules/unictype/property-other-alphabetic-tests: New file.
60702         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60703         * modules/unictype/property-other-grapheme-extend-tests: New file.
60704         * modules/unictype/property-other-id-continue-tests: New file.
60705         * modules/unictype/property-other-id-start-tests: New file.
60706         * modules/unictype/property-other-lowercase-tests: New file.
60707         * modules/unictype/property-other-math-tests: New file.
60708         * modules/unictype/property-other-uppercase-tests: New file.
60709         * modules/unictype/property-paired-punctuation-tests: New file.
60710         * modules/unictype/property-paragraph-separator-tests: New file.
60711         * modules/unictype/property-pattern-syntax-tests: New file.
60712         * modules/unictype/property-pattern-white-space-tests: New file.
60713         * modules/unictype/property-private-use-tests: New file.
60714         * modules/unictype/property-punctuation-tests: New file.
60715         * modules/unictype/property-quotation-mark-tests: New file.
60716         * modules/unictype/property-radical-tests: New file.
60717         * modules/unictype/property-sentence-terminal-tests: New file.
60718         * modules/unictype/property-soft-dotted-tests: New file.
60719         * modules/unictype/property-space-tests: New file.
60720         * modules/unictype/property-terminal-punctuation-tests: New file.
60721         * modules/unictype/property-test-tests: New file.
60722         * modules/unictype/property-titlecase-tests: New file.
60723         * modules/unictype/property-unassigned-code-value-tests: New file.
60724         * modules/unictype/property-unified-ideograph-tests: New file.
60725         * modules/unictype/property-uppercase-tests: New file.
60726         * modules/unictype/property-variation-selector-tests: New file.
60727         * modules/unictype/property-white-space-tests: New file.
60728         * modules/unictype/property-xid-continue-tests: New file.
60729         * modules/unictype/property-xid-start-tests: New file.
60730         * modules/unictype/property-zero-width-tests: New file.
60731         * modules/unictype/scripts-tests: New file.
60732         * modules/unictype/syntax-c-ident-tests: New file.
60733         * modules/unictype/syntax-c-whitespace-tests: New file.
60734         * modules/unictype/syntax-java-ident-tests: New file.
60735         * modules/unictype/syntax-java-whitespace-tests: New file.
60736         * tests/unictype/test-bidi_byname.c: New file.
60737         * tests/unictype/test-bidi_name.c: New file.
60738         * tests/unictype/test-bidi_of.c: New file.
60739         * tests/unictype/test-bidi_test.c: New file.
60740         * tests/unictype/test-block_list.c: New file.
60741         * tests/unictype/test-block_of.c: New file.
60742         * tests/unictype/test-block_test.c: New file.
60743         * tests/unictype/test-categ_and.c: New file.
60744         * tests/unictype/test-categ_and_not.c: New file.
60745         * tests/unictype/test-categ_byname.c: New file.
60746         * tests/unictype/test-categ_name.c: New file.
60747         * tests/unictype/test-categ_none.c: New file.
60748         * tests/unictype/test-categ_of.c: New file.
60749         * tests/unictype/test-categ_or.c: New file.
60750         * tests/unictype/test-categ_test_withtable.c: New file.
60751         * tests/unictype/test-combining.c: New file.
60752         * tests/unictype/test-decdigit.c: New file.
60753         * tests/unictype/test-digit.c: New file.
60754         * tests/unictype/test-mirror.c: New file.
60755         * tests/unictype/test-numeric.c: New file.
60756         * tests/unictype/test-pr_byname.c: New file.
60757         * tests/unictype/test-pr_test.c: New file.
60758         * tests/unictype/test-predicate-part1.h: New file.
60759         * tests/unictype/test-predicate-part2.h: New file.
60760         * tests/unictype/test-scripts.c: New file.
60761         * tests/unictype/test-sy_c_ident.c: New file.
60762         * tests/unictype/test-sy_java_ident.c: New file.
60763
60764         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60765         for Unicode 5.0.0.
60766         * tests/unictype/test-categ_Cc.c: Likewise.
60767         * tests/unictype/test-categ_Cf.c: Likewise.
60768         * tests/unictype/test-categ_Cn.c: Likewise.
60769         * tests/unictype/test-categ_Co.c: Likewise.
60770         * tests/unictype/test-categ_Cs.c: Likewise.
60771         * tests/unictype/test-categ_L.c: Likewise.
60772         * tests/unictype/test-categ_Ll.c: Likewise.
60773         * tests/unictype/test-categ_Lm.c: Likewise.
60774         * tests/unictype/test-categ_Lo.c: Likewise.
60775         * tests/unictype/test-categ_Lt.c: Likewise.
60776         * tests/unictype/test-categ_Lu.c: Likewise.
60777         * tests/unictype/test-categ_M.c: Likewise.
60778         * tests/unictype/test-categ_Mc.c: Likewise.
60779         * tests/unictype/test-categ_Me.c: Likewise.
60780         * tests/unictype/test-categ_Mn.c: Likewise.
60781         * tests/unictype/test-categ_N.c: Likewise.
60782         * tests/unictype/test-categ_Nd.c: Likewise.
60783         * tests/unictype/test-categ_Nl.c: Likewise.
60784         * tests/unictype/test-categ_No.c: Likewise.
60785         * tests/unictype/test-categ_P.c: Likewise.
60786         * tests/unictype/test-categ_Pc.c: Likewise.
60787         * tests/unictype/test-categ_Pd.c: Likewise.
60788         * tests/unictype/test-categ_Pe.c: Likewise.
60789         * tests/unictype/test-categ_Pf.c: Likewise.
60790         * tests/unictype/test-categ_Pi.c: Likewise.
60791         * tests/unictype/test-categ_Po.c: Likewise.
60792         * tests/unictype/test-categ_Ps.c: Likewise.
60793         * tests/unictype/test-categ_S.c: Likewise.
60794         * tests/unictype/test-categ_Sc.c: Likewise.
60795         * tests/unictype/test-categ_Sk.c: Likewise.
60796         * tests/unictype/test-categ_Sm.c: Likewise.
60797         * tests/unictype/test-categ_So.c: Likewise.
60798         * tests/unictype/test-categ_Z.c: Likewise.
60799         * tests/unictype/test-categ_Zl.c: Likewise.
60800         * tests/unictype/test-categ_Zp.c: Likewise.
60801         * tests/unictype/test-categ_Zs.c: Likewise.
60802         * tests/unictype/test-ctype_alnum.c: Likewise.
60803         * tests/unictype/test-ctype_alpha.c: Likewise.
60804         * tests/unictype/test-ctype_blank.c: Likewise.
60805         * tests/unictype/test-ctype_cntrl.c: Likewise.
60806         * tests/unictype/test-ctype_digit.c: Likewise.
60807         * tests/unictype/test-ctype_graph.c: Likewise.
60808         * tests/unictype/test-ctype_lower.c: Likewise.
60809         * tests/unictype/test-ctype_print.c: Likewise.
60810         * tests/unictype/test-ctype_punct.c: Likewise.
60811         * tests/unictype/test-ctype_space.c: Likewise.
60812         * tests/unictype/test-ctype_upper.c: Likewise.
60813         * tests/unictype/test-ctype_xdigit.c: Likewise.
60814         * tests/unictype/test-decdigit.h: Likewise.
60815         * tests/unictype/test-digit.h: Likewise.
60816         * tests/unictype/test-numeric.h: Likewise.
60817         * tests/unictype/test-pr_alphabetic.c: Likewise.
60818         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
60819         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60820         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
60821         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
60822         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
60823         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
60824         * tests/unictype/test-pr_bidi_control.c: Likewise.
60825         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
60826         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
60827         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60828         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60829         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60830         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60831         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60832         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60833         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
60834         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
60835         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
60836         * tests/unictype/test-pr_combining.c: Likewise.
60837         * tests/unictype/test-pr_composite.c: Likewise.
60838         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60839         * tests/unictype/test-pr_dash.c: Likewise.
60840         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60841         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
60842         * tests/unictype/test-pr_deprecated.c: Likewise.
60843         * tests/unictype/test-pr_diacritic.c: Likewise.
60844         * tests/unictype/test-pr_extender.c: Likewise.
60845         * tests/unictype/test-pr_format_control.c: Likewise.
60846         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60847         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60848         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60849         * tests/unictype/test-pr_hex_digit.c: Likewise.
60850         * tests/unictype/test-pr_hyphen.c: Likewise.
60851         * tests/unictype/test-pr_id_continue.c: Likewise.
60852         * tests/unictype/test-pr_id_start.c: Likewise.
60853         * tests/unictype/test-pr_ideographic.c: Likewise.
60854         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
60855         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
60856         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60857         * tests/unictype/test-pr_iso_control.c: Likewise.
60858         * tests/unictype/test-pr_join_control.c: Likewise.
60859         * tests/unictype/test-pr_left_of_pair.c: Likewise.
60860         * tests/unictype/test-pr_line_separator.c: Likewise.
60861         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60862         * tests/unictype/test-pr_lowercase.c: Likewise.
60863         * tests/unictype/test-pr_math.c: Likewise.
60864         * tests/unictype/test-pr_non_break.c: Likewise.
60865         * tests/unictype/test-pr_not_a_character.c: Likewise.
60866         * tests/unictype/test-pr_numeric.c: Likewise.
60867         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60868         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
60869         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
60870         * tests/unictype/test-pr_other_id_continue.c: Likewise.
60871         * tests/unictype/test-pr_other_id_start.c: Likewise.
60872         * tests/unictype/test-pr_other_lowercase.c: Likewise.
60873         * tests/unictype/test-pr_other_math.c: Likewise.
60874         * tests/unictype/test-pr_other_uppercase.c: Likewise.
60875         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
60876         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
60877         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
60878         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
60879         * tests/unictype/test-pr_private_use.c: Likewise.
60880         * tests/unictype/test-pr_punctuation.c: Likewise.
60881         * tests/unictype/test-pr_quotation_mark.c: Likewise.
60882         * tests/unictype/test-pr_radical.c: Likewise.
60883         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60884         * tests/unictype/test-pr_soft_dotted.c: Likewise.
60885         * tests/unictype/test-pr_space.c: Likewise.
60886         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60887         * tests/unictype/test-pr_titlecase.c: Likewise.
60888         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60889         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60890         * tests/unictype/test-pr_uppercase.c: Likewise.
60891         * tests/unictype/test-pr_variation_selector.c: Likewise.
60892         * tests/unictype/test-pr_white_space.c: Likewise.
60893         * tests/unictype/test-pr_xid_continue.c: Likewise.
60894         * tests/unictype/test-pr_xid_start.c: Likewise.
60895         * tests/unictype/test-pr_zero_width.c: Likewise.
60896         * tests/unictype/test-sy_c_whitespace.c: Likewise.
60897         * tests/unictype/test-sy_java_whitespace.c: Likewise.
60898
60899 2007-11-12  Bruno Haible  <bruno@clisp.org>
60900
60901         Unicode character classification functions.
60902         * lib/unictype.h: New file.
60903         * modules/unictype/base: New file.
60904         * modules/unictype/category-L: New file.
60905         * modules/unictype/category-Lu: New file.
60906         * modules/unictype/category-Ll: New file.
60907         * modules/unictype/category-Lt: New file.
60908         * modules/unictype/category-Lm: New file.
60909         * modules/unictype/category-Lo: New file.
60910         * modules/unictype/category-M: New file.
60911         * modules/unictype/category-Mn: New file.
60912         * modules/unictype/category-Mc: New file.
60913         * modules/unictype/category-Me: New file.
60914         * modules/unictype/category-N: New file.
60915         * modules/unictype/category-Nd: New file.
60916         * modules/unictype/category-Nl: New file.
60917         * modules/unictype/category-No: New file.
60918         * modules/unictype/category-P: New file.
60919         * modules/unictype/category-Pc: New file.
60920         * modules/unictype/category-Pd: New file.
60921         * modules/unictype/category-Ps: New file.
60922         * modules/unictype/category-Pe: New file.
60923         * modules/unictype/category-Pi: New file.
60924         * modules/unictype/category-Pf: New file.
60925         * modules/unictype/category-Po: New file.
60926         * modules/unictype/category-S: New file.
60927         * modules/unictype/category-Sm: New file.
60928         * modules/unictype/category-Sc: New file.
60929         * modules/unictype/category-Sk: New file.
60930         * modules/unictype/category-So: New file.
60931         * modules/unictype/category-Z: New file.
60932         * modules/unictype/category-Zs: New file.
60933         * modules/unictype/category-Zl: New file.
60934         * modules/unictype/category-Zp: New file.
60935         * modules/unictype/category-C: New file.
60936         * modules/unictype/category-Cc: New file.
60937         * modules/unictype/category-Cf: New file.
60938         * modules/unictype/category-Cs: New file.
60939         * modules/unictype/category-Co: New file.
60940         * modules/unictype/category-Cn: New file.
60941         * modules/unictype/category-or: New file.
60942         * modules/unictype/category-of: New file.
60943         * modules/unictype/category-test: New file.
60944         * modules/unictype/category-test-withtable: New file.
60945         * modules/unictype/category-byname: New file.
60946         * modules/unictype/category-none: New file.
60947         * modules/unictype/category-and: New file.
60948         * modules/unictype/category-and-not: New file.
60949         * modules/unictype/category-name: New file.
60950         * modules/unictype/combining-class: New file.
60951         * modules/unictype/category-all: New file.
60952         * modules/unictype/bidicategory-all: New file.
60953         * modules/unictype/bidicategory-byname: New file.
60954         * modules/unictype/bidicategory-name: New file.
60955         * modules/unictype/bidicategory-of: New file.
60956         * modules/unictype/bidicategory-test: New file.
60957         * modules/unictype/decimal-digit: New file.
60958         * modules/unictype/digit: New file.
60959         * modules/unictype/numeric: New file.
60960         * modules/unictype/mirror: New file.
60961         * modules/unictype/property-white-space: New file.
60962         * modules/unictype/property-alphabetic: New file.
60963         * modules/unictype/property-other-alphabetic: New file.
60964         * modules/unictype/property-not-a-character: New file.
60965         * modules/unictype/property-default-ignorable-code-point: New file.
60966         * modules/unictype/property-other-default-ignorable-code-point: New
60967         file.
60968         * modules/unictype/property-deprecated: New file.
60969         * modules/unictype/property-logical-order-exception: New file.
60970         * modules/unictype/property-variation-selector: New file.
60971         * modules/unictype/property-private-use: New file.
60972         * modules/unictype/property-unassigned-code-value: New file.
60973         * modules/unictype/property-uppercase: New file.
60974         * modules/unictype/property-other-uppercase: New file.
60975         * modules/unictype/property-lowercase: New file.
60976         * modules/unictype/property-other-lowercase: New file.
60977         * modules/unictype/property-titlecase: New file.
60978         * modules/unictype/property-soft-dotted: New file.
60979         * modules/unictype/property-id-start: New file.
60980         * modules/unictype/property-other-id-start: New file.
60981         * modules/unictype/property-id-continue: New file.
60982         * modules/unictype/property-other-id-continue: New file.
60983         * modules/unictype/property-xid-start: New file.
60984         * modules/unictype/property-xid-continue: New file.
60985         * modules/unictype/property-pattern-white-space: New file.
60986         * modules/unictype/property-pattern-syntax: New file.
60987         * modules/unictype/property-join-control: New file.
60988         * modules/unictype/property-grapheme-base: New file.
60989         * modules/unictype/property-grapheme-extend: New file.
60990         * modules/unictype/property-other-grapheme-extend: New file.
60991         * modules/unictype/property-grapheme-link: New file.
60992         * modules/unictype/property-bidi-control: New file.
60993         * modules/unictype/property-bidi-left-to-right: New file.
60994         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60995         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60996         * modules/unictype/property-bidi-european-digit: New file.
60997         * modules/unictype/property-bidi-eur-num-separator: New file.
60998         * modules/unictype/property-bidi-eur-num-terminator: New file.
60999         * modules/unictype/property-bidi-arabic-digit: New file.
61000         * modules/unictype/property-bidi-common-separator: New file.
61001         * modules/unictype/property-bidi-block-separator: New file.
61002         * modules/unictype/property-bidi-segment-separator: New file.
61003         * modules/unictype/property-bidi-whitespace: New file.
61004         * modules/unictype/property-bidi-non-spacing-mark: New file.
61005         * modules/unictype/property-bidi-boundary-neutral: New file.
61006         * modules/unictype/property-bidi-pdf: New file.
61007         * modules/unictype/property-bidi-embedding-or-override: New file.
61008         * modules/unictype/property-bidi-other-neutral: New file.
61009         * modules/unictype/property-hex-digit: New file.
61010         * modules/unictype/property-ascii-hex-digit: New file.
61011         * modules/unictype/property-ideographic: New file.
61012         * modules/unictype/property-unified-ideograph: New file.
61013         * modules/unictype/property-radical: New file.
61014         * modules/unictype/property-ids-binary-operator: New file.
61015         * modules/unictype/property-ids-trinary-operator: New file.
61016         * modules/unictype/property-zero-width: New file.
61017         * modules/unictype/property-space: New file.
61018         * modules/unictype/property-non-break: New file.
61019         * modules/unictype/property-iso-control: New file.
61020         * modules/unictype/property-format-control: New file.
61021         * modules/unictype/property-dash: New file.
61022         * modules/unictype/property-hyphen: New file.
61023         * modules/unictype/property-punctuation: New file.
61024         * modules/unictype/property-line-separator: New file.
61025         * modules/unictype/property-paragraph-separator: New file.
61026         * modules/unictype/property-quotation-mark: New file.
61027         * modules/unictype/property-sentence-terminal: New file.
61028         * modules/unictype/property-terminal-punctuation: New file.
61029         * modules/unictype/property-currency-symbol: New file.
61030         * modules/unictype/property-math: New file.
61031         * modules/unictype/property-other-math: New file.
61032         * modules/unictype/property-paired-punctuation: New file.
61033         * modules/unictype/property-left-of-pair: New file.
61034         * modules/unictype/property-combining: New file.
61035         * modules/unictype/property-composite: New file.
61036         * modules/unictype/property-decimal-digit: New file.
61037         * modules/unictype/property-numeric: New file.
61038         * modules/unictype/property-diacritic: New file.
61039         * modules/unictype/property-extender: New file.
61040         * modules/unictype/property-ignorable-control: New file.
61041         * modules/unictype/property-test: New file.
61042         * modules/unictype/property-byname: New file.
61043         * modules/unictype/property-all: New file.
61044         * modules/unictype/scripts: New file.
61045         * modules/unictype/scripts-all: New file.
61046         * modules/unictype/block-of: New file.
61047         * modules/unictype/block-test: New file.
61048         * modules/unictype/block-list: New file.
61049         * modules/unictype/block-all: New file.
61050         * modules/unictype/syntax-c-whitespace: New file.
61051         * modules/unictype/syntax-java-whitespace: New file.
61052         * modules/unictype/syntax-c-ident: New file.
61053         * modules/unictype/syntax-java-ident: New file.
61054         * modules/unictype/ctype-alnum: New file.
61055         * modules/unictype/ctype-alpha: New file.
61056         * modules/unictype/ctype-cntrl: New file.
61057         * modules/unictype/ctype-digit: New file.
61058         * modules/unictype/ctype-graph: New file.
61059         * modules/unictype/ctype-lower: New file.
61060         * modules/unictype/ctype-print: New file.
61061         * modules/unictype/ctype-punct: New file.
61062         * modules/unictype/ctype-space: New file.
61063         * modules/unictype/ctype-upper: New file.
61064         * modules/unictype/ctype-xdigit: New file.
61065         * modules/unictype/ctype-blank: New file.
61066         * lib/unictype/bidi_byname.c: New file.
61067         * lib/unictype/bidi_name.c: New file.
61068         * lib/unictype/bidi_of.c: New file.
61069         * lib/unictype/bidi_test.c: New file.
61070         * lib/unictype/bitmap.h: New file.
61071         * lib/unictype/block_test.c: New file.
61072         * lib/unictype/blocks.c: New file.
61073         * lib/unictype/categ_C.c: New file.
61074         * lib/unictype/categ_Cc.c: New file.
61075         * lib/unictype/categ_Cf.c: New file.
61076         * lib/unictype/categ_Cn.c: New file.
61077         * lib/unictype/categ_Co.c: New file.
61078         * lib/unictype/categ_Cs.c: New file.
61079         * lib/unictype/categ_L.c: New file.
61080         * lib/unictype/categ_Ll.c: New file.
61081         * lib/unictype/categ_Lm.c: New file.
61082         * lib/unictype/categ_Lo.c: New file.
61083         * lib/unictype/categ_Lt.c: New file.
61084         * lib/unictype/categ_Lu.c: New file.
61085         * lib/unictype/categ_M.c: New file.
61086         * lib/unictype/categ_Mc.c: New file.
61087         * lib/unictype/categ_Me.c: New file.
61088         * lib/unictype/categ_Mn.c: New file.
61089         * lib/unictype/categ_N.c: New file.
61090         * lib/unictype/categ_Nd.c: New file.
61091         * lib/unictype/categ_Nl.c: New file.
61092         * lib/unictype/categ_No.c: New file.
61093         * lib/unictype/categ_P.c: New file.
61094         * lib/unictype/categ_Pc.c: New file.
61095         * lib/unictype/categ_Pd.c: New file.
61096         * lib/unictype/categ_Pe.c: New file.
61097         * lib/unictype/categ_Pf.c: New file.
61098         * lib/unictype/categ_Pi.c: New file.
61099         * lib/unictype/categ_Po.c: New file.
61100         * lib/unictype/categ_Ps.c: New file.
61101         * lib/unictype/categ_S.c: New file.
61102         * lib/unictype/categ_Sc.c: New file.
61103         * lib/unictype/categ_Sk.c: New file.
61104         * lib/unictype/categ_Sm.c: New file.
61105         * lib/unictype/categ_So.c: New file.
61106         * lib/unictype/categ_Z.c: New file.
61107         * lib/unictype/categ_Zl.c: New file.
61108         * lib/unictype/categ_Zp.c: New file.
61109         * lib/unictype/categ_Zs.c: New file.
61110         * lib/unictype/categ_and.c: New file.
61111         * lib/unictype/categ_and_not.c: New file.
61112         * lib/unictype/categ_byname.c: New file.
61113         * lib/unictype/categ_name.c: New file.
61114         * lib/unictype/categ_none.c: New file.
61115         * lib/unictype/categ_of.c: New file.
61116         * lib/unictype/categ_or.c: New file.
61117         * lib/unictype/categ_test.c: New file.
61118         * lib/unictype/combining.c: New file.
61119         * lib/unictype/ctype_alnum.c: New file.
61120         * lib/unictype/ctype_alpha.c: New file.
61121         * lib/unictype/ctype_blank.c: New file.
61122         * lib/unictype/ctype_cntrl.c: New file.
61123         * lib/unictype/ctype_digit.c: New file.
61124         * lib/unictype/ctype_graph.c: New file.
61125         * lib/unictype/ctype_lower.c: New file.
61126         * lib/unictype/ctype_print.c: New file.
61127         * lib/unictype/ctype_punct.c: New file.
61128         * lib/unictype/ctype_space.c: New file.
61129         * lib/unictype/ctype_upper.c: New file.
61130         * lib/unictype/ctype_xdigit.c: New file.
61131         * lib/unictype/decdigit.c: New file.
61132         * lib/unictype/digit.c: New file.
61133         * lib/unictype/identsyntaxmap.h: New file.
61134         * lib/unictype/mirror.c: New file.
61135         * lib/unictype/numeric.c: New file.
61136         * lib/unictype/pr_alphabetic.c: New file.
61137         * lib/unictype/pr_ascii_hex_digit.c: New file.
61138         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61139         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61140         * lib/unictype/pr_bidi_block_separator.c: New file.
61141         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61142         * lib/unictype/pr_bidi_common_separator.c: New file.
61143         * lib/unictype/pr_bidi_control.c: New file.
61144         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61145         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61146         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61147         * lib/unictype/pr_bidi_european_digit.c: New file.
61148         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61149         * lib/unictype/pr_bidi_left_to_right.c: New file.
61150         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61151         * lib/unictype/pr_bidi_other_neutral.c: New file.
61152         * lib/unictype/pr_bidi_pdf.c: New file.
61153         * lib/unictype/pr_bidi_segment_separator.c: New file.
61154         * lib/unictype/pr_bidi_whitespace.c: New file.
61155         * lib/unictype/pr_byname.c: New file.
61156         * lib/unictype/pr_byname.gperf: New file.
61157         * lib/unictype/pr_combining.c: New file.
61158         * lib/unictype/pr_composite.c: New file.
61159         * lib/unictype/pr_currency_symbol.c: New file.
61160         * lib/unictype/pr_dash.c: New file.
61161         * lib/unictype/pr_decimal_digit.c: New file.
61162         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61163         * lib/unictype/pr_deprecated.c: New file.
61164         * lib/unictype/pr_diacritic.c: New file.
61165         * lib/unictype/pr_extender.c: New file.
61166         * lib/unictype/pr_format_control.c: New file.
61167         * lib/unictype/pr_grapheme_base.c: New file.
61168         * lib/unictype/pr_grapheme_extend.c: New file.
61169         * lib/unictype/pr_grapheme_link.c: New file.
61170         * lib/unictype/pr_hex_digit.c: New file.
61171         * lib/unictype/pr_hyphen.c: New file.
61172         * lib/unictype/pr_id_continue.c: New file.
61173         * lib/unictype/pr_id_start.c: New file.
61174         * lib/unictype/pr_ideographic.c: New file.
61175         * lib/unictype/pr_ids_binary_operator.c: New file.
61176         * lib/unictype/pr_ids_trinary_operator.c: New file.
61177         * lib/unictype/pr_ignorable_control.c: New file.
61178         * lib/unictype/pr_iso_control.c: New file.
61179         * lib/unictype/pr_join_control.c: New file.
61180         * lib/unictype/pr_left_of_pair.c: New file.
61181         * lib/unictype/pr_line_separator.c: New file.
61182         * lib/unictype/pr_logical_order_exception.c: New file.
61183         * lib/unictype/pr_lowercase.c: New file.
61184         * lib/unictype/pr_math.c: New file.
61185         * lib/unictype/pr_non_break.c: New file.
61186         * lib/unictype/pr_not_a_character.c: New file.
61187         * lib/unictype/pr_numeric.c: New file.
61188         * lib/unictype/pr_other_alphabetic.c: New file.
61189         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61190         * lib/unictype/pr_other_grapheme_extend.c: New file.
61191         * lib/unictype/pr_other_id_continue.c: New file.
61192         * lib/unictype/pr_other_id_start.c: New file.
61193         * lib/unictype/pr_other_lowercase.c: New file.
61194         * lib/unictype/pr_other_math.c: New file.
61195         * lib/unictype/pr_other_uppercase.c: New file.
61196         * lib/unictype/pr_paired_punctuation.c: New file.
61197         * lib/unictype/pr_paragraph_separator.c: New file.
61198         * lib/unictype/pr_pattern_syntax.c: New file.
61199         * lib/unictype/pr_pattern_white_space.c: New file.
61200         * lib/unictype/pr_private_use.c: New file.
61201         * lib/unictype/pr_punctuation.c: New file.
61202         * lib/unictype/pr_quotation_mark.c: New file.
61203         * lib/unictype/pr_radical.c: New file.
61204         * lib/unictype/pr_sentence_terminal.c: New file.
61205         * lib/unictype/pr_soft_dotted.c: New file.
61206         * lib/unictype/pr_space.c: New file.
61207         * lib/unictype/pr_terminal_punctuation.c: New file.
61208         * lib/unictype/pr_test.c: New file.
61209         * lib/unictype/pr_titlecase.c: New file.
61210         * lib/unictype/pr_unassigned_code_value.c: New file.
61211         * lib/unictype/pr_unified_ideograph.c: New file.
61212         * lib/unictype/pr_uppercase.c: New file.
61213         * lib/unictype/pr_variation_selector.c: New file.
61214         * lib/unictype/pr_white_space.c: New file.
61215         * lib/unictype/pr_xid_continue.c: New file.
61216         * lib/unictype/pr_xid_start.c: New file.
61217         * lib/unictype/pr_zero_width.c: New file.
61218         * lib/unictype/scripts.c: New file.
61219         * lib/unictype/sy_c_ident.c: New file.
61220         * lib/unictype/sy_c_whitespace.c: New file.
61221         * lib/unictype/sy_java_ident.c: New file.
61222         * lib/unictype/sy_java_whitespace.c: New file.
61223
61224         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61225         Unicode 5.0.0.
61226         * lib/unictype/blocks.h: Likewise.
61227         * lib/unictype/categ_C.h: Likewise.
61228         * lib/unictype/categ_Cc.h: Likewise.
61229         * lib/unictype/categ_Cf.h: Likewise.
61230         * lib/unictype/categ_Cn.h: Likewise.
61231         * lib/unictype/categ_Co.h: Likewise.
61232         * lib/unictype/categ_Cs.h: Likewise.
61233         * lib/unictype/categ_L.h: Likewise.
61234         * lib/unictype/categ_Ll.h: Likewise.
61235         * lib/unictype/categ_Lm.h: Likewise.
61236         * lib/unictype/categ_Lo.h: Likewise.
61237         * lib/unictype/categ_Lt.h: Likewise.
61238         * lib/unictype/categ_Lu.h: Likewise.
61239         * lib/unictype/categ_M.h: Likewise.
61240         * lib/unictype/categ_Mc.h: Likewise.
61241         * lib/unictype/categ_Me.h: Likewise.
61242         * lib/unictype/categ_Mn.h: Likewise.
61243         * lib/unictype/categ_N.h: Likewise.
61244         * lib/unictype/categ_Nd.h: Likewise.
61245         * lib/unictype/categ_Nl.h: Likewise.
61246         * lib/unictype/categ_No.h: Likewise.
61247         * lib/unictype/categ_P.h: Likewise.
61248         * lib/unictype/categ_Pc.h: Likewise.
61249         * lib/unictype/categ_Pd.h: Likewise.
61250         * lib/unictype/categ_Pe.h: Likewise.
61251         * lib/unictype/categ_Pf.h: Likewise.
61252         * lib/unictype/categ_Pi.h: Likewise.
61253         * lib/unictype/categ_Po.h: Likewise.
61254         * lib/unictype/categ_Ps.h: Likewise.
61255         * lib/unictype/categ_S.h: Likewise.
61256         * lib/unictype/categ_Sc.h: Likewise.
61257         * lib/unictype/categ_Sk.h: Likewise.
61258         * lib/unictype/categ_Sm.h: Likewise.
61259         * lib/unictype/categ_So.h: Likewise.
61260         * lib/unictype/categ_Z.h: Likewise.
61261         * lib/unictype/categ_Zl.h: Likewise.
61262         * lib/unictype/categ_Zp.h: Likewise.
61263         * lib/unictype/categ_Zs.h: Likewise.
61264         * lib/unictype/categ_of.h: Likewise.
61265         * lib/unictype/combining.h: Likewise.
61266         * lib/unictype/ctype_alnum.h: Likewise.
61267         * lib/unictype/ctype_alpha.h: Likewise.
61268         * lib/unictype/ctype_blank.h: Likewise.
61269         * lib/unictype/ctype_cntrl.h: Likewise.
61270         * lib/unictype/ctype_digit.h: Likewise.
61271         * lib/unictype/ctype_graph.h: Likewise.
61272         * lib/unictype/ctype_lower.h: Likewise.
61273         * lib/unictype/ctype_print.h: Likewise.
61274         * lib/unictype/ctype_punct.h: Likewise.
61275         * lib/unictype/ctype_space.h: Likewise.
61276         * lib/unictype/ctype_upper.h: Likewise.
61277         * lib/unictype/ctype_xdigit.h: Likewise.
61278         * lib/unictype/decdigit.h: Likewise.
61279         * lib/unictype/digit.h: Likewise.
61280         * lib/unictype/mirror.h: Likewise.
61281         * lib/unictype/numeric.h: Likewise.
61282         * lib/unictype/pr_alphabetic.h: Likewise.
61283         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61284         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61285         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61286         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61287         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61288         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61289         * lib/unictype/pr_bidi_control.h: Likewise.
61290         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61291         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61292         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61293         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61294         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61295         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61296         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61297         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61298         * lib/unictype/pr_bidi_pdf.h: Likewise.
61299         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61300         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61301         * lib/unictype/pr_combining.h: Likewise.
61302         * lib/unictype/pr_composite.h: Likewise.
61303         * lib/unictype/pr_currency_symbol.h: Likewise.
61304         * lib/unictype/pr_dash.h: Likewise.
61305         * lib/unictype/pr_decimal_digit.h: Likewise.
61306         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61307         * lib/unictype/pr_deprecated.h: Likewise.
61308         * lib/unictype/pr_diacritic.h: Likewise.
61309         * lib/unictype/pr_extender.h: Likewise.
61310         * lib/unictype/pr_format_control.h: Likewise.
61311         * lib/unictype/pr_grapheme_base.h: Likewise.
61312         * lib/unictype/pr_grapheme_extend.h: Likewise.
61313         * lib/unictype/pr_grapheme_link.h: Likewise.
61314         * lib/unictype/pr_hex_digit.h: Likewise.
61315         * lib/unictype/pr_hyphen.h: Likewise.
61316         * lib/unictype/pr_id_continue.h: Likewise.
61317         * lib/unictype/pr_id_start.h: Likewise.
61318         * lib/unictype/pr_ideographic.h: Likewise.
61319         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61320         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61321         * lib/unictype/pr_ignorable_control.h: Likewise.
61322         * lib/unictype/pr_iso_control.h: Likewise.
61323         * lib/unictype/pr_join_control.h: Likewise.
61324         * lib/unictype/pr_left_of_pair.h: Likewise.
61325         * lib/unictype/pr_line_separator.h: Likewise.
61326         * lib/unictype/pr_logical_order_exception.h: Likewise.
61327         * lib/unictype/pr_lowercase.h: Likewise.
61328         * lib/unictype/pr_math.h: Likewise.
61329         * lib/unictype/pr_non_break.h: Likewise.
61330         * lib/unictype/pr_not_a_character.h: Likewise.
61331         * lib/unictype/pr_numeric.h: Likewise.
61332         * lib/unictype/pr_other_alphabetic.h: Likewise.
61333         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61334         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61335         * lib/unictype/pr_other_id_continue.h: Likewise.
61336         * lib/unictype/pr_other_id_start.h: Likewise.
61337         * lib/unictype/pr_other_lowercase.h: Likewise.
61338         * lib/unictype/pr_other_math.h: Likewise.
61339         * lib/unictype/pr_other_uppercase.h: Likewise.
61340         * lib/unictype/pr_paired_punctuation.h: Likewise.
61341         * lib/unictype/pr_paragraph_separator.h: Likewise.
61342         * lib/unictype/pr_pattern_syntax.h: Likewise.
61343         * lib/unictype/pr_pattern_white_space.h: Likewise.
61344         * lib/unictype/pr_private_use.h: Likewise.
61345         * lib/unictype/pr_punctuation.h: Likewise.
61346         * lib/unictype/pr_quotation_mark.h: Likewise.
61347         * lib/unictype/pr_radical.h: Likewise.
61348         * lib/unictype/pr_sentence_terminal.h: Likewise.
61349         * lib/unictype/pr_soft_dotted.h: Likewise.
61350         * lib/unictype/pr_space.h: Likewise.
61351         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61352         * lib/unictype/pr_titlecase.h: Likewise.
61353         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61354         * lib/unictype/pr_unified_ideograph.h: Likewise.
61355         * lib/unictype/pr_uppercase.h: Likewise.
61356         * lib/unictype/pr_variation_selector.h: Likewise.
61357         * lib/unictype/pr_white_space.h: Likewise.
61358         * lib/unictype/pr_xid_continue.h: Likewise.
61359         * lib/unictype/pr_xid_start.h: Likewise.
61360         * lib/unictype/pr_zero_width.h: Likewise.
61361         * lib/unictype/scripts.h: Likewise.
61362         * lib/unictype/scripts_byname.gperf: Likewise.
61363         * lib/unictype/sy_c_ident.h: Likewise.
61364         * lib/unictype/sy_c_whitespace.h: Likewise.
61365         * lib/unictype/sy_java_ident.h: Likewise.
61366         * lib/unictype/sy_java_whitespace.h: Likewise.
61367
61368         * lib/unictype/Makefile: New file.
61369         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61370         glibc.
61371         * lib/unictype/3level.h: New file, copied from glibc.
61372         * lib/unictype/3levelbit.h: New file.
61373
61374 2007-11-11  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/gperf: New file.
61377         * modules/iconv_open (Depends-on): Add it.
61378         (Makefile.am): Remove the GPERF definition.
61379
61380 2007-11-11  Bruno Haible  <bruno@clisp.org>
61381
61382         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61383         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61384
61385 2007-11-11  Bruno Haible  <bruno@clisp.org>
61386
61387         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61388         (usage): Remove function.
61389
61390 2007-11-11  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61393         gl_FUNC_CEILF_LIBS.
61394         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61395         gl_FUNC_CEIL_LIBS.
61396         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61397         gl_FUNC_CEILL_LIBS.
61398         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61399         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61400         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61401
61402 2007-11-11  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61405         roundf were declared but do not exist on functions.
61406         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61407         roundl were declared but do not exist on functions.
61408         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61409         HAVE_FLOORL_AND_CEILL, respectively.
61410         Needed for Sun C on Solaris 10.
61411
61412 2007-11-11  Bruno Haible  <bruno@clisp.org>
61413
61414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61415         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61416         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61417         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61418         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61419         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61420         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61421         HAVE_DECL_ROUNDF.
61422         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61423         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61425         of HAVE_DECL_ROUND*.
61426         * modules/math (Makefile.am): Update.
61427
61428 2007-11-10  Bruno Haible  <bruno@clisp.org>
61429
61430         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61431         ptrdiff_t as m4/intl.m4.
61432
61433 2007-11-10  Jim Meyering  <meyering@redhat.com>
61434
61435         Avoid link failure for the argmatch test.
61436         * tests/test-argmatch.c (usage): Define function to avoid a link
61437         failure: argmatch_die requires a usage function.
61438
61439 2007-11-09  Bruno Haible  <bruno@clisp.org>
61440
61441         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61442         * doc/functions/vsnprintf.texi: Likewise.
61443         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61444         with a size argument < 2.
61445
61446 2007-11-09  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61449         buffer. Fixes an inefficiency introduced on 2007-11-03.
61450
61451 2007-11-09  Bruno Haible  <bruno@clisp.org>
61452
61453         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61454         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61455
61456 2007-11-08  Jim Meyering  <meyering@redhat.com>
61457
61458         Change cache variable name prefix "jm_" to "gl_" everywhere.
61459         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61460         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61461         * m4/uptime.m4: s/gl_/jm_/
61462
61463 2007-11-07  Bruno Haible  <bruno@clisp.org>
61464
61465         Update to GNU gettext 0.17.
61466         * m4/intl.m4: Update to GNU gettext 0.17.
61467         * m4/po.m4: Likewise.
61468         * modules/gettext (Files): Remove m4/ulonglong.m4.
61469         (configure.ac): Require gettext infrastructure from version 0.17.
61470
61471 2007-11-06  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61474         symbolic values are not defined in a public header.
61475         * lib/freadable.c (freadable) [QNX]: Likewise.
61476         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61477         * lib/freading.c (freading) [QNX]: Likewise.
61478         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61479         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61480         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61481         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61482         Reported by Alain Magloire.
61483
61484         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61485
61486 2007-11-05  Bruno Haible  <bruno@clisp.org>
61487
61488         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61489         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61490         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61491         Reported by Eric Blake.
61492
61493 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61494             Bruno Haible  <bruno@clisp.org>
61495
61496         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61497         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61498         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61499         (malloc): Undefine also before including <stdlib.h>.
61500         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61501         Needed on OSF/1 4.0.
61502
61503 2007-11-05  Jim Meyering  <meyering@redhat.com>
61504
61505         git-version-gen: sync from coreutils.
61506         * build-aux/git-version-gen: Add comments.
61507         Change the first '-' to '.' in the snapshot version string,
61508         e.g., 6.9-377-08144 -> 6.9.377-08144
61509         Remove first parameter.
61510         Don't declare a version "-dirty" merely because a time
61511         stamp has changed.
61512
61513 2007-11-04  Bruno Haible  <bruno@clisp.org>
61514
61515         * lib/lock.h: Protect all macro definitions containing an 'if'
61516         statement through a "do { ... } while (0)".
61517         * lib/tls.h: Likewise.
61518
61519 2007-11-04  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61522
61523 2007-11-04  Bruno Haible  <bruno@clisp.org>
61524
61525         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61526         * modules/fprintf-posix (Depends-on): Add nocrash.
61527         * modules/snprintf-posix (Depends-on): Likewise.
61528         * modules/sprintf-posix (Depends-on): Likewise.
61529         * modules/vasnprintf-posix (Depends-on): Likewise.
61530         * modules/vasprintf-posix (Depends-on): Likewise.
61531         * modules/vfprintf-posix (Depends-on): Likewise.
61532         * modules/vsnprintf-posix (Depends-on): Likewise.
61533         * modules/vsprintf-posix (Depends-on): Likewise.
61534         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61535         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61536         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61537         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61538         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61539         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61540         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61541
61542 2007-11-04  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/nocrash: New file.
61545         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61546         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61547
61548 2007-11-04  Bruno Haible  <bruno@clisp.org>
61549
61550         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61551         precision handling.
61552         * tests/test-vasprintf-posix.c (test_function): Likewise.
61553         * tests/test-snprintf-posix.h (test_function): Likewise.
61554         * tests/test-sprintf-posix.h (test_function): Likewise.
61555
61556         Fix *printf behaviour for large precisions on mingw and BeOS.
61557         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61558         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61559         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61560         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61562         gl_PRINTF_PRECISION and test its result. Invoke
61563         gl_PREREQ_VASNPRINTF_PRECISION.
61564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61568         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61570         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61571         * doc/functions/fprintf.texi: Update.
61572         * doc/functions/printf.texi: Update.
61573         * doc/functions/snprintf.texi: Update.
61574         * doc/functions/sprintf.texi: Update.
61575         * doc/functions/vfprintf.texi: Update.
61576         * doc/functions/vprintf.texi: Update.
61577         * doc/functions/vsnprintf.texi: Update.
61578         * doc/functions/vsprintf.texi: Update.
61579
61580 2007-11-04  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61583
61584 2007-11-04  Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61587         Reported by Sylvain Beucler <beuc@gnu.org>.
61588
61589 2007-11-03  Bruno Haible  <bruno@clisp.org>
61590
61591         * tests/test-fprintf-posix2.sh: New file.
61592         * tests/test-fprintf-posix2.c: New file.
61593         * modules/fprintf-posix-tests (Files): Add them.
61594         (TESTS): Add test-fprintf-posix2.sh.
61595         (configure.ac): Check for getrlimit and setrlimit.
61596         (check_PROGRAMS): Add test-fprintf-posix2.
61597
61598         * tests/test-printf-posix2.sh: New file.
61599         * tests/test-printf-posix2.c: New file.
61600         * modules/printf-posix-tests (Files): Add them.
61601         (TESTS): Add test-printf-posix2.sh.
61602         (configure.ac): Check for getrlimit and setrlimit.
61603         (check_PROGRAMS): Add test-printf-posix2.
61604
61605         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61606         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61607         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61608         (decode_double): New function, copied from decode_long_double.
61609         (scale10_round_decimal_decoded): New function, extracted from
61610         scale10_round_decimal_long_double.
61611         (scale10_round_decimal_long_double): Use it.
61612         (scale10_round_decimal_double): New function.
61613         (floorlog10): New function.
61614         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61616         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61617         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61618         gl_PRINTF_ENOMEM and test its result. Invoke
61619         gl_PREREQ_VASNPRINTF_ENOMEM.
61620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61621         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61623         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61624         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61625         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61626         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61627         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61628         * modules/snprintf-posix (Depends-on): Likewise.
61629         * modules/sprintf-posix (Depends-on): Likewise.
61630         * modules/vasnprintf-posix (Depends-on): Likewise.
61631         * modules/vasprintf-posix (Depends-on): Likewise.
61632         * modules/vfprintf-posix (Depends-on): Likewise.
61633         * modules/vsnprintf-posix (Depends-on): Likewise.
61634         * modules/vsprintf-posix (Depends-on): Likewise.
61635         * doc/functions/fprintf.texi: Update.
61636         * doc/functions/printf.texi: Update.
61637         * doc/functions/snprintf.texi: Update.
61638         * doc/functions/sprintf.texi: Update.
61639         * doc/functions/vfprintf.texi: Update.
61640         * doc/functions/vprintf.texi: Update.
61641         * doc/functions/vsnprintf.texi: Update.
61642         * doc/functions/vsprintf.texi: Update.
61643
61644 2007-11-03  Bruno Haible  <bruno@clisp.org>
61645
61646         * modules/frexp-nolibm-tests: New file.
61647
61648         * modules/frexp-nolibm: New file.
61649         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61650
61651 2007-11-03  Bruno Haible  <bruno@clisp.org>
61652
61653         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61654         value is C99 compliant.
61655         Needed for OSF/1 5.1.
61656
61657 2007-11-03  Bruno Haible  <bruno@clisp.org>
61658
61659         Fix out-of-memory handling of vasnprintf.
61660         * lib/printf-parse.c: Include <errno.h>.
61661         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61662         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61663         is already set.
61664
61665 2007-11-02  Eric Blake  <ebb9@byu.net>
61666
61667         Fix tests on cygwin.
61668         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61669
61670 2007-11-01  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61673         warning.
61674         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61675         needed for POSIX compatibility.
61676
61677 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61678
61679         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61680         for compatibility with GNU.
61681
61682 2007-11-01  Bruno Haible  <bruno@clisp.org>
61683
61684         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61685         (putenv): Renamed from rpl_putenv. Change argument type from
61686         'const char *' to 'char *'.
61687         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61688         of defining putenv in config.h, just set REPLACE_PUTENV.
61689         * modules/putenv (Depends-on): Add stdlib.
61690         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61691         (Include): Use <stdlib.h>.
61692         * lib/stdlib.in.h (putenv): New declaration.
61693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61694         REPLACE_PUTENV.
61695         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61696         REPLACE_PUTENV.
61697         Needed for MacOS X 10.5.0.
61698         Reported by Peter O'Gorman <peter@pogma.com>.
61699
61700 2007-11-01  Jim Meyering  <meyering@redhat.com>
61701
61702         Treat an empty date string exactly like "0".
61703         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61704         if the remaining date string (to be parsed) is empty, use "0".
61705         Reported by Mischa Molhoek and discussed in this thread:
61706         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61707
61708 2007-10-31  Bruno Haible  <bruno@clisp.org>
61709
61710         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61711         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61712         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61713         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61714         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61715         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61716
61717 2007-10-31  Bruno Haible  <bruno@clisp.org>
61718
61719         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61720         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61721         (AC_TYPE_LONG_LONG_INT): Use it.
61722         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61723         it as well.
61724         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61725         to m4/longlong.m4.
61726         * modules/stdint (Files): Remove m4/ulonglong.m4.
61727         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61728         m4/ulonglong.m4.
61729         * modules/strtoumax (Files): Likewise.
61730
61731 2007-10-30  Bruno Haible  <bruno@clisp.org>
61732
61733         * modules/xvasprintf-posix: New file.
61734         Suggested by Eric Blake.
61735
61736 2007-10-30  Bruno Haible  <bruno@clisp.org>
61737
61738         * modules/xprintf-posix-tests: New file.
61739         * tests/test-xprintf-posix.sh: New file.
61740         * tests/test-xprintf-posix.c: New file.
61741         * tests/test-xfprintf-posix.c: New file.
61742
61743         * modules/xprintf-posix: New file.
61744
61745 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61746
61747         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61748         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61749         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61750
61751 2007-10-29  Bruno Haible  <bruno@clisp.org>
61752
61753         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61754         contain the special marker '_cv_'.
61755         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61756         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61757         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61758         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61759         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61760         Reported by Ralf Wildenhues.
61761
61762 2007-10-29  Bruno Haible  <bruno@clisp.org>
61763
61764         * gnulib-tool (func_import): When --lgpl is not specified, set
61765         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61766         GPLv3.
61767         Reported by Simon Josefsson.
61768
61769 2007-10-28  Bruno Haible  <bruno@clisp.org>
61770
61771         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61772         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61773         HAVE_DECL_ISFINITE.
61774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61775         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61776         HAVE_DECL_ISFINITE.
61777
61778 2007-10-28  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61781         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61782
61783 2007-10-28  Bruno Haible  <bruno@clisp.org>
61784
61785         Fix link errors with Sun C 5.0 on Solaris 10.
61786         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61787         function is declared but not present in the compiler's libm.
61788         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61789         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61790         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61791         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61792         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61793         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61794         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61796         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61797         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61798         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61799         HAVE_DECL_FLOORL.
61800
61801 2007-10-28  Bruno Haible  <bruno@clisp.org>
61802
61803         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61804         gl_FUNC_FLOORL. Cache the result.
61805         (gl_FUNC_FLOORL): Use it.
61806         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61807         gl_FUNC_CEILL. Cache the result.
61808         (gl_FUNC_CEILL): Use it.
61809
61810         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61811         gl_FUNC_FLOOR. Cache the result.
61812         (gl_FUNC_FLOOR): Use it.
61813         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61814         gl_FUNC_CEIL. Cache the result.
61815         (gl_FUNC_CEIL): Use it.
61816
61817         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
61818         gl_FUNC_FLOORF. Cache the result.
61819         (gl_FUNC_FLOORF): Use it.
61820         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
61821         gl_FUNC_CEILF. Cache the result.
61822         (gl_FUNC_CEILF): Use it.
61823
61824 2007-10-28  Bruno Haible  <bruno@clisp.org>
61825
61826         * gnulib-tool: Allow specifying the LGPL version number through
61827         --lgpl=2 or --lgpl=3.
61828         (func_usage): Document --lgpl with argument.
61829         Handle --lgpl=... arguments.
61830         (func_import): Recognize also gl_LGPL calls with an argument. When
61831         --lgpl=2 is used and the module's license is just LGPL, report an
61832         error. Set sed_transform_lib_file according to the lgpl variable. In
61833         the generated files, use --lgpl or gl_LGPL invocations with argument,
61834         if necessary.
61835         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
61836         an LGPv2+ license.
61837         * doc/gnulib-tool.texi (Modified imports): Update explanation of
61838         gl_LGPL macro.
61839
61840 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61841             Bruno Haible  <bruno@clisp.org>
61842
61843         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
61844         (u16_uctomb_aux): Likewise.
61845         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
61846         !HAVE_INLINE.
61847         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
61848
61849 2007-10-28  Bruno Haible  <bruno@clisp.org>
61850
61851         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
61852         Invoke AM_GETTEXT_OPTION if it exists.
61853         * modules/vasprintf: Likewise.
61854         * modules/verror: Likewise.
61855         * modules/xprintf: Likewise.
61856         * modules/xvasprintf: Likewise.
61857
61858 2007-10-27  Ben Pfaff  <blp@gnu.org>
61859
61860         * lib/math.in.h: Define isfinite macro and prototypes for
61861         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
61862         implementations.
61863         * m4/math_h.m4: New substitutions for isfinite module.
61864         * lib/isfinite.c: New file.
61865         * m4/isfinite.m4: New file.
61866         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
61867         * modules/isfinite: New file.
61868         * modules/isfinite-tests: New file.
61869         * tests/tests-isfinite.c: New file.
61870         * doc/functions/isfinite.texi: Mention isfinite module.
61871         * MODULES.html.sh: Mention new module.
61872
61873 2007-10-27  Ben Pfaff  <blp@gnu.org>
61874
61875         Ralf Wildenhues reported that Tru64 4.0D declares the round
61876         functions but does not have definitions.
61877         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
61878         cannot be found in any library, set the output variable to
61879         "missing" instead of "".
61880         * m4/round.m4: Also use our substitute if we cannot find round in
61881         any library, even if it is declared.
61882         * m4/roundf.m4: Likewise for roundf.
61883         * m4/roundl.m4: Likewise for roundl.
61884         * lib/math.in.h: Undefine roundf, round, roundl before defining
61885         their replacements, to allow for hypothetical systems where these
61886         may be defined as macros but not available in libraries.
61887
61888 2007-10-27  Bruno Haible  <bruno@clisp.org>
61889
61890         * doc/gnulib.texi: Invoke @firstparagraphindent.
61891         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
61892         changes in gnulib.
61893         (Source changes): New section.
61894
61895 2007-10-26  Bruno Haible  <bruno@clisp.org>
61896
61897         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
61898         borrowed from autoconf.
61899
61900 2007-10-26  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
61903         strerror returned the empty string. Needed on HP-UX 11.00.
61904
61905 2007-10-24  Micah Cowan  <micah@cowan.name>
61906
61907         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
61908         * build-aux/bootstrap: Remove support for now-unnecessary option,
61909         --cvs-user, and envvars CVS_USER, CVS_RSH.
61910
61911 2007-10-24  Jim Meyering  <meyering@redhat.com>
61912
61913         Avoid diagnostics from sha1sum when there is no cached checksum.
61914         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
61915         if the po.s1 file hasn't been created yet.
61916
61917         * build-aux/bootstrap: Sync from coreutils:
61918         2007-10-24  Jim Meyering  <meyering@redhat.com>
61919         Get gnulib from the git repository, not from an obsolete cvs one.
61920         * build-aux/bootstrap: Suggestion from Micah Cowan.
61921         2007-10-04  Jim Meyering  <jim@meyering.net>
61922         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
61923         (update_po_files): Work also when there are no .po files in po/.
61924
61925 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
61926
61927         * README: Append ".git" to git and cg examples.
61928         Problem reported by Benoit Sigoure.
61929
61930 2007-10-23  Micah Cowan  <micah@cowan.name>
61931
61932         * users.txt: Add wget.
61933
61934 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61935
61936         Fix linking of some unistdio tests on FreeBSD.
61937         * modules/unistdio/u16-vsnprintf-tests
61938         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
61939         * modules/unistdio/u16-vsprintf-tests
61940         (test_u16_vsnprintf1_LDADD): Likewise.
61941         * modules/unistdio/u32-vsnprintf-tests
61942         (test_u32_vsnprintf1_LDADD): Likewise.
61943         * modules/unistdio/u32-vsprintf-tests
61944         (test_u32_vsprintf1_LDADD): Likewise.
61945         * modules/unistdio/u8-vsnprintf-tests
61946         (test_u8_vsnprintf1_LDADD): Likewise.
61947         * modules/unistdio/u8-vsprintf-tests
61948         (test_u8_vsprintf1_LDADD): Likewise.
61949         * modules/unistdio/ulc-vsnprintf-tests
61950         (test_ulc_vsnprintf1_LDADD): Likewise.
61951         * modules/unistdio/ulc-vsprintf-tests
61952         (test_ulc_vsprintf1_LDADD): Likewise.
61953
61954         Fix linking of some uniconv tests on FreeBSD.
61955         * modules/uniconv/u16-conv-from-enc-tests
61956         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61957         * modules/uniconv/u16-conv-to-enc-tests
61958         (test_u16_conv_to_enc_LDADD): Likewise.
61959         * modules/uniconv/u16-strconv-from-enc-tests
61960         (test_u16_strconv_from_enc_LDADD): Likewise.
61961         * modules/uniconv/u16-strconv-to-enc-tests
61962         (test_u16_strconv_to_enc_LDADD): Likewise.
61963         * modules/uniconv/u32-conv-from-enc-tests
61964         (test_u32_conv_from_enc_LDADD): Likewise.
61965         * modules/uniconv/u32-conv-to-enc-tests
61966         (test_u32_conv_to_enc_LDADD): Likewise.
61967         * modules/uniconv/u32-strconv-from-enc-tests
61968         (test_u32_strconv_from_enc_LDADD): Likewise.
61969         * modules/uniconv/u32-strconv-to-enc-tests
61970         (test_u32_strconv_to_enc_LDADD): Likewise.
61971         * modules/uniconv/u8-conv-from-enc-tests
61972         (test_u8_conv_from_enc_LDADD): Likewise.
61973         * modules/uniconv/u8-conv-to-enc-tests
61974         (test_u8_conv_to_enc_LDADD): Likewise.
61975         * modules/uniconv/u8-strconv-from-enc-tests
61976         (test_u8_strconv_from_enc_LDADD): Likewise.
61977         * modules/uniconv/u8-strconv-to-enc-tests
61978         (test_u8_strconv_to_enc_LDADD): Likewise.
61979
61980 2007-10-22  Bruno Haible  <bruno@clisp.org>
61981
61982         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61983         size.
61984
61985 2007-10-22  Eric Blake  <ebb9@byu.net>
61986
61987         Tweak x*printf documentation.
61988         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61989         variable name and comments.
61990         Suggested by Bruno Haible.
61991
61992 2007-10-22  Bruno Haible  <bruno@clisp.org>
61993
61994         * lib/acl.c (copy_acl): Fix file name in comment.
61995
61996 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61997
61998         Fix Tru64 problem with stdbool.h.
61999         * lib/stdbool.in.h (false, true):
62000         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62001         Don't declare as an enum in this situation; it runs afoul of Tru64.
62002         Problem reported by Steven M. Schweda in
62003         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62004
62005 2007-10-22  Eric Blake  <ebb9@byu.net>
62006
62007         Also wrap vf?printf.
62008         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62009         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62010         (xvprintf, xvfprintf): New functions.
62011
62012 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62013
62014         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62015         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62016
62017         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62018         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62019
62020 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62023         by Bruno Haible.
62024
62025 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62026
62027         * lib/getloadavg.c
62028         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62029         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62030
62031         * tests/test-i-ring.c: Work for C89.
62032
62033 2007-10-22  Bruno Haible  <bruno@clisp.org>
62034
62035         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62036         -1u, in preprocessor expression, so that we don't test for the bug
62037         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62039
62040 2007-10-22  Eric Blake  <ebb9@byu.net>
62041
62042         * tests/test-yesno.sh: Silence stderr during test.
62043
62044 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62045
62046         * modules/crypto/gc-camellia: New file.
62047
62048         * m4/gc-camellia.m4: New file.
62049
62050         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62051
62052         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62053
62054 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62055
62056         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62057         --help to stdout.  Reported by sms@antinode.org (Steven
62058         M. Schweda).
62059
62060 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62061
62062         * users.txt: Fix link to libksba.
62063
62064 2007-10-21  Ben Pfaff  <blp@gnu.org>
62065
62066         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62067         round.c roundf implementation that depends on floorf and ceilf to
62068         be tested unconditionally.
62069
62070 2007-10-21  Ben Pfaff  <blp@gnu.org>
62071
62072         * m4/check-libm-func.m4: Removed.
62073         * m4/check-math-lib.m4: New file.
62074         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62075         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62076         definition and lack of AC_LIBOBJ([roundf]).
62077         * m4/roundl.m4: Ditto, and similarly for roundl.
62078         * modules/round: Reference new m4 file.
62079         * modules/roundf: Ditto.
62080         * modules/roundl: Ditto.
62081         * tests/test-round2.c (main): Use ROUND instead of round.
62082         Bug report from Bruno Haible.
62083
62084 2007-10-21  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62087         context.
62088
62089 2007-10-21  Bruno Haible  <bruno@clisp.org>
62090
62091         * tests/test-wcwidth.c (main): Allow negative result for some control
62092         characters.
62093
62094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62095         Needed on OSF/1 5.1.
62096
62097 2007-10-21  Bruno Haible  <bruno@clisp.org>
62098
62099         * tests/test-floorf1.c: Include isnanf.h.
62100         (main): Use isnanf() instead of isnan().
62101         * tests/test-ceilf1.c: Include isnanf.h.
62102         (main): Use isnanf() instead of isnan().
62103         * tests/test-truncf1.c: Include isnanf.h.
62104         (main): Use isnanf() instead of isnan().
62105         * tests/test-roundf1.c: Include isnanf.h.
62106         (main): Use isnanf() instead of isnan().
62107
62108 2007-10-21  Eric Blake  <ebb9@byu.net>
62109
62110         * users.txt: Update URL for m4.
62111
62112 2007-10-21  Bruno Haible  <bruno@clisp.org>
62113
62114         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62115
62116 2007-10-21  Bruno Haible  <bruno@clisp.org>
62117
62118         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62119         Git's management files if the CVS files are not present.
62120
62121 2007-10-20  Bruno Haible  <bruno@clisp.org>
62122
62123         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62124         gcc-3.4.x.
62125
62126 2007-10-20  Ben Pfaff  <blp@gnu.org>
62127
62128         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62129         implementations.
62130         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62131         * lib/round.c: New file.
62132         * lib/roundf.c: New file.
62133         * lib/roundl.c: New file.
62134         * m4/round.m4: New file.
62135         * m4/roundf.m4: New file.
62136         * m4/roundl.m4: New file.
62137         * m4/check-libm-func-m4: New file.
62138         * modules/math: Replace round, roundf, roundl related @VARS@ in
62139         math.in.h.
62140         * modules/round: New file.
62141         * modules/round-tests: New file.
62142         * modules/roundf: New file.
62143         * modules/roundf-tests: New file.
62144         * modules/roundl: New file.
62145         * modules/roundl-tests: New file.
62146         * tests/test-round1.c: New file.
62147         * tests/test-round2.c: New file.
62148         * tests/test-roundf1.c: New file.
62149         * tests/test-roundf2.c: New file.
62150         * tests/test-roundl.c: New file.
62151         * doc/functions/round.texi: Mention round module.
62152         * doc/functions/roundf.texi: Mention roundf module.
62153         * doc/functions/roundl.texi: Mention roundl module.
62154         * MODULES.html.sh: Mention new modules.
62155         Thanks to Bruno Haible for suggestions.
62156
62157 2007-10-20  Jim Meyering  <meyering@redhat.com>
62158
62159         * lib/xprintf.c: Include <config.h> unconditionally.
62160
62161         Change xprintf's license to GPL.
62162         * modules/xprintf (License): s/LGPL/GPL/, since this module
62163         depends on modules (exit and exitfail) which are GPL.
62164         Suggestion from Bruno Haible.
62165
62166         xprintf fixes.
62167         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62168         Use a clearer diagnostic.
62169         Patch from Bruno Haible.
62170
62171 2007-10-20  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62174         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62175         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62176
62177 2007-10-20  Bruno Haible  <bruno@clisp.org>
62178
62179         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62180         precision in the comparison result > x - 1 or similar.
62181         * tests/test-ceilf2.c (correct_result_p): Likewise.
62182         * tests/test-truncf2.c (correct_result_p): Likewise.
62183         * tests/test-trunc2.c (correct_result_p): Likewise.
62184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62185
62186 2007-10-20  Bruno Haible  <bruno@clisp.org>
62187
62188         * modules/ceil: New file.
62189         * m4/ceil.m4: New file.
62190         * doc/functions/ceil.texi: Mention the 'ceil' module.
62191
62192 2007-10-20  Bruno Haible  <bruno@clisp.org>
62193
62194         * modules/floor: New file.
62195         * m4/floor.m4: New file.
62196         * doc/functions/floor.texi: Mention the 'floor' module.
62197
62198 2007-10-20  Bruno Haible  <bruno@clisp.org>
62199
62200         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62201         of %a.
62202         * modules/floorf-tests (Depends-on): Likewise.
62203         * modules/truncf-tests (Depends-on): Likewise.
62204         * modules/trunc-tests (Depends-on): Likewise.
62205         Reported by Ben Pfaff.
62206
62207 2007-10-19  Jim Meyering  <meyering@redhat.com>
62208
62209         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62210         Don't bother testing specific errno values.  Just test ferror.
62211
62212         New module: xprintf
62213         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62214
62215 2007-10-19  Bruno Haible  <bruno@clisp.org>
62216
62217         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62218         syntax.
62219         * modules/javaexec (Makefile.am): Likewise.
62220         * modules/relocatable-prog (Makefile.am): Likewise.
62221         Suggested by Jim Meyering.
62222
62223 2007-10-18  Bruno Haible  <bruno@clisp.org>
62224
62225         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62226         Reported by Jim Meyering.
62227
62228 2007-10-18  Eric Blake  <ebb9@byu.net>
62229
62230         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62231
62232 2007-10-18  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62235         the format string into writable memory. Needed in Fortify conditions.
62236
62237 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62238             Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62241         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62242         * modules/trim (Depends-on): Add mbchar.
62243         (configure.ac): Add gl_FUNC_MBRTOWC.
62244         (Makefile.am): Augment lib_SOURCES.
62245
62246 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62247
62248         Modify glob.c to use fstatat and dirfd, to simplify it.
62249         Suggested by Eric Blake.
62250         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62251         Don't include <stdbool.h>; not used.
62252         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62253         (link_exists_p): Simplify implementation, since we can now assume
62254         dirfd and fstatat.
62255         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62256
62257 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62258
62259         * gnulib-tool (func_get_dependencies): Fix sed script to
62260         match only tests.
62261
62262 2007-10-17  Bruno Haible  <bruno@clisp.org>
62263
62264         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62265         allow locale names without encoding suffix.
62266         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62267         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62268
62269 2007-10-16  Bruno Haible  <bruno@clisp.org>
62270
62271         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62272         * lib/getgroups.c (getgroups): Likewise.
62273         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62274
62275 2007-10-16  Bruno Haible  <bruno@clisp.org>
62276
62277         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62278         * modules/malloc-posix (License): Likewise.
62279         * modules/realloc-posix (License): Likewise.
62280         * modules/calloc-posix (License): Likewise.
62281         * modules/intprops (License): Change from GPL to LGPL, with
62282         Paul Eggert's approval.
62283
62284 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62285
62286         Merge glibc changes into lib/glob.c.
62287
62288         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62289         2007-10-15 04:59:03 UTC.  Here are the changes:
62290
62291         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62292
62293         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62294
62295         * lib/glob.c: Add some branch prediction throughout.
62296
62297         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62298
62299         [BZ #5103]
62300         * lib/glob.c (glob): Recognize patterns starting \/.
62301
62302         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62303
62304         [BZ #3996]
62305         * lib/glob.c (attribute_hidden): Define if not defined.
62306         (glob): Unescape dirname, filename or username when needed and not
62307         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62308         is NULL.  Handle unescaped [ in pattern without closing ].
62309         Don't pass GLOB_CHECK down to recursive glob for directories.
62310         (__glob_pattern_type): New function.
62311         (__glob_pattern_p): Implement using __glob_pattern_type.
62312         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62313         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62314         Remove unreachable code.
62315
62316         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62317
62318         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62319         explain why there are no leaks.
62320
62321         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62322
62323         [BZ #3253]
62324         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62325         time, rather allocate increasingly bigger arrays of pointers, if
62326         possible with alloca, if too large with malloc.
62327
62328 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62329
62330         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62331         Problem reported by H.Merijn Brand in
62332         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62333         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62334         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62335
62336 2007-10-15  Bruno Haible  <bruno@clisp.org>
62337
62338         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62339         with explicit rpl_ prefix.
62340         * lib/fopen.c (fopen): Likewise.
62341         * lib/freopen.c (freopen): Likewise.
62342         * lib/iconv.c (iconv): Likewise.
62343         * lib/iconv_close.c (iconv_close): Likewise.
62344
62345 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62346
62347         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62348
62349 2007-10-15  Bruno Haible  <bruno@clisp.org>
62350
62351         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62352         <stddef.h> instead of <stdlib.h> since we only need NULL.
62353         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62354
62355 2007-10-15  Bruno Haible  <bruno@clisp.org>
62356
62357         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62358         Replace paragraph talking about LIBOBJS.
62359         Reported by Colin Watson <cjwatson@debian.org>.
62360
62361 2007-10-15  Bruno Haible  <bruno@clisp.org>
62362
62363         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62364         <stdlib.h> before using NULL.
62365
62366 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62367
62368         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62369         Reported by Albert Chin <china@thewrittenword.com>.
62370
62371 2007-10-14  Bruno Haible  <bruno@clisp.org>
62372
62373         * modules/iconv_open-utf-tests: New file.
62374         * tests/test-iconv-utf.c: New file.
62375
62376         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62377         * modules/iconv_open-utf: New file.
62378         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62379         (iconv, iconv_close): New declarations.
62380         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62381         be defined.
62382         (iconv_open): Add special handling of conversion between UTF-8 and
62383         UTF-{16,32}{BE,LE}.
62384         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62385         * lib/iconv_close.c: New file.
62386         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62387         gl_FUNC_ICONV_OPEN.
62388         (gl_FUNC_ICONV_OPEN): Use it.
62389         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62390         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62391         and REPLACE_ICONV_UTF.
62392         * modules/iconv_open (Depends-on): Add c-strcase.
62393         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62394         ICONV_CONST.
62395         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62396
62397 2007-10-13  Albert Chin  <china@thewrittenword.com>
62398             Bruno Haible  <bruno@clisp.org>
62399
62400         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62401         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62402
62403 2007-10-13  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62406         defined, use the ISO C99 inline semantics.
62407         * lib/argp.h (ARGP_EI): Likewise.
62408
62409 2007-10-13  Bruno Haible  <bruno@clisp.org>
62410
62411         Handle 'inline' change in gcc 4.3.0.
62412         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62413         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62414         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62415         argp_fmtstream_point): Disable 'extern' declaration if the function
62416         definition is going to be provided inline.
62417         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62418         semantics, not the ISO C99 inline semantics.
62419         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62420         'extern' declaration if the function definition is going to be provided
62421         inline.
62422         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62423         the GNU C inline semantics, not the ISO C99 inline semantics. With
62424         GCC 4.2, avoid a warning.
62425
62426 2007-10-13  Bruno Haible  <bruno@clisp.org>
62427
62428         * lib/freading.h (freading): Enable the use of __freading for
62429         glibc >= 2.7.
62430         * lib/freading.c (freading): Likewise.
62431
62432 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62435         "warning: C99 inline functions are not supported; using GNU89".
62436
62437 2007-10-12  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62440         of 2.
62441         * tests/test-ceilf2.c: New file.
62442         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62443
62444         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62445         * modules/ceilf-tests: Update.
62446
62447 2007-10-12  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62450         of 2.
62451         * tests/test-floorf2.c: New file.
62452         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62453
62454         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62455         * modules/floorf-tests: Update.
62456
62457 2007-10-12  Bruno Haible  <bruno@clisp.org>
62458
62459         * tests/test-trunc2.c: New file.
62460         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62461
62462         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62463         * modules/trunc-tests: Update.
62464
62465 2007-10-12  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62468         of 2.
62469         * tests/test-truncf2.c: New file.
62470         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62471
62472         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62473         * modules/truncf-tests: Update.
62474
62475 2007-10-11  Eric Blake  <ebb9@byu.net>
62476
62477         Don't claim strerror is broken on Interix.
62478         * doc/functions/strerror.texi (strerror): Known broken systems are
62479         now Solaris 8, and not Interix.
62480         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62481         Interix on cross-compile.
62482         Reported by Martin Koeppe in
62483         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62484
62485 2007-10-11  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/i-ring-tests: New file.
62488         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62489         instead of assert.
62490
62491 2007-10-11  Bruno Haible  <bruno@clisp.org>
62492
62493         * modules/filenamecat-tests: New file.
62494         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62495         * lib/filenamecat.c: Remove test code.
62496
62497 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62500
62501         * lib/strerror.c: Include <string.h> always, to test interface,
62502         and to remove the need for the dummy.
62503         Include intprops.h to compute width instead of doing it ourselves
62504         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62505         (strerror): Define it to return NULL if there's no system strerror.
62506         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62507         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62508         ancient pre-strerror Unix systems well any more.  Saying "unknown
62509         system error" is enough.
62510         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62511         simpler strerror.c implementation.
62512         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62513         Simplify the tests to reflect the simpler strerror implementation.
62514         * modules/strerror (Depends-on): Add intprops.
62515
62516 2007-10-09  Eric Blake  <ebb9@byu.net>
62517
62518         Silence test-fpending.
62519         * modules/fpending-tests (Files): Add wrapper script.
62520         * tests/test-fpending.sh: New file.
62521
62522 2007-10-09  Bruno Haible  <bruno@clisp.org>
62523
62524         * MODULES.html.sh (func_module): Don't create a hyperlink for
62525         function names like 'printf_frexp'.
62526         (Misc): Add crc, memxor.
62527         (Characteristics of floating types): New section.
62528         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62529         isnanf-nolibm, signbit, trunc, truncf, truncl.
62530         (Enhancements for ISO C 99 functions): New subsection Input/output.
62531         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62532         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62533         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62534         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62535         (Enhancements for POSIX:2001 functions): Add chdir-long.
62536         (File system functions): Add areadlink, chdir-safer, read-file.
62537         Remove cycle-check.
62538         (File system as inode set): New section.
62539         (Date and time): Add gethrxtime.
62540         (Multithreading): Add openmp.
62541         (Internationalization functions): Add localename.
62542         (Unicode string functions): Add unistr/u*-mbsnlen.
62543         (Support for maintaining and releasing projects): Add git-version-gen.
62544         (Lone files): Remove directories.
62545
62546 2007-10-08  Ben Pfaff  <blp@gnu.org>
62547
62548         * lib/xmalloca.h: Fix typo in comment.
62549
62550 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62551
62552         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62553         when avoiding problems with integer overflow.  Use a portable test
62554         instead.
62555
62556 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62557
62558         * modules/dummy (License): Change to LGPLv2+.
62559         * modules/float (License): Likewise
62560         * modules/realloc (License): Likewise
62561         * modules/stdlib (License): Likewise
62562
62563 2007-10-07  Bruno Haible  <bruno@clisp.org>
62564
62565         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62566         * floor.c (TWO_MANT_DIG): Likewise.
62567         * ceil.c (TWO_MANT_DIG): Likewise.
62568         Reported by Ben Pfaff.
62569
62570 2007-10-07  Bruno Haible  <bruno@clisp.org>
62571
62572         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62573         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62574         * lib/frexp.c (FUNC): Likewise.
62575         * lib/printf-frexp.h (printf_frexp): Likewise.
62576         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62577         * lib/printf-frexp.c (FUNC): Likewise.
62578         Suggested by Jim Meyering.
62579
62580 2007-10-07  Jim Meyering  <meyering@redhat.com>
62581
62582         Make xnanosleep's integer overflow test more robust.
62583         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62584         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62585
62586 2007-10-07  Bruno Haible  <bruno@clisp.org>
62587
62588         * NEWS: Mention the license change.
62589
62590         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62591         abbreviations in the modules files.
62592
62593         Change copyright notice from GPLv2+ to GPLv3+.
62594         * README: Change copyright notice.
62595         * MODULES.html.sh: Likewise.
62596         * build-aux/bootstrap.conf: Likewise.
62597         * build-aux/config.libpath: Likewise.
62598         * build-aux/csharpcomp.sh.in: Likewise.
62599         * build-aux/csharpexec.sh.in: Likewise.
62600         * build-aux/install-reloc: Likewise.
62601         * build-aux/javacomp.sh.in: Likewise.
62602         * build-aux/javaexec.sh.in: Likewise.
62603         * build-aux/ldd.sh.in: Likewise.
62604         * build-aux/reloc-ldflags: Likewise.
62605         * build-aux/relocatable.sh.in: Likewise.
62606         * build-aux/x-to-1.in: Likewise.
62607         * check-module: Likewise.
62608         * config/srclistvars.sh: Likewise.
62609         * gnulib-tool: Likewise.
62610         * lib/acl-internal.h: Likewise.
62611         * lib/acl.c: Likewise.
62612         * lib/acl.h: Likewise.
62613         * lib/acl_entries.c: Likewise.
62614         * lib/areadlink-with-size.c: Likewise.
62615         * lib/areadlink.c: Likewise.
62616         * lib/areadlink.h: Likewise.
62617         * lib/argmatch.c: Likewise.
62618         * lib/argmatch.h: Likewise.
62619         * lib/argp-ba.c: Likewise.
62620         * lib/argp-eexst.c: Likewise.
62621         * lib/argp-fmtstream.c: Likewise.
62622         * lib/argp-fmtstream.h: Likewise.
62623         * lib/argp-fs-xinl.c: Likewise.
62624         * lib/argp-help.c: Likewise.
62625         * lib/argp-namefrob.h: Likewise.
62626         * lib/argp-parse.c: Likewise.
62627         * lib/argp-pin.c: Likewise.
62628         * lib/argp-pv.c: Likewise.
62629         * lib/argp-pvh.c: Likewise.
62630         * lib/argp-xinl.c: Likewise.
62631         * lib/argp.h: Likewise.
62632         * lib/at-func.c: Likewise.
62633         * lib/atanl.c: Likewise.
62634         * lib/backupfile.c: Likewise.
62635         * lib/backupfile.h: Likewise.
62636         * lib/basename.c: Likewise.
62637         * lib/binary-io.h: Likewise.
62638         * lib/byteswap.in.h: Likewise.
62639         * lib/c-stack.c: Likewise.
62640         * lib/c-stack.h: Likewise.
62641         * lib/c-strcasestr.c: Likewise.
62642         * lib/c-strcasestr.h: Likewise.
62643         * lib/c-strstr.c: Likewise.
62644         * lib/c-strstr.h: Likewise.
62645         * lib/c-strtod.c: Likewise.
62646         * lib/calloc.c: Likewise.
62647         * lib/canon-host.c: Likewise.
62648         * lib/canon-host.h: Likewise.
62649         * lib/canonicalize-lgpl.c: Likewise.
62650         * lib/canonicalize.c: Likewise.
62651         * lib/canonicalize.h: Likewise.
62652         * lib/ceil.c: Likewise.
62653         * lib/ceilf.c: Likewise.
62654         * lib/ceill.c: Likewise.
62655         * lib/chdir-long.c: Likewise.
62656         * lib/chdir-long.h: Likewise.
62657         * lib/chdir-safer.c: Likewise.
62658         * lib/chdir-safer.h: Likewise.
62659         * lib/chown.c: Likewise.
62660         * lib/classpath.c: Likewise.
62661         * lib/classpath.h: Likewise.
62662         * lib/clean-temp.c: Likewise.
62663         * lib/clean-temp.h: Likewise.
62664         * lib/cloexec.c: Likewise.
62665         * lib/close-stream.c: Likewise.
62666         * lib/closein.c: Likewise.
62667         * lib/closein.h: Likewise.
62668         * lib/closeout.c: Likewise.
62669         * lib/closeout.h: Likewise.
62670         * lib/concat-filename.c: Likewise.
62671         * lib/copy-file.c: Likewise.
62672         * lib/copy-file.h: Likewise.
62673         * lib/count-one-bits.h: Likewise.
62674         * lib/crc.c: Likewise.
62675         * lib/crc.h: Likewise.
62676         * lib/creat-safer.c: Likewise.
62677         * lib/csharpcomp.c: Likewise.
62678         * lib/csharpcomp.h: Likewise.
62679         * lib/csharpexec.c: Likewise.
62680         * lib/csharpexec.h: Likewise.
62681         * lib/cycle-check.c: Likewise.
62682         * lib/cycle-check.h: Likewise.
62683         * lib/diacrit.c: Likewise.
62684         * lib/diacrit.h: Likewise.
62685         * lib/diffseq.h: Likewise.
62686         * lib/dirchownmod.c: Likewise.
62687         * lib/dirent.in.h: Likewise.
62688         * lib/dirfd.c: Likewise.
62689         * lib/dirfd.h: Likewise.
62690         * lib/dirname.c: Likewise.
62691         * lib/dirname.h: Likewise.
62692         * lib/dummy.c: Likewise.
62693         * lib/dup-safer.c: Likewise.
62694         * lib/dup2.c: Likewise.
62695         * lib/eealloc.h: Likewise.
62696         * lib/error.c: Likewise.
62697         * lib/error.h: Likewise.
62698         * lib/euidaccess.c: Likewise.
62699         * lib/exclude.c: Likewise.
62700         * lib/exclude.h: Likewise.
62701         * lib/execute.c: Likewise.
62702         * lib/execute.h: Likewise.
62703         * lib/exitfail.c: Likewise.
62704         * lib/exitfail.h: Likewise.
62705         * lib/expl.c: Likewise.
62706         * lib/fatal-signal.c: Likewise.
62707         * lib/fatal-signal.h: Likewise.
62708         * lib/fbufmode.c: Likewise.
62709         * lib/fbufmode.h: Likewise.
62710         * lib/fchdir.c: Likewise.
62711         * lib/fchmodat.c: Likewise.
62712         * lib/fchownat.c: Likewise.
62713         * lib/fcntl--.h: Likewise.
62714         * lib/fcntl-safer.h: Likewise.
62715         * lib/fcntl.in.h: Likewise.
62716         * lib/fd-safer.c: Likewise.
62717         * lib/fflush.c: Likewise.
62718         * lib/file-has-acl.c: Likewise.
62719         * lib/file-set.c: Likewise.
62720         * lib/file-type.c: Likewise.
62721         * lib/file-type.h: Likewise.
62722         * lib/fileblocks.c: Likewise.
62723         * lib/filemode.c: Likewise.
62724         * lib/filemode.h: Likewise.
62725         * lib/filename.h: Likewise.
62726         * lib/filenamecat.c: Likewise.
62727         * lib/filenamecat.h: Likewise.
62728         * lib/findprog.c: Likewise.
62729         * lib/findprog.h: Likewise.
62730         * lib/float.in.h: Likewise.
62731         * lib/floor.c: Likewise.
62732         * lib/floorf.c: Likewise.
62733         * lib/floorl.c: Likewise.
62734         * lib/fopen-safer.c: Likewise.
62735         * lib/fopen.c: Likewise.
62736         * lib/fpending.c: Likewise.
62737         * lib/fpending.h: Likewise.
62738         * lib/fprintf.c: Likewise.
62739         * lib/fprintftime.h: Likewise.
62740         * lib/fpucw.h: Likewise.
62741         * lib/fpurge.c: Likewise.
62742         * lib/fpurge.h: Likewise.
62743         * lib/freadable.c: Likewise.
62744         * lib/freadable.h: Likewise.
62745         * lib/freadahead.c: Likewise.
62746         * lib/freadahead.h: Likewise.
62747         * lib/freading.c: Likewise.
62748         * lib/freading.h: Likewise.
62749         * lib/free.c: Likewise.
62750         * lib/freopen.c: Likewise.
62751         * lib/frexp.c: Likewise.
62752         * lib/frexpl.c: Likewise.
62753         * lib/fseek.c: Likewise.
62754         * lib/fseterr.c: Likewise.
62755         * lib/fseterr.h: Likewise.
62756         * lib/fstatat.c: Likewise.
62757         * lib/fstrcmp.c: Likewise.
62758         * lib/fstrcmp.h: Likewise.
62759         * lib/fsusage.c: Likewise.
62760         * lib/fsusage.h: Likewise.
62761         * lib/ftell.c: Likewise.
62762         * lib/ftello.c: Likewise.
62763         * lib/fts-cycle.c: Likewise.
62764         * lib/fts.c: Likewise.
62765         * lib/fts_.h: Likewise.
62766         * lib/full-read.c: Likewise.
62767         * lib/full-read.h: Likewise.
62768         * lib/full-write.c: Likewise.
62769         * lib/full-write.h: Likewise.
62770         * lib/fwritable.c: Likewise.
62771         * lib/fwritable.h: Likewise.
62772         * lib/fwriteerror.c: Likewise.
62773         * lib/fwriteerror.h: Likewise.
62774         * lib/fwriting.c: Likewise.
62775         * lib/fwriting.h: Likewise.
62776         * lib/gcd.c: Likewise.
62777         * lib/gcd.h: Likewise.
62778         * lib/getcwd.c: Likewise.
62779         * lib/getdate.h: Likewise.
62780         * lib/getdate.y: Likewise.
62781         * lib/getdomainname.c: Likewise.
62782         * lib/getdomainname.h: Likewise.
62783         * lib/getgroups.c: Likewise.
62784         * lib/gethostname.c: Likewise.
62785         * lib/gethrxtime.c: Likewise.
62786         * lib/gethrxtime.h: Likewise.
62787         * lib/getloadavg.c: Likewise.
62788         * lib/getndelim2.c: Likewise.
62789         * lib/getndelim2.h: Likewise.
62790         * lib/getnline.c: Likewise.
62791         * lib/getnline.h: Likewise.
62792         * lib/getopt.c: Likewise.
62793         * lib/getopt.in.h: Likewise.
62794         * lib/getopt1.c: Likewise.
62795         * lib/getopt_int.h: Likewise.
62796         * lib/getpagesize.h: Likewise.
62797         * lib/getsubopt.c: Likewise.
62798         * lib/gettime.c: Likewise.
62799         * lib/getugroups.c: Likewise.
62800         * lib/getugroups.h: Likewise.
62801         * lib/getusershell.c: Likewise.
62802         * lib/gl_anyavltree_list1.h: Likewise.
62803         * lib/gl_anyavltree_list2.h: Likewise.
62804         * lib/gl_anyhash_list1.h: Likewise.
62805         * lib/gl_anyhash_list2.h: Likewise.
62806         * lib/gl_anylinked_list1.h: Likewise.
62807         * lib/gl_anylinked_list2.h: Likewise.
62808         * lib/gl_anyrbtree_list1.h: Likewise.
62809         * lib/gl_anyrbtree_list2.h: Likewise.
62810         * lib/gl_anytree_list1.h: Likewise.
62811         * lib/gl_anytree_list2.h: Likewise.
62812         * lib/gl_anytree_oset.h: Likewise.
62813         * lib/gl_anytreehash_list1.h: Likewise.
62814         * lib/gl_anytreehash_list2.h: Likewise.
62815         * lib/gl_array_list.c: Likewise.
62816         * lib/gl_array_list.h: Likewise.
62817         * lib/gl_array_oset.c: Likewise.
62818         * lib/gl_array_oset.h: Likewise.
62819         * lib/gl_avltree_list.c: Likewise.
62820         * lib/gl_avltree_list.h: Likewise.
62821         * lib/gl_avltree_oset.c: Likewise.
62822         * lib/gl_avltree_oset.h: Likewise.
62823         * lib/gl_avltreehash_list.c: Likewise.
62824         * lib/gl_avltreehash_list.h: Likewise.
62825         * lib/gl_carray_list.c: Likewise.
62826         * lib/gl_carray_list.h: Likewise.
62827         * lib/gl_linked_list.c: Likewise.
62828         * lib/gl_linked_list.h: Likewise.
62829         * lib/gl_linkedhash_list.c: Likewise.
62830         * lib/gl_linkedhash_list.h: Likewise.
62831         * lib/gl_list.c: Likewise.
62832         * lib/gl_list.h: Likewise.
62833         * lib/gl_oset.c: Likewise.
62834         * lib/gl_oset.h: Likewise.
62835         * lib/gl_rbtree_list.c: Likewise.
62836         * lib/gl_rbtree_list.h: Likewise.
62837         * lib/gl_rbtree_oset.c: Likewise.
62838         * lib/gl_rbtree_oset.h: Likewise.
62839         * lib/gl_rbtreehash_list.c: Likewise.
62840         * lib/gl_rbtreehash_list.h: Likewise.
62841         * lib/gl_sublist.c: Likewise.
62842         * lib/gl_sublist.h: Likewise.
62843         * lib/group-member.c: Likewise.
62844         * lib/group-member.h: Likewise.
62845         * lib/hard-locale.c: Likewise.
62846         * lib/hard-locale.h: Likewise.
62847         * lib/hash-pjw.c: Likewise.
62848         * lib/hash-pjw.h: Likewise.
62849         * lib/hash-triple.c: Likewise.
62850         * lib/hash.c: Likewise.
62851         * lib/hash.h: Likewise.
62852         * lib/human.c: Likewise.
62853         * lib/human.h: Likewise.
62854         * lib/i-ring.c: Likewise.
62855         * lib/i-ring.h: Likewise.
62856         * lib/idcache.c: Likewise.
62857         * lib/imaxabs.c: Likewise.
62858         * lib/imaxdiv.c: Likewise.
62859         * lib/inet_pton.c: Likewise.
62860         * lib/inet_pton.h: Likewise.
62861         * lib/intprops.h: Likewise.
62862         * lib/inttostr.c: Likewise.
62863         * lib/inttostr.h: Likewise.
62864         * lib/inttypes.in.h: Likewise.
62865         * lib/isapipe.c: Likewise.
62866         * lib/isdir.c: Likewise.
62867         * lib/isnan.c: Likewise.
62868         * lib/isnan.h: Likewise.
62869         * lib/isnanf.c: Likewise.
62870         * lib/isnanf.h: Likewise.
62871         * lib/isnanl-nolibm.h: Likewise.
62872         * lib/isnanl.c: Likewise.
62873         * lib/isnanl.h: Likewise.
62874         * lib/javacomp.c: Likewise.
62875         * lib/javacomp.h: Likewise.
62876         * lib/javaexec.c: Likewise.
62877         * lib/javaexec.h: Likewise.
62878         * lib/javaversion.c: Likewise.
62879         * lib/javaversion.h: Likewise.
62880         * lib/javaversion.java: Likewise.
62881         * lib/lbrkprop.h: Likewise.
62882         * lib/lchmod.h: Likewise.
62883         * lib/lchown.c: Likewise.
62884         * lib/ldexpl.c: Likewise.
62885         * lib/linebreak.c: Likewise.
62886         * lib/linebreak.h: Likewise.
62887         * lib/linebuffer.c: Likewise.
62888         * lib/linebuffer.h: Likewise.
62889         * lib/locale.in.h: Likewise.
62890         * lib/logl.c: Likewise.
62891         * lib/long-options.c: Likewise.
62892         * lib/long-options.h: Likewise.
62893         * lib/lstat.c: Likewise.
62894         * lib/lstat.h: Likewise.
62895         * lib/math.in.h: Likewise.
62896         * lib/mbchar.c: Likewise.
62897         * lib/mbchar.h: Likewise.
62898         * lib/mbfile.h: Likewise.
62899         * lib/mbiter.h: Likewise.
62900         * lib/mbscasecmp.c: Likewise.
62901         * lib/mbscasestr.c: Likewise.
62902         * lib/mbschr.c: Likewise.
62903         * lib/mbscspn.c: Likewise.
62904         * lib/mbslen.c: Likewise.
62905         * lib/mbsncasecmp.c: Likewise.
62906         * lib/mbsnlen.c: Likewise.
62907         * lib/mbspbrk.c: Likewise.
62908         * lib/mbspcasecmp.c: Likewise.
62909         * lib/mbsrchr.c: Likewise.
62910         * lib/mbssep.c: Likewise.
62911         * lib/mbsspn.c: Likewise.
62912         * lib/mbsstr.c: Likewise.
62913         * lib/mbstok_r.c: Likewise.
62914         * lib/mbswidth.c: Likewise.
62915         * lib/mbswidth.h: Likewise.
62916         * lib/mbuiter.h: Likewise.
62917         * lib/memcasecmp.c: Likewise.
62918         * lib/memcasecmp.h: Likewise.
62919         * lib/memchr.c: Likewise.
62920         * lib/memcmp.c: Likewise.
62921         * lib/memcoll.c: Likewise.
62922         * lib/memcoll.h: Likewise.
62923         * lib/memcpy.c: Likewise.
62924         * lib/memrchr.c: Likewise.
62925         * lib/mkancesdirs.c: Likewise.
62926         * lib/mkdir-p.c: Likewise.
62927         * lib/mkdir-p.h: Likewise.
62928         * lib/mkdir.c: Likewise.
62929         * lib/mkdirat.c: Likewise.
62930         * lib/mkdtemp.c: Likewise.
62931         * lib/mkstemp-safer.c: Likewise.
62932         * lib/mkstemp.c: Likewise.
62933         * lib/modechange.c: Likewise.
62934         * lib/modechange.h: Likewise.
62935         * lib/mountlist.c: Likewise.
62936         * lib/mountlist.h: Likewise.
62937         * lib/mpsort.c: Likewise.
62938         * lib/nanosleep.c: Likewise.
62939         * lib/obstack.c: Likewise.
62940         * lib/obstack.h: Likewise.
62941         * lib/open-safer.c: Likewise.
62942         * lib/open.c: Likewise.
62943         * lib/openat-die.c: Likewise.
62944         * lib/openat-priv.h: Likewise.
62945         * lib/openat-proc.c: Likewise.
62946         * lib/openat.c: Likewise.
62947         * lib/openat.h: Likewise.
62948         * lib/pagealign_alloc.c: Likewise.
62949         * lib/pagealign_alloc.h: Likewise.
62950         * lib/physmem.c: Likewise.
62951         * lib/physmem.h: Likewise.
62952         * lib/pipe-safer.c: Likewise.
62953         * lib/pipe.c: Likewise.
62954         * lib/pipe.h: Likewise.
62955         * lib/posixtm.c: Likewise.
62956         * lib/posixtm.h: Likewise.
62957         * lib/posixver.c: Likewise.
62958         * lib/printf-frexp.c: Likewise.
62959         * lib/printf-frexp.h: Likewise.
62960         * lib/printf-frexpl.c: Likewise.
62961         * lib/printf-frexpl.h: Likewise.
62962         * lib/printf.c: Likewise.
62963         * lib/progname.c: Likewise.
62964         * lib/progname.h: Likewise.
62965         * lib/progreloc.c: Likewise.
62966         * lib/putenv.c: Likewise.
62967         * lib/quote.c: Likewise.
62968         * lib/quote.h: Likewise.
62969         * lib/quotearg.c: Likewise.
62970         * lib/quotearg.h: Likewise.
62971         * lib/raise.c: Likewise.
62972         * lib/readline.c: Likewise.
62973         * lib/readline.h: Likewise.
62974         * lib/readlink.c: Likewise.
62975         * lib/readtokens.c: Likewise.
62976         * lib/readtokens.h: Likewise.
62977         * lib/readtokens0.c: Likewise.
62978         * lib/readtokens0.h: Likewise.
62979         * lib/readutmp.c: Likewise.
62980         * lib/readutmp.h: Likewise.
62981         * lib/realloc.c: Likewise.
62982         * lib/relocwrapper.c: Likewise.
62983         * lib/rename-dest-slash.c: Likewise.
62984         * lib/rename.c: Likewise.
62985         * lib/rmdir.c: Likewise.
62986         * lib/rpmatch.c: Likewise.
62987         * lib/safe-read.c: Likewise.
62988         * lib/safe-read.h: Likewise.
62989         * lib/safe-write.c: Likewise.
62990         * lib/safe-write.h: Likewise.
62991         * lib/same-inode.h: Likewise.
62992         * lib/same.c: Likewise.
62993         * lib/same.h: Likewise.
62994         * lib/save-cwd.c: Likewise.
62995         * lib/save-cwd.h: Likewise.
62996         * lib/savedir.c: Likewise.
62997         * lib/savedir.h: Likewise.
62998         * lib/savewd.c: Likewise.
62999         * lib/savewd.h: Likewise.
63000         * lib/search.in.h: Likewise.
63001         * lib/setenv.c: Likewise.
63002         * lib/setenv.h: Likewise.
63003         * lib/settime.c: Likewise.
63004         * lib/sh-quote.c: Likewise.
63005         * lib/sh-quote.h: Likewise.
63006         * lib/sig2str.c: Likewise.
63007         * lib/sig2str.h: Likewise.
63008         * lib/signal.in.h: Likewise.
63009         * lib/signbitd.c: Likewise.
63010         * lib/signbitf.c: Likewise.
63011         * lib/signbitl.c: Likewise.
63012         * lib/sigprocmask.c: Likewise.
63013         * lib/sincosl.c: Likewise.
63014         * lib/sleep.c: Likewise.
63015         * lib/sprintf.c: Likewise.
63016         * lib/sqrtl.c: Likewise.
63017         * lib/stat-time.h: Likewise.
63018         * lib/stdio--.h: Likewise.
63019         * lib/stdio-safer.h: Likewise.
63020         * lib/stdlib--.h: Likewise.
63021         * lib/stdlib-safer.h: Likewise.
63022         * lib/stdlib.in.h: Likewise.
63023         * lib/stpcpy.c: Likewise.
63024         * lib/stpncpy.c: Likewise.
63025         * lib/strchrnul.c: Likewise.
63026         * lib/strcspn.c: Likewise.
63027         * lib/strerror.c: Likewise.
63028         * lib/strftime.c: Likewise.
63029         * lib/strftime.h: Likewise.
63030         * lib/striconveh.c: Likewise.
63031         * lib/striconveh.h: Likewise.
63032         * lib/striconveha.c: Likewise.
63033         * lib/striconveha.h: Likewise.
63034         * lib/stripslash.c: Likewise.
63035         * lib/strnlen1.c: Likewise.
63036         * lib/strnlen1.h: Likewise.
63037         * lib/strtod.c: Likewise.
63038         * lib/strtoimax.c: Likewise.
63039         * lib/strtok_r.c: Likewise.
63040         * lib/strtol.c: Likewise.
63041         * lib/strtoll.c: Likewise.
63042         * lib/strtoul.c: Likewise.
63043         * lib/strtoull.c: Likewise.
63044         * lib/sysexits.in.h: Likewise.
63045         * lib/tempname.c: Likewise.
63046         * lib/tempname.h: Likewise.
63047         * lib/timespec.h: Likewise.
63048         * lib/tls.c: Likewise.
63049         * lib/tls.h: Likewise.
63050         * lib/tmpdir.c: Likewise.
63051         * lib/tmpdir.h: Likewise.
63052         * lib/tmpfile-safer.c: Likewise.
63053         * lib/tmpfile.c: Likewise.
63054         * lib/trigl.c: Likewise.
63055         * lib/trigl.h: Likewise.
63056         * lib/trim.c: Likewise.
63057         * lib/trim.h: Likewise.
63058         * lib/trunc.c: Likewise.
63059         * lib/truncf.c: Likewise.
63060         * lib/truncl.c: Likewise.
63061         * lib/tsearch.c: Likewise.
63062         * lib/unicodeio.c: Likewise.
63063         * lib/unicodeio.h: Likewise.
63064         * lib/unistd--.h: Likewise.
63065         * lib/unistd-safer.h: Likewise.
63066         * lib/unistdio/ulc-fprintf.c: Likewise.
63067         * lib/unistdio/ulc-vfprintf.c: Likewise.
63068         * lib/unlinkdir.c: Likewise.
63069         * lib/unlinkdir.h: Likewise.
63070         * lib/unlocked-io.h: Likewise.
63071         * lib/unsetenv.c: Likewise.
63072         * lib/userspec.c: Likewise.
63073         * lib/utime.c: Likewise.
63074         * lib/utimecmp.c: Likewise.
63075         * lib/utimecmp.h: Likewise.
63076         * lib/utimens.c: Likewise.
63077         * lib/verify.h: Likewise.
63078         * lib/verror.c: Likewise.
63079         * lib/verror.h: Likewise.
63080         * lib/version-etc-fsf.c: Likewise.
63081         * lib/version-etc.c: Likewise.
63082         * lib/version-etc.h: Likewise.
63083         * lib/vfprintf.c: Likewise.
63084         * lib/vprintf.c: Likewise.
63085         * lib/vsprintf.c: Likewise.
63086         * lib/w32spawn.h: Likewise.
63087         * lib/wait-process.c: Likewise.
63088         * lib/wait-process.h: Likewise.
63089         * lib/wcwidth.c: Likewise.
63090         * lib/write-any-file.c: Likewise.
63091         * lib/xalloc-die.c: Likewise.
63092         * lib/xalloc.h: Likewise.
63093         * lib/xasprintf.c: Likewise.
63094         * lib/xgetcwd.c: Likewise.
63095         * lib/xgetcwd.h: Likewise.
63096         * lib/xgetdomainname.c: Likewise.
63097         * lib/xgetdomainname.h: Likewise.
63098         * lib/xgethostname.c: Likewise.
63099         * lib/xmalloc.c: Likewise.
63100         * lib/xmalloca.c: Likewise.
63101         * lib/xmalloca.h: Likewise.
63102         * lib/xmemcoll.c: Likewise.
63103         * lib/xnanosleep.c: Likewise.
63104         * lib/xreadlink.c: Likewise.
63105         * lib/xreadlink.h: Likewise.
63106         * lib/xsetenv.c: Likewise.
63107         * lib/xsetenv.h: Likewise.
63108         * lib/xstriconv.c: Likewise.
63109         * lib/xstriconv.h: Likewise.
63110         * lib/xstrndup.c: Likewise.
63111         * lib/xstrndup.h: Likewise.
63112         * lib/xstrtod.c: Likewise.
63113         * lib/xstrtod.h: Likewise.
63114         * lib/xstrtol-error.c: Likewise.
63115         * lib/xstrtol.c: Likewise.
63116         * lib/xstrtol.h: Likewise.
63117         * lib/xtime.h: Likewise.
63118         * lib/xvasprintf.c: Likewise.
63119         * lib/xvasprintf.h: Likewise.
63120         * lib/yesno.c: Likewise.
63121         * lib/yesno.h: Likewise.
63122         * posix-modules: Likewise.
63123         * tests/test-alloca-opt.c: Likewise.
63124         * tests/test-arcfour.c: Likewise.
63125         * tests/test-arctwo.c: Likewise.
63126         * tests/test-argmatch.c: Likewise.
63127         * tests/test-argp-2.sh: Likewise.
63128         * tests/test-argp.c: Likewise.
63129         * tests/test-arpa_inet.c: Likewise.
63130         * tests/test-array_list.c: Likewise.
63131         * tests/test-array_oset.c: Likewise.
63132         * tests/test-atexit.c: Likewise.
63133         * tests/test-avltree_list.c: Likewise.
63134         * tests/test-avltree_oset.c: Likewise.
63135         * tests/test-avltreehash_list.c: Likewise.
63136         * tests/test-base64.c: Likewise.
63137         * tests/test-binary-io.c: Likewise.
63138         * tests/test-byteswap.c: Likewise.
63139         * tests/test-c-ctype.c: Likewise.
63140         * tests/test-c-strcasecmp.c: Likewise.
63141         * tests/test-c-strcasestr.c: Likewise.
63142         * tests/test-c-strncasecmp.c: Likewise.
63143         * tests/test-c-strstr.c: Likewise.
63144         * tests/test-canonicalize-lgpl.c: Likewise.
63145         * tests/test-canonicalize.c: Likewise.
63146         * tests/test-carray_list.c: Likewise.
63147         * tests/test-ceilf.c: Likewise.
63148         * tests/test-ceill.c: Likewise.
63149         * tests/test-count-one-bits.c: Likewise.
63150         * tests/test-crc.c: Likewise.
63151         * tests/test-dirname.c: Likewise.
63152         * tests/test-fbufmode.c: Likewise.
63153         * tests/test-fcntl.c: Likewise.
63154         * tests/test-fflush.c: Likewise.
63155         * tests/test-floorf.c: Likewise.
63156         * tests/test-floorl.c: Likewise.
63157         * tests/test-fopen.c: Likewise.
63158         * tests/test-fprintf-posix.c: Likewise.
63159         * tests/test-fprintf-posix.h: Likewise.
63160         * tests/test-fpurge.c: Likewise.
63161         * tests/test-freadable.c: Likewise.
63162         * tests/test-freadahead.c: Likewise.
63163         * tests/test-freading.c: Likewise.
63164         * tests/test-freopen.c: Likewise.
63165         * tests/test-frexp.c: Likewise.
63166         * tests/test-frexpl.c: Likewise.
63167         * tests/test-fseek.c: Likewise.
63168         * tests/test-fseeko.c: Likewise.
63169         * tests/test-fseterr.c: Likewise.
63170         * tests/test-fstrcmp.c: Likewise.
63171         * tests/test-ftell.c: Likewise.
63172         * tests/test-ftello.c: Likewise.
63173         * tests/test-fwritable.c: Likewise.
63174         * tests/test-fwriting.c: Likewise.
63175         * tests/test-getaddrinfo.c: Likewise.
63176         * tests/test-getpass.c: Likewise.
63177         * tests/test-gettimeofday.c: Likewise.
63178         * tests/test-hmac-md5.c: Likewise.
63179         * tests/test-hmac-sha1.c: Likewise.
63180         * tests/test-iconv.c: Likewise.
63181         * tests/test-iconvme.c: Likewise.
63182         * tests/test-inttypes.c: Likewise.
63183         * tests/test-isnan.c: Likewise.
63184         * tests/test-isnanf.c: Likewise.
63185         * tests/test-isnanl-nolibm.c: Likewise.
63186         * tests/test-isnanl.c: Likewise.
63187         * tests/test-isnanl.h: Likewise.
63188         * tests/test-ldexpl.c: Likewise.
63189         * tests/test-linked_list.c: Likewise.
63190         * tests/test-linkedhash_list.c: Likewise.
63191         * tests/test-locale.c: Likewise.
63192         * tests/test-localename.c: Likewise.
63193         * tests/test-lock.c: Likewise.
63194         * tests/test-lseek.c: Likewise.
63195         * tests/test-malloca.c: Likewise.
63196         * tests/test-math.c: Likewise.
63197         * tests/test-mbscasecmp.c: Likewise.
63198         * tests/test-mbscasestr1.c: Likewise.
63199         * tests/test-mbscasestr2.c: Likewise.
63200         * tests/test-mbscasestr3.c: Likewise.
63201         * tests/test-mbscasestr4.c: Likewise.
63202         * tests/test-mbschr.c: Likewise.
63203         * tests/test-mbscspn.c: Likewise.
63204         * tests/test-mbsncasecmp.c: Likewise.
63205         * tests/test-mbspbrk.c: Likewise.
63206         * tests/test-mbspcasecmp.c: Likewise.
63207         * tests/test-mbsrchr.c: Likewise.
63208         * tests/test-mbsspn.c: Likewise.
63209         * tests/test-mbsstr1.c: Likewise.
63210         * tests/test-mbsstr2.c: Likewise.
63211         * tests/test-mbsstr3.c: Likewise.
63212         * tests/test-md5.c: Likewise.
63213         * tests/test-memmem.c: Likewise.
63214         * tests/test-netinet_in.c: Likewise.
63215         * tests/test-open.c: Likewise.
63216         * tests/test-printf-frexp.c: Likewise.
63217         * tests/test-printf-frexpl.c: Likewise.
63218         * tests/test-printf-posix.c: Likewise.
63219         * tests/test-printf-posix.h: Likewise.
63220         * tests/test-rbtree_list.c: Likewise.
63221         * tests/test-rbtree_oset.c: Likewise.
63222         * tests/test-rbtreehash_list.c: Likewise.
63223         * tests/test-read-file.c: Likewise.
63224         * tests/test-rijndael.c: Likewise.
63225         * tests/test-search.c: Likewise.
63226         * tests/test-signbit.c: Likewise.
63227         * tests/test-sleep.c: Likewise.
63228         * tests/test-snprintf-posix.c: Likewise.
63229         * tests/test-snprintf-posix.h: Likewise.
63230         * tests/test-snprintf.c: Likewise.
63231         * tests/test-sprintf-posix.c: Likewise.
63232         * tests/test-sprintf-posix.h: Likewise.
63233         * tests/test-stat-time.c: Likewise.
63234         * tests/test-stdbool.c: Likewise.
63235         * tests/test-stdint.c: Likewise.
63236         * tests/test-stdio.c: Likewise.
63237         * tests/test-stdlib.c: Likewise.
63238         * tests/test-stpncpy.c: Likewise.
63239         * tests/test-strcasestr.c: Likewise.
63240         * tests/test-striconv.c: Likewise.
63241         * tests/test-striconveh.c: Likewise.
63242         * tests/test-striconveha.c: Likewise.
63243         * tests/test-string.c: Likewise.
63244         * tests/test-sys_select.c: Likewise.
63245         * tests/test-sys_socket.c: Likewise.
63246         * tests/test-sys_stat.c: Likewise.
63247         * tests/test-sys_time.c: Likewise.
63248         * tests/test-sysexits.c: Likewise.
63249         * tests/test-time.c: Likewise.
63250         * tests/test-tls.c: Likewise.
63251         * tests/test-trunc.c: Likewise.
63252         * tests/test-truncf.c: Likewise.
63253         * tests/test-truncl.c: Likewise.
63254         * tests/test-unistd.c: Likewise.
63255         * tests/test-vasnprintf-posix.c: Likewise.
63256         * tests/test-vasnprintf-posix2.c: Likewise.
63257         * tests/test-vasnprintf.c: Likewise.
63258         * tests/test-vasprintf-posix.c: Likewise.
63259         * tests/test-vasprintf.c: Likewise.
63260         * tests/test-verify.c: Likewise.
63261         * tests/test-vfprintf-posix.c: Likewise.
63262         * tests/test-vprintf-posix.c: Likewise.
63263         * tests/test-vsnprintf-posix.c: Likewise.
63264         * tests/test-vsnprintf.c: Likewise.
63265         * tests/test-vsprintf-posix.c: Likewise.
63266         * tests/test-wchar.c: Likewise.
63267         * tests/test-wctype.c: Likewise.
63268         * tests/test-wcwidth.c: Likewise.
63269         * tests/test-xstrtol.c: Likewise.
63270         * tests/test-xvasprintf.c: Likewise.
63271         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63272         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63273         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63274         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63275         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63276         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63277         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63278         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63279         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63280         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63281         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63282         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63283         * tests/uniname/test-uninames.c: Likewise.
63284         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63285         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63286         * tests/unistdio/test-u16-printf1.h: Likewise.
63287         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63288         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63289         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63290         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63291         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63292         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63293         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63294         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63295         * tests/unistdio/test-u32-printf1.h: Likewise.
63296         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63297         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63298         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63299         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63300         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63301         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63302         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63303         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63304         * tests/unistdio/test-u8-printf1.h: Likewise.
63305         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63306         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63307         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63308         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63309         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63310         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63311         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63312         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63313         * tests/unistdio/test-ulc-printf1.h: Likewise.
63314         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63315         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63316         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63317         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63318         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63319         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63320         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63321         * tests/uniwidth/test-u16-width.c: Likewise.
63322         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63323         * tests/uniwidth/test-u32-width.c: Likewise.
63324         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63325         * tests/uniwidth/test-u8-width.c: Likewise.
63326         * tests/uniwidth/test-uc_width.c: Likewise.
63327         * config/srclist-update: Likewise.
63328         (fixlicense): Update to GPLv3+.
63329
63330         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63331         * tests/test-tsearch.c: Change copyright notice.
63332
63333         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63334         * lib/c-strcaseeq.h: Change copyright notice.
63335         * lib/streq.h: Likewise.
63336         * lib/uniconv.h: Likewise.
63337         * lib/uniconv/u-conv-from-enc.h: Likewise.
63338         * lib/uniconv/u-conv-to-enc.h: Likewise.
63339         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63340         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63341         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63342         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63343         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63344         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63345         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63346         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63347         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63348         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63349         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63350         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63351         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63352         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63353         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63354         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63355         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63356         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63357         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63358         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63359         * lib/uniname.h: Likewise.
63360         * lib/uniname/uniname.c: Likewise.
63361         * lib/unistdio.h: Likewise.
63362         * lib/unistdio/u-asnprintf.h: Likewise.
63363         * lib/unistdio/u-asprintf.h: Likewise.
63364         * lib/unistdio/u-printf-args.c: Likewise.
63365         * lib/unistdio/u-printf-args.h: Likewise.
63366         * lib/unistdio/u-printf-parse.h: Likewise.
63367         * lib/unistdio/u-snprintf.h: Likewise.
63368         * lib/unistdio/u-sprintf.h: Likewise.
63369         * lib/unistdio/u-vasprintf.h: Likewise.
63370         * lib/unistdio/u-vsnprintf.h: Likewise.
63371         * lib/unistdio/u-vsprintf.h: Likewise.
63372         * lib/unistdio/u16-asnprintf.c: Likewise.
63373         * lib/unistdio/u16-asprintf.c: Likewise.
63374         * lib/unistdio/u16-printf-parse.c: Likewise.
63375         * lib/unistdio/u16-snprintf.c: Likewise.
63376         * lib/unistdio/u16-sprintf.c: Likewise.
63377         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63378         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63379         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63380         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63381         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63382         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63383         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63384         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63385         * lib/unistdio/u16-vasnprintf.c: Likewise.
63386         * lib/unistdio/u16-vasprintf.c: Likewise.
63387         * lib/unistdio/u16-vsnprintf.c: Likewise.
63388         * lib/unistdio/u16-vsprintf.c: Likewise.
63389         * lib/unistdio/u32-asnprintf.c: Likewise.
63390         * lib/unistdio/u32-asprintf.c: Likewise.
63391         * lib/unistdio/u32-printf-parse.c: Likewise.
63392         * lib/unistdio/u32-snprintf.c: Likewise.
63393         * lib/unistdio/u32-sprintf.c: Likewise.
63394         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63395         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63396         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63397         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63398         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63399         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63400         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63401         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63402         * lib/unistdio/u32-vasnprintf.c: Likewise.
63403         * lib/unistdio/u32-vasprintf.c: Likewise.
63404         * lib/unistdio/u32-vsnprintf.c: Likewise.
63405         * lib/unistdio/u32-vsprintf.c: Likewise.
63406         * lib/unistdio/u8-asnprintf.c: Likewise.
63407         * lib/unistdio/u8-asprintf.c: Likewise.
63408         * lib/unistdio/u8-printf-parse.c: Likewise.
63409         * lib/unistdio/u8-snprintf.c: Likewise.
63410         * lib/unistdio/u8-sprintf.c: Likewise.
63411         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63412         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63413         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63414         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63415         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63416         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63417         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63418         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63419         * lib/unistdio/u8-vasnprintf.c: Likewise.
63420         * lib/unistdio/u8-vasprintf.c: Likewise.
63421         * lib/unistdio/u8-vsnprintf.c: Likewise.
63422         * lib/unistdio/u8-vsprintf.c: Likewise.
63423         * lib/unistdio/ulc-asnprintf.c: Likewise.
63424         * lib/unistdio/ulc-asprintf.c: Likewise.
63425         * lib/unistdio/ulc-printf-parse.c: Likewise.
63426         * lib/unistdio/ulc-snprintf.c: Likewise.
63427         * lib/unistdio/ulc-sprintf.c: Likewise.
63428         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63429         * lib/unistdio/ulc-vasprintf.c: Likewise.
63430         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63431         * lib/unistdio/ulc-vsprintf.c: Likewise.
63432         * lib/unistr.h: Likewise.
63433         * lib/unistr/u-cpy-alloc.h: Likewise.
63434         * lib/unistr/u-cpy.h: Likewise.
63435         * lib/unistr/u-endswith.h: Likewise.
63436         * lib/unistr/u-move.h: Likewise.
63437         * lib/unistr/u-set.h: Likewise.
63438         * lib/unistr/u-startswith.h: Likewise.
63439         * lib/unistr/u-stpcpy.h: Likewise.
63440         * lib/unistr/u-stpncpy.h: Likewise.
63441         * lib/unistr/u-strcat.h: Likewise.
63442         * lib/unistr/u-strcpy.h: Likewise.
63443         * lib/unistr/u-strcspn.h: Likewise.
63444         * lib/unistr/u-strdup.h: Likewise.
63445         * lib/unistr/u-strlen.h: Likewise.
63446         * lib/unistr/u-strncat.h: Likewise.
63447         * lib/unistr/u-strncpy.h: Likewise.
63448         * lib/unistr/u-strnlen.h: Likewise.
63449         * lib/unistr/u-strpbrk.h: Likewise.
63450         * lib/unistr/u-strspn.h: Likewise.
63451         * lib/unistr/u-strstr.h: Likewise.
63452         * lib/unistr/u-strtok.h: Likewise.
63453         * lib/unistr/u16-check.c: Likewise.
63454         * lib/unistr/u16-chr.c: Likewise.
63455         * lib/unistr/u16-cmp.c: Likewise.
63456         * lib/unistr/u16-cpy-alloc.c: Likewise.
63457         * lib/unistr/u16-cpy.c: Likewise.
63458         * lib/unistr/u16-endswith.c: Likewise.
63459         * lib/unistr/u16-mblen.c: Likewise.
63460         * lib/unistr/u16-mbsnlen.c: Likewise.
63461         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63462         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63463         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63464         * lib/unistr/u16-mbtouc.c: Likewise.
63465         * lib/unistr/u16-mbtoucr.c: Likewise.
63466         * lib/unistr/u16-move.c: Likewise.
63467         * lib/unistr/u16-next.c: Likewise.
63468         * lib/unistr/u16-prev.c: Likewise.
63469         * lib/unistr/u16-set.c: Likewise.
63470         * lib/unistr/u16-startswith.c: Likewise.
63471         * lib/unistr/u16-stpcpy.c: Likewise.
63472         * lib/unistr/u16-stpncpy.c: Likewise.
63473         * lib/unistr/u16-strcat.c: Likewise.
63474         * lib/unistr/u16-strchr.c: Likewise.
63475         * lib/unistr/u16-strcmp.c: Likewise.
63476         * lib/unistr/u16-strcpy.c: Likewise.
63477         * lib/unistr/u16-strcspn.c: Likewise.
63478         * lib/unistr/u16-strdup.c: Likewise.
63479         * lib/unistr/u16-strlen.c: Likewise.
63480         * lib/unistr/u16-strmblen.c: Likewise.
63481         * lib/unistr/u16-strmbtouc.c: Likewise.
63482         * lib/unistr/u16-strncat.c: Likewise.
63483         * lib/unistr/u16-strncmp.c: Likewise.
63484         * lib/unistr/u16-strncpy.c: Likewise.
63485         * lib/unistr/u16-strnlen.c: Likewise.
63486         * lib/unistr/u16-strpbrk.c: Likewise.
63487         * lib/unistr/u16-strrchr.c: Likewise.
63488         * lib/unistr/u16-strspn.c: Likewise.
63489         * lib/unistr/u16-strstr.c: Likewise.
63490         * lib/unistr/u16-strtok.c: Likewise.
63491         * lib/unistr/u16-to-u32.c: Likewise.
63492         * lib/unistr/u16-to-u8.c: Likewise.
63493         * lib/unistr/u16-uctomb-aux.c: Likewise.
63494         * lib/unistr/u16-uctomb.c: Likewise.
63495         * lib/unistr/u32-check.c: Likewise.
63496         * lib/unistr/u32-chr.c: Likewise.
63497         * lib/unistr/u32-cmp.c: Likewise.
63498         * lib/unistr/u32-cpy-alloc.c: Likewise.
63499         * lib/unistr/u32-cpy.c: Likewise.
63500         * lib/unistr/u32-endswith.c: Likewise.
63501         * lib/unistr/u32-mblen.c: Likewise.
63502         * lib/unistr/u32-mbsnlen.c: Likewise.
63503         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63504         * lib/unistr/u32-mbtouc.c: Likewise.
63505         * lib/unistr/u32-mbtoucr.c: Likewise.
63506         * lib/unistr/u32-move.c: Likewise.
63507         * lib/unistr/u32-next.c: Likewise.
63508         * lib/unistr/u32-prev.c: Likewise.
63509         * lib/unistr/u32-set.c: Likewise.
63510         * lib/unistr/u32-startswith.c: Likewise.
63511         * lib/unistr/u32-stpcpy.c: Likewise.
63512         * lib/unistr/u32-stpncpy.c: Likewise.
63513         * lib/unistr/u32-strcat.c: Likewise.
63514         * lib/unistr/u32-strchr.c: Likewise.
63515         * lib/unistr/u32-strcmp.c: Likewise.
63516         * lib/unistr/u32-strcpy.c: Likewise.
63517         * lib/unistr/u32-strcspn.c: Likewise.
63518         * lib/unistr/u32-strdup.c: Likewise.
63519         * lib/unistr/u32-strlen.c: Likewise.
63520         * lib/unistr/u32-strmblen.c: Likewise.
63521         * lib/unistr/u32-strmbtouc.c: Likewise.
63522         * lib/unistr/u32-strncat.c: Likewise.
63523         * lib/unistr/u32-strncmp.c: Likewise.
63524         * lib/unistr/u32-strncpy.c: Likewise.
63525         * lib/unistr/u32-strnlen.c: Likewise.
63526         * lib/unistr/u32-strpbrk.c: Likewise.
63527         * lib/unistr/u32-strrchr.c: Likewise.
63528         * lib/unistr/u32-strspn.c: Likewise.
63529         * lib/unistr/u32-strstr.c: Likewise.
63530         * lib/unistr/u32-strtok.c: Likewise.
63531         * lib/unistr/u32-to-u16.c: Likewise.
63532         * lib/unistr/u32-to-u8.c: Likewise.
63533         * lib/unistr/u32-uctomb.c: Likewise.
63534         * lib/unistr/u8-check.c: Likewise.
63535         * lib/unistr/u8-chr.c: Likewise.
63536         * lib/unistr/u8-cmp.c: Likewise.
63537         * lib/unistr/u8-cpy-alloc.c: Likewise.
63538         * lib/unistr/u8-cpy.c: Likewise.
63539         * lib/unistr/u8-endswith.c: Likewise.
63540         * lib/unistr/u8-mblen.c: Likewise.
63541         * lib/unistr/u8-mbsnlen.c: Likewise.
63542         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63543         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63544         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63545         * lib/unistr/u8-mbtouc.c: Likewise.
63546         * lib/unistr/u8-mbtoucr.c: Likewise.
63547         * lib/unistr/u8-move.c: Likewise.
63548         * lib/unistr/u8-next.c: Likewise.
63549         * lib/unistr/u8-prev.c: Likewise.
63550         * lib/unistr/u8-set.c: Likewise.
63551         * lib/unistr/u8-startswith.c: Likewise.
63552         * lib/unistr/u8-stpcpy.c: Likewise.
63553         * lib/unistr/u8-stpncpy.c: Likewise.
63554         * lib/unistr/u8-strcat.c: Likewise.
63555         * lib/unistr/u8-strchr.c: Likewise.
63556         * lib/unistr/u8-strcmp.c: Likewise.
63557         * lib/unistr/u8-strcpy.c: Likewise.
63558         * lib/unistr/u8-strcspn.c: Likewise.
63559         * lib/unistr/u8-strdup.c: Likewise.
63560         * lib/unistr/u8-strlen.c: Likewise.
63561         * lib/unistr/u8-strmblen.c: Likewise.
63562         * lib/unistr/u8-strmbtouc.c: Likewise.
63563         * lib/unistr/u8-strncat.c: Likewise.
63564         * lib/unistr/u8-strncmp.c: Likewise.
63565         * lib/unistr/u8-strncpy.c: Likewise.
63566         * lib/unistr/u8-strnlen.c: Likewise.
63567         * lib/unistr/u8-strpbrk.c: Likewise.
63568         * lib/unistr/u8-strrchr.c: Likewise.
63569         * lib/unistr/u8-strspn.c: Likewise.
63570         * lib/unistr/u8-strstr.c: Likewise.
63571         * lib/unistr/u8-strtok.c: Likewise.
63572         * lib/unistr/u8-to-u16.c: Likewise.
63573         * lib/unistr/u8-to-u32.c: Likewise.
63574         * lib/unistr/u8-uctomb-aux.c: Likewise.
63575         * lib/unistr/u8-uctomb.c: Likewise.
63576         * lib/unitypes.h: Likewise.
63577         * lib/uniwidth.h: Likewise.
63578         * lib/uniwidth/cjk.h: Likewise.
63579         * lib/uniwidth/u16-strwidth.c: Likewise.
63580         * lib/uniwidth/u16-width.c: Likewise.
63581         * lib/uniwidth/u32-strwidth.c: Likewise.
63582         * lib/uniwidth/u32-width.c: Likewise.
63583         * lib/uniwidth/u8-strwidth.c: Likewise.
63584         * lib/uniwidth/u8-width.c: Likewise.
63585         * lib/uniwidth/width.c: Likewise.
63586
63587 2007-10-07  Bruno Haible  <bruno@clisp.org>
63588
63589         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63590         The file is still under LGPL (see modules/inttypes).
63591
63592 2007-10-06  Bruno Haible  <bruno@clisp.org>
63593
63594         * modules/trunc (Dependencies): Add 'extensions'.
63595         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63596         Reported by Ben Pfaff <blp@gnu.org>.
63597
63598 2007-10-06  Bruno Haible  <bruno@clisp.org>
63599
63600         * modules/freopen-tests: New file.
63601         * tests/test-freopen.c: New file.
63602
63603         * modules/fopen-tests: New file.
63604         * tests/test-fopen.c: New file.
63605
63606         * modules/fopen: New file.
63607         * lib/fopen.c: New file.
63608         * m4/fopen.m4: New file.
63609         * modules/freopen: New file.
63610         * lib/freopen.c: New file.
63611         * m4/freopen.m4: New file.
63612         * lib/stdio.in.h (fopen, freopen): New declarations.
63613         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63614         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63615         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63616         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63617         * doc/functions/fopen.texi: Mention the 'fopen' module.
63618         * doc/functions/freopen.texi: Mention the 'freopen' module.
63619
63620 2007-10-06  Bruno Haible  <bruno@clisp.org>
63621
63622         * modules/open-tests: New file.
63623         * tests/test-open.c: New file.
63624
63625         * modules/open: New file.
63626         * lib/open.c: New file.
63627         * m4/open.m4: New file.
63628         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63629         lib/open.c does.
63630         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63631         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63632         macros.
63633         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63634         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63635         REPLACE_OPEN.
63636         * doc/functions/open.texi: Mention the 'open' module.
63637
63638 2007-10-04  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/ceill-tests: New file.
63641         * tests/test-ceill.c: New file.
63642
63643         * modules/ceill: New file.
63644         * lib/ceill.c: Replace entire file.
63645         * m4/ceill.m4: New file.
63646         * lib/math.in.h (ceill): Replace declaration.
63647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63648         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63649         * doc/functions/ceill.texi: Mention the 'ceill' module.
63650         * modules/mathl (Files): Remove lib/ceill.c.
63651         (Depends-on): Add ceill.
63652
63653 2007-10-04  Bruno Haible  <bruno@clisp.org>
63654
63655         * modules/ceilf-tests: New file.
63656         * tests/test-ceilf.c: New file.
63657
63658         * modules/ceilf: New file.
63659         * lib/ceil.c: New file.
63660         * lib/ceilf.c: New file.
63661         * m4/ceilf.m4: New file.
63662         * lib/math.in.h (ceilf): New declaration.
63663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63664         HAVE_DECL_CEILF.
63665         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63666         HAVE_DECL_CEILF.
63667         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63668
63669 2007-10-04  Bruno Haible  <bruno@clisp.org>
63670
63671         * modules/floorl-tests: New file.
63672         * tests/test-floorl.c: New file.
63673
63674         * modules/floorl: New file.
63675         * lib/floorl.c: Replace entire file.
63676         * m4/floorl.m4: New file.
63677         * lib/math.in.h (floorl): Replace declaration.
63678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63679         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63680         * doc/functions/floorl.texi: Mention the 'floorl' module.
63681         * modules/mathl (Files): Remove lib/floorl.c.
63682         (Depends-on): Add floorl.
63683
63684 2007-10-04  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/floorf-tests: New file.
63687         * tests/test-floorf.c: New file.
63688
63689         * modules/floorf: New file.
63690         * lib/floor.c: New file.
63691         * lib/floorf.c: New file.
63692         * m4/floorf.m4: New file.
63693         * lib/math.in.h (floorf): New declaration.
63694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63695         HAVE_DECL_FLOORF.
63696         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63697         HAVE_DECL_FLOORF.
63698         * doc/functions/floorf.texi: Mention the 'floorf' module.
63699
63700 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63701             Bruno Haible  <bruno@clisp.org>
63702
63703         Advertise for the Git server instead of the CVS server.
63704         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63705         repository instead of the CVS one.
63706         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63707         about all VCS systems generically.
63708         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63709
63710 2007-10-04  Bruno Haible  <bruno@clisp.org>
63711
63712         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63713         means.
63714         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63715
63716 2007-10-04  Bruno Haible  <bruno@clisp.org>
63717
63718         * modules/truncl-tests: New file.
63719         * tests/test-truncl.c: New file.
63720
63721         * modules/truncl: New file.
63722         * lib/truncl.c: New file.
63723         * m4/truncl.m4: New file.
63724         * lib/math.in.h (truncl): New declaration.
63725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63726         HAVE_DECL_TRUNCL.
63727         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63728         HAVE_DECL_TRUNCL.
63729         * doc/functions/truncl.texi: Mention the 'truncl' module.
63730
63731 2007-10-04  Bruno Haible  <bruno@clisp.org>
63732
63733         * modules/truncf-tests: New file.
63734         * tests/test-truncf.c: New file.
63735
63736         * modules/truncf: New file.
63737         * lib/trunc.c: Make paramerizable through USE_* macros.
63738         * lib/truncf.c: New file.
63739         * m4/truncf.m4: New file.
63740         * lib/math.in.h (truncf): New declaration.
63741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63742         HAVE_DECL_TRUNCF.
63743         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63744         HAVE_DECL_TRUNCF.
63745         * doc/functions/truncf.texi: Mention the 'truncf' module.
63746
63747 2007-10-03  Bruno Haible  <bruno@clisp.org>
63748
63749         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63750         augmentation also for tests modules.
63751         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63752         * modules/atexit-tests (Makefile.am): Likewise.
63753         * modules/binary-io-tests (Makefile.am): Likewise.
63754         * modules/c-strcase-tests (Makefile.am): Likewise.
63755         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63756         * modules/canonicalize-tests (Makefile.am): Likewise.
63757         * modules/closein-tests (Makefile.am): Likewise.
63758         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63759         * modules/freadahead-tests (Makefile.am): Likewise.
63760         * modules/fseek-tests (Makefile.am): Likewise.
63761         * modules/fseeko-tests (Makefile.am): Likewise.
63762         * modules/ftell-tests (Makefile.am): Likewise.
63763         * modules/ftello-tests (Makefile.am): Likewise.
63764         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63765         * modules/isnanl-tests (Makefile.am): Likewise.
63766         * modules/lseek-tests (Makefile.am): Likewise.
63767         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63768         * modules/mbscasestr-tests (Makefile.am): Likewise.
63769         * modules/mbschr-tests (Makefile.am): Likewise.
63770         * modules/mbscspn-tests (Makefile.am): Likewise.
63771         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63772         * modules/mbspbrk-tests (Makefile.am): Likewise.
63773         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63774         * modules/mbsrchr-tests (Makefile.am): Likewise.
63775         * modules/mbsspn-tests (Makefile.am): Likewise.
63776         * modules/mbsstr-tests (Makefile.am): Likewise.
63777         * modules/printf-posix-tests (Makefile.am): Likewise.
63778         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63779         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63780         * modules/tsearch-tests (Makefile.am): Likewise.
63781         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63782         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63783         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63784         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63785         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63786         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63787         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63788         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63789         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63790         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63791         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63792         * modules/xstrtol-tests (Makefile.am): Likewise.
63793         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63794         * modules/yesno-tests (Makefile.am): Likewise.
63795
63796 2007-10-03  Bruno Haible  <bruno@clisp.org>
63797
63798         * modules/trunc-tests: New file.
63799         * tests/test-trunc.c: New file.
63800
63801         * modules/trunc: New file.
63802         * lib/trunc.c: New file.
63803         * m4/trunc.m4: New file.
63804         * lib/math.in.h (trunc): New declaration.
63805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63806         HAVE_DECL_TRUNC.
63807         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63808         HAVE_DECL_TRUNC.
63809         * doc/functions/trunc.texi: Mention the 'trunc' module.
63810
63811 2007-10-03  Bruno Haible  <bruno@clisp.org>
63812
63813         * tests/test-fpending.c: New file, mostly copied
63814         from coreutils/lib/t-fpending.c.
63815         * modules/fpending-tests: New file.
63816
63817 2007-10-03  Bruno Haible  <bruno@clisp.org>
63818
63819         Port the stdio extensions to QNX (untested).
63820         * lib/fseterr.c (fseterr): Add support for QNX.
63821         * lib/fbufmode.c (fbufmode): Likewise.
63822         * lib/freadable.c (freadable): Likewise.
63823         * lib/fwritable.c (fwritable): Likewise.
63824         * lib/freading.c (freading): Likewise.
63825         * lib/fwriting.c (fwriting): Likewise.
63826         * lib/freadahead.c (freadahed): Likewise.
63827         * lib/fpurge.c (fpurge): Likewise.
63828         * lib/fseeko.c (rpl_fseeko): Likewise.
63829
63830 2007-10-03  Bruno Haible  <bruno@clisp.org>
63831             Jim Meyering  <jim@meyering.net>
63832             Eric Blake  <ebb9@byu.net>
63833
63834         * doc/relocatable.texi: Use @command instead of @program.
63835
63836 2007-10-02  Jim Meyering  <jim@meyering.net>
63837
63838         Perform one more "_.h" -> ".in.h" substitution.
63839         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
63840         instead of unistd_.h here, too.
63841
63842 2007-10-01  Bruno Haible  <bruno@clisp.org>
63843
63844         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
63845         Needed for the alloca-opt module.
63846
63847 2007-09-30  Bruno Haible  <bruno@clisp.org>
63848
63849         * lib/alloca.in.h: Renamed from lib/alloca_.h.
63850         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
63851         alloca_.h.
63852         * lib/argz.in.h: Renamed from lib/argz_.h.
63853         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
63854         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
63855         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
63856         byteswap_.h.
63857         * lib/dirent.in.h: Renamed from lib/dirent_.h.
63858         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
63859         dirent_.h.
63860         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
63861         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
63862         fcntl_.h.
63863         * lib/float.in.h: Renamed from lib/float_.h.
63864         * modules/float (Files, Makefile.am): Use float.in.h instead of
63865         float_.h.
63866         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
63867         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
63868         fnmatch_.h.
63869         * lib/getopt.in.h: Renamed from lib/getopt_.h.
63870         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
63871         getopt_.h.
63872         * lib/glob.in.h: Renamed from lib/glob_.h.
63873         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
63874         * lib/iconv.in.h: Renamed from lib/iconv_.h.
63875         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
63876         iconv_.h.
63877         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
63878         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
63879         inttypes_.h.
63880         * lib/locale.in.h: Renamed from lib/locale_.h.
63881         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
63882         locale_.h.
63883         * lib/math.in.h: Renamed from lib/math_.h.
63884         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
63885         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
63886         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
63887         of netinet_in_.h. Add dependency.
63888         * lib/poll.in.h: Renamed from lib/poll_.h.
63889         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
63890         * lib/search.in.h: Renamed from lib/search_.h.
63891         * modules/search (Files, Makefile.am): Use search.in.h instead of
63892         search_.h.
63893         * lib/signal.in.h: Renamed from lib/signal_.h.
63894         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
63895         _signal.h.
63896         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
63897         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
63898         stdbool_.h.
63899         * lib/stdint.in.h: Renamed from lib/stdint_.h.
63900         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
63901         stdint_.h.
63902         * lib/stdio.in.h: Renamed from lib/stdio_.h.
63903         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
63904         stdio_.h.
63905         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
63906         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
63907         stdlib_.h.
63908         * lib/string.in.h: Renamed from lib/string_.h.
63909         * modules/string (Files, Makefile.am): Use string.in.h instead of
63910         string_.h.
63911         * doc/gnulib-tool.texi (Initial import): Update.
63912         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
63913         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
63914         of sys_select_.h. Add dependency.
63915         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
63916         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
63917         of sys_socket_.h.
63918         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
63919         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
63920         sys_stat_.h.
63921         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
63922         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
63923         sys_time_.h.
63924         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
63925         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
63926         sysexits_.h.
63927         * lib/time.in.h: Renamed from lib/time_.h.
63928         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
63929         * lib/unistd.in.h: Renamed from lib/unistd_.h.
63930         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
63931         unistd_.h.
63932         * lib/wchar.in.h: Renamed from lib/wchar_.h.
63933         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
63934         wchar_.h.
63935         * lib/wctype.in.h: Renamed from lib/wctype_.h.
63936         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
63937         wctype_.h.
63938         * build-aux/bootstrap (slurp): Update.
63939         * lib/.cppi-disable: Update.
63940
63941 2007-09-30  Bruno Haible  <bruno@clisp.org>
63942
63943         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
63944         Needed on BeOS.
63945
63946 2007-09-30  Bruno Haible  <bruno@clisp.org>
63947
63948         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63949
63950 2007-09-29  Bruno Haible  <bruno@clisp.org>
63951
63952         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63953
63954 2007-09-29  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63957         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63958         * build-aux/install-reloc: Compile also areadlink.c.
63959         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63960
63961 2007-09-29  Bruno Haible  <bruno@clisp.org>
63962
63963         * gnulib-tool (func_emit_initmacro_done): Indentation.
63964
63965 2007-09-29  Bruno Haible  <bruno@clisp.org>
63966
63967         * README: Add CVS checkout update instructions.
63968         Info from Bob Proulx <bob@proulx.com>.
63969
63970 2007-09-28  Eric Blake  <ebb9@byu.net>
63971
63972         Provide move-if-change.
63973         * build-aux/move-if-change: New file, based on best practice
63974         rather than any canonical upstream location.
63975
63976 2007-09-28  Jim Meyering  <jim@meyering.net>
63977
63978         Fix canonicalize loop-detection corner case.
63979         Do not attempt to stat the symlink values stored via seen_triple.
63980         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63981         on linux-2.6.18, (but not 2.6.22).
63982         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63983         triple_compare.  The former compares dev,ino,filename, while the latter
63984         would actually stat dirname(filename) when dev and ino were equal.
63985         * lib/hash-triple.c: Install <string.h>.
63986         (STREQ): Define.
63987         (triple_compare_ino_str): New function.
63988         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63989
63990 2007-09-28  Eric Blake  <ebb9@byu.net>
63991
63992         Enforce that AC_REPLACE_FUNCS files exist.
63993         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63994         override check for typos.
63995
63996         Fix test-closein on Solaris 10.
63997         * tests/test-closein.c (main): Don't assume stdin can be inherited
63998         closed on all systems.
63999         * tests/test-closein.sh: Likewise.
64000         Reported by Piotr Tarnowski.
64001
64002 2007-09-28  Jim Meyering  <jim@meyering.net>
64003
64004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64005
64006 2007-09-27  Jim Meyering  <jim@meyering.net>
64007
64008         canonicalize: Avoid a false-positive cycle failure.
64009         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64010         Sort.  Remove cycle-check.
64011         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64012         not cycle-check.h.
64013         (seen_triple): New function.
64014         (canonicalize_filename_mode): Use it instead of cycle-check.
64015         * tests/test-canonicalize.c: Add a test for this bug.
64016         * tests/test-canonicalize.sh: Set up and run the test.
64017
64018         New module, file-set, from coreutils.
64019         * modules/file-set: Define it.
64020         * lib/file-set.c, lib/file-set.h: Implement.
64021
64022         New module, hash-triple, from coreutils.
64023         * modules/hash-triple: Define it.
64024         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64025
64026 2007-09-25  Eric Blake  <ebb9@byu.net>
64027
64028         Fix strerror on Interix.
64029         * lib/string_.h (strerror): Declare replacement.
64030         * doc/functions/strerror.texi (strerror): Document the Interix
64031         shortcoming.
64032         * modules/string (Makefile.am): Support new hooks.
64033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64034         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64035         gl_FUNC_STRERROR_SEPARATE.
64036         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64037         * lib/strerror.c (rpl_strerror): Provide replacement.
64038         * modules/strerror (Depends-on): Add string.
64039         (configure.ac): Detect use of module.
64040         * tests/test-strerror.c: New file.
64041         * modules/strerror-tests: New test module.
64042         * modules/argp (Depends-on): Add strerror.
64043         * modules/error (Depends-on): Likewise.
64044         Reported by Martin Koeppe.
64045
64046 2007-09-24  Bruno Haible  <bruno@clisp.org>
64047
64048         * README: Update git instructions.
64049
64050 2007-09-24  Eric Blake  <ebb9@byu.net>
64051
64052         Revert fpending breakage from 2007-09-08.
64053         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64054         __fpending.c.
64055
64056 2007-09-24  Jim Meyering  <jim@meyering.net>
64057
64058         filenamecat.c: Add a test.
64059         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64060         showing how the function works when DIR is the empty string.
64061
64062 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64063
64064         * tests/test-canonicalize.sh: Turn on executable bit.
64065
64066 2007-09-19  Eric Blake  <ebb9@byu.net>
64067
64068         * README: Update CVS instructions.
64069
64070 2007-09-18  Bruno Haible  <bruno@clisp.org>
64071
64072         * modules/areadlink: New file.
64073         * lib/areadlink.h (areadlink): New declaration.
64074         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64075
64076 2007-09-17  Jim Meyering  <jim@meyering.net>
64077
64078         * lib/savewd.c (ESTALE) [!defined]: Define.
64079         Reported to be required on Interix by Martin Koeppe.
64080
64081 2007-09-17  Bruno Haible  <bruno@clisp.org>
64082
64083         * gnulib-tool (func_version): Use $version.
64084
64085 2007-09-16  Bruno Haible  <bruno@clisp.org>
64086
64087         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64088         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64089         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64090         Reported by Greg Schafer <gschafer@zip.com.au>.
64091
64092 2007-09-15  Bruno Haible  <bruno@clisp.org>
64093
64094         * gnulib-tool (sed): Try a little harder to make bash understand the
64095         alias.
64096         Reported by Bruce Korb <bruce.korb@gmail.com>.
64097
64098 2007-09-13  Eric Blake  <ebb9@byu.net>
64099
64100         * ChangeLog: Remove conflict markers.
64101
64102 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64103
64104         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64105         Reported by Bruno Haible <bruno@clisp.org>.
64106
64107 2007-09-12  Bruno Haible  <bruno@clisp.org>
64108
64109         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64110         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64111         is not defined.
64112
64113 2007-09-12  Eric Blake  <ebb9@byu.net>
64114
64115         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64116         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64117         Autoconf definition.
64118         * modules/euidaccess (Depends-on): Add extensions, for
64119         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64120         * modules/fnmatch (Depends-on): Likewise.
64121         * modules/getaddrinfo (Depends-on): Likewise.
64122         * modules/getdelim (Depends-on): Likewise.
64123         * modules/getline (Depends-on): Likewise.
64124         * modules/getsubopt (Depends-on): Likewise.
64125         * modules/gettext (Depends-on): Likewise.
64126         * modules/group-member (Depends-on): Likewise.
64127         * modules/mbchar (Depends-on): Likewise.
64128         * modules/memmem (Depends-on): Likewise.
64129         * modules/mempcpy (Depends-on): Likewise.
64130         * modules/memrchr (Depends-on): Likewise.
64131         * modules/pagealign_alloc (Depends-on): Likewise.
64132         * modules/readutmp (Depends-on): Likewise.
64133         * modules/stpcpy (Depends-on): Likewise.
64134         * modules/stpncpy (Depends-on): Likewise.
64135         * modules/strchrnul (Depends-on): Likewise.
64136         * modules/strndup (Depends-on): Likewise.
64137         * modules/strsep (Depends-on): Likewise.
64138         * modules/strverscmp (Depends-on): Likewise.
64139         * modules/vasprintf (Depends-on): Likewise.
64140         * modules/wcwidth (Depends-on): Likewise.
64141         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64142         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64143         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64144         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64146         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64147         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64148         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64149         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64150         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64154         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64155         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64156         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64157         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64158         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64160         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64162         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64163         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64164         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64165         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64166         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64167         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64168         so that lock.m4 can be used in gettext without extensions module.
64169
64170 2007-09-11  Bruno Haible  <bruno@clisp.org>
64171
64172         * m4/isc-posix.m4: Remove file.
64173         Suggested by Eric Blake.
64174
64175 2007-09-11  Eric Blake  <ebb9@byu.net>
64176
64177         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64178
64179 2007-09-10  Bruno Haible  <bruno@clisp.org>
64180
64181         * posix-modules: Fix typo in error message.
64182         Reported by Matt <mkraai@beckman.com>.
64183
64184 2007-09-09  Bruno Haible  <bruno@clisp.org>
64185
64186         * doc/functions/getdelim.texi: Update list of platforms lacking the
64187         function.
64188         * doc/functions/getline.texi: Likewise.
64189
64190 2007-09-09  Jim Meyering  <jim@meyering.net>
64191
64192         * lib/hash.c (hash_initialize): Detect calloc failure.
64193         Reported by Bruno Haible.
64194
64195 2007-09-09  Bruno Haible  <bruno@clisp.org>
64196
64197         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64198         malloc or realloc fails.
64199
64200 2007-09-09  Bruno Haible  <bruno@clisp.org>
64201
64202         * modules/getcwd (Depends-on): Add malloc-posix.
64203         * modules/glob (Depends-on): Likewise.
64204         * modules/putenv (Depends-on): Likewise.
64205         * modules/strdup (Depends-on): Likewise.
64206         * modules/getdelim (Depends-on): Add realloc-posix.
64207         * modules/read-file (Depends-on): Likewise.
64208
64209 2007-09-09  Bruno Haible  <bruno@clisp.org>
64210
64211         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64212         (gl_FUNC_MALLOC_POSIX): Require it.
64213         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64214         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64215         * modules/realloc (Files): Add m4/malloc.m4.
64216         * modules/calloc (Files): Likewise.
64217
64218 2007-09-09  Bruno Haible  <bruno@clisp.org>
64219
64220         * modules/malloc-posix: New file.
64221         * modules/malloc (Depends-on): Add malloc-posix.
64222         * lib/malloc.c: Include errno.h.
64223         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64224         and a POSIX-compatible malloc into a single function. Set ENOMEM
64225         when returning NULL.
64226         * m4/malloc.m4: New file.
64227         * doc/functions/malloc.texi: Mention the malloc-posix module.
64228         * lib/stdlib_.h (malloc): New declaration.
64229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64230         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64231         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64232         and HAVE_MALLOC_POSIX.
64233
64234 2007-09-09  Bruno Haible  <bruno@clisp.org>
64235
64236         * modules/realloc-posix: New file.
64237         * modules/realloc (Depends-on): Add realloc-posix.
64238         * lib/realloc.c: Include errno.h.
64239         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64240         and a POSIX-compatible realloc into a single function. Set ENOMEM
64241         when returning NULL.
64242         * m4/realloc.m4: New file.
64243         * doc/functions/realloc.texi: Mention the realloc-posix module.
64244         * lib/stdlib_.h (realloc): New declaration.
64245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64246         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64247         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64248         and HAVE_REALLOC_POSIX.
64249
64250 2007-09-09  Bruno Haible  <bruno@clisp.org>
64251
64252         * modules/calloc-posix: New file.
64253         * modules/calloc (Depends-on): Add calloc-posix.
64254         * lib/calloc.c: Include errno.h.
64255         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64256         and a POSIX-compatible calloc into a single function. Set ENOMEM
64257         when returning NULL.
64258         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64259         * doc/functions/calloc.texi: Mention the calloc-posix module.
64260         * lib/stdlib_.h (calloc): New declaration.
64261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64262         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64263         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64264         and HAVE_CALLOC_POSIX.
64265
64266 2007-09-09  Bruno Haible  <bruno@clisp.org>
64267
64268         Allow for modules to show an arbitrary notice.
64269         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64270         * gnulib-tool: New option --extract-notice.
64271         (func_usage): Document it.
64272         (sed_extract_prog): Update.
64273         (func_get_notice): New function.
64274         (func_modules_notice): New function.
64275         (func_import, func_create_testdir): Invoke it.
64276         Suggested by Jim Meyering.
64277
64278 2007-09-09  Bruno Haible  <bruno@clisp.org>
64279
64280         * gnulib-tool: New options --verbose, --quiet.
64281         (func_usage): Document them.
64282         (verbose): New variable.
64283         (func_execute_command): New function.
64284         (func_import): Don't show the module list and the file list if
64285         $verbose < 0.
64286         (func_create_testdir): Likewise. Use func_execute_command.
64287         (func_create_megatestdir): Use func_execute_command.
64288
64289 2007-09-08  Bruno Haible  <bruno@clisp.org>
64290
64291         * gnulib-tool (func_import): Prefer rsync over wget when available,
64292         for fetching the PO files.
64293
64294 2007-09-08  Bruno Haible  <bruno@clisp.org>
64295
64296         * posix-modules: New file. Portions copied from gnulib-tool.
64297         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64298
64299 2007-09-08  Jim Meyering  <jim@meyering.net>
64300
64301         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64302         * lib/fpending.h: Rename from __fpending.h.
64303         * lib/fpending.c: Rename from __fpending.c.
64304         Include "fpending.h", not "__fpending.h".
64305         * lib/__fpending.h, lib/__fpending.c: Remove files.
64306         * modules/fpending (Files): Reflect new file names.
64307         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64308
64309 2007-09-08  Bruno Haible  <bruno@clisp.org>
64310
64311         * m4/inttypes-h.m4: Remove stub file.
64312
64313 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64314
64315         * doc/headers/stdint.texi: Discuss #include_next issue.
64316
64317 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64318
64319         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64320
64321 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64322
64323         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64324         in variable name.
64325
64326 2007-09-03  Jim Meyering  <jim@meyering.net>
64327
64328         New module: git-version-gen.
64329         * modules/git-version-gen: New file.
64330
64331         Import changes from coreutils for bootstrap script.
64332
64333         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64334
64335         bootstrap: uses rsync to download the .po files
64336         * build-aux/bootstrap (po_download_command_format): New global.
64337         (download_po_files): Use rsync.
64338         (update_po_files): Don't remove .po files after download,
64339         so future rsync runs can take advantage of the copies.
64340
64341         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64342
64343         Solve the unnecessary-.po-file-regeneration problem once and for all.
64344         * build-aux/bootstrap (download_po_files): New function, renamed from
64345         get_translations.  Now, downloads, but doesn't update LINGUAS.
64346         (update_po_files): New function.
64347
64348         bootstrap: Ignore more.
64349         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64350         uniwidth to e.g., lib/.gitignore.
64351         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64352
64353         * build-aux/bootstrap: New setting: vc_ignore.
64354         (insert_sorted_if_absent): Create $file if absent.
64355         Adapt to new, possibly empty, list: $vc_ignore.
64356
64357         bootstrap: generate more ignorable names
64358         * build-aux/bootstrap (slurp): When generating ignorable names,
64359         also map .sin to .sed, .gperf to .c, and .y to .c.
64360
64361 2007-09-03  Jim Meyering  <jim@meyering.net>
64362
64363         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64364         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64365
64366 2007-09-02  Bruno Haible  <bruno@clisp.org>
64367
64368         Fix mis-recognition of 'mcs' on QNX 6.
64369         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64370         output contains the string "Mono".
64371         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64372         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64373
64374 2007-09-01  Bruno Haible  <bruno@clisp.org>
64375
64376         Fix collision between uniwidth/* and linebreak modules.
64377         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64378         u32_width): Remove declarations.
64379         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64380         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64381         streq3, streq2, streq1, streq0): Remove functions.
64382         (STREQ): Remove macro.
64383         (is_cjk_encoding): Remove function.
64384         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64385         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64386         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64387         * NEWS: Document the change.
64388
64389 2007-09-01  Bruno Haible  <bruno@clisp.org>
64390
64391         * lib/streq.h: Add double-inclusion guard.
64392
64393 2007-09-01  Karl Berry  <karl@gnu.org>
64394
64395         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64396
64397 2007-08-28  Jim Meyering  <jim@meyering.net>
64398
64399         Rename mreadlink_with_size to areadlink_with_size.
64400         * NEWS: Document the change.
64401         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64402         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64403         * lib/mreadlink.h: Rename this to...
64404         * lib/areadlink.h: ...this.
64405         * modules/mreadlink-with-size: Rename this to...
64406         * modules/areadlink-with-size: ...this.
64407         * lib/canonicalize.c: Reflect the renaming.
64408         * modules/canonicalize: Likewise.
64409
64410 2007-08-26  Bruno Haible  <bruno@clisp.org>
64411
64412         * gnulib-tool (func_import): When deciding which files to remove,
64413         consider also dangling symbolic links.
64414         Reported by Eric Blake.
64415
64416 2007-08-26  Bruno Haible  <bruno@clisp.org>
64417
64418         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64419
64420 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64421
64422         * lib/readline.c: Don't include getline.h, the prototype is now
64423         found in stdio.h.
64424
64425 2007-08-23  Jim Meyering  <jim@meyering.net>
64426
64427         Getdelim touchup.
64428         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64429         around the funlockfile call, since funlockfile never sets errno.
64430         Don't set errno upon failed realloc.
64431
64432 2007-08-22  Eric Blake  <ebb9@byu.net>
64433
64434         Getline touchups.
64435         * lib/getdelim.c (getdelim): Revert regression that required *n to
64436         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64437         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64438         getdelim, rather than whether implementation is missing.
64439         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64440         * lib/stdio_.h (getline): Also declare if replacement is
64441         required.
64442         * doc/functions/getdelim.texi: New file.
64443         * doc/functions/getline.texi: Likewise.
64444         * doc/gnulib.texi (Function Substitutes): Add new files.
64445         Reported by Bruno Haible.
64446
64447 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64448
64449         * users.txt: Add Guile.
64450
64451 2007-08-22  Eric Blake  <ebb9@byu.net>
64452
64453         * tests/test-getdelim.c (main): Use remove, not unlink.
64454         * tests/test-getline.c (main): Likewise.
64455
64456         Move getline and getdelim into stdio.h, per POSIX 200x.
64457         * modules/getline (Files): Remove getline.h.
64458         (Depends-on): Add stdio.
64459         (configure.ac): Add module indicator.
64460         * modules/getdelim (Files): Remove getdelim.h.
64461         (Depends-on): Add stdio.
64462         (configure.ac): Add module indicator.
64463         * modules/stdio (Makefile.am): Work with new indicators.
64464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64465         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64466         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64467         * lib/getdelim.h: Delete.
64468         * lib/getline.h: Delete.
64469         * lib/stdio_.h (getdelim, getline): Declare.
64470         * modules/getdelim-tests: New module.
64471         * modules/getline-tests: Likewise.
64472         * tests/test-getdelim.c: New file.
64473         * tests/test-getline.c: Likewise.
64474         * NEWS: Document the change.
64475         * lib/getline.c: Update choice of header.
64476         * lib/csharpcomp.c: Likewise.
64477         * lib/getpass.c: Likewise.
64478         * lib/javacomp.c: Likewise.
64479         * lib/javaversion.c: Likewise.
64480         * lib/yesno.c: Likewise.
64481         * lib/getdelim.c: Likewise.
64482         (getdelim): Set errno on failure, and avoid memory leak.
64483
64484 2007-08-19  Bruno Haible  <bruno@clisp.org>
64485
64486         * modules/closein (Depends-on): Add freadahead.
64487         * lib/closein.c: Include freadahead.h.
64488         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64489         is zero.
64490
64491 2007-08-19  Bruno Haible  <bruno@clisp.org>
64492
64493         * modules/freadahead-tests: New file.
64494         * tests/test-freadahead.sh: New file.
64495         * tests/test-freadahead.c: New file.
64496
64497         * modules/freadahead: New file.
64498         * lib/freadahead.h: New file.
64499         * lib/freadahead.c: New file.
64500         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64501         fbufmode, fpurge, freadable, fwritable.
64502
64503 2007-08-19  Eric Blake  <ebb9@byu.net>
64504
64505         Test yesno in combination with closein.
64506         * lib/yesno.c (yesno): Document use of stdin.
64507         * modules/yesno-tests (Files): New module.
64508         * tests/test-yesno.c (main): New file.
64509         * tests/test-yesno.sh: Likewise.
64510
64511 2007-08-19  Bruno Haible  <bruno@clisp.org>
64512
64513         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64514         * lib/fseeko.c (rpl_fseeko): Likewise.
64515         * lib/fseterr.c (fseterr): Likewise.
64516
64517 2007-08-19  Bruno Haible  <bruno@clisp.org>
64518
64519         * tests/test-lseek.c (main): Disable a test for BeOS.
64520         * doc/functions/lseek.texi: Document the BeOS bug.
64521
64522 2007-08-19  Bruno Haible  <bruno@clisp.org>
64523             Eric Blake  <ebb9@byu.net>
64524
64525         * lib/lseek.c: Include <sys/stat.h>.
64526         (rpl_lseek): Add workaround code also for Unix platforms.
64527         Needed for BeOS.
64528         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64529         * doc/functions/lseek.texi: Document BeOS definiency.
64530
64531 2007-08-18  Bruno Haible  <bruno@clisp.org>
64532
64533         * modules/fstrcmp-tests: New file.
64534         * tests/test-fstrcmp.c: New file.
64535
64536 2007-08-18  Bruno Haible  <bruno@clisp.org>
64537
64538         * modules/fstrcmp: New file, from GNU gettext with modifications.
64539         * lib/fstrcmp.h: New file, from GNU gettext.
64540         * lib/fstrcmp.c: New file, from GNU gettext.
64541         * MODULES.html.sh (String handling): Add fstrcmp.
64542
64543 2007-08-18  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64546         'bool'.
64547         (diag, compareseq): Remove const from the ctxt argument.
64548         (USE_HEURISTIC): Undefine at the end.
64549
64550 2007-08-18  Jim Meyering  <jim@meyering.net>
64551
64552         New file: lib/idcache.h
64553         * NEWS: Mention the addition.
64554         * modules/idcache (Files): Add lib/idcache.h
64555         * lib/idcache.c: Include "idcache.h".
64556         Don't include <sys/types.h>.
64557         Add a FIXME comment.
64558         Move file-scoped "static" declarations to the top.
64559         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64560
64561 2007-08-17  Bruno Haible  <bruno@clisp.org>
64562         and Paul Eggert  <eggert@cs.ucla.edu>
64563
64564         * MODULES.html.sh: Add diffseq.
64565         * modules/diffseq: New file.
64566         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64567         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64568
64569 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64570
64571         Import changes from coreutils for bootstrap script.
64572
64573         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64574
64575         * build-aux/bootstrap (slurp): Work even in environments where
64576         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64577         current code does not slurp files whose names start with ".", and
64578         this looks like it might be a troublesome area.
64579
64580         2007-07-11  Jim Meyering  <jim@meyering.net>
64581
64582         If there's a GPL vN copyright comment, require that N == 3.
64583
64584         2007-07-08  Jim Meyering  <jim@meyering.net>
64585
64586         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64587         * build-aux/bootstrap (mam_template): Move definition out of loop.
64588
64589         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64590
64591         * build-aux/bootstrap (symlink_to_dir): Rename function from
64592         symlink_to_gnulib.  Add a directory parameter.  Update all
64593         callers.
64594         (cp_mark_as_generated): Also check for -- and link to -- files in
64595         gl/.
64596
64597         2007-07-08  Jim Meyering  <jim@meyering.net>
64598
64599         Adapt to deeper hierarchy in gnulib.
64600         * build-aux/bootstrap (symlink_to_dir): If the destination
64601         directory doesn't exist, create it. This is required at least for
64602         "lib/uniwidth/cjk.h".
64603
64604         2007-05-15  Jim Meyering  <jim@meyering.net>
64605
64606         * build-aux/bootstrap: Now that generated Makefile.am files
64607         are no longer under version control, they must be created at
64608         bootstrap time.
64609
64610 2007-08-14  Ben Pfaff  <blp@gnu.org>
64611
64612         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64613
64614 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64615
64616         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64617         given the changes below.
64618         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64619         even on hosts that have padding bits beyond the supported 64.
64620
64621 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64624         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64625         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64626         depends on it.
64627         (xstrtol_error): Remove.
64628         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64629         but with a different signature.
64630         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64631         * lib/xstrtol-error.c: Include exitfail.h.
64632         (xstrtol_fatal): New function, with a different signature from the
64633         old xstrtol_error, so that the caller need not worry about passing
64634         in an exit status, or about storage management of the option argument.
64635         (xstrtol_error): Now a static function.  Redo signature to
64636         implement xstrtol_fatal.  Output the correct number of hyphens in
64637         front of the option so that the caller need not worry about
64638         storage management.
64639         (N_): New macro.
64640         (_): Remove; not used now.
64641         * modules/xstrtol: Depend on getopt.
64642         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64643         of old STRTOL_FATAL_ERROR macro.
64644         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64645         of test program.
64646         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64647         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64648
64649 2007-08-08  Eric Blake  <ebb9@byu.net>
64650
64651         * lib/xstrtol-error.c: Add missing include.
64652
64653         Move xstrtol messages into gnulib domain, when --pobase is used.
64654         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64655         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64656         * modules/xstrtol (Files): Distribute new file.
64657         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64658         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64659         * tests/test-xstrtol.c: ...into new file.
64660         * tests/test-xstrtoul.c: Also test xstrtoul.
64661         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64662         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64663         * tests/test-xstrtol.sh: Drive the tests.
64664         * tests/test-xstrtoimax.sh: Likewise.
64665         * tests/test-xstrtoumax.sh: Likewise.
64666         * modules/xstrtol-tests: New module.
64667         * modules/xstrtoimax-tests: Likewise.
64668         * modules/xstrtoumax-tests: Likewise.
64669
64670 2007-08-08  Jim Meyering  <jim@meyering.net>
64671
64672         New function: mfile_name_concat.
64673         * lib/filenamecat.c (mfile_name_concat): New function, just like
64674         file_name_concat, but return NULL upon failure rather than exiting
64675         with a diagnostic.
64676         * lib/filenamecat.h: Declare it.
64677
64678 2007-08-07  Bruno Haible  <bruno@clisp.org>
64679
64680         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64681         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64682         warning from gcc.
64683         Reported by Eric Blake.
64684
64685 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64686
64687         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64688         * modules/crypto/arcfour (License): Likewise.
64689         * modules/crypto/des-tests (License): Likewise.
64690         * modules/crypto/gc-arctwo-tests (License): Likewise.
64691         * modules/crypto/gc-des-tests (License): Likewise.
64692         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64693         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64694         * modules/crypto/gc-md2-tests (License): Likewise.
64695         * modules/crypto/gc-md4-tests (License): Likewise.
64696         * modules/crypto/gc-md5-tests (License): Likewise.
64697         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64698         * modules/crypto/gc-rijndael-tests (License): Likewise.
64699         * modules/crypto/gc-sha1-tests (License): Likewise.
64700         * modules/crypto/gc-tests (License): Likewise.
64701         * modules/crypto/hmac-md5 (License): Likewise.
64702         * modules/crypto/hmac-sha1 (License): Likewise.
64703         * modules/crypto/md2-tests (License): Likewise.
64704         * modules/crypto/md4-tests (License): Likewise.
64705         * modules/crypto/md5 (License): Likewise.
64706         * modules/crypto/rijndael (License): Likewise.
64707         * modules/crypto/sha1 (License): Likewise.
64708         * modules/memxor (License): Likewise.
64709
64710 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64711         and Bruno Haible  <bruno@clisp.org>
64712
64713         * NEWS: Describe interface changes to human, xstrtol.
64714         * lib/human.h: Include <xstrtol.h>.
64715         (human_options): Return enum strtol_error, not int.  Remove
64716         bool arg; take int * instead.
64717         * lib/human.c: Don't include "gettext.h".
64718         (_): Remove; no longer used.
64719         Don't include <xstrtol.h>, since human.h does it.
64720         (human_options): Adjust to abovementioned interface changes.
64721         Do not report error to stderr; that's now the caller's
64722         responsibility.
64723         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64724         interface change.
64725         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64726         Str, Argument_type_string.  All uses changed.  Put " argument"
64727         in diagnostics to make them clearer.  Change wording of suffix
64728         message for clarity.
64729         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64730         Argument_type_string.
64731         (STRTOL_FATAL_WARN): Remove; no longer used.
64732         * modules/human (Depends-on): Remove gettext-h.
64733
64734 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64735
64736         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64737
64738 2007-07-31  Bruno Haible  <bruno@clisp.org>
64739
64740         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64741         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64742         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64743
64744 2007-07-31  Bruno Haible  <bruno@clisp.org>
64745
64746         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64747         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64748
64749 2007-07-30  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64752         * modules/c-ctype (License): Likewise.
64753         * modules/c-strcase (License): Likewise.
64754         * modules/check-version (License): Likewise.
64755         * modules/iconv (License): Likewise.
64756         * modules/iconv_open (License): Likewise.
64757         * modules/read-file (License): Likewise.
64758         * modules/striconv (License): Likewise.
64759         * modules/strverscmp (License): Likewise.
64760         * modules/vasprintf (License): Likewise.
64761         * modules/crypto/des (License): Likewise.
64762         * modules/crypto/gc (License): Likewise.
64763         * modules/crypto/gc-arcfour (License): Likewise.
64764         * modules/crypto/gc-arctwo (License): Likewise.
64765         * modules/crypto/gc-des (License): Likewise.
64766         * modules/crypto/gc-hmac-md5 (License): Likewise.
64767         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64768         * modules/crypto/gc-md2 (License): Likewise.
64769         * modules/crypto/gc-md4 (License): Likewise.
64770         * modules/crypto/gc-md5 (License): Likewise.
64771         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64772         * modules/crypto/gc-random (License): Likewise.
64773         * modules/crypto/gc-rijndael (License): Likewise.
64774         * modules/crypto/gc-sha1 (License): Likewise.
64775         * modules/crypto/md2 (License): Likewise.
64776         * modules/crypto/md4 (License): Likewise.
64777
64778 2007-07-30  Jim Meyering  <jim@meyering.net>
64779
64780         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64781         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64782         it has valid stat data.  This bug would cause du not to count the
64783         sizes of inaccessible directories.
64784         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64785         in <http://bugzilla.redhat.com/250077>.
64786
64787 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64788             Bruno Haible  <bruno@clisp.org>
64789
64790         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64791         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64792         #include_next, gives a diagnostic about it, but reports no error in
64793         the exit code.
64794         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64795
64796 2007-07-24  Ben Pfaff  <blp@gnu.org>
64797
64798         Improve name: "count-one-bits" is better than "popcount".
64799         * MODULES.html.sh: Update name.
64800         * lib/popcount.h: Renamed lib/count-one-bits.h.
64801         (popcount): Renamed count_one_bits.
64802         (popcountl): Renamed count_one_bits_l.
64803         (popcountll): Renamed count_one_bits_ll.
64804         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64805         * modules/popcount: Renamed module/count-one-bits.
64806         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64807         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64808
64809 2007-07-23  Ben Pfaff  <blp@gnu.org>
64810
64811         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64812         better code generation, and add U to large constants to avoid
64813         warnings, in non-GCC case.
64814         Suggested by Bruno Haible.
64815
64816 2007-07-23  Ben Pfaff  <blp@gnu.org>
64817
64818         * lib/popcount.h: Use verify_true instead of if...abort.
64819         * modules/popcount: Depend on verify module.
64820         Suggested by Jim Meyering.
64821
64822 2007-07-23  Bruno Haible  <bruno@clisp.org>
64823
64824         * gnulib-tool (func_import): Create a .cvsignore file also when the
64825         directory is not yet in CVS but the toplevel directory is. When
64826         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
64827         Reported by Karl Berry.
64828
64829 2007-07-22  Ben Pfaff  <blp@gnu.org>
64830
64831         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
64832         case.
64833         Suggested by Eric Blake.
64834
64835 2007-07-22  Ben Pfaff  <blp@gnu.org>
64836
64837         New module: popcount.
64838         * MODULES.html.sh: Add popcount.
64839         * modules/popcount: New file.
64840         * modules/popcount-tests: New file.
64841         * tests/test-popcount.c: New file.
64842         * lib/popcount.h: New file.
64843         * m4/popcount.m4: New file.
64844
64845 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
64846
64847         * build-aux/announce-gen: Update to GPLv3.
64848
64849         * build-aux/config.guess: Update from config.
64850
64851 2007-07-21  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
64854         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
64855
64856 2007-07-20  Jim Meyering  <jim@meyering.net>
64857
64858         * check-module: Diagnose a self-dependency.
64859
64860 2007-07-19  Bruno Haible  <bruno@clisp.org>
64861
64862         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
64863         empty.
64864         Reported by Eric Blake.
64865
64866 2007-07-18  Bruno Haible  <bruno@clisp.org>
64867
64868         * gnulib-tool: New options --po-base, --po-domain.
64869         (func_usage): Document them.
64870         (pobase, po_domain): New variables.
64871         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
64872         DEFAULT_TEXT_DOMAIN.
64873         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
64874         (func_import): Consider pobase and po_domain. Create a po/ directory.
64875         (func_create_testdir): Set pobase and po_domain to empty.
64876         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
64877         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
64878
64879 2007-07-18  Bruno Haible  <bruno@clisp.org>
64880
64881         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64882         EXTRA_DIST augmentation for files in build-aux/.
64883
64884 2007-07-16  Bruno Haible  <bruno@clisp.org>
64885
64886         * modules/lseek (License): Use the synonymous term "LGPLv2+".
64887         * modules/getdelim (License): Likewise.
64888
64889 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64890
64891         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
64892         * modules/d-type (License): Likewise.
64893         * modules/extensions (License): Likewise.
64894         * modules/fnmatch (License): Likewise.
64895         * modules/fseeko (License): Likewise.
64896         * modules/getaddrinfo (License): Likewise.
64897         * modules/getline (License): Likewise.
64898         * modules/getlogin_r (License): Likewise.
64899         * modules/getpass (License): Likewise.
64900         * modules/gettimeofday (License): Likewise.
64901         * modules/glob (License): Likewise.
64902         * modules/inet_ntop (License): Likewise.
64903         * modules/malloc (License): Likewise.
64904         * modules/malloca (License): Likewise.
64905         * modules/memmem (License): Likewise.
64906         * modules/mempcpy (License): Likewise.
64907         * modules/memset (License): Likewise.
64908         * modules/minmax (License): Likewise.
64909         * modules/mktime (License): Likewise.
64910         * modules/netinet_in (License): Likewise.
64911         * modules/pathmax (License): Likewise.
64912         * modules/poll (License): Likewise.
64913         * modules/regex (License): Likewise.
64914         * modules/snprintf (License): Likewise.
64915         * modules/stdbool (License): Likewise.
64916         * modules/stdint (License): Likewise.
64917         * modules/stdio (License): Likewise.
64918         * modules/strcase (License): Likewise.
64919         * modules/strcasestr (License): Likewise.
64920         * modules/strdup (License): Likewise.
64921         * modules/string (License): Likewise.
64922         * modules/strndup (License): Likewise.
64923         * modules/strnlen (License): Likewise.
64924         * modules/strpbrk (License): Likewise.
64925         * modules/strptime (License): Likewise.
64926         * modules/strsep (License): Likewise.
64927         * modules/sys_select (License): Likewise.
64928         * modules/sys_socket (License): Likewise.
64929         * modules/sys_stat (License): Likewise.
64930         * modules/sys_time (License): Likewise.
64931         * modules/time (License): Likewise.
64932         * modules/time_r (License): Likewise.
64933         * modules/timegm (License): Likewise.
64934         * modules/unistd (License): Likewise.
64935         * modules/vsnprintf (License): Likewise.
64936         * modules/wctype (License): Likewise.
64937
64938 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64939
64940         * modules/argz (License): LGPLv2+.
64941
64942 2007-07-15  Karl Berry  <karl@gnu.org>
64943
64944         * doc/gnulib.texi: revise node structure per new fdl.texi.
64945
64946 2007-07-14  Bruno Haible  <bruno@clisp.org>
64947
64948         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64949         the output file.
64950         * lib/uniname/uninames.h: Regenerated.
64951
64952 2007-07-14  Karl Berry  <karl@gnu.org>
64953
64954         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64955         omitting sectioning and index commands.
64956
64957 2007-07-13  Bruno Haible  <bruno@clisp.org>
64958
64959         New gnulib-tool option --more-symlinks.
64960         * gnulib-tool (func_usage): Document --more-symlinks.
64961         (do_copyrights): New variable.
64962         Recognize option --more-symlinks.
64963         (func_import): Don't add a copyright notice transform to
64964         sed_transform_lib_file if do_copyrights is empty.
64965
64966 2007-07-13  Bruno Haible  <bruno@clisp.org>
64967
64968         * lib/vasnprintf.c (decimal_point_char): Define also if
64969         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64970         && !NEED_PRINTF_DIRECTIVE_A.
64971         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64972         Gary V. Vaughan <gary@gnu.org>.
64973
64974 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64975
64976         * lib/inttypes_.h: Undo previous change, since it was fixed
64977         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64978
64979 2007-07-13  Bruno Haible  <bruno@clisp.org>
64980
64981         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64982         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64983
64984 2007-07-13  Jim Meyering  <jim@meyering.net>
64985
64986         df: Don't fail for Tru64's "file-on-file mount".
64987         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64988         so we fall through and use statfs instead.  Details here:
64989         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64990         Reported by Albert Chin.
64991
64992 2007-07-13  Bruno Haible  <bruno@clisp.org>
64993
64994         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64995         * modules/configmake (License): Likewise.
64996         * modules/gettext (License): Likewise.
64997         * modules/gettext-h (License): Likewise.
64998         * modules/include_next (License): Likewise.
64999         * modules/link-warning (License): Likewise.
65000         * modules/localcharset (License): Likewise.
65001         * modules/localename (License): Likewise.
65002         * modules/lock (License): Likewise.
65003         * modules/relocatable-lib-lgpl (License): Likewise.
65004         * modules/size_max (License): Likewise.
65005         * modules/vasnprintf (License): Likewise.
65006         * modules/wchar (License): Likewise.
65007         * modules/xsize (License): Likewise.
65008
65009 2007-07-13  Bruno Haible  <bruno@clisp.org>
65010
65011         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65012         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65013
65014 2007-07-12  Bruno Haible  <bruno@clisp.org>
65015
65016         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65017         in the modules files.
65018
65019 2007-07-11  Karl Berry  <karl@gnu.org>
65020
65021         * MODULES.html.sh (func_module): use
65022          sed -e '\|^'"${includefile}"'$|d'
65023          instead of /.../d, to avoid errors on $includefile's containing /.
65024
65025 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65026
65027         * gnulib-tool (func_import): Avoid duplication of --avoid
65028         statements
65029         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65030         names to `_' in variable names.
65031
65032 2007-07-10  Eric Blake  <ebb9@byu.net>
65033
65034         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65035         * NEWS: Document this change.
65036
65037 2007-07-08  Bruno Haible  <bruno@clisp.org>
65038
65039         Update to Unicode 5.0.
65040         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65041         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65042         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65043         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65044         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65045         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65046         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65047         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65048         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65049         U+10A3F, U+1D242..U+1D244.
65050         (nonspacing_table_ind): Update.
65051         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65052         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65053
65054 2007-07-08  Bruno Haible  <bruno@clisp.org>
65055
65056         Update to Unicode 5.0.
65057         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65058         code transform. Extend the name index field of unicode_name_to_code and
65059         unicode_code_to_name from 16 to 24 bits.
65060         * lib/uniname/uniname.c (unicode_character_name,
65061         unicode_name_character): Add the range 0x12xxx to the code transform.
65062         * lib/uniname/uninames.h: Regenerated.
65063         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65064
65065 2007-07-07  Bruno Haible  <bruno@clisp.org>
65066
65067         * modules/wcwidth-tests: New file.
65068         * tests/test-wcwidth.c: New file.
65069
65070         Work around MacOS X wcwidth() bug.
65071         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65072         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65073         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65074         original wcwidth in non-UTF-8 locales.
65075         * modules/wcwidth (Depends-on): Add localcharset, streq,
65076         uniwidth/width.
65077         * doc/functions/wcwidth.texi: Update.
65078
65079 2007-07-07  Bruno Haible  <bruno@clisp.org>
65080
65081         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65082         (wcwidth): New declaration.
65083         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65084         macros.
65085         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65086         here. Prepare for creating <wchar.h> unconditionally.
65087         * modules/wchar (Depends-on): Add link-warning.
65088         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65089         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65090         * lib/wcwidth.h: Remove file.
65091         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65092         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65093         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65094         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65095         (Include): Replace wcwidth.h with <wchar.h>.
65096         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65097         * lib/mbchar.h: Don't include wcwidth.h.
65098         * lib/mbswidth.c: Likewise.
65099         * NEWS: Mention the change.
65100
65101 2007-07-07  Bruno Haible  <bruno@clisp.org>
65102
65103         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65104         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65105         definition with an external declaration.
65106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65107         defined as a function. Remove AC_C_INLINE requirement.
65108         * modules/wcwidth (Files): Add lib/wcwidth.c.
65109         (Makefile.am): Remove redundant statement.
65110
65111 2007-07-07  Bruno Haible  <bruno@clisp.org>
65112
65113         * MODULES.html.sh (Unicode string functions): Add the new modules.
65114
65115         * tests/uniwidth/test-u32-strwidth.c: New file.
65116         * modules/uniwidth/u32-strwidth-tests: New file.
65117
65118         * lib/uniwidth/u32-strwidth.c: New file.
65119         * modules/uniwidth/u32-strwidth: New file.
65120
65121         * tests/uniwidth/test-u16-strwidth.c: New file.
65122         * modules/uniwidth/u16-strwidth-tests: New file.
65123
65124         * lib/uniwidth/u16-strwidth.c: New file.
65125         * modules/uniwidth/u16-strwidth: New file.
65126
65127         * tests/uniwidth/test-u8-strwidth.c: New file.
65128         * modules/uniwidth/u8-strwidth-tests: New file.
65129
65130         * lib/uniwidth/u8-strwidth.c: New file.
65131         * modules/uniwidth/u8-strwidth: New file.
65132
65133         * tests/uniwidth/test-u32-width.c: New file.
65134         * modules/uniwidth/u32-width-tests: New file.
65135
65136         * lib/uniwidth/u32-width.c: New file.
65137         * modules/uniwidth/u32-width: New file.
65138
65139         * tests/uniwidth/test-u16-width.c: New file.
65140         * modules/uniwidth/u16-width-tests: New file.
65141
65142         * lib/uniwidth/u16-width.c: New file.
65143         * modules/uniwidth/u16-width: New file.
65144
65145         * tests/uniwidth/test-u8-width.c: New file.
65146         * modules/uniwidth/u8-width-tests: New file.
65147
65148         * lib/uniwidth/u8-width.c: New file.
65149         * modules/uniwidth/u8-width: New file.
65150
65151         * tests/uniwidth/test-uc_width.c: New file.
65152         * modules/uniwidth/width-tests: New file.
65153
65154         * lib/uniwidth/width.c: New file, from GNU libiconv.
65155         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65156         * modules/uniwidth/width: New file.
65157
65158         * lib/uniwidth.h: New file, from GNU libiconv.
65159         * modules/uniwidth/base: New file.
65160
65161 2007-07-07  Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/uniname.h: New file, from GNU gettext.
65164         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65165         * lib/uniname/uninames.h: New file, from GNU gettext.
65166         * lib/uniname/uniname.c: New file, from GNU gettext.
65167         * tests/uniname/test-uninames.sh: New file.
65168         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65169         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65170         * modules/uniname/base: New file.
65171         * modules/uniname/uniname: New file.
65172         * modules/uniname/uniname-tests: New file.
65173         * MODULES.html.sh (Unicode string functions): Add the new modules.
65174
65175 2007-07-06  Bruno Haible  <bruno@clisp.org>
65176
65177         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65178
65179 2007-07-06  Bruno Haible  <bruno@clisp.org>
65180
65181         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65182         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65183         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65184         include <sys/time.h>.
65185         Reported by Eric Blake.
65186
65187 2007-07-06  Eric Blake  <ebb9@byu.net>
65188
65189         Fix testing canonicalize on cygwin.
65190         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65191         Revert patch from 2007-06-19.
65192         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65193         canonicalize module is also in use.
65194         * tests/test-canonicalize.c: New file.
65195         * tests/test-canonicalize.sh: Likewise.
65196         * modules/canonicalize-tests: Likewise.
65197
65198 2007-07-06  Jim Meyering  <jim@meyering.net>
65199
65200         * lib/getugroups.c (getugroups): Detect getgrent failure.
65201         Adjust comment to reflect reality: this function may return -1.
65202
65203 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65204
65205         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65206         the new TP address.
65207         (usage): Fix typo
65208         (gnulib_mk): New variable.
65209
65210 2007-07-05  Jim Meyering  <jim@meyering.net>
65211
65212         Don't let endgrent clobber errno, no matter how improbable.
65213         * lib/getugroups.c (getugroups): Save and restore errno around
65214         endgrent call.
65215
65216         Close the group DB even when failing with 2^31 or more members.
65217         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65218
65219 2007-07-04  Jim Meyering  <jim@meyering.net>
65220
65221         * lib/getugroups.h: New file.
65222         * lib/getugroups.c: Include "getugroups.h".
65223         Remove uses of "register" keyword.
65224         Move local variable, "cp", down into scope where used.
65225         Give "username" parameter the "const" attribute.
65226         * modules/getugroups (Files): Add lib/getugroups.h
65227
65228 2007-07-04  Karl Berry  <karl@gnu.org>
65229
65230         * MODULES.html.sh (func_all_modules): Complete rename of
65231         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65232
65233 2007-07-02  Bruno Haible  <bruno@clisp.org>
65234
65235         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65236         mode, when inttypes.h comes from gnulib.
65237         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65238
65239 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65240
65241         * NEWS: Mention lgpl module name change.
65242
65243         * modules/lgpl-2.1: Renamed from lgpl.
65244
65245         * NEWS: Mention gpl module name change.
65246
65247         * modules/gpl-3.0: New file, based on gpl-2.0.
65248
65249         * modules/gpl-2.0: Renamed from gpl.
65250
65251         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65252         doc/gpl-2.0.texi.
65253
65254 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65257         #define __STDC_LIMIT_MACROS temporarily while including
65258         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65259         Problem reported by Joel E. Denny in
65260         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65261
65262 2007-07-01  Bruno Haible  <bruno@clisp.org>
65263
65264         * lib/unistdio.h: New file.
65265         * lib/unistdio/u-asnprintf.h: New file.
65266         * lib/unistdio/u-asprintf.h: New file.
65267         * lib/unistdio/u-printf-args.c: New file.
65268         * lib/unistdio/u-printf-args.h: New file.
65269         * lib/unistdio/u-printf-parse.h: New file.
65270         * lib/unistdio/u-snprintf.h: New file.
65271         * lib/unistdio/u-sprintf.h: New file.
65272         * lib/unistdio/u-vasprintf.h: New file.
65273         * lib/unistdio/u-vsnprintf.h: New file.
65274         * lib/unistdio/u-vsprintf.h: New file.
65275         * lib/unistdio/ulc-asnprintf.c: New file.
65276         * lib/unistdio/ulc-asprintf.c: New file.
65277         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65278         * lib/unistdio/ulc-printf-parse.c: New file.
65279         * lib/unistdio/ulc-snprintf.c: New file.
65280         * lib/unistdio/ulc-sprintf.c: New file.
65281         * lib/unistdio/ulc-vasnprintf.c: New file.
65282         * lib/unistdio/ulc-vasprintf.c: New file.
65283         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65284         * lib/unistdio/ulc-vsnprintf.c: New file.
65285         * lib/unistdio/ulc-vsprintf.c: New file.
65286         * lib/unistdio/u8-asnprintf.c: New file.
65287         * lib/unistdio/u8-asprintf.c: New file.
65288         * lib/unistdio/u8-printf-parse.c: New file.
65289         * lib/unistdio/u8-snprintf.c: New file.
65290         * lib/unistdio/u8-sprintf.c: New file.
65291         * lib/unistdio/u8-vasnprintf.c: New file.
65292         * lib/unistdio/u8-vasprintf.c: New file.
65293         * lib/unistdio/u8-vsnprintf.c: New file.
65294         * lib/unistdio/u8-vsprintf.c: New file.
65295         * lib/unistdio/u8-u8-asnprintf.c: New file.
65296         * lib/unistdio/u8-u8-asprintf.c: New file.
65297         * lib/unistdio/u8-u8-snprintf.c: New file.
65298         * lib/unistdio/u8-u8-sprintf.c: New file.
65299         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65300         * lib/unistdio/u8-u8-vasprintf.c: New file.
65301         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65302         * lib/unistdio/u8-u8-vsprintf.c: New file.
65303         * lib/unistdio/u16-asnprintf.c: New file.
65304         * lib/unistdio/u16-asprintf.c: New file.
65305         * lib/unistdio/u16-printf-parse.c: New file.
65306         * lib/unistdio/u16-snprintf.c: New file.
65307         * lib/unistdio/u16-sprintf.c: New file.
65308         * lib/unistdio/u16-vasnprintf.c: New file.
65309         * lib/unistdio/u16-vasprintf.c: New file.
65310         * lib/unistdio/u16-vsnprintf.c: New file.
65311         * lib/unistdio/u16-vsprintf.c: New file.
65312         * lib/unistdio/u16-u16-asnprintf.c: New file.
65313         * lib/unistdio/u16-u16-asprintf.c: New file.
65314         * lib/unistdio/u16-u16-snprintf.c: New file.
65315         * lib/unistdio/u16-u16-sprintf.c: New file.
65316         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65317         * lib/unistdio/u16-u16-vasprintf.c: New file.
65318         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65319         * lib/unistdio/u16-u16-vsprintf.c: New file.
65320         * lib/unistdio/u32-asnprintf.c: New file.
65321         * lib/unistdio/u32-asprintf.c: New file.
65322         * lib/unistdio/u32-printf-parse.c: New file.
65323         * lib/unistdio/u32-snprintf.c: New file.
65324         * lib/unistdio/u32-sprintf.c: New file.
65325         * lib/unistdio/u32-vasnprintf.c: New file.
65326         * lib/unistdio/u32-vasprintf.c: New file.
65327         * lib/unistdio/u32-vsnprintf.c: New file.
65328         * lib/unistdio/u32-vsprintf.c: New file.
65329         * lib/unistdio/u32-u32-asnprintf.c: New file.
65330         * lib/unistdio/u32-u32-asprintf.c: New file.
65331         * lib/unistdio/u32-u32-snprintf.c: New file.
65332         * lib/unistdio/u32-u32-sprintf.c: New file.
65333         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65334         * lib/unistdio/u32-u32-vasprintf.c: New file.
65335         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65336         * lib/unistdio/u32-u32-vsprintf.c: New file.
65337         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65338         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65339         * tests/unistdio/test-ulc-printf1.h: New file.
65340         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65341         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65342         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65343         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65344         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65345         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65346         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65347         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65348         * tests/unistdio/test-u8-asnprintf1.c: New file.
65349         * tests/unistdio/test-u8-asnprintf1.h: New file.
65350         * tests/unistdio/test-u8-printf1.h: New file.
65351         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65352         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65353         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65354         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65355         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65356         * tests/unistdio/test-u8-vasprintf1.c: New file.
65357         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65358         * tests/unistdio/test-u8-vsprintf1.c: New file.
65359         * tests/unistdio/test-u16-asnprintf1.c: New file.
65360         * tests/unistdio/test-u16-asnprintf1.h: New file.
65361         * tests/unistdio/test-u16-printf1.h: New file.
65362         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65363         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65364         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65365         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65366         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65367         * tests/unistdio/test-u16-vasprintf1.c: New file.
65368         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65369         * tests/unistdio/test-u16-vsprintf1.c: New file.
65370         * tests/unistdio/test-u32-asnprintf1.c: New file.
65371         * tests/unistdio/test-u32-asnprintf1.h: New file.
65372         * tests/unistdio/test-u32-printf1.h: New file.
65373         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65374         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65375         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65376         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65377         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65378         * tests/unistdio/test-u32-vasprintf1.c: New file.
65379         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65380         * tests/unistdio/test-u32-vsprintf1.c: New file.
65381         * modules/unistdio/base: New file.
65382         * modules/unistdio/u-printf-args: New file.
65383         * modules/unistdio/ulc-asnprintf: New file.
65384         * modules/unistdio/ulc-asprintf: New file.
65385         * modules/unistdio/ulc-fprintf: New file.
65386         * modules/unistdio/ulc-printf-parse: New file.
65387         * modules/unistdio/ulc-snprintf: New file.
65388         * modules/unistdio/ulc-sprintf: New file.
65389         * modules/unistdio/ulc-vasnprintf: New file.
65390         * modules/unistdio/ulc-vasprintf: New file.
65391         * modules/unistdio/ulc-vfprintf: New file.
65392         * modules/unistdio/ulc-vsnprintf: New file.
65393         * modules/unistdio/ulc-vsprintf: New file.
65394         * modules/unistdio/u8-asnprintf: New file.
65395         * modules/unistdio/u8-asprintf: New file.
65396         * modules/unistdio/u8-printf-parse: New file.
65397         * modules/unistdio/u8-snprintf: New file.
65398         * modules/unistdio/u8-sprintf: New file.
65399         * modules/unistdio/u8-vasnprintf: New file.
65400         * modules/unistdio/u8-vasprintf: New file.
65401         * modules/unistdio/u8-vsnprintf: New file.
65402         * modules/unistdio/u8-vsprintf: New file.
65403         * modules/unistdio/u8-u8-asnprintf: New file.
65404         * modules/unistdio/u8-u8-asprintf: New file.
65405         * modules/unistdio/u8-u8-snprintf: New file.
65406         * modules/unistdio/u8-u8-sprintf: New file.
65407         * modules/unistdio/u8-u8-vasnprintf: New file.
65408         * modules/unistdio/u8-u8-vasprintf: New file.
65409         * modules/unistdio/u8-u8-vsnprintf: New file.
65410         * modules/unistdio/u8-u8-vsprintf: New file.
65411         * modules/unistdio/u16-asnprintf: New file.
65412         * modules/unistdio/u16-asprintf: New file.
65413         * modules/unistdio/u16-printf-parse: New file.
65414         * modules/unistdio/u16-snprintf: New file.
65415         * modules/unistdio/u16-sprintf: New file.
65416         * modules/unistdio/u16-vasnprintf: New file.
65417         * modules/unistdio/u16-vasprintf: New file.
65418         * modules/unistdio/u16-vsnprintf: New file.
65419         * modules/unistdio/u16-vsprintf: New file.
65420         * modules/unistdio/u16-u16-asnprintf: New file.
65421         * modules/unistdio/u16-u16-asprintf: New file.
65422         * modules/unistdio/u16-u16-snprintf: New file.
65423         * modules/unistdio/u16-u16-sprintf: New file.
65424         * modules/unistdio/u16-u16-vasnprintf: New file.
65425         * modules/unistdio/u16-u16-vasprintf: New file.
65426         * modules/unistdio/u16-u16-vsnprintf: New file.
65427         * modules/unistdio/u16-u16-vsprintf: New file.
65428         * modules/unistdio/u32-asnprintf: New file.
65429         * modules/unistdio/u32-asprintf: New file.
65430         * modules/unistdio/u32-printf-parse: New file.
65431         * modules/unistdio/u32-snprintf: New file.
65432         * modules/unistdio/u32-sprintf: New file.
65433         * modules/unistdio/u32-vasnprintf: New file.
65434         * modules/unistdio/u32-vasprintf: New file.
65435         * modules/unistdio/u32-vsnprintf: New file.
65436         * modules/unistdio/u32-vsprintf: New file.
65437         * modules/unistdio/u32-u32-asnprintf: New file.
65438         * modules/unistdio/u32-u32-asprintf: New file.
65439         * modules/unistdio/u32-u32-snprintf: New file.
65440         * modules/unistdio/u32-u32-sprintf: New file.
65441         * modules/unistdio/u32-u32-vasnprintf: New file.
65442         * modules/unistdio/u32-u32-vasprintf: New file.
65443         * modules/unistdio/u32-u32-vsnprintf: New file.
65444         * modules/unistdio/u32-u32-vsprintf: New file.
65445         * modules/unistdio/ulc-asnprintf-tests: New file.
65446         * modules/unistdio/ulc-vasnprintf-tests: New file.
65447         * modules/unistdio/ulc-vasprintf-tests: New file.
65448         * modules/unistdio/ulc-vsnprintf-tests: New file.
65449         * modules/unistdio/ulc-vsprintf-tests: New file.
65450         * modules/unistdio/u8-asnprintf-tests: New file.
65451         * modules/unistdio/u8-vasnprintf-tests: New file.
65452         * modules/unistdio/u8-vasprintf-tests: New file.
65453         * modules/unistdio/u8-vsnprintf-tests: New file.
65454         * modules/unistdio/u8-vsprintf-tests: New file.
65455         * modules/unistdio/u16-asnprintf-tests: New file.
65456         * modules/unistdio/u16-vasnprintf-tests: New file.
65457         * modules/unistdio/u16-vasprintf-tests: New file.
65458         * modules/unistdio/u16-vsnprintf-tests: New file.
65459         * modules/unistdio/u16-vsprintf-tests: New file.
65460         * modules/unistdio/u32-asnprintf-tests: New file.
65461         * modules/unistdio/u32-vasnprintf-tests: New file.
65462         * modules/unistdio/u32-vasprintf-tests: New file.
65463         * modules/unistdio/u32-vsnprintf-tests: New file.
65464         * modules/unistdio/u32-vsprintf-tests: New file.
65465         * MODULES.html.sh (Unicode string functions): Add the new modules.
65466
65467 2007-07-01  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/sprintf.c (sprintf): Limit the available length estimation,
65470         to avoid address wraparound.
65471         * lib/vsprintf.c (vsprintf): Likewise.
65472         * modules/sprintf-posix (Dependencies): Add stdint.
65473         * modules/vsprintf-posix (Dependencies): Likewise.
65474
65475 2007-07-01  Bruno Haible  <bruno@clisp.org>
65476
65477         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65478         Windows PATH as well. Conservative double-quoting. Comments.
65479
65480 2007-07-01  Bruno Haible  <bruno@clisp.org>
65481             Eric Blake  <ebb9@byu.net>
65482             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65483
65484         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65485         empty components in $PATH, denoting '.'.
65486
65487 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65488
65489         * gnulib-tool: Fix indentation.
65490         (func_create_megatestdir): Likewise.
65491         Report by Bruno Haible.
65492
65493 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65494
65495         Sync from Automake.
65496         * build-aux/gnupload: Fix shell portability issues with for loops.
65497         Report by Karl Berry.
65498
65499 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65500
65501         * build-aux/maint.mk (POURL): Use translationproject.org.
65502
65503 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65504             Bruno Haible  <bruno@clisp.org>
65505
65506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65507         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65508         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65509         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65510         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65511
65512 2007-06-27  Bruno Haible  <bruno@clisp.org>
65513
65514         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65515         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65516
65517 2007-06-26  Karl Berry  <karl@gnu.org>
65518
65519         * MODULES.html.sh: remove xreadlink-with-size.
65520
65521 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65524         method that I hope also handles the double-include problem noted
65525         by Bruno Haible in
65526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65527
65528 2007-06-23  Bruno Haible  <bruno@clisp.org>
65529
65530         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65531         Don't let the 'mostlyclean' target fail if the last subdirectory could
65532         not be removed.
65533         Reported by Karl Berry.
65534
65535 2007-06-23  Bruno Haible  <bruno@clisp.org>
65536
65537         * gnulib-tool (echo): Add a speedier workaround for ksh.
65538         * tests/test-echo.sh: Likewise.
65539
65540 2007-06-23  Bruno Haible  <bruno@clisp.org>
65541
65542         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65543         * tests/test-echo.sh: Likewise.
65544
65545 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65546
65547         * gnulib-tool (IFS): Initialize early, so we don't set it to
65548         empty later.
65549         (self_abspathname): Rewrite algorithm to set it, reindent.
65550         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65551         (func_create_megatestdir): Merge some sed scripts.
65552
65553 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65554
65555         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65556         exposed by Sun Studio 11 cc on Solaris 8.
65557
65558 2007-06-22  Bruno Haible  <bruno@clisp.org>
65559
65560         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65561         backslashes.
65562         * tests/test-echo.sh: New file.
65563
65564 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65565
65566         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65567         simplify `sed_replace_build_aux' scripts, they are portable but
65568         echoing them with `echo' is not.
65569         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65570
65571 2007-06-21  Karl Berry  <karl@gnu.org>
65572
65573         * config/srclist.txt: guess we can't handle the licenses via
65574         srclist at the moment.
65575
65576 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65577
65578         * MODULES.html.sh: Add include_next.
65579         * modules/include_next: New file.
65580
65581 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65584         INCLUDE_NEXT.
65585         (gl_CHECK_NEXT_HEADERS): New macro.
65586         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65587         the obsolescent gl_ABSOLUTE_HEADER.
65588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65589         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65590         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65591         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65592         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65593         * m4/math_h.m4 (gl_MATH_H): Likewise.
65594         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65595         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65596         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65597         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65598         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65599         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65600         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65601         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65602         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65603         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65604         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65605         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65606         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65607         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65608         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65609         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65610         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65611         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65612         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65613         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65614         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65615         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65616         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65617         * lib/float_.h: Likewise.
65618         * lib/inttypes_.h: Likewise.
65619         * lib/math_.h: Likewise.
65620         * lib/search_.h: Likewise.
65621         * lib/signal_.h: Likewise.
65622         * lib/stdint_.h: Likewise.
65623         * lib/stdio_.h: Likewise.
65624         * lib/stdlib_.h: Likewise.
65625         * lib/string_.h: Likewise.
65626         * lib/sys_stat_.h: Likewise.
65627         * lib/sys_time_.h: Likewise.
65628         * lib/time_.h: Likewise.
65629         * lib/unistd_.h: Likewise.
65630         * lib/wchar_.h: Likewise.
65631         * lib/wctype_.h: Likewise.
65632         * lib/dirent_.h: Likewise.
65633         * lib/iconv_.h: Likewise.
65634         * lib/locale_.h: Likewise.
65635         * lib/netinet_in_.h: Likewise.
65636         * lib/sys_select_.h: Likewise.
65637         * lib/sys_socket_.h: Likewise.
65638         * lib/sysexits_.h: Likewise.
65639         * modules/fcntl (Depends-on): Depend on include_next, not
65640         absolute_header.
65641         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65642         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65643         * modules/fchdir: Likewise.
65644         * modules/float: Likewise.
65645         * modules/iconv_open: Likewise.
65646         * modules/inttypes: Likewise.
65647         * modules/locale: Likewise.
65648         * modules/math: Likewise.
65649         * modules/netinet_in: Likewise.
65650         * modules/search: Likewise.
65651         * modules/signal: Likewise.
65652         * modules/stdint: Likewise.
65653         * modules/stdio: Likewise.
65654         * modules/stdlib: Likewise.
65655         * modules/string: Likewise.
65656         * modules/sys_select: Likewise.
65657         * modules/sys_socket: Likewise.
65658         * modules/sys_stat: Likewise.
65659         * modules/sys_time: Likewise.
65660         * modules/sysexits: Likewise.
65661         * modules/time: Likewise.
65662         * modules/unistd: Likewise.
65663         * modules/wchar: Likewise.
65664         * modules/wctype: Likewise.
65665         * modules/sys_stat: Change maintainer to "all".
65666         * modules/unistd: Likewise.
65667
65668 2007-06-20  Karl Berry  <karl@gnu.org>
65669
65670         * config/srclist.txt: track www changes in license files.
65671
65672 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65673
65674         * build-aux/bootstrap: Remove stray dot.
65675         Make sure build_aux settings are honored when linking
65676         gnulib_extra_files.
65677
65678 2007-06-19  Eric Blake  <ebb9@byu.net>
65679
65680         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65681         Allow compilation on cygwin.
65682
65683 2007-06-19  Jim Meyering  <jim@meyering.net>
65684
65685         xreadlink-with-size: Remove module.  No longer used.
65686         Ex-callers now use xreadlink or mreadlink-with-size.
65687         * modules/xreadlink-with-size: Remove module.
65688         * lib/xreadlink-with-size.c: Remove file.
65689         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65690         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65691         just before the function definition *is* accurate.
65692
65693         Eliminate one way canonicalize_filename_mode could exit.
65694         * lib/canonicalize.c (canonicalize_filename_mode):
65695         Use mreadlink_with_size, not xreadlink_with_size.
65696
65697 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         Detect porting problems to FreeBSD/arm, which has time_t wider than
65700         long int.  Original problem reported for GNU diff by Xin Li in
65701         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65702         * modules/getdate (Depends-on): Add intprops, verify.
65703         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65704         is an integer type no wider than long int.
65705
65706 2007-06-18  Jim Meyering  <jim@meyering.net>
65707
65708         New module: mreadlink-with-size.
65709         * MODULES.html.sh: Add mreadlink-with-size.
65710         * modules/mreadlink-with-size: New module
65711         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65712         not xreadlink-with-size.
65713         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65714
65715 2007-06-16  Bruno Haible  <bruno@clisp.org>
65716
65717         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65718         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65719         Reported by Gary V. Vaughan <gary@gnu.org>.
65720
65721 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         Revamp lchown so that it lives in unistd.h where it belongs.
65724         * lib/lchown.h: Remove.
65725         * lib/dirchownmod.c: Don't include lib/lchown.h.
65726         * lib/fchownat.c: Likewise.
65727         * lib/openat.c: Likewise.
65728         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65729         does not follow symlinks.
65730         (EOPNOTSUPP): Define if not defined.
65731         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65732         is defined to 0.
65733         (lchown): New decl.
65734         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65735         Do not check for lchown decl.
65736         Set REPLACE_LCHOWN.
65737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65738         REPLACE_LCHOWN.
65739         * modules/chown: Make it clear it follows symlinks.
65740         * modules/lchown: Make it clear it doesn't follow symlinks.
65741         (Files): Remove lib/lchown.h
65742         (Depends-on): Add unistd.
65743         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65744         (Include): Include <unistd.h>, not "lchown.h".
65745         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65746         REPLACE_LCHOWN.
65747
65748 2007-06-15  Jim Meyering  <jim@meyering.net>
65749
65750         Change license (GPL to LGPL) of fsusage and dependents.
65751         * modules/fsusage (License): Change to LGPL.
65752         * modules/full-read (License): Likewise.
65753         * modules/full-write (License): Likewise.
65754         * modules/safe-read (License): Likewise.
65755         * modules/safe-write (License): Likewise.
65756
65757 2007-06-14  Ben Pfaff  <blp@gnu.org>
65758
65759         Missing part of allocsa -> malloca transition.
65760         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65761         gl_MALLOCA.
65762
65763 2007-06-12  Bruno Haible  <bruno@clisp.org>
65764
65765         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65766         to ia64, x86_64, i386.
65767         Reported by Eric Blake.
65768
65769 2007-06-12  Bruno Haible  <bruno@clisp.org>
65770
65771         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65772         cross-compiling to x86_64.
65773
65774 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65775
65776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65777         glitch reported by Ralf Wildenhues in
65778         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65779
65780         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65781         Vin Shelton.
65782
65783 2007-06-11  Bruno Haible  <bruno@clisp.org>
65784
65785         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65786         replacement string.
65787         Reported by Eric Blake.
65788
65789 2007-06-10  Bruno Haible  <bruno@clisp.org>
65790
65791         Prepare vasnprintf code for use with Unicode strings.
65792         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65793         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65794         TYPE_U32_STRING.
65795         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65796         a_u32_string variants.
65797         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65798         * lib/printf-args.c: Don't include config.h and the specification
65799         header if PRINTF_FETCHARGS is already defined.
65800         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65801         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65802         TYPE_U16_STRING, TYPE_U32_STRING.
65803         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65804         u16_directive, u16_directives, u32_directive, u32_directives): New
65805         types.
65806         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65807         New declarations.
65808         * lib/printf-parse.c: Don't include config.h and the specification
65809         header if PRINTF_PARSE is already defined. Eliminate the set of
65810         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65811         them now. Include c-ctype.h.
65812         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65813         directive and CHAR_T_ONLY_ASCII.
65814         * lib/vasnprintf.c: Don't include config.h and the specification header
65815         if VASNPRINTF is already defined.
65816         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65817         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
65818         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
65819         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
65820         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
65821         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
65822         code accordingly.
65823         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
65824         pad_ourselves also in this case, with the 'c' and 's' directives, and
65825         with a different notion of "width".
65826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
65827
65828 2007-06-10  Bruno Haible  <bruno@clisp.org>
65829
65830         * modules/unistr/u32-mbsnlen: New file.
65831         * lib/unistr/u32-mbsnlen.c: New file.
65832
65833         * modules/unistr/u16-mbsnlen: New file.
65834         * lib/unistr/u16-mbsnlen.c: New file.
65835
65836         * modules/unistr/u8-mbsnlen: New file.
65837         * lib/unistr/u8-mbsnlen.c: New file.
65838
65839         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
65840         declarations.
65841
65842 2007-06-10  Bruno Haible  <bruno@clisp.org>
65843
65844         * lib/string_.h (mbsnlen): New declaration.
65845         * lib/mbsnlen.c: New file.
65846         * m4/mbsnlen.m4: New file.
65847         * modules/mbsnlen: New file.
65848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
65849         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
65850         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
65851
65852 2007-06-10  Bruno Haible  <bruno@clisp.org>
65853
65854         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
65855
65856 2007-06-10  Bruno Haible  <bruno@clisp.org>
65857
65858         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
65859         * lib/mbuiter.h: Likewise.
65860
65861 2007-06-10  Bruno Haible  <bruno@clisp.org>
65862
65863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
65864         declaration.
65865
65866 2007-06-10  Karl Berry  <karl@gnu.org>
65867
65868         * config/srclist.txt: remove gettext entries, Bruno prefers
65869         to update individually.
65870
65871 2007-06-10  Bruno Haible  <bruno@clisp.org>
65872
65873         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
65874         'maxlen'. Ensure only length + width bytes are allocated, not
65875         length + 1 + width.
65876
65877 2007-06-09  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
65880         (CHAR_T): Remove macro.
65881         (VASNPRINTF): Update.
65882
65883 2007-06-09  Bruno Haible  <bruno@clisp.org>
65884
65885         * MODULES.html.sh (Unicode string functions): Add the new modules.
65886
65887         * modules/uniconv/u32-conv-to-enc: New file.
65888         * lib/uniconv/u32-conv-to-enc.c: New file.
65889         * modules/uniconv/u32-conv-to-enc-tests: New file.
65890         * tests/uniconv/test-u32-conv-to-enc.c: New file.
65891
65892         * modules/uniconv/u16-conv-to-enc: New file.
65893         * lib/uniconv/u16-conv-to-enc.c: New file.
65894         * lib/uniconv/u-conv-to-enc.h: New file.
65895         * modules/uniconv/u16-conv-to-enc-tests: New file.
65896         * tests/uniconv/test-u16-conv-to-enc.c: New file.
65897
65898         * modules/uniconv/u8-conv-to-enc: New file.
65899         * lib/uniconv/u8-conv-to-enc.c: New file.
65900         * modules/uniconv/u8-conv-to-enc-tests: New file.
65901         * tests/uniconv/test-u8-conv-to-enc.c: New file.
65902
65903         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65904         u32_conv_to_encoding): New declarations.
65905
65906 2007-06-09  Bruno Haible  <bruno@clisp.org>
65907
65908         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
65909
65910 2007-06-09  Bruno Haible  <bruno@clisp.org>
65911
65912         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
65913         * modules/malloca: Renamed from modules/allocsa, updated.
65914         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
65915         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
65916         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
65917         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
65918         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
65919         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
65920         * modules/xmalloca: Renamed from modules/xallocsa, updated.
65921         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
65922         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
65923         * modules/c-strcasestr (Depends-on): Update.
65924         * lib/c-strcasestr.c: Update.
65925         * modules/c-strstr (Depends-on): Update.
65926         * lib/c-strstr.c: Update.
65927         * modules/canonicalize-lgpl (Depends-on): Update.
65928         * lib/canonicalize-lgpl.c: Update.
65929         * modules/clean-temp (Depends-on): Update.
65930         * lib/clean-temp.c: Update.
65931         * modules/csharpcomp (Depends-on): Update.
65932         * lib/csharpcomp.c: Update.
65933         * modules/csharpexec (Depends-on): Update.
65934         * lib/csharpexec.c: Update.
65935         * modules/javacomp (Depends-on): Update.
65936         * lib/javacomp.c: Update.
65937         * modules/javaexec (Depends-on): Update.
65938         * lib/javaexec.c: Update.
65939         * modules/mbscasestr (Depends-on): Update.
65940         * lib/mbscasestr.c: Update.
65941         * modules/mbsstr (Depends-on): Update.
65942         * lib/mbsstr.c: Update.
65943         * modules/setenv (Depends-on): Update.
65944         * lib/setenv.c: Update.
65945         * modules/strcasestr (Depends-on): Update.
65946         * lib/strcasestr.c: Update.
65947         * modules/striconveha (Depends-on): Update.
65948         * lib/striconveha.c: Update.
65949         * modules/relocatable-prog-wrapper (Files): Update.
65950         * lib/relocwrapper.c: Update.
65951         * build-aux/install-reloc: Update.
65952         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65953
65954 2007-06-08  Bruno Haible  <bruno@clisp.org>
65955
65956         Port to uClibc.
65957         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65958         * lib/fpurge.c (fpurge): Likewise.
65959         * lib/freading.c (freading): Likewise.
65960         * lib/fseeko.c (rpl_fseeko): Likewise.
65961         * lib/fseterr.c (fseterr): Likewise.
65962         * lib/fwriting.c (fwriting): Likewise.
65963         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65964
65965 2007-06-08  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65968         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65969         * modules/gettext (Files): Add m4/intlmacosx.m4.
65970
65971 2007-06-07  Bruno Haible  <bruno@clisp.org>
65972
65973         * modules/localename-tests: New file.
65974         * tests/test-localename.c: New file.
65975
65976         New module 'localename'.
65977         * lib/localename.h: New file.
65978         * lib/localename.c: New file, from GNU gettext.
65979         * m4/localename.m4: New file.
65980         * modules/localename: New file.
65981
65982 2007-06-07  Bruno Haible  <bruno@clisp.org>
65983
65984         Work around the lack of <wchar.h> on some builds of uClibc.
65985         * doc/headers/wchar.texi: Update.
65986         * lib/wchar_.h: Include <wchar.h> only if it exists.
65987         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65988         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65989         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65990         doesn't exist.
65991         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65992         * modules/mbfile (Depends-on): Add wchar.
65993         * modules/mbiter (Depends-on): Likewise.
65994         * modules/mbuiter (Depends-on): Likewise.
65995         Reported by Simon Josefsson.
65996
65997 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65998
65999         Work around problem reported by Steven M. Schweda in
66000         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66001         Tru64 5.1B with the Compaq compiler environment installed declares
66002         an 'isblank' function but does not define it in the C library.
66003         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66004         * lib/regex_internal.h (isblank): Likewise.
66005         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66006         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66007
66008 2007-06-05  Bruno Haible  <bruno@clisp.org>
66009
66010         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66011         ia64.
66012         * modules/printf-safe: New file.
66013         * modules/fprintf-posix (Depends-on): Add printf-safe.
66014         * modules/printf-posix (Depends-on): Likewise.
66015         * modules/snprintf-posix (Depends-on): Likewise.
66016         * modules/sprintf-posix (Depends-on): Likewise.
66017         * modules/vasnprintf-posix (Depends-on): Likewise.
66018         * modules/vasprintf-posix (Depends-on): Likewise.
66019         * modules/vfprintf-posix (Depends-on): Likewise.
66020         * modules/vprintf-posix (Depends-on): Likewise.
66021         * modules/vsnprintf-posix (Depends-on): Likewise.
66022         * modules/vsprintf-posix (Depends-on): Likewise.
66023         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66024         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66025         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66026         "no" on i386, x86_64, ia64.
66027         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66028         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66029         on i386, x86_64, ia64.
66030         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66031         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66032         on i386, x86_64, ia64.
66033         * tests/test-vasnprintf-posix.c: Include float.h.
66034         (LDBL80_WORDS): New macro.
66035         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66036         on i386, x86_64, ia64.
66037         * tests/test-vasprintf-posix.c: Include float.h.
66038         (LDBL80_WORDS): New macro.
66039         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66040         on i386, x86_64, ia64.
66041         * tests/test-snprintf-posix.c: Include float.h.
66042         * tests/test-sprintf-posix.c: Likewise.
66043         * tests/test-vsnprintf-posix.c: Likewise.
66044         * tests/test-vsprintf-posix.c: Likewise.
66045
66046 2007-06-05  Bruno Haible  <bruno@clisp.org>
66047
66048         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66049         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66050         non-IEEE numbers on i386, x86_64, ia64.
66051         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66052         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66053         * tests/test-isnanl.h: Include float.h.
66054         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66055
66056 2007-06-05  Bruno Haible  <bruno@clisp.org>
66057
66058         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66059         also the %a / %A. Handle the %a / %A code before this extra handling.
66060
66061 2007-06-05  Bruno Haible  <bruno@clisp.org>
66062
66063         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66064         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66065
66066 2007-06-05  Bruno Haible  <bruno@clisp.org>
66067
66068         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66069         typo in variable name.
66070
66071 2007-06-05  Eric Blake  <ebb9@byu.net>
66072
66073         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66074         Reported by Simon Josefsson.
66075
66076 2007-06-04  Bruno Haible  <bruno@clisp.org>
66077
66078         Avoid test failures on some PowerPC platforms.
66079         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66080         Define differently for PowerPC.
66081         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66082         Reported by Gary V. Vaughan <gary@gnu.org>.
66083
66084 2007-06-02  Bruno Haible  <bruno@clisp.org>
66085
66086         Fix test-stdint failure on FreeBSD/ia64.
66087         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66088         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66089         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66090         * doc/headers/stdint.texi: Update.
66091
66092 2007-06-01  Bruno Haible  <bruno@clisp.org>
66093
66094         * tests/test-binary-io.c (main): Pass a third argument to open().
66095         Reported by Gary V. Vaughan <gary@gnu.org>.
66096
66097 2007-06-01  Bruno Haible  <bruno@clisp.org>
66098
66099         * doc/functions/frexpl.texi: Update for mingw.
66100
66101 2007-06-01  Bruno Haible  <bruno@clisp.org>
66102
66103         * tests/test-lseek.c (main): Disable test of errno for invalid third
66104         argument.
66105         * doc/functions/lseek.texi: Update.
66106         Reported by Gary V. Vaughan <gary@gnu.org>.
66107
66108 2007-05-28  Bruno Haible  <bruno@clisp.org>
66109
66110         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66111
66112 2007-05-31  Eric Blake  <ebb9@byu.net>
66113
66114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66115         cross compiling.
66116
66117 2007-05-30  Eric Blake  <ebb9@byu.net>
66118         and Bruno Haible  <bruno@clisp.org>
66119
66120         Work around mingw test failures exposed by m4-1.4.9b.
66121         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66122         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66123         moment.
66124
66125 2007-05-30  Bruno Haible  <bruno@clisp.org>
66126
66127         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66128         assuming that they are closed. Needed on HP-UX 11.
66129
66130 2007-05-29  Bruno Haible  <bruno@clisp.org>
66131
66132         Fix a problem with #include_next.
66133         * lib/dirent_.h: Split the double-inclusion guard.
66134         * lib/fcntl_.h: Likewise.
66135         * lib/float_.h: Likewise.
66136         * lib/iconv_.h: Likewise.
66137         * lib/inttypes_.h: Likewise.
66138         * lib/locale_.h: Likewise.
66139         * lib/math_.h: Likewise.
66140         * lib/netinet_in_.h: Likewise.
66141         * lib/search_.h: Likewise.
66142         * lib/signal_.h: Likewise.
66143         * lib/stdint_.h: Likewise.
66144         * lib/stdio_.h: Likewise.
66145         * lib/stdlib_.h: Likewise.
66146         * lib/string_.h: Likewise.
66147         * lib/sys_select_.h: Likewise.
66148         * lib/sys_socket_.h: Likewise.
66149         * lib/sys_stat_.h: Likewise.
66150         * lib/sys_time_.h: Likewise.
66151         * lib/sysexits_.h: Likewise.
66152         * lib/time_.h: Likewise.
66153         * lib/unistd_.h: Likewise.
66154         * lib/wchar_.h: Likewise.
66155         * lib/wctype_.h: Likewise.
66156
66157 2007-05-29  Bruno Haible  <bruno@clisp.org>
66158
66159         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66160         for the moment.
66161
66162 2007-05-29  Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66165         invocation.
66166         Reported by Eric Blake.
66167
66168 2007-05-29  Bruno Haible  <bruno@clisp.org>
66169
66170         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66171         compiling case.
66172
66173 2007-05-29  Eric Blake  <ebb9@byu.net>
66174             Bruno Haible  <bruno@clisp.org>
66175
66176         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66177         cross compiles.
66178
66179 2007-05-28  Eric Blake  <ebb9@byu.net>
66180
66181         * modules/closein-tests (test_closein_LDADD): Support test on
66182         cygwin with libtool.
66183
66184 2007-05-28  Bruno Haible  <bruno@clisp.org>
66185
66186         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66187         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66188         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66189         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66190         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66191         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66192         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66193         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66194         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66195
66196 2007-05-28  Eric Blake  <ebb9@byu.net>
66197
66198         Unconditionally include <config.h> in unit tests.
66199         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66200         * tests/test-allocsa.c, tests/test-arcfour.c,
66201         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66202         tests/test-array_list.c, tests/test-array_oset.c,
66203         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66204         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66205         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66206         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66207         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66208         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66209         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66210         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66211         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66212         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66213         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66214         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66215         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66216         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66217         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66218         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66219         test-md5.c, test-memmem.c, test-printf-posix.c,
66220         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66221         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66222         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66223         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66224         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66225         test-vasnprintf-posix2.c, test-vasnprintf.c,
66226         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66227         test-vfprintf-posix.c, test-vprintf-posix.c,
66228         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66229         test-xvasprintf.c: Likewise.
66230
66231 2007-05-28  Bruno Haible  <bruno@clisp.org>
66232
66233         * gnulib-tool (func_import): Remember the --with-tests command-line
66234         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66235         Reported by Eric Blake.
66236
66237 2007-05-28  Bruno Haible  <bruno@clisp.org>
66238
66239         * modules/ftell-tests: New file.
66240         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66241         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66242
66243         * lib/ftell.c: New file.
66244         * modules/ftell: New file.
66245         * m4/ftell.m4: New file.
66246         * doc/functions/ftell.texi: Update.
66247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66248         REPLACE_FTELL.
66249         * lib/stdio_.h (rpl_ftell): New declaration.
66250         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66251         REPLACE_FTELL.
66252
66253 2007-05-28  Eric Blake  <ebb9@byu.net>
66254
66255         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66256
66257 2007-05-28  Bruno Haible  <bruno@clisp.org>
66258
66259         * modules/fseek-tests: New file.
66260         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66261         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66262
66263         * lib/fseek.c: New file.
66264         * modules/fseek: New file.
66265         * m4/fseek.m4: New file.
66266         * doc/functions/fseek.texi: Update.
66267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66268         REPLACE_FSEEK.
66269         * lib/stdio_.h (rpl_fseek): New declaration.
66270         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66271         REPLACE_FSEEK.
66272
66273 2007-05-28  Bruno Haible  <bruno@clisp.org>
66274
66275         * lib/stdio_.h (fflush): More comments.
66276
66277 2007-05-28  Bruno Haible  <bruno@clisp.org>
66278
66279         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66280         runtime test.
66281
66282 2007-05-28  Eric Blake  <ebb9@byu.net>
66283
66284         Improve lseek module.
66285         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66286         * lib/unistd_.h (lseek): Scale back link warning message.
66287         * tests/test-lseek.c: Beef up test.
66288         * tests/test-lseek.sh: Exercise more facets of lseek.
66289         Reported by Bruno Haible.
66290
66291 2007-05-28  Bruno Haible  <bruno@clisp.org>
66292
66293         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66294         to define.
66295
66296 2007-05-27  Bruno Haible  <bruno@clisp.org>
66297
66298         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66299
66300 2007-05-27  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/openmp: New file.
66303         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66304         Noah Misch.
66305
66306 2007-05-26  Bruno Haible  <bruno@clisp.org>
66307
66308         * modules/chdir-long (Depends-on): Add fchdir.
66309         * modules/chdir-safer (Depends-on): Likewise.
66310         * modules/fts (Depends-on): Likewise.
66311         * modules/fts-lgpl (Depends-on): Likewise.
66312         * modules/openat (Depends-on): Likewise.
66313         * modules/savewd (Depends-on): Likewise.
66314
66315 2007-05-24  Eric Blake  <ebb9@byu.net>
66316
66317         Fix lseek on mingw.
66318         * modules/lseek: New module.
66319         * m4/lseek.m4: New file.
66320         * lib/lseek.c: New file.
66321         * modules/lseek-tests: New file.
66322         * tests/test-lseek.c: New file.
66323         * tests/test-lseek.sh: New file.
66324         * MODULES.html.sh: Document lseek module.
66325         * modules/fflush (Depends-on): Add lseek, fseeko.
66326         * modules/fseeko (Depends-on): Likewise.
66327         * modules/ftello (Depends-on): Likewise.
66328         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66329         broken.
66330         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66331         broken.
66332         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66333         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66334         * lib/ftello.c (rpl_ftello): Likewise.
66335         * tests/test-fseeko.c (main): Test this.
66336         * tests/test-fseeko.sh: Likewise.
66337         * tests/test-ftello.c (main): Likewise.
66338         * tests/test-ftello.sh: Likewise.
66339         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66340         implies replacing fseek.
66341         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66342         HAVE_FTELLO.
66343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66344         * modules/unistd (Makefile.am): Likewise.
66345         * lib/unistd_.h (lseek): Declare a replacement.
66346         * doc/functions/lseek.texi (lseek): Document this fix.
66347         * doc/functions/fseek.texi (fseek): Likewise.
66348         * doc/functions/ftell.texi (ftell): Likewise.
66349
66350 2007-05-24  Bruno Haible  <bruno@clisp.org>
66351
66352         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66353         in the printed representation of a NaN.
66354         * tests/test-vasprintf-posix.c (test_function): Likewise.
66355         * tests/test-snprintf-posix.h (test_function): Likewise.
66356         * tests/test-sprintf-posix.h (test_function): Likewise.
66357         Reported by Eric Blake.
66358
66359 2007-05-23  Eric Blake  <ebb9@byu.net>
66360
66361         Fix fseeko/ftello on cygwin 1.5.24.
66362         * doc/functions/fseeko.texi (fseeko): Document the fix.
66363         * doc/functions/ftello.texi (ftello): Document the fix.
66364         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66365         * doc/functions/stdout.text (stdout): New file.
66366         * doc/functions/stderr.text (stderr): New file.
66367         * doc/gnulib.texi (Function Substitutes): Use new files.
66368         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66369         prior to 1.7.0.
66370         * tests/test-ftello.c (main): Likewise for ftello.
66371         * tests/test-fseeko.sh: New file.
66372         * tests/test-ftello.sh: New file.
66373         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66374         with seekable stdin.
66375         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66376         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66377         (gl_REPLACE_FSEEKO): New macro.
66378         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66379         * modules/fseeko (Files): Distribute fseeko.c.
66380         * modules/ftello (Files): Distribute ftello.c.
66381         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66382         mode.
66383         * lib/ftello.c (rpl_ftello): New file.
66384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66385         fseeko, ftello.
66386         (gl_STDIN_LARGE_OFFSET): New macro.
66387         * modules/stdio (Makefile.am): Perform the replacement.
66388         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66389
66390 2007-05-23  Bruno Haible  <bruno@clisp.org>
66391
66392         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66393         GNULIB_POSIXCHECK is defined.
66394
66395 2007-05-21  Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66398         Check also the output for NaN arguments. When cross-compiling, guess
66399         no on IRIX.
66400         * lib/vasnprintf.c: Update comments.
66401         * tests/test-vasnprintf-posix.c (strisnan): New function.
66402         (test_function): Use it.
66403         * tests/test-vasprintf-posix.c (strisnan): New function.
66404         (test_function): Use it.
66405         * tests/test-snprintf-posix.h (strisnan): New function.
66406         (test_function): Use it.
66407         * tests/test-sprintf-posix.h (strisnan): New function.
66408         (test_function): Use it.
66409         Reported by Eric Blake.
66410
66411 2007-05-20  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66414         numbers that fails on BeOS.
66415         * doc/functions/frexpl.texi: Update.
66416
66417 2007-05-20  Jim Meyering  <jim@meyering.net>
66418
66419         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66420         forced upon us by glibc-2.6.
66421
66422 2007-05-20  Bruno Haible  <bruno@clisp.org>
66423
66424         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66425         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66426         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66427         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66428         NEED_PRINTF_INFINITE.
66429         (is_infinitel): New function.
66430         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66432         gl_PREREQ_VASNPRINTF_INFINITE.
66433         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66434         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66435         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66436         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66437         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66438         gl_PREREQ_VASNPRINTF_INFINITE.
66439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66441         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66446         * doc/functions/fprintf.texi: Update.
66447         * doc/functions/printf.texi: Update.
66448         * doc/functions/snprintf.texi: Update.
66449         * doc/functions/sprintf.texi: Update.
66450         * doc/functions/vfprintf.texi: Update.
66451         * doc/functions/vprintf.texi: Update.
66452         * doc/functions/vsnprintf.texi: Update.
66453         * doc/functions/vsprintf.texi: Update.
66454
66455 2007-05-20  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66458         was not found in libc.
66459         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66460
66461 2007-05-20  Bruno Haible  <bruno@clisp.org>
66462
66463         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66464         printed as "-nan" instead of "nan".
66465         * tests/test-vasprintf-posix.c (test_function): Likewise.
66466         * tests/test-snprintf-posix.h (test_function): Likewise.
66467         * tests/test-sprintf-posix.h (test_function): Likewise.
66468         Needed for HP-UX 11.
66469
66470 2007-05-20  Jim Meyering  <jim@meyering.net>
66471
66472         Fix buggy test for the fchownat-deref bug.
66473         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66474         symlink required for the run-test.  Without it, this test would
66475         always declare that fchownat doesn't work, and client code would
66476         unnecessarily use the replacement function with fixed libc.
66477         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66478         Reported by Greg Schafer.
66479
66480 2007-05-19  Bruno Haible  <bruno@clisp.org>
66481
66482         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66483         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66484         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66485         Needed for IRIX 6.5 and Solaris 2.5.1.
66486
66487 2007-05-19  Bruno Haible  <bruno@clisp.org>
66488
66489         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66490         (test_function): Skip tests involving -0.0 on platforms where
66491         -0.0 = 0.0.
66492         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66493         (test_function): Skip tests involving -0.0 on platforms where
66494         -0.0 = 0.0.
66495         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66496         (test_function): Skip tests involving -0.0 on platforms where
66497         -0.0 = 0.0.
66498         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66499         (test_function): Skip tests involving -0.0 on platforms where
66500         -0.0 = 0.0.
66501         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66502         tests.
66503         * tests/test-printf-posix.h (test_function): Likewise.
66504         * tests/test-printf-posix.output: Remove all -0.0 related results.
66505         Needed for IRIX 6.5.
66506
66507 2007-05-19  Bruno Haible  <bruno@clisp.org>
66508
66509         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66510         printed as "nan0x7fffffff" instead of "nan".
66511         * tests/test-vasprintf-posix.c (test_function): Likewise.
66512         * tests/test-snprintf-posix.h (test_function): Likewise.
66513         * tests/test-sprintf-posix.h (test_function): Likewise.
66514         * tests/test-fprintf-posix.h (NaN): Remove macro.
66515         (test_function): Remove all NaN related tests.
66516         * tests/test-printf-posix.h (NaN): Remove macro.
66517         (test_function): Remove all NaN related tests.
66518         * tests/test-printf-posix.output: Remove all NaN related results.
66519         Needed for IRIX 6.5.
66520
66521 2007-05-19  Bruno Haible  <bruno@clisp.org>
66522
66523         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66524         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66525
66526 2007-05-19  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/float_.h: New file.
66529         * m4/float_h.m4: New file.
66530         * modules/float: New file.
66531         * modules/isnanl (Dependencies): Add float.
66532         * modules/isnanl-nolibm (Dependencies): Likewise.
66533         * modules/mathl (Dependencies): Likewise.
66534         * modules/printf-frexpl (Dependencies): Likewise.
66535         * modules/signbit (Dependencies): Likewise.
66536         * modules/vasnprintf (Dependencies): Likewise.
66537         * doc/headers/float.texi: Update.
66538
66539 2007-05-19  Jim Meyering  <jim@meyering.net>
66540
66541         * lib/utimens.c (gl_futimens): Rename from futimens,
66542         now that glibc-2.6 declares futimens.
66543         * lib/utimens.h: Likewise.
66544
66545 2007-05-19  Bruno Haible  <bruno@clisp.org>
66546
66547         Avoid test failures on mingw.
66548         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66549         * tests/test-printf-posix.sh: Likewise.
66550         * tests/test-vfprintf-posix.sh: Likewise.
66551         * tests/test-vprintf-posix.sh: Likewise.
66552
66553 2007-05-19  Bruno Haible  <bruno@clisp.org>
66554
66555         Fix *printf result for NaN, Inf, -0.0 on mingw.
66556         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66557         * lib/vasnprintf.c: Include math.h and isnan.h.
66558         (is_infinite_or_zero): New function.
66559         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66560         values in the %f, %F, %e, %E, %g, %G directives.
66561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66563         gl_PRINTF_INFINITE and test its result. Invoke
66564         gl_PREREQ_VASNPRINTF_INFINITE.
66565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66572         * doc/functions/fprintf.texi: Update.
66573         * doc/functions/printf.texi: Update.
66574         * doc/functions/snprintf.texi: Update.
66575         * doc/functions/sprintf.texi: Update.
66576         * doc/functions/vfprintf.texi: Update.
66577         * doc/functions/vprintf.texi: Update.
66578         * doc/functions/vsnprintf.texi: Update.
66579         * doc/functions/vsprintf.texi: Update.
66580
66581 2007-05-19  Bruno Haible  <bruno@clisp.org>
66582
66583         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66584         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66585         Instead of multiplying with 10^k, set extra_zeroes to k.
66586         (scale10_round_long_double): Remove function.
66587
66588 2007-05-18  Bruno Haible  <bruno@clisp.org>
66589
66590         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66591         introduced on 2007-05-06.
66592
66593 2007-05-18  Bruno Haible  <bruno@clisp.org>
66594
66595         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66596         %g directives.
66597         * tests/test-vasprintf-posix.c (test_function): Likewise.
66598         * tests/test-snprintf-posix.h (test_function): Likewise.
66599         * tests/test-sprintf-posix.h (test_function): Likewise.
66600
66601 2007-05-18  Bruno Haible  <bruno@clisp.org>
66602
66603         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66604         (strmatch): New function.
66605         (test_function): Test the %f directive on numbers of various exponents.
66606         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66607         (strmatch): New function.
66608         (test_function): Test the %f directive on numbers of various exponents.
66609         * tests/test-snprintf-posix.h (strmatch): New function.
66610         (test_function): Test the %f directive on numbers of various exponents.
66611         * tests/test-sprintf-posix.h (strmatch): New function.
66612         (test_function): Test the %f directive on numbers of various exponents.
66613         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66614         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66615         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66616         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66617
66618 2007-05-18  Bruno Haible  <bruno@clisp.org>
66619
66620         Add support for 'long double' number output.
66621         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66622         * lib/vasnprintf.c: Include math.h and float+.h.
66623         (mp_limb_t): New type.
66624         (GMP_LIMB_BITS): New macro.
66625         (mp_twolimb_t): New type.
66626         (GMP_TWOLIMB_BITS): New macro.
66627         (mpn_t): New type.
66628         (multiply, divide, convert_to_decimal, decode_long_double,
66629         scale10_round_long_double, scale10_round_decimal_long_double,
66630         floorlog10l): New functions.
66631         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66632         for the %f, %F, %e, %E, %g, %G directives.
66633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66635         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66636         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66637         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66644         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66645         * modules/snprintf-posix (Depends-on): Likewise.
66646         * modules/sprintf-posix (Depends-on): Likewise.
66647         * modules/vasnprintf-posix (Depends-on): Likewise.
66648         * modules/vasprintf-posix (Depends-on): Likewise.
66649         * modules/vfprintf-posix (Depends-on): Likewise.
66650         * modules/vsnprintf-posix (Depends-on): Likewise.
66651         * modules/vsprintf-posix (Depends-on): Likewise.
66652         * modules/vasnprintf (Files): Add lib/float+.h.
66653         * doc/functions/fprintf.texi: Update.
66654         * doc/functions/printf.texi: Update.
66655         * doc/functions/snprintf.texi: Update.
66656         * doc/functions/sprintf.texi: Update.
66657         * doc/functions/vfprintf.texi: Update.
66658         * doc/functions/vprintf.texi: Update.
66659         * doc/functions/vsnprintf.texi: Update.
66660         * doc/functions/vsprintf.texi: Update.
66661
66662 2007-05-18  Bruno Haible  <bruno@clisp.org>
66663
66664         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66665
66666 2007-05-18  Bruno Haible  <bruno@clisp.org>
66667
66668         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66669         for printing 64-bit integers. Needed for mingw.
66670
66671 2007-05-18  Bruno Haible  <bruno@clisp.org>
66672
66673         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66674         gl_FUNC_FREXPL_WORKS.
66675         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66676
66677 2007-05-18  Bruno Haible  <bruno@clisp.org>
66678
66679         * modules/frexpl-nolibm-tests: New file.
66680
66681         * modules/frexpl-nolibm: New file.
66682         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66683
66684 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66687         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66688         GCC 4.2, which otherwise issues a lot of warnings.
66689         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66690         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66691         Likewise.
66692         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66693         * modules/iconv_open (iconv.h): Likewise.
66694         * modules/locale (locale.h): Likewise.
66695         * modules/netinet_in (netinet/in.h): Likewise.
66696         * modules/sys_select (sys_select.h): Likewise.
66697         * modules/sys_socket (sys/socket.h): Likewise.
66698         * modules/sys_stat (sys/stat.h): Likewise.
66699         * modules/sysexits (sysexits.h): Likewise.
66700         * modules/unistd (unistd.h): Likewise.
66701
66702 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66703
66704         * modules/closein-tests (Makefile.am): Distribute
66705         `test-closein.sh'.
66706
66707 2007-05-17  Bruno Haible  <bruno@clisp.org>
66708
66709         * tests/test-printf-posix.output: Renamed from
66710         tests/test-fprintf-posix.out.
66711         * modules/fprintf-posix-tests: Update.
66712         * modules/printf-posix-tests: Update.
66713         * modules/vfprintf-posix-tests: Update.
66714         * modules/vprintf-posix-tests: Update.
66715         * tests/test-fprintf-posix.sh: Update.
66716         * tests/test-printf-posix.sh: Update.
66717         * tests/test-vfprintf-posix.sh: Update.
66718         * tests/test-vprintf-posix.sh: Update.
66719         Reported by Ralf Wildenhues.
66720
66721 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66724         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66725         GCC 4.2, which otherwise issues a lot of warnings.
66726         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66727         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66728         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66729         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66730         it should no longer be needed.
66731         * lib/string_.h: Likewise.
66732         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66733         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66734         * modules/inttypes (inttypes.h): Likewise.
66735         * modules/math (math.h): Likewise.
66736         * modules/search (search.h): Likewise.
66737         * modules/signal (signal.h): Likewise.
66738         * modules/stdint (stdint.h): Likewise.
66739         * modules/stdio (stdio.h): Likewise.
66740         * modules/stdlib (stdlib.h): Likewise.
66741         * modules/string (string.h): Likewise.
66742         * modules/sys_time (sys/time.h): Likewise.
66743         * modules/time (time.h): Likewise.
66744         * modules/wchar (wchar.h): Likewise.
66745         * modules/wctype (wtype.h): Likewise.
66746
66747 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66748
66749         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66750
66751 2007-05-13  Bruno Haible  <bruno@clisp.org>
66752
66753         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66754         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66755         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66756         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66757         (gl_PREREQ_STRTOK_R): Don't require it here.
66758
66759 2007-05-13  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66762         when used in C++ mode.
66763
66764 2007-05-12  Bruno Haible  <bruno@clisp.org>
66765
66766         * lib/linebuffer.h: Tweak doc.
66767         * lib/linebuffer.c: Likewise.
66768
66769 2007-05-12  James Youngman  <jay@gnu.org>
66770
66771         * lib/linebuffer.c (readlinebuffer_delim): New function,
66772         like readlinebuffer, but use a caller-specified delimiter.
66773         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66774         as the delimiter.
66775         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66776
66777 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66778
66779         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66780         * modules/openat (Files): Remove openat-die.c.
66781         (Depends-on): Add openat-die.
66782         * modules/openat-die: New module.
66783
66784 2007-05-06  Bruno Haible  <bruno@clisp.org>
66785
66786         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66787         Update with info about Cygwin.
66788         * doc/functions/fprintf.texi: Update.
66789         * doc/functions/printf.texi: Update.
66790         * doc/functions/snprintf.texi: Update.
66791         * doc/functions/sprintf.texi: Update.
66792         * doc/functions/vfprintf.texi: Update.
66793         * doc/functions/vprintf.texi: Update.
66794         * doc/functions/vsnprintf.texi: Update.
66795         * doc/functions/vsprintf.texi: Update.
66796         Reported by Eric Blake.
66797
66798 2007-05-06  Bruno Haible  <bruno@clisp.org>
66799
66800         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66801         padding ourselves for the floating-point directives.
66802         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66805         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66806         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66807         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66808         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66809         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66810         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66811         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66812         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66813         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66814         * tests/test-snprintf-posix.h (test_function): Also check the width
66815         and some flags in the %f directive.
66816         * tests/test-sprintf-posix.h (test_function): Likewise.
66817         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66818         * tests/test-vasprintf-posix.c (test_function): Likewise.
66819         * doc/functions/fprintf.texi: Update.
66820         * doc/functions/printf.texi: Update.
66821         * doc/functions/snprintf.texi: Update.
66822         * doc/functions/sprintf.texi: Update.
66823         * doc/functions/vfprintf.texi: Update.
66824         * doc/functions/vprintf.texi: Update.
66825         * doc/functions/vsnprintf.texi: Update.
66826         * doc/functions/vsprintf.texi: Update.
66827
66828 2007-05-06  Bruno Haible  <bruno@clisp.org>
66829
66830         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
66831         pass the ' flag character to sprintf or snprintf.
66832         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
66833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
66834         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66835         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
66836         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
66837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66838         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66844         * tests/test-snprintf-posix.h (test_function): Also check the grouping
66845         flag.
66846         * tests/test-sprintf-posix.h (test_function): Likewise.
66847         * tests/test-vasnprintf-posix.c (test_function): Likewise.
66848         * tests/test-vasprintf-posix.c (test_function): Likewise.
66849         * doc/functions/fprintf.texi: Update.
66850         * doc/functions/printf.texi: Update.
66851         * doc/functions/snprintf.texi: Update.
66852         * doc/functions/sprintf.texi: Update.
66853         * doc/functions/vfprintf.texi: Update.
66854         * doc/functions/vprintf.texi: Update.
66855         * doc/functions/vsnprintf.texi: Update.
66856         * doc/functions/vsprintf.texi: Update.
66857
66858 2007-05-01  Bruno Haible  <bruno@clisp.org>
66859
66860         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
66861
66862 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
66865         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
66866
66867 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
66870         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
66871         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
66872
66873 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
66874
66875         * lib/argp-help.c (struct hol_entry): New member `ord'.
66876         (HOL_ENTRY_PTRCMP): Use ord for comparison
66877         (hol_sort): Initialize ord.
66878
66879 2007-05-01  Bruno Haible  <bruno@clisp.org>
66880
66881         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
66882         Reported by Eric Blake.
66883         * doc/gnulib.texi (Function Substitutes): Update.
66884
66885 2007-05-01  Bruno Haible  <bruno@clisp.org>
66886
66887         * doc/functions.texi: Remove file, now redundant through
66888         doc/functions/*.texi.
66889
66890 2007-05-01  Bruno Haible  <bruno@clisp.org>
66891
66892         * modules/argp (Depends-on): Add sleep.
66893
66894 2007-05-01  Bruno Haible  <bruno@clisp.org>
66895
66896         * modules/sleep-tests: New file.
66897         * tests/test-sleep.c: New file.
66898
66899         * modules/sleep: New file.
66900         * lib/sleep.c: New file.
66901         * m4/sleep.m4: New file.
66902         * lib/unistd_.h (sleep): New declaration.
66903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
66904         HAVE_SLEEP.
66905         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
66906         * doc/functions/sleep.texi: Document the sleep module.
66907
66908 2007-05-01  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/sigprocmask.h: Remove file.
66911         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
66912         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
66913         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
66914         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
66915         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
66916         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
66917         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
66918         HAVE_SIGSET_T as a shell variable.
66919         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
66920         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
66921         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
66922         (Depends-on): Add signal. Remove verify.
66923         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
66924         (Include): Mention <signal.h> instead of sigprocmask.h.
66925         * NEWS: Mention the change.
66926         * lib/fatal-signal.c: Don't include sigprocmask.h.
66927
66928 2007-05-01  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/signal: New file.
66931         * lib/signal_.h: New file.
66932         * m4/signal_h.m4: New file.
66933
66934 2007-05-01  Bruno Haible  <bruno@clisp.org>
66935
66936         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
66937         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
66938         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
66939         HAVE_WCTYPE_CTMP_BUG into wctype.h.
66940
66941 2007-05-01  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
66944         configure time.
66945         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
66946         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
66947         * modules/sys_stat (Makefile.am): Substitute their values into
66948         sys/stat.h.
66949
66950 2007-05-01  Bruno Haible  <bruno@clisp.org>
66951
66952         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66953         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66954         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66955
66956 2007-05-01  Bruno Haible  <bruno@clisp.org>
66957
66958         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66959         'assert' module here.
66960
66961 2007-05-01  Bruno Haible  <bruno@clisp.org>
66962
66963         * doc/functions/*.texi: New files.
66964         * doc/functions/google-ranking.txt: New file.
66965         * doc/gnulib.texi (Function Substitutes): New chapter.
66966         (ctime, inet_ntoa): Remove sections.
66967         * doc/ctime.texi: Remove file.
66968         * doc/inet_ntoa.texi: Remove file.
66969         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66970         dependencies.
66971         (%.info): New rule, specifying a --reference-limit.
66972
66973 2007-05-01  Bruno Haible  <bruno@clisp.org>
66974
66975         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66976
66977 2007-05-01  Bruno Haible  <bruno@clisp.org>
66978
66979         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66980         the portability of 'mkdir' to mingw systems.
66981
66982 2007-05-01  Bruno Haible  <bruno@clisp.org>
66983
66984         * doc/headers/google-ranking.txt: New file.
66985
66986 2007-04-30  Eric Blake  <ebb9@byu.net>
66987
66988         Prefer fseeko to fseek.
66989         * modules/getpass (Depends-on): Add fseeko.
66990         * lib/getpass.c (getpass): Use fseeko, not fseek.
66991
66992 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66993
66994         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66995         assumes the sorting is stable, while most qsort implementations
66996         are not.  Use argument addresses to ensure they never compare as
66997         equal.
66998
66999         * tests/test-argp-2.sh (usage-indent test): Fix output
67000         (func_compare): Restore diff options
67001         * tests/test-argp.c: Restore #include "progname.h"
67002
67003 2007-04-29  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67006         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67007         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67008         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67009         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67010         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67011         (TESTS, check_PROGRAMS): Add test-snprintf.
67012         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67013         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67014         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67015         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67016         assertions that fail on HP-UX, OSF/1, or IRIX.
67017         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67018
67019 2007-04-29  Bruno Haible  <bruno@clisp.org>
67020
67021         * MODULES.html.sh (posix_functions): Remove 'contents'.
67022
67023 2007-04-29  Karl Berry  <karl@gnu.org>
67024
67025         * config/srclist.txt (gendocs_template_min): new entry.
67026
67027 2007-04-29  Bruno Haible  <bruno@clisp.org>
67028
67029         Work around fpurge bug on BSD systems.
67030         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67031         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67032         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67033         fpurge to rpl_fpurge if the system already has this function.
67034         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67035         the case where the system already has this function. Correct invariants
67036         on BSD systems.
67037         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67038         BSD systems.
67039
67040 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67041
67042         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67043         proposed by Sven Verdoolaege.
67044
67045         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67046         options.
67047         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67048         (usage and help tests): Update
67049
67050 2007-04-29  Bruno Haible  <bruno@clisp.org>
67051
67052         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67053         Print more information in case of failure. Disable a test on BeOS.
67054
67055 2007-04-29  Bruno Haible  <bruno@clisp.org>
67056
67057         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67058         This helps debugging on systems on which no gdb is available.
67059
67060 2007-04-29  Bruno Haible  <bruno@clisp.org>
67061
67062         * lib/freading.h: Improve comments.
67063         * lib/fwriting.h: Likewise.
67064         * tests/test-freading.c (main): Don't check freading immediately after
67065         repositioning. Needed for glibc.
67066
67067 2007-04-29  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/freading.c (freading): Trivial simplification.
67070
67071 2007-04-28  Bruno Haible  <bruno@clisp.org>
67072
67073         * tests/test-fwriting.c (main): Also test the interaction between
67074         fflush and fwriting.
67075         * modules/fwriting-tests (Depends-on): Add fflush.
67076
67077         * tests/test-freading.c (main): Also test the interaction between
67078         fflush and freading.
67079         * modules/freading-tests (Depends-on): Add fflush.
67080
67081 2007-04-28  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67084         fseeko and ftello.
67085         Suggested by Eric Blake.
67086
67087 2007-04-28  Jim Meyering  <jim@meyering.net>
67088
67089         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67090         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67091         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67092
67093 2007-04-27  Eric Blake  <ebb9@byu.net>
67094
67095         * doc/headers/assert.texi (assert.h): Document assert module use.
67096
67097 2007-04-27  Bruno Haible  <bruno@clisp.org>
67098
67099         * doc/headers/*.texi: New files.
67100         * doc/gnulib.texi (Header File Substitutes): New chapter.
67101         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67102         dependencies.
67103         (standards.info ,standards.html, standards.dvi): Update dependencies.
67104         (mostlyclean, clean): New targets.
67105
67106 2007-04-27  Bruno Haible  <bruno@clisp.org>
67107
67108         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67109         * modules/sysexits (Files, Makefile.am): Update.
67110
67111         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67112         * modules/sys_socket (Files, Makefile.am): Update.
67113
67114         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67115         * modules/sys_stat (Files, Makefile.am): Update.
67116
67117 2007-04-27  Eric Blake  <ebb9@byu.net>
67118
67119         * lib/freading.h: Improve comments.
67120         * lib/fwriting.h: Likewise.
67121         * lib/fflush.c: Likewise.
67122
67123         Fix closein for mingw.
67124         * modules/closein-tests: Add tests for closein.
67125         * tests/test-closein.c: New file.
67126         * tests/test-closein.sh: Likewise.
67127         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67128         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67129
67130 2007-04-27  Bruno Haible  <bruno@clisp.org>
67131
67132         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67133         version is < 6.
67134         * lib/math_.h [__DECC]: Likewise.
67135         * lib/stdio_.h [__DECC]: Likewise.
67136         * lib/stdlib_.h [__DECC]: Likewise.
67137         * lib/string_.h [__DECC]: Likewise.
67138         * lib/time_.h [__DECC]: Likewise.
67139         * lib/wchar_.h [__DECC]: Likewise.
67140         * lib/wctype_.h [__DECC]: Likewise.
67141
67142 2007-04-27  Bruno Haible  <bruno@clisp.org>
67143
67144         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67145
67146 2007-04-27  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/fflush.c: Add comments.
67149         * modules/fpurge-tests (Depends-on): Add fflush.
67150         * modules/freadable-tests (Depends-on): Likewise.
67151         * modules/fwritable-tests (Depends-on): Likewise.
67152
67153 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67154
67155         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67156         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67157         Report by Bruno Haible <bruno@clisp.org>.
67158
67159 2007-04-26  Eric Blake  <ebb9@byu.net>
67160
67161         Fix fflush on mingw.
67162         * modules/fflush (Depends-on): Add freading.
67163         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67164         but unread data.
67165
67166 2007-04-26  Eric Blake  <ebb9@byu.net>
67167         and Bruno Haible  <bruno@clisp.org>
67168
67169         Implement freading and fwriting.
67170         * lib/freading.c: New file.
67171         * lib/freading.h: Likewise.
67172         * m4/freading.m4: Likewise.
67173         * modules/freading: Likewise.
67174         * modules/freading-tests: Likewise.
67175         * tests/test-freading.c: Likewise.
67176         * lib/fwriting.c: New file.
67177         * lib/fwriting.h: Likewise.
67178         * m4/fwriting.m4: Likewise.
67179         * modules/fwriting: Likewise.
67180         * modules/fwriting-tests: Likewise.
67181         * tests/test-fwriting.c: Likewise.
67182         * MODULES.html.sh (File stream based Input/Output): Mention them.
67183
67184 2007-04-26  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67187         'long' when we assume it.
67188         Suggested by Eric Blake.
67189
67190 2007-04-26  Bruno Haible  <bruno@clisp.org>
67191
67192         Ensure fseeko, ftello are declared on glibc systems.
67193         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67194         * modules/fseeko (configure.ac-early): Likewise.
67195         * modules/ftello (configure.ac-early): Likewise.
67196         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67197         AC_FUNC_FSEEKO for this.
67198         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67199         (gl_CHECK_FSEEKO): Remove macro.
67200
67201 2007-04-26  Bruno Haible  <bruno@clisp.org>
67202
67203         * tests/test-fflush.c (main): Also check the ftell result after
67204         fflush and fseek/fseeko.
67205         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67206         file descriptor position cache in the stream.
67207         * lib/fseeko.c (rpl_fseeko): Likewise.
67208
67209 2007-04-26  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/fflush-tests (Depends-on): Add fseeko.
67212
67213 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67214             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67215
67216         * lib/argz_.h: ensure error_t definition is obtained in same
67217         mechanism system argz.h would have.
67218         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67219         argz facilities are known bad.  Err on the side of caution if
67220         cross-compiling.
67221
67222 2007-04-25  Eric Blake  <ebb9@byu.net>
67223
67224         * lib/fpurge.c (includes): Use stdlib.h for free.
67225         * tests/test-fflush.c (main): Also test fflush-fseeko.
67226
67227 2007-04-25  Bruno Haible  <bruno@clisp.org>
67228
67229         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67230         * lib/fseeko.c: New file.
67231         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67232         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67233         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67234         gl_FUNC_FSEEKO.
67235         (gl_FUNC_FSEEKO): Invoke it.
67236         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67237         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67238         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67239
67240 2007-04-25  Bruno Haible  <bruno@clisp.org>
67241
67242         * modules/fflush (Depends-on): Add ftello.
67243
67244 2007-04-25  Bruno Haible  <bruno@clisp.org>
67245
67246         * modules/ftello-tests: New file.
67247         * tests/test-ftello.c: New file.
67248
67249         * modules/ftello: New file.
67250         * m4/ftello.m4: New file.
67251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67252         HAVE_FTELLO.
67253         * lib/stdio_.h (ftello): New declaration.
67254         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67255         HAVE_FTELLO.
67256
67257 2007-04-25  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/fseeko-tests: New file.
67260         * tests/test-fseeko.c: New file.
67261
67262         * modules/fseeko: New file.
67263         * m4/fseeko.m4: New file.
67264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67265         HAVE_FSEEKO.
67266         * lib/stdio_.h (fseeko): New declaration.
67267         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67268         HAVE_FSEEKO.
67269
67270 2007-04-25  Bruno Haible  <bruno@clisp.org>
67271
67272         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67273
67274 2007-04-25  Bruno Haible  <bruno@clisp.org>
67275
67276         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67277         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67278         * tests/test-unistd.c: Likewise.
67279         * tests/test-fcntl.c: Likewise.
67280
67281 2007-04-23  Eric Blake  <ebb9@byu.net>
67282
67283         * lib/fflush.c: Fix missing include.
67284         Reported by Bruno Haible.
67285
67286 2007-04-23  Bruno Haible  <bruno@clisp.org>
67287
67288         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67289         Reported by Eric Blake.
67290
67291 2007-04-23  Bruno Haible  <bruno@clisp.org>
67292
67293         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67294
67295 2007-04-23  Bruno Haible  <bruno@clisp.org>
67296
67297         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67298
67299 2007-04-23  Bruno Haible  <bruno@clisp.org>
67300
67301         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67302         Needed on HP-UX 11.
67303
67304 2007-04-16  Eric Blake  <ebb9@byu.net>
67305
67306         Make fflush rely on fpurge.
67307         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67308         open coding all variants.
67309         * modules/fflush (Depends-on): Add fpurge and unistd.
67310         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67311         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67312
67313         Fix --with-tests compilation on cygwin.
67314         * modules/argmatch-tests (Makefile.am): List gnulib library first
67315         in LDADD.
67316         * modules/argp-tests (Makefile.am): Likewise.
67317         * modules/array-list-tests (Makefile.am): Likewise.
67318         * modules/array-oset-tests (Makefile.am): Likewise.
67319         * modules/avltree-list-tests (Makefile.am): Likewise.
67320         * modules/avltree-oset-tests (Makefile.am): Likewise.
67321         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67322         * modules/carray-list-tests (Makefile.am): Likewise.
67323         * modules/dirname-tests (Makefile.am): Likewise.
67324         * modules/frexp-tests (Makefile.am): Likewise.
67325         * modules/isnanl-tests (Makefile.am): Likewise.
67326         * modules/linked-list-tests (Makefile.am): Likewise.
67327         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67328         * modules/lock-tests (Makefile.am): Likewise.
67329         * modules/rbtree-list-tests (Makefile.am): Likewise.
67330         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67331         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67332         * modules/tls-tests (Makefile.am): Likewise.
67333         * modules/tsearch-tests (Makefile.am): Likewise.
67334         * modules/xvasprintf-tests (Makefile.am): Likewise.
67335
67336         Fix fpurge for cygwin.
67337         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67338         value.
67339         * modules/fpurge-tests (Depends-on): Clean up trash.
67340
67341 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67342
67343         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67344
67345         * m4/autobuild.m4: Re-indent.
67346
67347 2007-04-13  Bruno Haible  <bruno@clisp.org>
67348
67349         * modules/fpurge-tests: New file.
67350         * tests/test-fpurge.c: New file.
67351
67352         * modules/fpurge: New file.
67353         * lib/fpurge.h: New file.
67354         * lib/fpurge.c: New file.
67355         * m4/fpurge.m4: New file.
67356
67357 2007-04-13  Bruno Haible  <bruno@clisp.org>
67358
67359         * modules/fbufmode-tests: New file.
67360         * tests/test-fbufmode.c: New file.
67361
67362         * modules/fbufmode: New file.
67363         * lib/fbufmode.h: New file.
67364         * lib/fbufmode.c: New file.
67365         * m4/fbufmode.m4: New file.
67366
67367 2007-04-13  Bruno Haible  <bruno@clisp.org>
67368
67369         * modules/fwritable-tests: New file.
67370         * tests/test-fwritable.c: New file.
67371
67372         * modules/fwritable: New file.
67373         * lib/fwritable.h: New file.
67374         * lib/fwritable.c: New file.
67375         * m4/fwritable.m4: New file.
67376
67377 2007-04-13  Bruno Haible  <bruno@clisp.org>
67378
67379         * modules/freadable-tests: New file.
67380         * tests/test-freadable.c: New file.
67381
67382         * modules/freadable: New file.
67383         * lib/freadable.h: New file.
67384         * lib/freadable.c: New file.
67385         * m4/freadable.m4: New file.
67386
67387 2007-04-13  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67390         MOSTLYCLEANFILES.
67391
67392 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67395         gzip bootstrap.conf to avoid dragging in i18n machinery.
67396         (gnulib_tool_option): Use it.
67397
67398 2007-04-13  Bruno Haible  <bruno@clisp.org>
67399
67400         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67401         %F directives.
67402         * tests/test-vasprintf-posix.c (test_function): Likewise.
67403         * tests/test-snprintf-posix.h (test_function): Likewise.
67404         * tests/test-sprintf-posix.h (test_function): Likewise.
67405         * tests/test-fprintf-posix.h (test_function): Likewise.
67406         * tests/test-printf-posix.h (test_function): Likewise.
67407         * tests/test-fprintf-posix.out: Likewise.
67408
67409 2007-04-13  Bruno Haible  <bruno@clisp.org>
67410
67411         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67412         * modules/tls-tests (configure.ac): Likewise.
67413         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67414
67415 2007-04-13  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/tls.c (glthread_tls_get): Fix return type.
67418         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67419
67420 2007-04-12  Eric Blake  <ebb9@byu.net>
67421
67422         * modules/gettime (Depends-on): Remove gettime.
67423         Reported by Dmitry V. Levin.
67424
67425 2007-04-12  Bruno Haible  <bruno@clisp.org>
67426
67427         * modules/fflush (Include): Mention <stdio.h>.
67428         * modules/strtoimax (Include): Mention <inttypes.h>.
67429         * modules/strtoumax (Include): Likewise.
67430
67431 2007-04-12  Eric Blake  <ebb9@byu.net>
67432
67433         * .cvsignore: New file.
67434         * .gitignore: Likewise.
67435
67436 2007-04-12  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67439         not before, since $(LDADD) often contains libgnu.a.
67440         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67441         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67442         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67443         Needed on Cygwin.
67444
67445 2007-04-12  Eric Blake  <ebb9@byu.net>
67446
67447         Work around glibc's failure to flush stdin on fclose.
67448         * lib/closein.c (close_stdin): Flush stdin before closing.
67449
67450         Work around glibc's failure to reset seekable stdin on exit.
67451         * modules/closein: New module.
67452         * lib/closein.c: New file.
67453         * lib/closein.h: Likewise.
67454         * m4/closein.m4: Likewise.
67455         * MODULES.html.sh (File stream based Input/Output): Document it.
67456
67457 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67458
67459         * gnulib-tool: Rename generated 'autobuild' script to
67460         'do-autobuild' in --create-megatestdir output.
67461
67462         * doc/gnulib.texi (Build robot for gnulib): Fix.
67463
67464 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67465
67466         * modules/sysexits (Depends-on): Add absolute-header.
67467
67468 2007-04-12  Eric Blake  <ebb9@byu.net>
67469
67470         No need to preserve errno on success.
67471         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67472         Reported by Bruno Haible.
67473
67474 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67475
67476         * MODULES.html.sh (Support for maintaining and releasing
67477         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67478
67479 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67480
67481         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67482
67483 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67484
67485         * modules/autobuild: New module.
67486
67487         * m4/autobuild.m4: New file.
67488
67489 2007-04-11  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67492         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67493         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67494         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67495         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67496         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67497         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67498         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67499         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67500         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67510         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67519         Reported by Eric Blake.
67520
67521 2007-04-11  Bruno Haible  <bruno@clisp.org>
67522
67523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67524
67525 2007-04-10  Bruno Haible  <bruno@clisp.org>
67526
67527         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67528         for NaN and Infinity. Needed on FreeBSD 6.1.
67529         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67530         regarding results for "%010a" of Infinity and NaN.
67531         * tests/test-vasprintf-posix.c (test_function): Likewise.
67532         * tests/test-snprintf-posix.h (test_function): Likewise.
67533         * tests/test-sprintf-posix.h (test_function): Likewise.
67534         * tests/test-fprintf-posix.h (test_function): Likewise.
67535         * tests/test-printf-posix.h (test_function): Likewise.
67536         * tests/test-fprintf-posix.out: Likewise.
67537
67538 2007-04-10  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/locale-tests: New file.
67541         * tests/test-locale.c: New file.
67542
67543         * modules/locale: New file.
67544         * lib/locale_.h: New file.
67545         * m4/locale_h.m4: New file.
67546
67547 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67548             Bruno Haible  <bruno@clisp.org>
67549
67550         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67551         be determined, test for availability of the copysignf, copysign,
67552         copysignl functions.
67553         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67554         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67555         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67556
67557 2007-04-09  Eric Blake  <ebb9@byu.net>
67558
67559         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67560         * modules/stdio (Makefile.am): Support fflush.
67561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67562         * modules/fflush: New file.
67563         * lib/fflush.c: Likewise.
67564         * m4/fflush.m4: Likewise.
67565         * modules/fflush-tests: New test.
67566         * tests/test-fflush.c: Likewise.
67567         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67568
67569 2007-04-06  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67572         (VASNPRINTF): Use signbit for faster determination whether to print a
67573         minus sign.
67574         * modules/vasnprintf (Files): Remove lib/float+.h.
67575         * modules/fprintf-posix (Depends-on): Add signbit.
67576         * modules/snprintf-posix (Depends-on): Likewise.
67577         * modules/sprintf-posix (Depends-on): Likewise.
67578         * modules/vasnprintf-posix (Depends-on): Likewise.
67579         * modules/vasprintf-posix (Depends-on): Likewise.
67580         * modules/vfprintf-posix (Depends-on): Likewise.
67581         * modules/vsnprintf-posix (Depends-on): Likewise.
67582         * modules/vsprintf-posix (Depends-on): Likewise.
67583
67584 2007-04-06  Bruno Haible  <bruno@clisp.org>
67585
67586         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67587         * tests/test-frexpl.c (main): Likewise.
67588         * tests/test-ldexpl.c (main): Likewise.
67589         * modules/frexp-tests (Depends-on): Add signbit.
67590         * modules/frexpl-tests (Depdends-on): Likewise.
67591         * modules/ldexpl-tests (Depdends-on): Likewise.
67592
67593 2007-04-06  Bruno Haible  <bruno@clisp.org>
67594
67595         * modules/signbit-tests: New file.
67596         * tests/test-signbit.c: New file.
67597
67598         * modules/signbit: New file.
67599         * lib/signbitf.c: New file.
67600         * lib/signbitd.c: New file.
67601         * lib/signbitl.c: New file.
67602         * m4/signbit.m4: New file.
67603         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67604         (signbit): New macro.
67605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67606         REPLACE_SIGNBIT.
67607         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67608         REPLACE_FREXPL into math.h.
67609
67610 2007-04-06  Bruno Haible  <bruno@clisp.org>
67611
67612         * modules/isnanf-nolibm-tests: New file.
67613         * tests/test-isnanf.c: New file.
67614
67615         * modules/isnanf-nolibm: New file.
67616         * lib/isnanf.h: New file.
67617         * lib/isnanf.c: New file.
67618         * lib/isnan.c: Consider the USE_FLOAT macro.
67619         * m4/isnanf.m4: New file.
67620
67621 2007-04-06  Bruno Haible  <bruno@clisp.org>
67622
67623         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67624         (Link): New section.
67625
67626         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67627
67628 2007-04-06  Bruno Haible  <bruno@clisp.org>
67629
67630         Assume the 'long double' type.
67631         * m4/longdouble.m4: Remove file.
67632         * config/srclist.txt: Don't mention longdouble.m4.
67633         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67634         * lib/float+.h: Likewise.
67635         * lib/frexp.c: Likewise.
67636         * lib/printf-args.h: Likewise.
67637         * lib/printf-args.c: Likewise.
67638         * lib/printf-frexp.c: Likewise.
67639         * lib/printf-parse.c: Likewise.
67640         * lib/vasnprintf.c: Likewise.
67641         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67642         * m4/intl.m4: Likewise.
67643         * m4/isnanl.m4: Likewise.
67644         * m4/printf.m4: Likewise.
67645         * m4/printf-frexpl.m4: Likewise.
67646         * m4/vasnprintf.m4: Likewise.
67647         * modules/allocsa (Files): Remove m4/longdouble.m4.
67648         * modules/gettext (Files): Likewise.
67649         * modules/relocatable-prog-wrapper (Files): Likewise.
67650         * modules/vasnprintf (Files): Likewise.
67651         * modules/isnanl (Files): Likewise.
67652         (Include): Simplify.
67653         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67654         (Include): Simplify.
67655         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67656         (Include): Simplify.
67657         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67658         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67659         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67660         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67661         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67662         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67663         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67665         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67667         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67669         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67670         * tests/test-isnanl.c: Likewise.
67671         * tests/test-snprintf-posix.h: Likewise.
67672         * tests/test-sprintf-posix.h: Likewise.
67673         * tests/test-vasnprintf-posix.c: Likewise.
67674         * tests/test-vasnprintf-posix2.c: Likewise.
67675         * tests/test-vasprintf-posix.c: Likewise.
67676
67677 2007-04-06  Bruno Haible  <bruno@clisp.org>
67678
67679         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67680         * lib/math_.h [__DECC]: Include the overridden include file through
67681         #include_next, outside the double-inclusion guard.
67682         * lib/stdio_.h [__DECC]: Likewise.
67683         * lib/stdlib_.h [__DECC]: Likewise.
67684         * lib/string_.h [__DECC]: Likewise.
67685         * lib/time_.h [__DECC]: Likewise.
67686         * lib/wchar_.h [__DECC]: Likewise.
67687         * lib/wctype_.h [__DECC]: Likewise.
67688         * lib/inttypes_.h [__DECC]: Likewise.
67689         Reported by Albert Chin <china@thewrittenword.com> in
67690         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67691
67692 2007-04-04  Eric Blake  <ebb9@byu.net>
67693
67694         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67695         1.5.x.
67696
67697 2007-04-04  Bruno Haible  <bruno@clisp.org>
67698
67699         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67700         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67701
67702 2007-04-04  Bruno Haible  <bruno@clisp.org>
67703
67704         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67705         results for "%010a" of Infinity and NaN.
67706         * tests/test-vasprintf-posix.c (test_function): Likewise.
67707         * tests/test-snprintf-posix.h (test_function): Likewise.
67708         * tests/test-sprintf-posix.h (test_function): Likewise.
67709         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67710         * tests/test-printf-posix.h (test_function): Likewise.
67711         * tests/test-fprintf-posix.out: Update.
67712         Needed for FreeBSD 6.1.
67713
67714 2007-04-04  Bruno Haible  <bruno@clisp.org>
67715
67716         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67717         directly used by the gnulib modules nor by gnulib-tool.
67718
67719 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * DEPENDENCIES: Give overall description of version dependency
67722         desirability.  Use more-typical names for apps.
67723         Add shell, coreutils, diffutils, grep, tar, gzip.
67724
67725 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67726
67727         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67728
67729 2007-04-04  Karl Berry  <karl@gnu.org>
67730
67731         * MODULES.html.sh (func_module): missing '.
67732
67733 2007-04-03  Bruno Haible  <bruno@clisp.org>
67734
67735         * modules/argmatch-tests (Makefile.am): New variable
67736         test_argmatch_LDADD.
67737         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67738         * modules/array-list-tests (Makefile.am): New variable
67739         test_array_list_LDADD.
67740         * modules/array-oset-tests (Makefile.am): New variable
67741         test_array_oset_LDADD.
67742         * modules/avltree-list-tests (Makefile.am): New variable
67743         test_avltree_list_LDADD.
67744         * modules/avltree-oset-tests (Makefile.am): New variable
67745         test_avltree_oset_LDADD.
67746         * modules/avltreehash-list-tests (Makefile.am): New variable
67747         test_avltreehash_list_LDADD.
67748         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67749         test_canonicalize_lgpl_LDADD.
67750         * modules/carray-list-tests (Makefile.am): New variable
67751         test_carray_list_LDADD.
67752         * modules/dirname-tests (Makefile.am): New variable
67753         test_dirname_LDADD.
67754         * modules/linked-list-tests (Makefile.am): New variable
67755         test_linked_list_LDADD.
67756         * modules/linkedhash-list-tests (Makefile.am): New variable
67757         test_linkedhash_list_LDADD.
67758         * modules/rbtree-list-tests (Makefile.am): New variable
67759         test_rbtree_list_LDADD.
67760         * modules/rbtree-oset-tests (Makefile.am): New variable
67761         test_rbtree_oset_LDADD.
67762         * modules/rbtreehash-list-tests (Makefile.am): New variable
67763         test_rbtreehash_list_LDADD.
67764         * modules/xvasprintf-tests (Makefile.am): New variable
67765         test_xvasprintf_LDADD.
67766         Reported by Eric Blake.
67767
67768 2007-04-03  Eric Blake  <ebb9@byu.net>
67769
67770         * DEPENDENCIES: Weaken m4 requirements.
67771
67772 2007-04-03  Bruno Haible  <bruno@clisp.org>
67773
67774         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67775         * modules/isnanl-tests (configure.ac): Likewise.
67776
67777 2007-04-03  Ben Pfaff  <blp@gnu.org>
67778
67779         * modules/iconv_open: Add $(srcdir)/ to source directory
67780         references in Makefile fragments that call gperf, to fix VPATH
67781         builds.
67782
67783 2007-04-03  Bruno Haible  <bruno@clisp.org>
67784
67785         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67786         * lib/ldexpl.c: Undo last change.
67787
67788 2007-04-03  Bruno Haible  <bruno@clisp.org>
67789
67790         * modules/printf-frexpl (Depends-on): Undo last change.
67791         (Files): Add m4/ldexpl.m4.
67792
67793 2007-04-03  Bruno Haible  <bruno@clisp.org>
67794
67795         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67796         * modules/isnanl (Link): New section.
67797
67798         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67799         * modules/frexp (Link): New section.
67800
67801         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67802         * modules/frexpl (Link): New section.
67803
67804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67805         * modules/ldexpl (Link): New section.
67806
67807 2007-04-03  Bruno Haible  <bruno@clisp.org>
67808
67809         * modules/TEMPLATE-EXTENDED: New file.
67810         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67811
67812 2007-04-03  Bruno Haible  <bruno@clisp.org>
67813
67814         * DEPENDENCIES: New file.
67815         Suggested by Simon Josefsson.
67816
67817 2007-04-03  Bruno Haible  <bruno@clisp.org>
67818
67819         * doc/gnulib.texi: Escape @.
67820
67821 2007-04-03  James Youngman  <jay@gnu.org>
67822         and Paul Eggert  <eggert@cs.ucla.edu>
67823
67824         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
67825         birthtime on all systems that have birthtime, not just those which
67826         use st_birthtimensec rather than st_birthtim.  Putting zero in
67827         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
67828         that the birth time is not available for files on an NFS mount.
67829
67830 2007-04-03  Simon Josefsson  <simon@josefsson.org>
67831
67832         * modules/memxor: Move back from crypto/, suggested by Bruno.
67833         * modules/crypto/hmac-sha1: Fix memxor dependency.
67834
67835         * modules/crypto/gc: Moved from ../.
67836
67837 2007-04-02  Eric Blake  <ebb9@byu.net>
67838
67839         * lib/ldexpl.c (includes): Avoid libm.
67840
67841         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
67842
67843 2007-04-02  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
67846         on IRIX.
67847
67848 2007-04-02  Bruno Haible  <bruno@clisp.org>
67849
67850         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
67851         x86 or x86_64 platforms running MacOS X.
67852         Reported by Ryan Schmidt <@ryandesign.com>.
67853
67854 2007-04-02  Bruno Haible  <bruno@clisp.org>
67855
67856         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
67857         i386.
67858
67859 2007-04-01  Simon Josefsson  <simon@josefsson.org>
67860
67861         * modules/crypto/arcfour: Moved from ../.
67862         * modules/crypto/arcfour-tests: Moved from ../.
67863         * modules/crypto/arctwo: Moved from ../.
67864         * modules/crypto/arctwo-tests: Moved from ../.
67865         * modules/crypto/des: Moved from ../.
67866         * modules/crypto/des-tests: Moved from ../.
67867         * modules/crypto/gc-arcfour: Moved from ../.
67868         * modules/crypto/gc-arcfour-tests: Moved from ../.
67869         * modules/crypto/gc-arctwo: Moved from ../.
67870         * modules/crypto/gc-arctwo-tests: Moved from ../.
67871         * modules/crypto/gc-des: Moved from ../.
67872         * modules/crypto/gc-des-tests: Moved from ../.
67873         * modules/crypto/gc-hmac-md5: Moved from ../.
67874         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
67875         * modules/crypto/gc-hmac-sha1: Moved from ../.
67876         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
67877         * modules/crypto/gc-md2: Moved from ../.
67878         * modules/crypto/gc-md2-tests: Moved from ../.
67879         * modules/crypto/gc-md4: Moved from ../.
67880         * modules/crypto/gc-md4-tests: Moved from ../.
67881         * modules/crypto/gc-md5: Moved from ../.
67882         * modules/crypto/gc-md5-tests: Moved from ../.
67883         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
67884         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
67885         * modules/crypto/gc-random: Moved from ../.
67886         * modules/crypto/gc-rijndael: Moved from ../.
67887         * modules/crypto/gc-rijndael-tests: Moved from ../.
67888         * modules/crypto/gc-sha1: Moved from ../.
67889         * modules/crypto/gc-sha1-tests: Moved from ../.
67890         * modules/crypto/gc-tests: Moved from ../.
67891         * modules/crypto/hmac-md5: Moved from ../.
67892         * modules/crypto/hmac-md5-tests: Moved from ../.
67893         * modules/crypto/hmac-sha1: Moved from ../.
67894         * modules/crypto/hmac-sha1-tests: Moved from ../.
67895         * modules/crypto/md2: Moved from ../.
67896         * modules/crypto/md2-tests: Moved from ../.
67897         * modules/crypto/md4: Moved from ../.
67898         * modules/crypto/md4-tests: Moved from ../.
67899         * modules/crypto/md5: Moved from ../.
67900         * modules/crypto/md5-tests: Moved from ../.
67901         * modules/crypto/memxor: Moved from ../.
67902         * modules/crypto/rijndael: Moved from ../.
67903         * modules/crypto/rijndael-tests: Moved from ../.
67904         * modules/crypto/sha1: Moved from ../.
67905
67906 2007-03-30  James Youngman  <jay@gnu.org>
67907
67908         * tests/test-stat-time.c (prepare_test): use chmod() rather than
67909         rename() to change the ctime of a file (because ctime is unaffected
67910         by rename on jfs2 on AIX 5.1).
67911         (main): Start by doing cleanup, in case a previous run failed leaving
67912         test files behind.
67913
67914 2007-03-31  Bruno Haible  <bruno@clisp.org>
67915
67916         Support old proprietary implementations of iconv.
67917         * modules/iconv_open: New file.
67918         * lib/iconv_.h: New file.
67919         * m4/iconv_h.m4: New file.
67920         * lib/iconv_open.c: New file.
67921         * lib/iconv_open-aix.gperf: New file.
67922         * lib/iconv_open-hpux.gperf: New file.
67923         * lib/iconv_open-irix.gperf: New file.
67924         * lib/iconv_open-osf.gperf: New file.
67925         * m4/iconv_open.m4: New file.
67926         * modules/linebreak (Depends-on): Add iconv_open.
67927         * modules/striconv (Depends-on): Likewise.
67928         * modules/striconveh (Depends-on): Likewise.
67929         * modules/unicodeio (Depends-on): Likewise.
67930         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
67931         (iconv_t)(-1).
67932         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
67933         conversion if cd is (iconv_t)(-1).
67934         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
67935         is not possible.
67936
67937 2007-03-31  Bruno Haible  <bruno@clisp.org>
67938
67939         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67940         work on Solaris either. Protect also second use of "autodetect_jp".
67941
67942 2007-03-31  Bruno Haible  <bruno@clisp.org>
67943
67944         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
67945         the function is not present.
67946
67947 2007-03-31  Bruno Haible  <bruno@clisp.org>
67948
67949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67950         the function is not present.
67951
67952 2007-03-31  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67955         a bug in HP-UX iconv_open().
67956
67957 2007-03-31  Bruno Haible  <bruno@clisp.org>
67958
67959         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67960         (Mathematics <math.h>): New section, add fpieee.
67961         (Input/output <stdio.h>): Add fseterr.
67962         (Mathematics <math.h>): New section, add printf-frexp.
67963         (Container data structures): Add sublist.
67964         (Core language properties): Add fpucw, inline.
67965         (Functions for greatest-width integer types <inttypes.h>): Add
67966         imaxabs, imaxdiv, inttypes.
67967         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67968         isnanl-nolibm, ldexp.
67969         (Mathematics <math.h>): New section, add printf-frexpl.
67970         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67971         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67972         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67973         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67974         (Unicode string functions): Add unistr/u*-mbtoucr.
67975         (Java): Add javacomp-script, javaexec-script.
67976         (C#): Add csharpcomp-script, csharpexec-script.
67977         (Support for building libraries and executables): Add havelib,
67978         relocatable-*.
67979         (Support for maintaining and releasing projects): Renamed from
67980         'Support for maintaining and release projects'. Add announce-gen.
67981
67982 2007-03-31  Bruno Haible  <bruno@clisp.org>
67983
67984         * README: Talk primarily about git.
67985         (git and CVS): Renamed from CVS.
67986         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67987         gnulib is available through git.
67988         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67989
67990 2007-03-30  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67993         * lib/poll_.h: Likewise.
67994         * lib/stat_.h: Likewise.
67995         * lib/sys_time_.h: Likewise.
67996         * lib/sysexit_.h: Likewise.
67997         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67998         * lib/stdbool_.h: Likewise.
67999         * lib/byteswap_.h: Add double-inclusion guard.
68000
68001 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68002
68003         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68004
68005 2007-03-30  Karl Berry  <karl@gnu.org>
68006
68007         * config/srclist-update: double space after USA in the license
68008         substitution, since that's how it's usually (?) written.
68009
68010 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68013         reported by Bruno Haible.
68014
68015 2007-03-29  Bruno Haible  <bruno@clisp.org>
68016
68017         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68018         a bug in AIX iconv().
68019
68020 2007-03-29  Bruno Haible  <bruno@clisp.org>
68021
68022         * modules/ldexpl-tests: New file.
68023         * tests/test-ldexpl.c: New file.
68024
68025 2007-03-29  Bruno Haible  <bruno@clisp.org>
68026
68027         * lib/ldexpl.c: Include fpucw.h.
68028         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68029         multiplication.
68030         * modules/ldexpl (Depends-on): Add fpucw.
68031
68032 2007-03-29  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/ldexpl: New file.
68035         * m4/ldexpl.m4: New file.
68036         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68037         set.
68038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68039         REPLACE_LDEXPL.
68040         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68041         REPLACE_LDEXPL.
68042         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68043         gl_FUNC_LDEXPL_WORKS.
68044         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68045         * modules/mathl (Files): Remove lib/ldexpl.c.
68046         (Depends-on): Add ldexpl.
68047
68048 2007-03-29  Bruno Haible  <bruno@clisp.org>
68049
68050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68051
68052 2007-03-29  Bruno Haible  <bruno@clisp.org>
68053
68054         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68055         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68056         and possibly also HP-UX.
68057         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68058         work on AIX, IRIX, HP-UX, OSF/1.
68059         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68060         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68061         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68062         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68063         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68064         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68065
68066 2007-03-29  Bruno Haible  <bruno@clisp.org>
68067
68068         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68069
68070 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68071
68072         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68073         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68074
68075 2007-03-29  Eric Blake  <ebb9@byu.net>
68076
68077         * lib/acl-internal.h: Remove redundant include.
68078         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68079         Cygwin when a file is locked.
68080
68081 2007-03-29  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68084         file.
68085         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68086
68087 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68088
68089         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68090         try to remove a parent directory if the child couldn't be removed
68091         (except for the first rmdir, which could fail because the child
68092         doesn't exist).  Problem reported by Jeff Blaine in
68093         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68094
68095 2007-03-28  Bruno Haible  <bruno@clisp.org>
68096
68097         * lib/striconveh.c (utf8conv_carefully): New function.
68098         (mem_cd_iconveh_internal): Invoke it.
68099
68100 2007-03-28  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68103         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68104         input.
68105         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68106         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68107         unistr/u8-uctomb.
68108
68109 2007-03-28  Bruno Haible  <bruno@clisp.org>
68110
68111         * modules/unistr/u8-mbtoucr: New file.
68112         * lib/unistr/u8-mbtoucr.c: New file.
68113         * modules/unistr/u16-mbtoucr: New file.
68114         * lib/unistr/u16-mbtoucr.c: New file.
68115         * modules/unistr/u16-mbtoucr: New file.
68116         * lib/unistr/u16-mbtoucr.c: New file.
68117         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68118
68119 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68120             Bruno Haible  <bruno@clisp.org>
68121
68122         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68123         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68124         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68125
68126         * m4/stdio_h.m4: Add stubs for vasprintf too.
68127
68128         * modules/stdio: Support vasprintf in sed command.
68129
68130         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68131         vasprintf.h.  Add stdio module indicator.
68132
68133         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68134         vasprintf.h.
68135
68136         * lib/vasprintf.h: File removed.
68137
68138         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68139         * lib/vasprintf.c: Ditto.
68140         * lib/xvasprintf.c: Ditto.
68141         * tests/test-vasprintf-posix.c: Ditto.
68142         * tests/test-vasprintf.c: Ditto.
68143
68144 2007-03-27  Bruno Haible  <bruno@clisp.org>
68145
68146         Make vasnprintf multithread-safe.
68147         * lib/vasnprintf.c (decimal_point_char): New function.
68148         (VASNPRINTF): Use it.
68149         Suggested by Simon Josefsson.
68150
68151 2007-03-27  Eric Blake  <ebb9@byu.net>
68152
68153         Support sub-second birthtime on cygwin.
68154         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68155         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68156         (get_stat_birthtime): Also work with st_birthtim.
68157
68158 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68159
68160         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68161         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68162         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68163         (get_stat_birthtime_ns): Simplify compile-time tests.
68164         (get_stat_birthtime): Change the API to look like
68165         get_stat_mtime etc., except return a negative tv_nsec on error.
68166         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68167         Don't check for "spare" fields.
68168         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68169         or for struct stat.st_birthtime, as these tests aren't used.
68170         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68171
68172 2007-03-27  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/stat-time.h: Include <sys/stat.h>.
68175
68176 2007-03-27  James Youngman  <jay@gnu.org>
68177
68178         * lib/stat-time.h (get_stat_birthtime): New function for
68179           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68180         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68181           and its variants.
68182         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68183         * modules/stat-time-test: New file.
68184         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68185
68186 2007-03-26  Bruno Haible  <bruno@clisp.org>
68187
68188         Better support of signalling NaNs.
68189         * lib/atanl.c: Include isnanl.h.
68190         (atanl): Perform test for NaN at the beginning of the function and
68191         through a call to isnanl.
68192         * lib/cosl.c: Include isnanl.h.
68193         (cosl): Perform test for NaN at the beginning of the function and
68194         through a call to isnanl.
68195         * lib/ldexpl.c: Include isnanl.h.
68196         (ldexpl): Perform test for NaN through a call to isnanl.
68197         * lib/logl.c: Include isnanl.h.
68198         (logl): Perform test for NaN at the beginning of the function and
68199         through a call to isnanl.
68200         * lib/sinl.c: Include isnanl.h.
68201         (sinl): Perform test for NaN at the beginning of the function and
68202         through a call to isnanl.
68203         * lib/sqrtl.c: Include isnanl.h.
68204         (sqrtl): Perform test for NaN at the beginning of the function and
68205         through a call to isnanl.
68206         * lib/tanl.c: Include isnanl.h.
68207         (tanl): Perform test for NaN at the beginning of the function and
68208         through a call to isnanl.
68209         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68210         * modules/mathl (Depends-on): Add isnanl.
68211
68212 2007-03-26  Eric Blake  <ebb9@byu.net>
68213
68214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68215         regression in logic sense of previous patch.
68216
68217 2007-03-26  Bruno Haible  <bruno@clisp.org>
68218
68219         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68220         unportable shell command "if ! ...".
68221         Reported by Ralf Wildenhues.
68222
68223 2007-03-25  Bruno Haible  <bruno@clisp.org>
68224
68225         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68226         <sysexits.h> file, and only add EX_CONFIG.
68227         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68228         absolute file name and whether it is sufficient. Substitute also
68229         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68230         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68231         ABSOLUTE_SYSEXITS_H into sysexits.h.
68232
68233 2007-03-25  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68236         hints is NULL.
68237
68238 2007-03-25  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68241         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68242
68243 2007-03-25  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/vasnprintf.c: Include langinfo.h.
68246         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68247         multithread-safe.
68248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68249         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68250         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68254         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68255         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68256         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68257         Reported by Simon Josefsson.
68258
68259 2007-03-25  Bruno Haible  <bruno@clisp.org>
68260
68261         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68262         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68263         * modules/vasnprintf (Depends-on): Add stdint.
68264
68265 2007-03-25  Bruno Haible  <bruno@clisp.org>
68266
68267         * modules/fpieee: New file.
68268         * m4/fpieee.m4: New file.
68269         * modules/isnan-nolibm (Depends-on): Add fpieee.
68270         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68271         * modules/isnanl (Depends-on): Add fpieee.
68272
68273 2007-03-25  Bruno Haible  <bruno@clisp.org>
68274
68275         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68276
68277 2007-03-25  Bruno Haible  <bruno@clisp.org>
68278
68279         Avoid test failures on IRIX 6.5.
68280         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68281         (main): Use it.
68282         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68283         macros.
68284         (main): Use them.
68285
68286 2007-03-25  Bruno Haible  <bruno@clisp.org>
68287
68288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68289         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68290         exists but doesn't work.
68291         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68292         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68294         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68295         math.h.
68296
68297 2007-03-25  Bruno Haible  <bruno@clisp.org>
68298
68299         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68300         returns inf. Needed on IRIX 6.5.
68301
68302 2007-03-25  Bruno Haible  <bruno@clisp.org>
68303
68304         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68305         (main): Use isnanl instead of x != x idiom.
68306         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68307
68308         * tests/test-frexp.c: Include isnan.h.
68309         (main): Use isnan instead of x != x idiom.
68310         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68311
68312 2007-03-25  Bruno Haible  <bruno@clisp.org>
68313
68314         * tests/test-frexp.c (NaN): New function/macro.
68315         (main): Use it instead of 0.0 / 0.0.
68316         * tests/test-isnan.c (NaN): New function/macro.
68317         (main): Use it instead of 0.0 / 0.0.
68318         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68319         (test_function): Use it instead of 0.0 / 0.0.
68320         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68321         (test_function): Use it instead of 0.0 / 0.0.
68322         * tests/test-snprintf-posix.h (NaN): New function/macro.
68323         (test_function): Use it instead of 0.0 / 0.0.
68324         * tests/test-sprintf-posix.h (NaN): New function/macro.
68325         (test_function): Use it instead of 0.0 / 0.0.
68326         * tests/test-fprintf-posix.h (NaN): New function/macro.
68327         (test_function): Use it instead of 0.0 / 0.0.
68328         * tests/test-printf-posix.h (NaN): New function/macro.
68329         (test_function): Use it instead of 0.0 / 0.0.
68330
68331         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68332
68333 2007-03-25  Bruno Haible  <bruno@clisp.org>
68334
68335         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68336
68337 2007-03-25  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/regexec.c (merge_state_with_log): Make static.
68340
68341 2007-03-25  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/trigl.c (kernel_rem_pio2): Make static.
68344
68345 2007-03-25  Bruno Haible  <bruno@clisp.org>
68346
68347         * lib/sincosl.c (sincosl_table): Make static.
68348
68349 2007-03-25  Bruno Haible  <bruno@clisp.org>
68350
68351         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68352         if the compiler does not support C99.
68353
68354 2007-03-25  Bruno Haible  <bruno@clisp.org>
68355
68356         * modules/time (Makefile.am): Ensure all rule action lines start with a
68357         tab.
68358
68359 2007-03-24  Bruno Haible  <bruno@clisp.org>
68360
68361         * modules/tsearch-tests: New file.
68362         * tests/test-tsearch.sh: New file.
68363         * tests/test-tsearch.c: New file, mostly copied from glibc.
68364
68365         * modules/search-tests: New file.
68366         * tests/test-search.c: New file.
68367
68368         * modules/search: New file.
68369         * lib/search_.h: New file, incorporating lib/tsearch.h.
68370         * m4/search_h.m4: New file.
68371         * lib/tsearch.h: Remove file.
68372         * lib/tsearch.c: Include search.h instead of tsearch.h.
68373         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68374         HAVE_TSEARCH.
68375         * modules/tsearch (Files): Remove lib/tsearch.h.
68376         (Depends-on): Add search.
68377         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68378         (Include): Change tsearch.h into search.h.
68379
68380 2007-03-24  Bruno Haible  <bruno@clisp.org>
68381
68382         * modules/fpucw: New file.
68383         * lib/fpucw.h: New file.
68384         * lib/frexp.c: Include fpucw.h.
68385         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68386         (FUNC): Use them.
68387         * lib/printf-frexp.c: Include fpucw.h.
68388         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68389         (FUNC): Use them.
68390         * lib/vasnprintf.c: Include fpucw.h.
68391         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68392         'long double' calculations.
68393         * tests/test-frexpl.c: Include fpucw.h.
68394         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68395         * tests/test-printf-frexpl.c: Include fpucw.h.
68396         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68397         * modules/frexpl (Depends-on): Add fpucw.
68398         * modules/printf-frexpl (Depends-on): Likewise.
68399         * modules/fprintf-posix (Depends-on): Likewise.
68400         * modules/snprintf-posix (Depends-on): Likewise.
68401         * modules/sprintf-posix (Depends-on): Likewise.
68402         * modules/vasnprintf-posix (Depends-on): Likewise.
68403         * modules/vasprintf-posix (Depends-on): Likewise.
68404         * modules/vfprintf-posix (Depends-on): Likewise.
68405         * modules/vsnprintf-posix (Depends-on): Likewise.
68406         * modules/vsprintf-posix (Depends-on): Likewise.
68407         * modules/frexpl-tests (Depends-on): Likewise.
68408         * modules/printf-frexpl-tests (Depends-on): Likewise.
68409
68410 2007-03-24  Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/float+.h: New file.
68413         * lib/isnan.c: Include float+.h.
68414         (SIZE): New macro.
68415         (FUNC): Compare only SIZE bytes of the value.
68416         * lib/vasnprintf.c: Include float+.h.
68417         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68418         SIZEOF_LDBL or SIZEOF_DBL bytes.
68419         * modules/isnan-nolibm (Files): Add lib/float+.h.
68420         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68421         * modules/isnanl (Files): Add lib/float+.h.
68422         * modules/vasnprintf (Files): Add lib/float+.h.
68423
68424 2007-03-24  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68427         include isnanl-nolibm.h.
68428
68429 2007-03-24  Bruno Haible  <bruno@clisp.org>
68430
68431         * tests/test-read-file.c (main): Don't produce spurious output for
68432         expected situations. Make the test fail if it encountered unexpected
68433         results.
68434
68435 2007-03-24  Bruno Haible  <bruno@clisp.org>
68436
68437         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68438         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68439
68440 2007-03-24  Bruno Haible  <bruno@clisp.org>
68441
68442         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68443
68444 2007-03-24  Bruno Haible  <bruno@clisp.org>
68445
68446         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68447         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68448
68449         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68450         * modules/utf8-ucs4: Turn into a symbolic link to module
68451         unistr/u8-mbtouc.
68452
68453         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68454         utf8-ucs4-unsafe.
68455         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68456         unistr/u8-mbtouc-unsafe.
68457
68458         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68459         * modules/utf16-ucs4: Turn into a symbolic link to module
68460         unistr/u16-mbtouc.
68461
68462         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68463         utf16-ucs4-unsafe.
68464         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68465         unistr/u16-mbtouc-unsafe.
68466
68467         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68468         * modules/ucs4-utf8: Turn into a symbolic link to module
68469         unistr/u8-ubtomb.
68470
68471         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68472         * modules/ucs4-utf16: Turn into a symbolic link to module
68473         unistr/u16-ubtomb.
68474
68475 2007-03-24  Bruno Haible  <bruno@clisp.org>
68476
68477         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68478         Enable the function only if HAVE_INLINE.
68479         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68480         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68481         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68482         Enable the function only if HAVE_INLINE.
68483         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68484         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68485         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68486         Enable the function only if HAVE_INLINE.
68487         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68488         Enable the function only if HAVE_INLINE.
68489         * modules/utf8-ucs4: Update.
68490         * modules/utf8-ucs4-unsafe: Update.
68491         * modules/utf16-ucs4: Update.
68492         * modules/utf16-ucs4-unsafe: Update.
68493         * modules/ucs4-utf8: Update.
68494         * modules/ucs4-utf16: Update.
68495
68496 2007-03-24  Bruno Haible  <bruno@clisp.org>
68497
68498         * lib/utf8-ucs4.h: Remove file.
68499         * lib/utf8-ucs4-unsafe.h: Remove file.
68500         * lib/utf16-ucs4.h: Remove file.
68501         * lib/utf16-ucs4-unsafe.h: Remove file.
68502         * lib/ucs4-utf8.h: Remove file.
68503         * lib/ucs4-utf16.h: Remove file.
68504         * lib/unistr.h: Include their previous contents.
68505         * m4/utf-ucs4.m4: Remove file.
68506         * m4/ucs4-utf.m4: Remove file.
68507         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68508         (Depends-on): Add unistr/base.
68509         (configure.ac): Remove gl_UTF_UCS4.
68510         (Makefile.am): Update.
68511         (Include): Change to unistr.h.
68512         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68513         (Depends-on): Add unistr/base.
68514         (configure.ac): Remove gl_UTF_UCS4.
68515         (Makefile.am): Update.
68516         (Include): Change to unistr.h.
68517         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68518         (Depends-on): Add unistr/base.
68519         (configure.ac): Remove gl_UTF_UCS4.
68520         (Makefile.am): Update.
68521         (Include): Change to unistr.h.
68522         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68523         (Depends-on): Add unistr/base.
68524         (configure.ac): Remove gl_UTF_UCS4.
68525         (Makefile.am): Update.
68526         (Include): Change to unistr.h.
68527         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68528         (Depends-on): Add unistr/base.
68529         (configure.ac): Remove gl_UCS4_UTF.
68530         (Makefile.am): Update.
68531         (Include): Change to unistr.h.
68532         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68533         (Depends-on): Add unistr/base.
68534         (configure.ac): Remove gl_UCS4_UTF.
68535         (Makefile.am): Update.
68536         (Include): Change to unistr.h.
68537         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68538         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68539         utf8-ucs4-unsafe.h.
68540         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68541         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68542         utf16-ucs4-unsafe.h.
68543         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68544         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68545         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68546         * lib/unistr/u8-strchr.c: Likewise.
68547         * lib/unistr/u8-strrchr.c: Likewise.
68548         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68549         * lib/unistr/u16-strchr.c: Likewise.
68550         * lib/unistr/u16-strrchr.c: Likewise.
68551         * lib/striconveh.c: Update.
68552         * lib/linebreak.c: Update.
68553
68554 2007-03-24  Bruno Haible  <bruno@clisp.org>
68555
68556         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68557         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68558
68559 2007-03-22  Bruno Haible  <bruno@clisp.org>
68560
68561         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68562
68563 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * MODULES.html.sh (File system functions): New module write-any-file.
68566         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68567         * m4/write-any-file.m4: New files.
68568
68569 2007-03-23  Eric Blake  <ebb9@byu.net>
68570
68571         * gnulib-tool: Rearrange space-tab sequences, since some editors
68572         like to eat them.
68573
68574 2007-03-23  Eric Blake  <ebb9@byu.net>
68575
68576         * lib/version-etc.c (version_etc_va): Update license wording to
68577         be more concise.  Recommended by Richard Stallman.
68578
68579 2007-03-22  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/poll.c (MSG_PEEK): New fallback definition.
68582
68583 2007-03-22  Bruno Haible  <bruno@clisp.org>
68584
68585         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68586         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68587         (main): Update.
68588         Fixes a compilation error on BeOS.
68589
68590 2007-03-22  Bruno Haible  <bruno@clisp.org>
68591
68592         * modules/frexpl-tests: New file.
68593         * tests/test-frexpl.c: New file.
68594
68595         * modules/frexpl: New file.
68596         * m4/frexpl.m4: New file.
68597         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68598         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68600         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68601         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68602         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68603
68604 2007-03-22  Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/frexpl.c: Share code with lib/frexp.c.
68607         * modules/mathl (Files): Add lib/frexp.c.
68608         (Depends-on): Add isnanl-nolibm.
68609
68610 2007-03-22  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/printf-frexp (Files): Add m4/frexp.m4.
68613         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68614         only if the found frexp function actually works.
68615
68616 2007-03-22  Bruno Haible  <bruno@clisp.org>
68617
68618         * lib/frexp.c: Remove older implementation that uses divisions.
68619
68620 2007-03-21  Bruno Haible  <bruno@clisp.org>
68621
68622         * modules/frexp-tests: New file.
68623         * tests/test-frexp.c: New file.
68624
68625         * modules/frexp: New file.
68626         * lib/frexp.c: New file.
68627         * m4/frexp.m4: New file.
68628         * lib/math_.h (frexp): New declaration.
68629         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68630         REPLACE_FREXP.
68631         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68632
68633 2007-03-21  Bruno Haible  <bruno@clisp.org>
68634
68635         * modules/isnanl-tests: New file.
68636         * tests/test-isnanl.c: New file.
68637
68638         * modules/isnanl: New file.
68639         * lib/isnanl.h: New file.
68640         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68641         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68642         gl_FUNC_ISNANL_WORKS.
68643         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68644         New macros.
68645
68646 2007-03-21  Bruno Haible  <bruno@clisp.org>
68647
68648         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68649         lib/isnanl.h.
68650         (Include): Update.
68651         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68652         * lib/vasnprintf.c: Update.
68653         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68654         tests/test-isnanl.h, remove tests/test-isnanl.c.
68655         (Makefile.am): Update.
68656         * tests/test-isnanl-nolibm.c: New file.
68657         * tests/test-isnanl.h: New file.
68658         * tests/test-isnanl.c: Remove file.
68659
68660 2007-03-21  Jim Meyering  <jim@meyering.net>
68661
68662         When trying to open ".", treat ESTALE like EACCES.
68663         * lib/savewd.c (savewd_save): Resort to forking not just upon
68664         failure with EACCES, but also when errno is ESTALE.
68665
68666 2007-03-20  Bruno Haible  <bruno@clisp.org>
68667
68668         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68669         Needed on AIX 5.1. Reported by Matthew Woehlke.
68670
68671 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68672
68673         Suggestions by Bruno Haible:
68674         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68675         our own.
68676         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68677         * modules/acl (Depends-on): Add gettext.
68678
68679 2007-03-19  Bruno Haible  <bruno@clisp.org>
68680
68681         * modules/iconvme: Remove file.
68682         * lib/iconvme.h: Remove file.
68683         * lib/iconvme.c: Remove file.
68684         * m4/iconvme.m4: Remove file.
68685
68686 2007-03-19  Bruno Haible  <bruno@clisp.org>
68687
68688         * doc/relocatable-maint.texi: Break long shell script line.
68689         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68690
68691 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68694         handle file_has_acl.
68695         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68696         * lib/acl.c: Move header inclusions and related macro defns into
68697         lib/acl-internal.h.
68698         (S_ISLNK): Remove defn, since that's now done for us.
68699         (file_has_acl): Move to lib/file-has-acl.c.
68700         Call acl_trivial if available.  This is the crucial part of the fix.
68701         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68702         shared within the library.  Rewrite a bit, partly to make it compatible
68703         with the GNU coding style.
68704         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68705         Remove unnecessary double-quotes.
68706         Don't test for acl_to_text; the build will catch that.
68707         Replace acl_entries if it doesn't exist and it is needed.
68708         Check for -lsec and acl_trivial (as used on Solaris 10).
68709         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68710         lib/file-has-acl.c.
68711         (Depends-on): Add sys_stat, for S_ISLNK.
68712
68713 2007-03-19  Ben Pfaff  <blp@gnu.org>
68714
68715         * doc/gnulib.texi: Fix typos.
68716         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68717
68718 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68721         If size is zero here, buf must be zero.
68722
68723 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68724
68725         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68726         <bruno@clisp.org>.
68727
68728 2007-03-18  Bruno Haible  <bruno@clisp.org>
68729
68730         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68731         Suggested by Eric Blake.
68732
68733 2007-03-18  Ben Pfaff  <blp@gnu.org>
68734
68735         * doc/relocatable.texi: Recommend using as prefix a directory
68736         that does not exist and will never be created.  Based on
68737         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68738         and others.
68739
68740 2007-03-17  Bruno Haible  <bruno@clisp.org>
68741
68742         * lib/fchownat.c: Include lchown.h.
68743
68744 2007-03-17  Bruno Haible  <bruno@clisp.org>
68745
68746         Fix endless loop when the given allocated size was > INT_MAX.
68747         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68748         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68749         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68750         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68751         * lib/sprintf.c (sprintf): Likewise.
68752
68753 2007-03-17  Bruno Haible  <bruno@clisp.org>
68754
68755         * tests/test-argp-2.sh (func_compare): Output a context diff.
68756
68757 2007-03-17  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68760         locale's decimal-point character.
68761
68762 2007-03-17  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68765         before comparing it. Needed because on some platforms (e.g. x86) a
68766         'long double' occupies less bytes than sizeof (long double).
68767
68768 2007-03-17  Bruno Haible  <bruno@clisp.org>
68769
68770         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68771         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68772         * tests/test-getaddrinfo.c (simple): Likewise.
68773         * tests/test-read-file.c (main): Likewise.
68774
68775 2007-03-17  Bruno Haible  <bruno@clisp.org>
68776
68777         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68778
68779 2007-03-17  Bruno Haible  <bruno@clisp.org>
68780
68781         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68782         unused variable.
68783
68784 2007-03-17  Bruno Haible  <bruno@clisp.org>
68785
68786         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68787         * tests/test-c-strncasecmp.c: Likewise.
68788
68789 2007-03-17  Bruno Haible  <bruno@clisp.org>
68790
68791         * modules/stdlib (Depends-on): Add unistd.
68792         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68793         Needed for MacOS X 10.3.
68794
68795 2007-03-17  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68798
68799 2007-03-17  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68802
68803 2007-03-17  Bruno Haible  <bruno@clisp.org>
68804
68805         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68806         to reflect files copied from gnulib (with or without modifications).
68807         Suggested by Jim Meyering.
68808
68809 2007-03-17  Eric Blake  <ebb9@byu.net>
68810
68811         * NEWS: Document stdlib change from 2007-02-18.
68812
68813 2007-03-17  Jim Meyering  <jim@meyering.net>
68814
68815         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68816         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68817         someone uses a name containing shell meta-characters.
68818         Reported by Alfred M. Szmidt.
68819
68820         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
68821
68822 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68823
68824         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
68825         and copy gettext configuration files only if configure.ac contains
68826         a use of AM_GNU_GETTEXT_VERSION.
68827
68828 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
68829
68830         * build-aux/bootstrap (gnulib_name): New variable.
68831         (gnulib_tool_options): Use it.
68832
68833 2007-03-13  Simon Josefsson  <simon@josefsson.org>
68834
68835         * tests/test-des.c: Use new namespace.
68836
68837 2007-03-15  Bruno Haible  <bruno@clisp.org>
68838
68839         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
68840         Reported by James Youngman <jay@gnu.org>.
68841
68842 2007-03-15  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
68845         declared prototype. Needed with cc on OSF/1 5.1.
68846
68847 2007-03-15  Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
68850         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
68851         (struct gl_list_implementation): Add dispose_fn argument to the
68852         'create_empty', 'create' methods.
68853         (struct gl_list_impl_base): Add field 'dispose_fn'.
68854         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
68855         argument.
68856         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
68857         dispose_fn argument.
68858         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
68859         dispose_fn on the dropped values.
68860         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
68861         dispose_fn argument.
68862         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
68863         dropped values.
68864         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
68865         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68866         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
68867         (gl_tree_remove_node): Call dispose_fn on the dropped value.
68868         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
68869         argument.
68870         (gl_tree_list_free): Call dispose_fn on the dropped values.
68871         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
68872         the dropped values.
68873         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68874         Add dispose_fn argument.
68875         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
68876         Call dispose_fn on the dropped values.
68877         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
68878         Add dispose_fn argument.
68879         (gl_sublist_create): Initialize the 'dispose_fn' field.
68880         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
68881         * tests/test-array_list.c (main): Update.
68882         * tests/test-carray_list.c (main): Update.
68883         * tests/test-avltree_list.c (main): Update.
68884         * tests/test-rbtree_list.c (main): Update.
68885         * tests/test-avltreehash_list.c (main): Update.
68886         * tests/test-rbtreehash_list.c (main): Update.
68887         * tests/test-linked_list.c (main): Update.
68888         * tests/test-linkedhash_list.c (main): Update.
68889         * tests/test-array_oset.c (main): Update.
68890
68891 2007-03-15  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
68894         (gl_oset_create_empty): Add dispose_fn argument.
68895         (struct gl_oset_implementation): Add dispose_fn argument to
68896         'create_empty' method.
68897         (struct gl_oset_impl_base): Add dispose_fn field.
68898         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
68899         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
68900         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
68901         values.
68902         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
68903         (gl_tree_oset_free): Call dispose_fn on the dropped values.
68904         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68905         dropped value.
68906         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
68907         dropped value.
68908         * tests/test-array_oset.c (main): Update.
68909         * tests/test-avltree_oset.c (main): Update.
68910         * tests/test-rbtree_oset.c (main): Update.
68911         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
68912
68913 2007-03-13  Bruno Haible  <bruno@clisp.org>
68914
68915         * tests/test-stdbool.c (i): Update after last patch.
68916
68917 2007-03-12  Bruno Haible  <bruno@clisp.org>
68918
68919         * lib/quotearg.c: Include <wctype.h> early, before the definition of
68920         the iswprint macro. Needed on Solaris 2.5.1.
68921
68922 2007-03-12  Bruno Haible  <bruno@clisp.org>
68923
68924         * tests/test-printf-frexp.c (main): Declare x as volatile.
68925
68926 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68927
68928         * doc/gnulib.texi (Build robot for gnulib): New section.
68929
68930 2007-03-12  Jim Meyering  <jim@meyering.net>
68931
68932         * build-aux/bootstrap: New file.
68933         * build-aux/bootstrap.conf: New file, from coreutils.
68934
68935 2007-03-11  Bruno Haible  <bruno@clisp.org>
68936
68937         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
68938
68939 2007-03-12  Simon Josefsson  <simon@josefsson.org>
68940
68941         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
68942         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
68943         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
68944
68945 2007-03-11  Bruno Haible  <bruno@clisp.org>
68946
68947         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
68948         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68949
68950 2007-03-11  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68953         formula. Needed for SunPRO C 5.0.
68954
68955 2007-03-11  Bruno Haible  <bruno@clisp.org>
68956
68957         * modules/long-options (Depends-on): Add getopt.
68958
68959 2007-03-11  Bruno Haible  <bruno@clisp.org>
68960
68961         * modules/modechange (Depends-on): Add stdbool.
68962
68963 2007-03-11  Bruno Haible  <bruno@clisp.org>
68964
68965         * modules/i-ring (Depends-on): Add stdbool.
68966
68967 2007-03-11  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/gc-des (Depends-on): Add stdbool.
68970
68971 2007-03-11  Bruno Haible  <bruno@clisp.org>
68972
68973         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68974
68975 2007-03-11  Bruno Haible  <bruno@clisp.org>
68976
68977         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68978
68979 2007-03-11  Bruno Haible  <bruno@clisp.org>
68980
68981         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68982
68983 2007-03-11  Bruno Haible  <bruno@clisp.org>
68984
68985         * lib/vasnprintf.c (sprintf): Undefine.
68986
68987 2007-03-11  Bruno Haible  <bruno@clisp.org>
68988
68989         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68990         initializers in SunPRO C and Compaq C compilers.
68991
68992 2007-03-11  Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68995         decrementing code ANSI C compliant.
68996
68997 2007-03-11  Bruno Haible  <bruno@clisp.org>
68998
68999         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69000         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69001
69002 2007-03-11  Bruno Haible  <bruno@clisp.org>
69003
69004         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69005         <stdbool.h> substitute doesn't pass.
69006
69007 2007-03-11  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69010
69011 2007-03-11  Bruno Haible  <bruno@clisp.org>
69012
69013         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69014         script, for submission to autobuild.josefsson.org.
69015
69016 2007-03-10  Bruno Haible  <bruno@clisp.org>
69017
69018         * modules/canonicalize-lgpl-tests: New file.
69019         * tests/test-canonicalize-lgpl.sh: New file.
69020         * tests/test-canonicalize-lgpl.c: New file.
69021
69022         * modules/c-strcase-tests: New file.
69023         * tests/test-c-strcase.sh: New file.
69024         * tests/test-c-strcasecmp.c: New file.
69025         * tests/test-c-strncasecmp.c: New file.
69026
69027         * modules/atexit-tests: New file.
69028         * tests/test-atexit.sh: New file.
69029         * tests/test-atexit.c: New file.
69030
69031 2007-03-10  Bruno Haible  <bruno@clisp.org>
69032
69033         * tests/test-binary-io.sh: Use temporary filenames that are not so
69034         likely to clash with those of other tests (in a parallel make).
69035         * tests/test-binary-io.c: Likewise.
69036
69037 2007-03-10  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69040         fallback; use #error instead.
69041         Suggested by Simon Josefsson.
69042
69043 2007-03-10  Bruno Haible  <bruno@clisp.org>
69044
69045         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69046         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69047         first and the last.
69048
69049 2007-03-10  Bruno Haible  <bruno@clisp.org>
69050
69051         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69052
69053 2007-03-10  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69056         "make distcheck".
69057         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69058         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69059         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69060
69061 2007-03-10  Bruno Haible  <bruno@clisp.org>
69062
69063         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69064         variable.
69065         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69066         variable.
69067
69068 2007-03-09  Eric Blake  <ebb9@byu.net>
69069         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69070
69071         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69072         types are not being provided by gnulib.
69073         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69074         types are supported.
69075
69076 2007-03-10  Bruno Haible  <bruno@clisp.org>
69077
69078         * lib/stdio_.h (__attribute__): New macro.
69079         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69080         vsprintf): Specify __attribute__ __format__ for GCC.
69081         Suggested by Eric Blake.
69082
69083 2007-03-09  Bruno Haible  <bruno@clisp.org>
69084
69085         * modules/printf-posix-tests: New file.
69086         * tests/test-printf-posix.sh: New file.
69087         * tests/test-printf-posix.c: New file.
69088
69089         * modules/printf-posix: New file.
69090         * lib/printf.c: New file.
69091         * m4/printf-posix-rpl.m4: New file.
69092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69093         REPLACE_PRINTF.
69094         * lib/stdio_.h (printf): New declaration.
69095         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69096         ____strfmon____): New macros.
69097         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69098         REPLACE_PRINTF.
69099
69100 2007-03-09  Bruno Haible  <bruno@clisp.org>
69101
69102         * tests/test-vasnprintf-posix2.sh: New file.
69103         * tests/test-vasnprintf-posix2.c: New file.
69104         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69105         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69106         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69107
69108         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69109         a locale dependent decimal point, rather than always '.'.
69110
69111 2007-03-09  Eric Blake  <ebb9@byu.net>
69112
69113         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69114         spite of platforms like Tandem/NSK that define it to -1.
69115
69116 2007-03-08  Bruno Haible  <bruno@clisp.org>
69117
69118         * modules/vprintf-posix-tests: New file.
69119         * tests/test-vprintf-posix.sh: New file.
69120         * tests/test-vprintf-posix.c: New file.
69121         * tests/test-printf-posix.h: New file.
69122
69123         * modules/vprintf-posix: New file.
69124         * lib/vprintf.c: New file.
69125         * m4/vprintf-posix.m4: New file.
69126         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69127         REPLACE_VPRINTF.
69128         * lib/stdio_.h (vprintf): New declaration.
69129         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69130         REPLACE_VPRINTF.
69131
69132 2007-03-08  Bruno Haible  <bruno@clisp.org>
69133
69134         * modules/fprintf-posix-tests: New file.
69135         * tests/test-fprintf-posix.sh: New file.
69136         * tests/test-fprintf-posix.c: New file.
69137
69138         * modules/fprintf-posix: New file.
69139         * lib/fprintf.c: New file.
69140         * m4/fprintf-posix.m4: New file.
69141         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69142         REPLACE_FPRINTF.
69143         * lib/stdio_.h (fprintf): New declaration.
69144         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69145         REPLACE_FPRINTF.
69146
69147 2007-03-08  Bruno Haible  <bruno@clisp.org>
69148
69149         * modules/vfprintf-posix-tests: New file.
69150         * tests/test-vfprintf-posix.sh: New file.
69151         * tests/test-vfprintf-posix.c: New file.
69152         * tests/test-fprintf-posix.h: New file.
69153         * tests/test-fprintf-posix.out: New file.
69154
69155         * modules/vfprintf-posix: New file.
69156         * lib/vfprintf.c: New file.
69157         * m4/vfprintf-posix.m4: New file.
69158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69159         REPLACE_VFPRINTF.
69160         * lib/stdio_.h (vfprintf): New declaration.
69161         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69162         REPLACE_VFPRINTF.
69163
69164 2007-03-08  Bruno Haible  <bruno@clisp.org>
69165
69166         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69167
69168 2007-03-08  Bruno Haible  <bruno@clisp.org>
69169
69170         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69171         instead of 'expr' invocations.
69172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69175         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69176         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69177         Suggested by Paul Eggert.
69178
69179 2007-03-08  Bruno Haible  <bruno@clisp.org>
69180
69181         * modules/fseterr-tests: New file.
69182         * tests/test-fseterr.c: New file.
69183
69184         * modules/fseterr: New file.
69185         * lib/fseterr.h: New file.
69186         * lib/fseterr.c: New file.
69187
69188 2007-03-08  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69191         * lib/getopt_.h: Likewise.
69192         * lib/mbswidth.h: Likewise.
69193         * lib/setenv.h: Likewise.
69194         * lib/vasnprintf.h: Likewise.
69195         * lib/vasprintf.h: Likewise.
69196         * lib/verror.h: Likewise.
69197         * lib/xsetenv.h: Likewise.
69198         * lib/xvasprintf.h: Likewise.
69199
69200 2007-03-08  Jim Meyering  <jim@meyering.net>
69201
69202         * users.txt: Add parted.
69203
69204         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69205
69206 2007-03-07  Bruno Haible  <bruno@clisp.org>
69207
69208         * m4/printf.m4: Make the shell script snippets copy&pastable.
69209
69210 2007-03-02  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/netinet_in_.h: New file.
69213         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69214         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69215         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69216         (Depends-on): Add absolute-header.
69217         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69218         into netinet/in.h.
69219
69220 2007-03-03  Bruno Haible  <bruno@clisp.org>
69221
69222         * lib/sys_select_.h: New file.
69223         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69224         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69225         * modules/sys_select (Files): Add lib/sys_select_.h.
69226         (Depends-on): Add absolute-header.
69227         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69228         into sys/select.h.
69229
69230 2007-03-02  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69233         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69234         values.
69235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69236         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69237         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69238         * modules/sys_socket (Depends-on): Add absolute-header.
69239         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69240         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69241         (Include): Remove requirement of inclusion of <sys/types.h>.
69242
69243 2007-03-02  Bruno Haible  <bruno@clisp.org>
69244
69245         * lib/byteswap_.h (bswap_32): Fix formula.
69246
69247 2007-03-06  Bruno Haible  <bruno@clisp.org>
69248
69249         * modules/sprintf-posix-tests: New file.
69250         * tests/test-sprintf-posix.c: New file.
69251
69252         * modules/sprintf-posix: New file.
69253         * lib/sprintf.c: New file.
69254         * m4/sprintf-posix.m4: New file.
69255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69256         REPLACE_SPRINTF.
69257         * lib/stdio_.h (sprintf): New declaration.
69258         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69259         REPLACE_SPRINTF.
69260
69261 2007-03-06  Bruno Haible  <bruno@clisp.org>
69262
69263         * modules/vsprintf-posix-tests: New file.
69264         * tests/test-vsprintf-posix.c: New file.
69265         * tests/test-sprintf-posix.h: New file.
69266
69267         * modules/vsprintf-posix: New file.
69268         * lib/vsprintf.c: New file.
69269         * m4/vsprintf-posix.m4: New file.
69270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69271         REPLACE_VSPRINTF.
69272         * lib/stdio_.h (vsprintf): New declaration.
69273         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69274         REPLACE_VSPRINTF.
69275
69276 2007-03-06  Bruno Haible  <bruno@clisp.org>
69277
69278         * modules/vsnprintf (Depend-on): Remove minmax.
69279
69280 2007-03-06  Bruno Haible  <bruno@clisp.org>
69281
69282         * modules/snprintf-posix-tests: New file.
69283         * tests/test-snprintf-posix.c: New file.
69284
69285         * modules/snprintf-posix: New file.
69286         * m4/snprintf-posix.m4: New file.
69287         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69288         gl_FUNC_SNPRINTF.
69289         (gl_FUNC_SNPRINTF): Invoke it.
69290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69291         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69292         is set.
69293         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69294
69295 2007-03-06  Bruno Haible  <bruno@clisp.org>
69296
69297         * modules/vsnprintf-posix-tests: New file.
69298         * tests/test-vsnprintf-posix.c: New file.
69299         * tests/test-snprintf-posix.h: New file.
69300
69301         * modules/vsnprintf-posix: New file.
69302         * m4/vsnprintf-posix.m4: New file.
69303         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69304         gl_FUNC_VSNPRINTF.
69305         (gl_FUNC_VSNPRINTF): Invoke it.
69306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69307         * lib/stdio_.h (vsnprintf): Define as a replacement if
69308         REPLACE_VSNPRINTF is set.
69309         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69310
69311 2007-03-06  Bruno Haible  <bruno@clisp.org>
69312
69313         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69314         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69315
69316 2007-03-06  Bruno Haible  <bruno@clisp.org>
69317
69318         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69319         (asinl): Declare also if HAVE_DECL_ASINL is set.
69320         (atanl): Declare also if HAVE_DECL_ATANL is set.
69321         (ceill): Declare also if HAVE_DECL_CEILL is set.
69322         (cosl): Declare also if HAVE_DECL_COSL is set.
69323         (expl): Declare also if HAVE_DECL_EXPL is set.
69324         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69325         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69326         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69327         (logl): Declare also if HAVE_DECL_LOGL is set.
69328         (sinl): Declare also if HAVE_DECL_SINL is set.
69329         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69330         (tanl): Declare also if HAVE_DECL_TANL is set.
69331         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69333         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69334         declaration of frexpl, ldexpl.
69335         * modules/printf-frexpl (Depends-on): Add math.
69336         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69337
69338 2007-03-05  Bruno Haible  <bruno@clisp.org>
69339
69340         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69341         frexpl and ldexpl are declared.
69342         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69343
69344 2007-03-05  Bruno Haible  <bruno@clisp.org>
69345
69346         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69347         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69348
69349 2007-03-05  Bruno Haible  <bruno@clisp.org>
69350
69351         * lib/stdio_.h: Include <stddef.h>.
69352
69353 2007-03-05  Bruno Haible  <bruno@clisp.org>
69354
69355         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69356
69357 2007-03-05  Bruno Haible  <bruno@clisp.org>
69358
69359         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69360         NetBSD 4, from Ralf Wildenhues.
69361
69362 2007-03-04  Bruno Haible  <bruno@clisp.org>
69363
69364         * lib/vasprintf.h: Update #if logic for the case when the functions
69365         exist but are overridden.
69366
69367 2007-03-04  Bruno Haible  <bruno@clisp.org>
69368
69369         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69370         implementations: glibc-2.4 and MacOS X 10.3.
69371         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69372         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69373         * tests/test-vasprintf-posix.c (test_function): Likewise.
69374
69375 2007-03-04  Bruno Haible  <bruno@clisp.org>
69376
69377         * modules/vasprintf-posix-tests: New file.
69378         * tests/test-vasprintf-posix.c: New file.
69379
69380         * modules/vasprintf-posix: New file.
69381         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69382         defined.
69383         * m4/vasprintf-posix.m4: New file.
69384         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69385         gl_FUNC_VASPRINTF.
69386         (gl_FUNC_VASPRINTF): Invoke it.
69387         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69388         here.
69389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69390
69391 2007-03-04  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69394         REPLACE_GETTIMEOFDAY.
69395         * modules/sys_time (Makefile.am): Likewise.
69396         * m4/sys_time_h.m4: Likewise.
69397         * m4/gettimeofday.m4: Likewise.
69398
69399 2007-03-04  Bruno Haible  <bruno@clisp.org>
69400
69401         * modules/vasnprintf-posix-tests: New file.
69402         * tests/test-vasnprintf-posix.c: New file.
69403
69404         * modules/vasnprintf-posix: New file.
69405         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69406         printf-frexpl.h.
69407         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69408         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69409         REPLACE_VASNPRINTF is defined.
69410         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69411         gl_FUNC_VASNPRINTF.
69412         (gl_FUNC_VASNPRINTF): Invoke it.
69413         * m4/vasnprintf-posix.m4: New file.
69414         * m4/printf.m4: New file.
69415
69416 2007-03-04  Bruno Haible  <bruno@clisp.org>
69417
69418         Compile progreloc.c only if --enable-relocatable is specified.
69419         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69420         if --enable-relocatable was specified.
69421         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69422         lib_SOURCES.
69423
69424 2007-03-04  Jim Meyering  <jim@meyering.net>
69425
69426         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69427         Use it consistently, rather than enumerating errno constants.
69428
69429 2007-03-04  Bruno Haible  <bruno@clisp.org>
69430
69431         * modules/xvasprintf-tests: New file.
69432         * tests/test-xvasprintf.c: New file.
69433
69434         * modules/vasprintf-tests: New file.
69435         * tests/test-vasprintf.c: New file.
69436
69437         * modules/vasnprintf-tests: New file.
69438         * tests/test-vasnprintf.c: New file.
69439
69440         * modules/vsnprintf-tests: New file.
69441         * tests/test-vsnprintf.c: New file.
69442
69443         * modules/snprintf-tests: New file.
69444         * tests/test-snprintf.c: New file.
69445
69446 2007-03-04  Bruno Haible  <bruno@clisp.org>
69447
69448         Compile relocatable.c only if --enable-relocatable is specified.
69449         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69450         gl_RELOCATABLE_LIBRARY.
69451         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69452         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69453         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69454         gl_RELOCATABLE_LIBRARY.
69455         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69456         (Makefile.am): Remove lib_SOURCES.
69457         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69458         gl_RELOCATABLE_LIBRARY.
69459         (Makefile.am): Remove lib_SOURCES.
69460         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69461         always.
69462         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69463         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69464
69465 2007-03-04  Bruno Haible  <bruno@clisp.org>
69466
69467         * modules/argmatch-tests: New file.
69468         * tests/test-argmatch.c: New file.
69469
69470         * tests/test-allocsa.c (main): Halve the number of loop runs.
69471
69472         * modules/alloca-opt-tests: New file.
69473         * tests/test-alloca-opt.c: New file.
69474
69475 2007-03-04  Jim Meyering  <jim@meyering.net>
69476
69477         Work around difference between Linux ACLs and Solaris 10 ZFS.
69478         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69479         for EINVAL.
69480
69481 2007-03-03  Bruno Haible  <bruno@clisp.org>
69482
69483         * modules/relocatable-prog (Depends-on): Add back progreloc's
69484         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69485
69486 2007-03-03  Bruno Haible  <bruno@clisp.org>
69487
69488         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69489         * modules/relocatable-lib: New file.
69490
69491 2007-03-03  Bruno Haible  <bruno@clisp.org>
69492
69493         * modules/relocatable-prog: Renamed from modules/relocatable.
69494         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69495
69496 2007-03-03  Bruno Haible  <bruno@clisp.org>
69497
69498         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69499         m4/relocatable-lib.m4.
69500         (Depends-on): Remove 'relocatable'.
69501         (configure.ac): Add gl_RELOCATABLE_NOP.
69502
69503 2007-03-03  Bruno Haible  <bruno@clisp.org>
69504
69505         * modules/relocatable-prog-wrapper: New file.
69506         * modules/relocatable (Depends-on): Add it. Remove all other
69507         dependencies except progname.
69508         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69509
69510         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69511         (gl_FUNC_STRERROR): Nop.
69512         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69513
69514         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69515         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69516
69517         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69518         (gl_FUNC_READLINK): Update.
69519
69520         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69521
69522 2007-03-03  Bruno Haible  <bruno@clisp.org>
69523
69524         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69525         * modules/xreadlink (Depends-on): Add unistd.
69526         * modules/xreadlink-with-size (Depends-on): Likewise.
69527
69528 2007-03-03  Bruno Haible  <bruno@clisp.org>
69529
69530         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69531         extracted from gt_FUNC_SETENV.
69532         (gt_FUNC_SETENV): Remove macro.
69533         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69534         remove gt_FUNC_SETENV.
69535
69536 2007-03-03  Bruno Haible  <bruno@clisp.org>
69537
69538         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69539         ENABLE_RELOCATABLE here.
69540         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69541
69542 2007-03-03  Bruno Haible  <bruno@clisp.org>
69543
69544         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69545         * tests/test-rbtreehash_list.c: Include progname.h.
69546         (main): Call set_program_name.
69547
69548         * modules/rbtree-oset-tests (Depends-on): Add progname.
69549         * tests/test-rbtree_oset.c: Include progname.h.
69550         (main): Call set_program_name.
69551
69552         * modules/rbtree-list-tests (Depends-on): Add progname.
69553         * tests/test-rbtree_list.c: Include progname.h.
69554         (main): Call set_program_name.
69555
69556         * modules/linked-list-tests (Depends-on): Add progname.
69557         * tests/test-linked_list.c: Include progname.h.
69558         (main): Call set_program_name.
69559
69560 2007-03-03  Bruno Haible  <bruno@clisp.org>
69561
69562         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69563         All uses of __restrict changed to _Restrict_.
69564         * lib/glob_.h (__restrict): Remove macro.
69565
69566 2007-03-02  Bruno Haible  <bruno@clisp.org>
69567
69568         * modules/gettext (configure.ac): Require gettext infrastructure
69569         from version 0.16.1.
69570
69571 2007-03-02  Bruno Haible  <bruno@clisp.org>
69572
69573         * modules/linkedhash-list-tests (Depends-on): Add progname.
69574         * tests/test-linkedhash_list.c: Include progname.h.
69575         (main): Call set_program_name.
69576
69577         * modules/carray-list-tests (Depends-on): Add progname.
69578         * tests/test-carray_list.c: Include progname.h.
69579         (main): Call set_program_name.
69580
69581         * modules/avltreehash-list-tests (Depends-on): Add progname.
69582         * tests/test-avltreehash_list.c: Include progname.h.
69583         (main): Call set_program_name.
69584
69585         * modules/avltree-oset-tests (Depends-on): Add progname.
69586         * tests/test-avltree_oset.c: Include progname.h.
69587         (main): Call set_program_name.
69588
69589         * modules/avltree-list-tests (Depends-on): Add progname.
69590         * tests/test-avltree_list.c: Include progname.h.
69591         (main): Call set_program_name.
69592
69593         * modules/array-oset-tests (Depends-on): Add progname.
69594         * tests/test-array_oset.c: Include progname.h.
69595         (main): Call set_program_name.
69596
69597         * modules/array-list-tests (Depends-on): Add progname.
69598         * tests/test-array_list.c: Include progname.h.
69599         (main): Call set_program_name.
69600
69601         * modules/argp-tests (Depends-on): Add progname.
69602         * tests/test-argp.c: Include argp.h first. Include progname.h.
69603         (main): Call set_program_name.
69604
69605 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * doc/gnulib-tool.texi (Initial import): Reword description of
69608         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69609         limited effect even if defined after the first system include.
69610
69611 2007-03-01  Bruno Haible  <bruno@clisp.org>
69612
69613         * build-aux/config.libpath: Update to libtool-1.5.22.
69614         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69615
69616 2007-03-01  Bruno Haible  <bruno@clisp.org>
69617
69618         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69619         foo_CFLAGS.
69620         Reported by Ralf Wildenhues.
69621
69622 2007-03-01  Bruno Haible  <bruno@clisp.org>
69623
69624         * build-aux/install-reloc: Remove object files left over by some
69625         compilers.
69626         Reported by Ralf Wildenhues.
69627
69628 2007-03-01  Bruno Haible  <bruno@clisp.org>
69629
69630         * build-aux/install-reloc: Break long lines.
69631
69632 2007-03-01  Bruno Haible  <bruno@clisp.org>
69633
69634         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69635         Reported by Ralf Wildenhues.
69636
69637 2007-03-01  Bruno Haible  <bruno@clisp.org>
69638
69639         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69640         include ordering constraints.
69641
69642 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69646         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69647         as another example.
69648         * lib/time_.h: Fix misspelling.
69649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69650         Require gl_HEADER_TIME_H_DEFAULTS.
69651         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69652         * m4/time_r.m4 (gl_TIME_R): Likewise.
69653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69654
69655 2007-03-01  Bruno Haible  <bruno@clisp.org>
69656
69657         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69658         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69659
69660 2007-03-01  Jim Meyering  <jim@meyering.net>
69661
69662         * modules/xreadlink (Maintainer): Add my name.
69663         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69664
69665 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69666             Bruno Haible  <bruno@clisp.org>
69667
69668         * build-aux/install-reloc: Compile also c-ctype.c.
69669         * build-aux/relocatable.sh.in: New file.
69670         * doc/relocatable.texi: New file.
69671         * doc/relocatable-maint.texi: New file.
69672         * doc/gnulib.texi: Include relocatable-maint.texi.
69673         * lib/progreloc.c: Include unistd.h unconditionally.
69674         * lib/relocwrapper.c: Include unistd.h unconditionally.
69675         Include c-ctype.h.
69676         (add_dotbin): Use c_tolower.
69677         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69678         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69679         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69680         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69681         to m4/relocatable-lib.m4.
69682         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69683         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69684         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69685         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69686         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69687         * modules/relocatable: New file.
69688         * modules/relocatable-lib: New file.
69689         * modules/relocatable-script: New file.
69690
69691 2007-02-28  Bruno Haible  <bruno@clisp.org>
69692
69693         Import --enable-relocatable infrastructure.
69694         * build-aux/config.libpath: New file, from GNU gettext.
69695         * build-aux/install-reloc: New file, from GNU gettext.
69696         * build-aux/reloc-ldflags: New file, from GNU gettext.
69697         * lib/relocatable.h: New file, from GNU gettext.
69698         * lib/relocatable.c: New file, from GNU gettext.
69699         * lib/relocwrapper.c: New file, from GNU gettext.
69700         * m4/relocatable.m4: New file, from GNU gettext.
69701
69702 2007-02-28  Bruno Haible  <bruno@clisp.org>
69703
69704         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69705
69706         * modules/xreadlink: New file, from GNU gettext with modifications.
69707         * lib/xreadlink.c: New file, from GNU gettext.
69708         * lib/xreadlink.h: Add comments.
69709         (xreadlink): New declaration.
69710
69711         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69712         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69713         lib/xreadlink-with-size.c.
69714         (configure.ac): Remove gl_XREADLINK invocation.
69715         (Makefile.am): Augment lib_SOURCES.
69716         * m4/xreadlink.m4: Remove file.
69717         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69718         (xreadlink_with_size): Renamed from xreadink.
69719         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69720         * modules/canonicalize (Depends-on): Replace xreadlink with
69721         xreadlink-with-size.
69722         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69723
69724 2007-02-25  Jim Meyering  <jim@meyering.net>
69725
69726         * build-aux/announce-gen: When complaining about excess arguments,
69727         list them.
69728
69729 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69730
69731         * README: Document signed integer overflow situation more
69732         accurately.
69733
69734 2007-02-25  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69737         'a' or 'A' conversion.
69738
69739 2007-02-25  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/filename: Renamed from modules/pathname.
69742         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69743         lib/concatpath.c with lib/concat-filename.c.
69744         (Makefile.am): Update.
69745         (Include): Replace pathname.h with filename.h.
69746         * lib/filename.h: Renamed from lib/pathname.h.
69747         (concatenated_filename): Renamed from concatenated_pathname.
69748         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69749         (concatenated_filename): Renamed from concatenated_pathname.
69750         * lib/findprog.c: Include filename.h instead of pathname.h.
69751         (find_in_path): Update.
69752         * lib/javacomp.c: Include filename.h instead of pathname.h.
69753         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69754         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69755         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69756         is_oldgcj_14_13_usable, is_javac_usable): Update.
69757         * lib/javaexec.c: Include filename.h instead of pathname.h.
69758         (execute_java_class): Update.
69759         * modules/findprog: Update.
69760         * modules/javacomp: Update.
69761         * modules/javaexec: Update.
69762         * MODULES.html.sh (File system functions): Add 'filename', remove
69763         'pathname'.
69764
69765 2007-02-25  Bruno Haible  <bruno@clisp.org>
69766
69767         * modules/printf-frexpl-tests: New file.
69768         * tests/test-printf-frexpl.c: New file.
69769
69770         * modules/printf-frexpl: New file.
69771         * lib/printf-frexpl.h: New file.
69772         * lib/printf-frexpl.c: New file.
69773         * m4/printf-frexpl.m4: New file.
69774
69775 2007-02-25  Bruno Haible  <bruno@clisp.org>
69776
69777         * modules/printf-frexp-tests: New file.
69778         * tests/test-printf-frexp.c: New file.
69779
69780         * modules/printf-frexp: New file.
69781         * lib/printf-frexp.h: New file.
69782         * lib/printf-frexp.c: New file.
69783         * m4/printf-frexp.m4: New file.
69784
69785 2007-02-25  Bruno Haible  <bruno@clisp.org>
69786
69787         Assume automake >= 1.10 for the tests.
69788         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69789         * modules/arctwo-tests: Likewise.
69790         * modules/argp-tests: Likewise.
69791         * modules/avltree-list-tests: Likewise.
69792         * modules/avltree-oset-tests: Likewise.
69793         * modules/avltreehash-list-tests: Likewise.
69794         * modules/carray-list-tests: Likewise.
69795         * modules/crc-tests: Likewise.
69796         * modules/des-tests: Likewise.
69797         * modules/gc-arcfour-tests: Likewise.
69798         * modules/gc-arctwo-tests: Likewise.
69799         * modules/gc-des-tests: Likewise.
69800         * modules/gc-hmac-md5-tests: Likewise.
69801         * modules/gc-hmac-sha1-tests: Likewise.
69802         * modules/gc-md2-tests: Likewise.
69803         * modules/gc-md4-tests: Likewise.
69804         * modules/gc-md5-tests: Likewise.
69805         * modules/gc-pbkdf2-sha1-tests: Likewise.
69806         * modules/gc-rijndael-tests: Likewise.
69807         * modules/gc-sha1-tests: Likewise.
69808         * modules/gc-tests: Likewise.
69809         * modules/getaddrinfo-tests: Likewise.
69810         * modules/hmac-md5-tests: Likewise.
69811         * modules/hmac-sha1-tests: Likewise.
69812         * modules/linked-list-tests: Likewise.
69813         * modules/linkedhash-list-tests: Likewise.
69814         * modules/lock-tests: Likewise.
69815         * modules/md2-tests: Likewise.
69816         * modules/md4-tests: Likewise.
69817         * modules/md5-tests: Likewise.
69818         * modules/rbtree-list-tests: Likewise.
69819         * modules/rbtree-oset-tests: Likewise.
69820         * modules/rbtreehash-list-tests: Likewise.
69821         * modules/read-file-tests: Likewise.
69822         * modules/rijndael-tests: Likewise.
69823         * modules/stdint-tests: Likewise.
69824         * modules/tls-tests: Likewise.
69825
69826 2007-02-24  Bruno Haible  <bruno@clisp.org>
69827
69828         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
69829         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
69830         function; instead check whether isnan with a double argument links.
69831         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
69832         function; instead check whether isnan with a 'long double' argument
69833         links.
69834         Reported by Eric Blake <ebb9@byu.net>.
69835
69836 2007-02-24  Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
69839         defined.
69840         * lib/isnanl.c: Remove all code. Just include isnan.c.
69841         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
69842
69843 2007-02-25  Jim Meyering  <jim@meyering.net>
69844
69845         Avoid conflicting types for 'unsetenv' on FreeBSD.
69846         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
69847         conflicting with FreeBSD's (5.0 and 6.1) function declaration
69848         in stdlib.h.
69849
69850 2007-02-24  Bruno Haible  <bruno@clisp.org>
69851
69852         * modules/isnanl-nolibm-tests: New file.
69853         * tests/test-isnanl.c: New file.
69854
69855         * modules/isnanl-nolibm: New file.
69856         * lib/isnanl.h: New file.
69857         * lib/isnanl.c: New file.
69858         * m4/isnanl.m4: New file.
69859
69860 2007-02-24  Bruno Haible  <bruno@clisp.org>
69861
69862         * modules/isnan-nolibm-tests: New file.
69863         * tests/test-isnan.c: New file.
69864
69865         * modules/isnan-nolibm: New file.
69866         * lib/isnan.h: New file.
69867         * lib/isnan.c: New file.
69868         * m4/isnan.m4: New file.
69869
69870 2007-02-24  Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
69873         assume that an exponent fits in 20 bits.
69874
69875 2007-02-24  Jim Meyering  <jim@meyering.net>
69876
69877         * m4/regex.m4: Update the description of the configure-time option,
69878         --without-included-regex, to state accurately what the defaults are,
69879         and perhaps to give people an idea why using this option is risky.
69880
69881 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
69884         loops on small arguments.  This attempts to avoid the problem
69885         Bruno Haible reported for AIX 4.3.2 in
69886         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
69887
69888 2007-02-23  Bruno Haible  <bruno@clisp.org>
69889
69890         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
69891         Needed for help2man.
69892
69893 2007-02-23  Karl Berry  <karl@gnu.org>
69894
69895         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
69896         exists, foo.h should be cvs-ignored, not committed.
69897
69898 2007-02-23  Eric Blake  <ebb9@byu.net>
69899
69900         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
69901         * lib/stat-time.h (includes): Likewise.
69902         * lib/utimecmp.c (includes): Likewise.
69903         * lib/utimens.h (includes): Likewise.
69904         * lib/getdate.y (includes): Also include "timespec.h" for use
69905         internal to the module.
69906         * modules/utimens (Depends-on): Revert yesterday's patch.
69907         * modules/nanosleep (Depends-on): Add missing dependency.
69908
69909 2007-02-22  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/glob.c: Don't include getlogin_r.h.
69912
69913 2007-02-22  Jim Meyering  <jim@meyering.net>
69914
69915         * modules/utimens (Depends-on): Add timespec, required for
69916         utimens.h's inclusion of timespec.h.
69917
69918 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
69921         long unreadable paths in GNU/Linux.  Problem reported by Andreas
69922         Schwab in
69923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
69924         I'll try to think of a better way to fix the Solaris problem.
69925
69926         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
69927         like glibc; on Solaris 10, it fails with errno == EINVAL.
69928         POSIX says the behavior is unspecified if the first argument is NULL,
69929         so play it safe and never pass NULL to the system getcwd.
69930
69931 2007-02-21  Jim Meyering  <jim@meyering.net>
69932
69933         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
69934         of gettimeofday.  It would conflict with the one now always
69935         provided via sys_time_.h.  Reported by Matthew Woehlke, as
69936         an IRIX 6.5 build failure.
69937
69938 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69939
69940         Minor fixups to port to Solaris 10 with Sun C 5.8.
69941         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
69942         * modules/getcwd (Depends-on): Add dirfd.
69943         * lib/putenv.c (putenv): #undef it.
69944         (rpl_putenv): New decl.
69945         (malloc, free): Include <stdlib.h> rather than prototyping separately.
69946
69947 2007-02-20  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/stdio-tests: New file.
69950         * tests/test-stdio.c: New file.
69951
69952         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69953         (Depends-on): Add stdio.
69954         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69955         (Include): Use <stdio.h> instead of vsnprintf.h.
69956         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69957         HAVE_DECL_VSNPRINTF.
69958         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69959
69960         * modules/snprintf (Files): Remove lib/snprintf.h.
69961         (Depends-on): Add stdio.
69962         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69963         (Include): Use <stdio.h> instead of snprintf.h.
69964         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69965         HAVE_DECL_SNPRINTF.
69966         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69967         * lib/getaddrinfo.c: Likewise.
69968
69969         * modules/stdio: New file.
69970         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69971         * lib/snprintf.h: Remove file.
69972         * lib/vsnprintf.h: Remove file.
69973         * lib/.cppi-disable: Remove snprintf.h.
69974         * m4/stdio_h.m4: New file.
69975         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69976
69977 2007-02-20  Jim Meyering  <jim@meyering.net>
69978
69979         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69980         used by e.g., mingw.  From Bruno Haible.
69981
69982 2007-02-19  Bruno Haible  <bruno@clisp.org>
69983
69984         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69985         warnings.
69986         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69987
69988 2007-02-19  Bruno Haible  <bruno@clisp.org>
69989
69990         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69991         from mingw users.
69992
69993 2007-02-19  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69996         warnings.
69997         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69998
69999 2007-02-19  Jim Meyering  <jim@meyering.net>
70000
70001         Don't use FD after a successful "fdopendir (fd)".
70002         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70003         Reset it by calling dirfd on the just-obtained DIR*.
70004
70005         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70006         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70007
70008 2007-02-18  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/readlink.c: Include <unistd.h>.
70011         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70012         HAVE_READLINK.
70013         * modules/readlink (Depends-on): Add unistd.
70014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70015         (Include): Add <unistd.h>.
70016
70017         * lib/getlogin_r.h: Remove file.
70018         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70019         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70020         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70021         HAVE_DECL_GETLOGIN_R.
70022         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70023         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70024         (Include): Use <unistd.h> instead of getlogin_r.h.
70025
70026         * lib/getcwd.h: Remove file.
70027         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70028         * lib/xgetcwd.c: Likewise.
70029         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70030         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70031         * modules/getcwd (Files): Remove lib/getcwd.h.
70032         (Depends-on): Add unistd.
70033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70034         (Include): Use <unistd.h> instad of getcwd.h.
70035
70036         * lib/ftruncate.c: Include <unistd.h> first.
70037         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70038         Set HAVE_FTRUNCATE.
70039         * modules/ftruncate (Depends-on): Add unistd.
70040         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70041
70042         * lib/fchdir.c: Include <unistd.h> first.
70043         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70045         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70046         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70047         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70048
70049         * lib/dup2.c: Include <unistd.h> first.
70050         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70051         HAVE_DUP2.
70052         * modules/dup2 (Depends-on): Add unistd.
70053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70054
70055         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70056         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70057         REPLACE_CHOWN. Don't define chown as a macro here.
70058         * modules/chown (Depends-on): Add unistd.
70059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70060
70061         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70062         Add definition for GL_LINK_WARNING.
70063         (chown, dup2): New declarations.
70064         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70065         link warning.
70066         (ftruncate): New declaration.
70067         (getcwd): New declaration, taken from old getcwd.h.
70068         (getlogin_r): New declaration, taken from old getlogin_r.h.
70069         (readlink): New declaration.
70070         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70071         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70072         (gl_PREREQ_UNISTD): Remove macro.
70073         (gl_UNISTD_MODULE_INDICATOR): New macro.
70074         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70075         many new variables. Don't set UNISTD_H.
70076         * modules/unistd (Description): Change.
70077         (Depends-on): Add link-warning.
70078         (configure.ac): Update.
70079         (Makefile.am): Create unistd.h always. Substitute many new variables
70080         into it.
70081
70082 2007-02-18  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70085         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70086         HAVE_GETSUBOPT.
70087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70088         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70089         * lib/getsubopt.h: Remove file.
70090         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70091         (Depends-on): Add stdlib.
70092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70093         (Includes): Use <stdlib.h> instead of getsubopt.h.
70094         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70095         Set HAVE_GETSUBOPT.
70096         * lib/getsubopt.c: Don't include getsubopt.h.
70097
70098 2007-02-18  Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/fchdir (Depends-on): Add dup2.
70101
70102 2007-02-18  Bruno Haible  <bruno@clisp.org>
70103
70104         * lib/stdlib_.h: Handle glibc's special invocation convention
70105         specially.
70106
70107 2007-02-18  Bruno Haible  <bruno@clisp.org>
70108
70109         * modules/stdlib-tests: New file.
70110         * tests/test-stdlib.c: New file.
70111
70112         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70113         (Depends-on): Add stdlib.
70114         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70115         (Includes): Use <stdlib.h> instead of mkstemp.h.
70116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70117         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70118         * lib/mkstemp.c: Don't include mkstemp.h.
70119         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70120         * lib/stdlib--.h: Don't include mkstemp.h.
70121
70122         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70123         (Depends-on): Add stdlib.
70124         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70125         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70126         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70127         HAVE_MKDTEMP.
70128         * lib/mkdtemp.c: Don't include mkdtemp.h.
70129         * lib/clean-temp.c: Don't include mkdtemp.h.
70130
70131         * modules/exit (Files): Remove lib/exit.h.
70132         (Depends-on): Add stdlib.
70133         (Makefile.am): Remove lib_SOURCES.
70134         (Include): Use <stdlib.h> instead of exit.h.
70135         * lib/argmatch.c: Don't include exit.h.
70136         * lib/execute.c: Likewise.
70137         * lib/pagealign_alloc.c: Likewise.
70138         * lib/pipe.c: Likewise.
70139         * lib/wait-process.c: Likewise.
70140         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70141         * lib/exitfail.c: Likewise.
70142         * lib/savewd.c: Likewise.
70143         * lib/xsetenv.c: Likewise.
70144
70145         * modules/stdlib: New file.
70146         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70147         and extra comments about mkstemp().
70148         * lib/exit.h: Remove file.
70149         * lib/mkdtemp.h: Remove file.
70150         * lib/mkstemp.h: Remove file.
70151         * m4/stdlib_h.m4: New file.
70152         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70153
70154 2007-02-18  Bruno Haible  <bruno@clisp.org>
70155
70156         * modules/math-tests: New file.
70157         * tests/test-math.c: New file.
70158
70159         * modules/math: New file.
70160         * modules/mathl (Files): Remove lib/mathl.h.
70161         (Depends-on): Add math.
70162         (Makefile.am): Don't mention mathl.h.
70163         (Include): Use <math.h> instead of mathl.h.
70164         * lib/math_.h: New file.
70165         * lib/mathl.h: Remove file.
70166         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70167         mathl.h.
70168         * lib/asinl.c: Likewise.
70169         * lib/atanl.c: Likewise.
70170         * lib/ceill.c: Likewise.
70171         * lib/cosl.c: Likewise.
70172         * lib/expl.c: Likewise.
70173         * lib/floorl.c: Likewise.
70174         * lib/frexpl.c: Likewise.
70175         * lib/ldexpl.c: Likewise.
70176         * lib/logl.c: Likewise.
70177         * lib/sincosl.c: Likewise.
70178         * lib/sinl.c: Likewise.
70179         * lib/sqrtl.c: Likewise.
70180         * lib/tanl.c: Likewise.
70181         * lib/trigl.c: Likewise.
70182         * m4/math_h.m4: New file.
70183         * MODULES.html.sh (Mathematics): Add math.
70184
70185 2007-02-17  Bruno Haible  <bruno@clisp.org>
70186
70187         * modules/wctype-tests: New file.
70188         * tests/test-wctype.c: New file.
70189
70190         * modules/wchar-tests: New file.
70191         * tests/test-wchar.c: New file.
70192
70193         * modules/unistd-tests: New file.
70194         * tests/test-unistd.c: New file.
70195
70196         * modules/time-tests: New file.
70197         * tests/test-time.c: New file.
70198
70199         * modules/sysexits-tests: New file.
70200         * tests/test-sysexits.c: New file.
70201
70202         * modules/sys_time-tests: New file.
70203         * tests/test-sys_time.c: New file.
70204
70205         * modules/sys_stat-tests: New file.
70206         * tests/test-sys_stat.c: New file.
70207
70208         * modules/sys_socket-tests: New file.
70209         * tests/test-sys_socket.c: New file.
70210
70211         * modules/sys_select-tests: New file.
70212         * tests/test-sys_select.c: New file.
70213
70214         * modules/string-tests: New file.
70215         * tests/test-string.c: New file.
70216
70217         * modules/stdbool-tests: New file.
70218         * tests/test-stdbool.c: New file.
70219
70220         * modules/netinet_in-tests: New file.
70221         * tests/test-netinet_in.c: New file.
70222
70223         * modules/inttypes-tests: New file.
70224         * tests/test-inttypes.c: New file.
70225
70226         * modules/fcntl-tests: New file.
70227         * tests/test-fcntl.c: New file.
70228
70229         * modules/byteswap-tests: New file.
70230         * tests/test-byteswap.c: New file.
70231
70232         * modules/arpa_inet-tests: New file.
70233         * tests/test-arpa_inet.c: New file.
70234
70235 2007-02-17  Bruno Haible  <bruno@clisp.org>
70236
70237         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70238         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70239         if the corresponding module is not enabled. Emit link warnings if
70240         the function is used nevertheless.
70241         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70242         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70243         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70244         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70245         * modules/inttypes (Depends-on): Add link-warning.
70246         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70247         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70248         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70249         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70250         * modules/imaxdiv (configure.ac): Likewise.
70251         * modules/strtoimax (configure.ac): Likewise.
70252         * modules/strtoumax (configure.ac): Likewise.
70253
70254 2007-02-17  Bruno Haible  <bruno@clisp.org>
70255
70256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70257         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70258         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70259         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70260
70261 2007-02-17  Bruno Haible  <bruno@clisp.org>
70262
70263         * modules/link-warning: New file.
70264         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70265         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70266         * modules/string (Depends-on): Add link-warning.
70267         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70268         string.h.
70269         * MODULES.html.sh (Support for building libraries and executables): Add
70270         link-warning.
70271
70272 2007-02-17  Bruno Haible  <bruno@clisp.org>
70273
70274         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70275         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70276         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70277         long lines.
70278
70279 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70280             Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/tmpfile: New file.
70283         * lib/tmpfile.c: New file.
70284         * m4/tmpfile.m4: New file.
70285         * MODULES.html.sh (func_all_modules): New section "Input/output".
70286
70287 2007-02-15  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70290         (supports_delete_on_close): New function.
70291         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70292
70293 2007-02-14  Bruno Haible  <bruno@clisp.org>
70294
70295         * modules/mbspcasecmp-tests: New file.
70296         * tests/test-mbspcasecmp.sh: New file.
70297         * tests/test-mbspcasecmp.c: New file.
70298
70299         New module mbspcasecmp.
70300         * modules/mbspcasecmp: New file.
70301         * lib/mbspcasecmp.c: New file.
70302         * lib/string_.h (strncasecmp): Change warning message.
70303         (mbspcasecmp): New declaration.
70304         * m4/mbspcasecmp.m4: New file.
70305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70306         GNULIB_MBSPCASECMP.
70307         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70308         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70309
70310 2007-02-14  Bruno Haible  <bruno@clisp.org>
70311
70312         * modules/mbsncasecmp-tests: New file.
70313         * tests/test-mbsncasecmp.sh: New file.
70314         * tests/test-mbsncasecmp.c: New file.
70315
70316         New module mbsncasecmp.
70317         * modules/mbsncasecmp: New file.
70318         * lib/mbsncasecmp.c: New file.
70319         * lib/string_.h (mbsncasecmp): New declaration.
70320         * m4/mbsncasecmp.m4: New file.
70321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70322         GNULIB_MBSNCASECMP.
70323         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70324         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70325
70326 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70329         Verify that it doesn't overlap with our flags.
70330         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70331         do not have the desired effect in multibyte locales; instead, use
70332         mbscasecmp.
70333         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70334         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70335         we don't require GNU fnmatch ourselves (if our users require it, they
70336         should do so explicitly).
70337
70338         Fix regex code so it doesn't rely on strcasecmp.
70339         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70340         Otherwise, include gnulib's langinfo.h.
70341         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70342         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70343         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70344         * modules/regex (FILES): Remove m4/codeset.m4.
70345         (Depends-on): Add localcharset.  Remove strcase.
70346
70347 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70348
70349         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70350         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70351
70352 2007-02-13  Bruno Haible  <bruno@clisp.org>
70353
70354         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70355         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70356
70357 2007-02-12  Bruno Haible  <bruno@clisp.org>
70358
70359         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70360         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70361         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70362         time warning rather than a link error.
70363
70364 2007-02-12  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70367         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70368         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70369
70370 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70373         args, not 2.
70374
70375 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         New module 'time', so that apps can include <time.h> as per
70378         POSIX and GNU instead of separate include files like time_r.h
70379         and timegm.h.  This implementation tries out a simpler approach
70380         for replacing decls in standard include files (as compared to
70381         the string module), somewhat as an experiment.
70382
70383         * config/srclist.txt: Comment out mktime.c for now.
70384         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70385         since it doesn't apply any more.  Use generic wording instead.
70386         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70387         'time'.
70388         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70389         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70390         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70391         Don't include <sys/types.h>; no longer needed since we assume C89.
70392         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70393         * lib/strftime.c: Likewise.
70394         * lib/time_r.c: Likewise.
70395         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70396         * lib/nanosleep.c: Include <time.h> first, to check interface.
70397         * lib/strptime.c: Likewise.
70398         * lib/time_r.c: Likewise.
70399         * lib/timegm.c: Likewise.
70400         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70401         needed.
70402         * lib/timegm.c: Don't include timegm.h; no longer needed.
70403         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70404         time.h now handles any problems in that area.
70405         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70406         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70407         that time.h defines struct timespec.
70408         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70409         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70410         handles that.
70411         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70412         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70413         needed.  Set REPLACE_LOCALTIME.
70414         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70415         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70416         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70417         nanosleep; time_h.m4 now does that.  Don't require
70418         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70419         module handles this now.
70420         * modules/getdate (Depends-on): Remove timespec.  Add time.
70421         * modules/nanosleep (Depends-on): Likewise.
70422         * modules/stat-time (Depends-on): Likewise.
70423         * modules/nanosleep (Include): Include time.h, not timespec.h.
70424         * modules/strptime (Files): Remove lib/strptime.h.
70425         (Depends-on): Add extensions, time.
70426         (Include): Include time.h, not strptime.h.
70427         * modules/time_r (Files): Remove lib/time_r.h.
70428         (Depends-on): Add time.
70429         (Include): Include time.h, not time_r.h.
70430         * modules/timegm: Likewise.
70431         * modules/timespec (Description): Now does timespec-related decls
70432         of our own, instead of struct timespec itself.
70433         (Depends-on): Add time; remove extensions.
70434         (Maintainer): Add self.
70435         * modules/utimecmp (Depends-on): Add time; remove timespec.
70436         * modules/utimens (Depends-on): Likewise.
70437         * modules/xnanosleep (Depends-on): Likewise.
70438
70439 2007-02-11  Bruno Haible  <bruno@clisp.org>
70440
70441         * lib/c-strstr.c: Include allocsa.h.
70442         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70443         * lib/c-strcasestr.c: Include allocsa.h.
70444         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70445         * lib/strcasestr.c: Include allocsa.h.
70446         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70447         * lib/mbsstr.c: Include allocsa.h.
70448         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70449         allocsa/freesa instead of malloc/free.
70450         * lib/mbscasestr.c: Include allocsa.h.
70451         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70452         allocsa/freesa instead of malloc/free.
70453         * modules/c-strstr (Depends-on): Add allocsa.
70454         * modules/c-strcasestr (Depends-on): Likewise.
70455         * modules/strcasestr (Depends-on): Likewise.
70456         * modules/mbsstr (Depends-on): Likewise.
70457         * modules/mbscasestr (Depends-on): Likewise.
70458
70459 2007-02-11  Bruno Haible  <bruno@clisp.org>
70460
70461         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70462
70463         * modules/mbsspn-tests: New file.
70464         * tests/test-mbsspn.sh: New file.
70465         * tests/test-mbsspn.c: New file.
70466
70467 2007-02-11  Bruno Haible  <bruno@clisp.org>
70468
70469         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70470
70471         * modules/mbspbrk-tests: New file.
70472         * tests/test-mbspbrk.sh: New file.
70473         * tests/test-mbspbrk.c: New file.
70474
70475 2007-02-11  Bruno Haible  <bruno@clisp.org>
70476
70477         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70478         unneeded cast.
70479
70480         * modules/mbscspn-tests: New file.
70481         * tests/test-mbscspn.sh: New file.
70482         * tests/test-mbscspn.c: New file.
70483
70484 2007-02-11  Bruno Haible  <bruno@clisp.org>
70485
70486         * modules/mbscasecmp-tests: New file.
70487         * tests/test-mbscasecmp.sh: New file.
70488         * tests/test-mbscasecmp.c: New file.
70489
70490 2007-02-11  Bruno Haible  <bruno@clisp.org>
70491
70492         Ensure O(n) worst-case complexity of mbscasestr.
70493         * lib/mbscasestr.c: Include stdbool.h.
70494         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70495         functions.
70496         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70497         the bookkeeping indicates that it's worth it.
70498         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70499
70500         * modules/mbscasestr-tests: New file.
70501         * tests/test-mbscasestr1.c: New file.
70502         * tests/test-mbscasestr2.sh: New file.
70503         * tests/test-mbscasestr2.c: New file.
70504         * tests/test-mbscasestr3.sh: New file.
70505         * tests/test-mbscasestr3.c: New file.
70506         * tests/test-mbscasestr4.sh: New file.
70507         * tests/test-mbscasestr4.c: New file.
70508         * m4/locale-tr.m4: New file.
70509
70510 2007-02-11  Bruno Haible  <bruno@clisp.org>
70511
70512         Ensure O(n) worst-case complexity of mbsstr.
70513         * lib/mbsstr.c: Include stdbool.h.
70514         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70515         functions.
70516         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70517         bookkeeping indicates that it's worth it.
70518         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70519
70520         * modules/mbsstr-tests: New file.
70521         * tests/test-mbsstr1.c: New file.
70522         * tests/test-mbsstr2.sh: New file.
70523         * tests/test-mbsstr2.c: New file.
70524         * tests/test-mbsstr3.sh: New file.
70525         * tests/test-mbsstr3.c: New file.
70526         * m4/locale-fr.m4: New file.
70527
70528 2007-02-11  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/mbsrchr.c (mbsrchr): Fix bug.
70531
70532         * modules/mbsrchr-tests: New file.
70533         * tests/test-mbsrchr.sh: New file.
70534         * tests/test-mbsrchr.c: New file.
70535
70536 2007-02-11  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/mbschr.c (mbschr): Fix bug.
70539
70540         * modules/mbschr-tests: New file.
70541         * tests/test-mbschr.sh: New file.
70542         * tests/test-mbschr.c: New file.
70543         * m4/locale-zh.m4: New file.
70544
70545 2007-02-11  Bruno Haible  <bruno@clisp.org>
70546
70547         Support for copying multibyte string iterators.
70548         * lib/mbiter.h: Include <string.h>.
70549         (mbiter_multi_copy): New function.
70550         (mbi_copy): New macro.
70551         * lib/mbuiter.h: Include <string.h>.
70552         (mbuiter_multi_copy): New function.
70553         (mbui_copy): New macro.
70554
70555 2007-02-11  Bruno Haible  <bruno@clisp.org>
70556
70557         New module mbslen.
70558         * modules/mbslen: New file.
70559         * lib/mbslen.c: New file.
70560         * lib/string_.h (mbslen): New declaration.
70561         * m4/mbslen.m4: New file.
70562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70563         GNULIB_MBSLEN.
70564         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70565         * MODULES.html.sh (Internationalization functions): Add mbslen.
70566
70567 2007-02-11  Bruno Haible  <bruno@clisp.org>
70568
70569         Ensure O(n) worst-case complexity of strcasestr substitute.
70570         * lib/strcasestr.c: Include stdbool.h.
70571         (knuth_morris_pratt): New function.
70572         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70573         bookkeeping indicates that it's worth it.
70574         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70575
70576         * modules/strcasestr-tests: New file.
70577         * tests/test-strcasestr.c: New file.
70578
70579 2007-02-11  Bruno Haible  <bruno@clisp.org>
70580
70581         Ensure O(n) worst-case complexity of c_strcasestr.
70582         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70583         (knuth_morris_pratt): New function.
70584         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70585         the bookkeeping indicates that it's worth it.
70586         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70587
70588         * modules/c-strcasestr-tests: New file.
70589         * tests/test-c-strcasestr.c: New file.
70590
70591 2007-02-11  Bruno Haible  <bruno@clisp.org>
70592
70593         Ensure O(n) worst-case complexity of c_strstr.
70594         * lib/c-strstr.c: Include stdbool.h, string.h.
70595         (knuth_morris_pratt): New function.
70596         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70597         bookkeeping indicates that it's worth it.
70598         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70599
70600         * lib/c-strstr.c: Complete rewrite for maintainability.
70601
70602         * modules/c-strstr-tests: New file.
70603         * tests/test-c-strstr.c: New file.
70604
70605 2007-02-11  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70608         5.2.1 and earlier, whereby \055 was treated just like the range
70609         delimiter '-'.
70610         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70611
70612 2007-02-08  Bruno Haible  <bruno@clisp.org>
70613
70614         * modules/regex (Depends-on): Add stdbool.
70615         Reported by Dalibor Topic <robilad@kaffe.org>.
70616
70617 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70618
70619         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70620         Prefer returning from main to exiting from it.
70621         Remove unnecessary parens after sizeof.
70622
70623 2007-02-05  Bruno Haible  <bruno@clisp.org>
70624
70625         New module mbssep.
70626         * modules/mbssep: New file.
70627         * lib/mbssep.c: New file.
70628         * lib/string_.h (strsep): Add a conditional link warning.
70629         (mbssep): New declaration.
70630         * m4/mbssep.m4: New file.
70631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70632         GNULIB_MBSSEP.
70633         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70634         * MODULES.html.sh (Internationalization functions): Add mbssep.
70635
70636 2007-02-05  Bruno Haible  <bruno@clisp.org>
70637
70638         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70639         Optimize search in case of 1 delimiter.
70640
70641 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70642
70643         * lib/acl.h: Include sys/types.h before sys/acl.h.
70644
70645 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70646
70647         Merge upstream fix for glibc bugzilla #3957:
70648
70649         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70650
70651         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70652         bit for RE_HAT_LISTS_NOT_NEWLINE.
70653         (build_charclass_op): Remove bogus comment.
70654
70655 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70656
70657         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70658
70659 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70660
70661         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70662         * lib/memmem.c [!defined _LIBC]: Include config.h.
70663
70664 2007-02-04  Bruno Haible  <bruno@clisp.org>
70665
70666         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70667         warning message.
70668
70669 2007-02-04  Bruno Haible  <bruno@clisp.org>
70670
70671         New module mbstok_r.
70672         * modules/mbstok_r: New file.
70673         * lib/mbstok_r.c: New file.
70674         * lib/string_.h (strtok_r): Change argument names to match the
70675         comments. Add a conditional link warning.
70676         (mbstok_r): New declaration.
70677         * m4/mbstok_r.m4: New file.
70678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70679         GNULIB_MBSTOK_R.
70680         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70681         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70682
70683 2007-02-04  Bruno Haible  <bruno@clisp.org>
70684
70685         New module mbsspn.
70686         * modules/mbsspn: New file.
70687         * lib/mbsspn.c: New file.
70688         * lib/string_.h (strspn): Add a conditional link warning.
70689         (mbsspn): New declaration.
70690         * m4/mbsspn.m4: New file.
70691         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70692         GNULIB_MBSSPN.
70693         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70694         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70695
70696 2007-02-04  Bruno Haible  <bruno@clisp.org>
70697
70698         New module mbspbrk.
70699         * modules/mbspbrk: New file.
70700         * lib/mbspbrk.c: New file.
70701         * lib/string_.h (strpbrk): Add a conditional link warning.
70702         (mbspbrk): New declaration.
70703         * m4/mbspbrk.m4: New file.
70704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70705         GNULIB_MBSPBRK.
70706         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70707         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70708
70709 2007-02-04  Bruno Haible  <bruno@clisp.org>
70710
70711         New module mbscspn.
70712         * modules/mbscspn: New file.
70713         * lib/mbscspn.c: New file.
70714         * lib/string_.h (strcspn): Add a conditional link warning.
70715         (mbscspn): New declaration.
70716         * m4/mbscspn.m4: New file.
70717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70718         GNULIB_MBSCSPN.
70719         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70720         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70721
70722 2007-02-04  Bruno Haible  <bruno@clisp.org>
70723
70724         New module mbscasestr, reduced goal of strcasestr.
70725         * modules/mbscasestr: New file.
70726         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70727         (mbscasestr): Renamed from strcasestr.
70728         * lib/strcasestr.c: Don't include mbuiter.h.
70729         (strcasestr): Remove support for multibyte locales.
70730         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70731         Change the conditional link warning.
70732         (mbscasestr): New declaration.
70733         * m4/mbscasestr.m4: New file.
70734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70735         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70736         REPLACE_STRCASESTR.
70737         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70739         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70740         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70741         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70742         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70743         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70744         (Depends-on): Remove mbuiter.
70745         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70746
70747 2007-02-04  Bruno Haible  <bruno@clisp.org>
70748
70749         Simplify handling of strncasecmp.
70750         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70751         the conditional link warning.
70752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70753         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70754         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70755         * modules/strcase (configure.ac): Don't invoke
70756         gl_STRING_MODULE_INDICATOR.
70757         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70758
70759 2007-02-04  Bruno Haible  <bruno@clisp.org>
70760
70761         New module mbscasecmp, reduced goal of strcasecmp.
70762         * modules/mbscasecmp: New file.
70763         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70764         (mbscasecmp): Renamed from strcasecmp.
70765         * lib/strcasecmp.c: Don't include mbuiter.h.
70766         (strcasecmp): Remove support for multibyte locales.
70767         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70768         Change the conditional link warning.
70769         (mbscasecmp): New declaration.
70770         * m4/mbscasecmp.m4: New file.
70771         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70772         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70773         REPLACE_STRCASECMP.
70774         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70776         GNULIB_MBSCASECMP.
70777         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70778         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70779         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70780         (Depends-on): Remove mbuiter.
70781         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70782
70783 2007-02-04  Bruno Haible  <bruno@clisp.org>
70784
70785         New module mbsstr. Remove module strstr.
70786         * modules/mbsstr: New file.
70787         * modules/strstr: Remove file.
70788         * lib/mbsstr.c: Renamed from lib/strstr.c.
70789         (mbsstr): Renamed from strstr.
70790         * lib/string_.h (strstr): Remove declaration. Change the conditional
70791         link warning.
70792         (mbsstr): New declaration.
70793         * m4/mbsstr.m4: New file.
70794         * m4/strstr.m4: Remove file.
70795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70796         REPLACE_STRSTR.
70797         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70798         Don't initialize GNULIB_STRSTR.
70799         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70800         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70801         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70802         (Support for systems lacking ANSI C 89): Remove strstr.
70803
70804 2007-02-04  Bruno Haible  <bruno@clisp.org>
70805
70806         New module mbsrchr.
70807         * modules/mbsrchr: New file.
70808         * lib/mbsrchr.c: New file.
70809         * lib/string_.h (strrchr): Add a conditional link warning.
70810         (mbsrchr): New declaration.
70811         * m4/mbsrchr.m4: New file.
70812         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70813         GNULIB_MBSRCHR.
70814         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70815         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70816
70817 2007-02-04  Bruno Haible  <bruno@clisp.org>
70818
70819         New module mbschr.
70820         * modules/mbschr: New file.
70821         * lib/mbschr.c: New file.
70822         * lib/string_.h (strchr): Add a conditional link warning.
70823         (mbschr): New declaration.
70824         * m4/mbschr.m4: New file.
70825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70826         GNULIB_MBSCHR.
70827         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
70828         * MODULES.html.sh (Internationalization functions): Add mbschr.
70829
70830 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
70833
70834         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
70835
70836 2007-02-04  Bruno Haible  <bruno@clisp.org>
70837
70838         New module description section 'configure.ac-early'.
70839         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
70840         (func_get_autoconf_early_snippet): New function.
70841         (func_import, func_create_testdir): Use it. Remove special cases for
70842         modules 'extensions' and 'lock'.
70843         * modules/extensions (configure.ac-early): Require
70844         gl_USE_SYSTEM_EXTENSIONS.
70845         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
70846
70847 2007-02-04  Bruno Haible  <bruno@clisp.org>
70848
70849         Make use of gcj-4.3's -fsource and -ftarget option.
70850         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
70851         and if so try the options -fsource and -ftarget.
70852         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
70853         source_version, ftarget_option, target_version arguments.
70854         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
70855         (is_envjavac_oldgcj_14_14_usable): Renamed from
70856         is_envjavac_gcj_14_14_usable.
70857         (is_envjavac_oldgcj_14_13_usable): Renamed from
70858         is_envjavac_gcj_14_13_usable.
70859         (is_gcj_present): Update.
70860         (is_gcj_43, is_gcj43_usable): New functions.
70861         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
70862         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
70863         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
70864         try the options -fsource and -ftarget.
70865
70866 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
70867
70868         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
70869         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
70870         larger value.
70871
70872 2007-02-03  Jim Meyering  <jim@meyering.net>
70873
70874         Give tools a better chance to allocate space for very large buffers.
70875         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
70876
70877         Make pwd and readlink work also when run with an unreadable parent dir
70878         on systems with openat support.
70879         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
70880         provided getcwd function, even when we have openat support.
70881         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
70882
70883 2007-02-02  Bruno Haible  <bruno@clisp.org>
70884
70885         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70886         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
70887         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
70888         portability problems if one of these functions is only used on specific
70889         platforms.
70890         Reported by Paul Eggert.
70891
70892 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
70895         is causing more trouble than it's curing.
70896         * lib/regex_internal.h (__mempcpy): Remove.
70897         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
70898         (and make the code a tad smaller to boot).
70899         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
70900
70901 2007-02-02  Jim Meyering  <jim@meyering.net>
70902
70903         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
70904         section, not in the Makefile.am: one.
70905
70906 2007-02-02  Eric Blake  <ebb9@byu.net>
70907
70908         * lib/strchrnul.c: Always include config.h first.
70909
70910         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
70911         gnulib strstr is not necessary here.
70912
70913 2007-02-02  Simon Josefsson  <simon@josefsson.org>
70914
70915         * m4/socklen.m4: Fix typo.
70916
70917 2007-02-02  Eric Blake  <ebb9@byu.net>
70918
70919         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
70920         * modules/netinet_in (Makefile.am): Likewise.
70921
70922 2007-02-01  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/string_.h (GL_LINK_WARNING): New macro.
70925         (strcasecmp, strstr, strcasestr): If provided by the system,
70926         conditionally define as a macro that leads to a warning instead of to
70927         an error.
70928         (strncasecmp): Conditionally define as a macro that leads to a warning.
70929
70930 2007-02-01  Karl Berry  <karl@gnu.org>
70931
70932         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
70933
70934 2007-02-01  Bruno Haible  <bruno@clisp.org>
70935
70936         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
70937         renamings.
70938
70939 2007-02-01  Eric Blake  <ebb9@byu.net>
70940
70941         * modules/regex (Depends-on): Revert dependence on mempcpy.
70942         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
70943         module's definition of mempcpy.
70944         Reported by Paul Eggert.
70945
70946 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70949         the symbol XYZ before redefining it.  This fixes a problem with
70950         programs that don't use XYZ, when compiled on systems that define
70951         XYZ to something else.
70952
70953 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70956         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70957         writeable to group or other and (2) is intended to have a special
70958         mode bit that is set or cleared.  In such a case, the directory
70959         should be neither group- nor other-writeable until the special
70960         mode bits are right.
70961
70962 2007-01-31  Eric Blake  <ebb9@byu.net>
70963
70964         * modules/mountlist (Depends-on): Add strstr.
70965
70966         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70967         bug.
70968         * modules/string (Makefile.am): Remove redundant replacement.
70969         * modules/regex (Depends-on): Add mempcpy.
70970
70971 2007-01-31  Bruno Haible  <bruno@clisp.org>
70972
70973         New module description field 'Link'.
70974         * gnulib-tool (func_usage): Document --extract-link-directive.
70975         (sed_extract_prog): Recognize 'Link' directive.
70976         (func_get_link_directive): New function.
70977         (func_import): Show summary of link directives.
70978         Handle --extract-link-directive option.
70979         * modules/acl (Link): New section.
70980         * modules/clock-time (Link): New section.
70981         * modules/euidaccess (Link): New section.
70982         * modules/gettext (Link): New section.
70983         * modules/iconv (Link): New section.
70984         * modules/lock (Link): New section.
70985         * modules/nanosleep (Link): New section.
70986         * modules/readline (Link): New section.
70987
70988 2007-01-27  Bruno Haible  <bruno@clisp.org>
70989
70990         Enforce the use of gnulib modules for unportable <string.h> functions.
70991         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70992         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70993         (gl_HEADER_STRING_H_BODY): Require it.
70994         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70995         the symbol XYZ to one that gives a link error.
70996         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70997         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70998         * modules/mempcpy (configure.ac): Likewise.
70999         * modules/memrchr (configure.ac): Likewise.
71000         * modules/stpcpy (configure.ac): Likewise.
71001         * modules/stpncpy (configure.ac): Likewise.
71002         * modules/strcase (configure.ac): Likewise.
71003         * modules/strcasestr (configure.ac): Likewise.
71004         * modules/strchrnul (configure.ac): Likewise.
71005         * modules/strdup (configure.ac): Likewise.
71006         * modules/strndup (configure.ac): Likewise.
71007         * modules/strnlen (configure.ac): Likewise.
71008         * modules/strpbrk (configure.ac): Likewise.
71009         * modules/strsep (configure.ac): Likewise.
71010         * modules/strstr (configure.ac): Likewise.
71011         * modules/strtok_r (configure.ac): Likewise.
71012
71013 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71014
71015         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71016
71017 2007-01-30  Jim Meyering  <jim@meyering.net>
71018
71019         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71020
71021 2007-01-29  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71024         * lib/execute.c: Likewise.
71025         * lib/pipe.c: Likewise.
71026         * lib/printf-args.h: Likewise.
71027         * lib/printf-args.c: Likewise.
71028         * lib/printf-parse.c: Likewise.
71029         * lib/vasnprintf.c: Likewise.
71030
71031 2007-01-29  Eric Blake  <ebb9@byu.net>
71032
71033         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71034         declaration.
71035
71036 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * lib/strptime.h (strptime): Use 'restrict' for args where
71039         POSIX requires this.
71040         * lib/strptime.c (strptime): Likewise.
71041         Change license notice from LGPL to GPL, since gnulib-tool will
71042         change this as needed.
71043         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71044         defined.
71045         Include "strptime.h" first, to check interface.
71046         Do not #undef _LIBC and _NL_CURRENT.
71047         Do not include <stdlib.h>; no longer needed.
71048         Include "time_r.h" and declare ptime_locale_status
71049         only if _LIBC is not defined.
71050         (__P): Remove unused macro.
71051         (match_string): Bring back glibc version, but use it only if _LIBC
71052         is defined.
71053         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71054         Remove unnecessary assertion and abort() call.
71055         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71056         * m4/strptime.m4: Fix serial number comment.
71057         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71058         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71059         (Depends-on): Add time_r.
71060
71061 2007-01-29  Bruno Haible  <bruno@clisp.org>
71062
71063         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71064         strptime.
71065         * modules/strptime (Depends-on): Add stdbool.
71066         * lib/strptime.h: Include <time.h> always. Add comments.
71067
71068 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71069
71070         * modules/strptime: New file.
71071         * lib/strptime.h: New file.
71072         * lib/strptime.c: New file.
71073         * m4/strptime.m4: New file.
71074
71075 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71076
71077         * MODULES.html.sh: New module mpsort.
71078         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71079
71080         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71081         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71083         All uses changed.
71084         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71085         All uses changed.
71086         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71087         to _Restrict_.
71088         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71089         the parameter matches the prototype.
71090
71091 2007-01-28  Jim Meyering  <jim@meyering.net>
71092
71093         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71094         sys/time.h here, reverting that part of the previous patch:
71095         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71096
71097 2007-01-28  Bruno Haible  <bruno@clisp.org>
71098
71099         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71100         value of $(SYS_TIME_H).
71101         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71102         remove it conditionally, too. [added by Jim Meyering]
71103         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71104         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71105         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71106         GETTIMEOFDAY_REPLACEMENT to 1.
71107
71108 2007-01-28  Bruno Haible  <bruno@clisp.org>
71109
71110         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71111         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71113         Set UNISTD_H instead of UNISTD_H2.
71114         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71115
71116 2007-01-28  Bruno Haible  <bruno@clisp.org>
71117
71118         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71119         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71120
71121 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71122
71123         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71124         (func_create_testdir): Ensure C locale for `grep' and `tr'
71125         character ranges.
71126         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71127         ACLOCAL_AMFLAGS parsing state machine.
71128
71129 2007-01-27  Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/unistr/base: Update.
71132
71133 2007-01-27  Bruno Haible  <bruno@clisp.org>
71134
71135         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71136         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71137         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71138         modules/unistr/u32-mbtouc.
71139         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71140         * lib/unistr.h: Update.
71141         * lib/linebreak.c: Update.
71142         * modules/unistr/u32-mbtouc: Renamed from
71143         modules/unistr/u32-mbtouc-safe.
71144         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71145         * lib/unistr.h: Update.
71146         * lib/unistr/u32-to-u8.c: Update.
71147         * lib/unistr/u32-to-u16.c: Update.
71148
71149 2007-01-27  Bruno Haible  <bruno@clisp.org>
71150
71151         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71152         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71153         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71154         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71155         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71156         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71157         modules/unistr/u16-mbtouc.
71158         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71159         * lib/unistr.h: Update.
71160         * lib/linebreak.c: Update.
71161         * modules/linebreak: Update.
71162         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71163         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71164         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71165         * modules/unistr/u16-mbtouc: Renamed from
71166         modules/unistr/u16-mbtouc-safe.
71167         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71168         * lib/unistr.h: Update.
71169         * lib/unistr/u16-to-u8.c: Update.
71170         * modules/unistr/u16-to-u8: Update.
71171         * lib/unistr/u16-to-u32.c: Update.
71172         * modules/unistr/u16-to-u32: Update.
71173
71174 2007-01-27  Bruno Haible  <bruno@clisp.org>
71175
71176         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71177         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71178         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71179         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71180         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71181         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71182         modules/unistr/u8-mbtouc.
71183         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71184         * lib/unistr.h: Update.
71185         * lib/striconveh.c: Update.
71186         * modules/striconveh: Update.
71187         * lib/linebreak.c: Update.
71188         * modules/linebreak: Update.
71189         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71190         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71191         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71192         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71193         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71194         * lib/unistr.h: Update.
71195         * lib/striconveh.c: Update.
71196         * modules/striconveh: Update.
71197         * lib/unistr/u8-to-u16.c: Update.
71198         * modules/unistr/u8-to-u16: Update.
71199         * lib/unistr/u8-to-u32.c: Update.
71200         * modules/unistr/u8-to-u32: Update.
71201
71202 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71203
71204         Sync from Libtool.
71205         * lib/argz.c: Do not include strings.h nor memory.h, include
71206         string.h unconditionally.  Patch by Simon Josefsson.
71207
71208 2007-01-27  Bruno Haible  <bruno@clisp.org>
71209
71210         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71211         from gl_HEADER_STRING_H_BODY.
71212         (gl_HEADER_STRING_H_BODY): Require it.
71213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71214         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71215         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71216         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71217         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71218         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71220         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71221         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71223         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71224         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71225         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71226         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71227         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71228
71229 2007-01-27  Bruno Haible  <bruno@clisp.org>
71230
71231         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71232         check_PROGRAMS into noinst_PROGRAMS.
71233         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71234         check_PROGRAMS in this case.
71235         (func_import): Set for_test to false.
71236         (func_create_testdir): Set for_test to true.
71237
71238 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71239             Bruno Haible  <bruno@clisp.org>
71240
71241         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71242         (Depends-on): Add string.
71243         (Includes): Use <string.h> instead of strcasestr.h.
71244         * modules/string (Makefile.am): Also substitute the value of
71245         REPLACE_STRCASESTR.
71246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71247         assume strcasestr is declared in <string.h> not <strings.h>. Also
71248         set REPLACE_STRCASESTR.
71249         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71250         REPLACE_STRCASESTR.
71251         * lib/strcasestr.h: Remove file.
71252         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71253         * lib/string_.h (strcasestr): New declaration.
71254
71255 2007-01-27  Bruno Haible  <bruno@clisp.org>
71256
71257         * lib/string_.h: Use 'extern'.
71258
71259 2007-01-27  Jim Meyering  <jim@meyering.net>
71260
71261         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71262         of set-but-not-used local, "q".
71263
71264         * lib/mempcpy.c: Include <config.h> before <string.h>.
71265         This fixes a compilation error on HP-UX, due to the system's
71266         "restrict"-using mempcpy prototype.
71267
71268 2007-01-26  Bruno Haible  <bruno@clisp.org>
71269
71270         Small optimization.
71271         * lib/javacomp.c: Include c-strstr.h.
71272          (is_envjavac_gcj): Use c_strstr instead of strstr.
71273         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71274
71275 2007-01-26  Bruno Haible  <bruno@clisp.org>
71276
71277         * MODULES.html.sh (Unicode string functions): Add the new modules.
71278
71279         * modules/uniconv/u32-strconv-to-locale: New file.
71280         * lib/uniconv/u32-strconv-to-locale.c: New file.
71281
71282         * modules/uniconv/u16-strconv-to-locale: New file.
71283         * lib/uniconv/u16-strconv-to-locale.c: New file.
71284
71285         * modules/uniconv/u8-strconv-to-locale: New file.
71286         * lib/uniconv/u8-strconv-to-locale.c: New file.
71287
71288         * modules/uniconv/u32-strconv-from-locale: New file.
71289         * lib/uniconv/u32-strconv-from-locale.c: New file.
71290
71291         * modules/uniconv/u16-strconv-from-locale: New file.
71292         * lib/uniconv/u16-strconv-from-locale.c: New file.
71293
71294         * modules/uniconv/u8-strconv-from-locale: New file.
71295         * lib/uniconv/u8-strconv-from-locale.c: New file.
71296
71297         * modules/uniconv/u32-strconv-to-enc: New file.
71298         * lib/uniconv/u32-strconv-to-enc.c: New file.
71299         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71300         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71301
71302         * modules/uniconv/u16-strconv-to-enc: New file.
71303         * lib/uniconv/u16-strconv-to-enc.c: New file.
71304         * lib/uniconv/u-strconv-to-enc.h: New file.
71305         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71306         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71307
71308         * modules/uniconv/u8-strconv-to-enc: New file.
71309         * lib/uniconv/u8-strconv-to-enc.c: New file.
71310         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71311         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71312
71313         * modules/uniconv/u32-strconv-from-enc: New file.
71314         * lib/uniconv/u32-strconv-from-enc.c: New file.
71315         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71316         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71317
71318         * modules/uniconv/u16-strconv-from-enc: New file.
71319         * lib/uniconv/u16-strconv-from-enc.c: New file.
71320         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71321         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71322
71323         * modules/uniconv/u8-strconv-from-enc: New file.
71324         * lib/uniconv/u8-strconv-from-enc.c: New file.
71325         * lib/uniconv/u-strconv-from-enc.h: New file.
71326         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71327         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71328
71329         * modules/uniconv/u32-conv-from-enc: New file.
71330         * lib/uniconv/u32-conv-from-enc.c: New file.
71331         * modules/uniconv/u32-conv-from-enc-tests: New file.
71332         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71333
71334         * modules/uniconv/u16-conv-from-enc: New file.
71335         * lib/uniconv/u16-conv-from-enc.c: New file.
71336         * lib/uniconv/u-conv-from-enc.h: New file.
71337         * modules/uniconv/u16-conv-from-enc-tests: New file.
71338         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71339
71340         * modules/uniconv/u8-conv-from-enc: New file.
71341         * lib/uniconv/u8-conv-from-enc.c: New file.
71342         * modules/uniconv/u8-conv-from-enc-tests: New file.
71343         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71344
71345         * modules/uniconv/base: New file.
71346         * lib/uniconv.h: New file.
71347
71348 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * doc/gnulib-tool.texi (Initial import): Update to match current
71351         behavior with strdup module.
71352         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71353         * lib/memmem.h: Remove; all uses removed.  This is now done
71354         by <string.h>.
71355         * lib/mempcpy.h: Likewise.
71356         * lib/memrchr.h: Likewise.
71357         * lib/stpcpy.h: Likewise.
71358         * lib/stpncpy.h: Likewise.
71359         * lib/strcase.h: Likewise.
71360         * lib/strchrnul.h: Likewise.
71361         * lib/strdup.h: Likewise.
71362         * lib/strndup.h: Likewise.
71363         * lib/strnlen.h: Likewise.
71364         * lib/strpbrk.h: Likewise.
71365         * lib/strsep.h: Likewise.
71366         * lib/strstr.h: Likewise.
71367         * lib/strtok_r.h: Likewise.
71368         * lib/string_.h: New file.
71369         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71370         Rely on <string.h> instead.
71371         * lib/canon-host.c: Likewise.
71372         * lib/chdir-long.c: Likewise.
71373         * lib/concatpath.c: Likewise.
71374         * lib/exclude.c: Likewise.
71375         * lib/fchdir.c: Likewise.
71376         * lib/getaddrinfo.c: Likewise.
71377         * lib/getcwd.c: Likewise.
71378         * lib/getsubopt.c: Likewise.
71379         * lib/glob.c: Likewise.
71380         * lib/hard-locale.c: Likewise.
71381         * lib/iconvme.c: Likewise.
71382         * lib/javacomp.c: Likewise.
71383         * lib/mempcpy.c: Likewise.
71384         * lib/memrchr.c: Likewise.
71385         * lib/regex_internal.h: Likewise.
71386         * lib/stpncpy.c: Likewise.
71387         * lib/strcasecmp.c: Likewise.
71388         * lib/strchrnul.c: Likewise.
71389         * lib/strdup.c: Likewise.
71390         * lib/striconv.c: Likewise.
71391         * lib/striconveh.c: Likewise.
71392         * lib/striconveha.c: Likewise.
71393         * lib/strncasecmp.c: Likewise.
71394         * lib/strndup.c: Likewise.
71395         * lib/strnlen.c: Likewise.
71396         * lib/strsep.c: Likewise.
71397         * lib/strstr.c: Likewise.
71398         * lib/strtok_r.c: Likewise.
71399         * lib/userspec.c: Likewise.
71400         * lib/w32spawn.h: Likewise.
71401         * lib/xstrndup.c: Likewise.
71402         * lib/mountlist.c (strstr): Remove decl.
71403         * m4/string_h.m4: New file.
71404         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71405         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71407         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71408         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71409         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71410         Set REPLACE_STRCASECMP if necessary.
71411         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71412         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71413         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71414         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71415         HAVE_DECL_STRDUP if necessary.
71416         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71417         since gl_FUNC_STRNDUP does that now.
71418         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71419         Check for decl here...
71420         (gl_PREREQ_STRNLEN): ... not here.
71421         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71422         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71423         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71424         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71425         necessary.
71426         * modules/string: New file.
71427         * modules/memmem (Files): Remove special-purpose include file.
71428         (Depends-on): Add string.
71429         (Include): Include <string.h>, not the removed file.
71430         * modules/mempcpy: Likewise.
71431         * modules/memrchr: Likewise.
71432         * modules/stpcpy: Likewise.
71433         * modules/stpncpy: Likewise.
71434         * modules/strcase: Likewise.
71435         * modules/strchrnul: Likewise.
71436         * modules/strdup: Likewise.
71437         * modules/strndup: Likewise.
71438         * modules/strnlen: Likewise.
71439         * modules/strpbrk: Likewise.
71440         * modules/strsep: Likewise.
71441         * modules/strstr: Likewise.
71442         * modules/strtok_r: Likewise.
71443         * tests/test-dirname.c: Don't include "strdup.h", since
71444         <string.h> now suffices.
71445         * tests/test-memmem.c: Don't include "memmem.h", since
71446         <string.h> now suffices.
71447
71448 2007-01-25  Bruno Haible  <bruno@clisp.org>
71449
71450         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71451         *resultp is 0.
71452
71453         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71454         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71455         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71456         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71457
71458         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71459         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71460         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71461         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71462         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71463         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71464
71465 2007-01-24  Bruno Haible  <bruno@clisp.org>
71466
71467         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71468         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71469         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71470         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71471         gl_FUNC_FTS_CORE.
71472         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71473         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71474         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71475         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71476         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71477         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71478         gl_FUNC_FCHOWNAT.
71479         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71480         gl_FUNC_STRFTIME.
71481         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71482         Reported by Ralf Wildenhues.
71483
71484 2007-01-24  Bruno Haible  <bruno@clisp.org>
71485
71486         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71487         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71488         gl_GETADDRINFO.
71489         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71490         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71491         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71492
71493 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71494
71495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71496         Don't use 'exit'; just return from 'main'.
71497         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71498
71499         * lib/fnmatch_.h: Readjust white space and comments to match
71500         glibc, to avoid spurious diffs.
71501
71502 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71505         2004-12-01 change by Jakub Jelinek, since this code won't compile
71506         if !LIBC.  Problem reported by Bob Proulx.
71507
71508 2007-01-23  Bruno Haible  <bruno@clisp.org>
71509
71510         * lib/striconveh.c: Include c-strcaseeq.h.
71511         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71512         * modules/striconveh (Depends-on): Add c-strcaseeq.
71513
71514 2007-01-23  Bruno Haible  <bruno@clisp.org>
71515
71516         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71517
71518         * modules/c-strcaseeq: New file.
71519         * lib/c-strcaseeq.h: New file.
71520
71521         * modules/streq: New file.
71522         * lib/streq.h: New file.
71523
71524 2007-01-23  Bruno Haible  <bruno@clisp.org>
71525
71526         * modules/striconveha-tests: New file.
71527         * tests/test-striconveha.c: New file.
71528
71529         * lib/striconveha.h: Include <stdbool.h>.
71530         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71531         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71532         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71533         (mem_iconveha): New function.
71534         (str_iconveha_notranslit): Renamed from str_iconveha.
71535         (str_iconveha): New function.
71536         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71537         c-strcase.
71538
71539 2007-01-23  Bruno Haible  <bruno@clisp.org>
71540
71541         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71542         encodings without forgiving before trying any encoding with handler.
71543         (str_iconveha): Try all encodings without forgiving before trying any
71544         encoding with handler.
71545
71546 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         Import the following changes from libc.
71549
71550         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71551
71552         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71553
71554         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71555
71556         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71557         normal_bracket label.
71558
71559         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71560
71561         [BZ #361]
71562         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71563         to normal_bracket after fetching the next character.
71564
71565 2007-01-22  Bruno Haible  <bruno@clisp.org>
71566
71567         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71568         argument.
71569         * lib/striconveh.c (iconv_carefully_1): New function.
71570         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71571         argument.
71572         (str_cd_iconveh): Update.
71573         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71574         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71575         * tests/test-striconveh.c (MAGIC): New macro.
71576         (new_offsets): New function.
71577         (main): Test call with and without offsets.
71578
71579 2007-01-22  Bruno Haible  <bruno@clisp.org>
71580
71581         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71582         * modules/sys_select (Makefile.am): Likewise.
71583         * modules/sys_socket (Makefile.am): Likewise.
71584         * modules/sys_time (Makefile.am): Likewise.
71585
71586 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * modules/gettimeofday (License): Change from GPL to LGPL, since
71589         gettimeofday is a library function.
71590
71591 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71592
71593         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71594
71595 2007-01-21  Bruno Haible  <bruno@clisp.org>
71596
71597         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71598
71599 2007-01-21  Bruno Haible  <bruno@clisp.org>
71600
71601         * modules/striconveha: New file.
71602         * lib/striconveha.h: New file.
71603         * lib/striconveha.c: New file.
71604         * MODULES.html.sh (Internationalization functions): Add striconveha.
71605         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71606         string.
71607         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71608
71609 2007-01-21  Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71612         * lib/striconveh.c (str_iconveh): Likewise.
71613
71614 2007-01-21  Bruno Haible  <bruno@clisp.org>
71615
71616         * lib/striconveh.h (mem_iconveh): New declaration.
71617         * lib/striconveh.c (mem_iconveh): New function.
71618         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71619
71620 2007-01-21  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71623
71624         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71625         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71626         original result buffer.
71627         (str_cd_iconveh): Update.
71628         * tests/test-striconveh.c (main): Update.
71629
71630         * lib/striconv.h (mem_cd_iconv): Change specification.
71631         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71632         result buffer.
71633         (str_cd_iconv): Update.
71634         * tests/test-striconv.c (main): Update.
71635
71636 2007-01-21  Bruno Haible  <bruno@clisp.org>
71637
71638         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71639
71640 2007-01-20  Jim Meyering  <jim@meyering.net>
71641
71642         * lib/userspec.c (parse_with_separator): If a user or group string
71643         starts with "+", skip the corresponding name-to-ID look-up, since
71644         such a look-up must fail: user and group names may not include "+".
71645
71646 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71649         since we now assume the sys_time module.
71650         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71651         check for sys/time.h; no longer needed.
71652         * modules/poll (Depends-on): Depend on sys_time.
71653
71654 2007-01-18  Bruno Haible  <bruno@clisp.org>
71655
71656         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71657         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71658
71659         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71660         gettimeofday.
71661
71662         * tests/test-gettimeofday.c: Include <time.h>.
71663         (dummy): Remove variable.
71664
71665         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71666         gl_HEADER_SYS_TIME_H.
71667         (gl_HEADER_SYS_TIME_H): New macro.
71668
71669         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71670         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71671         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71672         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71673         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71674         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71675         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71676         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71677         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71678         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71679         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71680
71681         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71682         last change; it caused a compilation error when cross-compiling to
71683         Cygwin.
71684
71685 2007-01-18  Jim Meyering  <jim@meyering.net>
71686
71687         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71688         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71689         than the race-prone "test -d sys || mkdir sys".
71690         (configure.ac): Use AC_PROG_MKDIR_P.
71691         * modules/sys_select: Likewise.
71692         * modules/sys_socket: Likewise.
71693         * modules/sys_time: Likewise.
71694
71695 2007-01-18  Eric Blake  <ebb9@byu.net>
71696
71697         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71698         replace gettimeofday.
71699         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71700         name, to avoid infinite recursion.
71701
71702 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71703
71704         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71705         module sys_time.
71706         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71707         assume timespec.h defines struct timeval.
71708         * lib/settime.c: Likewise.
71709         * lib/utimens.c: Likewise.
71710         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71711         since we now assume the gettimeofday module.
71712         * lib/tempname.c (__gen_tempname): Likewise.
71713         * lib/gettimeofday.h: Remove.
71714         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71715         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71716         Include <time.h>, for 'time()'.
71717         (localtime_buffer_addr): Also use this workaround if
71718         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71719         to simplify the uses.  All uses changed.
71720         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71721         that #undef is inside {}, and 'const' follows type name consistently.
71722         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71723         (gettimeofday): Do not use the maximum possible value for
71724         tv->tv_usec, since that might break usages other than ls.c.
71725         Instead, we'll leave ls.c alone.  This undoes today's patch
71726         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71727         we've never observed the problem but might as well keep the
71728         canary.
71729         * lib/nanosleep.c: Include timespec.h first, for interface check.
71730         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71731         now assume the sys_time module.
71732         * lib/tempname.c: Likewise.
71733         * lib/timespec.h: Likewise.
71734         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71735         needed.
71736         * lib/strftime.c: Likewise.
71737         * lib/timespec.h: Likewise.
71738         * lib/posixtm.c: Include posixtm.h first, for interface check.
71739         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71740         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71741         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71742         * lib/sys_time_.h: New file.
71743         * lib/timespec.h (struct timespec): Use long int, not long.
71744         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71745         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71746         Remove obsolescent call to AC_HEADER_TIME.
71747         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71749         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71750         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71751         Likewise.
71752         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71753         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71755         into the sys_time module.  Check for gettimeofday just once.
71756         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71757         for gettimeofday signature to just check the signature.  Merely
71758         compile it, since linking doesn't test signature.  Improve test for
71759         whether gettimeofday.o is actually needed.
71760         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71761         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71762         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71763         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71764         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71765         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71766         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71767         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71768         than worrying about sys/time.h.
71769         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71770         Don't bother worrying about TIME_WITH_SYS_TIME.
71771         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71772         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71773         * m4/sys_time_h.m4: New file.
71774         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71775         Don't include sys/time.h.  Return from main rather than exiting.
71776         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71777         all uses changed.
71778         * modules/gethrxtime (Depends-on): Add sys_time.
71779         * modules/gettime (Depends-on): Likewise.
71780         * modules/gettimeofday (Depends-on): Likewise.
71781         * modules/nanosleep (Depends-on): Likewise.
71782         * modules/settime (Depends-on): Likewise.
71783         * modules/tempname (Depends-on): Likewise.
71784         * modules/utimens (Depends-on): Likewise.
71785         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71786         (Include): Change back to <sys/time.h>.
71787         (Maintainer): Add self.
71788         * modules/sys_time: New file.
71789         * modules/tempname (Depends-on): Add gettimeofday.
71790         * tests/test-gettimeofday.c: Include <sys/time.h>
71791         rather than gettimeofday.h.
71792
71793 2007-01-17  Bruno Haible  <bruno@clisp.org>
71794
71795         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71796         the license default to GPL.
71797         (func_create_testdir): Don't complain if a module is LGPL and its
71798         tests module depends on GPLed modules.
71799
71800 2007-01-17  Bruno Haible  <bruno@clisp.org>
71801
71802         * lib/gettimeofday.c (gettimeofday): Add code for the case
71803         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71804         maximum possible value for tv->tv_usec, rather than the minimum one.
71805
71806 2005-10-08  Martin Lambers  <marlam@marlam.de>
71807 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71808 2007-01-16  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71811         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71812         gl_FUNC_GETTIMEOFDAY.
71813         (Include): Add gettimeofday.h.
71814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71815         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71816         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71817         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
71818         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
71819         * lib/gettimeofday.h: New file.
71820         * lib/gettimeofday.c: Include <sys/timeb.h>.
71821         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
71822         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71823         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
71824         fall back on time().
71825
71826         * tests/test-gettimeofday.c: New file.
71827         * modules/gettimeofday-tests: New file.
71828
71829 2007-01-16  Eric Blake  <ebb9@byu.net>
71830
71831         * modules/fnmatch (Depends-on): Depend on wchar.
71832         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
71833         * m4/fnmatch.m4: Likewise.
71834         * modules/mbchar (Makefile.am): Assume <wchar.h>.
71835         * m4/mbchar.m4: Likewise.
71836         * modules/mbswidth (Depends-on): Depend on wchar.
71837         * lib/mbswidth.c: Assume <wchar.h>.
71838         * m4/mbswidth.m4: Likewise.
71839         * modules/quotearg (Depends-on): Depend on wchar.
71840         * lib/quotearg.c: Assume <wchar.h>.
71841         * m4/quotearg.m4: Likewise.
71842         * modules/regex (Depends-on): Depend on wchar.
71843         * lib/regex_internal.h: Assume <wchar.h>.
71844         * m4/regex.m4: Likewise.
71845         * modules/stdint (Depends-on): Depend on wchar.
71846         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
71847         * m4/stdint.m4: Likewise.
71848         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
71849         * modules/strftime (Depends-on): Depend on wchar.
71850         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
71851         * modules/strtol (Depends-on): Depend on wchar.
71852         * lib/strtol.c: Assume <wchar.h>.
71853         * modules/wcwidth (Depends-on): Depend on wchar.
71854         * lib/wcwidth.h: Assume <wchar.h>.
71855         * m4/wcwidth.m4: Likewise.
71856
71857 2007-01-16  Bruno Haible  <bruno@clisp.org>
71858
71859         * modules/csharpexec-script: New, created from...
71860         * modules/csharpexec: ... this.
71861
71862 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
71863
71864         * modules/javaexec-script: New, created from...
71865         * modules/javaexec: ... this.
71866
71867 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71868
71869         * modules/poll (Dependencies): Add sys_select.
71870
71871 2007-01-15  Jim Meyering  <jim@meyering.net>
71872
71873         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
71874         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
71875         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
71876         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
71877
71878 2007-01-15  Bruno Haible  <bruno@clisp.org>
71879
71880         * modules/striconveh: New file.
71881         * lib/striconveh.h: New file.
71882         * lib/striconveh.c: New file.
71883         * MODULES.html.sh (Internationalization functions): Add striconveh.
71884
71885         * modules/striconveh-tests: New file.
71886         * tests/test-striconveh.c: New file.
71887
71888 2007-01-15  Bruno Haible  <bruno@clisp.org>
71889
71890         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
71891         not from GNU libiconv or GNU libc.
71892
71893 2007-01-15  Bruno Haible  <bruno@clisp.org>
71894
71895         * doc/gnulib-intro.texi (Copyright): Explain the different license
71896         terms for module descriptions, autoconf macros, tests, documentation.
71897
71898 2007-01-14  Bruno Haible  <bruno@clisp.org>
71899
71900         * modules/striconv-tests: New file.
71901         * tests/test-striconv.c: New file.
71902
71903 2007-01-14  Bruno Haible  <bruno@clisp.org>
71904
71905         * modules/iconv-tests: New file.
71906         * tests/test-iconv.c: New file.
71907
71908 2007-01-14  Bruno Haible  <bruno@clisp.org>
71909
71910         * gnulib-tool (func_get_license): For test modules, use the license of
71911         the main module.
71912
71913 2007-01-14  Bruno Haible  <bruno@clisp.org>
71914
71915         * modules/iconv (Include): Clarify that <iconv.h> can only be included
71916         if iconv is found to exist.
71917
71918 2007-01-14  Bruno Haible  <bruno@clisp.org>
71919
71920         * modules/c-ctype-tests: New file.
71921         * tests/test-c-ctype.c: New file.
71922
71923 2007-01-14  Bruno Haible  <bruno@clisp.org>
71924
71925         * modules/binary-io-tests: New file.
71926         * tests/test-binary-io.sh: New file.
71927         * tests/test-binary-io.c: New file.
71928
71929 2007-01-14  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/array-oset-tests: New file.
71932         * tests/test-array_oset.c: New file.
71933
71934 2007-01-14  Bruno Haible  <bruno@clisp.org>
71935
71936         * modules/array-list-tests: New file.
71937         * tests/test-array_list.c: New file.
71938
71939 2007-01-14  Bruno Haible  <bruno@clisp.org>
71940
71941         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
71942         and make.
71943         Reported by Simon Josefsson in
71944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
71945
71946 2007-01-14  Bruno Haible  <bruno@clisp.org>
71947
71948         * modules/allocsa-tests: New file.
71949         * tests/test-allocsa.c: New file.
71950
71951 2007-01-14  Bruno Haible  <bruno@clisp.org>
71952
71953         * modules/fchdir (Depends-on): Add absolute-header.
71954         * modules/unistd (Depends-on): Likewise.
71955
71956 2006-12-30  Bruno Haible  <bruno@clisp.org>
71957
71958         * modules/fchdir: New file.
71959         * modules/unistd (Files): Add lib/unistd_.h.
71960         (Makefile.am): Generate unistd.h from unistd_.h.
71961         * lib/fchdir.c: New file.
71962         * lib/dirent_.h: New file.
71963         * lib/unistd_.h: New file.
71964         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71965         * m4/fchdir.m4: New file.
71966         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71967         (gl_HEADER_UNISTD): Invoke it.
71968         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71969         function.
71970         * lib/backupfile.c (opendir, closedir): Undefine.
71971         * lib/chown.c (open, close): Undefine.
71972         * lib/clean-temp.c (open, close): Undefine.
71973         * lib/copy-file.c (open, close): Undefine.
71974         * lib/execute.c (open, close): Undefine.
71975         * lib/fsusage.c (open, close): Undefine.
71976         * lib/gc-gnulib.c (open, close): Undefine.
71977         * lib/getcwd.c (opendir, closedir): Undefine.
71978         * lib/glob.c (opendir, closedir): Undefine.
71979         * lib/javacomp.c (open, close): Undefine.
71980         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71981         * lib/openat-proc.c (open, close): Undefine.
71982         * lib/pagealign_alloc.c (open, close): Undefine.
71983         * lib/pipe.c (open, close): Undefine.
71984         * lib/progreloc.c (open, close): Undefine.
71985         * lib/savedir.c (opendir, closedir): Undefine.
71986         * lib/utime.c (open, close): Undefine.
71987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71988
71989 2007-01-10  Bruno Haible  <bruno@clisp.org>
71990
71991         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71992
71993 2007-01-12  Eric Blake  <ebb9@byu.net>
71994
71995         Provide a robust <wchar.h>.  Further simplifications are now
71996         possible in other modules, but not included here.
71997         * modules/wchar: New module.
71998         * m4/wchar.m4: New file.
71999         * lib/wchar_.h: Likewise.
72000         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72001         of the new module.
72002         * MODULES.html.sh (Extended multibyte and wide character utilities):
72003         New section.
72004
72005 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72008         to a reasonable default for memory allocation.
72009         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72010         file system that reports garbage st_size values for symlinks.
72011         Problem reported by Liyang Hu.
72012
72013 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72014
72015         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72016         Emacs .#* auto-save files).
72017
72018 2007-01-11  Bruno Haible  <bruno@clisp.org>
72019
72020         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72021         directory.
72022
72023 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72024
72025         Use @...@ consistently in lib/wctype_.h.
72026         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72027         on it being set to 1 or 0.
72028         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72029         go back to AC_SUBSTing it.
72030         * modules/wctype (Makefile.am): Undo previous change.
72031
72032 2007-01-10  Eric Blake  <ebb9@byu.net>
72033
72034         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72035         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72036         * modules/wctype (Makefile.am): Likewise.
72037         Reported by Chris McGuire.
72038
72039 2007-01-10  Jim Meyering  <jim@meyering.net>
72040
72041         fts.c: a small readability/maintainability improvement
72042         * lib/fts.c (fts_read): Make this code slightly more readable and
72043         maintainable by hoisting the "sp->fts_cur = p" assignments to
72044         immediately follow the statements that set P.  Derived from
72045         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72046
72047 2007-01-10  Eric Blake  <ebb9@byu.net>
72048
72049         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72050         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72052         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72053         Reported by Chris McGuire.
72054
72055 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72056
72057         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72058         in sed script.
72059
72060 2007-01-09  Bruno Haible  <bruno@clisp.org>
72061
72062         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72063         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72064         variables.
72065         (func_module): Use them.
72066
72067 2007-01-09  Bruno Haible  <bruno@clisp.org>
72068
72069         * modules/unistr/base: New file.
72070         * lib/unistr.h: New file.
72071
72072         * modules/unistr/u8-to-u16: New file.
72073         * lib/unistr/u8-to-u16.c: New file.
72074
72075         * modules/unistr/u8-to-u32: New file.
72076         * lib/unistr/u8-to-u32.c: New file.
72077
72078         * modules/unistr/u16-to-u8: New file.
72079         * lib/unistr/u16-to-u8.c: New file.
72080
72081         * modules/unistr/u16-to-u32: New file.
72082         * lib/unistr/u16-to-u32.c: New file.
72083
72084         * modules/unistr/u32-to-u8: New file.
72085         * lib/unistr/u32-to-u8.c: New file.
72086
72087         * modules/unistr/u32-to-u16: New file.
72088         * lib/unistr/u32-to-u16.c: New file.
72089
72090         * modules/unistr/u8-check: New file.
72091         * modules/unistr/u16-check: New file.
72092         * modules/unistr/u32-check: New file.
72093         * lib/unistr/u8-check.c: New file.
72094         * lib/unistr/u16-check.c: New file.
72095         * lib/unistr/u32-check.c: New file.
72096
72097         * modules/unistr/u8-chr: New file.
72098         * modules/unistr/u16-chr: New file.
72099         * modules/unistr/u32-chr: New file.
72100         * lib/unistr/u8-chr.c: New file.
72101         * lib/unistr/u16-chr.c: New file.
72102         * lib/unistr/u32-chr.c: New file.
72103
72104         * modules/unistr/u8-cmp: New file.
72105         * modules/unistr/u16-cmp: New file.
72106         * modules/unistr/u32-cmp: New file.
72107         * lib/unistr/u8-cmp.c: New file.
72108         * lib/unistr/u16-cmp.c: New file.
72109         * lib/unistr/u32-cmp.c: New file.
72110
72111         * modules/unistr/u8-cpy: New file.
72112         * modules/unistr/u16-cpy: New file.
72113         * modules/unistr/u32-cpy: New file.
72114         * lib/unistr/u8-cpy.c: New file.
72115         * lib/unistr/u16-cpy.c: New file.
72116         * lib/unistr/u32-cpy.c: New file.
72117         * lib/unistr/u-cpy.h: New file.
72118
72119         * modules/unistr/u8-cpy-alloc: New file.
72120         * modules/unistr/u16-cpy-alloc: New file.
72121         * modules/unistr/u32-cpy-alloc: New file.
72122         * lib/unistr/u8-cpy-alloc.c: New file.
72123         * lib/unistr/u16-cpy-alloc.c: New file.
72124         * lib/unistr/u32-cpy-alloc.c: New file.
72125         * lib/unistr/u-cpy-alloc.h: New file.
72126
72127         * modules/unistr/u8-endswith: New file.
72128         * modules/unistr/u16-endswith: New file.
72129         * modules/unistr/u32-endswith: New file.
72130         * lib/unistr/u8-endswith.c: New file.
72131         * lib/unistr/u16-endswith.c: New file.
72132         * lib/unistr/u32-endswith.c: New file.
72133         * lib/unistr/u-endswith.h: New file.
72134
72135         * modules/unistr/u8-mblen: New file.
72136         * modules/unistr/u16-mblen: New file.
72137         * modules/unistr/u32-mblen: New file.
72138         * lib/unistr/u8-mblen.c: New file.
72139         * lib/unistr/u16-mblen.c: New file.
72140         * lib/unistr/u32-mblen.c: New file.
72141
72142         * modules/unistr/u8-mbtouc: New file.
72143         * modules/unistr/u16-mbtouc: New file.
72144         * modules/unistr/u32-mbtouc: New file.
72145         * lib/unistr/u8-mbtouc.c: New file.
72146         * lib/unistr/u16-mbtouc.c: New file.
72147         * lib/unistr/u32-mbtouc.c: New file.
72148
72149         * modules/unistr/u8-mbtouc-safe: New file.
72150         * modules/unistr/u16-mbtouc-safe: New file.
72151         * modules/unistr/u32-mbtouc-safe: New file.
72152         * lib/unistr/u8-mbtouc-safe.c: New file.
72153         * lib/unistr/u16-mbtouc-safe.c: New file.
72154         * lib/unistr/u32-mbtouc-safe.c: New file.
72155
72156         * modules/unistr/u8-move: New file.
72157         * modules/unistr/u16-move: New file.
72158         * modules/unistr/u32-move: New file.
72159         * lib/unistr/u8-move.c: New file.
72160         * lib/unistr/u16-move.c: New file.
72161         * lib/unistr/u32-move.c: New file.
72162         * lib/unistr/u-move.h: New file.
72163
72164         * modules/unistr/u8-next: New file.
72165         * modules/unistr/u16-next: New file.
72166         * modules/unistr/u32-next: New file.
72167         * lib/unistr/u8-next.c: New file.
72168         * lib/unistr/u16-next.c: New file.
72169         * lib/unistr/u32-next.c: New file.
72170
72171         * modules/unistr/u8-prev: New file.
72172         * modules/unistr/u16-prev: New file.
72173         * modules/unistr/u32-prev: New file.
72174         * lib/unistr/u8-prev.c: New file.
72175         * lib/unistr/u16-prev.c: New file.
72176         * lib/unistr/u32-prev.c: New file.
72177
72178         * modules/unistr/u8-set: New file.
72179         * modules/unistr/u16-set: New file.
72180         * modules/unistr/u32-set: New file.
72181         * lib/unistr/u8-set.c: New file.
72182         * lib/unistr/u16-set.c: New file.
72183         * lib/unistr/u32-set.c: New file.
72184         * lib/unistr/u-set.h: New file.
72185
72186         * modules/unistr/u8-startswith: New file.
72187         * modules/unistr/u16-startswith: New file.
72188         * modules/unistr/u32-startswith: New file.
72189         * lib/unistr/u8-startswith.c: New file.
72190         * lib/unistr/u16-startswith.c: New file.
72191         * lib/unistr/u32-startswith.c: New file.
72192         * lib/unistr/u-startswith.h: New file.
72193
72194         * modules/unistr/u8-stpcpy: New file.
72195         * modules/unistr/u16-stpcpy: New file.
72196         * modules/unistr/u32-stpcpy: New file.
72197         * lib/unistr/u8-stpcpy.c: New file.
72198         * lib/unistr/u16-stpcpy.c: New file.
72199         * lib/unistr/u32-stpcpy.c: New file.
72200         * lib/unistr/u-stpcpy.h: New file.
72201
72202         * modules/unistr/u8-stpncpy: New file.
72203         * modules/unistr/u16-stpncpy: New file.
72204         * modules/unistr/u32-stpncpy: New file.
72205         * lib/unistr/u8-stpncpy.c: New file.
72206         * lib/unistr/u16-stpncpy.c: New file.
72207         * lib/unistr/u32-stpncpy.c: New file.
72208         * lib/unistr/u-stpncpy.h: New file.
72209
72210         * modules/unistr/u8-strcat: New file.
72211         * modules/unistr/u16-strcat: New file.
72212         * modules/unistr/u32-strcat: New file.
72213         * lib/unistr/u8-strcat.c: New file.
72214         * lib/unistr/u16-strcat.c: New file.
72215         * lib/unistr/u32-strcat.c: New file.
72216         * lib/unistr/u-strcat.h: New file.
72217
72218         * modules/unistr/u8-strchr: New file.
72219         * modules/unistr/u16-strchr: New file.
72220         * modules/unistr/u32-strchr: New file.
72221         * lib/unistr/u8-strchr.c: New file.
72222         * lib/unistr/u16-strchr.c: New file.
72223         * lib/unistr/u32-strchr.c: New file.
72224
72225         * modules/unistr/u8-strcmp: New file.
72226         * modules/unistr/u16-strcmp: New file.
72227         * modules/unistr/u32-strcmp: New file.
72228         * lib/unistr/u8-strcmp.c: New file.
72229         * lib/unistr/u16-strcmp.c: New file.
72230         * lib/unistr/u32-strcmp.c: New file.
72231
72232         * modules/unistr/u8-strcpy: New file.
72233         * modules/unistr/u16-strcpy: New file.
72234         * modules/unistr/u32-strcpy: New file.
72235         * lib/unistr/u8-strcpy.c: New file.
72236         * lib/unistr/u16-strcpy.c: New file.
72237         * lib/unistr/u32-strcpy.c: New file.
72238         * lib/unistr/u-strcpy.h: New file.
72239
72240         * modules/unistr/u8-strcspn: New file.
72241         * modules/unistr/u16-strcspn: New file.
72242         * modules/unistr/u32-strcspn: New file.
72243         * lib/unistr/u8-strcspn.c: New file.
72244         * lib/unistr/u16-strcspn.c: New file.
72245         * lib/unistr/u32-strcspn.c: New file.
72246         * lib/unistr/u-strcspn.h: New file.
72247
72248         * modules/unistr/u8-strdup: New file.
72249         * modules/unistr/u16-strdup: New file.
72250         * modules/unistr/u32-strdup: New file.
72251         * lib/unistr/u8-strdup.c: New file.
72252         * lib/unistr/u16-strdup.c: New file.
72253         * lib/unistr/u32-strdup.c: New file.
72254         * lib/unistr/u-strdup.h: New file.
72255
72256         * modules/unistr/u8-strlen: New file.
72257         * modules/unistr/u16-strlen: New file.
72258         * modules/unistr/u32-strlen: New file.
72259         * lib/unistr/u8-strlen.c: New file.
72260         * lib/unistr/u16-strlen.c: New file.
72261         * lib/unistr/u32-strlen.c: New file.
72262         * lib/unistr/u-strlen.h: New file.
72263
72264         * modules/unistr/u8-strmblen: New file.
72265         * modules/unistr/u16-strmblen: New file.
72266         * modules/unistr/u32-strmblen: New file.
72267         * lib/unistr/u8-strmblen.c: New file.
72268         * lib/unistr/u16-strmblen.c: New file.
72269         * lib/unistr/u32-strmblen.c: New file.
72270
72271         * modules/unistr/u8-strmbtouc: New file.
72272         * modules/unistr/u16-strmbtouc: New file.
72273         * modules/unistr/u32-strmbtouc: New file.
72274         * lib/unistr/u8-strmbtouc.c: New file.
72275         * lib/unistr/u16-strmbtouc.c: New file.
72276         * lib/unistr/u32-strmbtouc.c: New file.
72277
72278         * modules/unistr/u8-strncat: New file.
72279         * modules/unistr/u16-strncat: New file.
72280         * modules/unistr/u32-strncat: New file.
72281         * lib/unistr/u8-strncat.c: New file.
72282         * lib/unistr/u16-strncat.c: New file.
72283         * lib/unistr/u32-strncat.c: New file.
72284         * lib/unistr/u-strncat.h: New file.
72285
72286         * modules/unistr/u8-strncmp: New file.
72287         * modules/unistr/u16-strncmp: New file.
72288         * modules/unistr/u32-strncmp: New file.
72289         * lib/unistr/u8-strncmp.c: New file.
72290         * lib/unistr/u16-strncmp.c: New file.
72291         * lib/unistr/u32-strncmp.c: New file.
72292
72293         * modules/unistr/u8-strncpy: New file.
72294         * modules/unistr/u16-strncpy: New file.
72295         * modules/unistr/u32-strncpy: New file.
72296         * lib/unistr/u8-strncpy.c: New file.
72297         * lib/unistr/u16-strncpy.c: New file.
72298         * lib/unistr/u32-strncpy.c: New file.
72299         * lib/unistr/u-strncpy.h: New file.
72300
72301         * modules/unistr/u8-strnlen: New file.
72302         * modules/unistr/u16-strnlen: New file.
72303         * modules/unistr/u32-strnlen: New file.
72304         * lib/unistr/u8-strnlen.c: New file.
72305         * lib/unistr/u16-strnlen.c: New file.
72306         * lib/unistr/u32-strnlen.c: New file.
72307         * lib/unistr/u-strnlen.h: New file.
72308
72309         * modules/unistr/u8-strpbrk: New file.
72310         * modules/unistr/u16-strpbrk: New file.
72311         * modules/unistr/u32-strpbrk: New file.
72312         * lib/unistr/u8-strpbrk.c: New file.
72313         * lib/unistr/u16-strpbrk.c: New file.
72314         * lib/unistr/u32-strpbrk.c: New file.
72315         * lib/unistr/u-strpbrk.h: New file.
72316
72317         * modules/unistr/u8-strrchr: New file.
72318         * modules/unistr/u16-strrchr: New file.
72319         * modules/unistr/u32-strrchr: New file.
72320         * lib/unistr/u8-strrchr.c: New file.
72321         * lib/unistr/u16-strrchr.c: New file.
72322         * lib/unistr/u32-strrchr.c: New file.
72323
72324         * modules/unistr/u8-strspn: New file.
72325         * modules/unistr/u16-strspn: New file.
72326         * modules/unistr/u32-strspn: New file.
72327         * lib/unistr/u8-strspn.c: New file.
72328         * lib/unistr/u16-strspn.c: New file.
72329         * lib/unistr/u32-strspn.c: New file.
72330         * lib/unistr/u-strspn.h: New file.
72331
72332         * modules/unistr/u8-strstr: New file.
72333         * modules/unistr/u16-strstr: New file.
72334         * modules/unistr/u32-strstr: New file.
72335         * lib/unistr/u8-strstr.c: New file.
72336         * lib/unistr/u16-strstr.c: New file.
72337         * lib/unistr/u32-strstr.c: New file.
72338         * lib/unistr/u-strstr.h: New file.
72339
72340         * modules/unistr/u8-strtok: New file.
72341         * modules/unistr/u16-strtok: New file.
72342         * modules/unistr/u32-strtok: New file.
72343         * lib/unistr/u8-strtok.c: New file.
72344         * lib/unistr/u16-strtok.c: New file.
72345         * lib/unistr/u32-strtok.c: New file.
72346         * lib/unistr/u-strtok.h: New file.
72347
72348         * modules/unistr/u8-uctomb: New file.
72349         * modules/unistr/u16-uctomb: New file.
72350         * modules/unistr/u32-uctomb: New file.
72351         * lib/unistr/u8-uctomb.c: New file.
72352         * lib/unistr/u16-uctomb.c: New file.
72353         * lib/unistr/u32-uctomb.c: New file.
72354
72355         * MODULES.html.sh (Unicode string functions): Add the new modules.
72356
72357 2007-01-08  Bruno Haible  <bruno@clisp.org>
72358
72359         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72360         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72361         subdirectories.
72362
72363 2007-01-08  Karl Berry  <karl@gnu.org>
72364
72365         * doc/error.texi: mention that main() fns must set program_name
72366         when progname is used.
72367
72368 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72371         WCTYPE_H is empty, for the benefit of builds from non-distclean
72372         directories.  Problem reported by Eric Blake in
72373         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72374
72375 2007-01-08  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72378         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72379         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72380         PROVIDE_CANONICALIZE_FILENAME_MODE.
72381         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72382
72383 2007-01-08  Bruno Haible  <bruno@clisp.org>
72384
72385         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72386         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72387         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72388         * lib/fts.c: Likewise.
72389         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72390
72391 2006-12-25  Bruno Haible  <bruno@clisp.org>
72392
72393         * modules/utf8-ucs4-safe: New file.
72394         * lib/utf8-ucs4-safe.h: New file.
72395         * lib/unistr/utf8-ucs4-safe.c: New file.
72396
72397         * modules/utf16-ucs4-safe: New file.
72398         * lib/utf16-ucs4-safe.h: New file.
72399         * lib/unistr/utf16-ucs4-safe.c: New file.
72400
72401         * MODULES.html.sh (Unicode string functions): Add the new modules.
72402
72403 2007-01-08  Bruno Haible  <bruno@clisp.org>
72404
72405         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72406         (Depends-on): Add unitypes.
72407         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72408         (u8_mbtouc_aux): Move out to separate file.
72409         (u8_mbtouc): Use ucs4_t, uint8_t types.
72410         * lib/unistr/utf8-ucs4.c: New file.
72411
72412         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72413         (Depends-on): Add unitypes.
72414         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72415         (u16_mbtouc_aux): Move out to separate file.
72416         (u16_mbtouc): Use ucs4_t, uint16_t types.
72417         * lib/unistr/utf16-ucs4.c: New file.
72418
72419         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72420         (Depends-on): Add unitypes.
72421         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72422         (u8_uctomb_aux): Move out to separate file.
72423         (u8_uctomb): Use ucs4_t, uint8_t types.
72424         * lib/unistr/ucs4-utf8.c: New file.
72425
72426         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72427         (Depends-on): Add unitypes.
72428         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72429         (u16_uctomb_aux): Move out to separate file.
72430         (u16_uctomb): Use ucs4_t, uint16_t types.
72431         * lib/unistr/ucs4-utf16.c: New file.
72432
72433 2006-12-25  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/unitypes: New file.
72436         * lib/unitypes.h: New file.
72437         * MODULES.html.sh (func_all_modules): New section "Unicode string
72438         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72439         this section. Add unitypes.
72440
72441 2007-01-08  Bruno Haible  <bruno@clisp.org>
72442
72443         Avoid variable names that conflict with those from libtool.
72444         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72445         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72446         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72447         library_names_spec to acl_library_names_spec, hardcode_* to
72448         acl_hardcode_*.
72449         Reported by Ralf Wildenhues.
72450
72451 2007-01-08  Bruno Haible  <bruno@clisp.org>
72452
72453         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72454         definition.
72455         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72456         definition.
72457         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72458         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72459         definition.
72460         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72461         definition.
72462         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72463         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72464         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72465         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72466         definition.
72467         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72468         definition.
72469         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72470         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72471         GC_USE_<algorithm>.
72472         * lib/gc-libgcrypt.c: Likewise.
72473         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72474         * modules/gc-arctwo (configure.ac): Likewise.
72475         * modules/gc-des (configure.ac): Likewise.
72476         * modules/gc-hmac-md5 (configure.ac): Likewise.
72477         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72478         * modules/gc-md2 (configure.ac): Likewise.
72479         * modules/gc-md4 (configure.ac): Likewise.
72480         * modules/gc-md5 (configure.ac): Likewise.
72481         * modules/gc-random (configure.ac): Likewise.
72482         * modules/gc-rijndael (configure.ac): Likewise.
72483         * modules/gc-sha1 (configure.ac): Likewise.
72484
72485 2007-01-08  Bruno Haible  <bruno@clisp.org>
72486
72487         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72488         macro definition.
72489         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72490         definition.
72491         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72492         definition.
72493         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72494         * modules/fcntl-safer (configure.ac): Likewise.
72495         * modules/fopen-safer (configure.ac): Likewise.
72496         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72497         GNULIB_FWRITEERROR macro definition.
72498
72499 2007-01-08  Bruno Haible  <bruno@clisp.org>
72500
72501         * m4/gnulib-common.m4: New file.
72502         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72503         (func_get_filelist): Add m4/gnulib-common.m4.
72504
72505 2007-01-08  Bruno Haible  <bruno@clisp.org>
72506
72507         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72508         command.
72509
72510 2007-01-08  Jim Meyering  <jim@meyering.net>
72511
72512         Use a more robust test for a "can't happen" condition.
72513         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72514         narrowed the st_size value.  Presuming the "can't happen" condition
72515         is true, that narrowing could conceivably convert an invalid st_size
72516         value into a valid one.  Instead, use a change based on Matthew
72517         Woehlke's original patch.
72518
72519         Slight readability improvement: use an assert-like macro
72520         in place of literal "abort ()" uses.
72521         * lib/fts.c (fts_assert): Define.
72522         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72523         Use this macro instead of a bare 'abort'.
72524
72525 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72528         simply work around them.
72529         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72530         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72531         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72532         declaring.
72533         Don't bother to define as macros, since the standard doesn't require it.
72534         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72535         longer worry about IRIX 5.3.
72536         (HAVE_WCTYPE_CTMP_BUG): Remove.
72537
72538 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72539
72540         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72541         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72542         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72543         Problems reported by Georg Schwarz for IRIX 5.3.
72544
72545         * gnulib-tool (autoconf_minversion): Take the maximum version number
72546         found, not the minimum.  Problem reported by James Youngman.
72547
72548 2007-01-03  Karl Berry  <karl@gnu.org>
72549
72550         * doc/error.texi: new file, explaining interaction with progname.
72551         * doc/gnulib.texi: include it.  Update copyright.
72552
72553 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72554
72555         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72556         AC_CANONICAL_HOST, to improve autobuild outputs.
72557
72558 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72559             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72560
72561         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72562         sockets, server sockets, and other file descriptors.  Count errors
72563         to compute the return value.  Reorder the code a bit to be easier
72564         to follow.  Don't set event bits that were not requested (except
72565         POLLERR and POLLHUP).
72566
72567 2007-01-01  Bruno Haible  <bruno@clisp.org>
72568
72569         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72570
72571 2007-01-03  Jim Meyering  <jim@meyering.net>
72572
72573         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72574
72575 2007-01-02  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/settime (Include): Require timespec.h.
72578         * modules/nanosleep (Include): Likewise.
72579
72580 2007-01-01  Bruno Haible  <bruno@clisp.org>
72581
72582         * gnulib-tool (func_emit_copyright_notice): Bump year.
72583         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72584
72585 2007-01-01  Bruno Haible  <bruno@clisp.org>
72586
72587         Improve support for OpenBSD.
72588         * build-aux/config.rpath (libname_spec): Export.
72589         (library_names_spec): New variable. Export.
72590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72591         library_names_spec from the config.rpath output. Locate shared library
72592         through the name pattern in library_names_spec.
72593
72594 2007-01-01  Eric Blake  <ebb9@byu.net>
72595
72596         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72597
72598 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72601         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72602         assume the C locale, and avoid an "eval" that could cause trouble.
72603         Problem with SORT reported by Bob Proulx.
72604
72605         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72606         Define.  Trivial patch from Henning Nielsen Lund, originally
72607         sent to bug-grep@gnu.org today.
72608
72609 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72612         struct stat.  Problem reported by Henning Nielsen Lund.
72613         * lib/acl.c: Include acl.h first, to check interface.  Don't
72614         bother to include sys/types.h and sys/stat.h again.
72615
72616 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72617
72618         Import the following change from libc; problem reported by
72619         Sven Verdoolaege.
72620
72621         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72622
72623         [BZ #1373]
72624         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72625
72626 2006-12-28  Jim Meyering  <jim@meyering.net>
72627
72628         * build-aux/announce-gen: Do not assume that the package
72629         builds any of tar.gz, tar.bz2, and .xdelta files.
72630         Suggestion from Simon Josefsson.
72631
72632 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72633
72634         * modules/announce-gen: New file.
72635
72636 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72639         handles its gotchas now.
72640         * lib/mbswidth.c: Likewise.
72641         * lib/wcwidth.h: Likewise.
72642         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72643         and iswcntrl; the wctype module does this stuff now.
72644         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72646         * modules/mbchar (Depends-on): Add wctype.
72647         * modules/mbswidth (Depends-on): Likewise.
72648         * modules/wcwidth (Depends-on): Likewise.
72649
72650 2006-12-27  Eric Blake  <ebb9@byu.net>
72651
72652         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72653         module uses more than what <wctype.h> is required to provide.
72654
72655 2006-12-26  Eric Blake  <ebb9@byu.net>
72656
72657         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72658
72659 2006-12-26  Eric Blake  <ebb9@byu.net>
72660
72661         * modules/absolute-header: New module.
72662         * modules/fcntl (Depends-on): Depend on it.
72663         * modules/inttypes (Depends-on): Likewise.
72664         * modules/stdint (Depends-on): Likewise.
72665         * modules/sys_stat (Depends-on): Likewise.
72666         * modules/wctype (Depends-on): Likewise.
72667         * MODULES.html.sh (Support for building libraries and
72668         executables): Document it.
72669
72670 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * gnulib-tool (SED): Remove, undoing previous change.
72673         The problem was that it broke coreutils on Solaris, because
72674         "sed --posix" leaked into a makefile.
72675         (sed): New alias, if 'alias' and GNU sed.
72676
72677 2006-12-24  Jim Meyering  <jim@meyering.net>
72678
72679         Work around an fchownat bug in glibc-2.4:
72680         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72681         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72682         in spite of the -P option.
72683         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72684         New macros.
72685         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72686         * modules/openat (Files): Add lib/fchownat.c.
72687         * lib/openat.c (fchownat): Don't define here.  Move to...
72688         * lib/fchownat.c: ...this new file.
72689
72690 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72691
72692         Fix bug reported by Bruno Haible in
72693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72694         where quotearg.c didn't compile on Mac OS X 10.2 because it
72695         lacks <wchar.h> and wint_t.
72696         * lib/wctype_.h (__wctype_wint_t): New type.
72697         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72698         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72699         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72700         Arg is now of type __wctype_wint_t, not wint_t.
72701         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72702         substitute HAVE_WINT_T.
72703         * modules/wctype (Files): Add m4/wint_t.m4.
72704         (wctype.h): Substitute HAVE_WINT_T.
72705
72706 2006-12-23  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72709
72710 2006-12-23  Bruno Haible  <bruno@clisp.org>
72711
72712         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72713         S_ISLNK.
72714         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72715         mingw.
72716
72717 2006-12-22  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/copy-file.c: Include acl.h.
72720         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72721         Close the file descriptors only after being done with copy_acl.
72722         * modules/copy-file (Depends-on): Add acl.
72723
72724 2006-12-22  Bruno Haible  <bruno@clisp.org>
72725
72726         * gnulib-tool (SED): New variable.
72727         Use $SED instead of sed everywhere.
72728
72729 2006-12-22  Bruno Haible  <bruno@clisp.org>
72730
72731         * modules/no-c++: New file.
72732         * m4/no-c++.m4: New file.
72733         * MODULES.html.sh (Support for building libraries and executables):
72734         Add no-c++.
72735
72736 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72739         Include <limits.h>, and use its INT_MAX to rewrite the
72740         j loop so that it does not overflow 'int'.  Problem reported by
72741         Ralf Wildenhues in
72742         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72743         Play it safe by shifting left by 1 rather than multiplying by 2,
72744         as GCC is less likely to optimize this away when the value
72745         is signed (when it assumes overflow leads to undefined behavior).
72746         Also, don't assume time_t uses two's complement.
72747
72748 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * MODULES.html.sh: New module wctype.
72751         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72752         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72753         <wctype.h>, since the new wctype module should fix this.
72754         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72755         the wctype module should arrange for it.
72756         * lib/regex_internal.h: Likewise.
72757         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72758         since the wctype module should handle this now.
72759         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72760         * modules/fnmatch (Depends-on): Add wctype.
72761         * modules/quotearg (Depends-on): Likewise.
72762         * modules/regex (Depends-on): Likewise.
72763
72764 2006-12-19  Bruno Haible  <bruno@clisp.org>
72765
72766         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72767         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72768
72769 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72770
72771         * modules/savewd (Depends-on): Fix dependency on fcntl.
72772
72773 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72774
72775         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72776         conforms to C99, rather than relying on the user's environment
72777         setting of STDINT_H.
72778
72779 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72780         and Eric Blake  <ebb9@byu.net>
72781
72782         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72783         This is more consistent with the other defines here.
72784         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72785         Port to z/OS.  Problem reported by Paul Gilmartin.
72786         Change local vars to use gl_ prefix rather than ac_.
72787         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72788         with other defines.
72789         * modules/double-slash-root: New module.
72790         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72791         (Depends-on): Add double-slash-root.
72792         * MODULES.html.sh (File system functions): Mention new module.
72793
72794 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72797         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72798         This is for the benefit of gzip, which doesn't do i18n.
72799
72800 2006-12-12  Jim Meyering  <jim@meyering.net>
72801
72802         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72803         Reported by Andreas Schwab <schwab@suse.de>.
72804
72805 2006-12-12  Bruno Haible  <bruno@clisp.org>
72806
72807         Merge these changes.
72808         2006-09-05  Bruno Haible  <bruno@clisp.org>
72809         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72810         iconv_alloc succeeded.
72811         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72812         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72813         test for " && dest " at the end - dest is always != NULL there. Call
72814         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72815         with 2xNULL arguments, also to flush the state storage. Handle the
72816         IRIX iconv behaviour. Realloc the final result, to throw away unused
72817         memory.
72818
72819 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
72820
72821         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
72822         and fchmodat unconditionally, since glibc 2.4 has them.
72823         Problem reported by Arkadiusz Miskiewicz.
72824
72825 2006-12-10  Bruno Haible  <bruno@clisp.org>
72826
72827         * gnulib-tool (func_import): Show the include files only for those
72828         modules that are copied and specified.
72829         Reported by Karl Berry.
72830
72831 2006-12-08  Jim Meyering  <jim@meyering.net>
72832
72833         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
72834         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
72835
72836         * build-aux/announce-gen: Add two new options, both optional:
72837         --bootstrap-tools=TOOL_LIST
72838               a comma-separated list of tools, e.g.,
72839               autoconf,automake,bison,gnulib
72840         --gnulib-snapshot-date=DATE
72841               if gnulib is in the bootstrap tool list,
72842               then report this as the snapshot date.
72843               If not specified, use the current date/time.
72844               If you specify a date here, be sure it's UTC.
72845
72846 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72847
72848         * tests/test-argp-2.sh: Fix test to match actual output.
72849         (func_compare): Fix sed script to be portable.
72850
72851 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
72852
72853         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
72854         workaround for this case.  It is not autoconfigured now; offhand
72855         it's hard to see how to autoconfigure it.
72856
72857 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
72858
72859         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
72860         a directory that is about to be chowned.  Such a directory's
72861         initial file permissions should permit the owner only and this
72862         should not be changed until after the chown, since the group and
72863         other bits would be incorrect if they granted permission before
72864         the chown.
72865
72866         Fix porting problem for iswctype reported by Georg Schwarz in:
72867         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
72868         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
72869         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
72870         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
72871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72872
72873 2006-12-03  Jim Meyering  <jim@meyering.net>
72874
72875         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
72876         p->fts_statp may not yet be defined.
72877         (fts_read): Instead, set it in the caller, once p->fts_statp is
72878         sure to be defined, and corresponds to a top-level directory.
72879         This bug made du -x fail.  Here's the coreutils test case:
72880         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
72881         Reported by Mike Frysinger.
72882
72883 2006-12-01  Jim Meyering  <jim@meyering.net>
72884
72885         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
72886         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
72887         Reported by Simon Josefsson.
72888
72889 2006-11-30  Jim Meyering  <jim@meyering.net>
72890
72891         * m4/warning.m4: Use the all-permissive copyright notice
72892         recommended by RMS (rather than LGPL).
72893         * m4/vararrays.m4: Likewise.
72894         * m4/flexmember.m4: Likewise.
72895
72896 2006-11-29  Bruno Haible  <bruno@clisp.org>
72897
72898         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72899         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
72900         using +=.
72901         Reported by Simon Josefsson <simon@josefsson.org>.
72902
72903 2006-11-28  James Youngman <jay@gnu.org>
72904
72905         * README: Advise users that they might find the bug-gnulib@gnu.org
72906         and autotools-announce@gnu.org mailing lists useful.
72907
72908 2006-11-28  Bruno Haible  <bruno@clisp.org>
72909
72910         * m4/ptrdiff_max.m4: Remove file.
72911
72912 2006-11-21  Bruno Haible  <bruno@clisp.org>
72913
72914         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
72915         _AC_COMPUTE_INT.
72916         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72917         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
72918         _AC_COMPUTE_INT.
72919         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72920         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
72921         _AC_COMPUTE_INT.
72922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72923
72924 2006-11-28  Jim Meyering  <jim@meyering.net>
72925
72926         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
72927         warning from "gcc -Wshadow" about shadowing the builtin.
72928
72929 2006-11-27  Bruno Haible  <bruno@clisp.org>
72930
72931         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
72932         _AC_COMPUTE_INT.
72933         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
72934
72935 2006-11-27  Bruno Haible  <bruno@clisp.org>
72936             Paul Eggert  <eggert@cs.ucla.edu>
72937
72938         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
72939
72940 2006-11-26  Bruno Haible  <bruno@clisp.org>
72941
72942         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72943         noinst_LTLIBRARIES.
72944
72945 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
72946             Bruno Haible  <bruno@clisp.org>
72947
72948         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72949         if compiling with "gcc -ansi".
72950
72951 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72952
72953         Fix some incompatibilities with gcc -ansi -pedantic.
72954         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72955         if compiling pedantically with GCC, unless it's C99 or later.
72956         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72957         it mishandles gcc -ansi -pedantic as well.
72958         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72959         if gcc -pedantic.
72960         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72961         initializers for struct if -pedantic, unless it's C99 or later.
72962
72963 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72964
72965         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72966         Don't close an fd more than once. Identical atimes indicate
72967         success, not failure.
72968
72969 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72970
72971         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72972
72973 2006-11-23  Jim Meyering  <jim@meyering.net>
72974
72975         * build-aux/announce-gen: New file.  From coreutils.
72976
72977 2006-11-22  Jim Meyering  <jim@meyering.net>
72978
72979         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72980         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72981         (fts_read): Use a temporary to narrow the overused st_size member
72982         before using it in a switch statement.  Reported by Matthew Woehlke.
72983
72984         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72985         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72986
72987 2006-11-20  Bruno Haible  <bruno@clisp.org>
72988
72989         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72990         changequote instead of pairs of brackets.
72991         Reported by Andreas Schwab <schwab@suse.de>.
72992
72993 2006-11-21  Jim Meyering  <jim@meyering.net>
72994
72995         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72996         so as to remain compatible with older compilers.
72997         Patch from Michael Deutschmann.
72998
72999 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73000
73001         * MODULES.html.sh (File system functions): Add openat.
73002
73003         * lib/openat.h (rpl_fstatat): New macro, if
73004         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73005         (fstatat): Define to rpl_fstatat under the same conditions,
73006         unless COMPILING_FSTATAT.
73007         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73008         seems to have the bug.
73009         * lib/fstatat.c: New file.
73010         * modules/openat (Files): Add it.
73011
73012 2006-11-20  Bruno Haible  <bruno@clisp.org>
73013
73014         * Makefile: New file.
73015
73016 2006-11-20  Jim Meyering  <jim@meyering.net>
73017
73018         The beginnings of syntax-related checks for gnulib.
73019         * lib/Makefile: New file.
73020         * lib/t-idcache: New script.  Ensure that the two halves of
73021         idcache.c stay in sync.
73022
73023         * lib/idcache.c: Adjust comments in user- and group- portions to
73024         be more accurate, and to be consistent with one another.
73025
73026 2006-11-20  Jim Meyering  <jim@meyering.net>
73027
73028         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73029         continue using the flexible array member (thus, this module performs
73030         half as many malloc calls), with the addition that...
73031         (getgroup, getuser): Consistently record a non-match via an empty
73032         "name" string, and map an empty string match to a NULL return value.
73033         * modules/idcache (Depends-on): Re-add flexmember.
73034
73035         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73036         (getuidbyname, getgroup, getgidbyname): Likewise.
73037
73038         Use cleaner syntax: NULL rather than 0.
73039         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73040
73041 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73044         It mishandled the case where the group was missing.
73045         Problem reported by Greg Schafer.
73046         * modules/idcache: Likewise.
73047
73048 2006-11-18  Jim Meyering  <jim@meyering.net>
73049
73050         * check-module (%exempt_header): Add exception for some
73051         conditionally-included headers.
73052
73053         * modules/i-ring (Depends-on): Add verify.
73054         (License): Change to LGPL.
73055
73056 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73059         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73060         and inttostr.h.  Use snprintf rather than uinttostr, so that
73061         LGPLed code doesn't depend on GPLed.
73062
73063 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * modules/inline (License): Change from GPL to LGPL.
73066
73067 2006-11-17  Jim Meyering  <jim@meyering.net>
73068
73069         * modules/d-type (License): Switch to LGPL.
73070
73071 2006-11-15  Bruno Haible  <bruno@clisp.org>
73072
73073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73074
73075 2006-11-15  Eric Blake  <ebb9@byu.net>
73076
73077         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73078         the module dependency.
73079
73080 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73081             Bruno Haible  <bruno@clisp.org>
73082
73083         * gnulib-tool (func_create_testdir): Add license consistency check.
73084
73085 2006-11-15  Eric Blake  <ebb9@byu.net>
73086
73087         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73088         random "(cached)" in configure output.
73089
73090 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73091
73092         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73093         test for conforming inttypes.h is both announced and cached.
73094
73095         * MODULES.html.sh (seen_modules, seen_files): New variables.
73096         (func_module): Rewrite to use a few less gnulib-tool and sed
73097         invocations.  Avoid a couple of quadratic algorithms for ...
73098         (missed_modules, missed_files): ... these, with ...
73099         (func_append, func_tmpdir): ... these new functions, from
73100         gnulib-tool.  Analogously, install traps for cleanup.
73101
73102         * tests/test-gc.c (main): Remove unused variables.
73103         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73104
73105 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73106
73107         * modules/inttostr (License): Change to LGPL.
73108
73109 2006-11-14  Eric Blake  <ebb9@byu.net>
73110
73111         * modules/tempname (License): Change to LGPL.
73112
73113 2006-11-14  Eric Blake  <ebb9@byu.net>
73114
73115         * doc/functions.texi (Function Portability): *printf functions on
73116         Cygwin now understand all POSIX size specifiers.
73117
73118 2006-11-14  Bruno Haible  <bruno@clisp.org>
73119
73120         * modules/c-ctype (License): Change to LGPL.
73121
73122 2006-11-12  Bruno Haible  <bruno@clisp.org>
73123
73124         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73125         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73126         for GNOME libraries, for which the include files are installed in
73127         subdirectories of $prefix/include.
73128
73129 2006-11-12  Bruno Haible  <bruno@clisp.org>
73130
73131         * m4/lib-link.m4: Require at least autoconf-2.54.
73132         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73133         name to underscores for the --with option.
73134
73135 2006-11-13  Bruno Haible  <bruno@clisp.org>
73136
73137         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73138         the tests directory.
73139         Reported by Ralf Wildenhues.
73140
73141 2006-11-13  Bruno Haible  <bruno@clisp.org>
73142
73143         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73144         (func_emit_initmacro_end): Undo the override here.
73145         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73146         Works around the famous automake error in coreutils.
73147
73148 2006-11-13  Eric Blake  <ebb9@byu.net>
73149
73150         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73151         element, not its node.
73152
73153 2006-11-12  Bruno Haible  <bruno@clisp.org>
73154
73155         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73156         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73157
73158 2006-11-12  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool: New option --local-symlink.
73161         (func_usage): Document it.
73162         (lsymbolic): New variable.
73163         (func_import, func_create_testdir): If --symlink was not specified,
73164         test whether --local-symlink was specified and the file comes from
73165         the local_gnulib_dir.
73166
73167 2006-11-12  Bruno Haible  <bruno@clisp.org>
73168
73169         * gnulib-tool (func_ln): New function.
73170         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73171
73172 2006-11-12  Bruno Haible  <bruno@clisp.org>
73173
73174         Finish support for source files in subdirectories.
73175         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73176         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73177         AUTOMAKE_OPTIONS.
73178         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73179
73180 2006-11-12  Bruno Haible  <bruno@clisp.org>
73181
73182         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73183         EXTRA_lib_SOURCES augmentation.
73184         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73185
73186 2006-11-12  Jim Meyering  <jim@meyering.net>
73187
73188         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73189         file descriptors.  This also averts a failure on systems with
73190         native openat support when a traversed directory lacks "x" access.
73191         * lib/fts_.h: Include "i-ring.h"
73192         (struct FTS) [fts_fd_ring]: New member.
73193         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73194         (FCHDIR): Add parentheses.
73195         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73196         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73197         When descending, rather than simply closing the previous
73198         fts_cwd_fd value, push that file descriptor onto the ring.
73199         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73200         (fts_open): Initialize the new fd_ring member.
73201         (fts_close): Clear the ring.
73202         (fts_safe_changedir): When possible, use our new fd_ring to skip
73203         the diropen and fstat and dev/ino comparison that would normally
73204         accompany a virtual `chdir ("..")'.
73205
73206         * modules/fts (Depends-on): Add i-ring.
73207         * modules/i-ring: New module.
73208         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73209         * m4/i-ring.m4: New file.
73210
73211 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73212
73213         * gnulib-tool (func_create_testdir): Fix replacement of
73214         `build-aux' in configure.ac.  Run autotools in gltests
73215         subdirectory.
73216         (func_create_testdir, func_create_megatestdir, test): There is
73217         no need for '--force' in most autotool invocations in a new
73218         tree.  Actually fail the whole test if any of the tools, or the
73219         configure or make stages fail.
73220
73221         Sync from Automake.
73222         * build-aux/gnupload: Revert last change.  Add pointer to upload
73223         instructions of the GNU Maintenance Instructions.
73224         Suggestion by Karl Berry.
73225
73226 2006-11-10  Jim Meyering  <jim@meyering.net>
73227
73228         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73229
73230 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73233         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73234         (bind_textdomain_codeset) [! ENABLE_NLS]:
73235         Evaluate all the arguments.  That way, callers get compatible behavior
73236         if the arguments have side effects.  Also, it avoids some GCC
73237         diagnostics in some cases; Joel E. Denny reported problems when Bison
73238         was configured with --enable-gcc-warnigs.
73239
73240 2006-11-10  Jim Meyering  <jim@meyering.net>
73241
73242         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73243         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73244         account.
73245
73246 2006-11-10  Jim Meyering  <jim@meyering.net>
73247
73248         * modules/inline: New file/module.
73249         * modules/xalloc (Files): Remove m4/inline.m4.
73250         (Depends-on): Add inline, instead.
73251         * modules/oset: Likewise.
73252         * modules/list: Likewise.
73253
73254 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73257         Problem reported by Matthew Woehlke.
73258
73259 2006-11-09  Bruno Haible  <bruno@clisp.org>
73260
73261         * lib/tempname.c (gen_tempname): Remove variant that invokes
73262         __gen_tempname.
73263         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73264         __gen_tempname.
73265
73266 2006-11-08  Bruno Haible  <bruno@clisp.org>
73267
73268         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73269         to 'yes' instead of 'cross-compiling'.
73270
73271 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73272
73273         * lib/quotearg.h (quotearg_free): New decl.
73274         * lib/quotearg.c (quotearg_free): New function.
73275         (slot0, nslots, slotvec0, slotvec):
73276         Now file-scope so that quotearg_free can get at them.
73277
73278 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73279
73280         Sync from Automake.
73281         * build-aux/gnupload: Add missing 'gnu' to example URL.
73282         Report by Karl Berry.
73283
73284 2006-11-08  Bruno Haible  <bruno@clisp.org>
73285
73286         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73287         Suggested by Paul Eggert.
73288
73289 2006-11-08  Jim Meyering  <jim@meyering.net>
73290
73291         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73292         It's already included if !_LIBC.
73293         (fts_safe_changedir): Add a comment.
73294
73295 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73298         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73299         Matthew Woehlke.
73300
73301         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73302         definitions up, to avoid colliding with change below.
73303         (static_inline) [HAVE_INLINE]: New macro.
73304         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73305         Provide extern decls when !HAVE_INLINE.  Do not define unless
73306         static_inline is defined, either by us or by xmalloc.c.  Use
73307         static_inline rather than static inline.
73308         (XCALLOC): Optimize sizeof(T) = 1 case.
73309         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73310
73311 2006-11-07  Bruno Haible  <bruno@clisp.org>
73312
73313         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73314         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73315         AC_C_INLINE.
73316         * modules/xalloc (Files): Add m4/inline.m4.
73317
73318 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73319
73320         * README: Fix typo.
73321         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73322         (Miscellanous Notes): ...from this.
73323
73324 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73325
73326         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73327         Mention that offsetof should be used instead of sizeof.
73328         From Bruno Haible.
73329
73330 2006-11-07  Bruno Haible  <bruno@clisp.org>
73331
73332         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73333
73334 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73337         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73338         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73339         (gl_tree_add_before, gl_tree_add_after):
73340         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73341         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73342         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73343         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73344         (gl_linked_add_after, gl_linked_add_at): Likewise.
73345         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73346         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73347         (gl_tree_add_before, gl_tree_add_after): Likewise.
73348         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73349         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73350         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73351
73352 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73353
73354         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73355
73356 2006-11-06  Bruno Haible  <bruno@clisp.org>
73357
73358         * m4/inline.m4: New file.
73359         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73360         * modules/list (Files): Add m4/inline.m4.
73361         * modules/oset (Files): Likewise.
73362
73363 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         * lib/idcache.c: Include <stddef.h>, for offsetof.
73366         (struct userid.name): Change from char * to a flexible array member.
73367         All uses changed.
73368         * modules/idcache (Depends-on): Add flexmember.
73369
73370         * MODULES.html.sh (Core language properties): New module flexmember.
73371         * modules/flexmember, m4/flexmember.m4: New files.
73372
73373         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73374         inline functions that are identical with the old xnmalloc_inline,
73375         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73376         that we can avoid some unnecessary integer multiplications and
73377         divisions in the common case where the element size is known at
73378         compile time.
73379         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73380         needed.
73381         (xnboundedmalloc): Remove.
73382         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73383         arguments, for consistency with rest of this header.
73384         (xcharalloc): Rewrite using XNMALLOC.
73385         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73386         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73387         versions have been moved to lib/xalloc.h and renamed to be the
73388         non-*_inline versions.
73389         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73390         and xnrealloc functions, since those functions are now inline and
73391         now call us.
73392         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73393         renaming described above.
73394         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73395         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73396         captures the dependency in AC_C_INLINE.
73397
73398         New module canonicalize-lgpl, proposed by Charles Wilson in
73399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73400         with a few small changes afterwards.
73401         * MODULES.html.sh (File system functions): New module
73402         canonicalize-lgpl.
73403         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73404         and canonicalize_file_name.
73405         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73406         * modules/canonicalize-lgpl: New files.
73407
73408 2006-11-05  Bruno Haible  <bruno@clisp.org>
73409
73410         * gnulib-tool (func_import, func_create_testdir): Create directories
73411         also for files in subdirectories of lib/.
73412
73413 2006-11-05  Bruno Haible  <bruno@clisp.org>
73414
73415         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73416         ANSI C compliant.
73417
73418 2006-11-03  Bruno Haible  <bruno@clisp.org>
73419
73420         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73421         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73422         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73423         (xnboundedmalloc): New inline function.
73424         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73425         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73426         xmalloc.
73427         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73428         xmalloc.
73429         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73430         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73431         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73432         xmalloc.
73433         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73434         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73435         xmalloc.
73436         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73437         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73438         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73439         xmalloc.
73440         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73441         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73442         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73443         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73444         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73445         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73446         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73447
73448 2006-11-03  Bruno Haible  <bruno@clisp.org>
73449
73450         * lib/c-ctype.h [C++]: Define functions without name mangling.
73451         * lib/fwriteerror.h [C++]: Likewise.
73452         * lib/gcd.h [C++]: Likewise.
73453         * lib/linebreak.h [C++]: Likewise.
73454
73455 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73458         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73459         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73460         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73461         Check for functions and headers just once.
73462         Check for declaration of canonicalize_file_name.
73463         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73464
73465 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73466
73467         * gnulib-tool (func_import): Fix typo in actioncmd.
73468
73469 2006-11-02  Bruno Haible  <bruno@clisp.org>
73470
73471         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73472         newline sequence in the Makefile.am snippet as a space, like "make"
73473         does.
73474         Reported by Roger Persson <perrog@gmail.com>.
73475
73476 2006-11-01  Bruno Haible  <bruno@clisp.org>
73477
73478         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73479         already declared in <string.h>.
73480         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73481
73482 2006-11-01  Bruno Haible  <bruno@clisp.org>
73483
73484         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73485         * lib/strcase.h: Include <string.h>.
73486         (strcasecmp): Define to rpl_strcasecmp here.
73487
73488 2006-11-01  Bruno Haible  <bruno@clisp.org>
73489
73490         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73491
73492 2006-11-01  Eric Blake  <ebb9@byu.net>
73493
73494         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73495
73496         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73497
73498 2006-10-29  Bruno Haible  <bruno@clisp.org>
73499
73500         Make it compile in C++ mode.
73501         * lib/full-write.c (full_rw): Add a cast.
73502
73503 2006-11-01  Bruno Haible  <bruno@clisp.org>
73504
73505         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73506         be POSIX compliant.
73507         Reported by Roger Persson <perrog@gmail.com>.
73508
73509 2006-11-01  Eric Blake  <ebb9@byu.net>
73510
73511         * lib/getopt_.h: Fix comments.
73512
73513 2006-10-31  Eric Blake  <ebb9@byu.net>
73514
73515         * modules/tmpdir (Depends-on): Add sys_stat.
73516         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73517         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73518         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73519         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73520         tempname.
73521
73522 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         Avoid some C++ diagnostics reported by Bruno Haible.
73525         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73526         xmalloc.
73527         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73528         (struct slotvec): Move to top level.
73529         (quotearg_n_options): Rewrite to avoid xmalloc.
73530         * lib/xalloc.h (xcharalloc): New function.
73531         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73532         [defined __cplusplus]: Add function template that provides result
73533         type propagation.  This part of the change is from Bruno Haible.
73534
73535 2006-10-29  Bruno Haible  <bruno@clisp.org>
73536
73537         Make it compile in C++ mode.
73538         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73539         * lib/strnlen1.c (strnlen1): Cast memchr result.
73540         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73541         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73542         (create_temp_dir): Rename local variable 'template'.
73543         (compile_csharp_using_sscli): Add cast.
73544         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73545         * lib/findprog.c (find_in_path): Likewise.
73546         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73547         * lib/wait-process.c (register_slave_subprocess): Likewise.
73548
73549 2006-10-22  Bruno Haible  <bruno@clisp.org>
73550
73551         * modules/tsearch: New file.
73552         * lib/tsearch.h: New file.
73553         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73554         * m4/tsearch.m4: New file.
73555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73556
73557 2006-10-29  Eric Blake  <ebb9@byu.net>
73558
73559         * lib/arcfour.c: Assume config.h.
73560         * lib/arctwo.c: Likewise.
73561         * lib/base64.c: Likewise.
73562         * lib/check-version.c: Likewise.
73563         * lib/crc.c: Likewise.
73564         * lib/des.c: Likewise.
73565         * lib/gc-gnulib.c: Likewise.
73566         * lib/gc-libgcrypt.c: Likewise.
73567         * lib/gc-pbkdf2-sha1.c: Likewise.
73568         * lib/getaddrinfo.c: Likewise.
73569         * lib/getdelim.c: Likewise.
73570         * lib/getline.c: Likewise.
73571         * lib/hmac-md5.c: Likewise.
73572         * lib/hmac-sha1.c: Likewise.
73573         * lib/iconvme.c: Likewise.
73574         * lib/md2.c: Likewise.
73575         * lib/md4.c: Likewise.
73576         * lib/memxor.c: Likewise.
73577         * lib/read-file.c: Likewise.
73578         * lib/readline.c: Likewise.
73579         * lib/rijndael-alg-fst.c: Likewise.
73580         * lib/rijndael-api-fst.c: Likewise.
73581         * lib/xgetdomainname.c: Likewise.
73582
73583 2006-10-28  Eric Blake  <ebb9@byu.net>
73584
73585         * lib/xstrndup.c: Assume config.h.
73586
73587 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73590         stat-macros.h is now for our own macros, whereas stat_h is for
73591         macros in the <sys/stat.h> name space.
73592         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73593         (STAT_MACROS_H): Remove.
73594         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73595         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73596         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73597         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73598         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73599         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73600         Move these macros to ...
73601         * lib/stat_.h: here.  Don't include stat-macros.h.
73602         * lib/canonicalize.c: Don't include stat-macros.h.
73603         * lib/chown.c: Likewise.
73604         * lib/euidaccess.c: Likewise.
73605         * lib/file-type.c: Likewise.
73606         * lib/filemode.c: Likewise.
73607         * lib/glob.c: Likewise.
73608         * lib/isapipe.c: Likewise.
73609         * lib/lchown.c: Likewise.
73610         * lib/lstat.c: Likewise.
73611         * lib/mkdir-p.c: Likewise.
73612         * lib/rmdir.c: Likewise.
73613         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73615         unless mkdir isn't declared, to speed up 'configure'.
73616         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73617         would define all the S_* symbols.
73618         * modules/canonicalize (Depends-on):
73619         Depend on sys_stat, not stat-macros.
73620         * modules/chown: Likewise.
73621         * modules/euidaccess: Likewise.
73622         * modules/filemode: Likewise.
73623         * modules/file-type: Likewise.
73624         * modules/glob: Likewise.
73625         * modules/isapipe: Likewise.
73626         * modules/lchown: Likewise.
73627         * modules/lstat: Likewise.
73628         * modules/mkancesdirs: Likewise.
73629         * modules/rmdir: Likewise.
73630         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73631         * modules/modechange: Likewise.
73632         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73633         (configure.ac): Remove gl_STAT_MACROS.
73634         * modules/sys_stat (Depends-on): Remove stat-macros.
73635
73636 2006-10-27  Bruno Haible  <bruno@clisp.org>
73637
73638         * m4/signed.m4: Remove file.
73639         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73640         invocation.
73641         * modules/vasnprintf (Files): Remove m4/signed.m4.
73642
73643 2006-10-27  Bruno Haible  <bruno@clisp.org>
73644
73645         Update to GNU gettext 0.16.
73646         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73647         m4/inttypes-h.m4, m4/signed.m4.
73648         * m4/gettext.m4: Update to GNU gettext 0.16.
73649         * m4/intl.m4: New file, from GNU gettext.
73650         * m4/intldir.m4: New file, from GNU gettext.
73651         * config/srclist.txt: Update
73652
73653 2006-10-27  Eric Blake  <ebb9@byu.net>
73654
73655         * MODULES.html.sh: Document tempname.
73656         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73657         dependencies.
73658         (Files): Move lib/tempname.c...
73659         * modules/tempname: ...to this new module.
73660         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73661         (gl_PREREQ_TEMPNAME): Move...
73662         * m4/tempname.m4: ...to this new file.
73663         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73664         * modules/sys_stat (Depends-on): Add stat-macros.
73665         * lib/stat_.h (includes): Pick up stat macros.
73666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73667         if stat macros are broken.
73668         * lib/tempname.c (includes): No need to include "stat-macros.h".
73669         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73670         (direxists, __path_search) [!_LIBC]: Don't compile these in
73671         gnulib; the tmpdir module covers that.
73672         * lib/tempname.h: New file.
73673
73674 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * COPYING: Explain how gnulib-tool converts licence headers.
73677         Almost all wording by Eric Blake.
73678
73679 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * lib/mbchar.h (is_basic_table): Make read-only.
73682         * lib/mbchar.c (is_basic_table): Likewise.
73683         Reported by John Darrington.
73684
73685 2006-10-25  Bruno Haible  <bruno@clisp.org>
73686
73687         * lib/progname.h (set_program_name): Undefine before defining.
73688
73689 2006-10-25  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73692         false for non-gcc C++ compilers.
73693         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73694
73695 2006-10-24  Bruno Haible  <bruno@clisp.org>
73696
73697         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73698         iconv implementations like Irix iconv.
73699
73700 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73701
73702         * modules/vararrays: New file.
73703         * m4/vararrays.m4: New file, taken from diffutils.
73704         * MODULES.html.sh: New module vararrays.
73705
73706 2006-10-24  Karl Berry  <karl@gnu.org>
73707
73708         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73709         Don't call GNU Unix.
73710
73711 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73712
73713         * users.txt: Add Libtool.
73714
73715         Sync from Libtool:
73716
73717         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73718
73719         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73720         to gnulib's policy of including config.h unconditionally.
73721
73722 2006-10-24  Bruno Haible  <bruno@clisp.org>
73723
73724         * modules/wcwidth (Files): Add m4/wint_t.m4.
73725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73726         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73727
73728 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73729
73730         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73731         to pacify GCC with some -W flags enabled.  Problem reported by
73732         Bruno Haible.
73733
73734 2006-10-24  Jim Meyering  <jim@meyering.net>
73735
73736         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73737         Reported by Karl Berry.
73738
73739 2006-10-23  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73742
73743 2006-10-24  Bruno Haible  <bruno@clisp.org>
73744
73745         * lib/gl_list.h: Use C comment style, not C++ comment style.
73746
73747 2006-10-23  Eric Blake  <ebb9@byu.net>
73748
73749         * lib/getaddrinfo.c (includes): Add missing include.
73750
73751 2006-10-23  Bruno Haible  <bruno@clisp.org>
73752             Paul Eggert  <eggert@cs.ucla.edu>
73753
73754         Ability to rename obstack_free.
73755         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73756         obstack_free.
73757         (obstack_free): Invoke the __obstack_free macro.
73758         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73759
73760 2006-10-23  Bruno Haible  <bruno@clisp.org>
73761             Paul Eggert  <eggert@cs.ucla.edu>
73762
73763         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73764         __argc, __argv from the declaration. (They are defined as macros on
73765         mingw.)
73766
73767 2006-10-22  Bruno Haible  <bruno@clisp.org>
73768
73769         * doc/gnulib-intro.texi: New file.
73770         * doc/gnulib.texi: Include it.
73771
73772 2006-10-21  Bruno Haible  <bruno@clisp.org>
73773
73774         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73775         "Introduction", "Miscellanous Notes", "Particular Modules".
73776
73777 2006-10-21  Bruno Haible  <bruno@clisp.org>
73778
73779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73780         Change mostlyclean-local rule to avoid sh syntax error from bash
73781         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73782
73783 2006-10-23  Jim Meyering  <jim@meyering.net>
73784
73785         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73786         in place of snprintf.
73787
73788         * modules/inttostr (Files): Add lib/uinttostr.c.
73789         * lib/uinttostr.c (inttostr): New file/function.
73790         * lib/inttostr.h (uinttostr): Declare.
73791         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73792         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73793         Add uinttostr.
73794         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73795
73796 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/canonicalize.c (ELOOP): Define if not already defined.
73799         Problem reported by Bruno Haible in
73800         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73801
73802 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73805         Problem reported by Perry Smith and Ville Laurikari.
73806
73807         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73808         uses.
73809
73810 2006-10-19  Bruno Haible  <bruno@clisp.org>
73811
73812         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73813         for mingw.
73814
73815 2006-10-19  Bruno Haible  <bruno@clisp.org>
73816
73817         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
73818         Needed for mingw.
73819
73820 2006-10-19  Bruno Haible  <bruno@clisp.org>
73821
73822         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
73823
73824 2006-10-19  Bruno Haible  <bruno@clisp.org>
73825
73826         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
73827         it.
73828
73829 2006-10-19  Bruno Haible  <bruno@clisp.org>
73830
73831         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
73832         invocation.
73833
73834 2006-10-19  Bruno Haible  <bruno@clisp.org>
73835
73836         * gnulib-tool (func_create_testdir): Don't include ftruncate and
73837         mountlist by default.
73838
73839 2006-10-16  Bruno Haible  <bruno@clisp.org>
73840
73841         * lib/c-strstr.c: Include c-strstr.h.
73842
73843 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73844
73845         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
73846         in a slash.
73847
73848 2006-10-18  Bruno Haible  <bruno@clisp.org>
73849
73850         * lib/lock.h [C++]: Wrap definitions in extern "C".
73851
73852 2006-10-18  Bruno Haible  <bruno@clisp.org>
73853
73854         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
73855         gl_LIBOBJS list.
73856
73857 2006-10-18  Bruno Haible  <bruno@clisp.org>
73858
73859         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
73860
73861 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/xstrtol.h: Include gettext.h.
73864         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
73865         Problem reported by Eric Blake.
73866         * modules/xstrtol (Depends-on): Add gettext-h.
73867
73868 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
73869
73870         * lib/strftime.c (advance): New macro.
73871         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
73872         incomplete type, so you can't add 0 to it.  Problem and patch
73873         reported by Eelco Dolstra for dietlibc.
73874
73875 2006-10-18  Jim Meyering  <jim@meyering.net>
73876
73877         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
73878         type for a local, and rename it: s/up/user_proc/.
73879
73880 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
73881
73882         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
73883         READ_UTMP_USER_PROCESS.
73884         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
73885
73886 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
73887
73888         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
73889         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
73890
73891 2006-10-17  Eric Blake  <ebb9@byu.net>
73892
73893         * lib/sigprocmask.c (sigprocmask): Fix typo.
73894
73895         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
73896
73897         * modules/clean-temp (Makefile.am): Don't add to make output...
73898         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
73899         config.h.
73900
73901 2006-10-17  Bruno Haible  <bruno@clisp.org>
73902
73903         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
73904         differently if DEFAULT_TEXT_DOMAIN is set.
73905
73906 2006-10-16  Bruno Haible  <bruno@clisp.org>
73907
73908         * lib/clean-temp.c: Include fwriteerror.h.
73909
73910 2006-10-16  Bruno Haible  <bruno@clisp.org>
73911
73912         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
73913
73914 2006-10-16  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
73917         * lib/sigprocmask.h: Include <sys/types.h>.
73918         (sigset_t): Use the system's definition if present.
73919
73920 2006-10-17  Eric Blake  <ebb9@byu.net>
73921
73922         * lib/xvasprintf.c (includes): Assume config.h.
73923         * lib/xasprintf.c (includes): Likewise.
73924
73925 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
73926
73927         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
73928         at least as wide as intmax_t.
73929
73930 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
73931
73932         (Imported from Automake.)
73933         * build-aux/gnupload: Update to version 1.1 of directive file.
73934
73935 2006-10-16  Eric Blake  <ebb9@byu.net>
73936
73937         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
73938         match Automake 1.10a.
73939
73940 2006-10-14  Bruno Haible  <bruno@clisp.org>
73941
73942         * modules/sigprocmask: New file.
73943         * lib/sigprocmask.h: New file.
73944         * lib/sigprocmask.c: New file.
73945         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
73946         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
73947         request sigprocmask.o.
73948         (gl_PREREQ_SIGPROCMASK): New macro.
73949         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73950         (Depends-on): Add sigprocmask.
73951         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73952         gt_SIGNALBLOCKING. Test for 'raise' only once.
73953         * lib/fatal-signal.c: Include sigprocmask.h.
73954         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73955         unblock_fatal_signals): Define always.
73956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73957         sigprocmask.
73958
73959 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         Sync from Automake.
73962         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73963         which incorrectly sets the mode of an existing destination
73964         directory.  In some cases the unpatched install-sh could do the
73965         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73966         system.  We hope this is rare in practice, but it's clearly worth
73967         fixing.  Problem reported by Alex Unleashed in
73968         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73969         Also, don't bother to check for -m bugs unless we're using -m;
73970         suggested by Stepan Kasal.
73971
73972 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73973
73974         Sync from Automake.
73975         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73976         `-c' flag, so they appear at the same position as in %FASTDEP%
73977         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73978         which ignores unknown options only after the first non-option.
73979         Bug report against M4 by Nelson H. F. Beebe.
73980
73981 2006-10-13  Jim Meyering  <jim@meyering.net>
73982
73983         Fix a bug in yesterday's change.
73984         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73985         p->fts_statp->st_dev would be used uninitialized.
73986         Ensures that we always call fts_stat on the very first entry.
73987         Miklos Szeredi reported that find -xdev stopped working.
73988
73989 2006-10-12  Bruno Haible  <bruno@clisp.org>
73990
73991         * gnulib-tool (func_get_automake_snippet): Append an automatically
73992         computed EXTRA_DIST augmentation.
73993         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73994         * modules/alloca-opt (Makefile.am): Likewise.
73995         * modules/allocsa (Makefile.am): Likewise.
73996         * modules/arcfour (Makefile.am): Likewise.
73997         * modules/arctwo (Makefile.am): Likewise.
73998         * modules/argmatch (Makefile.am): Likewise.
73999         * modules/argz (Makefile.am): Likewise.
74000         * modules/atexit (Makefile.am): Likewise.
74001         * modules/backupfile (Makefile.am): Likewise.
74002         * modules/byteswap (Makefile.am): Likewise.
74003         * modules/c-strtod (Makefile.am): Likewise.
74004         * modules/c-strtold (Makefile.am): Likewise.
74005         * modules/calloc (Makefile.am): Likewise.
74006         * modules/canon-host (Makefile.am): Likewise.
74007         * modules/canonicalize (Makefile.am): Likewise.
74008         * modules/chdir-long (Makefile.am): Likewise.
74009         * modules/chdir-safer (Makefile.am): Likewise.
74010         * modules/check-version (Makefile.am): Likewise.
74011         * modules/chown (Makefile.am): Likewise.
74012         * modules/cloexec (Makefile.am): Likewise.
74013         * modules/close-stream (Makefile.am): Likewise.
74014         * modules/closeout (Makefile.am): Likewise.
74015         * modules/crc (Makefile.am): Likewise.
74016         * modules/csharpexec (Makefile.am): Likewise.
74017         * modules/cycle-check (Makefile.am): Likewise.
74018         * modules/des (Makefile.am): Likewise.
74019         * modules/dev-ino (Makefile.am): Likewise.
74020         * modules/dirfd (Makefile.am): Likewise.
74021         * modules/dirname (Makefile.am): Likewise.
74022         * modules/dup2 (Makefile.am): Likewise.
74023         * modules/eealloc (Makefile.am): Likewise.
74024         * modules/error (Makefile.am): Likewise.
74025         * modules/euidaccess (Makefile.am): Likewise.
74026         * modules/exclude (Makefile.am): Likewise.
74027         * modules/exitfail (Makefile.am): Likewise.
74028         * modules/fcntl-safer (Makefile.am): Likewise.
74029         * modules/fcntl (Makefile.am): Likewise.
74030         * modules/file-type (Makefile.am): Likewise.
74031         * modules/fileblocks (Makefile.am): Likewise.
74032         * modules/filemode (Makefile.am): Likewise.
74033         * modules/filenamecat (Makefile.am): Likewise.
74034         * modules/fnmatch (Makefile.am): Likewise.
74035         * modules/fopen-safer (Makefile.am): Likewise.
74036         * modules/fpending (Makefile.am): Likewise.
74037         * modules/fprintftime (Makefile.am): Likewise.
74038         * modules/free (Makefile.am): Likewise.
74039         * modules/fsusage (Makefile.am): Likewise.
74040         * modules/ftruncate (Makefile.am): Likewise.
74041         * modules/fts (Makefile.am): Likewise.
74042         * modules/gc-arcfour (Makefile.am): Likewise.
74043         * modules/gc-des (Makefile.am): Likewise.
74044         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74045         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74046         * modules/gc-md4 (Makefile.am): Likewise.
74047         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74048         * modules/gc-sha1 (Makefile.am): Likewise.
74049         * modules/gc (Makefile.am): Likewise.
74050         * modules/getaddrinfo (Makefile.am): Likewise.
74051         * modules/getcwd (Makefile.am): Likewise.
74052         * modules/getdelim (Makefile.am): Likewise.
74053         * modules/getdomainname (Makefile.am): Likewise.
74054         * modules/getgroups (Makefile.am): Likewise.
74055         * modules/gethostname (Makefile.am): Likewise.
74056         * modules/gethrxtime (Makefile.am): Likewise.
74057         * modules/getline (Makefile.am): Likewise.
74058         * modules/getloadavg (Makefile.am): Likewise.
74059         * modules/getlogin_r (Makefile.am): Likewise.
74060         * modules/getndelim2 (Makefile.am): Likewise.
74061         * modules/getopt (Makefile.am): Likewise.
74062         * modules/getpagesize (Makefile.am): Likewise.
74063         * modules/getpass-gnu (Makefile.am): Likewise.
74064         * modules/getpass (Makefile.am): Likewise.
74065         * modules/getsubopt (Makefile.am): Likewise.
74066         * modules/gettime (Makefile.am): Likewise.
74067         * modules/gettimeofday (Makefile.am): Likewise.
74068         * modules/getugroups (Makefile.am): Likewise.
74069         * modules/getusershell (Makefile.am): Likewise.
74070         * modules/glob (Makefile.am): Likewise.
74071         * modules/group-member (Makefile.am): Likewise.
74072         * modules/hard-locale (Makefile.am): Likewise.
74073         * modules/hash (Makefile.am): Likewise.
74074         * modules/hmac-md5 (Makefile.am): Likewise.
74075         * modules/hmac-sha1 (Makefile.am): Likewise.
74076         * modules/human (Makefile.am): Likewise.
74077         * modules/idcache (Makefile.am): Likewise.
74078         * modules/imaxabs (Makefile.am): Likewise.
74079         * modules/imaxdiv (Makefile.am): Likewise.
74080         * modules/inet_ntop (Makefile.am): Likewise.
74081         * modules/inet_pton (Makefile.am): Likewise.
74082         * modules/intprops (Makefile.am): Likewise.
74083         * modules/inttostr (Makefile.am): Likewise.
74084         * modules/inttypes (Makefile.am): Likewise.
74085         * modules/isapipe (Makefile.am): Likewise.
74086         * modules/javaversion (Makefile.am): Likewise.
74087         * modules/lchmod (Makefile.am): Likewise.
74088         * modules/lchown (Makefile.am): Likewise.
74089         * modules/localcharset (Makefile.am): Likewise.
74090         * modules/long-options (Makefile.am): Likewise.
74091         * modules/lstat (Makefile.am): Likewise.
74092         * modules/malloc (Makefile.am): Likewise.
74093         * modules/mathl (Makefile.am): Likewise.
74094         * modules/mbchar (Makefile.am): Likewise.
74095         * modules/md2 (Makefile.am): Likewise.
74096         * modules/md4 (Makefile.am): Likewise.
74097         * modules/md5 (Makefile.am): Likewise.
74098         * modules/memcasecmp (Makefile.am): Likewise.
74099         * modules/memchr (Makefile.am): Likewise.
74100         * modules/memcmp (Makefile.am): Likewise.
74101         * modules/memcoll (Makefile.am): Likewise.
74102         * modules/memcpy (Makefile.am): Likewise.
74103         * modules/memmem (Makefile.am): Likewise.
74104         * modules/memmove (Makefile.am): Likewise.
74105         * modules/mempcpy (Makefile.am): Likewise.
74106         * modules/memrchr (Makefile.am): Likewise.
74107         * modules/memset (Makefile.am): Likewise.
74108         * modules/memxor (Makefile.am): Likewise.
74109         * modules/mkancesdirs (Makefile.am): Likewise.
74110         * modules/mkdir-p (Makefile.am): Likewise.
74111         * modules/mkdir (Makefile.am): Likewise.
74112         * modules/mkdtemp (Makefile.am): Likewise.
74113         * modules/mkstemp (Makefile.am): Likewise.
74114         * modules/mktime (Makefile.am): Likewise.
74115         * modules/modechange (Makefile.am): Likewise.
74116         * modules/mountlist (Makefile.am): Likewise.
74117         * modules/nanosleep (Makefile.am): Likewise.
74118         * modules/obstack (Makefile.am): Likewise.
74119         * modules/openat (Makefile.am): Likewise.
74120         * modules/pagealign_alloc (Makefile.am): Likewise.
74121         * modules/pathmax (Makefile.am): Likewise.
74122         * modules/physmem (Makefile.am): Likewise.
74123         * modules/poll (Makefile.am): Likewise.
74124         * modules/posixtm (Makefile.am): Likewise.
74125         * modules/posixver (Makefile.am): Likewise.
74126         * modules/putenv (Makefile.am): Likewise.
74127         * modules/quote (Makefile.am): Likewise.
74128         * modules/quotearg (Makefile.am): Likewise.
74129         * modules/raise (Makefile.am): Likewise.
74130         * modules/read-file (Makefile.am): Likewise.
74131         * modules/readline (Makefile.am): Likewise.
74132         * modules/readlink (Makefile.am): Likewise.
74133         * modules/readtokens (Makefile.am): Likewise.
74134         * modules/readutmp (Makefile.am): Likewise.
74135         * modules/realloc (Makefile.am): Likewise.
74136         * modules/regex (Makefile.am): Likewise.
74137         * modules/rename-dest-slash (Makefile.am): Likewise.
74138         * modules/rename (Makefile.am): Likewise.
74139         * modules/rijndael (Makefile.am): Likewise.
74140         * modules/rmdir (Makefile.am): Likewise.
74141         * modules/rpmatch (Makefile.am): Likewise.
74142         * modules/safe-read (Makefile.am): Likewise.
74143         * modules/safe-write (Makefile.am): Likewise.
74144         * modules/same-inode (Makefile.am): Likewise.
74145         * modules/same (Makefile.am): Likewise.
74146         * modules/save-cwd (Makefile.am): Likewise.
74147         * modules/savedir (Makefile.am): Likewise.
74148         * modules/setenv (Makefile.am): Likewise.
74149         * modules/settime (Makefile.am): Likewise.
74150         * modules/sha1 (Makefile.am): Likewise.
74151         * modules/sig2str (Makefile.am): Likewise.
74152         * modules/snprintf (Makefile.am): Likewise.
74153         * modules/stat-macros (Makefile.am): Likewise.
74154         * modules/stat-time (Makefile.am): Likewise.
74155         * modules/stdbool (Makefile.am): Likewise.
74156         * modules/stdint (Makefile.am): Likewise.
74157         * modules/stdlib-safer (Makefile.am): Likewise.
74158         * modules/stpcpy (Makefile.am): Likewise.
74159         * modules/stpncpy (Makefile.am): Likewise.
74160         * modules/strcase (Makefile.am): Likewise.
74161         * modules/strcasestr (Makefile.am): Likewise.
74162         * modules/strchrnul (Makefile.am): Likewise.
74163         * modules/strcspn (Makefile.am): Likewise.
74164         * modules/strdup (Makefile.am): Likewise.
74165         * modules/strerror (Makefile.am): Likewise.
74166         * modules/strftime (Makefile.am): Likewise.
74167         * modules/strndup (Makefile.am): Likewise.
74168         * modules/strnlen (Makefile.am): Likewise.
74169         * modules/strpbrk (Makefile.am): Likewise.
74170         * modules/strsep (Makefile.am): Likewise.
74171         * modules/strstr (Makefile.am): Likewise.
74172         * modules/strtod (Makefile.am): Likewise.
74173         * modules/strtoimax (Makefile.am): Likewise.
74174         * modules/strtok_r (Makefile.am): Likewise.
74175         * modules/strtol (Makefile.am): Likewise.
74176         * modules/strtoll (Makefile.am): Likewise.
74177         * modules/strtoul (Makefile.am): Likewise.
74178         * modules/strtoull (Makefile.am): Likewise.
74179         * modules/strtoumax (Makefile.am): Likewise.
74180         * modules/strverscmp (Makefile.am): Likewise.
74181         * modules/sys_socket (Makefile.am): Likewise.
74182         * modules/sys_stat (Makefile.am): Likewise.
74183         * modules/sysexits (Makefile.am): Likewise.
74184         * modules/time_r (Makefile.am): Likewise.
74185         * modules/timegm (Makefile.am): Likewise.
74186         * modules/timespec (Makefile.am): Likewise.
74187         * modules/tmpfile-safer (Makefile.am): Likewise.
74188         * modules/trim (Makefile.am): Likewise.
74189         * modules/unistd-safer (Makefile.am): Likewise.
74190         * modules/unlinkdir (Makefile.am): Likewise.
74191         * modules/unlocked-io (Makefile.am): Likewise.
74192         * modules/userspec (Makefile.am): Likewise.
74193         * modules/utime (Makefile.am): Likewise.
74194         * modules/utimecmp (Makefile.am): Likewise.
74195         * modules/utimens (Makefile.am): Likewise.
74196         * modules/vasnprintf (Makefile.am): Likewise.
74197         * modules/vasprintf (Makefile.am): Likewise.
74198         * modules/vsnprintf (Makefile.am): Likewise.
74199         * modules/xalloc (Makefile.am): Likewise.
74200         * modules/xgetcwd (Makefile.am): Likewise.
74201         * modules/xnanosleep (Makefile.am): Likewise.
74202         * modules/xreadlink (Makefile.am): Likewise.
74203         * modules/xstrtod (Makefile.am): Likewise.
74204         * modules/xstrtol (Makefile.am): Likewise.
74205         * modules/xstrtold (Makefile.am): Likewise.
74206         * modules/yesno (Makefile.am): Likewise.
74207         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74208
74209 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * modules/error (Makefile.am): Distribute files through
74212         EXTRA_DIST, not lib_SOURCES.
74213
74214 2006-10-12  Eric Blake  <ebb9@byu.net>
74215
74216         * modules/error (Makefile.am): Distribute files in /lib.
74217         * modules/obstack (Makefile.am): Likewise.
74218
74219 2006-10-12  Bruno Haible  <bruno@clisp.org>
74220
74221         * modules/acl (Makefile.am): Distribute all files in lib/ through
74222         EXTRA_DIST.
74223         * modules/arcfour (Makefile.am): Likewise.
74224         * modules/arctwo (Makefile.am): Likewise.
74225         * modules/argmatch (Makefile.am): Likewise.
74226         * modules/argz (Makefile.am): Likewise.
74227         * modules/atexit (Makefile.am): Likewise.
74228         * modules/backupfile (Makefile.am): Likewise.
74229         * modules/c-strtod (Makefile.am): Likewise.
74230         * modules/c-strtold (Makefile.am): Likewise.
74231         * modules/calloc (Makefile.am): Likewise.
74232         * modules/canon-host (Makefile.am): Likewise.
74233         * modules/canonicalize (Makefile.am): Likewise.
74234         * modules/chdir-long (Makefile.am): Likewise.
74235         * modules/chdir-safer (Makefile.am): Likewise.
74236         * modules/check-version (Makefile.am): Likewise.
74237         * modules/chown (Makefile.am): Likewise.
74238         * modules/cloexec (Makefile.am): Likewise.
74239         * modules/close-stream (Makefile.am): Likewise.
74240         * modules/closeout (Makefile.am): Likewise.
74241         * modules/crc (Makefile.am): Likewise.
74242         * modules/cycle-check (Makefile.am): Likewise.
74243         * modules/des (Makefile.am): Likewise.
74244         * modules/dirfd (Makefile.am): Likewise.
74245         * modules/dirname (Makefile.am): Likewise.
74246         * modules/dup2 (Makefile.am): Likewise.
74247         * modules/euidaccess (Makefile.am): Likewise.
74248         * modules/exclude (Makefile.am): Likewise.
74249         * modules/exitfail (Makefile.am): Likewise.
74250         * modules/fcntl-safer (Makefile.am): Likewise.
74251         * modules/file-type (Makefile.am): Likewise.
74252         * modules/fileblocks (Makefile.am): Likewise.
74253         * modules/filemode (Makefile.am): Likewise.
74254         * modules/filenamecat (Makefile.am): Likewise.
74255         * modules/fnmatch (Makefile.am): Likewise.
74256         * modules/fopen-safer (Makefile.am): Likewise.
74257         * modules/fpending (Makefile.am): Likewise.
74258         * modules/fprintftime (Makefile.am): Likewise.
74259         * modules/free (Makefile.am): Likewise.
74260         * modules/fsusage (Makefile.am): Likewise.
74261         * modules/ftruncate (Makefile.am): Likewise.
74262         * modules/fts (Makefile.am): Likewise.
74263         * modules/gc (Makefile.am): Likewise.
74264         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74265         * modules/getaddrinfo (Makefile.am): Likewise.
74266         * modules/getcwd (Makefile.am): Likewise.
74267         * modules/getdelim (Makefile.am): Likewise.
74268         * modules/getdomainname (Makefile.am): Likewise.
74269         * modules/getgroups (Makefile.am): Likewise.
74270         * modules/gethostname (Makefile.am): Likewise.
74271         * modules/gethrxtime (Makefile.am): Likewise.
74272         * modules/getline (Makefile.am): Likewise.
74273         * modules/getloadavg (Makefile.am): Likewise.
74274         * modules/getlogin_r (Makefile.am): Likewise.
74275         * modules/getopt (Makefile.am): Likewise.
74276         * modules/getpass (Makefile.am): Likewise.
74277         * modules/getpass-gnu (Makefile.am): Likewise.
74278         * modules/getsubopt (Makefile.am): Likewise.
74279         * modules/gettime (Makefile.am): Likewise.
74280         * modules/gettimeofday (Makefile.am): Likewise.
74281         * modules/getugroups (Makefile.am): Likewise.
74282         * modules/getusershell (Makefile.am): Likewise.
74283         * modules/glob (Makefile.am): Likewise.
74284         * modules/group-member (Makefile.am): Likewise.
74285         * modules/hard-locale (Makefile.am): Likewise.
74286         * modules/hash (Makefile.am): Likewise.
74287         * modules/hmac-md5 (Makefile.am): Likewise.
74288         * modules/hmac-sha1 (Makefile.am): Likewise.
74289         * modules/human (Makefile.am): Likewise.
74290         * modules/idcache (Makefile.am): Likewise.
74291         * modules/imaxabs (Makefile.am): Likewise.
74292         * modules/imaxdiv (Makefile.am): Likewise.
74293         * modules/inet_ntop (Makefile.am): Likewise.
74294         * modules/inet_pton (Makefile.am): Likewise.
74295         * modules/inttostr (Makefile.am): Likewise.
74296         * modules/isapipe (Makefile.am): Likewise.
74297         * modules/lchown (Makefile.am): Likewise.
74298         * modules/long-options (Makefile.am): Likewise.
74299         * modules/lstat (Makefile.am): Likewise.
74300         * modules/malloc (Makefile.am): Likewise.
74301         * modules/mathl (Makefile.am): Likewise.
74302         * modules/mbchar (Makefile.am): Likewise.
74303         * modules/md2 (Makefile.am): Likewise.
74304         * modules/md4 (Makefile.am): Likewise.
74305         * modules/md5 (Makefile.am): Likewise.
74306         * modules/memcasecmp (Makefile.am): Likewise.
74307         * modules/memchr (Makefile.am): Likewise.
74308         * modules/memcmp (Makefile.am): Likewise.
74309         * modules/memcoll (Makefile.am): Likewise.
74310         * modules/memcpy (Makefile.am): Likewise.
74311         * modules/memmem (Makefile.am): Likewise.
74312         * modules/memmove (Makefile.am): Likewise.
74313         * modules/mempcpy (Makefile.am): Likewise.
74314         * modules/memrchr (Makefile.am): Likewise.
74315         * modules/memset (Makefile.am): Likewise.
74316         * modules/memxor (Makefile.am): Likewise.
74317         * modules/mkancesdirs (Makefile.am): Likewise.
74318         * modules/mkdir (Makefile.am): Likewise.
74319         * modules/mkdir-p (Makefile.am): Likewise.
74320         * modules/mkdtemp (Makefile.am): Likewise.
74321         * modules/mkstemp (Makefile.am): Likewise.
74322         * modules/mktime (Makefile.am): Likewise.
74323         * modules/modechange (Makefile.am): Likewise.
74324         * modules/mountlist (Makefile.am): Likewise.
74325         * modules/nanosleep (Makefile.am): Likewise.
74326         * modules/openat (Makefile.am): Likewise.
74327         * modules/pagealign_alloc (Makefile.am): Likewise.
74328         * modules/physmem (Makefile.am): Likewise.
74329         * modules/poll (Makefile.am): Likewise.
74330         * modules/posixtm (Makefile.am): Likewise.
74331         * modules/posixver (Makefile.am): Likewise.
74332         * modules/putenv (Makefile.am): Likewise.
74333         * modules/quote (Makefile.am): Likewise.
74334         * modules/quotearg (Makefile.am): Likewise.
74335         * modules/raise (Makefile.am): Likewise.
74336         * modules/read-file (Makefile.am): Likewise.
74337         * modules/readline (Makefile.am): Likewise.
74338         * modules/readlink (Makefile.am): Likewise.
74339         * modules/readtokens (Makefile.am): Likewise.
74340         * modules/readutmp (Makefile.am): Likewise.
74341         * modules/realloc (Makefile.am): Likewise.
74342         * modules/regex (Makefile.am): Likewise.
74343         * modules/rename (Makefile.am): Likewise.
74344         * modules/rename-dest-slash (Makefile.am): Likewise.
74345         * modules/rijndael (Makefile.am): Likewise.
74346         * modules/rmdir (Makefile.am): Likewise.
74347         * modules/rpmatch (Makefile.am): Likewise.
74348         * modules/safe-read (Makefile.am): Likewise.
74349         * modules/safe-write (Makefile.am): Likewise.
74350         * modules/same (Makefile.am): Likewise.
74351         * modules/save-cwd (Makefile.am): Likewise.
74352         * modules/savedir (Makefile.am): Likewise.
74353         * modules/setenv (Makefile.am): Likewise.
74354         * modules/settime (Makefile.am): Likewise.
74355         * modules/sha1 (Makefile.am): Likewise.
74356         * modules/sig2str (Makefile.am): Likewise.
74357         * modules/snprintf (Makefile.am): Likewise.
74358         * modules/stdlib-safer (Makefile.am): Likewise.
74359         * modules/stpcpy (Makefile.am): Likewise.
74360         * modules/stpncpy (Makefile.am): Likewise.
74361         * modules/strcase (Makefile.am): Likewise.
74362         * modules/strcasestr (Makefile.am): Likewise.
74363         * modules/strchrnul (Makefile.am): Likewise.
74364         * modules/strcspn (Makefile.am): Likewise.
74365         * modules/strdup (Makefile.am): Likewise.
74366         * modules/strerror (Makefile.am): Likewise.
74367         * modules/strftime (Makefile.am): Likewise.
74368         * modules/strndup (Makefile.am): Likewise.
74369         * modules/strnlen (Makefile.am): Likewise.
74370         * modules/strpbrk (Makefile.am): Likewise.
74371         * modules/strsep (Makefile.am): Likewise.
74372         * modules/strstr (Makefile.am): Likewise.
74373         * modules/strtod (Makefile.am): Likewise.
74374         * modules/strtoimax (Makefile.am): Likewise.
74375         * modules/strtok_r (Makefile.am): Likewise.
74376         * modules/strtol (Makefile.am): Likewise.
74377         * modules/strtoll (Makefile.am): Likewise.
74378         * modules/strtoul (Makefile.am): Likewise.
74379         * modules/strtoull (Makefile.am): Likewise.
74380         * modules/strtoumax (Makefile.am): Likewise.
74381         * modules/strverscmp (Makefile.am): Likewise.
74382         * modules/time_r (Makefile.am): Likewise.
74383         * modules/timegm (Makefile.am): Likewise.
74384         * modules/tmpfile-safer (Makefile.am): Likewise.
74385         * modules/unistd-safer (Makefile.am): Likewise.
74386         * modules/unlinkdir (Makefile.am): Likewise.
74387         * modules/userspec (Makefile.am): Likewise.
74388         * modules/utime (Makefile.am): Likewise.
74389         * modules/utimecmp (Makefile.am): Likewise.
74390         * modules/utimens (Makefile.am): Likewise.
74391         * modules/vasnprintf (Makefile.am): Likewise.
74392         * modules/vasprintf (Makefile.am): Likewise.
74393         * modules/vsnprintf (Makefile.am): Likewise.
74394         * modules/xalloc (Makefile.am): Likewise.
74395         * modules/xgetcwd (Makefile.am): Likewise.
74396         * modules/xnanosleep (Makefile.am): Likewise.
74397         * modules/xreadlink (Makefile.am): Likewise.
74398         * modules/xstrtod (Makefile.am): Likewise.
74399         * modules/xstrtol (Makefile.am): Likewise.
74400         * modules/xstrtold (Makefile.am): Likewise.
74401         * modules/yesno (Makefile.am): Likewise.
74402
74403 2006-10-12  Jim Meyering  <jim@meyering.net>
74404
74405         * m4/getloadavg.m4: Revert the change below.
74406
74407         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74408         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74409         fail with a symlink, which is what coreutils' ./bootstrap now
74410         creates by default.
74411
74412 2006-10-12  Bruno Haible  <bruno@clisp.org>
74413
74414         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74415         mingw.
74416         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74417         MSVC and mingw explicitly.
74418
74419 2006-10-11  Simon Josefsson  <jas@extundo.com>
74420             Bruno Haible  <bruno@clisp.org>
74421
74422         Add support for multiple gnulib-tool invocations in the scope of a
74423         single configure.ac file.
74424         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74425         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74426         with the same contents as the _LIBADD variable.
74427         (func_emit_initmacro_start, func_emit_initmacro_end,
74428         func_emit_initmacro_done): New functions.
74429         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74430         gl_LIBOBJS and gl_LTLIBOBJS.
74431
74432 2006-10-11  Bruno Haible  <bruno@clisp.org>
74433
74434         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74435         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74436         autoreconf. Instead, invoke autopoint explicitly but move back the
74437         *.m4 files from gnulib.
74438
74439 2006-10-11  Bruno Haible  <bruno@clisp.org>
74440
74441         * gnulib-tool (func_usage): Make module names after --create-testdir
74442         optional.
74443         (func_create_testdir): If no module was specified, use nearly all
74444         modules.
74445
74446 2006-10-12  Jim Meyering  <jim@meyering.net>
74447
74448         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74449         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74450         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74451         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74452         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74453         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74454         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74455         (fts_set_stat_required): New function.
74456         (fts_open): Defer the calls to fts_stat, if possible or requested.
74457         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74458         into fts_stat itself.
74459         (fts_read): Perform any required (deferred) fts_stat call.
74460         (fts_build): Likewise, for the directory we're about to open and read.
74461         In the readdir loop, carefully decide whether each entry will require
74462         an eventual call to fts_stat, using dirent.d_type info if available.
74463         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74464         a command line argument into this function.  Update all callers.
74465         Map a return value of FTS_DOT to FTS_D for a command line argument.
74466         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74467         Thanks to Miklos Szeredi for his tenacity and for the initial
74468         bug report about "find" failing on a FUSE-based file system.
74469
74470         * lib/fts.c (fts_open): Use consistent indentation.
74471
74472 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74473
74474         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74475         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74476         reported by Jim Meyering.  All uses of cache variables renamed
74477         to match Autoconf's.
74478         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74479         the other one.
74480
74481         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74482         Fix misspelling in diagnostic.
74483
74484 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74485
74486         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74487         defined.  Problem reported by Matthew Woehlke.
74488
74489         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74490         Add support for Tandem NonStop R series.
74491         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74492         Use new macro.
74493
74494         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74495         (has_trailing_slash): Omit size arg; all callers changed.
74496         Omit 'inline', since it doesn't help performance and we'd
74497         need to configure it.
74498         Don't count //, ///, etc. as having a trailing slash.
74499         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74500         (rpl_rename_dest_slash): On failure, use rename's errno rather
74501         than (in some cases) an incorrect or junk errno.
74502         Simplify code by removing need to compute length; this does
74503         cause it to make two passes instead of one over the file name,
74504         but it's worth it.
74505
74506         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74507         change, since Autoconf's version may no longer be appropriate now
74508         that we are using CVS Autoconf's version.  Add support for Tandem.
74509
74510 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74511             Bruno Haible  <bruno@clisp.org>
74512
74513         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74514         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74515         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74516         gl_AC_TYPE_LONG_LONG.
74517
74518         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74519         instead of HAVE_LONG_LONG.
74520         * lib/printf-args.c (printf_fetchargs): Likewise.
74521         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74522         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74523         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74524         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74525         gl_AC_TYPE_LONG_LONG.
74526
74527 2006-10-11  Bruno Haible  <bruno@clisp.org>
74528
74529         * m4/longlong.m4: Add comments.
74530         * m4/ulonglong.m4: Likewise.
74531
74532 2006-10-10  Bruno Haible  <bruno@clisp.org>
74533
74534         Make it possible to #define stpcpy, strdup to aliases.
74535         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74536         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74537
74538 2006-10-10  Bruno Haible  <bruno@clisp.org>
74539
74540         Make it possible to #define gcd to an alias.
74541         * lib/gcd.c: Include config.h.
74542
74543 2006-10-10  Bruno Haible  <bruno@clisp.org>
74544
74545         Make it possible to #define c_isascii to an alias.
74546         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74547         defined. Undefine the macros before defining them, to avoid gcc
74548         warnings.
74549         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74550         define NO_C_CTYPE_MACROS early.
74551
74552 2006-10-10  Bruno Haible  <bruno@clisp.org>
74553
74554         Make it possible to #define set_program_name to an alias.
74555         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74556         ENABLE_RELOCATABLE early.
74557
74558 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74559
74560         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74561         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74562         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74563         More generally, don't assume that 64-bit signed int is available
74564         if unsigned int is, and vice versa.
74565         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74566         unsigned symbols, not on their signed counterparts.
74567         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74568         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74569         (UINT64_C, UINTMAX_C):
74570         Likewise.
74571         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74572         unsigned counterparts.
74573         (Have_long_long, Unsigned): New macros.
74574         (Int): Renamed from INT.
74575         (strtoimax): Use the new macros.
74576         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74577         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74578         * modules/inttypes (inttypes.h): Substitute
74579         HAVE_UNSIGNED_LONG_LONG_INT.
74580         * modules/stdint (stdint.h): Likewise.
74581         (Files): Add m4/ulonglong.m4.
74582
74583 2006-10-10  Bruno Haible  <bruno@clisp.org>
74584
74585         Fix a gcc -Wshadow warning.
74586         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74587         to 'bucket'.
74588         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74589         gl_linked_indexof_from_to): Likewise.
74590         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74591         Likewise.
74592         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74593         Likewise.
74594         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74595         Reported by Eric Blake.
74596
74597 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74600         for NetBSD.  Problem reported by Bruno Haible.
74601
74602 2006-10-09  Jim Meyering  <jim@meyering.net>
74603
74604         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74605         Patch from Bruno Haible.
74606
74607 2006-10-09  Jim Meyering  <jim@meyering.net>
74608
74609         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74610         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74611         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74612
74613 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         Don't include <config.h> twice; this doesn't work in some cases,
74616         e.g., when config.h has "#define intmax_t long long int" and
74617         we include <config.h>, <inttypes.h>, <config.h> in that order.
74618         Problem reported by Matthew Woehlke in:
74619         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74620         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74621         * lib/fts-cycle.c: Don't include config.h.
74622         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74623         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74624         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74625         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74626         inttypes.h.
74627         * lib/xstrtoumax.c: Likewise.
74628         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74629         __strtol and the like, so that this module is more like its siblings.
74630         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74631         Remove; no longer needed now that we assume gnulib inttypes.h.
74632
74633 2006-10-08  Bruno Haible  <bruno@clisp.org>
74634
74635         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74636         option.
74637
74638 2006-10-07  Jim Meyering  <jim@meyering.net>
74639
74640         * modules/inttypes (inttypes.h): Revert what seems to have been
74641         an inadvertent part of today's change: use "|", not "/" in the
74642         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74643
74644 2006-10-07  Bruno Haible  <bruno@clisp.org>
74645
74646         * modules/sublist: New file.
74647
74648 2006-10-07  Bruno Haible  <bruno@clisp.org>
74649
74650         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74651         * modules/argz (argz.h): Likewise.
74652         * modules/arpa_inet (arpa/inet.h): Likewise.
74653         * modules/byteswap (byteswap.h): Likewise.
74654         * modules/configmake (configmake.h): Likewise.
74655         * modules/fcntl (fcntl.h): Likewise.
74656         * modules/fnmatch (fnmatch.h): Likewise.
74657         * modules/getopt (getopt.h): Likewise.
74658         * modules/glob (glob.h): Likewise.
74659         * modules/inttypes (inttypes.h): Likewise.
74660         * modules/netinet_in (netinet/in.h): Likewise.
74661         * modules/poll (poll.h): Likewise.
74662         * modules/stdbool (stdbool.h): Likewise.
74663         * modules/stdint (stdint.h): Likewise.
74664         * modules/sys_select (sys/select.h): Likewise.
74665         * modules/sys_socket (sys/socket.h): Likewise.
74666         * modules/sys_stat (sys/stat.h): Likewise.
74667         * modules/sysexits (sysexits.h): Likewise.
74668         * modules/unistd (unistd.h): Likewise.
74669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74670         Add a "DO NOT EDIT" comment to the generated file.
74671         (func_import): Likewise for gnulib-comp.m4.
74672
74673 2006-10-07  Bruno Haible  <bruno@clisp.org>
74674
74675         * lib/gl_sublist.h: New file.
74676         * lib/gl_sublist.c: New file.
74677
74678 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74681         name (relative to the original working directory) and the file
74682         name component (relative to the temporary working directory).  All
74683         callers changed.
74684         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74685         * lib/mkdir-p.c (make_dir_parents): Likewise.
74686         * lib/mkdir-p.h (make_dir_parents): Likewise.
74687
74688 2006-10-06  Eric Blake  <ebb9@byu.net>
74689
74690         Define several macros for use by the clean-temp module.
74691         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74692         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74693         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74694
74695         * lib/clean-temp.h (close_stream_temp): New declaration.
74696         * lib/clean-temp.c (includes): Pull in headers according to what
74697         other modules are in use.
74698         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74699
74700 2006-10-06  Bruno Haible  <bruno@clisp.org>
74701
74702         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74703         instead of fopen, fwriteerror.
74704
74705 2006-10-06  Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74708         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74709         int.
74710         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74711         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74712         Return an error indicator.
74713         Suggested by Eric Blake.
74714
74715 2006-10-06  Bruno Haible  <bruno@clisp.org>
74716
74717         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74718         Reported by Eric Blake.
74719
74720 2006-10-06  Bruno Haible  <bruno@clisp.org>
74721
74722         * modules/closeout (Description): Mention stderr too.
74723
74724 2006-10-06  Bruno Haible  <bruno@clisp.org>
74725         and Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * lib/closeout.c (close_stdout): Also close stderr.
74728         * lib/closeout.h: Update comment.
74729
74730 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74733         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74734         * lib/dirchownmod.c: Include lchown.h.
74735         * lib/lchown.c: Don't include files that lchown.h now includes.
74736         Don't declare chown, since lchown.h now does that.
74737         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74738         (lchown): Define to rpl_chown if lchown is declared but
74739         does not exist.  Declare using a prototype if lchown is not
74740         declared.  Add a copyright notice.
74741         * lib/mkstemp.h: Include <unistd.h>.
74742         * lib/openat.c: Include lchown.h.
74743
74744         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74745         we now test for that separately.
74746         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74747         rather than O_NOFOLLOW, when testing whether it's possible to
74748         avoid a race condition reliably.
74749         * lib/savewd.c (savewd_chdir): Likewise.
74750
74751         Remove macros that are no longer needed now that stdint.h is
74752         reliable.
74753         * lib/fsusage.c (UINTMAX_MAX): Remove.
74754         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74755         * lib/utimecmp.c (SIZE_MAX): Remove.
74756
74757         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74758
74759         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74760         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74761         O_NOATIME works.
74762
74763 2006-10-05  Bruno Haible  <bruno@clisp.org>
74764
74765         * lib/gl_list.h (gl_sortedlist_search_from_to,
74766         gl_sortedlist_indexof_from_to): New declarations.
74767         (gl_list_implementation): New fields sortedlist_search_from_to,
74768         sortedlist_indexof_from_to.
74769         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74770         inline functions.
74771         * lib/gl_list.c (gl_sortedlist_search_from_to,
74772         gl_sortedlist_indexof_from_to): New functions.
74773         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74774         function.
74775         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74776         (gl_array_sortedlist_search_from_to): New function.
74777         (gl_array_list_implementation): Update.
74778         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74779         function.
74780         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74781         (gl_carray_sortedlist_search_from_to): New function.
74782         (gl_carray_list_implementation): Update.
74783         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74784         gl_linked_sortedlist_indexof_from_to): New functions.
74785         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74786         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74787         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74788         gl_tree_sortedlist_indexof_from_to): New functions.
74789         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74790         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74791         Update.
74792         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74793         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74794         Update.
74795
74796 2006-10-05  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74799         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74800         (struct gl_list_implementation): Add fields search_from_to,
74801         indexof_from_to. Remove fields search, indexof.
74802         (gl_list_search): Use the search_from_to method.
74803         (gl_list_search_from, gl_list_search_from_to): New functions.
74804         (gl_list_indexof): Use the indexof_from_to method.
74805         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74806         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74807         (gl_list_search_from, gl_list_search_from_to): New functions.
74808         (gl_list_indexof): Use the indexof_from_to method.
74809         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74810         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74811         gl_array_indexof. Add start_index, end_index arguments.
74812         (gl_array_search_from_to): Renamed from gl_array_search. Add
74813         start_index, end_index arguments.
74814         (gl_array_remove, gl_array_list_implementation): Update.
74815         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74816         gl_carray_indexof. Add start_index, end_index arguments.
74817         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
74818         start_index, end_index arguments.
74819         (gl_carray_remove, gl_carray_list_implementation): Update.
74820         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
74821         gl_linked_search. Add start_index, end_index arguments.
74822         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
74823         start_index, end_index arguments.
74824         (gl_linked_remove): Update.
74825         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74826         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74827         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
74828         field to 'size_t'.
74829         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
74830         gl_tree_search. Add start_index, end_index arguments.
74831         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74832         start_index, end_index arguments.
74833         (gl_tree_remove): Update.
74834         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74835         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74836         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
74837         function.
74838         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
74839         gl_tree_search. Add start_index, end_index arguments.
74840         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
74841         start_index, end_index arguments.
74842         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74843         Update.
74844         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
74845
74846 2006-10-05  Bruno Haible  <bruno@clisp.org>
74847
74848         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
74849
74850         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
74851         fwriteerror_temp): New declarations.
74852         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
74853         (descriptors): New variable.
74854         (cleanup): First, close the descriptors.
74855         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
74856         fclose_temp, fwriteerror_temp): New functions.
74857
74858 2006-10-04  Jim Meyering  <jim@meyering.net>
74859
74860         * lib/fts.c (fts_open): Tiny comment change.
74861
74862 2006-10-04  Bruno Haible  <bruno@clisp.org>
74863
74864         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
74865         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
74866         gl_LOCK_BODY.
74867         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
74868         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
74869         gl_LOCK_EARLY_BODY.
74870         (gl_LOCK): Require gl_LOCK_BODY.
74871
74872 2006-10-04  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
74875         (gl_oset_search_atleast): New declaration.
74876         (struct gl_oset_implementation): Add field 'search_atleast'.
74877         (gl_oset_search_atleast): New inline function.
74878         * lib/gl_oset.c (gl_oset_search_atleast): New function.
74879         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
74880         (gl_array_oset_implementation): Update.
74881         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
74882         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
74883         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
74884
74885 2006-10-04  Bruno Haible  <bruno@clisp.org>
74886
74887         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
74888
74889 2006-10-03  Bruno Haible  <bruno@clisp.org>
74890
74891         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
74892         from gl_avltreehash_list_implementation.
74893
74894 2006-10-03  Bruno Haible  <bruno@clisp.org>
74895
74896         * lib/gl_oset.c (gl_oset_add): Fix return type.
74897
74898 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
74899
74900         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
74901
74902 2006-10-02  Eric Blake  <ebb9@byu.net>
74903
74904         * modules/strnlen (Depends-on): Add extensions.
74905
74906 2006-10-02  Eric Blake  <ebb9@byu.net>
74907
74908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
74909         definition in 2.60+.
74910
74911 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
74912
74913         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
74914         checks.
74915
74916 2006-10-02  Bruno Haible  <bruno@clisp.org>
74917
74918         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
74919         to the AUTOMAKE_OPTIONS.
74920         Reported by Jim Meyering.
74921
74922 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         Work around bug in Solaris 10 /proc file system:
74925         /proc/self/fd/NNN/.. isn't the parent directory of
74926         the directory whose file descriptor is NNN.  This needs to
74927         be worked around at run time, not compile time, since a
74928         program might be built on Solaris 8, where things work, and
74929         run on Solaris 10.
74930         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
74931         to use the following interface instead:
74932         (OPENAT_BUFFER_SIZE): New macro.
74933         (openat_proc_name): New function.
74934         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
74935         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
74936         Likewise.
74937         * lib/openat-proc.c: New file.
74938         * modules/openat (Files): Add lib/openat-proc.c.
74939         (Depends-on): Add same-inode, stdbool.
74940         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
74941
74942 2006-09-29  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
74945         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
74946         argument. Set stdout_closed before testing for ferror, not after.
74947         (fwriteerror, fwriteerror_no_ebadf): New functions.
74948
74949 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74950
74951         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74952
74953 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74954
74955         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74956         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74957
74958 2006-09-28  Jim Meyering  <jim@meyering.net>
74959
74960         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74961         Include <unistd.h>.
74962
74963 2006-09-28  Bruno Haible  <bruno@clisp.org>
74964
74965         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74966         * modules/linkedhash-list (Depends-on): Likewise.
74967         * modules/rbtreehash-list (Depends-on): Likewise.
74968
74969 2006-09-28  Bruno Haible  <bruno@clisp.org>
74970
74971         * lib/strndup.h: Simplify the redefinition of strndup.
74972         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74973         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74974
74975 2006-09-28  Bruno Haible  <bruno@clisp.org>
74976
74977         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74978         * lib/gl_linkedhash_list.c: Likewise.
74979         * lib/gl_rbtreehash_list.c: Likewise.
74980
74981 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74982
74983         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74984         getaddrinfo.
74985
74986         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74987         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74988         it causes <stdio_ext.h> to cause a compile-time error.
74989         Problem reported by Nelson H. F. Beebe.
74990         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74991         of HAVE_DECL___PENDING.
74992
74993         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74995         declaration.
74996
74997 2006-09-27  Jim Meyering  <jim@meyering.net>
74998
74999         This file could end up with a definition for a function
75000         named __strndup, rather than rpl_strndup on a system with
75001         incomplete weak_alias support.
75002         * lib/strndup.c (strndup): Rename from __strndup.
75003         Remove #defines that used to map __strndup to strndup.
75004         Don't use K&R prototypes.
75005         Remove LIBC-related code, since this file is not sync'd with glibc.
75006         * lib/strndup.h: Revamp, accordingly.
75007         * m4/strndup.m4: Modernize.
75008
75009 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75010
75011         * modules/savewd (Depends-on): Add 'raise'.
75012         * lib/savewd.c: Include <signal.h>, for 'raise'.
75013
75014 2006-09-26  Jim Meyering  <jim@meyering.net>
75015
75016         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75017         when we detect Darwin 8.7.0's acl_get_file bug.
75018         Rearrange to perform the new (below) run-test while $LIBS
75019         contains any acl-related library.  Set USE_ACL at the end.
75020         (gl_ACL_GET_FILE): New function.
75021
75022 2006-09-26  Eric Blake  <ebb9@byu.net>
75023
75024         * lib/verror.c: Include <config.h> unconditionally.
75025
75026 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75027
75028         * modules/clock-time (Maintainer): Add self.
75029         * modules/getlogin_r (Depends-on): Add extensions.
75030
75031 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75032
75033         * modules/clock-time: New module.
75034         * modules/nanosleep (Depends-on): Add clock-time.
75035         * modules/gethrxtime (Depends-on): Likewise.
75036         * modules/gettime (Depends-on): Likewise.
75037         * modules/settime (Depends-on): Likewise.
75038
75039         * modules/fts-lgpl: Depend on openat.
75040         * modules/mkancesdirs: Depend on savewd.
75041         * modules/mkdir-p: Likewise.
75042
75043 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75044
75045         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75046
75047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75048         `gl_have_arbitrary_file_name_length_limit' to
75049         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75050         actually works between configure runs.
75051
75052 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75053             Bruno Haible  <bruno@clisp.org>
75054
75055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75056
75057 2006-09-25  Jim Meyering  <jim@meyering.net>
75058
75059         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75060         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75061
75062 2006-09-25  Eric Blake  <ebb9@byu.net>
75063
75064         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75065         exec's in 2006-09-18 patch when shuffling fds.
75066
75067 2006-09-25  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75070         Reported by Jim Meyering.
75071
75072 2006-09-24  Jim Meyering  <jim@meyering.net>
75073
75074         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75075         compare a pointer against a literal "0".  That caused failures with
75076         at least HP-UX's hpcc.
75077
75078 2006-09-22  Simon Josefsson  <jas@extundo.com>
75079
75080         * modules/gc-sha1:
75081         * modules/gc-md4:
75082         * modules/gc-hmac-sha1:
75083         * modules/gc-hmac-md5:
75084         * modules/gc-des:
75085         * modules/gc-arcfour: Distribute more files.
75086
75087 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75088
75089         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75090         (gl_linked_iterator_from_to): Initialize struct completely.
75091         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75092         (gl_tree_iterator_from_to): Likewise
75093         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75094         * lib/gl_array_list.c [lint] (gl_array_iterator)
75095         (gl_array_iterator_from_to): Likewise.
75096         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75097         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75098         (gl_carray_iterator_from_to): Likewise.
75099
75100         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75101         * lib/md4.c (md4_process_block): Remove unused variable.
75102         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75103         parentheses for clarity.
75104
75105 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75106
75107         * modules/bison-i18n (Depends-on): Add gettext.
75108
75109 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75110
75111         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75112         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75113         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75114         also add missing comma that caused broken test.
75115         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75116         stdlib.h, for `abort'.
75117         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75118         variables.
75119         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75120         include unistd.h if present, for `rmdir'.
75121         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75122         variables.
75123         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75124         in the process include standard headers for prototypes.
75125         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75126         gets declared on GNU/Linux.
75127         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75128         unistd.h, for `rmdir'.
75129         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75130
75131         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75132         always true.
75133         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75134
75135         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75136
75137 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75138
75139         * gnulib-tool (func_version): Create output all at once.  This
75140         may help avoid triggering unnecessary SIGPIPEs, and at any
75141         rate it doesn't hurt.
75142
75143 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75144             Bruno Haible  <bruno@clisp.org>
75145
75146         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75147         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75148         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75149
75150         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75151         (gl_FUNC_VASPRINTF): Invoke it.
75152
75153 2006-09-22  Bruno Haible  <bruno@clisp.org>
75154
75155         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75156         getloadavg.c as first argument.
75157
75158 2006-09-22  Bruno Haible  <bruno@clisp.org>
75159
75160         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75161         at the beginning of the gl_INIT macro.
75162         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75163         gl_GETLOADAVG.
75164
75165 2006-09-22  Bruno Haible  <bruno@clisp.org>
75166
75167         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75168         module.
75169         Suggested by Ralf Wildenhues.
75170
75171 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         Import this patch from libc:
75174
75175         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75176
75177         * lib/regex_internal.c (re_string_reconstruct): Handle
75178         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75179         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75180         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75181         re_string_context_at.
75182
75183         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75184         now requires it.
75185         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75186         gl_REGEX now does it for us.
75187         (gl_REGEX): Add test taken from
75188         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75189
75190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75191         Check that large offsets work.  Modernize Autoconf usages.
75192         Prefer "yes" to mean a good thing rather than a bad.
75193         Don't put "#define mkstemp" in config.h, as this might interfere
75194         with standard system headers that "#define mkstemp mkstemp64".
75195
75196         * modules/mkstemp (Depends-on): Add extensions, so that
75197         mkstemp is visible on some platforms.
75198         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75199         (Include): Change to "mkstemp.h" from <stdlib.h>.
75200         (Files): Add mkstemp.h.
75201
75202         * lib/mkstemp.h: New file, since some standard headers
75203         #define mkstemp.
75204         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75205         Include "mkstemp.h".
75206         Make the _LIBC code resemble glibc original more,
75207         e.g., use K&R style.
75208         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75209         (mkstemp): Remove, since mkstemp.h does this for us.
75210         * lib/stdlib--.h: Include mkstemp.h.
75211
75212         Import this patch from libc:
75213
75214         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75215
75216         * lib/tempname.c (__gen_tempname): Change attempts_min
75217         into a macro.  Use preprocessor to decide how to initialize
75218         attempts [Coverity CID 67].
75219
75220 2006-09-20  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/mkdtemp.c: Import from libc.
75223         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75224                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75225                 attempts_min into a macro.  Use preprocessor to decide how to
75226                 initialize attempts [Coverity CID 67].
75227         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75228                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75229                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75230
75231 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75232
75233         * gnulib-tool (func_exit): New function, to allow to pass the
75234         exit status portably through the trap.  Use everywhere.
75235         (--help, --version): Signal a write error.
75236         (trap): catch SIGPIPE, for write errors.
75237         Exit at the end of the trap, with the correct exit status.
75238
75239 2006-09-19  Karl Berry  <karl@gnu.org>
75240
75241         * doc/gnulib.texi: note about the license texinfo files.
75242
75243 2006-09-19  Eric Blake  <ebb9@byu.net>
75244
75245         * gnulib-tool: Avoid space-tab.
75246
75247 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75250         that prevented coreutils 6.1 from building.  Problem reported
75251         by Petter Reinholdtsen.
75252
75253 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * gnulib-tool (avoidlist): Fix typo that broke options like
75256         --avoid=lock that are used by coreutils bootstrap.
75257
75258 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75259
75260         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75261         more systematically.
75262
75263 2006-09-18  Jim Meyering  <jim@meyering.net>
75264
75265         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75266
75267 2006-09-18  Bruno Haible  <bruno@clisp.org>
75268
75269         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75270
75271 2006-09-18  Bruno Haible  <bruno@clisp.org>
75272
75273         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75274         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75275         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75276         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75277         * m4/gettext.m4: Require autoconf >= 2.52.
75278         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75279         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75280         of gl_cv_header_inttypes_h.
75281
75282 2006-09-18  Bruno Haible  <bruno@clisp.org>
75283
75284         * lib/javaversion.c: Include configmake.h.
75285
75286 2006-09-18  Bruno Haible  <bruno@clisp.org>
75287
75288         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75289         avoid that the while loops be executed in a subshell.
75290
75291 2006-09-18  Bruno Haible  <bruno@clisp.org>
75292
75293         * MODULES.html.sh (func_module): Break long lines.
75294         Suggested by Bruce Korb <bkorb@gnu.org>.
75295
75296 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75297
75298         Speed up by a factor of 1.12.
75299         * gnulib-tool (nl): New variable.
75300         (func_import): Rewrite include directive extraction to only read each
75301         directive once.
75302
75303 2006-09-17  Bruno Haible  <bruno@clisp.org>
75304
75305         * modules/javaversion (Makefile.am): Remove DEFS setting.
75306         (Depends-on): Add configmake, for PKGDATADIR definition.
75307
75308 2006-09-17  Bruno Haible  <bruno@clisp.org>
75309
75310         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75311
75312 2006-09-17  Bruno Haible  <bruno@clisp.org>
75313
75314         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75315         (func_modules_transitive_closure, func_modules_add_dummy,
75316         func_modules_to_filelist, func_import, func_create_testdir,
75317         func_create_megatestdir, ...): Use it wherever possible.
75318         Suggested by Ralf Wildenhues.
75319
75320 2006-09-16  Karl Berry  <karl@gnu.org>
75321
75322         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75323         to avoid sectioning errors.
75324         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75325         [ifinfo]: blank line after @center-ed titles.
75326         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75327         Spell FSF address consistently with others.
75328         (These changes approved by rms.)
75329
75330 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75331
75332         Speed up by a factor of 1.61.
75333         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75334         already checked module names again.
75335
75336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75337
75338         Speed up by a factor of 1.13.
75339         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75340         for new_files, and the input to func_add_or_update.
75341
75342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75343
75344         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75345         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75346
75347 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75348
75349         * modules/mkancesdirs (Depends-on): Add fcntl.
75350         * modules/savewd: New file.
75351         * MODULES.html.sh (File system functions): Add savewd.
75352
75353         * modules/configmake (Makefile.am): Add support for the
75354         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75355
75356 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         * m4/savewd.m4: New file.
75359
75360 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75363         (dirchownmod): New arg FD.  All callers changed.
75364         Use FD rather than opening the directory ourself, as opening is
75365         now the caller's responsibility.
75366         * lib/dirchownmod.h: Likewise.
75367         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75368         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75369         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75370         (test_dir): Remove.
75371         (mkancesdirs): Return length of prefix of FILE that has already
75372         been made, or -2 if there is a child doing the work.  Redo
75373         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75374         ".", and treat ".." specially since it might stray back into
75375         already-created areas.  Use a subprocess if necessary.  New arg
75376         WD; all users changed.  MAKE_DIR function should now return 1
75377         if it creates a directory that is not readable.  Return -2 if
75378         a child process is spun off.
75379         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75380         Adjust signature to match code.
75381         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75382         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75383         all users changed.
75384         * lib/savewd.c, lib/savewd.h: New files.
75385
75386 2006-09-15  Jim Meyering  <jim@meyering.net>
75387
75388         * modules/rename-dest-slash: New module.
75389         * MODULES.html.sh (posix_compat): Add it here.
75390
75391         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75392
75393 2006-09-15  Jim Meyering  <jim@meyering.net>
75394
75395         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75396         file.
75397
75398         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75399
75400 2006-09-15  Jim Meyering  <jim@meyering.net>
75401
75402         * lib/rename-dest-slash.c (has_trailing_slash): Use
75403         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75404         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75405         test before testing whether SRC is a directory.
75406         Suggestions from Bruno Haible.
75407
75408         Avoid a warning about an unused variable.
75409         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75410         into the #ifdef block where it's used.
75411
75412         * lib/rename-dest-slash.c: New file.
75413
75414 2006-09-14  Bruno Haible  <bruno@clisp.org>
75415
75416         * lib/allocsa.c: Include <config.h> unconditionally.
75417         * lib/asnprintf.c: Likewise.
75418         * lib/asprintf.c: Likewise.
75419         * lib/c-strcasecmp.c: Likewise.
75420         * lib/c-strcasestr.c: Likewise.
75421         * lib/c-strncasecmp.c: Likewise.
75422         * lib/c-strstr.c: Likewise.
75423         * lib/classpath.c: Likewise.
75424         * lib/clean-temp.c: Likewise.
75425         * lib/concatpath.c: Likewise.
75426         * lib/copy-file.c: Likewise.
75427         * lib/csharpcomp.c: Likewise.
75428         * lib/csharpexec.c: Likewise.
75429         * lib/execute.c: Likewise.
75430         * lib/fatal-signal.c: Likewise.
75431         * lib/findprog.c: Likewise.
75432         * lib/fwriteerror.c: Likewise.
75433         * lib/gl_array_list.c: Likewise.
75434         * lib/gl_array_oset.c: Likewise.
75435         * lib/gl_avltree_list.c: Likewise.
75436         * lib/gl_avltree_oset.c: Likewise.
75437         * lib/gl_avltreehash_list.c: Likewise.
75438         * lib/gl_carray_list.c: Likewise.
75439         * lib/gl_linked_list.c: Likewise.
75440         * lib/gl_linkedhash_list.c: Likewise.
75441         * lib/gl_list.c: Likewise.
75442         * lib/gl_oset.c: Likewise.
75443         * lib/gl_rbtree_list.c: Likewise.
75444         * lib/gl_rbtree_oset.c: Likewise.
75445         * lib/gl_rbtreehash_list.c: Likewise.
75446         * lib/imaxabs.c: Likewise.
75447         * lib/imaxdiv.c: Likewise.
75448         * lib/javacomp.c: Likewise.
75449         * lib/javaexec.c: Likewise.
75450         * lib/javaversion.c: Likewise.
75451         * lib/linebreak.c: Likewise.
75452         * lib/localcharset.c: Likewise.
75453         * lib/lock.c: Likewise.
75454         * lib/mbchar.c: Likewise.
75455         * lib/mbswidth.c: Likewise.
75456         * lib/mkdtemp.c: Likewise.
75457         * lib/pipe.c: Likewise.
75458         * lib/printf-args.c: Likewise.
75459         * lib/printf-parse.c: Likewise.
75460         * lib/progname.c: Likewise.
75461         * lib/progreloc.c: Likewise.
75462         * lib/readlink.c: Likewise.
75463         * lib/sh-quote.c: Likewise.
75464         * lib/stpcpy.c: Likewise.
75465         * lib/stpncpy.c: Likewise.
75466         * lib/strcasecmp.c: Likewise.
75467         * lib/strcasestr.c: Likewise.
75468         * lib/strcspn.c: Likewise.
75469         * lib/striconv.c: Likewise.
75470         * lib/strncasecmp.c: Likewise.
75471         * lib/strnlen1.c: Likewise.
75472         * lib/strstr.c: Likewise.
75473         * lib/strtok_r.c: Likewise.
75474         * lib/tls.c: Likewise.
75475         * lib/tmpdir.c: Likewise.
75476         * lib/unicodeio.c: Likewise.
75477         * lib/unsetenv.c: Likewise.
75478         * lib/vasnprintf.c: Likewise.
75479         * lib/vasprintf.c: Likewise.
75480         * lib/wait-process.c: Likewise.
75481         * lib/xallocsa.c: Likewise.
75482         * lib/xsetenv.c: Likewise.
75483         * lib/xstriconv.c: Likewise.
75484
75485 2006-09-13  Simon Josefsson  <jas@extundo.com>
75486
75487         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75488         that internally, suggested by Ralf Wildenhues
75489         <Ralf.Wildenhues@gmx.de>.
75490
75491 2006-09-13  Simon Josefsson  <jas@extundo.com>
75492
75493         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75494         @LIBOBJS@.
75495         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75496
75497 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75500         longer worry about uses that don't define HAVE_CONFIG_H.
75501         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75502         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75503         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75504         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75505         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75506         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75507         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75508         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75509         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75510         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75511         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75512         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75513         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75514         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75515         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75516         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75517         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75518         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75519         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75520         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75521         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75522         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75523         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75524         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75525         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75526         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75527         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75528         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75529         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75530         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75531         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75532         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75533         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75534         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75535         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75536         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75537         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75538         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75539         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75540         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75541         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75542         Likewise.
75543
75544 2006-09-13  Eric Blake  <ebb9@byu.net>
75545
75546         * lib/getopt.c: Fix typo in last commit.
75547
75548 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75549
75550         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75551         dgettext.
75552
75553 2006-09-12  Jim Meyering  <jim@meyering.net>
75554
75555         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75556         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75557         Reported by Nelson H. F. Beebe.
75558
75559 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75560
75561         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75562         program_invocation_name and program_invocation_short_name are
75563         initialized.
75564         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75565         and program_invocation_short_name to argp.h, so they are visible
75566         to user programs.
75567         * lib/argp.h: Likewise
75568
75569 2006-09-10  Bruno Haible  <bruno@clisp.org>
75570
75571         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75572         m4/inttypes_h.m4, m4/uintmax_t.m4.
75573
75574 2006-09-10  Bruno Haible  <bruno@clisp.org>
75575
75576         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75577         gl_AC_TYPE_UINTMAX_T.
75578
75579 2006-09-10  Bruno Haible  <bruno@clisp.org>
75580
75581         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75582
75583 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75584
75585         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75586         convention.  Text proposed by Bruno Haible.
75587         (struct argp_option): Document the use of N_() wrappers.
75588
75589         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75590         '\v', and translate the two parts separately, instead of feeding
75591         the whole string to gettext.  This allows to exclude
75592         '\v' from the strings visible to the translator by writing doc
75593         strings as N_("..") "\v" N_("..").
75594
75595 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * config/srclist.txt: Undo latest change; the bug was fixed.
75598
75599 2006-09-09  Bruno Haible  <bruno@clisp.org>
75600
75601         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75602         assignments if building a library without libtool.
75603         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75604         in func_emit_lib_Makefile_am.
75605         (func_import): When building a static library libfoo.a, arrange to
75606         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75607         (func_create_testdir): Likewise.
75608         * modules/gc (configure.ac, Makefile.am): If building statically,
75609         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75610         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75611         * modules/striconv (configure.ac, Makefile.am): Likewise.
75612         Based on a suggestion by Ralf Wildenhues.
75613
75614 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75617         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75618         Also:
75619
75620         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75621         Add year_2050_test to catch glibc bug 2821
75622         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75623
75624         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75625         Prefer #ifdef to #if.
75626
75627         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75628         Return from 'main' instead of calling 'exit'.
75629
75630 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75633         returned the maximum time_t value rather than (time_t) -1.
75634         Problem originally reported by William Bardwell
75635         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75636
75637         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75638         Moved to here ...
75639         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75640         ... from here.
75641
75642 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75645         2821 is fixed.
75646
75647 2006-09-08  Jim Meyering  <jim@meyering.net>
75648
75649         Don't make generated files read-only.  That would bother too many
75650         people.  However, do retain the ability to work when targets are
75651         read-only: remove the destination and temporary files before writing
75652         them (when generated via sed or echo), or by using the -f option for
75653         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75654         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75655         * modules/byteswap, modules/configmake, modules/fcntl:
75656         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75657         * modules/localcharset, modules/netinet_in, modules/poll:
75658         * modules/stdbool, modules/stdint, modules/sys_select:
75659         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75660
75661 2006-09-08  Jim Meyering  <jim@meyering.net>
75662
75663         Avoid new build failure on FreeBSD 6.0.
75664         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75665         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75666         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75667
75668 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75669
75670         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75671
75672 2006-09-07  Jim Meyering  <jim@meyering.net>
75673
75674         Fix global typo in last change: use chmod u-w, not chmod u-x.
75675         Spotted by Paul Eggert and Bruce Korb.
75676         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75677         * modules/byteswap, modules/configmake, modules/fcntl:
75678         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75679         * modules/localcharset, modules/netinet_in, modules/poll:
75680         * modules/stdbool, modules/stdint, modules/sys_select:
75681         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75682
75683 2006-09-06  Jim Meyering  <jim@meyering.net>
75684
75685         Make generated files be read-only.
75686         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75687         Ensure that each generated file is now read-only.
75688         * modules/argz: Likewise.
75689         * modules/arpa_inet: Likewise.
75690         * modules/byteswap: Likewise.
75691         * modules/configmake: Likewise.
75692         * modules/fcntl: Likewise.
75693         * modules/fnmatch: Likewise.
75694         * modules/getopt: Likewise.
75695         * modules/glob: Likewise.
75696         * modules/inttypes: Likewise.
75697         * modules/netinet_in: Likewise.
75698         * modules/poll: Likewise.
75699         * modules/stdbool: Likewise.
75700         * modules/stdint: Likewise.
75701         * modules/sys_select: Likewise.
75702         * modules/sys_socket: Likewise.
75703         * modules/sys_stat: Likewise.
75704         * modules/sysexits: Likewise.
75705         * modules/localcharset: Same as above, but continue using temporary
75706         file named "t-$@" (why different?) rather than the "$@-t" used
75707         everywhere else.
75708
75709         * modules/sysexits (Makefile.am): Replace literal occurrences
75710         of "sysexit.h" more readable, and more consistent, "$@".
75711
75712 2006-09-06  Bruno Haible  <bruno@clisp.org>
75713
75714         * modules/striconv: New file.
75715         * modules/xstriconv: New file.
75716         * MODULES.html.sh (Internationalization functions): Add striconv,
75717         xstriconv.
75718
75719 2006-09-06  Bruno Haible  <bruno@clisp.org>
75720
75721         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75722         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75723         not using libtool correctly.
75724
75725 2006-09-06  Bruno Haible  <bruno@clisp.org>
75726
75727         * lib/striconv.h: New file.
75728         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75729         iconvstring.c.
75730         * lib/xstriconv.h: New file.
75731         * lib/xstriconv.c: New file.
75732
75733 2006-09-06  Bruno Haible  <bruno@clisp.org>
75734
75735         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75736         lib_..._LDFLAGS.
75737
75738 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75739
75740         * lib/argz_.h: Sync from Libtool.
75741
75742         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75743                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75744
75745         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75746
75747 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75748
75749         * modules/trim: New file.
75750
75751 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75752
75753         * lib/trim.h: New file.
75754         * lib/trim.c: New file.
75755
75756 2006-09-05  Bruno Haible  <bruno@clisp.org>
75757
75758         * MODULES.html.sh (String handling): Add trim.
75759
75760 2006-09-04  Karl Berry  <karl@gnu.org>
75761
75762         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75763         until next release.
75764
75765 2006-09-03  Bruno Haible  <bruno@clisp.org>
75766
75767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75768         correctly.
75769
75770 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75771
75772         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75773         not gl_GETLOADAVG.  Omit unneeded semicolons.
75774         Problems reported by Ralf Wildenhues in
75775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75776         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75777         at the end, which is the usual gnulib style.
75778
75779         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75780         of doing all the work ourselves.
75781         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75782         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75783
75784 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75785
75786         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75787         Problem reported by Ralf Wildenhues in
75788         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75789
75790         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75791         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75792
75793 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75796         yesterday's patch by changing test -n to test -z.
75797
75798 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75799
75800         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75801         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75802         the former is now obsolescent.
75803
75804         * modules/chdir-long (Depends-on): Add fcntl.
75805
75806 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75809         obsolescent, and programs should use gnulib instead.
75810         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75811         but with prefixes changed.
75812
75813 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75816         or stdbool.h, because they might not exist while configuring.
75817
75818         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
75819         Don't include unistd.h or limits.h; not needed, since chdir-long.h
75820         does that for us.
75821         (O_DIRECTORY): Remove.
75822
75823 2006-08-31  Eric Blake  <ebb9@byu.net>
75824
75825         * gnulib-tool: Don't let emacs change spaces to TAB.
75826
75827 2006-08-31  Bruno Haible  <bruno@clisp.org>
75828
75829         * gnulib-tool: When calling func_import more than once, do it in a
75830         subshell.
75831         Reported by Eric Blake <ebb9@byu.net>.
75832
75833 2006-08-31  Bruno Haible  <bruno@clisp.org>
75834
75835         * gnulib-tool (nl): Remove variable.
75836         (sed_transform_lib_file): Use more robust test for config-h module.
75837         (func_import): Fix typo in 2006-08-25 patch.
75838
75839 2006-08-31  Bruno Haible  <bruno@clisp.org>
75840
75841         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
75842         specified, augment Makefile.am variables instead of assigning them.
75843
75844 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         Work around a bug in both the Linux and SunOS 64-bit kernels:
75847         nanosleep mishandles sleeps for longer than 2**31 seconds.
75848         Problem reported by Frank v Waveren in
75849         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
75851         Check for nanosleep bug.
75852         (LIB_NANOSLEEP): Append clock_gettime library if needed.
75853
75854 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         Work around a bug in both the Linux and SunOS 64-bit kernels:
75857         nanosleep mishandles sleeps for longer than 2**31 seconds.
75858         Problem reported by Frank v Waveren in
75859         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
75860         * lib/nanosleep.c (BILLION): New constant.
75861         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
75862         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
75863         implementation.
75864
75865 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75866
75867         * modules/nanosleep (Depends-on): Add gettime.
75868
75869 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
75870         and Simon Josefsson  <jas@extundo.com>
75871         and Oskar Liljeblad  <oskar@osk.mine.nu>
75872
75873         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
75874         * gnulib-tool (func_import): New license type 'unmodifiable license
75875         text'.
75876         * modules/fdl: Use it.  Longer description.
75877         * module/gpl, module/lgpl: New files.
75878
75879 2006-08-30  Jim Meyering  <jim@meyering.net>
75880
75881         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
75882         shadowing the parameter.
75883
75884 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75885
75886         Sync from Libtool:
75887
75888         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75889
75890         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
75891         sharing with gnulib.  Report by Eric Blake.
75892
75893 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75894
75895         * modules/isapipe: New file.
75896         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
75897
75898 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         * modules/configmake (Makefile.am): Add a comment, and omit
75901         the CONFIGMAKE_ prefix from generated macro names.  Suggested
75902         by Bruno Haible.
75903
75904 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75905
75906         * m4/isapipe.m4: New file.
75907
75908 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
75909
75910         * lib/isapipe.c, lib/isapipe.h: New files.
75911
75912 2006-08-29  Jim Meyering  <jim@meyering.net>
75913
75914         * modules/configmake (Makefile.am): Make configmake.h depend on
75915         Makefile.  Otherwise, a stale configmake.h could hang around.
75916
75917 2006-08-29  Eric Blake  <ebb9@byu.net>
75918
75919         * lib/error.c (error_at_line, print_errno_message): Match libc, after
75920         resolution of upstream bug 3044.
75921
75922 2006-08-29  Bruno Haible  <bruno@clisp.org>
75923
75924         * modules/localcharset (Depends-on): Add configmake.
75925         (Makefile.am): Remove setting of LIBDIR through DEFS.
75926
75927 2006-08-29  Bruno Haible  <bruno@clisp.org>
75928
75929         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
75930         defined.
75931
75932 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75933
75934         * modules/fcntl: New file.
75935         * modules/chdir-safer (Depends-on): Add fcntl.
75936         * modules/fts: Likewise.
75937         * modules/mkdir-p: Likewise.
75938
75939         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
75940         This undoes the most recent change, since we're now addressing the
75941         problem in a different way.
75942
75943         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
75944         into output, since the output might be called Makefile.am even
75945         if $makefile_name is something different.
75946         (func_import): Use $makefile_am rather than
75947         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
75948         empty.
75949
75950         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75951
75952 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75955         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75956         recent change to stdint.m4, since we're now addressing the problem in a
75957         different way.
75958
75959 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75960
75961         * m4/fcntl_h.m4: New file.
75962
75963 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * lib/fcntl_.h: New file.
75966         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75967         the fcntl module.
75968         * lib/dirchownmod.c: Likewise.
75969         * lib/fts.c: Likewise.
75970
75971         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75972         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75973         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75974         just before including <inttypes.h>, to avoid circular inclusion.
75975
75976 2006-08-28  Jim Meyering  <jim@meyering.net>
75977
75978         * doc/visibility.texi: Actually read and correct the grammar of the
75979         sentence affected by yesterday's change.
75980
75981 2006-08-28  Eric Blake  <ebb9@byu.net>
75982
75983         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75984         needs wrapper.
75985
75986 2006-08-28  Eric Blake  <ebb9@byu.net>
75987
75988         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75989
75990 2006-08-28  Eric Blake  <ebb9@byu.net>
75991
75992         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75993
75994 2006-08-28  Bruno Haible  <bruno@clisp.org>
75995
75996         * modules/c-strstr: New file, from GNU gettext.
75997         * MODULES.html.sh (String handling): Add c-strstr.
75998
75999 2006-08-28  Bruno Haible  <bruno@clisp.org>
76000
76001         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76002         macros.
76003         Reported by Eric Blake.
76004
76005 2006-08-28  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76008         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76009         * lib/vasprintf.c: Include errno.h, limits.h.
76010         (EOVERFLOW): New fallback definition.
76011         (vasprintf): Test here whether the string length is > INT_MAX.
76012         * lib/vsnprintf.c: Include errno.h, limits.h.
76013         (EOVERFLOW): New fallback definition.
76014         (vsnprintf): Fix bug when generated string was too long for the buffer.
76015         Test here whether the string length is > INT_MAX.
76016
76017 2006-08-28  Bruno Haible  <bruno@clisp.org>
76018
76019         * lib/inttypes_.h (SCNX*): Remove definitions.
76020         Reported by Eric Blake.
76021
76022 2006-08-28  Bruno Haible  <bruno@clisp.org>
76023
76024         * lib/c-strstr.h: New file, from GNU gettext.
76025         * lib/c-strstr.c: New file, from GNU gettext.
76026
76027 2006-08-28  Bruno Haible  <bruno@clisp.org>
76028
76029         * gnulib-tool: Reorder some statements.
76030
76031 2006-08-28  Bruno Haible  <bruno@clisp.org>
76032
76033         * gnulib-tool: New option --makefile-name.
76034         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76035         $makefile_name.
76036         (func_import): Write $makefile_name to the cache file, and read it from
76037         there unless explicitly specified. Use $makefile_name as file name
76038         instead of Makefile.am. Adjust the recommendations accordingly.
76039
76040 2006-08-28  Bruno Haible  <bruno@clisp.org>
76041
76042         * gnulib-tool (func_verify_module): Check against misapplying patch.
76043
76044 2006-08-28  Bruno Haible  <bruno@clisp.org>
76045
76046         * gnulib-tool (func_relativize, func_relconcat): New functions.
76047         Give an error if --local-dir is given with --update.
76048         Remove trailing slashes from $local_gnulib_dir.
76049         (func_import): Store the relativized $local_gnulib_dir in
76050         gnulib-cache.m4, and read it from there if not specified explicitly.
76051
76052 2006-08-28  Bruno Haible  <bruno@clisp.org>
76053
76054         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76055         is the current directory. Respect also $local_gnulib_dir.
76056
76057 2006-08-28  Bruno Haible  <bruno@clisp.org>
76058             Simon Josefsson  <jas@extundo.com>
76059
76060         BeOS portability.
76061         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76062
76063 2006-08-27  Jim Meyering  <jim@meyering.net>
76064
76065         * doc/visibility.texi: Remove duplicate word: "pointer".
76066
76067 2006-08-26  Bruno Haible  <bruno@clisp.org>
76068
76069         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76070         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76071         (Makefile.am): Create inttypes.h from inttypes_.h.
76072         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76073
76074         * modules/imaxabs: New file.
76075
76076         * modules/imaxdiv: New file.
76077
76078 2006-08-26  Bruno Haible  <bruno@clisp.org>
76079
76080         * m4/inttypes.m4: New file.
76081         * m4/_inttypes_h.m4: Remove file.
76082         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76083         PRI_MACROS_BROKEN.
76084         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76085
76086         * m4/imaxabs.m4: New file.
76087
76088         * m4/imaxdiv.m4: New file.
76089
76090 2006-08-26  Bruno Haible  <bruno@clisp.org>
76091
76092         * lib/inttypes_.h: New file.
76093         * lib/inttypes.h: Remove file.
76094         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76095
76096         * lib/imaxabs.c: New file.
76097
76098         * lib/imaxdiv.c: New file.
76099
76100 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76101
76102         New config-h module, so that "make" output needn't be cluttered
76103         by -DHAVE_CONFIG_H.
76104         * MODULES.html.sh (Support for building libraries and executables):
76105         Add config-h.
76106         * modules/config-h: New file.
76107         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76108         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76109         the config-h module is used.
76110
76111         New configmake module, so that "make" output needn't be cluttered
76112         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76113         * MODULES.html.sh (Support for building libraries and executables):
76114         Add configmake.
76115         * modules/configmake: New file.
76116
76117 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         * m4/config-h.m4: New file.
76120
76121 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76122
76123         * config/srclist.txt: Add elisp-comp.
76124
76125 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * MODULES.html.sh (Support for building libraries and executables):
76128         Add elisp-comp.
76129         * build-aux/elisp-comp: New file.
76130         * modules/elisp-comp: New file.
76131
76132 2006-08-24  Bruno Haible  <bruno@clisp.org>
76133
76134         * gnulib-tool (func_create_testdir): Use non-default values of
76135         sourcebase and m4base.
76136
76137 2006-08-24  Bruno Haible  <bruno@clisp.org>
76138
76139         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76140         HTML structure.
76141
76142 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76143
76144         * modules/openat (Depends-on): Add lchown.
76145
76146 2006-08-23  Bruno Haible  <bruno@clisp.org>
76147
76148         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76149         of gl_LOCK_EARLY instead of gl_LOCK.
76150
76151 2006-08-23  Bruno Haible  <bruno@clisp.org>
76152
76153         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76154         on OSF/1 to no.
76155         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76156
76157 2006-08-23  Bruno Haible  <bruno@clisp.org>
76158
76159         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76160         as unusable.
76161
76162         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76163         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76164         (gl_LOCK): New macro.
76165
76166 2006-08-22  Simon Josefsson  <jas@extundo.com>
76167
76168         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76169         to md5 module.
76170
76171 2006-08-22  Simon Josefsson  <jas@extundo.com>
76172
76173         * MODULES.html.sh: Add "Support for maintaining and release
76174         projects".
76175
76176         * build-aux/gnupload: New file, from coreutils.
76177
76178 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76179
76180         Avoid the need for AC_LIBSOURCES in m4 macros.
76181         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76182         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76183         * modules/check-version (EXTRA_DIST): Add check-version.h.
76184         * modules/crc (EXTRA_DIST): Add crc.h.
76185         * modules/des (EXTRA_DIST): Add des.h.
76186         * modules/gc (EXTRA_DIST): Add gc.h.
76187         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76188         * modules/getline (EXTRA_DIST): Add getline.h.
76189         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76190         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76191         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76192         * modules/md2 (EXTRA_DIST): Add md2.h.
76193         * modules/md4 (EXTRA_DIST): Add md4.h.
76194         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76195         * modules/read-file (EXTRA_DIST): Add read-file.h.
76196         * modules/readline (EXTRA_DIST): Add readline.h.
76197         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76198         rijndael-api-fst.h.
76199
76200 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * m4/rijndael.m4 (gl_ARCFOUR):
76203         * m4/arctwo.m4 (gl_ARCTWO):
76204         * m4/check-version.m4 (gl_CHECK_VERSION):
76205         * m4/crc.m4 (gl_CRC):
76206         * m4/des.m4 (gl_DES):
76207         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76208         * m4/gc.m4 (gl_GC):
76209         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76210         * m4/getline.m4 (gl_FUNC_GETLINE):
76211         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76212         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76213         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76214         * m4/md2.m4 (gl_MD2):
76215         * m4/md4.m4 (gl_MD4):
76216         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76217         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76218         * m4/readline.m4 (gl_FUNC_READLINE):
76219         * m4/rijndael.m4 (gl_RIJNDAEL):
76220         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76221         to get the necessary .h files and whatnot.
76222
76223 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76226         gnulib rather than the other way around.
76227         * config/srclistvars.sh (COREUTILS): Remove.
76228
76229 2006-08-22  Jim Meyering  <jim@meyering.net>
76230
76231         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76232
76233         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76234
76235 2006-08-22  Eric Blake  <ebb9@byu.net>
76236
76237         * modules/regexprops-generic: New file.
76238         * MODULES.html.sh (Support for building documentation): List it.
76239
76240 2006-08-22  Eric Blake  <ebb9@byu.net>
76241
76242         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76243         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76244         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76245         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76246
76247 2006-08-22  Bruno Haible  <bruno@clisp.org>
76248
76249         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76250         and lib_LTLIBRARIES like the other lib_* variables.
76251
76252 2006-08-22  Bruno Haible  <bruno@clisp.org>
76253
76254         * build-aux/x-to-1.in: New file, from GNU gettext.
76255
76256 2006-08-22  Bruno Haible  <bruno@clisp.org>
76257
76258         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76259         <utmpx.h> exists.
76260
76261 2006-08-22  Bruno Haible  <bruno@clisp.org>
76262
76263         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76264         <utmpx.h> exists.
76265
76266 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         BeOS portability.
76269         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76270         exist.
76271         Problem reported by Bruno Haible.
76272
76273 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76274
76275         Avoid the need for AC_LIBSOURCES in m4 macros.
76276         * modules/acl (EXTRA_DIST): Add acl.h.
76277         * modules/argmatch (Files): Add m4/argmatch.m4.
76278         (configure.ac): Add gl_ARGMATCH.
76279         (EXTRA_DIST): Renamed from lib_SOURCES, for
76280         consistency with the other modules.  Remove argmatch.c.
76281         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76282         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76283         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76284         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76285         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76286         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76287         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76288         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76289         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76290         * modules/closeout (EXTRA_DIST): Add closeout.h.
76291         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76292         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76293         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76294         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76295         dirname.h; remove basename.c and stripslash.c.
76296         * modules/exclude (EXTRA_DIST): Add exclude.h.
76297         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76298         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76299         * modules/file-type (EXTRA_DIST): Add file-type.h.
76300         * modules/filemode (EXTRA_DIST): Add filemode.h.
76301         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76302         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76303         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76304         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76305         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76306         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76307         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76308         * modules/getdate (EXTRA_DIST): Add getdate.c.
76309         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76310         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76311         * modules/getpass (EXTRA_DIST): Add getpass.h.
76312         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76313         * modules/group-member (EXTRA_DIST): Add group-member.h.
76314         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76315         * modules/hash (EXTRA_DIST): Add hash.h.
76316         * modules/human (EXTRA_DIST): Add human.h.
76317         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76318         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76319         * modules/lchown (EXTRA_DIST): Add lchown.h.
76320         * modules/long-options (EXTRA_DIST): Add long-options.h.
76321         * modules/lstat (EXTRA_DIST): Add lstat.h.
76322         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76323         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76324         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76325         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76326         * modules/memxor (EXTRA_DIST): Add memxor.h.
76327         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76328         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76329         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76330         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76331         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76332         * modules/physmem (EXTRA_DIST): Add physmem.h.
76333         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76334         * modules/posixver (EXTRA_DIST): Add posixver.h.
76335         * modules/quote (EXTRA_DIST): Add quote.h.
76336         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76337         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76338         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76339         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76340         regex_internal.h regexec.c.
76341         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76342         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76343         * modules/same (EXTRA_DIST): Add same.h.
76344         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76345         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76346         * modules/savedir (EXTRA_DIST): Add savedir.h.
76347         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76348         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76349         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76350         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76351         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76352         * modules/strdup (EXTRA_DIST): Add strdup.h.
76353         * modules/strftime (EXTRA_DIST): Add strftime.h.
76354         * modules/strndup (EXTRA_DIST): Add strndup.h.
76355         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76356         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76357         * modules/time_r (EXTRA_DIST): Add time_r.h.
76358         * modules/timespec (EXTRA_DIST): Add timespec.h.
76359         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76360         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76361         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76362         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76363         * modules/userspec (EXTRA_DIST): Add userspec.h.
76364         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76365         * modules/utimens (EXTRA_DIST): Add utimens.h.
76366         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76367         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76368         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76369         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76370         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76371         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76372         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76373         * modules/yesno (EXTRA_DIST): Add yesno.h.
76374
76375 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76378
76379         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76380         * m4/dev-ino.m4, same-inode.m4: Remove.
76381
76382         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76383         * m4/acl.m4 (AC_FUNC_ACL):
76384         * m4/backupfile.m4 (gl_BACKUPFILE):
76385         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76386         * m4/canon-host.m4 (gl_CANON_HOST):
76387         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76388         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76389         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76390         * m4/cloexec.m4 (gl_CLOEXEC):
76391         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76392         * m4/closeout.m4 (gl_CLOSEOUT):
76393         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76394         * m4/dirname.m4 (gl_DIRNAME):
76395         * m4/exclude.m4 (gl_EXCLUDE):
76396         * m4/exitfail.m4 (gl_EXITFAIL):
76397         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76398         * m4/file-type.m4 (gl_FILE_TYPE):
76399         * m4/filemode.m4 (gl_FILEMODE):
76400         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76401         * m4/fpending.m4 (gl_FUNC_FPENDING):
76402         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76403         * m4/fts.m4 (gl_FUNC_FTS):
76404         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76405         * m4/getdate.m4 (gl_GETDATE):
76406         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76407         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76408         * m4/getpass.m4 (gl_FUNC_GETPASS):
76409         * m4/gettime.m4 (gl_GETTIME):
76410         * m4/getugroups.m4 (gl_GETUGROUPS):
76411         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76412         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76413         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76414         * m4/hash.m4 (gl_HASH):
76415         * m4/idcache.m4 (gl_IDCACHE):
76416         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76417         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76418         * m4/long-options.m4 (gl_LONG_OPTIONS):
76419         * m4/lstat.m4 (gl_FUNC_LSTAT):
76420         * m4/md5.m4 (gl_MD5):
76421         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76422         * m4/memcoll.m4 (gl_MEMCOLL):
76423         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76425         * m4/memxor.m4 (gl_MEMXOR):
76426         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76428         * m4/modechange.m4 (gl_MODECHANGE):
76429         * m4/mountlist.m4 (gl_MOUNTLIST):
76430         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76431         * m4/openat.m4 (gl_FUNC_OPENAT):
76432         * m4/pathmax.m4 (gl_PATHMAX):
76433         * m4/physmem.m4 (gl_PHYSMEM):
76434         * m4/posixtm.m4 (gl_POSIXTM):
76435         * m4/posixver.m4 (gl_POSIXVER):
76436         * m4/quote.m4 (gl_QUOTE):
76437         * m4/quotearg.m4 (gl_QUOTEARG):
76438         * m4/readtokens.m4 (gl_READTOKENS):
76439         * m4/readutmp.m4 (gl_READUTMP):
76440         * m4/regex.m4 (gl_REGEX):
76441         * m4/safe-read.m4 (gl_SAFE_READ):
76442         * m4/safe-write.m4 (gl_SAFE_WRITE):
76443         * m4/same.m4 (gl_SAME):
76444         * m4/save-cwd.m4 (gl_SAVE_CWD):
76445         * m4/savedir.m4 (gl_SAVEDIR):
76446         * m4/settime.m4 (gl_SETTIME):
76447         * m4/sha1.m4 (gl_SHA1):
76448         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76449         * m4/stat-macros.m4 (gl_STAT_MACROS):
76450         * m4/stat-time.m4 (gl_STAT_TIME):
76451         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76452         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76453         * m4/strdup.m4 (gl_FUNC_STRDUP):
76454         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76455         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76456         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76457         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76458         * m4/time_r.m4 (gl_TIME_R):
76459         * m4/timespec.m4 (gl_TIMESPEC):
76460         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76461         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76462         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76463         * m4/userspec.m4 (gl_USERSPEC):
76464         * m4/utimecmp.m4 (gl_UTIMECMP):
76465         * m4/utimens.m4 (gl_UTIMENS):
76466         * m4/xalloc.m4 (gl_XALLOC):
76467         * m4/xgetcwd.m4 (gl_XGETCWD):
76468         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76469         * m4/xreadlink.m4 (gl_XREADLINK):
76470         * m4/xstrtod.m4 (gl_XSTRTOD):
76471         * m4/yesno.m4 (gl_YESNO):
76472         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76473         to get the necessary .h files and whatnot.
76474
76475 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76476             Bruno Haible  <bruno@clisp.org>
76477
76478         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76479         /bin/sh understanding of '!' conditional negation.
76480
76481 2006-08-21  Jim Meyering  <jim@meyering.net>
76482
76483         * modules/openat (Depends-on): Really alphabetize.
76484
76485         * modules/acl (Depends-on): Add error and quote.
76486
76487         * check-module (find_included_lib_files): Add at-func.c to the
76488         ok-to-include-more-than-once white list.
76489
76490         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76491
76492 2006-08-21  Bruno Haible  <bruno@clisp.org>
76493
76494         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76495         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76496         Reported by Martin Lambers <marlam@marlam.de>.
76497
76498 2006-08-21  Bruno Haible  <bruno@clisp.org>
76499
76500         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76501         specify an installation location, don't emit a noinst_LIBRARIES or
76502         noinst_LTLIBRARIES assignment.
76503
76504 2006-08-21  Bruno Haible  <bruno@clisp.org>
76505
76506         BeOS portability.
76507         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76508         BeOS has mbrtowc() but no <wctype.h>.
76509
76510 2006-08-21  Bruno Haible  <bruno@clisp.org>
76511
76512         BeOS portability.
76513         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76514         exist.
76515
76516 2006-08-21  Bruno Haible  <bruno@clisp.org>
76517
76518         BeOS portability.
76519         * lib/mbchar.h: Include <wctype.h> only if it exists.
76520
76521 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         Remove files that are no longer needed by their respective modules.
76524         * m4/obstack.m4: Remove.
76525         * m4/strerror_r.m4: Remove.
76526         * m4/uint32_t.m4: Remove.
76527         * m4/uintptr_t.m4: Remove.
76528         * m4/ullong_max.m4: Remove.
76529         * m4/xstrtoimax.m4: Remove.
76530         * m4/xstrtoumax.m4: Remove.
76531
76532         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76533         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76534         dependencies now capture this.
76535
76536         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76537         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76538         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76539         * m4/human.m4 (gl_HUMAN): Likewise.
76540         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76541         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76542
76543         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76544
76545         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76546         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76547         stdint.
76548         * m4/human.m4 (gl_HUMAN): Likewise.
76549         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76550         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76551         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76552         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76553         * m4/xstrtol (gl_XSTRTOL): Likewise.
76554
76555         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76556         AC_TYPE_LONG_LONG_INT.
76557         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76558         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76559         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76560         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76561
76562         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76563         on stdbool.
76564
76565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76566         (gl_PREREQ_XSTRTOUL): Remove.
76567
76568         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76569
76570         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76571         mode.
76572
76573 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76574
76575         Add and change modules to make it easier for coreutils to use
76576         gnulib-tool.
76577         * modules/backupfile (Files): Remove m4/d-ino.m4.
76578         (Depends-on): Add d-ino.
76579         * modules/cycle-check (Depends-on): Add stdint.
76580         (lib_SOURCES): Add cycle-check.h.
76581         * modules/d-ino: New module.
76582         * modules/d-type: New module.
76583         * modules/error (Files): Remove m4/strerror_r.m4.
76584         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76585         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76586         m4/inttypes_h.m4, m4/uintmax_t.m4.
76587         (Depends-on): Add stdint.
76588         (lib_SOURCES): Add fsusage.h.
76589         * modules/getcwd (Files): Remove d-ino.m4.
76590         (Depends-on): Add d-ino.
76591         * modules/getndelim2 (Depends-on): Add stdint.
76592         * modules/glob (Files): Remove m4/d-type.m4.
76593         (Depends-on): Add d-type.
76594         * modules/host-os: New module.
76595         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76596         m4/inttypes_h.m4, m4/uintmax_t.m4.
76597         * Depends-on: Add stdint.
76598         (lib_SOURCES): Add human.h.
76599         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76600         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76601         m4/uintmax_t.m4, m4/ulonglong.m4.
76602         (Depends-on): Add stdint.
76603         (EXTRA_DIST): Add inttostr.h.
76604         * modules/lchmod: New module.
76605         * modules/link-follow: New module.
76606         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76607         (Depends-on): Add lchmod.
76608         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76609         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76610         (Depends-on): Add stdint.
76611         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76612         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76613         (Depends-on): Add stdint.
76614         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76615         * modules/perl: New module.
76616         * modules/regex (Depends-on): Add stdint.
76617         * modules/rmdir-errno: New module.
76618         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76619         m4/intmax_t.m4.
76620         (Depends-on): Add stdint.
76621         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76622         m4/uintmax_t.m4.
76623         (Depends-on): Add stdint.
76624         * modules/unlink-busy: New module.
76625         * modules/utimecmp (Depends-on): Add stdint.
76626         * modules/uptime: New module.
76627         * modules/winsz-ioctl: New module.
76628         * modules/winsz-termios: New module.
76629         * modules/xnanosleep (Depends-on): Add nanosleep.
76630         * modules/ullong_max: Remove.
76631         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76632         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76633         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76634         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76635         (Depends-on): Add inttypes.
76636         (lib_SOURCES): Add xstrtol.h.
76637         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76638         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76639         * MODULES.html.sh: Move 'assert' into the assert section.
76640         Move 'dummy' into the linking section.
76641         Remove ullong_max.
76642         Add section for compatibility checks for POSIX:2001 functions,
76643         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76644         winsz-ioctl, and winsz-termios into it.
76645         Add lchmod.
76646         Add top-level Misc section and put host-os, perl, and uptime
76647         into it.
76648
76649 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76650
76651         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76652         now assume the stdint module.  Do not include inttypes.h.
76653         * lib/fsusage.h: Likewise.
76654         * lib/getndelim2.c: Likewise.
76655         * lib/human.h: Likewise.
76656         * lib/inttostr.h: Likewise.
76657         * lib/obstack.c: Likewise.
76658         * lib/regex_internal.h: Likewise.
76659         * lib/tempname.c: Likewise.
76660         * lib/utimecmp.c: Likewise.
76661         * lib/xstrtol.h: Likewise.
76662
76663         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76664
76665         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76666         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76667         * lib/xtime.h: Likewise.
76668
76669 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * modules/openat (Files): Add lib/fchmodat.c.
76672         Fixes problem reported by Jay Youngman.
76673
76674 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76677         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76678
76679 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76680             Bruno Haible  <bruno@clisp.org>
76681
76682         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76683         and is a script that invokes bison. Tighten the code. Add comments.
76684
76685 2006-08-18  Jim Meyering  <jim@meyering.net>
76686
76687         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76688         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76689         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76690         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76691
76692 2006-08-18  Bruno Haible  <bruno@clisp.org>
76693
76694         * modules/bison-i18n: New file.
76695         * MODULES.html.sh (Internationalization functions): Add it.
76696
76697 2006-08-18  Bruno Haible  <bruno@clisp.org>
76698
76699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76700         sys/statvfs.h. When getmntinfo was found, check its declaration and
76701         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76702
76703 2006-08-18  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/bison-i18n.m4: New file, from bison.
76706
76707 2006-08-18  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76710         (ME_DUMMY): Treat "kernfs" as a dummy.
76711         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76712
76713 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76714
76715         Update from coreutils.
76716
76717         2006-08-15  Jim Meyering  <jim@meyering.net>
76718
76719         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76720
76721         2006-01-17  Jim Meyering  <jim@meyering.net>
76722
76723         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76724
76725         2006-01-11  Jim Meyering  <jim@meyering.net>
76726
76727         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76728         Check for the lchmod function.
76729
76730 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         Update from coreutils.
76733
76734         * lib/__fpending.h: Add copyright notice.
76735         * lib/fprintftime.h: Likewise.
76736         * lib/savedir.c: Use (C) in copyright notice.
76737         * lib/savedir.h: Likewise.
76738
76739         2006-08-15  Jim Meyering  <jim@meyering.net>
76740
76741         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76742         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76743         in support of the EXPECTED_ERRNO macro.
76744         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76745         definitions.  Instead, define the appropriate symbols and include
76746         "at-func.c".
76747         * lib/mkdirat.c (mkdirat): Likewise.
76748         * lib/fchmodat.c (fchmodat): Likewise.
76749         (ENOSYS): Remove definition.
76750         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76751         it.  Don't include "unistd--.h" -- it wasn't ever used.
76752
76753         2006-01-17  Jim Meyering  <jim@meyering.net>
76754
76755         Rewrite fts.c not to change the current working directory,
76756         by using openat, fstatat, fdopendir, etc..
76757
76758         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76759         (HAVE_OPENAT_SUPPORT): Define.
76760         [_LIBC] (fchdir): Don't undef or define; no longer used.
76761         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76762         Now, this `function' always succeeds, and consumes its file descriptor
76763         parameter -- so callers must not close such FDs.  Update callers.
76764         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76765         (diropen): Add parameter, SP.  Adjust all callers.
76766         Implement using diropen_fd, rather than open.
76767         (fts_open): Initialize new member, fts_cwd_fd.
76768         Remove fts_rft-setting code.
76769         (fts_close): Close fts_cwd_fd, if necessary.
76770         (__opendir2): Define in terms of opendir or opendirat,
76771         depending on whether the FST_NOCHDIR flag is set.
76772         (fts_build): Since fts_safe_changedir consumes its FD, and since
76773         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76774         and close the dup'd file descriptor upon failure.
76775         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76776         (fts_safe_changedir): Tweak semantics to reflect that this function
76777         now calls cwd_advance_fd and hence consumes its FD argument.
76778         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76779         [struct FTS] (fts_rft): Remove now-unused member.
76780         [struct FTS] (fts_cycle.state): Improve comment.
76781
76782         * lib/openat.c (openat_needs_fchdir): New function.
76783         * lib/openat.h (openat_needs_fchdir): Declare it.
76784
76785 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76786
76787         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76788         Problem and fix reported by Pádraig Brady in
76789         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76790
76791 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76792
76793         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76794
76795 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * lib/memcoll.c (memcoll): Optimize for the common case where the
76798         arguments are bytewise equal.
76799
76800 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76801
76802         * doc/regexprops-generic.texi: Add a copyright notice.
76803
76804 2006-08-15  Bruno Haible  <bruno@clisp.org>
76805
76806         * modules/tmpdir (License): Change to LGPL.
76807
76808 2006-08-15  Bruno Haible  <bruno@clisp.org>
76809
76810         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76811         module.
76812
76813 2006-08-14  Simon Josefsson  <jas@extundo.com>
76814
76815         * config/srclist.txt: Add gnupload.
76816
76817 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         Change copyright notice from LGPL 2 to GPL 2, since that's the
76820         standard form used in the gnulib repository.
76821         * tests/test-lock.c: Likewise.
76822         * tests/test-stdint.c: Likewise.
76823         * tests/test-tls.c: Likewise.
76824
76825         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
76826         prelude-manager.  User shorter URLs for GNU projects, without '?'.
76827         Add copyright notice.
76828
76829         * check-module: Add copyright notice.  Output a copyright
76830         notice if "--version" is specified.
76831         * modules/COPYING: New file.
76832         * tests/test-getaddrinfo.c: Add copyright notice.
76833         * tests/test-verify.c: Likewise.
76834
76835 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         Change copyright notice from LGPL 2 to GPL 2, since that's the
76838         standard form used in the gnulib repository.
76839         * lib/lock.c: LGPL -> GPL.
76840         * lib/lock.h: Likewise.
76841         * lib/strnlen1.c: Likewise.
76842         * lib/strnlen1.h: Likewise.
76843         * lib/tls.c: Likewise.
76844         * lib/tls.h: Likewise.
76845         * lib/tmpdir.c: Likewise.
76846
76847         * lib/TODO: Remove; this belongs only in coreutils.
76848
76849 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76850
76851         Add copyright notices to long-enough files that lack them, since
76852         otherwise the files aren't clearly free.  Use the same notice that
76853         getdate.texi already uses.
76854         * doc/alloca-opt.texi: Add copyright notice.
76855         * doc/alloca.texi: Likewise.
76856         * doc/ctime.texi: Likewise.
76857         * doc/functions.texi: Likewise.
76858         * doc/gcd.texi: Likewise.
76859         * doc/gnulib-tool.texi: Likewise.
76860         * doc/inet_ntoa.texi: Likewise.
76861         * doc/visibility.texi: Likewise.
76862
76863         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
76864         * doc/quote.texi: Add copyright notice.
76865
76866         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
76867         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
76868         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
76869         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
76870         is now obsolete, and give a pointer to the Sun list.
76871         Add copyright notice.
76872
76873 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * config/srclistvars.sh: Add copyright notice.
76876
76877 2006-08-14  Eric Blake  <ebb9@byu.net>
76878
76879         Import the following change from libc:
76880
76881         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
76882
76883         Upstream bug 2997.
76884         * lib/misc/error.c: Add space between program name and message if file
76885         name is missing.
76886
76887 2006-08-12  Karl Berry  <karl@gnu.org>
76888
76889         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
76890         remove, these originate in gnulib now.
76891
76892 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76893
76894         * doc/Makefile (standards.info standards.html standards.dvi):
76895         Also depend on make-stds.texi.
76896
76897 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
76900         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
76901
76902         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
76903         in wchar_t.  Problem reported by Eric Blake.
76904
76905         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
76906         LEN is smaller than SIZE.  Suggested by Bruno Haible.
76907         Also, help the compiler to keep LEN in a register.
76908
76909 2006-08-11  Eric Blake  <ebb9@byu.net>
76910
76911         * users.txt: Sort.  Add tar.
76912
76913 2006-08-11  Bruno Haible  <bruno@clisp.org>
76914
76915         * users.txt: New file.
76916
76917 2006-08-11  Bruno Haible  <bruno@clisp.org>
76918
76919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
76920         before <wchar.h>. Needed for OSF/1 and BSD/OS.
76921
76922 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * modules/snprintf (Depends-on): Remove minmax.
76925         (Maintainer): Add self and Bruno.
76926
76927 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * lib/.cppi-disable: Add snprintf.h, socket_.h.
76930         * lib/snprintf.c: Include <errno.h> and <limits.h>.
76931         (EOVERFLOW): Define if the system does not.
76932         Do not include "minmax.h"; it wasn't used.
76933         (snprintf): Don't assume size_t promotes to an unsigned type.
76934         Fix bug when generated string was too long for the buffer: the
76935         buffer's contents are supposed to be the initial prefix of the
76936         output.  Don't assume vasnprintf returns EOVERFLOW if the size
76937         exceeds INT_MAX; do the check ourselves.
76938
76939         Import the following changes from libc:
76940
76941         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
76942
76943         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
76944         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
76945         set wc to the byte which couldn't be converted.
76946         (re_string_reconstruct): Don't clear valid_raw_len before calling
76947         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
76948         tip_context using re_string_context_at.
76949
76950         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76951
76952         * lib/posix/regex.h: g++ still cannot handled [restrict].
76953
76954         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76955
76956         * lib/posix/regex.h: Remove special handling for VMS.
76957
76958 2006-08-10  Jim Meyering  <jim@meyering.net>
76959
76960         * modules/same-inode: New module.
76961         * modules/dev-ino: New module.
76962         * modules/cycle-check: Depend on these modules, rather than simply
76963         including their .h files.
76964         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76965         required via m4/cycle-check.m4.
76966         * modules/same: Depend on new same-inode module, rather than
76967         including same-inode.h.
76968         * modules/chdir-safer: New file.
76969
76970         * modules/chown (Depends-on): Add stat-macros.
76971
76972 2006-08-10  Jim Meyering  <jim@meyering.net>
76973
76974         * m4/cycle-check.m4: New file.
76975         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76976         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76977
76978 2006-08-10  Eric Blake  <ebb9@byu.net>
76979
76980         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76981         in from original proposal.
76982
76983 2006-08-10  Eric Blake  <ebb9@byu.net>
76984         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76985
76986         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76987         namespace.
76988
76989 2006-08-10  Bruno Haible  <bruno@clisp.org>
76990
76991         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76992         as well.
76993
76994 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         Sync from coreutils.
76997
76998         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76999
77000         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77001         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77002
77003 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * modules/restrict: Remove; no longer needed now that we assume
77006         Autoconf 2.59 or later.
77007         * MODULES.html.sh: Remove 'restrict'.
77008         * modules/argp (Depends-on): Remove 'restrict'.
77009         * modules/base64 (Depends-on): Likewise.
77010         * modules/gc (Depends-on): Likewise.
77011         * modules/getaddrinfo (Depends-on): Likewise.
77012         * modules/glob (Depends-on): Likewise.
77013         * modules/inet_ntop (Depends-on): Likewise.
77014         * modules/inet_pton (Depends-on): Likewise.
77015         * modules/memxor (Depends-on): Likewise.
77016         * modules/regex (Depends-on): Likewise.
77017         * modules/strtok_r (Depends-on): Likewise.
77018         * modules/time_r (Depends-on): Likewise.
77019
77020 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77021
77022         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77023         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77024         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77025         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77026         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77027         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77028         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77029         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77030
77031         Merge from coreutils.
77032         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77033         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77035         * m4/time_r.m4 (gl_TIME_R): Likewise.
77036
77037 2006-08-09  Karl Berry  <karl@gnu.org>
77038
77039         * config/srclist.txt: no more gettext-tools, per Bruno.
77040
77041 2006-08-08  Eric Blake  <ebb9@byu.net>
77042
77043         * modules/verror: New module.
77044         * MODULES.html.sh: Document it.
77045
77046 2006-08-08  Eric Blake  <ebb9@byu.net>
77047
77048         * lib/verror.h, lib/verror.c: New files.
77049
77050 2006-08-08  Eric Blake  <ebb9@byu.net>
77051
77052         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77053         verror_at_line output complies with GNU Coding Standards even when
77054         file is NULL.
77055
77056 2006-08-07  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77059         versions of AIX.
77060         Reported by Ralf Wildenhues.
77061
77062 2006-08-07  Bruno Haible  <bruno@clisp.org>
77063
77064         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77065         in an AC_DEFUN. Needed so that the autoconf snippets can use
77066         AC_REQUIRE.
77067
77068 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77069
77070         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77071         Initialize pkgdata_DATA.
77072         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77073         overriding it.
77074
77075 2006-08-06  Eric Blake  <ebb9@byu.net>
77076
77077         * lib/error.h: Fold in some upstream changes from glibc.
77078         * lib/error.c: Likewise.
77079
77080 2006-08-04  Bruno Haible  <bruno@clisp.org>
77081
77082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77083         Make the mostlyclean-local rule depend on mostlyclean-generic.
77084         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77085
77086 2006-07-31  Bruno Haible  <bruno@clisp.org>
77087
77088         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77089         <stdlib.h>, <string.h>.
77090
77091 2006-07-30  Bruno Haible  <bruno@clisp.org>
77092
77093         * modules/readlink (License): Change to LGPL.
77094
77095 2006-07-30  Bruno Haible  <bruno@clisp.org>
77096
77097         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77098         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77099         set PKGDATADIR to point to it.
77100
77101 2006-07-30  Bruno Haible  <bruno@clisp.org>
77102
77103         * modules/csharpexec (configure.ac): Comment out macro invocation.
77104         * modules/javaexec (configure.ac): Likewise.
77105         * modules/javacomp-script (configure.ac): Likewise.
77106
77107         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77108
77109 2006-07-30  Bruno Haible  <bruno@clisp.org>
77110
77111         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77112         linked-list.
77113
77114 2006-07-30  Bruno Haible  <bruno@clisp.org>
77115
77116         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77117
77118 2006-07-30  Bruno Haible  <bruno@clisp.org>
77119
77120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77121         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77122         get removed.
77123
77124 2006-07-29  Bruno Haible  <bruno@clisp.org>
77125
77126         Make it possible for gnulib-tool to work with locally modified or
77127         augmented gnulib repositories.
77128         * gnulib-tool (func_usage): Document --local-dir option.
77129         (local_gnulib_dir): New variable.
77130         Handle --local-dir option.
77131         (func_lookup_file): New function.
77132         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77133         (func_get_description, func_get_filelist, func_get_description,
77134         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77135         func_get_automake_snippet, func_get_include_directive,
77136         func_get_license, func_get_maintainer): Use func_lookup_file.
77137         (func_import, func_create_testdir): Use func_lookup_file.
77138
77139 2006-07-29  Bruno Haible  <bruno@clisp.org>
77140
77141         * modules/setenv (Depends-on): Add unistd.
77142
77143 2006-07-29  Bruno Haible  <bruno@clisp.org>
77144
77145         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77146
77147 2006-07-29  Bruno Haible  <bruno@clisp.org>
77148
77149         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77150
77151 2006-07-29  Bruno Haible  <bruno@clisp.org>
77152
77153         * gnulib-tool (import, update): If there is no Makefile.am, look at
77154         aclocal.m4, instead of bailing out.
77155
77156 2006-07-29  Bruno Haible  <bruno@clisp.org>
77157
77158         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77159         Categorize the options by when they are useful.
77160
77161 2006-07-29  Bruno Haible  <bruno@clisp.org>
77162
77163         * gnulib-tool (func_usage): Document option --no-libtool.
77164         Handle option --no-libtool.
77165         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77166         for changed semantics of $libtool variable.
77167         (func_import): Likewise. If libtool is not used, show this through
77168         an option --no-libtool.
77169         (func_create_testdir): Update.
77170
77171 2006-07-29  Bruno Haible  <bruno@clisp.org>
77172
77173         * gnulib-tool (func_import): Extend error message about missing
77174         --doc-base.
77175
77176 2006-07-29  Bruno Haible  <bruno@clisp.org>
77177
77178         * gnulib-tool (func_import): Don't create the $docbase directory if
77179         there is no file to store there.
77180
77181 2006-07-29  Bruno Haible  <bruno@clisp.org>
77182
77183         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77184         relevant, look for configure.ac there, not in the current directory.
77185         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77186
77187 2006-07-29  Bruno Haible  <bruno@clisp.org>
77188
77189         * gnulib-tool (SORT): New variable.
77190         (func_usage): Undocument --assume-autoconf option.
77191         Remove --assume-autoconf option handling.
77192         (autoconf_minversion): Determine from the contents of configure.ac.
77193         (func_import): Remove autoconf_minversion handling.
77194         Suggested by Eric Blake.
77195
77196 2006-07-29  Bruno Haible  <bruno@clisp.org>
77197
77198         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77199
77200 2006-07-29  Bruno Haible  <bruno@clisp.org>
77201
77202         * config/srclist.txt (*setenv.[ch]): Remove rules.
77203
77204 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77205
77206         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77207
77208 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77209
77210         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77211         arpa/inet.h.
77212
77213 2006-07-28  Simon Josefsson  <jas@extundo.com>
77214
77215         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77216         * modules/inet_pton (Depends-on): Likewise.
77217
77218 2006-07-28  Simon Josefsson  <jas@extundo.com>
77219
77220         * m4/netinet_in_h.m4: New file.
77221
77222 2006-07-28  Simon Josefsson  <jas@extundo.com>
77223
77224         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77225         #include's.
77226
77227 2006-07-28  Simon Josefsson  <jas@extundo.com>
77228
77229         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77230         #include's.
77231
77232 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77235         setgid on directories only if they set these bits.
77236         * lib/modechange.h: Remove obsolete comment about masks.
77237
77238 2006-07-28  Eric Blake  <ebb9@byu.net>
77239
77240         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77241         macro expansion.
77242
77243 2006-07-28  Bruno Haible  <bruno@clisp.org>
77244
77245         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77246
77247 2006-07-28  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77250
77251 2006-07-28  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77254         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77255         Define fallbacks.
77256         Avoids link error on FreeBSD 4.x.
77257         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77258
77259         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77260         encoding.
77261         * lib/mbswidth.c (iswcntrl): Likewise.
77262
77263 2006-07-27  Bruno Haible  <bruno@clisp.org>
77264
77265         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77266         test.
77267
77268 2006-07-27  Bruno Haible  <bruno@clisp.org>
77269
77270         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77271         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77272         defined.
77273
77274 2006-07-26  Eric Blake  <ebb9@byu.net>
77275
77276         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77277
77278 2006-07-26  Eric Blake  <ebb9@byu.net>
77279
77280         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77281         like mingw that lack mkstemp.
77282         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77283         avoid compilation warning on mingw.
77284
77285 2006-07-26  Bruno Haible  <bruno@clisp.org>
77286
77287         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77288         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77289         INT_FAST*_MIN, INTPTR_MIN.
77290
77291 2006-07-25  Bruno Haible  <bruno@clisp.org>
77292
77293         * modules/version-etc (Depends-on): Add stdarg.
77294
77295 2006-07-25  Bruno Haible  <bruno@clisp.org>
77296
77297         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77298         complex commands.
77299
77300 2006-07-25  Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77303         defined in <stdarg.h> or config.h.
77304
77305 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77308         (gl_STDIO_SAFER): Remove.
77309
77310 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         * MODULES.html.sh (File stream based Input/Output):
77313         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77314         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77315         * modules/fopen-safer, modules/tmpfile-safer: New files.
77316         * modules/stdio-safer: Remove.
77317
77318 2006-07-24  Bruno Haible  <bruno@clisp.org>
77319
77320         * modules/tmpdir: New file.
77321         * MODULES.html.sh (File system functions): Add it.
77322
77323 2006-07-24  Bruno Haible  <bruno@clisp.org>
77324
77325         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77326         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77327
77328 2006-07-24  Bruno Haible  <bruno@clisp.org>
77329
77330         * modules/clean-temp: New file.
77331
77332 2006-07-24  Bruno Haible  <bruno@clisp.org>
77333
77334         * m4/tmpdir.m4: New file, from GNU gettext.
77335
77336 2006-07-24  Bruno Haible  <bruno@clisp.org>
77337
77338         * lib/tmpdir.h: New file, from GNU gettext.
77339         * lib/tmpdir.c: New file, from GNU gettext.
77340
77341 2006-07-24  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/clean-temp.h: New file, from GNU gettext.
77344         * lib/clean-temp.c: New file, from GNU gettext.
77345
77346 2006-07-23  Eric Blake  <ebb9@byu.net>
77347
77348         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77349         (Depends-on): Add binary-io.
77350
77351 2006-07-23  Eric Blake  <ebb9@byu.net>
77352
77353         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77354
77355 2006-07-23  Eric Blake  <ebb9@byu.net>
77356
77357         * lib/tmpfile-safer.c: New file.
77358         * lib/stdio-safer.h (fopen_safer): Add prototype.
77359         * lib/stdio--.h (tmpfile): Make safer.
77360
77361 2006-07-23  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77364         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77365         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77366         gl_linked_remove_at): Use it.
77367
77368 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77369         and Simon Josefsson <jas@extundo.com>
77370
77371         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77372
77373         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77374
77375 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77376
77377         * modules/close-stream: New file.
77378         * modules/closeout (Description): Make it clear that it exits
77379         with a diagnostic on error.
77380         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77381         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77382
77383 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * m4/close-stream.m4: New file.
77386
77387 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * lib/close-stream.c, lib/close-stream.h: New files.
77390
77391 2006-07-22  Bruno Haible  <bruno@clisp.org>
77392
77393         Merge from GNU gettext 0.15.
77394
77395         2006-05-01  Bruno Haible  <bruno@clisp.org>
77396
77397                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77398
77399         2006-07-22  Bruno Haible  <bruno@clisp.org>
77400
77401                 * modules/javaversion: New file.
77402                 * MODULES.html.sh (Java): Add javaversion.
77403
77404         2006-03-12  Bruno Haible  <bruno@clisp.org>
77405
77406                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77407
77408         2005-12-04  Bruno Haible  <bruno@clisp.org>
77409
77410                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77411                 (untested).
77412
77413         2006-06-21  Bruno Haible  <bruno@clisp.org>
77414
77415                 Avoid warnings from recent versions of mcs.
77416                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77417                 -o, -L, -r any more. Use options documented since mcs-1.0
77418                 instead. Similarly for -g.
77419
77420         2005-12-04  Bruno Haible  <bruno@clisp.org>
77421
77422                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77423                 .resources, not .resource.
77424
77425         2005-07-09  Bruno Haible  <bruno@clisp.org>
77426
77427                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77428                 add a .dll suffix.
77429                 Reported by Mark Junker <mjscod@gmx.de>.
77430
77431         2006-07-22  Bruno Haible  <bruno@clisp.org>
77432
77433                 * modules/gettext: Upgrade to gettext-0.15.
77434                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77435                 m4/visibility.m4.
77436                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77437
77438 2006-07-22  Bruno Haible  <bruno@clisp.org>
77439
77440         Merge from GNU gettext 0.15.
77441
77442         2006-03-25  Bruno Haible  <bruno@clisp.org>
77443
77444                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77445
77446         2006-07-21  Bruno Haible  <bruno@clisp.org>
77447
77448                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77449                 "1.1".
77450
77451         2006-05-09  Bruno Haible  <bruno@clisp.org>
77452
77453                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77454                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77455                 for the conftestver execution.
77456
77457         2006-05-01  Bruno Haible  <bruno@clisp.org>
77458
77459                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77460                 optional target-version argument. Verify that the compiler
77461                 groks source of the specified source-version, or add -source
77462                 option as necessary. Verify that the compiler produces
77463                 bytecode in the specified target-version, or add -target and
77464                 -source options as necessary. Make the result of the test
77465                 available as variable CONF_JAVAC. Also log error output in
77466                 config.log.
77467
77468         2006-03-11  Bruno Haible  <bruno@clisp.org>
77469
77470                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77471
77472         2006-05-09  Bruno Haible  <bruno@clisp.org>
77473
77474                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77475                 CLASSPATH_SEPARATOR to a semicolon.
77476
77477         2006-03-12  Bruno Haible  <bruno@clisp.org>
77478
77479                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77480                 available as variable CONF_JAVA, for subsequent autoconf
77481                 tests. Also log error output in config.log.
77482
77483         2006-07-19  Bruno Haible  <bruno@clisp.org>
77484
77485                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77486                 that getline works on glibc2 systems. Needed to avoid trouble
77487                 in relocatable.c.
77488                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77489
77490         2005-12-04  Bruno Haible  <bruno@clisp.org>
77491
77492                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77493                 launcher (untested).
77494
77495         2005-12-04  Bruno Haible  <bruno@clisp.org>
77496
77497                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77498
77499         2006-07-22  Bruno Haible  <bruno@clisp.org>
77500
77501                 * gettext.m4: Update from GNU gettext-0.15.
77502                 * nls.m4: Likewise.
77503                 * po.m4: Likewise.
77504                 * inttypes-pri.m4: Likewise.
77505                 * inttypes-h.m4: Renamed from inttypes.m4.
77506                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77507
77508 2006-07-22  Bruno Haible  <bruno@clisp.org>
77509
77510         Merge from GNU gettext 0.15.
77511
77512         2005-07-05  Bruno Haible  <bruno@clisp.org>
77513
77514                 * printf-args.c (printf_fetchargs): Work around broken
77515                 definition of wint_t on mingw.
77516
77517         2005-02-12  Bruno Haible  <bruno@clisp.org>
77518
77519                 * xallocsa.h: Add extern "C" for C++.
77520
77521         2006-05-17  Bruno Haible  <bruno@clisp.org>
77522
77523                 Cygwin portability.
77524                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77525
77526         2006-04-30  Bruno Haible  <bruno@clisp.org>
77527
77528                 * progreloc.c: Include <mach-o/dyld.h> if available.
77529                 (find_executable): Use _NSGetExecutablePath when possible.
77530
77531         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77532
77533                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77534                 function.
77535
77536         2005-12-29  Bruno Haible  <bruno@clisp.org>
77537
77538                 * progreloc.c (set_program_name_and_installdir): Fix
77539                 compilation error.
77540
77541         2005-12-04  Bruno Haible  <bruno@clisp.org>
77542
77543                 Cygwin portability.
77544                 * progreloc.c: Include <windows.h> also on Cygwin.
77545                 (find_executable): Add support for Cygwin.
77546                 (set_program_name_and_installdir): Handle also platforms with
77547                 nonempty EXEEXT.
77548
77549         2006-07-11  Bruno Haible  <bruno@clisp.org>
77550
77551                 * javacomp.c: Fix a comment.
77552                 Reported by Jim Meyering.
77553
77554         2006-04-30  Bruno Haible  <bruno@clisp.org>
77555
77556                 * javacomp.h (compile_java_class): Add source_version,
77557                 target_version arguments.
77558                 * javacomp.c: Rewritten to choose only a compiler that
77559                 respects the specified source_version and target_version.
77560
77561         2006-06-27  Bruno Haible  <bruno@clisp.org>
77562
77563                 Assume correct S_ISDIR macro.
77564                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77565
77566         2006-07-22  Bruno Haible  <bruno@clisp.org>
77567
77568                 * javaversion.h: New file, from GNU gettext.
77569                 * javaversion.c: New file, from GNU gettext.
77570                 * javaversion.java: New file, from GNU gettext.
77571                 * javaversion.class: New file, from GNU gettext.
77572
77573         2006-05-17  Bruno Haible  <bruno@clisp.org>
77574
77575                 Cygwin portability.
77576                 * javaexec.c (execute_java_class): Test for jview program
77577                 also on Cygwin.
77578
77579         2006-04-09  Bruno Haible  <bruno@clisp.org>
77580
77581                 * fatal-signal.c: Don't include string.h.
77582                 (at_fatal_signal): Use a copying loop instead of memcpy.
77583
77584         2005-12-04  Bruno Haible  <bruno@clisp.org>
77585
77586                 * csharpexec.c: Add support for 'clix' launcher (untested).
77587                 (execute_csharp_using_sscli): New function.
77588                 (execute_csharp_program): Call it.
77589
77590         2006-06-21  Bruno Haible  <bruno@clisp.org>
77591
77592                 Avoid warnings from recent versions of mcs.
77593                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77594                 -o, -L, -r any more. Use options documented since mcs-1.0
77595                 instead. Similarly for -g.
77596
77597         2005-07-09  Bruno Haible  <bruno@clisp.org>
77598
77599                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77600                 add a .dll suffix.
77601                 Reported by Mark Junker <mjscod@gmx.de>.
77602
77603         2006-06-17  Bruno Haible  <bruno@clisp.org>
77604
77605                 * config.charset: Update for NetBSD 3.0.
77606
77607         2006-05-17  Bruno Haible  <bruno@clisp.org>
77608
77609                 Cygwin portability.
77610                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77611
77612         2006-05-16  Bruno Haible  <bruno@clisp.org>
77613
77614                 * localcharset.c [CYGWIN]: Include <windows.h>.
77615                 (get_charset_aliases): For Cygwin, return the same CPxxx
77616                 aliases list as under WIN32.
77617                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77618                 the environment variables. Fall back to GetACP().
77619
77620         2006-04-05  Bruno Haible  <bruno@clisp.org>
77621
77622                 * config.charset: Update Juan Manuel Guerrero's address.
77623
77624         2005-02-12  Bruno Haible  <bruno@clisp.org>
77625
77626                 * allocsa.h: Add extern "C" for C++.
77627
77628         2005-02-10  Bruno Haible  <bruno@clisp.org>
77629
77630                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77631                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77632
77633         2006-07-22  Bruno Haible  <bruno@clisp.org>
77634
77635                 * gettext.h: Update to GNU gettext-0.15.
77636
77637 2006-07-22  Bruno Haible  <bruno@clisp.org>
77638
77639         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77640         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77641         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77642
77643 2006-07-21  Eric Blake  <ebb9@byu.net>
77644
77645         * modules/stdlib-safer: New file.
77646         * MODULES.html.sh (File stream based Input/Output): Add
77647         stdlib-safer.
77648
77649 2006-07-21  Eric Blake  <ebb9@byu.net>
77650
77651         * lib/stdlib-safer.h: New file from coreutils, required by
77652         stdlib--.h.
77653
77654 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77657
77658 2006-07-20  Bruno Haible  <bruno@clisp.org>
77659
77660         * gnulib-tool: Recognize new option --assume-autoconf.
77661         (autoconf_minversion): New variable.
77662         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77663
77664 2006-07-20  Bruno Haible  <bruno@clisp.org>
77665
77666         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77667
77668 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77669
77670         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77671         Reindent and repaginate.
77672
77673 2006-07-19  Derek Price  <derek@ximbiot.com>
77674
77675         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77676         Correct grammar.
77677
77678 2006-07-17  Bruno Haible  <bruno@clisp.org>
77679
77680         * modules/list: New file.
77681         * modules/array-list: New file.
77682         * modules/carray-list, modules/carray-list-tests: New files.
77683         * modules/linked-list, modules/linked-list-tests: New files.
77684         * modules/avltree-list, modules/avltree-list-tests: New files.
77685         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77686         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77687         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77688         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77689         * modules/oset: New file.
77690         * modules/array-oset: New file.
77691         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77692         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77693         * tests/test-carray_list.c: New file.
77694         * tests/test-linked_list.c: New file.
77695         * tests/test-avltree_list.c: New file.
77696         * tests/test-rbtree_list.c: New file.
77697         * tests/test-linkedhash_list.c: New file.
77698         * tests/test-avltreehash_list.c: New file.
77699         * tests/test-rbtreehash_list.c: New file.
77700         * tests/test-avltree_oset.c: New file.
77701         * tests/test-rbtree_oset.c: New file.
77702         * MODULES.html.sh (Container data structures): New section.
77703
77704 2006-07-17  Bruno Haible  <bruno@clisp.org>
77705
77706         * m4/gl_list.m4: New file.
77707
77708 2006-07-17  Bruno Haible  <bruno@clisp.org>
77709
77710         * lib/gl_list.h: New file.
77711         * lib/gl_list.c: New file.
77712         * lib/gl_array_list.h: New file.
77713         * lib/gl_array_list.c: New file.
77714         * lib/gl_carray_list.h: New file.
77715         * lib/gl_carray_list.c: New file.
77716         * lib/gl_linked_list.h: New file.
77717         * lib/gl_linked_list.c: New file.
77718         * lib/gl_anylinked_list1.h: New file.
77719         * lib/gl_anylinked_list2.h: New file.
77720         * lib/gl_avltree_list.h: New file.
77721         * lib/gl_avltree_list.c: New file.
77722         * lib/gl_anyavltree_list1.h: New file.
77723         * lib/gl_anyavltree_list2.h: New file.
77724         * lib/gl_rbtree_list.h: New file.
77725         * lib/gl_rbtree_list.c: New file.
77726         * lib/gl_anyrbtree_list1.h: New file.
77727         * lib/gl_anyrbtree_list2.h: New file.
77728         * lib/gl_anytree_list1.h: New file.
77729         * lib/gl_anytree_list2.h: New file.
77730         * lib/gl_linkedhash_list.h: New file.
77731         * lib/gl_linkedhash_list.c: New file.
77732         * lib/gl_anyhash_list1.h: New file.
77733         * lib/gl_anyhash_list2.h: New file.
77734         * lib/gl_avltreehash_list.h: New file.
77735         * lib/gl_avltreehash_list.c: New file.
77736         * lib/gl_rbtreehash_list.h: New file.
77737         * lib/gl_rbtreehash_list.c: New file.
77738         * lib/gl_anytreehash_list1.h: New file.
77739         * lib/gl_anytreehash_list2.h: New file.
77740
77741         * lib/gl_oset.h: New file.
77742         * lib/gl_oset.c: New file.
77743         * lib/gl_array_oset.h: New file.
77744         * lib/gl_array_oset.c: New file.
77745         * lib/gl_avltree_oset.h: New file.
77746         * lib/gl_avltree_oset.c: New file.
77747         * lib/gl_rbtree_oset.h: New file.
77748         * lib/gl_rbtree_oset.c: New file.
77749         * lib/gl_anytree_oset.h: New file.
77750
77751 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77752
77753         * m4/mkancesdirs.m4: New file.
77754         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77755         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77756         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77757         it.
77758
77759 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77762         * lib/mkancesdirs.h: New files.
77763         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77764         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77765         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77766         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77767         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77768         callers changed.  Revamp internals significantly, by not
77769         attempting to create directories that are temporarily more
77770         permissive than the final results.  Do not attempt to use
77771         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77772         This removes some race conditions, fixes some bugs, and simplifies
77773         things.  Use new dirchownmod function to do owner and mode changes.
77774         * lib/mkdir-p.h: Likewise.
77775         * lib/modechange.c (octal_to_mode): New function.
77776         (struct mode_change): New member mentioned.
77777         (make_node_op_equals): New arg mentioned.  All callers changed.
77778         (mode_compile): Keep track of which mode bits the user has explicitly
77779         mentioned.
77780         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77781         New arg PMODE_BITS, to keep track of which mode bits the user
77782         mentioned; it treats S_ISUID and S_ISGID speciall.
77783         All callers changed.
77784         * lib/modechange.h: Likewise.
77785
77786 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77787
77788         * MODULES.html.sh: Add mkancestors.
77789         * modules/mkancesdirs: New module.
77790         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77791         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77792         The chdir-safer and afs files are now orphans; I'll remove them
77793         unless someone speaks up.
77794         Add lib/dirchownmod.c, lib/dirchownmod.h.
77795         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77796         Add lchown, mkancesdirs.
77797         (Maintainer): Add self.
77798
77799 2006-07-15  Karl Berry  <karl@gnu.org>
77800
77801         * gnulib-tool: help message wording/arrangement.
77802
77803 2006-07-14  Simon Josefsson  <jas@extundo.com>
77804
77805         * doc/gnulib.texi (Libtool and Windows): New section.
77806
77807 2006-07-12  Simon Josefsson  <jas@extundo.com>
77808
77809         * modules/gendocs (License): Fix license, approved by Karl.
77810
77811 2006-07-12  Eric Blake  <ebb9@byu.net>
77812
77813         * MODULES.html.sh: Add gendocs.
77814
77815 2006-07-11  Eric Blake  <ebb9@byu.net>
77816
77817         * modules/fdl: New module, to install doc/fdl.texi.
77818         * MODULES.html.sh: Add new section for documentation modules.
77819         * gnulib-tool: Avoid space-tab.
77820         (--doc-base): New option, to manage files from doc.
77821
77822 2006-07-11  Eric Blake  <ebb9@byu.net>
77823
77824         * m4/absolute-header.m4: Fix comments to match recent change.
77825
77826 2006-07-11  Eric Blake  <ebb9@byu.net>
77827
77828         * gnulib-tool: List --doc-base before --tests-base.
77829
77830 2006-07-11  Derek R. Price  <derek@ximbiot.com>
77831
77832         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
77833
77834 2006-07-11  Bruno Haible  <bruno@clisp.org>
77835
77836         * README: Mention where to put documentation.
77837
77838 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77839
77840         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
77841
77842 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
77845         to stdint.m4.
77846
77847 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
77850         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
77851         "no/such/file/stdint.h" when there is no such file, so that
77852         the resulting C code can be parsed by dodgy compilers.
77853         Problems reported by Bob Proulx.
77854
77855 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77856
77857         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
77858         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77859         macros into the GNU _D_EXACT_NAMLEN.
77860         * lib/savedir.c:  Likewise.
77861         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
77862
77863 2006-07-10  Derek R. Price  <derek@ximbiot.com>
77864         and Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
77867         * m4/savedir.m4:
77868         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
77869         macros into the GNU _D_EXACT_NAMLEN.
77870
77871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77872
77873         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
77874         around the absolute name, to work around a problem with the HP-UX
77875         11.23 native C compiler, reported by Bob Proulx.
77876
77877 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * doc/maintain.texi, make-stds.texi: Sync from
77880         <http://savannah.gnu.org/projects/gnustandards>.
77881
77882 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
77885
77886 2006-07-09  Jim Meyering  <jim@meyering.net>
77887
77888         * m4/glob.m4: Remove a doubled word in a comment.
77889
77890 2006-07-09  Jim Meyering  <jim@meyering.net>
77891
77892         * lib/argp-pv.c: Remove a doubled word in a comment.
77893         * lib/check-version.c (check_version): Likewise.
77894         * lib/javacomp.c (compile_java_class): Likewise.
77895
77896 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77897
77898         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
77899         for the benefit of people using Autoconf 2.60.  If you want to
77900         support older Autoconf versions you can copy m4/onceonly_2_57.m4
77901         (or m4/onceonly.m4, if pre-2.57) manually.
77902
77903 2006-07-08  Jim Meyering  <jim@meyering.net>
77904
77905         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
77906         comment.
77907         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
77908         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
77909         comment.
77910
77911 2006-07-08  Jim Meyering  <jim@meyering.net>
77912
77913         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
77914
77915 2006-07-07  Simon Josefsson  <jas@extundo.com>
77916
77917         * tests/test-crc.c: Change expected crc value, the test vector
77918         were probably computed using the old broken crc.c?
77919
77920 2006-07-06  Simon Josefsson  <jas@extundo.com>
77921
77922         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
77923         now the canonical place for the M4 file).
77924
77925         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
77926         from the sys_socket dependency now.
77927
77928         * modules/inet_pton (Files): Ditto.
77929
77930         * modules/inet_ntop (Files): Ditto.
77931
77932 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77933
77934         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
77935         not gl_PREREQ_GETUSERSHELL.
77936
77937 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77938
77939         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
77940         with only one argument, for Autoconf 2.60.
77941         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
77942         expand to nothing, so add a shell command to avoid syntax error.
77943         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77944
77945 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77946
77947         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
77948
77949 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77950
77951         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77952         no longer needed.  Check for isblank decl.
77953         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77954         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77955         of existence.
77956
77957 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * lib/getloadavg.c: Use __VMS, not VMS.
77960         * lib/getopt.c: Likewise.
77961         * lib/getpagesize.h: Likewise.
77962         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77963         and probably does not work.
77964
77965 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * lib/.cppi-disable: Add wcwidth.
77968         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77969         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77970         (ISGRAPH): Remove.  All uses changed to isgraph.
77971         (FOLD) [!defined _LIBC]: Remove special case.
77972         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77973         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77974         HAVE_ISBLANK.
77975         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77976         case.
77977
77978 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77979
77980         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77981         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77982         brackets.  Other minor changes to suppress some compiler
77983         warnings.
77984
77985 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77986         and Paul Eggert  <eggert@cs.ucla.edu>
77987
77988         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77989         of invoking obsolescent AC_HEADER_DIRENT macro.
77990         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77991         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77992         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77993         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77994         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77995         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77996         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77997         * m4/readdir.m4: Remove; no longer needed.
77998
77999 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78000         and Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78003         Don't worry about this obsolete case any more.
78004         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78005         directories.
78006         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78007         worry about this obsolete case any more.
78008         * lib/fts.c: Likewise.
78009         * lib/getcwd.c: Likewise.
78010         * lib/glob.h: Likewise.
78011         * lib/savedir.c: Likewise.
78012
78013 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78014
78015         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78016         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78017         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78018         needed.
78019         All uses removed.
78020         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78021         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78022         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78023         needed.
78024         * m4/getdate.m4 (gl_GETDATE): Likewise.
78025         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78026         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78027         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78028         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78029         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78030         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78031         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78032         needed.
78033
78034 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/memcasecmp.c: Include <limits.h>.
78037         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78038         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78039         Don't assume isdigit succeeds only on '0' through '9'.
78040
78041 2006-07-05  Eric Blake  <ebb9@byu.net>
78042
78043         * modules/getaddrinfo (Depends-on): Add snprintf.
78044
78045 2006-07-05  Eric Blake  <ebb9@byu.net>
78046
78047         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78048         to avoid 'header present but could not be compiled' on cygwin.
78049
78050 2006-07-05  Eric Blake  <ebb9@byu.net>
78051
78052         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78053         missing from netdb.h.
78054         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78055
78056 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78057
78058         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78059         no longer needed.
78060         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78061         * m4/getdate.m4 (gl_GETDATE): Likewise.
78062         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78063         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78064         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78065         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78067
78068 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78069
78070         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78071         All uses of is_space replaced by isspace.
78072         * lib/exit.h: Don't talk about STDC_HEADERS.
78073         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78074         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78075         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78076         replaced by isprint etc.
78077         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78078         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78079         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78080         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78081         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78082         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78083
78084 2006-07-05  Bruno Haible  <bruno@clisp.org>
78085
78086         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78087         the function exists, before testing against AIX.
78088         Reported by Martin Lambers <marlam@marlam.de>.
78089
78090 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78091
78092         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78093         From Mark D. Baushke.
78094
78095 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78098         to the absolute name, not just one, to bypass Sun C 5.8's
78099         "warning: #include of /usr/include/... may be non-portable".
78100
78101 2006-07-04  Eric Blake  <ebb9@byu.net>
78102
78103         * modules/dirname-tests: New test module.
78104         * tests/test-dirname.c: New file, replacing dirname.c
78105         TEST_DIRNAME section that was recently deleted.
78106
78107 2006-07-04  Bruno Haible  <bruno@clisp.org>
78108
78109         Assume ANSI C header files and <ctype.h> functions.
78110         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78111         (mbsnwidth): Use isprint, iscntrl instead.
78112
78113 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         Merge from coreutils.
78116         * MODULES.html.sh: Add xstrtold.
78117         * modules/xstrtold: New file.
78118         * modules/cycle-check (Files): Add lib/same-inode.h.
78119         * modules/dirname (Files): Add m4/double-slash-root.m4.
78120         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78121         * modules/mkdir-p (Files): Add lib/same-inode.h.
78122         * modules/same (Files): Add lib/same-inode.h.
78123
78124 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78127         This is to keep the terminology clean; POSIX talks about
78128         "absolute pathnames", not "full pathnames", but the GNU
78129         Coding Standards say to use "path" for something else;
78130         so use "absolute" to keep both sides happy.
78131         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78132         Set gl_absolute_header, not gl_full_header_path.
78133         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78134         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78135         All uses changed.
78136
78137         Merge from coreutils.
78138
78139         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78142         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78143         want to require the building of c-strtod.o.
78144         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78145         needs -lm directly.
78146         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78147
78148         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78151         --as-needed option if available.  Problem reported by Albert Chin in
78152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78153         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78154         cc merely issues a bunch of annoying warnings for --as-needed
78155         (this problem was reported by Bob Proulx).  Also, try linking with
78156         -lm to detect a bug in binutils 2.16 (this problem was reported
78157         by Ralf Wildenhues).
78158
78159         2006-06-18  Jim Meyering  <jim@meyering.net>
78160
78161         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78162         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78163         macro.
78164         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78165         also check for glibc-2.4's abort-inducing bug.
78166
78167         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78168         Low-probability clean-up should be to use rmdir to get rid of
78169         the just-created directory, not unlink.
78170
78171         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78172         configure fail, and request a bug report to inform us about it.
78173         Add a comment that, barring reports to the contrary, in 2007 we'll
78174         assume ftruncate is universally available.
78175
78176         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78179
78180         2006-03-12  Jim Meyering  <jim@meyering.net>
78181
78182         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78183         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78184         * m4/same.m4 (gl_SAME): Likewise.
78185         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78186
78187         2006-03-11  Eric Blake  <ebb9@byu.net>
78188
78189         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78190         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78191         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78192         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78193
78194 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78197         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78198         reported by Mark D. Baushke, one in
78199         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78200
78201         Merge from coreutils.
78202
78203         * lib/.cppi-disable: Add stdint_.h.
78204         * lib/.cvsignore: Add stdint.h.
78205
78206         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78207
78208         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78209         both double and long double versions.
78210         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78211         * lib/xstrtold.c: New file.
78212         * lib/xstrtod.h (xstrtold): New decl.
78213
78214         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * lib/filemode.c (setst): Remove.
78217         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78218         (arguably) clearer, and the generated code is a bit smaller on my
78219         Debian GNU/Linux stable x86 host.
78220
78221         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78224         Assume that filemode.h includes sys/types.h and sys/stat.h.
78225         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78226         (ftypelet): Reorder to put common cases first, for efficiency.
78227         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78228         to do 'M'.
78229         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78230         of 10, for compatibility with FreeBSD.  All callers changed.
78231         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78232         types that can't be deduced solely from st_mode.  First arg is now a
78233         const pointer.
78234         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78235         (strmode): Renamed from mode_string.
78236         (filemodestring): New decl.
78237         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78238         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78239         needed.
78240         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78241
78242         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78245         fsusage.h now does that.  Include fsusage.h first, to test interface.
78246         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78247         at most one method (the old code could have generated decls that
78248         didn't conform to C89, not that this was ever exercised).
78249         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78250
78251         2006-03-19  Jim Meyering  <jim@meyering.net>
78252
78253         Work even in a chroot where d_ino values for entries in "/"
78254         don't match the stat.st_ino values for the same names.
78255         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78256         number, iterate through all entries again, using lstat instead.
78257         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78258         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78259
78260         * lib/getcwd.c (__getcwd): Clarify a comment.
78261         Use memcpy in place of a call to strcpy.
78262
78263         2006-03-12  Jim Meyering  <jim@meyering.net>
78264
78265         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78266         matches that of the current directory (which we're about to chdir ".."
78267         out of), then save the dev-ino of the parent, instead.
78268
78269         * lib/same-inode.h (SAME_INODE): New file/macro.
78270         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78271         Include "same-inode.h", instead.
78272         * lib/same.c: Likewise.
78273         * lib/cycle-check.h: Include "same-inode.h".
78274         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78275         * lib/cycle-check.c (SAME_INODE): Remove definition.
78276         * lib/root-dev-ino.h: Include "same-inode.h".
78277
78278         2006-03-11  Eric Blake  <ebb9@byu.net>
78279
78280         * lib/same.c (same_name): s/base_name/last_component/
78281         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78282         * lib/filenamecat.c (file_name_concat): Likewise.
78283
78284         2006-03-11  Eric Blake  <ebb9@byu.net>,
78285                     Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78288         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78289         drive prefix.
78290         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78291         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78292         (last_component): New method.
78293         * lib/dirname.c (dir_len): Determine when drive letters need a
78294         subsequent slash.  Preserve // when it is special.
78295         (dir_name): Don't append dot when drive letter is absolute.
78296         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78297         * lib/basename.c (base_name): New semantics - malloc the result.
78298         Preserve // when it is special.  Preserve relative files that look
78299         like drive letters.
78300         (base_len): Preserve // when it is special.
78301         (last_component): New method, similar to old base_name semantics.
78302         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78303         base_name.  Strip redundant slashes from ///.
78304
78305 2006-07-03  Jim Meyering  <jim@meyering.net>
78306
78307         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78308         macro is used before the first cycle_check call.
78309
78310 2006-07-03  Eric Blake  <ebb9@byu.net>
78311
78312         * modules/dirname (Depends-on): Add xstrndup.
78313
78314 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78315
78316         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78317         test cases, so that config.log is a bit easier to follow.
78318
78319 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78322         both are 64 bits, since this seems to be the tradition, and this
78323         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78324         we ever run into a host that prefers long long to long in this
78325         case, we'll need another configure-time test.  Problem reported by
78326         Jim Meyering.
78327
78328 2006-07-02  Eric Blake  <ebb9@byu.net>
78329
78330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78331
78332 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78333
78334         * modules/inttypes (Depends-on): No longer depends on stdint.
78335         * modules/stdint (Description): Say more about assumptions.
78336         Say that the fast types might differ.  Say macros are used.
78337         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78338         (Makefile.am): Revise list of substituted symbols to match
78339         new stdint.m4.
78340         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78341         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78342         * tests/test-stdint.c (verify_same_types)
78343         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78344         the code conforms to C99/C89.
78345         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78346         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78347
78348 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78351         but fix a bug, by requiring at least 64 bits.
78352         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78353         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78354         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78355         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78356
78357         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78358         changes.  Make 2.59 a prerequisite.  Check and substitute for
78359         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78360         inttypes.h.  Do not use special include files; just use the
78361         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78362         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78363         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78364         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78365         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78366         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78367         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78368         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78369         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78370         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78371         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78372         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78373         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78374         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78375         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78376         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78377         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78378         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78379         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78380         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78381         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78382         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78383         not check for things that C99 does not require, e.g., int8_t.  If
78384         a test isn't needed unless <stdint.h> isn't working, and is
78385         unlikely to be needed for any other reason, then don't do it
78386         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78387         size_t, since we assume C89 freestanding at least.  Do not check
78388         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78389         the right thing even if the types are not defined.  Instead use:
78390         (gl_STDINT_TYPE_PROPERTIES): New macro.
78391         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78392         testing whether <sys/types.h> clashes, as Autoconf does this for
78393         us now.  All uses removed.
78394         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78395         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78396         (gl_CHECK_TYPE_SAME):
78397         Remove; no longer needed.
78398         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78399         exists, since we'll return 0 anyway in that case.
78400         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78401
78402 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78403
78404         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78405         possible collision with system files.
78406         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78407         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78408         WCHAR_MIN and WCHAR_MAX in this case.
78409         (<stddef.h>): Do not include; no longer needed.
78410         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78411         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78412         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78413         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78414         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78415         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78416         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78417         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78418         !defined(__c99))]: Include in this case too, since it's harmless
78419         now.
78420         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78421         dangerous to do so.
78422         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78423         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78424         (_STDINT_MIN, _STDINT_MAX): New macros.
78425         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78426         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78427         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78428         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78429         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78430         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78431         macros, not typedefs; this simplifies things quite a bit.
78432         Use long int for all types narrower than int64_t.
78433         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78434         Define in terms of long long int or int64_t or long int,
78435         not int64_t or int32_t.  This saves some compile-time testing.
78436         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78437         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78438         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78439         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78440         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78441         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78442         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78443         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78444         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78445         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78446         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78447         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78448         undef any previous version and define our own version, for
78449         simplicity and consistency with the new macros for types.
78450         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78451         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78452         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78453         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78454         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78455         @WINT_T_SUFFIX@ to keep things simple here.
78456         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78457         Simplify by assuming typical 8/16/32/64 host, since we're
78458         already doing that elsewhere anyway.
78459         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78460         and assume long long int is 64 bits if available.  This
78461         speeds up 'configure'.
78462
78463 2006-07-01  Eric Blake  <ebb9@byu.net>
78464
78465         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78466         Reported by Andreas Buening.
78467
78468 2006-07-01  Eric Blake  <ebb9@byu.net>
78469
78470         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78471
78472 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78473
78474         * lib/getaddrinfo.c: fixed typo
78475
78476 2006-06-29  Jim Meyering  <jim@meyering.net>
78477
78478         * modules/strftime (Maintainer): Add my name, since with the
78479         FPRINTFTIME changes strftime.c has forked from glibc.
78480
78481 2006-06-29  Eric Blake  <ebb9@byu.net>
78482
78483         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78484
78485 2006-06-29  Eric Blake  <ebb9@byu.net>
78486
78487         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78488
78489 2006-06-29  Eric Blake  <ebb9@byu.net>
78490
78491         * lib/stat_.h: New file.
78492
78493 2006-06-29  Eric Blake  <ebb9@byu.net>
78494
78495         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78496         unused static function.
78497
78498 2006-06-29  Eric Blake  <ebb9@byu.net>
78499
78500         * doc/functions.texi (Function Portability): Document missing lstat
78501         on mingw.
78502
78503 2006-06-29  Eric Blake  <ebb9@byu.net>
78504
78505         * MODULES.html.sh: Add sys_stat.
78506         * modules/sys_stat: New module.
78507         * modules/mkstemp (Depends-on): Add sys_stat.
78508
78509 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78510
78511         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78512
78513 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78514
78515         * m4/c-bs-a.m4: Removed.
78516
78517 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78518
78519         * lib/strftime.c: Assume strftime() exists.
78520
78521 2006-06-29  Derek Price  <derek@ximbiot.com>
78522
78523         * modules/c-bs-a: Removed - \a is C89.
78524         * MODULES.html.sh: Remove c-bs-a.
78525
78526 2006-06-29  Bruno Haible  <bruno@clisp.org>
78527
78528         * modules/wcwidth (License): Change to LGPL.
78529
78530 2006-06-28  Simon Josefsson  <jas@extundo.com>
78531
78532         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78533         on _WIN32.
78534
78535         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78536         getnameinfo.
78537
78538 2006-06-28  Simon Josefsson  <jas@extundo.com>
78539
78540         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78541
78542 2006-06-28  Simon Josefsson  <jas@extundo.com>
78543
78544         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78545         functions there.  It will succeed on Windows XP, but on Windows
78546         2000 and (presumably) earlier, it will fail, and use the internal
78547         re-implementation.
78548         (use_win32_p): New function.
78549         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78550         Support AI_NUMERICSERV to disable getservbyname.
78551         (getnameinfo): New function, only supports
78552         NI_NUMERICHOST|NI_NUMERICSERV for now.
78553
78554         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78555         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78556         getnameinfo.
78557
78558 2006-06-28  Eric Blake  <ebb9@byu.net>
78559
78560         * modules/wcwidth: New file.
78561         * modules/mbchar (Depends-on): Add wcwidth.
78562         * modules/mbswidth (Depends-on): Add wcwidth.
78563         * MODULES.html.sh: Add wcwidth.
78564
78565 2006-06-28  Eric Blake  <ebb9@byu.net>
78566
78567         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78569
78570 2006-06-28  Eric Blake  <ebb9@byu.net>
78571
78572         * lib/xvasprintf.h: Fix comments.
78573
78574 2006-06-28  Eric Blake  <ebb9@byu.net>
78575
78576         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78577         * lib/mbswidth.c (wcwidth): Move from here...
78578         * lib/wcwidth.h: ...to this new file.
78579
78580 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78581
78582         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78583
78584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78585         it's obsolete.
78586         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78587
78588 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78589
78590         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78591         Autoconf 2.60 says this stuff was obsolete.
78592
78593 2006-06-28  Bruno Haible  <bruno@clisp.org>
78594
78595         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78596
78597 2006-06-28  Bruno Haible  <bruno@clisp.org>
78598
78599         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78600         gt_TYPE_WCHAR_T.
78601
78602 2006-06-28  Bruno Haible  <bruno@clisp.org>
78603
78604         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78605         declaration for wcwidth.
78606         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78607
78608 2006-06-28  Bruno Haible  <bruno@clisp.org>
78609
78610         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78611         (mkdir): Define using _mkdir.
78612
78613 2006-06-28  Bruno Haible  <bruno@clisp.org>
78614
78615         * lib/getaddrinfo.h: Fix POSIX URL.
78616         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78617         _WIN32.
78618         (use_win32_p): Make static.
78619         (getaddrinfo): Reject service name if it is empty or does not consist
78620         solely of decimal digits, or if its value is > 65535.
78621         (getnameinfo): Remove useless casts.
78622
78623 2006-06-27  Simon Josefsson  <jas@extundo.com>
78624
78625         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78626         Eggert and Martin Lambers.
78627
78628 2006-06-27  Simon Josefsson  <jas@extundo.com>
78629
78630         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78631         Eggert and Martin Lambers.
78632
78633 2006-06-27  Bruno Haible  <bruno@clisp.org>
78634
78635         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78636         result to 0, not to empty.
78637         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78638
78639 2006-06-27  Bruno Haible  <bruno@clisp.org>
78640
78641         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78642
78643 2006-06-26  Simon Josefsson  <jas@extundo.com>
78644
78645         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78646         present.
78647
78648 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78649
78650         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78651         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78653
78654 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78655
78656         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78657
78658 2006-06-26  Bruno Haible  <bruno@clisp.org>
78659
78660         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78661
78662 2006-06-26  Bruno Haible  <bruno@clisp.org>
78663
78664         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78665
78666 2006-06-26  Bruno Haible  <bruno@clisp.org>
78667
78668         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78669         SGI C compiler in pre-C99 mode.
78670         Suggested by Mark D. Baushke and Larry Jones.
78671
78672 2006-06-26  Bruno Haible  <bruno@clisp.org>
78673
78674         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78675         WCHAR_MAX.
78676         Reported by Mark D. Baushke and Larry Jones.
78677
78678 2006-06-26  Bruno Haible  <bruno@clisp.org>
78679
78680         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78681         in pre-C99 mode.
78682         Suggested by Mark D. Baushke and Larry Jones.
78683
78684 2006-06-23  Simon Josefsson  <jas@extundo.com>
78685             Bruno Haible  <bruno@clisp.org>
78686
78687         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78688         Emit mostlyclean-local rule.
78689         (func_emit_tests_Makefile_am): Likewise.
78690         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78691
78692 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78693
78694         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78695
78696 2006-06-23  Bruno Haible  <bruno@clisp.org>
78697
78698         * tests/test-stdint.c: Update to match ISO C 99 Technical
78699         Corrigendum 1.
78700
78701 2006-06-23  Bruno Haible  <bruno@clisp.org>
78702
78703         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78704
78705 2006-06-23  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/stdint_.h: Treat IRIX like OpenBSD.
78708
78709 2006-06-23  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78712         ISO C 99 Technical Corrigendum 1.
78713
78714 2006-06-22  Simon Josefsson  <jas@extundo.com>
78715
78716         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78717         MinGW.
78718
78719 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78720
78721         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78722         needed.  Some compiler complained about some of them.  Problem reported
78723         by Larry Jones in
78724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78725
78726 2006-06-21  Simon Josefsson  <jas@extundo.com>
78727
78728         * tests/test-getaddrinfo.c: New file.
78729
78730         * modules/getaddrinfo-tests: New file.
78731
78732         * MODULES.html.sh: Add inet_pton.
78733
78734         * modules/inet_pton: New file.
78735
78736 2006-06-21  Simon Josefsson  <jas@extundo.com>
78737
78738         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78739         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78740         of using the (limited) gnulib implementation on Windows XP.
78741
78742         * m4/inet_pton.m4: New file.
78743
78744 2006-06-21  Simon Josefsson  <jas@extundo.com>
78745
78746         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78747         variable.
78748
78749         * lib/socket_.h: Don't define WINVER.
78750
78751         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78752         slightly modified to work in gnulib.
78753
78754 2006-06-21  Simon Josefsson  <jas@extundo.com>
78755
78756         * doc/gnulib.texi (Windows sockets): Add.
78757
78758 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78759
78760         * lib/read-file.c (fread_file): Start with buffer allocation of
78761         0 bytes rather than 1 byte; this simplifies the code.
78762         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78763         code to free buffer and save/restore errno.
78764         (internal_read_file): Remove unused local.
78765
78766 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78769         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78770         Problem reported by Denis Excoffier in
78771         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78772
78773 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78774
78775         * modules/sys_socket, modules/socklen: Include sys/types since
78776         FreeBSD 4.x's sys/socket.h needs it.
78777
78778 2006-06-19  Simon Josefsson  <jas@extundo.com>
78779
78780         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78781
78782 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78785
78786 2006-06-19  Bruno Haible  <bruno@clisp.org>
78787
78788         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78789         and FULL_PATH_INTTYPES_H in angle brackets.
78790         Reported by Mark D. Baushke <mdb@gnu.org>.
78791
78792 2006-06-17  Eric Blake  <ebb9@byu.net>
78793
78794         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78795         errno.
78796
78797 2006-06-17  Bruno Haible  <bruno@clisp.org>
78798
78799         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78800         <sys/inttypes.h>.
78801
78802 2006-06-17  Bruno Haible  <bruno@clisp.org>
78803
78804         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78805         whether errno is declared. Assume <errno.h> declares errno.
78806
78807 2006-06-17  Bruno Haible  <bruno@clisp.org>
78808
78809         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78810
78811 2006-06-17  Bruno Haible  <bruno@clisp.org>
78812
78813         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78814         problem on Solaris 2.5.1.
78815
78816 2006-06-16  Eric Blake  <ebb9@byu.net>
78817
78818         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
78819         * lib/unicodeio.c [!defined errno]: Likewise.
78820         * lib/strtol.c [!defined errno]: Likewise.
78821         * lib/strtod.c [!defined errno]: Likewise.
78822
78823 2006-06-15  Eric Blake  <ebb9@byu.net>
78824
78825         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
78826
78827 2006-06-15  Eric Blake  <ebb9@byu.net>
78828
78829         * config/srclist.txt (ssize_t.m4): Lose sync.
78830
78831 2006-06-15  Bruno Haible  <bruno@clisp.org>
78832
78833         * modules/stdint (Files): Include m4/full-header-path.m4,
78834         m4/size_max.m4, m4/wchar_t.m4.
78835         (Makefile.am): Many more substitutions.
78836         * modules/stdint-tests: New file.
78837         * tests/test-stdint.c: New file.
78838
78839 2006-06-15  Bruno Haible  <bruno@clisp.org>
78840
78841         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
78842         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
78843         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
78844         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
78845         gl_CHECK_TYPE_SAME): New macros.
78846
78847 2006-06-15  Bruno Haible  <bruno@clisp.org>
78848
78849         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
78850
78851 2006-06-15  Bruno Haible  <bruno@clisp.org>
78852
78853         * lib/stdint_.h: Rewritten to be fully auto-configured.
78854         Fixes bug on HP-UX/IA64.
78855
78856 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
78857
78858         * lib/getdate.y (__attribute__): Don't define if already defined.
78859         Problem reported by Larry Jones.
78860         * lib/utimens.c (__attribute__): Likewise.
78861
78862 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
78865         reported by Andreas Schwab.
78866
78867 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78868             Bruno Haible  <bruno@clisp.org>
78869
78870         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
78871         check for the declaration of strnlen and a run test that exposes the
78872         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
78873         rpl_strndup.
78874
78875 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78876             Bruno Haible  <bruno@clisp.org>
78877
78878         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
78879
78880 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78881
78882         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
78883         compile test, for Tru64 4.0D.
78884
78885 2006-05-28  Karl Berry  <karl@gnu.org>
78886
78887         * config/srclist.txt (printf-args.c): lose sync.
78888
78889 2006-05-26  Martin Lambers  <marlam@marlam.de>
78890
78891         * lib/getpass.c: Updates the test for the native W32 API, and adds
78892         missing includes, thus fixing compilation warnings.
78893
78894 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78895
78896         * lib/exclude.c (exclude_fnmatch): New function.
78897         (excluded_file_name): Call exclude_fnmatch.
78898         * lib/exclude.h (excluded_file_name): New prototype
78899
78900 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
78901
78902         * lib/tempname.c (small_open, large_open): New macros.
78903         (__open, __open64) [!_LIBC]: Remove.
78904         (__gen_tempname): Use small_open and large_open instead of __open
78905         and __open64.  This fixes a portability bug on HP-UX 11.11i
78906         reported by Simon Wing-Tang in
78907         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
78908
78909 2006-05-24  Bruno Haible  <bruno@clisp.org>
78910
78911         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
78912         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
78913         Reported by Thorsten Maerz <torte@netztorte.de> via
78914         Aaron Stone <aaron@serendipity.cx>.
78915
78916 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
78919         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
78920         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
78921         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
78922         not really conditional on the cache.
78923         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
78924
78925 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78926
78927         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
78928         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
78929         (my_usleep): Don't mishandle maximum value.
78930
78931 2006-05-19  Jim Meyering  <jim@meyering.net>
78932
78933         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
78934
78935 2006-05-17  Bruno Haible  <bruno@clisp.org>
78936
78937         Cygwin portability.
78938         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
78939
78940 2006-05-17  Bruno Haible  <bruno@clisp.org>
78941
78942         * lib/stdint_.h: Fix recognition of Cygwin.
78943
78944 2006-05-15  Bruno Haible  <bruno@clisp.org>
78945
78946         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
78947         on libtool patch by Ralf Wildenhues.
78948
78949 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78952         test for C99 conformance; (bool) 0.5 is an integer constant
78953         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78954         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78955
78956 2006-05-11  Simon Josefsson  <jas@extundo.com>
78957
78958         * m4/xvasprintf.m4: Fix obvious typo.
78959
78960 2006-05-11  Jim Meyering  <jim@meyering.net>
78961
78962         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78963         James Lemley.
78964
78965 2006-05-10  Simon Josefsson  <jas@extundo.com>
78966
78967         * lib/md4.c: Typo fix, update copyright years.
78968         (K1, K2): Don't use L because it turn computations into 64-bit on
78969         64-bit platforms.
78970
78971 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78974         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78975         unwanted sign propagation, e.g., on hosts with 64-bit int.
78976         There still are some problems with reeelly weird theoretical hosts
78977         (e.g., 33-bit int) but it's not worth worrying about now.
78978         * lib/sha1.c (rol): Likewise.
78979         (K1, K2, K3, K4): Remove unnecessary L suffix.
78980
78981 2006-05-10  Bruno Haible  <bruno@clisp.org>
78982
78983         * lib/des.c: Cast to avoid warnings.
78984
78985 2006-05-09  Bruno Haible  <bruno@clisp.org>
78986
78987         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78988         (Depends-on): Depend also on xsize, stdarg.
78989         (configure.ac): Add gl_XVASPRINTF.
78990
78991 2006-05-09  Bruno Haible  <bruno@clisp.org>
78992
78993         * m4/xvasprintf.m4: New file.
78994
78995 2006-05-09  Bruno Haible  <bruno@clisp.org>
78996
78997         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78998         (EOVERFLOW): Define fallback value.
78999         (xstrcat): New function.
79000         (xvasprintf): Recognize the special case of a string concatenation.
79001
79002 2006-05-08  Eric Blake  <ebb9@byu.net>
79003
79004         * gnulib-tool (func_version): Base copyright year on CVS date.
79005         (func_emit_copyright_notice): New function.
79006         (func_emit_lib_Makefile_am): Use it.
79007         (func_emit_tests_Makefile_am): Likewise.
79008         (func_import): Likewise.
79009
79010 2006-05-08  Bruno Haible  <bruno@clisp.org>
79011
79012         * modules/stdarg: New file.
79013         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79014
79015 2006-05-08  Bruno Haible  <bruno@clisp.org>
79016
79017         * m4/stdarg.m4: New file, from GNU gettext.
79018
79019 2006-05-08  Bruno Haible  <bruno@clisp.org>
79020
79021         * config/srclist.txt (build-aux/config.rpath): different from latest
79022         release.
79023
79024 2006-05-08  Bruno Haible  <bruno@clisp.org>
79025
79026         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79027
79028 2006-05-05  Jim Meyering  <jim@meyering.net>
79029
79030         * m4/warning.m4: New file, derived from bison's file by the same name.
79031
79032 2006-05-03  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/stdint_.h: Shorter URL.
79035         * lib/inttypes.h: Likewise.
79036
79037 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79040
79041 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79042
79043         * lib/verify.h: Document the internals better.  Most of this change
79044         was written by Bruno Haible.
79045
79046 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * doc/verify.texi: New file, partly based on a proposal by
79049         Bruno Haible.
79050
79051 2006-05-02  Bruno Haible  <bruno@clisp.org>
79052
79053         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79054         test from here...
79055         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79056
79057 2006-04-29  Bruno Haible  <bruno@clisp.org>
79058
79059         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79060         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79061
79062 2006-04-29  Bruno Haible  <bruno@clisp.org>
79063
79064         * gnulib-tool: Make --update option actually work.
79065
79066 2006-04-29  Bruno Haible  <bruno@clisp.org>
79067
79068         * doc/gcd.texi: New file.
79069         * doc/gnulib.texi: Include it.
79070
79071 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * lib/getdate.y (get_date): When adding relative date, start with the
79074         initial time, not with the result of the first mktime call.
79075
79076 2006-04-25  Bruno Haible  <bruno@clisp.org>
79077
79078         * gnulib-tool (func_import): Output the include directives in three
79079         blocks, sorted separately.
79080         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79081
79082 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79085         to define main with arguments, for C++.  Reported by Eric Blake.
79086         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79087         Prefer 'int main ()' to 'int main (void)', for C++.
79088         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79089         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79090         for 'main', for C99 and C++.
79091
79092 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79095         Don't assume that exit status -1 is valid.
79096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79097         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79098         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79099         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79100         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79101         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79102         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79103         functions can be used without declaring them, or that you can
79104         exit with status -1.
79105         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79106
79107 2006-04-24  Karl Berry  <karl@gnu.org>
79108
79109         * config/srclist.txt (longdouble.m4): sync lost.
79110
79111 2006-04-24  Eric Blake  <ebb9@byu.net>
79112
79113         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79114
79115 2006-04-24  Bruno Haible  <bruno@clisp.org>
79116
79117         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79118         poll() implementation in AIX.
79119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79120
79121 2006-04-24  Bruno Haible  <bruno@clisp.org>
79122
79123         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79124         assigned exactly once.
79125
79126 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79127             Bruno Haible  <bruno@clisp.org>
79128
79129         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79130         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79131         for AM_CPPFLAGS.
79132
79133 2006-04-23  Bruno Haible  <bruno@clisp.org>
79134
79135         * modules/copy-file: Depend on unistd.
79136         * modules/execute: Likewise.
79137         * modules/fatal-signal: Likewise.
79138         * modules/findprog: Likewise.
79139         * modules/mkdtemp : Likewise.
79140         * modules/pipe: Likewise.
79141         * modules/wait-process: Likewise.
79142
79143 2006-04-23  Bruno Haible  <bruno@clisp.org>
79144
79145         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79146         condition was already detected.
79147         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79148
79149 2006-04-23  Bruno Haible  <bruno@clisp.org>
79150
79151         * lib/copy-file.c: Include <unistd.h> unconditionally.
79152         * lib/execute.c: Likewise.
79153         * lib/fatal-signal.c: Likewise.
79154         * lib/findprog.c: Likewise.
79155         * lib/mkdtemp.c: Likewise.
79156         * lib/pipe.h: Likewise.
79157         * lib/pipe.c: Likewise.
79158         * lib/wait-process.h: Likewise.
79159
79160 2006-04-23  Bruno Haible  <bruno@clisp.org>
79161
79162         * gnulib-tool (func_usage): Fix --import description. Document
79163         --update.
79164         (func_import): Create temporary file in a temporary directory, if
79165         --dry-run is specified. Silence errors from 'grep' when there are no
79166         m4 files in $m4dir.
79167         (func_create_testdir): Silence errors from 'grep' when there are no
79168         m4 files in $m4dir.
79169         Reported by Karl Berry <karl@freefriends.org>.
79170
79171 2006-04-20  Bruno Haible  <bruno@clisp.org>
79172
79173         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79174         one argument, so that the code will be portable to Autoconf 2.60.
79175         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79176         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79177         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79178
79179 2006-04-19  Derek Price  <derek@ximbiot.com>
79180             Eric Blake  <ebb9@byu.net>
79181
79182         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79183         rather than "/full/path.h".  Update comment to match.  Shorten &
79184         generalize m4_translit call via AS_TR_CPP.
79185
79186 2006-04-19  Derek Price  <derek@ximbiot.com>
79187             Eric Blake  <ebb9@byu.net>
79188
79189         * lib/inttypes.h: Correct grammar in comment.
79190
79191 2006-04-18  Derek Price  <derek@ximbiot.com>
79192             Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * modules/inttypes: New file.
79195         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79196
79197 2006-04-18  Derek Price  <derek@ximbiot.com>
79198             Paul Eggert  <eggert@cs.ucla.edu>
79199
79200         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79201         New files.
79202
79203 2006-04-18  Derek Price  <derek@ximbiot.com>
79204             Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * lib/inttypes.h: New file.
79207         * lib/strtoimax.c: Assume <inttypes.h>.
79208
79209 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79212         isn't mounted.  Problem reported by Kir Kolyshkin.
79213
79214 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79215
79216         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79217         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79218         Derek R. Price.
79219         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79220         implementation.
79221
79222 2006-04-12  Eric Blake  <ebb9@byu.net>
79223
79224         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79225         is now done automatically by the corresponding Autoconf macro.
79226
79227 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79228
79229         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79230         time_r.h.
79231
79232 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         Merge regex changes from libc, removing some of our
79235         POSIX-conformance changes that were rejected and redoing them in a
79236         less-intrusive way.
79237
79238         * lib/regcomp.c (re_compile_internal, init_dfa):
79239         Length arg is now size_t, not Idx.  All uses changed.
79240         (peek_token): Forward decl now says internal_function.
79241         (__re_error_msgid, __re_error_msgid_idx):
79242         Now static rather than extern with attribute_hidden.
79243         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79244         For some reason libc prefers K&R style defns for external functions.
79245         (regerror) [!defined _LIBC]: Likewise.
79246         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79247         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79248         (build_range_exp, build_collating_symbol):
79249         Use K&R-style defn.
79250         (re_compile_fastmap): Use '\0' to memset, not 0.
79251         (utf8_sb_map): Make the calculations more obvious.
79252         (init_dfa, parse_bracket_exp, build_charclass_op):
79253         Call calloc and cast result, as glibc does.
79254         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79255         (build_range_exp, build_collating_symbol):
79256         Now internal functions.
79257
79258         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79259
79260         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79261         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79262         Don't depend on VMS; depend on __VMS instead, for POSIX
79263         namespace cleanness.
79264         (regoff_t): Define to ssize_t, not long int.
79265
79266         Remove the REG_ macros named below.  Instead, make the old names
79267         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79268         __USE_GNU_REGEX.
79269         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79270         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79271         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79272         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79273         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79274         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79275         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79276         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79277         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79278         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79279         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79280         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79281         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79282         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79283         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79284         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79285         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79286         (REG_NREGS):
79287         Remove.  All uses replaced by the old RE_* names.
79288         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79289         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79290         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79291         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79292         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79293         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79294         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79295         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79296         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79297         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79298         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79299         Don't bother having these macros be independent of each others'
79300         values, since they no longer exist in the POSIX name space.
79301
79302         Rename the following member names back to their old names,
79303         unless !__USE_GNU_REGEX.  All uses changed back.
79304         (buffer): Renamed from re_buffer.
79305         (allocated): Renamed from re_allocated.
79306         (used): Renamed from re_used.
79307         (syntax): Renamed from re_syntax.
79308         (fastmap): Renamed from re_fastmap.
79309         (translate): Renamed from re_translate.
79310         (can_be_null): Renamed from re_can_be_null.
79311         (regs_allocated): Renamed from re_regs_allocated.
79312         (fastmap_accurate): Renamed from re_fastmap_accurate.
79313         (no_sub): Renamed from re_no_sub.
79314         (not_bol): Renamed from re_not_bol.
79315         (not_eol): Renamed from re_not_eol.
79316         (newline_anchor): Renamed from re_newline_anchor.
79317         (num_regs): Renamed from rm_num_regs.
79318         (start): Renamed from rm_start.
79319         (end): Renamed from rm_end.
79320
79321         (free_state): Move up a bit.
79322
79323         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79324         #define to be empty.
79325         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79326         when that is what is intended.
79327         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79328         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79329         (MAX): New macro.
79330         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79331         All uses changed back to re_malloc, etc.  It's now the caller's
79332         responsibility to check for overflow; all callers changed.
79333         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79334         (re_x2nrealloc): Remove.
79335         (free_state): Remove decl.
79336
79337         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79338         (re_set_registers, re_exec):
79339         Use K&R-style defn.
79340
79341         2006-01-31  Roland McGrath  <roland@redhat.com>
79342
79343         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79344         Reported by Mike Frysinger <vapier@gentoo.org>.
79345
79346         2006-01-15  Andreas Jaeger  <aj@suse.de>
79347
79348         [BZ #1950]
79349         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79350         build_wcs_upper_buffer change.
79351         (build_wcs_upper_buffer): Change return type.
79352
79353         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79354
79355         * lib/regex_internal.h: Include <stdint.h> if available.
79356
79357         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79358
79359         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79360
79361         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79362
79363         * lib/regcomp.c: Adjust for changed secondary hash function.
79364
79365         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79366
79367         * lib/regex.h: Pretty printing.
79368         Clean up namespace a bit.
79369
79370         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79371
79372         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79373         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79374
79375         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79376                     Ulrich Drepper  <drepper@redhat.com>
79377
79378         [BZ #1302]
79379         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79380         changed.
79381         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79382
79383         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79384
79385         [BZ #281]
79386         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79387         * lib/regcomp.c: Remove unnecessary uses of
79388         unsigned RE_TRANSLATE_TYPE.
79389         * lib/regex_internal.h: Likewise.
79390         * lib/regex_internal.c: Likewise.
79391         * lib/regexec.c: Likewise.
79392         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79393
79394         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79395
79396         * lib/regexec.c (find_recover_state): Remove unnecessary
79397         initialization.
79398         (transit_state_bkref): Make DFA a const pointer.
79399         (get_subexp): Likewise.
79400         (check_arrival): Likewise.
79401         (update_cur_sifted_state): Likewise.
79402         (re_search_internal): Likewise.
79403         (prune_impossible_nodes): Likewise.
79404         (acquire_init_state_context): Likewise.
79405         (proceed_next_node): Likewise.
79406         (set_regs): Likewise.
79407         (free_fail_stack_return): Likewise.
79408         (check_arrival_expand_ecl): Mark DFA parameter as const.
79409         (check_arrival_expand_ecl_sub): Likewise.
79410         (check_subexp_limits): Likewise.
79411         (sub_epsilon_src_nodes):  Likewise.
79412         (add_epsilon_src_nodes):  Likewise.
79413         (merge_state_array): Likewise.
79414         (update_regs): Likewise.
79415         (build_trtable): Likewise.
79416         (sift_states_backward): Mark MCTX parameter as const.
79417         (build_sifted_states): Likewise.
79418         (update_cur_sifted_state): Likewise.
79419         (sift_states_mkref): Likewise.
79420         (check_arrival_expand_ecl): Mark eclosure as const.
79421         (check_dst_limits_calc_pos_1): Likewise.
79422         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79423         pointer.
79424
79425         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79426
79427         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79428         (transit_state_sb): Likewise.
79429         (transit_state_mb): Likewise.
79430         (sift_states_iter_mb): Likewise.
79431         (check_arrival_add_next_nodes): Likewise.
79432         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79433         [_LIBC] (re_search_2_stub): Use mempcpy.
79434
79435         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79436         mbrtowc for very simple UTF-8 case.
79437
79438         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79439         a pointer-to-const.
79440         (re_acquire_state_context): Likewise.
79441         * lib/regex_internal.h: Adjust prototypes.
79442
79443         * lib/regex.c: Prevent using C++ compilers.
79444
79445         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79446         (re_acquire_state_context): Likewise.
79447
79448 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         * modules/regex (Depends-on): Add ssize_t.
79451
79452 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79455         translation table.
79456
79457 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79458
79459         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79460
79461 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79462             Bruno Haible  <bruno@clisp.org>
79463
79464         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79465         <sys/types.h> and <inttypes.h>.
79466
79467 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79468
79469         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79470         `__error_t_defined', so argp.h will not typedef the former.
79471
79472 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79475         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79476         glibc names.  Even if glibc is changed to conform to POSIX, the
79477         traditional names will be available anyway, since regex depends on
79478         the extensions module.  Also, fix a longstanding typo in the
79479         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79480         reported by Emanuele Giaquinta.  Also, change sense of cached
79481         variable, so that the message makes sense.
79482
79483 2006-03-24  Simon Josefsson  <jas@extundo.com>
79484
79485         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79486         including some doc fixes.
79487         (base64_encode_alloc): Fix +1 bug on allocation failures.
79488
79489 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79490
79491         * lib/base64.c (base64_encode): Do not read past end of array with
79492         unsanitized input on systems with CHAR_BIT > 8.
79493
79494 2006-03-24  Eric Blake  <ebb9@byu.net>
79495
79496         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79497
79498 2006-03-22  Karl Berry  <karl@gnu.org>
79499
79500         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79501         * config/srclistvars.sh (COREUTILS): new var.
79502
79503 2006-03-17  Jim Meyering  <jim@meyering.net>
79504
79505         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79506         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79507
79508 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79509
79510         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79511         no longer needs it.  Instead, check that regoff_t is as least
79512         as wide as ptrdiff_t.
79513
79514         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79515         so that our regex.h stays compatible with the installed regex.
79516         This is helpful for installers who configure --without-included-regex.
79517         Problem reported by Emanuele Giaquinta.
79518
79519 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79520
79521         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79522         Typedef to long int, not to off_, as POSIX will likely change
79523         in that direction.
79524
79525 2006-03-15  Eric Blake  <ebb9@byu.net>
79526
79527         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79528
79529 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79530
79531         * lib/argp-help.c (validate_uparams): Fix typo
79532         * lib/argp-parse.c (argp_default_options): Consistently begin help
79533         messages with a lowercase letter.
79534
79535 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79536
79537         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79538         overrun buffers and shouldn't be used (much as gets shouldn't be
79539         used).
79540         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79541
79542 2006-03-08  Simon Josefsson  <jas@extundo.com>
79543
79544         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79545         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79546
79547 2006-03-08  Simon Josefsson  <jas@extundo.com>
79548
79549         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79550         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79551
79552 2006-03-08  Simon Josefsson  <jas@extundo.com>
79553
79554         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79555         signal that configure disabled the device.
79556
79557 2006-03-08  Simon Josefsson  <jas@extundo.com>
79558
79559         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79560         languages.
79561
79562 2006-03-07  Simon Josefsson  <jas@extundo.com>
79563
79564         * modules/getopt (Depends-on): Add unistd.
79565
79566         * modules/unistd: New file.
79567
79568 2006-03-07  Simon Josefsson  <jas@extundo.com>
79569
79570         * modules/gc-random: New file.
79571
79572 2006-03-07  Simon Josefsson  <jas@extundo.com>
79573
79574         * m4/unistd_h.m4: New file.
79575
79576 2006-03-07  Simon Josefsson  <jas@extundo.com>
79577
79578         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79579         test to be side-effect free by storing the result in the cache
79580         variable gl_cv_lib_readline, and moving the assignment of
79581         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79582         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79583
79584 2006-03-07  Simon Josefsson  <jas@extundo.com>
79585
79586         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79587         error on missing devices (the functions will return an error).
79588
79589         * m4/gc.m4: Move random stuff to gc-random.m4
79590
79591 2006-03-07  Simon Josefsson  <jas@extundo.com>
79592
79593         * lib/unistd_.h: New file.
79594
79595 2006-03-07  Simon Josefsson  <jas@extundo.com>
79596
79597         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79598
79599 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79602         Problem reported by Juan Manuel Guerrero.
79603
79604 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79605
79606         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79607         the unistd module.
79608         * lib/getlogin_r.c: Likewise.
79609         * lib/getlogin_r.h: Likewise.
79610         * lib/glob.c: Likewise.
79611         * lib/pagealign_alloc.c: Likewise.
79612         * lib/unistd_.h: Remove; no longer needed.
79613
79614 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79617         Add unistd.
79618         * modules/c-stack (Depends-on): Add unistd.
79619         * modules/getlogin_r: Likewise.
79620         * modules/glob: Likewise.
79621         * modules/pagealign_alloc: Likewise.
79622         * modules/unistd (Files): Remove lib/unistd_.h.
79623         (EXTRA_DIST): Remove.
79624         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79625         need unistd_.h.
79626         (MOSTLYCLEANFILES): Remove unistd.h-t.
79627
79628 2006-03-03  Simon Josefsson  <jas@extundo.com>
79629
79630         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79631
79632 2006-03-03  Simon Josefsson  <jas@extundo.com>
79633
79634         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79635         libidn and bison.
79636
79637 2006-03-03  Simon Josefsson  <jas@extundo.com>
79638
79639         * build-aux/maint.mk: Add indent target.
79640
79641 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79642
79643         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79644         our replacement poll.h in any case, to avoid a differing
79645         declaration from a system header.  Seen on AIX.
79646
79647 2006-03-01  Simon Josefsson  <jas@extundo.com>
79648
79649         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79650         <kasal@ucw.cz>.
79651
79652 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79653
79654         * modules/gettime (Depends-on): Add extensions module.
79655         * modules/nanosleep (Depends-on): Likewise.
79656         * modules/settime (Depends-on): Likewise.
79657
79658 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79661         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79662         pedantically.
79663         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79664         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79665
79666         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79667         not "==".  Reported by Ralf Wildenhues.
79668
79669 2006-03-01  Karl Berry  <karl@gnu.org>
79670
79671         * doc/Copyright/request-*: new files, synced from gnuorg.
79672
79673 2006-03-01  Karl Berry  <karl@gnu.org>
79674
79675         * config/srclist.txt (Copyright/*): new entries.
79676
79677 2006-02-28  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79680
79681 2006-02-27  Simon Josefsson  <jas@extundo.com>
79682
79683         * lib/base64.h: Indent #define's.  From Jim Meyering
79684         <jim@meyering.net>.
79685
79686 2006-02-27  Jim Meyering  <jim@meyering.net>
79687
79688         Revert the change of 2006-02-24, so these files can continue
79689         to be sync'd from gettext.
79690         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79691         of `config.h'.
79692
79693 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * modules/intprops: New file.
79696         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79697         Add intprops.
79698         * modules/getloadavg (Files): Remove lib/intprops.h.
79699         (Depends-on): Add intprops.
79700         * modules/human: Likewise.
79701         * modules/inttostr: Likewise.
79702         * modules/openat: Likewise.
79703         * modules/sig2str: Likewise.
79704         * modules/userspec: Likewise.
79705         * modules/utimecmp: Likewise.
79706         * modules/xnanosleep: Likewise.
79707         * modules/xstrtol: Likewise.
79708
79709 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79710
79711         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79712         * modules/lock-tests (TESTS): Use $(EXEEXT).
79713         * modules/tls-tests: Likewise.
79714         * modules/argp-tests: Likewise.
79715         (check_PROGRAMS): New var, replacing...
79716         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79717
79718 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79719
79720         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79721         `config.h'.
79722
79723 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79724
79725         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79726
79727 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79728
79729         Sync from coreutils.
79730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79731         gl_CHDIR_SAFER.
79732
79733 2006-02-22  Jim Meyering  <jim@meyering.net>
79734
79735         Sync from coreutils.
79736         * m4/chdir-safer.m4: New file.
79737
79738 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79741         AT_FDCWD exceeds INT_MAX.
79742         * lib/openat.h (AT_FDCWD): Likewise.
79743
79744 2006-02-17  Eric Blake  <address@hidden>
79745
79746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79747
79748 2006-02-16  Simon Josefsson  <jas@extundo.com>
79749
79750         * modules/getaddrinfo (Depends-on): Add sys_socket.
79751
79752 2006-02-15  Simon Josefsson  <jas@extundo.com>
79753
79754         * build-aux/maint.mk: Add dsyntax-check rule.
79755
79756 2006-02-15  Eric Blake  <ebb9@byu.net>
79757
79758         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79759         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79760         'present but cannot compile' warnings on cygwin.
79761         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79762         use ws2tcpip.h if sys/socket.h works.
79763         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79764         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79765
79766 2006-02-14  Simon Josefsson  <jas@extundo.com>
79767
79768         * modules/maintainer-makefile (Files): Rename.
79769
79770         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79771         and (the local) Makefile.cfg to maint-cfg.mk.
79772
79773         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79774         to the latter.
79775
79776         * modules/maintainer-makefile: New module.
79777
79778         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79779         severaly stripped to make it possible to build it up from scratch
79780         with reliable tests.
79781
79782         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79783         fixes to permit overriding the default actions when configure and
79784         makefile are not available.
79785
79786 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         Sync from coreutils.
79789         * modules/lstat (Depends-on): Don't depend on xalloc.
79790         (License): Change from GPL to LGPL, since this is now simply a
79791         replacement for a libc function.
79792
79793 2006-02-14  Jim Meyering  <jim@meyering.net>
79794
79795         Sync from coreutils.
79796
79797         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79798         failure on deficient systems, and simplify gnulib lgpl dependencies.
79799         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79800         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79801
79802         * lib/xalloc-die.c: Remove unused definition of N_.
79803
79804 2006-02-14  Jim Meyering  <jim@meyering.net>
79805
79806         Sync from coreutils.
79807         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79808         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79809         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79810         double-quote uses of that variable, to accommodate the rare case in
79811         which getmntent is available in none of the libraries checked.  This
79812         happens at least on FreeBSD 5.0.
79813
79814 2006-02-13  Simon Josefsson  <jas@extundo.com>
79815
79816         * gnulib-tool (Usage): Fix --import, from
79817         karl@freefriends.org (Karl Berry).
79818
79819 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79820
79821         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
79822
79823 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
79824
79825         * lib/argp-namefrob.h: Restore changes accidentally lost during the
79826         "autoupdate" on 2005-12-12.
79827
79828 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79829
79830         * modules/closeout (Depends-on): Remove atexit.
79831
79832 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
79833
79834         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
79835         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
79836
79837 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
79838
79839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
79840         __EXTENSIONS__ if this causes compilation to fail.  Problem
79841         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
79842         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
79843
79844 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
79847         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
79848         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
79849         All uses changed.
79850
79851 2006-01-26  Simon Josefsson  <jas@extundo.com>
79852
79853         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
79854         prototype is visible on mingw32.
79855
79856         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
79857         for mingw32.
79858
79859         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
79860         mingw32).
79861
79862 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
79865         attempt to open for write; this always fails, at least on POSIX
79866         hosts.  This reinstates the 2006-01-09 change, which was
79867         inadvertently removed.
79868
79869 2006-01-26  Bruno Haible  <bruno@clisp.org>
79870
79871         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
79872         Reported by Paul Eggert.
79873
79874 2006-01-26  Bruno Haible  <bruno@clisp.org>
79875             Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * lib/stdbool_.h (_Bool)
79878         [(! (defined __cplusplus || defined __BEOS__)
79879           && !defined __GNUC__
79880           && !(defined __HP_cc || defined __xlc__
79881                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
79882                || defined __sgi))]:
79883         #define to signed char in these cases too; this simplifies
79884         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
79885         etc., separately) and makes it more conservative.
79886
79887 2006-01-25  Simon Josefsson  <jas@extundo.com>
79888
79889         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
79890         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
79891         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
79892
79893 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79894
79895         * lib/argp-namefrob.h: Bugfix. Remove stray #
79896
79897 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
79900         so that we test the test.
79901         Check for yet another HP-UX cc bug involving *bool |= bool.
79902
79903 2006-01-25  Karl Berry  <karl@gnu.org>
79904
79905         * config/srclist.txt (vasnprintf.c): sync lost.
79906
79907 2006-01-25  Jim Meyering  <jim@meyering.net>
79908
79909         Sync from the stable (b5) branch of coreutils:
79910
79911         * lib/fts.c (fts_children): Don't let close() clobber errno from
79912         failed fchdir().
79913
79914         * lib/fts.c (fts_stat): When following a symlink-to-directory,
79915         don't necessarily interpret stat-fails+lstat-succeeds as indicating
79916         a dangling symlink.  That can also happen at least for ELOOP.
79917         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
79918         FYI, this bug predates the inclusion of fts.c in coreutils.
79919
79920         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
79921         in their own block, so pre-c99 compilers don't object.
79922
79923         Avoid the double-free (first in fts_read, second in fts_close) that
79924         would occur when an `active' directory is made inaccessible (e.g.,
79925         via chmod a-x) during a traversal.
79926         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79927         before returning.  Reproduce this failure by
79928         mkdir -p a/b; cd a; chmod a-x . b
79929         Reported by Stavros Passas.
79930
79931 2006-01-25  Jim Meyering  <jim@meyering.net>
79932
79933         * lib/fileblocks.c: Remove more useless parentheses.
79934         * lib/readutmp.h: Likewise.
79935
79936 2006-01-25  Bruno Haible  <bruno@clisp.org>
79937
79938         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
79939         warnings.
79940         Reported by Paul Eggert.
79941
79942 2006-01-25  Bruno Haible  <bruno@clisp.org>
79943
79944         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
79945         rid of a trap command. For Solaris sh.
79946         Reported by Mark D. Baushke <mdb@gnu.org>.
79947
79948 2006-01-24  Simon Josefsson  <jas@extundo.com>
79949
79950         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79951         Bruno.
79952
79953 2006-01-24  Karl Berry  <karl@gnu.org>
79954
79955         * config/srclist.txt (argp-namefrob.h): sync lost.
79956
79957 2006-01-24  Jim Meyering  <jim@meyering.net>
79958
79959         * modules/openat (Files): Add lib/intprops.h.
79960         From Mark D. Baushke.
79961
79962 2006-01-24  Jim Meyering  <jim@meyering.net>
79963
79964         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79965         Reported by Mark D. Baushke.
79966
79967 2006-01-24  Jim Meyering  <jim@meyering.net>
79968
79969         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79970
79971 2006-01-24  Bruno Haible  <bruno@clisp.org>
79972
79973         * modules/strnlen (Maintainer): Change from glibc to all.
79974
79975 2006-01-24  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79978         Patch by Paul Eggert.
79979
79980 2006-01-24  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79983         already has it.
79984         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79985         2005-11-26.
79986
79987         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79988         'signed char' to avoid problems with the built-in _Bool type.
79989         Reported by Paul Eggert on 2005-11-26.
79990
79991 2006-01-24  Bruno Haible  <bruno@clisp.org>
79992
79993         * gnulib-tool (func_import): Avoid constructing complicated sed
79994         expressions inside backquote.
79995         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79996
79997 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79998
79999         These changes imported from libc.
80000         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80001         test and two separate function calls.
80002         * lib/strndup.c (__strndup): Add libc_hidden_def.
80003
80004 2006-01-23  Simon Josefsson  <jas@extundo.com>
80005
80006         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80007         Remove the test_*_SOURCES variable: automake infers it by default.
80008         * modules/tls-tests: Likewise.
80009
80010 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         Work around porting bugs reported by Dieter in
80013         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80014         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80015         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80016         Include "getopt.h" first, to check interface.
80017         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80018         !HAVE_DECL_GETENV.
80019         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80020         (__strndup): Revert to K&R-style function dfns, the glibc style.
80021         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80022         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80023         Include strnlen.h first, to get prototype properly.
80024         (strnlen): Renamed from __strnlen.
80025         Remove weak alias.
80026
80027 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80028
80029         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80030
80031 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         * config/srclist.txt: Adjust to reflect glibc reorganization.
80034         This affects only comments.
80035
80036 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80037
80038          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80039          Reported by Bruce Korb <bkorb@gnu.org>.
80040
80041 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80044         to pacify gcc -Wswitch-default.
80045
80046 2006-01-22  Bruno Haible  <bruno@clisp.org>
80047
80048         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80049         temporary buffer for sprintf, take into account the precision also
80050         for 'd', 'i', 'u', 'o', 'x', 'X'.
80051
80052 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80053
80054         * modules/argp-tests: New module
80055         * tests/test-argp.c: New file
80056         * tests/test-argp-2.sh: New file
80057
80058 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80059
80060         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80061         (__argp_base_name): Removed
80062         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80063         typo.
80064         (__argp_base_name): Provide macro definition or extern declaration
80065         depending on the configuration
80066
80067 2006-01-20  Simon Josefsson  <jas@extundo.com>
80068
80069         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80070
80071 2006-01-20  Simon Josefsson  <jas@extundo.com>
80072
80073         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80074
80075 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80078         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80079         Suggested by Bruno Haible.
80080
80081 2006-01-20  Karl Berry  <karl@gnu.org>
80082
80083         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80084         until changes propagate, I guess.
80085
80086 2006-01-19  Simon Josefsson  <jas@extundo.com>
80087
80088         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80089
80090 2006-01-19  Simon Josefsson  <jas@extundo.com>
80091
80092         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80093
80094 2006-01-19  Simon Josefsson  <jas@extundo.com>
80095
80096         * gnulib-tool: Set check_PROGRAMS.
80097
80098         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80099         modules/des-tests, modules/gc-arcfour-tests,
80100         modules/gc-arctwo-tests, modules/gc-des-tests,
80101         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80102         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80103         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80104         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80105         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80106         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80107         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80108         test_*_SOURCES.
80109
80110 2006-01-18  Simon Josefsson  <jas@extundo.com>
80111
80112         * modules/socklen (Depends-on): Depend on sys_socket.
80113
80114 2006-01-18  Simon Josefsson  <jas@extundo.com>
80115
80116         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80117         modules/des-tests, modules/gc-arcfour-tests,
80118         modules/gc-arctwo-tests, modules/gc-des-tests,
80119         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80120         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80121         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80122         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80123         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80124         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80125         $(EXEEXT) to automake TESTS variable, for mingw32.
80126
80127 2006-01-17  Simon Josefsson  <jas@extundo.com>
80128
80129         * modules/socklen (Include): Need sys/socket.h.
80130
80131 2006-01-17  Bruno Haible  <bruno@clisp.org>
80132
80133         * modules/ssize_t (Include): Add <sys/types.h>.
80134
80135 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80138         it's not portable and it doesn't work with cross-compiles.
80139         Problem reported by Bruno Haible.  Fix missing-$ typo in
80140         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80141         -zignore from being used with Sun's C compiler.
80142
80143 2006-01-12  Simon Josefsson  <jas@extundo.com>
80144
80145         * lib/base64.c: Fix warning, reported by Bruno Haible
80146         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80147
80148 2006-01-12  Bruno Haible  <bruno@clisp.org>
80149
80150         * modules/ldd: New file.
80151         * build-aux/ldd.sh.in: New file.
80152         * MODULES.html.sh (Support for building libraries and executables): Add
80153         ldd.
80154
80155 2006-01-12  Bruno Haible  <bruno@clisp.org>
80156
80157         * m4/ldd.m4: New file.
80158
80159 2006-01-12  Bruno Haible  <bruno@clisp.org>
80160
80161         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80162         endless loop while replacing $auxdir with build-aux.
80163
80164 2006-01-11  Simon Josefsson  <jas@extundo.com>
80165
80166         * lib/stdint_.h (SIZE_MAX): Add missing (.
80167
80168 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         Sync from coreutils.
80171         * lib/md5.c: Fix commentary typos.
80172         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80173         * lib/md5.h (__attribute__): Remove; unused.
80174         * lib/sha1.c: Fix commentary to match md5 better.
80175         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80176         so that we don't need to worry about alignment.  All uses changed.
80177         This merges the 2005-10-28 md5 change into sha1.
80178
80179 2006-01-11  Jim Meyering  <jim@meyering.net>
80180
80181         Sync from coreutils.
80182         * lib/md5.c (OP): Fix spacing.
80183
80184 2006-01-11  Bruno Haible  <bruno@clisp.org>
80185
80186         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80187         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80188         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80189
80190 2006-01-11  Bruno Haible  <bruno@clisp.org>
80191
80192         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80193         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80194         the "early" section as well.
80195
80196 2006-01-11  Bruno Haible  <bruno@clisp.org>
80197
80198         Avoid "ar: no archive members specified" error on MacOS X.
80199         * gnulib-tool (func_modules_add_dummy): New function.
80200         (func_import, func_create_testdir): Invoke it.
80201
80202 2006-01-11  Bruno Haible  <bruno@clisp.org>
80203
80204         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80205         with $auxdir in AC_CONFIG_FILES statements.
80206
80207 2006-01-11  Bruno Haible  <bruno@clisp.org>
80208
80209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80210         Initialize also noinst_HEADERS to empty.
80211
80212 2006-01-11  Bruno Haible  <bruno@clisp.org>
80213
80214         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80215         variables.
80216         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80217         autoreconf.
80218
80219 2006-01-11  Bruno Haible  <bruno@clisp.org>
80220
80221         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80222         overridable by the user.
80223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80224
80225 2006-01-10  Simon Josefsson  <jas@extundo.com>
80226
80227         * modules/sys_socket: New file.
80228
80229 2006-01-10  Simon Josefsson  <jas@extundo.com>
80230
80231         * m4/sys_socket_h.m4: New file.
80232
80233 2006-01-10  Simon Josefsson  <jas@extundo.com>
80234
80235         * lib/socket_.h: New file.
80236
80237 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         * modules/readutmp (Maintainer): Add myself.
80240
80241 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80242
80243         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80244         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80245         People who are still concerned with buggy memcmp implementations
80246         can invoke gl_FUNC_MEMCMP themselves.
80247
80248 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80249
80250         * lib/regex_internal.h (BITSET_WORD_BITS):
80251         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80252         preprocessor mishandles large unsigned values as if they were signed.
80253         Problem reported by Claudio Fontana in
80254         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80255
80256 2006-01-10  Jim Meyering  <jim@meyering.net>
80257
80258         Avoid the double-free (first in fts_read, second in fts_close) that
80259         would occur when an `active' directory is made inaccessible (e.g.,
80260         via chmod a-x) during a traversal.
80261         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80262         before returning.  Reproduce this failure by
80263         mkdir -p a/b; cd a; chmod a-x . b
80264         Reported by Stavros Passas.
80265
80266         Sync from coreutils.
80267         * lib/sha1.c: Tweak grammar in a comment.
80268
80269 2006-01-10  Jim Meyering  <jim@meyering.net>
80270
80271         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80272         Patch by Joerg Sonnenberger.
80273
80274 2006-01-10  Bruno Haible  <bruno@clisp.org>
80275
80276         * modules/readutmp: Depend on module free.
80277         * modules/strtok_r: Depend on module restrict.
80278
80279 2006-01-10  Bruno Haible  <bruno@clisp.org>
80280
80281         * modules/gettext (configure.ac): Add an invocation of
80282         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80283
80284 2006-01-10  Bruno Haible  <bruno@clisp.org>
80285
80286         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80287         Reported by Werner Lemberg <wl@gnu.org>.
80288
80289 2006-01-10  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/localcharset.c: Update from GNU gettext.
80292
80293 2006-01-10  Bruno Haible  <bruno@clisp.org>
80294
80295         * lib/argp.h (__const): Remove macro. Use const instead.
80296         * lib/argp-fmtstream.h (__const): Likewise.
80297         * lib/glob_.h (__const): Remove macro.
80298         * lib/glob-libc.h: Use const instead of __const.
80299
80300 2006-01-10  Bruno Haible  <bruno@clisp.org>
80301
80302         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80303         variable.
80304         Needed to avoid an automake error regarding the 'gettext' module.
80305
80306 2006-01-09  Simon Josefsson  <jas@extundo.com>
80307
80308         * modules/inet_ntop (Depends-on): Add restrict.
80309
80310 2006-01-09  Simon Josefsson  <jas@extundo.com>
80311
80312         * modules/gc-rijndael-tests (License): Put under LGPL.
80313
80314         * modules/gc-des-tests (License): Likewise.
80315
80316         * modules/gc-arcfour-tests (License): Likewise.
80317
80318         * modules/gc-arctwo-tests (License): Likewise.
80319
80320         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80321
80322         * modules/gc-hmac-sha1-tests (Files): Likewise.
80323
80324         * modules/gc-hmac-md5-tests (License): Likewise.
80325
80326         * modules/gc-sha1-tests (License): Likewise.
80327
80328         * modules/gc-md5-tests (License): Likewise.
80329
80330         * modules/gc-md4-tests (License): Likewise.
80331
80332         * modules/gc-md2-tests (License): Likewise.
80333
80334         * modules/gc-tests (License): Likewise.
80335
80336         * modules/des-tests (License): Likewise.
80337
80338         * modules/md4-tests (License): Likewise.
80339
80340         * modules/md2-tests (License): Likewise.
80341
80342 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         Sync from coreutils:
80345
80346         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80347         * modules/lib-ignore: New file.
80348         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80349         chdir-safer.m4, lchmod.m4.
80350         * modules/openat: Add mkdirat.c, openat-priv.h.
80351
80352 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         Sync from coreutils.
80355         * m4/lib-ignore.m4: New file.
80356         * m4/lchmod.m4: New file.
80357
80358 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80359
80360         Sync from coreutils.
80361         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80362         for write access: POSIX says that must fail.
80363         * lib/fts.c (diropen): Likewise.
80364         * lib/save-cwd.c (save_cwd): Likewise.
80365         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80366         well, for minor improvements on hosts that lack O_DIRECTORY.
80367         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80368         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80369         Fall back on chown if open failed with EACCES.
80370
80371         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80372         Report an error at compile-time if only a 1-second nominal clock
80373         resolution is found.
80374
80375         * lib/lchmod.h: New file.
80376         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80377         (make_dir_parents): Use lchown rather than chown, and
80378         lchmod rather than chmod.
80379
80380         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80381         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80382         "proc" reported by n0dalus.
80383
80384         * lib/mountlist.c: Include <limits.h>.
80385         (dev_from_mount_options)
80386         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80387         New function.  It no longer assumes "dev=" has the System V meaning
80388         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80389         (read_file_system_list)
80390         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80391         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80392         dev= in that case.
80393
80394         * lib/posixtm.h (PDS_PRE_2000): New macro.
80395         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80396         allow_century.  All usages changed.  Reject dates outside the range
80397         1969-1999 if PDS_PRE_2000 is used.
80398
80399 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         Sync from coreutils.
80402         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80403         (Time of day items): Mention the possibility of leap seconds.
80404         Problem reported by Dr. David Alan Gilbert.
80405
80406 2006-01-09  Jim Meyering  <jim@meyering.net>
80407
80408         Sync from coreutils.
80409
80410         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80411
80412         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80413
80414         * lib/modechange.c (mode_compile): Reject an invalid mode string
80415         that starts with an octal digit.  From Andreas Gruenbacher.
80416
80417         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80418         and dup to open_safer and dup_safer, respectively.
80419         (openat_permissive): Fix typo in comment.
80420
80421         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80422         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80423         (_): Remove; no longer needed.
80424         (openat): Renamed from rpl_openat; no need for rpl_openat
80425         since openat.h renames openat for us.
80426         Replace most of the body with a call to openat_permissive,
80427         to avoid duplicate code.
80428         Port to (probably hypothetical) environments were mode_t is
80429         wider than int.
80430         (openat_permissive): Require mode arg, so that we can check
80431         types better.  Put it just after flags.  Change cwd failure
80432         indicator from pointer-to-bool to pointer-to-errno-value.
80433         All callers changed.
80434         Invoke openat_save_fail and/or openat_restore_fail if
80435         cwd_errno is null, so that openat can call us.
80436         (openat_permissive, fdopendir, fstatat, unlinkat):
80437         Simplify errno handling to avoid some duplicate code,
80438         as it's OK to set errno on success.
80439         * lib/openat.h: Revamp code so that function macros depend on
80440         __OPENAT_PREFIX only, not also on AT_FDCWD.
80441         (openat_ro): Remove.  Caller changed to use openat_permissive.
80442         (openat_permissive): Now a macro, if not a function.
80443         (openat_restore_fail, openat_save_fail): Now always functions,
80444         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80445
80446         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80447         and openat.c.
80448         * lib/mkdirat.c: Include openat-priv.h.
80449         Remove definitions of macros defined therein.
80450         * lib/openat.c: Likewise.
80451
80452         * lib/mkdirat.c (mkdirat): New file and function.
80453         * lib/openat.h (mkdirat): Declare.
80454
80455         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80456
80457         * lib/openat.h (openat_permissive): Declare.
80458         (openat_ro): Define.
80459
80460         * lib/openat.c (EXPECTED_ERRNO): New macro.
80461         (openat_permissive): New function -- used in remove.c rewrite.
80462         (all functions): Set errno just before returning, only if there
80463         was an actual failure.
80464         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80465
80466         Emulate openat-family functions using Linux's procfs, if possible.
80467         Idea and some code based on Ulrich Drepper's glibc changes.
80468
80469         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80470         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80471         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80472         before falling back on save_cwd and restore_cwd.
80473         (fdopendir, fstatat, unlinkat): Likewise.
80474
80475         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80476         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80477
80478         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80479         as second argument to va_arg.  Otherwise, some versions of gcc
80480         warn that `if this code is reached, the program will abort'.
80481
80482 2006-01-09  Jim Meyering  <jim@meyering.net>
80483
80484         Sync from coreutils.
80485         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80486         Require openat-priv.h.
80487
80488 2006-01-09  Bruno Haible  <bruno@clisp.org>
80489
80490         * modules/strnlen (Include): Use strnlen.h.
80491
80492 2006-01-09  Bruno Haible  <bruno@clisp.org>
80493
80494         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80495
80496 2006-01-09  Bruno Haible  <bruno@clisp.org>
80497
80498         * lib/sysexit_.h (EX_OK): New macro.
80499         Suggested by Martin Lambers <marlam@marlam.de>.
80500
80501 2006-01-09  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80504         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80505
80506 2006-01-09  Bruno Haible  <bruno@clisp.org>
80507
80508         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80509         numbers.
80510
80511 2006-01-09  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80514         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80515         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80516         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80517
80518 2006-01-09  Bruno Haible  <bruno@clisp.org>
80519
80520         * build-aux/javacomp.sh.in: New file, moved from lib/.
80521         * modules/javacomp-script (Files): Update.
80522         (configure.ac): Add AC_CONFIG_FILES invocation.
80523         (EXTRA_DIST): Remove variable.
80524
80525         * build-aux/javaexec.sh.in: New file, moved from lib/.
80526         * modules/javaexec (Files): Update.
80527         (configure.ac): Add AC_CONFIG_FILES invocation.
80528         (EXTRA_DIST): Remove javaexec.sh.in.
80529
80530         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80531         * modules/csharpcomp-script (Files): Update.
80532         (configure.ac): Add AC_CONFIG_FILES invocation.
80533         (EXTRA_DIST): Remove variable.
80534
80535         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80536         * modules/csharpexec (Files): Update.
80537         (configure.ac): Add AC_CONFIG_FILES invocation.
80538         (EXTRA_DIST): Remove csharpexec.sh.in.
80539
80540 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80541
80542         Sync from coreutils.
80543
80544         Add POSIX ACL support
80545         * lib/acl.h (copy_acl, set_acl): Add declarations.
80546         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80547         systems other than Linux.
80548         (chmod_or_fchmod): New function: use fchmod when possible,
80549         and chmod otherwise.
80550         (file_has_acl): Add a POSIX ACL implementation, with a
80551         Linux-specific subcase.
80552         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80553         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80554         acls are unsupported.
80555         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80556         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80557         are unsupported.
80558
80559 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80560
80561         Sync from coreutils.
80562         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80563
80564 2006-01-07  Bruno Haible  <bruno@clisp.org>
80565
80566         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80567         gl_EARLY.
80568
80569 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80570
80571         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80572         Problem reported for Mingw by Mark Junker.
80573
80574 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80575
80576         * README: Gnulib normally doesn't generate a tarball.
80577
80578 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80579
80580         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80581         long int, not int, for nanosecond counts, so that people who are
80582         used to POSIX struct timespec won't be surprised.  Reported by Jim
80583         Meyering.
80584
80585 2005-12-28  Bruno Haible  <bruno@clisp.org>
80586
80587         * build-aux/config.rpath: Update from GNU gettext.
80588
80589 2005-12-16  Jim Meyering  <jim@meyering.net>
80590
80591         * modules/fprintftime: New module.
80592         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80593
80594 2005-12-16  Jim Meyering  <jim@meyering.net>
80595
80596         * m4/fprintftime.m4: New file.
80597
80598 2005-12-16  Jim Meyering  <jim@meyering.net>
80599
80600         * lib/fprintftime.c, lib/fprintftime.h: New files.
80601
80602 2005-12-15  Simon Josefsson  <jas@extundo.com>
80603
80604         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80605         new m4/socklen.m4.
80606
80607 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80608
80609         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80610         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80611
80612 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80613
80614         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80615         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80616         struct uparams is valid. Fall back to the default values if it is
80617         not.
80618
80619 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80620
80621         * modules/argp (Files): Add argp-pin.c
80622         (Depends-on): dirname
80623         (lib_SOURCES): Add argp-pin.c
80624
80625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80626
80627         * m4/argp.m4:  Check if program_invocation_name and
80628         program_invocation_short_name are declared and define appropriate
80629         macros if they are not.
80630
80631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80632
80633         * lib/argp-help.c (__argp_base_name): New function
80634         (__argp_short_program_name): Rewrite using __argp_base_name
80635         * lib/argp-namefrob.h: Define program_invocation_name and
80636         program_invocation_short_name if requested
80637         (__argp_base_name): Add prototype
80638         * lib/argp-parse.c (argp_def): Use gettext wrappers
80639         (argp_default_parser): Use __argp_base_name
80640         * lib/argp-pin.c: New file. Defines program_invocation_name and
80641         program_invocation_short_name on systems that lack them.
80642
80643 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80646         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80647         porting problem reported by Georg Schwarz in
80648         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80649
80650 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80651
80652         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80653         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80654         porting problem reported by Georg Schwarz in
80655         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80656
80657 2005-12-05  Bruno Haible  <bruno@clisp.org>
80658
80659         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80660         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80661         Reported by Mark Junker <mjscod@gmx.de>.
80662
80663 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80664
80665         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80666         Use implementation from Albert Chin, with some
80667         comments/corrections by Stepan Kasal and myself.
80668
80669 2005-12-02  Bruno Haible  <bruno@clisp.org>
80670
80671         * gnulib-tool (func_import): Accept GPLed build tool modules when
80672         --lgpl is given.
80673         * modules/csharpcomp-script: New file.
80674         * modules/csharpcomp: Depend on it.
80675         * modules/javacomp-script: New file.
80676         * modules/javacomp: Depend on it.
80677         Suggested by Simon Josefsson.
80678
80679 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80680
80681         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80682         statement, to work around an HP-UX 10.20 compiler bug reported by
80683         Peter O'Gorman.
80684
80685 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80686
80687         * modules/savedir (Depends-on): Add openat.
80688
80689 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80690
80691         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80692         (uintmax_t) [defined uintmax_t]: Do not declare.
80693         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80694         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80695         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80696         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80697         sake of portability to weird hosts that C allows (though we don't
80698         know of any practical examples).
80699
80700         * lib/savedir.h (fdsavedir): New decl.
80701         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80702         contains most of the former guts of savedir.
80703         (savedir): Use savedirstream.
80704         Include "openat.h".
80705
80706 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80707
80708         * modules/obstack (Files): Add m4/ulonglong.m4.
80709         Problem reported by Davide Angelocola.
80710
80711 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80712
80713         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80714         coreutils no longer futzes with rounding modes.
80715
80716 2005-11-14  Jim Meyering  <jim@meyering.net>
80717
80718         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80719         replacement of mkstemp.
80720
80721 2005-11-10  Simon Josefsson  <jas@extundo.com>
80722
80723         * lib/readline.c: Remove EOL.
80724
80725 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * modules/gethrxtime (Depends-on): Add gettime.
80728
80729 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80730
80731         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80732         or gettimeofday; no longer needed.
80733
80734 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80735
80736         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80737         time business.
80738         (gethrxtime) [! (HAVE_NANOUPTIME
80739         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80740         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80741         our own approximation.
80742
80743 2005-11-08  Eric Blake  <ebb9@byu.net>
80744
80745         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80746
80747 2005-11-08  Eric Blake  <ebb9@byu.net>
80748
80749         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80750
80751 2005-11-04  Bruno Haible  <bruno@clisp.org>
80752
80753         * gnulib-tool: Implement --update mode.
80754
80755 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80756
80757         Fix porting problem reported by Theodoros V. Kalamatianos.
80758         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80759         Don't assume that futimes failing means we must fail.
80760
80761 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80764         variables to suggest the intended function of the PATH_MAX check.
80765
80766 2005-10-30  Kean Johnston  <jkj@sco.com>
80767
80768         Trivial changes to support SCO systems.
80769         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80770         as PATH_MAX.
80771         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80772         where __ptr is null when no I/O is pending.
80773
80774 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80775
80776         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80777         leave errno alone.  Problem reported by Dmitry V. Levin.
80778
80779 2005-10-28  Simon Josefsson  <jas@extundo.com>
80780
80781         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80782         Test more.
80783
80784         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80785
80786         * modules/md2, modules/md2-tests: New files.
80787
80788 2005-10-28  Simon Josefsson  <jas@extundo.com>
80789
80790         * m4/inet_ntop.m4: More tests.
80791
80792         * m4/gc-md2.m4, md2.m4: New file.
80793
80794 2005-10-28  Simon Josefsson  <jas@extundo.com>
80795
80796         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80797         "restrict" keywords, as per POSIX.  Protect the function
80798         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80799         Don't use K&R prototypes.  Check the sprintf return values.
80800         Re-define EAFNOSUPPORT if not present.  Indent.
80801
80802         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80803         suggested by Bruno Haible <bruno@clisp.org>.
80804
80805         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80806
80807         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80808
80809         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80810         libgcrypt).
80811
80812         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80813
80814         * lib/md2.h, lib/md2.c: New files.
80815
80816 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
80819         errno alone.  Problem reported by Frederic Jolliton.
80820
80821 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * modules/verify (License): Change from GPL to LGPL.  This is a
80824         tiny module and there are apparently near-equivalents that are
80825         under the BSD license.
80826
80827 2005-10-24  Simon Josefsson  <jas@extundo.com>
80828
80829         * modules/sha1: Relicense to LGPL.
80830
80831 2005-10-24  Simon Josefsson  <jas@extundo.com>
80832
80833         * lib/md4.h: Shrink buffer size, now that we changed the type.
80834
80835 2005-10-23  Simon Josefsson  <jas@extundo.com>
80836
80837         * gnulib-tool (func_import): Fix --tests-base.
80838
80839 2005-10-22  Simon Josefsson  <jas@extundo.com>
80840
80841         * modules/arcfour (Depends-on): Need stdint.
80842
80843 2005-10-22  Simon Josefsson  <jas@extundo.com>
80844
80845         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
80846         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
80847
80848 2005-10-22  Simon Josefsson  <jas@extundo.com>
80849
80850         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
80851         suggested by Bruno Haible <bruno@clisp.org>.
80852
80853 2005-10-22  Simon Josefsson  <jas@extundo.com>
80854
80855         * lib/crc.h: Include stddef.h, for size_t.
80856
80857 2005-10-22  Simon Josefsson  <jas@extundo.com>
80858
80859         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
80860         arcfour_context struct (simplify test vector testing in GNU
80861         Shishi).
80862
80863 2005-10-21  Simon Josefsson  <jas@extundo.com>
80864
80865         * modules/des, modules/des-tests: New files.
80866
80867         * modules/gc-des, modules/gc-des-tests: New files.
80868
80869         * tests/test-des.c, tests/test-gc-des.c: New file.
80870
80871 2005-10-21  Simon Josefsson  <jas@extundo.com>
80872
80873         * modules/arctwo, modules/arctwo-tests: New files.
80874
80875         * tests/test-arctwo.c: New file.
80876
80877         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
80878
80879         * tests/test-gc-arctwo.c: New file.
80880
80881 2005-10-21  Simon Josefsson  <jas@extundo.com>
80882
80883         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
80884         Bruno Haible <bruno@clisp.org>.
80885
80886         * m4/gc-des.m4: New file.
80887
80888 2005-10-21  Simon Josefsson  <jas@extundo.com>
80889
80890         * m4/arctwo.m4: New file.
80891
80892         * m4/gc-arctwo.m4: New file.
80893
80894 2005-10-21  Simon Josefsson  <jas@extundo.com>
80895
80896         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
80897         block.
80898
80899 2005-10-21  Simon Josefsson  <jas@extundo.com>
80900
80901         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
80902         <bruno@clisp.org>.
80903
80904         * lib/hmac-sha1.c (hmac_sha1): Likewise.
80905
80906         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
80907         Bruno Haible <bruno@clisp.org>.
80908
80909         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
80910         <bruno@clisp.org>.
80911
80912 2005-10-21  Simon Josefsson  <jas@extundo.com>
80913
80914         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
80915
80916 2005-10-21  Simon Josefsson  <jas@extundo.com>
80917
80918         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
80919
80920 2005-10-21  Simon Josefsson  <jas@extundo.com>
80921
80922         * lib/des.h, lib/des.c: New files.
80923
80924         * lib/gc-gnulib.c: Support DES.c
80925
80926 2005-10-21  Simon Josefsson  <jas@extundo.com>
80927
80928         * lib/arctwo.h, lib/arctwo.c: New files.
80929
80930         * lib/gc-gnulib.c: Support ARCTWO.
80931
80932 2005-10-21  Simon Josefsson  <jas@extundo.com>
80933
80934         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
80935         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80936
80937 2005-10-21  Simon Josefsson  <jas@extundo.com>
80938
80939         * gnulib-tool (func_import, func_create_testdir): Define automake
80940         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
80941         Makefile.am snippet),
80942         suggested by Bruno Haible <bruno@clisp.org>.
80943
80944         * modules/gc (Makefile.am): Use it.
80945
80946 2005-10-21  Bruno Haible  <bruno@clisp.org>
80947
80948         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80949         patch.
80950
80951 2005-10-19  Simon Josefsson  <jas@extundo.com>
80952
80953         * tests/test-gc-rijndael.c: New file.
80954
80955         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80956
80957 2005-10-19  Simon Josefsson  <jas@extundo.com>
80958
80959         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80960         interface too.
80961
80962 2005-10-19  Simon Josefsson  <jas@extundo.com>
80963
80964         * tests/test-gc-arcfour.c: New file.
80965
80966         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80967
80968 2005-10-19  Simon Josefsson  <jas@extundo.com>
80969
80970         * modules/gc-md4, modules/gc-md4-tests: New file.
80971
80972         * tests/test-gc-md4.c: New file.
80973
80974 2005-10-19  Simon Josefsson  <jas@extundo.com>
80975
80976         * m4/gc-md4.m4: New file.
80977
80978 2005-10-19  Simon Josefsson  <jas@extundo.com>
80979
80980         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80981         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80982         <kasal@ucw.cz>.
80983
80984 2005-10-19  Simon Josefsson  <jas@extundo.com>
80985
80986         * m4/gc-arcfour.m4: New file.
80987
80988         * m4/gc-rijndael.m4: New file.
80989
80990 2005-10-19  Simon Josefsson  <jas@extundo.com>
80991
80992         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80993
80994 2005-10-19  Simon Josefsson  <jas@extundo.com>
80995
80996         * lib/gc-gnulib.c: Support ARCFOUR.
80997
80998 2005-10-19  Simon Josefsson  <jas@extundo.com>
80999
81000         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81001         support.
81002
81003         * lib/gc.h: Add ECB enum type.
81004
81005         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81006
81007 2005-10-18  Simon Josefsson  <jas@extundo.com>
81008
81009         * tests/test-md5.c: New file.
81010
81011         * modules/md5-tests: New file.
81012
81013 2005-10-18  Simon Josefsson  <jas@extundo.com>
81014
81015         * tests/test-md4.c: New file.
81016
81017         * modules/md4, modules/md4-tests: New files.
81018
81019 2005-10-18  Simon Josefsson  <jas@extundo.com>
81020
81021         * m4/md4.m4: New file.
81022
81023 2005-10-18  Simon Josefsson  <jas@extundo.com>
81024
81025         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81026
81027 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81028
81029         * gnulib-tool (func_create_testdir): Omit the second check whether
81030         BUILT_SOURCES in nonempty.
81031
81032 2005-10-17  Simon Josefsson  <jas@extundo.com>
81033
81034         * tests/test-rijndael.c: New file.
81035
81036 2005-10-17  Simon Josefsson  <jas@extundo.com>
81037
81038         * modules/sha1: Depend on stdint instead of md5.
81039
81040         * modules/md5: Depend on stdint, remove uint32_t.
81041
81042 2005-10-17  Simon Josefsson  <jas@extundo.com>
81043
81044         * modules/gc-sha1-tests: New file.
81045
81046         * tests/test-gc-sha1.c: New file.
81047
81048 2005-10-17  Simon Josefsson  <jas@extundo.com>
81049
81050         * m4/md5.m4: Remove call to uint32_t.m4.
81051
81052 2005-10-17  Simon Josefsson  <jas@extundo.com>
81053
81054         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81055
81056         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81057         md5.h.
81058
81059         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81060
81061         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81062
81063 2005-10-17  Simon Josefsson  <jas@extundo.com>
81064
81065         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81066
81067 2005-10-17  Simon Josefsson  <jas@extundo.com>
81068
81069         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81070
81071 2005-10-17  Simon Josefsson  <jas@extundo.com>
81072
81073         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81074
81075         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81076
81077 2005-10-17  Bruno Haible  <bruno@clisp.org>
81078
81079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81080         that it can also be used in a test.
81081
81082 2005-10-16  Bruno Haible  <bruno@clisp.org>
81083
81084         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81085         TESTS_ENVIRONMENT, so that individual tests can augment it.
81086
81087         * gnulib-tool (func_create_testdir): Use an intermediate target for
81088         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81089         macros, like $(ALLOCA_H), which cannot be passed through the command
81090         line.
81091
81092 2005-10-15  Simon Josefsson  <jas@extundo.com>
81093
81094         * modules/rijndael-tests: New file.
81095
81096         * modules/rijndael: New file.
81097
81098 2005-10-15  Simon Josefsson  <jas@extundo.com>
81099
81100         * m4/rijndael.m4: New file.
81101
81102 2005-10-15  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81105
81106         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81107
81108 2005-10-14  Simon Josefsson  <jas@extundo.com>
81109
81110         * tests/test-arcfour.c: New file.
81111
81112         * modules/arcfour, modules/arcfour-tests: New files.
81113
81114 2005-10-14  Simon Josefsson  <jas@extundo.com>
81115
81116         * m4/arcfour.m4: New file.
81117
81118 2005-10-14  Simon Josefsson  <jas@extundo.com>
81119
81120         * lib/arcfour.h, lib/arcfour.c: New files.
81121
81122 2005-10-14  Roland McGrath  <roland@redhat.com>
81123
81124         Import from libc.  [BZ #1331]
81125         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81126         macro argument.
81127         Reported by Matej Vela <vela@debian.org>.
81128
81129 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81130
81131         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81132         include <wchar.h>; no longer needed.
81133
81134 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81137
81138 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81139         and  Ulrich Drepper  <drepper@redhat.com>
81140
81141         Import from libc.
81142         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81143         instead of inline stream orientation test and two separate
81144         function calls.  Pay no attention to USE_IN_LIBIO.
81145
81146 2005-10-13  Simon Josefsson  <jas@extundo.com>
81147
81148         * modules/gc-hmac-md5-tests: New file.
81149
81150         * tests/test-gc-hmac-sha1.c: New file.
81151
81152         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81153
81154         * modules/gc-hmac-md5-tests: New file.
81155
81156         * tests/test-gc-md5.c: New file.
81157
81158         * modules/gc-md5-tests: New file.
81159
81160 2005-10-13  Simon Josefsson  <jas@extundo.com>
81161
81162         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81163         Move memory allocation outside of loop.
81164
81165 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81168         intermediate directory is in a read-only file system.  Problem
81169         reported by Eric Blake.
81170
81171 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81172
81173         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81174
81175 2005-10-12  Simon Josefsson  <jas@extundo.com>
81176
81177         * tests/test-hmac-sha1.c: New file.
81178
81179         * modules/hmac-sha1-tests: New file.
81180
81181         * modules/hmac-sha1: New file.
81182
81183 2005-10-12  Simon Josefsson  <jas@extundo.com>
81184
81185         * modules/gc-sha1: New file.
81186
81187 2005-10-12  Simon Josefsson  <jas@extundo.com>
81188
81189         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81190
81191         * tests/test-gc-pbkdf2-sha1.c: New file.
81192
81193 2005-10-12  Simon Josefsson  <jas@extundo.com>
81194
81195         * modules/gc-md5, modules/gc-hmac-md5: New files.
81196
81197         * modules/gc (Files): Remove md5, memxor and hmac files.
81198
81199 2005-10-12  Simon Josefsson  <jas@extundo.com>
81200
81201         * m4/gc-pbkdf2-sha1.m4: New file.
81202
81203         * m4/gc-hmac-sha1.m4: New file.
81204
81205         * m4/gc-sha1: New file.
81206
81207         * m4/hmac-sha1.m4: New file.
81208
81209 2005-10-12  Simon Josefsson  <jas@extundo.com>
81210
81211         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81212
81213         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81214
81215 2005-10-12  Simon Josefsson  <jas@extundo.com>
81216
81217         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81218         suggested by Bruno Haible <bruno@clisp.org>.
81219
81220 2005-10-12  Simon Josefsson  <jas@extundo.com>
81221
81222         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81223
81224 2005-10-12  Simon Josefsson  <jas@extundo.com>
81225
81226         * lib/gc-pbkdf2-sha1.c: New file.
81227
81228         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81229
81230 2005-10-12  Simon Josefsson  <jas@extundo.com>
81231
81232         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81233
81234         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81235
81236 2005-10-12  Simon Josefsson  <jas@extundo.com>
81237
81238         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81239         GC_USE_HMAC_MD5, respectively.
81240
81241         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81242         (gc_md5): Fix typo.
81243
81244         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81245
81246         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81247
81248         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81249
81250 2005-10-12  Bruno Haible  <bruno@clisp.org>
81251
81252         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81253         Reported by Stepan Kasal <kasal@ucw.cz>.
81254
81255 2005-10-11  Simon Josefsson  <jas@extundo.com>
81256
81257         * tests/test-crc.c: New file.
81258
81259         * modules/crc, modules/crc-tests: New files.
81260
81261 2005-10-11  Simon Josefsson  <jas@extundo.com>
81262
81263         * m4/crc.m4: New file.
81264
81265 2005-10-11  Simon Josefsson  <jas@extundo.com>
81266
81267         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81268
81269         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81270
81271         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81272
81273 2005-10-11  Simon Josefsson  <jas@extundo.com>
81274
81275         * lib/crc.h, lib/crc.c: New files.
81276
81277         * lib/gc.h (gc_hash_buffer): Add doc.
81278
81279 2005-10-11  Bruno Haible  <bruno@clisp.org>
81280
81281         * modules/c-strcasestr: New file.
81282         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81283
81284 2005-10-11  Bruno Haible  <bruno@clisp.org>
81285
81286         * modules/c-strcase: New file.
81287         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81288
81289 2005-10-11  Bruno Haible  <bruno@clisp.org>
81290
81291         * lib/strcasecmp.c: Include limits.h.
81292         (strcasecmp): Avoid integer overflow on exotic platforms.
81293         * lib/strncasecmp.c: Include limits.h.
81294         (strncasecmp): Avoid integer overflow on exotic platforms.
81295         Reported by Paul Eggert.
81296
81297 2005-10-11  Bruno Haible  <bruno@clisp.org>
81298
81299         * lib/c-strcasestr.h: New file, from GNU gettext.
81300         * lib/c-strcasestr.c: New file, from GNU gettext.
81301
81302 2005-10-11  Bruno Haible  <bruno@clisp.org>
81303
81304         * lib/c-strcase.h: New file, from GNU gettext.
81305         * lib/c-strcasecmp.c: New file, from GNU gettext.
81306         * lib/c-strncasecmp.c: New file, from GNU gettext.
81307
81308 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81309
81310         * modules/mempcpy (License): GPL -> LGPL.
81311         * modules/strchrnul (License): Likewise.
81312         * modules/sysexits (License): Likewise.
81313
81314 2005-10-08  Simon Josefsson  <jas@extundo.com>
81315
81316         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81317
81318 2005-10-07  Simon Josefsson  <jas@extundo.com>
81319
81320         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81321
81322 2005-10-06  Simon Josefsson  <jas@extundo.com>
81323
81324         * tests/test-hmac-md5.c: New file.
81325
81326         * modules/hmac-md5-tests: New file.
81327
81328         * modules/hmac-md5: New file.
81329
81330 2005-10-06  Simon Josefsson  <jas@extundo.com>
81331
81332         * m4/hmac-md5.m4: New file.
81333
81334         * m4/memxor.m4: Require gl_C_RESTRICT.
81335
81336 2005-10-06  Simon Josefsson  <jas@extundo.com>
81337
81338         * lib/memxor.c (memxor): Avoid casts and warnings.
81339
81340 2005-10-06  Simon Josefsson  <jas@extundo.com>
81341
81342         * lib/hmac-md5.c: New file.
81343
81344         * lib/hmac.h: New file.
81345
81346 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81349         promotes to int, not unsigned int, to catch the AIX 5.3
81350         compiler bug.
81351
81352 2005-10-05  Simon Josefsson  <jas@extundo.com>
81353
81354         * modules/memxor: New file.
81355
81356         * modules/iconv (Files): Move config.rpath to havelib, it is used
81357         there.
81358
81359         * modules/havelib (Files): Add config.rpath.
81360
81361 2005-10-05  Simon Josefsson  <jas@extundo.com>
81362
81363         * m4/memxor.m4: New file.
81364
81365 2005-10-05  Simon Josefsson  <jas@extundo.com>
81366
81367         * lib/memxor.c (memxor): Fix compiler error.
81368
81369         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81370         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81371
81372         * lib/memxor.h, lib/memxor.c: New files.
81373
81374         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81375         we assume all systems have it, suggested by Jim Meyering
81376         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81377         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81378         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81379         same reasons.
81380
81381 2005-10-05  Simon Josefsson  <jas@extundo.com>
81382
81383         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81384
81385 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81386
81387         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81388         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81389         needed, since the source code now assumes these .h files.
81390
81391 2005-10-05  Derek Price  <derek@ximbiot.com>
81392
81393         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81394
81395 2005-10-05  Bruno Haible  <bruno@clisp.org>
81396
81397         * modules/stdint (License): Change to LGPL.
81398
81399 2005-10-04  Simon Josefsson  <jas@extundo.com>
81400
81401         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81402         D. Baushke" <mdb@gnu.org>.
81403
81404 2005-10-04  Bruno Haible  <bruno@clisp.org>
81405
81406         * lib/verify.h (verify_true): Provide alternative definition for C++.
81407
81408 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81409
81410         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81411         (SSIZE_MAX): New macro, if not already defined.
81412         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81413         than 2 GiB.
81414
81415 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         Sync from coreutils.
81418         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81419         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81420         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81421         ULLONG_MAX doesn't work with 2.7.2.1.
81422
81423 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81424
81425         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81426         From Ben Pfaff.
81427
81428         * modules/exclude (Depends-on): Depend on verify.
81429         * modules/strtoimax (Depends-on): Likewise.
81430         * modules/utimecmp (Depends-on): Likewise.
81431
81432 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81433
81434         * lib/exclude.c: Include verify.h.
81435         (verify): Remove.  All callers changed to use verify.h's version.
81436         * lib/strtoimax.c: Likewise.
81437         * lib/utimecmp.c: Likewis.e
81438
81439         Sync from coreutils.
81440         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81441         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81442         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81443         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81444         bother returning ENOSYS if settimeofday or stime fails; just let
81445         them return whatever errno they want to return.
81446         * lib/utimens.c: Include unistd.h, for dup2.
81447         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81448         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81449
81450 2005-10-02  Jim Meyering  <jim@meyering.net>
81451
81452         Sync from coreutils.
81453         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81454         from glibc-2.2.5 that fails for read-only files.
81455
81456 2005-10-02  Jim Meyering  <jim@meyering.net>
81457
81458         Sync from coreutils.
81459         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81460         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81461         `#if HAVE_CONFIG_H'.
81462         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81463         Remove AT_FDCWD test.
81464         Do not consume the fd unless successful.
81465         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81466         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81467         block, so that we don't even try to compile it if settimeofday is
81468         available.  This works around a compilation failure on OSF1 V5.1,
81469         due to stime requiring a `long int*' while tv_sec is `int'.
81470
81471 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81472
81473         Sync from coreutils.
81474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81475         against `yes', rather than just testing for nonempty.
81476
81477 2005-10-01  Simon Josefsson  <jas@extundo.com>
81478
81479         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81480         and Darwin.
81481
81482         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81483         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81484         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81485         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81486         Check if struct addrinfo is declared.
81487
81488 2005-10-01  Simon Josefsson  <jas@extundo.com>
81489
81490         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81491         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81492         AI_* and EAI_* definitions.  Protect function declarations.
81493
81494 2005-10-01  Jim Meyering  <jim@meyering.net>
81495
81496         Sync from coreutils.
81497
81498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81499         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81500         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81502         in the inet and nsl libraries.  Required on Solaris 5.7.
81503
81504 2005-10-01  Jim Meyering  <jim@meyering.net>
81505
81506         Sync from coreutils.
81507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81508         in the inet and nsl libraries.  Required on Solaris 5.7.
81509
81510 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81511
81512         * lib/getdelim.c (getdelim): Remove unused variables.
81513
81514 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81517         so that the code works even with ancient cpp.  Portability problem
81518         with GCC 2.7.2.1 reported by Thomas M.Ott.
81519
81520 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81521
81522         * modules/regex (Depends-on): Add strcase.
81523
81524         * modules/gethostname (Licence): Change from GPL to LGPL, since
81525         gethostname.c is a trivial implementation of a standard library
81526         function.
81527         * modules/poll (License): Change from GPL to LGPL, since it's
81528         derived from LGPL code.
81529
81530 2005-09-27  Jim Meyering  <jim@meyering.net>
81531
81532         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81533         HAVE_CONFIG_H.
81534
81535         * lib/intprops.h (signed_type_or_expr__): Define.
81536         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81537         for unsigned types.
81538
81539 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * lib/verify.h (verify_expr): Remove, replacing with:
81542         (verify_true): New macro that returns true instead of void.
81543         (verify_type__): Remove.
81544         (verify): Use verify_true rather than verify_type__.
81545
81546 2005-09-26  Bruno Haible  <bruno@clisp.org>
81547
81548         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81549         is necessary.
81550         (lib_SOURCES): Remove mbchar.c.
81551         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81552         (Files): Add m4/mbrtowc.m4.
81553         * modules/mbiter: Likewise.
81554         * modules/mbuiter: Likewise.
81555
81556 2005-09-26  Bruno Haible  <bruno@clisp.org>
81557
81558         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81559         compile mbchar.c if they are not both present.
81560         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81561         * m4/mbiter.m4 (gl_MBITER): Likewise.
81562         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81563         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81564         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81565
81566 2005-09-25  Jim Meyering  <jim@meyering.net>
81567
81568         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81569         also uses socklen_t.
81570
81571 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * lib/utimens.c (ENOSYS): Define if not already defined.
81574         (futimens): Support having a null PATH if the file descriptor
81575         is nonnegative.
81576
81577         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81578         Remove.
81579         (__attribute): Define to empty unless GCC 3.1 or later.
81580         This works around a core dump on OpenBSD 3.4, which has GCC
81581         2.95.3, which dumps core when given __attribute__(()).  It also
81582         simplifies other tests, since we really don't want to bother with
81583         worrying about which ancient version of GCC supported what.
81584         Original problem reported by Yoann Vandoorselaere, with part of
81585         the fix suggested by Derek Price.
81586
81587 2005-09-24  Jim Meyering  <jim@meyering.net>
81588
81589         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81590         so we can once again use a positive bitfield width of 1 -- now we
81591         don't have to explain why we were using a bitfield width of 2.
81592
81593 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81594
81595         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81596         and similarly for the other external symbols.  Problem reported
81597         by James Gallager.
81598
81599         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81600         bug reported by Jim Meyering.
81601
81602         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81603         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81604         not needed, since socklen is a prerequisite module.
81605
81606 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81609         Problem reported by Eric Blake.
81610         (getaddrinfo): Initialize se so that it's not garbage.
81611         Redo internal storage allocation so that it doesn't make unportable
81612         assumptions about alignment.
81613         Fix a memory leak.
81614
81615         * lib/utimens.c (futimens): Use futimesat if available.
81616         Prefer it to futimes since it doesn't have the futimes bug.
81617
81618         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81619         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81620         Instead, declare a function that returns a pointer to an array,
81621         and use verify_type__ to declare the size of the array.
81622         Problem and germ of a solution reported by Bruno Haible.
81623         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81624         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81625
81626 2005-09-23  Jim Meyering  <jim@meyering.net>
81627
81628         Sync from coreutils.
81629         Correct build failure (socklen_t not defined) on at least
81630         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81631         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81632
81633 2005-09-23  Jim Meyering  <jim@meyering.net>
81634
81635         * modules/getaddrinfo (Depends-on): Add socklen.
81636
81637 2005-09-23  Bruno Haible  <bruno@clisp.org>
81638
81639         * tests/test-verify.c: New file.
81640
81641 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81642
81643         Sync from coreutils.
81644
81645         * modules/argmatch (Depends-on): Add verify.
81646         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81647         unistd-safer.
81648         * modules/save-cwd (Depends-on): Likewise.
81649
81650         * modules/openat (Files): Add lib/openat-die.c.
81651         (Depends-on): Remove error, exitfail.
81652         Add dirname.
81653
81654         * modules/verify: New file.
81655         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81656         with "verify" module.
81657
81658 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         Sync from coreutils.
81661
81662         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81663         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81664         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81665         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81666         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81667         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81668         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81669         Don't bother checking for string.h, stdlib.h, unistd.h.
81670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81671         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81672         module's job.
81673         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81674         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81675
81676         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81677         (gl_GETDATE): Use it.
81678
81679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81680
81681 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         Sync from coreutils.
81684
81685         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81686         stat-time.h.
81687         * lib/argmatch.h: Include verify.h
81688         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81689         (ARGMATCH_ASSERT): Remove; unused.
81690         * lib/canonicalize.c: Assume STDC_HEADERS.
81691         * lib/exclude.c: Include "strcase.h".
81692         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81693         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81694         and stdio-safer.h.
81695         (getusershell): Call fopen, not fopen_safer.
81696         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81697         Do not include unistd-safer.h.
81698         (save_cwd): Don't call fd_safer; no longer needed
81699         now that we include fcntl--.h.
81700
81701         * lib/getdate.y (relative_time): New type.
81702         (RELATIVE_TIME_0): New constant.
81703         (parser_control): Use relative_time instead of doing it ourselves.
81704         (%union): Add new relative_time rel member.
81705         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81706         Now typeless.
81707         (relunit, relunit_snumber): Now of type rel.
81708         (zone, rel, relunit, get_date): Adjust to above changes.
81709
81710         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81711         Do not include unistd-safer.h.
81712         (getloadavg): Don't call fd_safer; no longer needed
81713         now that we include fcntl--.h.
81714
81715         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81716         (make_dir_parents): Treat ENOSYS like EEXIST.
81717
81718         Improve quality of diagnostics on restore_cwd failure.
81719         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81720         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81721         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81722         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81723         each time through the loop.  Do not diagnose restore_cwd failure;
81724         that is the caller's job (and perhaps the caller does not care).
81725
81726         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81727         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81728         If the file already exists but is not a directory, don't bother
81729         to try to make its parents.
81730         Close potential file descriptor leak if we can't chdir("/") (!).
81731         Don't always return true if chdir($PWD) fails; return true only
81732         if the requested action was done successfully (except for the
81733         chdir($PWD)).
81734         Don't log final directory unless we actually made it.
81735         Refactor to avoid duplicate code to fix up permissions.
81736         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81737
81738         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81739         to make it a bit faster and (I hope) clearer.
81740         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81741         Fix bug in formats like %2N.
81742
81743         * lib/verify.h: New file.
81744
81745 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         Sync from coreutils.
81748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81749
81750 2005-09-22  Jim Meyering  <jim@meyering.net>
81751
81752         Sync from coreutils.
81753
81754         * m4/lstat.m4 (gl_FUNC_LSTAT):
81755         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81756         Remove obsolete comment.
81757         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81758         * m4/xstrtod.m4: Likewise.
81759
81760         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81761
81762 2005-09-22  Jim Meyering  <jim@meyering.net>
81763
81764         Sync from coreutils.
81765
81766         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81767
81768         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81769         the .tm_year member, since otherwise gcc-4.0 would now warn about
81770         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81771
81772         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81773         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81774
81775         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81776         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81777         when run in a time zone for which daylight savings time is in effect
81778         for the starting date.
81779
81780         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81781         stop us from restricting permissions of just-created absolute-named
81782         directories.
81783         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81784         to restore initial working directory.
81785         * lib/mkdir-p.c (make_dir_parents): New parameter:
81786         different_working_dir, to tell caller if/when we change the working
81787         directory and are unable to return to the initial one.
81788         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81789         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81790         `return false'.  This fixes a bug introduced on 2004-07-30.
81791
81792         * lib/openat.c (fdopendir): Be sure to close the supplied
81793         file descriptor before returning.  This makes our replacement
81794         implementation a little closer to Solaris's, where fdopendir
81795         ties the file descriptor to the returned DIR* pointer.
81796         * lib/openat.c (unlinkat): New function.
81797         * lib/openat.h (unlinkat): Add prototype.
81798         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81799         (openat_restore_fail): Rename from openat_restore_die.
81800         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81801
81802         Provide an alternative to exiting immediately upon save_cwd or
81803         restore_cwd failure.  Now, an application can arrange e.g.,
81804         to perform a longjump in that case.
81805         * lib/openat.c: Include dirname.h.
81806         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81807         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81808         and openat_restore_die rather than calling error directly.
81809         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81810
81811         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81812         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81813         define.
81814
81815         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81816         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81817                             int utc, int nanoseconds);
81818         Background:
81819         date should not have to allocate a megabyte of virtual memory to
81820         handle a format argument like +%1048575T.  When implemented with
81821         strftime, it must allocate such a buffer, use strftime to fill it
81822         in, print it, then free it.
81823         With fprintftime, it simply prints everything and exits.
81824         With no need for memory allocation, that's one fewer way to fail.
81825         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
81826         optional field width, not before, so we accept %9:z, not %:9z.
81827         (my_strftime): Be sure to use L_('x') for literals.
81828
81829         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
81830         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
81831         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
81832         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
81833         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
81834         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
81835         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
81836         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
81837         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
81838         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
81839         * lib/xgethostname.c, lib/xreadlink.c:
81840         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
81841
81842         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
81843         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
81844         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
81845         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81846         and don't include <sys/file.h>).
81847
81848 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
81849
81850         Sync from coreutils.
81851
81852         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
81853         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
81854         [!LDAV_DONE]: Avoid unused variable warning.
81855
81856 2005-09-21  Bruno Haible  <bruno@clisp.org>
81857
81858         * lib/unicodeio.h (unicode_to_mb): New declaration.
81859
81860 2005-09-20  Derek Price  <derek@ximbiot.com>
81861
81862         * lib/getaddrinfo.c: Don't include <netdb.h> included from
81863         getaddrinfo.h.
81864
81865 2005-09-20  Bruno Haible  <bruno@clisp.org>
81866
81867         * gnulib-tool: Remove trailing slashes from the values specified for
81868         --source-base, --m4-base, --tests-base, --aux-dir.
81869         Suggested by Simon Josefsson <jas@extundo.com>.
81870
81871 2005-09-20  Bruno Haible  <bruno@clisp.org>
81872
81873         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
81874         func_modules_to_filelist, func_import, func_create_testdir): Make all
81875         sorting results locale-independent, so that gnulib-cache.m4 doesn't
81876         change when gnulib-tool is invoked in a different locale.
81877
81878 2005-09-19  Simon Josefsson  <jas@extundo.com>
81879
81880         * m4/socklen.m4: Fix typo.
81881
81882 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81883
81884         Use a consistent style for including <config.h>.
81885         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
81886         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
81887         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
81888         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
81889         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
81890         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
81891         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
81892         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
81893         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
81894         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
81895         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
81896         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
81897         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
81898         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
81899         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
81900         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
81901         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
81902         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
81903         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
81904         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
81905         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
81906         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
81907         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
81908         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
81909         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
81910         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
81911         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
81912         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
81913         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
81914         lib/xstrtoumax.c, lib/yesno.c:
81915         Standardize inclusion of config.h.
81916         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
81917         lib/inttostr.h:  Removed inclusion of config.h from header files.
81918         * lib/inttostr.c:  Adjusted in-tree users.
81919         * lib/timespec.h: Remove superfluous warning to include config.h.
81920         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
81921         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
81922         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
81923         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
81924         config.h with HAVE_CONFIG_H.
81925
81926 2005-09-19  Jim Meyering  <jim@meyering.net>
81927
81928         * modules/pathmax (License): Change to LGPL.
81929
81930 2005-09-19  Derek Price  <derek@ximbiot.com>
81931
81932         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
81933
81934 2005-09-19  Bruno Haible  <bruno@clisp.org>
81935
81936         * gnulib-tool (import): Provide default for --tests-base.
81937
81938 2005-09-19  Bruno Haible  <bruno@clisp.org>
81939
81940         * doc/quote.texi: New file, extracted from gnulib.texi.
81941         * doc/ctime.texi: New file, extracted from gnulib.texi.
81942         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
81943         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
81944         * doc/gnulib.texi: Include them.
81945
81946 2005-09-18  Bruno Haible  <bruno@clisp.org>
81947
81948         Portability fix.
81949         * gnulib-tool (func_readlink): New function.
81950         (func_ln_if_changed): Use it.
81951
81952 2005-09-18  Bruno Haible  <bruno@clisp.org>
81953
81954         * gnulib-tool: Support --with-tests also with --import.
81955         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81956         (func_import): Use variables $testsbase and $inctests. Emit a
81957         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81958         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81959         SUBDIRS += $testsdir.
81960         (func_create_testdir): Update.
81961
81962 2005-09-18  Bruno Haible  <bruno@clisp.org>
81963
81964         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81965         instead of $dry_run.
81966         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81967         (func_ln_if_changed): Don't handle dry-run here.
81968         (func_import): In dry-run mode, detect more precisely which actions
81969         would be performed, and don't use "...ing" verbs.
81970
81971 2005-09-18  Bruno Haible  <bruno@clisp.org>
81972
81973         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81974         (func_import): Use join on two temporary files instead of three nested
81975         loops, in order to determine which files are new or old.
81976
81977 2005-09-18  Bruno Haible  <bruno@clisp.org>
81978
81979         * gnulib-tool (func_import): Comment out code that spits out the
81980         new files with --dry-run.
81981
81982 2005-09-18  Bruno Haible  <bruno@clisp.org>
81983
81984         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81985
81986 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81987
81988         * lib/stat-time.h: New file.
81989         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81990         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81991         in a different way.
81992         (timespec_cmp): New function.
81993         * lib/utimecmp.c: Include stat-time.h.
81994         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81995         members exist, not on the obsolescent ST_MTIM_NSEC.
81996         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81997
81998 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82001
82002 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         * MODULES.html.sh (File system functions): Add stat-time.
82005         * modules/stat-time: New file.
82006         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82007         is now done in a different way, by the stat-time module.
82008         * modules/utimecmp (Depends-on): Add stat-time.
82009
82010 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         * m4/st_mtim.m4: Remove.  Superseded by...
82013         * m4/stat-time.m4: New file.
82014         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82015         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82016
82017 2005-09-15  Derek Price  <derek@ximbiot.com>
82018
82019         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82020
82021 2005-09-15  Derek Price  <derek@ximbiot.com>
82022
82023         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82024         * lib/regex_internal.c: Ditto, using this...
82025         (__GNUC_PREREQ): ...new macro.
82026         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82027         using...
82028         (__GNUC_PREREQ): ...this new macro.
82029
82030         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82031
82032 2005-09-15  Derek Price  <derek@ximbiot.com>
82033             Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82036         changes, consolidating in...
82037         * lib/regex_internal.h: ...this file.
82038
82039 2005-09-13  Jim Meyering  <jim@meyering.net>
82040
82041         * lib/canon-host.c: Filter through gnu indent and reword comments
82042         slightly.
82043         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82044
82045 2005-09-13  Derek Price  <derek@ximbiot.com>
82046
82047         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82048         failure.
82049         Reported by Jim Meyering  <jim@meyering.net>.
82050
82051 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82052
82053         * lib/base64.c: Typo.
82054         (base64_encode): Put b64str in initialized data section.
82055
82056 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82057
82058         Merge glibc and coreutils changes into gnulib, plus a few
82059         extra fixes.
82060         * lib/md5.c: Use #error rather than a string.
82061         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82062         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82063         (__attribute__): Define to empty for non recent-GCC.
82064         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82065         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82066         Renamed from their non-__ counterparts, with new macros replacing
82067         them if not _LIBC.  Add __THROW attribute.
82068         (rol): Remove.
82069         (struct md5_ctx): Align buffer if using GCC.
82070         * lib/sha1.h (struct sha1_ctx): Likewise.
82071         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82072         The old name was backwards.
82073         (NOTSWAP): Remove; not used.
82074         (rol): New macro, moved here from md5.h.
82075         (sha1_process_block): Remove a FIXME that doesn't make sense.
82076
82077 2005-09-12  Derek Price  <derek@ximbiot.com>
82078
82079         Return usable errors from canon-host.
82080         * lib/canon-host.h: New file.
82081         * lib/canon-host.c (canon_host): Wrap...
82082         (canon_host_r): ...this new function, which now relies exclusively on
82083         getaddrinfo.
82084         (ch_strerror): New function.
82085         (last_cherror): New global.
82086         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82087         interface.
82088         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82089         void *.
82090         (freeaddrinfo): Free ai->ai_canonname when set.
82091
82092 2005-09-12  Derek Price  <derek@ximbiot.com>
82093
82094         Make canon-host require getaddrinfo.
82095         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82096         AC_LIBSOURCE canon-host.h.  Call...
82097         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82098         gl_GETADDRINFO.
82099         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82100
82101 2005-09-12  Derek Price  <derek@ximbiot.com>
82102
82103         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82104         LGPL.
82105         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82106
82107 2005-09-12  Derek Price  <derek@ximbiot.com>
82108
82109         * lib/gai_strerror.c: Include config.h when available.  Include
82110         getaddrinfo.h before other headers to test interface.
82111         Reported by Larry Jones <lawrence.jones@ugs.com>.
82112
82113 2005-09-12  Derek Price  <derek@ximbiot.com>
82114             Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * modules/glob (Files): Add glob-libc.h.
82117
82118 2005-09-12  Derek Price  <derek@ximbiot.com>
82119             Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82122         glob_.h, glob-libc.h.
82123         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82124
82125 2005-09-12  Derek Price  <derek@ximbiot.com>
82126             Paul Eggert  <eggert@cs.ucla.edu>
82127
82128         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82129         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82130         protecting things that should be done only in gnulib contexts.
82131         * lib/glob_.h: New file, containing only the glob things needed for
82132         gnulib.
82133         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82134         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82135         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82136         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82137         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82138         and to respect the namespace rules better.
82139
82140 2005-09-08  Simon Josefsson  <jas@extundo.com>
82141
82142         * modules/socklen: New file.
82143
82144 2005-09-08  Simon Josefsson  <jas@extundo.com>
82145
82146         * m4/socklen.m4: New file.
82147
82148 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82149
82150         * modules/utimens (Files): Add m4/utimbuf.m4, since
82151         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82152         Reported by Sergey Poznyakoff.
82153
82154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82157         definitions, since that's the preferred style in glibc.
82158         Fix a minor spacing issue, and update copyright notice to match
82159         glibc's.
82160
82161 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82164
82165 2005-09-06  Simon Josefsson  <jas@extundo.com>
82166
82167         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82168         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82169
82170 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82171
82172         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82173         warning.
82174
82175 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * config/srclist.txt: Add glibc bug 1302.
82178
82179 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         Change bitset word type from unsigned int to unsigned long int,
82182         as this has better performance on typical 64-bit hosts.
82183         Port bitset code to hosts with unusual word sizes.
82184         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82185         (build_collating_symbol):
82186         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82187         argument is a bitset.  This is merely a style issue, but it makes
82188         it clearer that an entire array is expected.
82189         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82190         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82191         Port to the case where bitset_word is not the same as unsigned int.
82192         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82193         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82194         Likewise.
82195         * lib/regexec.c (check_dst_limits_calc_pos_1,
82196         check_subexp_matching_top):
82197         (build_trtable, group_nodes_into_DFAstates):
82198         Likewise.
82199         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82200         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82201         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82202         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82203         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82204         * lib/regcomp.c (optimize_subexps, lower_subexp):
82205         Work even if bitset_word has holes in its bitwise representation.
82206         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82207         * lib/regexec.c (check_dst_limits_calc_pos_1,
82208         check_subexp_matching_top):
82209         Likewise.
82210         * lib/regex_internal.c (re_string_reconstruct):
82211         Don't assume UCHAR_MAX == 255.
82212         * lib/regex_internal.h (bitset_set_all): Likewise.
82213         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82214         All uses changed.
82215         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82216         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82217         All uses changed.
82218         (BITSET_WORD_MAX): New macro.
82219         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82220         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82221         (bitset_empty, bitset_copy):
82222         Prefer sizeof (bitset) to multiplying it out ourselves.
82223         (bitset_not_merge): Remove; unused.
82224         (bitset_contain): Return bool, not unsigned int with one bit on.
82225         All callers changed.
82226         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82227         alignment than re_node_set; do this by defining a new internal
82228         type struct dests_alloc and using it to allocate memory.
82229
82230 2005-09-05  Bruno Haible  <bruno@clisp.org>
82231
82232         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82233         links.
82234
82235 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82236
82237         * modules/size_max (Makefile.am): Add size_max.h
82238
82239 2005-09-04  Derek Price  <derek@ximbiot.com>
82240
82241         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82242
82243 2005-09-03  Simon Josefsson  <jas@extundo.com>
82244
82245         * gnulib-tool: Fix typo.
82246
82247 2005-09-03  Simon Josefsson  <jas@extundo.com>
82248
82249         * config/srclist.txt: Add glibc bug 1293.
82250
82251 2005-09-03  Derek Price  <derek@ximbiot.com>
82252
82253         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82254         From Larry Jones <lawrence.jones@ugs.com>.
82255
82256 2005-09-02  Simon Josefsson  <jas@extundo.com>
82257
82258         * modules/socklen: New file.
82259
82260 2005-09-02  Simon Josefsson  <jas@extundo.com>
82261
82262         * modules/havelib: New module.
82263
82264         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82265         Use havelib.
82266
82267 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82268
82269         Check for arithmetic overflow when calculating sizes, to prevent
82270         some buffer-overflow issues.  These patches are conservative, in the
82271         sense that when I couldn't determine whether an overflow was possible,
82272         I inserted a run-time check.
82273         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82274         macros.
82275         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82276         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82277         (re_xnrealloc, re_x2nrealloc): New inline functions.
82278         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82279         parse_bracket_exp):
82280         (build_equiv_class, build_charclass): Check for arithmetic overflow
82281         in size expression calculations.
82282         * lib/regex_internal.c (re_string_realloc_buffers):
82283         (build_wcs_upper_buffer, re_node_set_add_intersect):
82284         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82285         (re_dfa_add_node, register_state): Likewise.
82286         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82287         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82288         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82289         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82290
82291 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82292
82293         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82294         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82295
82296 2005-09-02  Bruno Haible  <bruno@clisp.org>
82297
82298         Support for lib vs. lib64 distinction on biarch platforms.
82299         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82300         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82301         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82302
82303 2005-09-02  Bruno Haible  <bruno@clisp.org>
82304
82305         * gnulib-tool (import): In the other first-use case, provide defaults
82306         as well.
82307
82308 2005-09-02  Bruno Haible  <bruno@clisp.org>
82309
82310         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82311         patches not yet found in the latest gettext release.
82312
82313 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82316         to avoid a collision with bits/local_lim.h in glibc.
82317         All uses changed.  Problem reported by Dmitry V. Levin in
82318         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82319
82320         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82321         bugs in int versus size_t comparisons.
82322         (re_string_context_at): Fix bug where the code assumed that
82323         Idx is signed.
82324
82325         Use bool where appropriate.
82326         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82327         All callers changed.
82328         (calc_eclosure_iter): Likewise, for ROOT arg.
82329         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82330         (build_charclass_op): Likewise, for NON_MATCH arg.
82331         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82332         (re_string_construct_common): Likewise, for ICASE arg.
82333         * lib/regexec.c (re_search_2_stub, re_search_stub):
82334         Likewise, for RET_LEN arg.
82335         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82336         (set_regs): Likewise, for FL_BACKTRACK arg.
82337         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82338         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82339         (calc_eclosure_iter, parse_bracket_exp):
82340         Use bool for internal variables that are booleans.
82341         * lib/regexec.c (re_search_internal, check_matching,
82342         proceed_next_node):
82343         (set_regs, build_sifted_states, sift_states_bkref):
82344         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82345         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82346         (find_collation_sequence_value):
82347         Likewise.
82348         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82349         (re_node_set_compare):
82350         Return bool, not int. All callers changed.
82351         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82352         (build_trtable, check_node_accept): Likewise.
82353         * lib/regex_internal.h: Include stdbool.h.
82354
82355         Fix bugs uncovered when converting to bool.
82356         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82357         failure instead of charging ahead blindly.
82358         * lib/regex_internal.c (register_state): Likewise.
82359         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82360         for freeing internal storage.
82361         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82362         bitset pieces used as boolean, to avoid undefined behavior
82363         on hosts that do int overflow checking.
82364
82365 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82366
82367         * config/srclist.txt: Add glibc bugs 1285-1287.
82368
82369 2005-09-01  Jim Meyering  <jim@meyering.net>
82370
82371         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82372         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82373         Require gl_STAT_MACROS, too.
82374
82375 2005-09-01  Bruno Haible  <bruno@clisp.org>
82376
82377         * gnulib-tool (import): In the first-use case, provide defaults.
82378
82379 2005-09-01  Bruno Haible  <bruno@clisp.org>
82380
82381         * gnulib-tool (func_import): Remove the .tmp files.
82382
82383 2005-09-01  Bruno Haible  <bruno@clisp.org>
82384
82385         * gnulib-tool (func_import): Fix handling of symbolic links.
82386
82387 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82390         old glibc regex code mishandles strings longer than 2**31 bytes.
82391         This patch fixes this when the regex code is used in gnulib
82392         (i.e., outside glibc).
82393
82394         This patch should not affect the use of the regex code inside
82395         glibc.  No doubt this problem also needs to be handled for glibc
82396         as well, but the result will be an incompatible change to the
82397         glibc ABI, and the old ABI will have to be supported too.  That
82398         can be the the subject for another patch.
82399
82400         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82401         governing whether the rest of this patch is active.  By default,
82402         the macro is disabled and the patch has no effect.
82403         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82404         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82405         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82406         (re_match_2, re_set_registers): Use the new types.
82407         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82408         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82409         New macros.
82410         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82411         (re_string_context_at, bin_tree_t, re_dfastate_t):
82412         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82413         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82414         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82415         (re_string_char_size_at, re_string_wchar_at):
82416         (re_string_elem_size_at):
82417         Use the new types and macros to port to 64-bit hosts.
82418         Use unsigned types for internal values, so that the code
82419         mostly works even for arrays larger than SSIZE_MAX.
82420         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82421         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82422         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82423         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82424         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82425         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82426         (calc_inveclosure, parse_dup_op, build_range_exp):
82427         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82428         (fetch_number, create_token_tree, mark_opt_subexp):
82429         Likewise.
82430         * lib/regex_internal.c (re_string_construct_common,
82431         create_ci_newstate):
82432         (create_cd_newstate, re_string_allocate, re_string_construct):
82433         (re_string_realloc_buffers, build_wcs_upper_buffer):
82434         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82435         (re_string_reconstruct, re_string_peek_byte_case):
82436         (re_string_fetch_byte_case, re_string_context_at):
82437         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82438         (re_node_set_init_copy, re_node_set_add_intersect):
82439         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82440         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82441         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82442         (re_acquire_state, re_acquire_state_context, register_state):
82443         Likewise.
82444         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82445         search_cur_bkref_entry):
82446         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82447         (re_search_internal, re_search_2_stub, re_search_stub)
82448         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82449         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82450         (update_cur_sifted_state, check_dst_limits):
82451         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82452         (check_subexp_limits, sift_states_bkref, merge_state_array):
82453         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82454         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82455         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82456         (expand_bkref_cache, check_node_accept_bytes):
82457         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82458         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82459         (acquire_init_state_context, check_halt_node_context):
82460         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82461         (sift_states_backward, clean_state_log_if_needed):
82462         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82463         (find_recover_state, transit_state_sb, transit_state_mb):
82464         (transit_state_bkref, build_trtable, match_ctx_clean):
82465         Likewise.
82466         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82467         to work around an assumption that REG_MISSING is negative.
82468
82469         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82470         (seek_collating_symbol_entry) [defined _LIBC]:
82471         (lookup_collation_sequence_value) [defined _LIBC]:
82472         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82473         Use prototypes rather than old-style function definitions.
82474         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82475         (transit_state_sb) [0]:
82476         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82477
82478         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82479         rm_eo.
82480
82481         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82482         (optimize_subexps, lower_subexp):
82483         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82484         since the signed shift might overflow.  Use 1u<<31 instead.
82485         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82486         Likewise.
82487         * lib/regexec.c (check_dst_limits_calc_pos_1,
82488         check_subexp_matching_top): Likewise.
82489
82490         * lib/regcomp.c (optimize_subexps, lower_subexp):
82491         Use CHAR_BIT rather than 8, for clarity.
82492         * lib/regexec.c (check_dst_limits_calc_pos_1):
82493         (check_subexp_matching_top): Likewise.
82494         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82495         have to worry about portability issues when shifting it left.
82496         Remove no-longer-needed test for table_size > 0.
82497         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82498         in a word, as the resulting behavior is undefined.
82499         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82500         in one case, a <= should have been an <, and in another case the
82501         whole test was missing.
82502         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82503         the standard name CHAR_BIT.
82504         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82505         this is not true on one's complement and signed-magnitude hosts.
82506
82507         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82508         next_last_offset.
82509         (struct re_dfa_t): Remove unused member states_alloc.
82510         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82511
82512 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82513
82514         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82515         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82516         and large-file glibc and in 32-bit large-file Solaris.
82517
82518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82519
82520         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82521         lengths fit in regoff_t; this isn't true if regoff_t is the same
82522         width as size_t.
82523         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82524         (= START + RANGE) instead of RANGE.  This avoids overflow
82525         problems when regoff_t is the same width as size_t.
82526         All callers changed.
82527         (re_search_2_stub): Check for overflow when adding the
82528         sizes of the two strings.
82529         (re_search_stub): Check for overflow when adding START
82530         to RANGE; if it occurs, substitute the extreme value.
82531
82532 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82535
82536 2005-08-31  Jim Meyering  <jim@meyering.net>
82537
82538         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82539         a pointer-to-const.
82540         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82541         (register_state): Likewise.
82542         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82543         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82544         (group_nodes_into_DFAstates): Likewise.
82545
82546 2005-08-31  Jim Meyering  <jim@meyering.net>
82547
82548         * check-module: Add a FIXME comment.
82549
82550 2005-08-31  Eric Blake  <ebb9@byu.net>
82551
82552         * modules/unistd-safer (Files): Add unistd--.h.
82553         * modules/stdio-safer (Files): Add stdio--.h.
82554
82555 2005-08-31  Derek Price  <derek@ximbiot.com>
82556
82557         * lib/getdelim.c (getdelim): Return EOF on EOF.
82558         Reported by Larry Jones <lawrence.jones@ugs.com>.
82559
82560 2005-08-31  Bruno Haible  <bruno@clisp.org>
82561
82562         Avoid unnecessary diffs in the generated lib/Makefile.am.
82563         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82564         the generated files.
82565         (func_import): Don't set cmd.
82566
82567 2005-08-31  Bruno Haible  <bruno@clisp.org>
82568
82569         * lib/strstr.c: Include <stddef.h>, for NULL.
82570         * lib/strcasestr.c: Likewise.
82571         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82572
82573 2005-08-31  Bruno Haible  <bruno@clisp.org>
82574
82575         * gnulib-tool: New option --macro-prefix.
82576         (func_import): Use macro_prefix.
82577         (import): Handle option --macro-prefix.
82578
82579 2005-08-31  Bruno Haible  <bruno@clisp.org>
82580
82581         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82582         Also use new variables cached_lgpl, cached_libtool.
82583
82584 2005-08-31  Bruno Haible  <bruno@clisp.org>
82585
82586         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82587         always instantiating them.
82588
82589 2005-08-31  Bruno Haible  <bruno@clisp.org>
82590
82591         * gnulib-tool (func_import): Read the previous cached settings
82592         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82593         earlier added by gnulib but are now dropped. Warn when a gnulib file
82594         overwrites a non-gnulib file.
82595
82596 2005-08-31  Bruno Haible  <bruno@clisp.org>
82597
82598         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82599         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82600         projects that don't keep autogenerated files in CVS. Put into
82601         actioncmd only the specified modules, not the transitive closure.
82602
82603 2005-08-31  Bruno Haible  <bruno@clisp.org>
82604
82605         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82606         Create directories that shall be filled.
82607         (import): Don't look for gl_* macros in configure.ac. Recurse across
82608         all directories containing a gnulib-cache.m4 files, if meaningful.
82609
82610 2005-08-31  Bruno Haible  <bruno@clisp.org>
82611
82612         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82613         (import): Set seen_libtool when we see gl_LIBTOOL.
82614
82615 2005-08-31  Bruno Haible  <bruno@clisp.org>
82616
82617         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82618         declaration macro definitions from generated gnulib.m4.
82619
82620 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82621
82622         * lib/iconvme.h: Add prototype for iconv_alloc.
82623
82624 2005-08-29  Simon Josefsson  <jas@extundo.com>
82625
82626         * lib/iconvme.c: Fix errno.
82627
82628 2005-08-29  Bruno Haible  <bruno@clisp.org>
82629
82630         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82631         that it works when the directory contains spaces.
82632
82633 2005-08-29  Bruno Haible  <bruno@clisp.org>
82634
82635         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82636
82637 2005-08-29  Bruno Haible  <bruno@clisp.org>
82638
82639         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82640         Emit more advice.
82641
82642 2005-08-29  Bruno Haible  <bruno@clisp.org>
82643         and Stepan Kasal  <kasal@ucw.cz>
82644
82645         * check-module: If more parameters are given, check each of them
82646         separately; add more exceptions, as noted by Jim Meyering.
82647         (check_module): New procedure.
82648         (%exempt_header): Now contains all exceptions.
82649
82650 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82651
82652         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82653
82654 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82655
82656         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82657
82658 2005-08-28  Bruno Haible  <bruno@clisp.org>
82659
82660         * m4/gnulib-tool.m4: New file.
82661
82662 2005-08-27  Jim Meyering  <jim@meyering.net>
82663
82664         * modules/unistd-safer (Files): Add pipe-safer.c.
82665         * modules/fcntl-safer (Files): Add creat-safer.c.
82666
82667 2005-08-27  Jim Meyering  <jim@meyering.net>
82668
82669         * m4/stdlib-safer.m4: New file.  From coreutils.
82670         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82672         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82673         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82674         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82675
82676 2005-08-27  Jim Meyering  <jim@meyering.net>
82677
82678         * lib/fopen-safer.c: Merge minor changes from coreutils.
82679         * lib/dup-safer.c: Likewise.
82680         * lib/fd-safer.c: Likewise.
82681
82682         Merge from coreutils.
82683         * lib/stdio--.h: New file.
82684         * lib/stdlib--.h: New file.
82685         * lib/mkstemp-safer.c: New file.
82686
82687         GNU tar needs these.
82688         * lib/pipe-safer.c: New file.
82689         * lib/creat-safer.c: New file.
82690         * lib/fcntl--.h (creat): Define to creat_safer.
82691         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82692         * lib/unistd--.h (pipe): Define to pipe_safer.
82693         * lib/unistd-safer.h: Declare pipe_safer.
82694
82695 2005-08-26  Simon Josefsson  <jas@extundo.com>
82696
82697         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82698         Haible <bruno@clisp.org>.
82699
82700 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         * lib/regex_internal.h: Remove all references to
82703         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82704         or better.
82705         (bitset_not, bitset_merge, bitset_not_merge):
82706         (bitset_mask, re_string_allocate, re_string_construct):
82707         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82708         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82709         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82710         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82711         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82712         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82713         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82714         (re_acquire_state_context):
82715         Remove unnecessary forward decls.
82716         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82717         Put __attribute at function definition,
82718         now that the function decl has been removed.
82719         * lib/regex_internal.c (re_string_peek_byte_case):
82720         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82721         Likewise.
82722
82723 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82724
82725         * m4/regex.m4: Add AC_PREREQ(2.50).
82726         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82727
82728 2005-08-25  Simon Josefsson  <jas@extundo.com>
82729
82730         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82731         __fsetlocking.
82732
82733 2005-08-25  Simon Josefsson  <jas@extundo.com>
82734
82735         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82736         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82737         GLIBC specific code.
82738
82739 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82740
82741         Make regex safe for g++.  This fixes one real bug (an "err"
82742         that should have been "*err").  g++ problem reported by
82743         Sam Steingold.
82744         * lib/regex_internal.h (re_calloc): New macro, consistent with
82745         re_malloc etc.  All callers of calloc changed to use re_calloc.
82746         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82747         not int.  All callers changed.
82748         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82749         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82750         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82751         (find_recover_state): Change "err" to "*err"; this fixes what
82752         appears to be a real bug.
82753         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82754         versus int.
82755
82756 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * modules/regex (Depends-on): Add malloc, since the code
82759         assumes that !malloc(0) means failure.
82760
82761 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82762
82763         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82764
82765         alloca modernization/simplification for regex.
82766         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82767         needs to be at the start of the file, and can be moved into
82768         regex_internal.h and simplified.
82769         * lib/regex_internal.h: Include <alloca.h>.
82770         (__libc_use_alloca) [!defined _LIBC]: New macro.
82771         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82772         now works outside glibc.
82773
82774 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82775
82776         * config/srclist.txt: Add glibc bugs 1241, 1245.
82777
82778 2005-08-25  Jim Meyering  <jim@meyering.net>
82779
82780         * lib/open-safer.c: Include <config.h>.
82781         Otherwise, we'd lose LARGEFILE support in any file using
82782         e.g. "fcntl--.h"
82783
82784 2005-08-25  Bruno Haible  <bruno@clisp.org>
82785
82786         * m4/minmax.m4: Require autoconf 2.52.
82787         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82788         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82789         alternatives of translit over the alphabet.
82790         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82791
82792 2005-08-24  Simon Josefsson  <jas@extundo.com>
82793
82794         * tests/test-getpass.c: New file.
82795
82796 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82799         for GNU regex features.
82800
82801 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82802
82803         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82804         * lib/regex.h (regerror): Likewise.
82805
82806         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82807         requires this.  (The code never needed it.)
82808
82809         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82810         All uses of recently-renamed identifiers changed to use the new,
82811         POSIX-compliant names.  The code will build and run just fine
82812         without these changes, but it's better to eat our own dog food
82813         and use the standard-conforming names.
82814
82815         * lib/regex.h: Fix a multitude of POSIX name space violations.
82816         These changes have an effect only for programs that define
82817         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
82818         do not change anything for programs compiled in the normal way.
82819         Also, there is no effect on the ABI.
82820
82821         (_REGEX_SOURCE): New macro.
82822         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
82823         defined and _GNU_SOURCE is not; this fixes a name space violation.
82824
82825         Rename the following macros to obey POSIX requirements.
82826         The old names are still visible as macros if _REGEX_SOURCE is defined.
82827         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
82828         RE_BACKSLASH_ESCAPE_IN_LISTS.
82829         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
82830         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
82831         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
82832         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
82833         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
82834         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
82835         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
82836         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
82837         (REG_INTERVALS): renamed from RE_INTERVALS.
82838         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
82839         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
82840         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
82841         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
82842         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
82843         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
82844         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
82845         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
82846         RE_UNMATCHED_RIGHT_PAREN_ORD.
82847         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
82848         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
82849         (REG_DEBUG): renamed from RE_DEBUG.
82850         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
82851         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
82852         unusual, since we can't clash with the POSIX REG_ICASE.
82853         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
82854         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
82855         (REG_NO_SUB): renamed from RE_NO_SUB.
82856         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
82857         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
82858         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
82859         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
82860         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
82861         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
82862         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
82863         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
82864         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
82865         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
82866         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
82867         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
82868         RE_SYNTAX_POSIX_MINIMAL_BASIC.
82869         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
82870         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
82871         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
82872         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
82873         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
82874         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
82875         (REG_FIXED): Renamed from REGS_FIXED.
82876         (REG_NREGS): Renamed from RE_NREGS.
82877
82878         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
82879         of other REG_* macros, since POSIX says the user is allowed to
82880         #undef these macros selectively.
82881
82882         (reg_errcode_t): Update comment stating what other tables need
82883         to be consistent.
82884
82885         Rename the following enum values to obey POSIX requirements.
82886         The old names are still visible as macros.
82887         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
82888         is not defined, since GNU is supposed to be a superset of POSIX as
82889         much as possible, and since we want reg_errcode_t to be a signed
82890         type for implementation consistency.
82891         (_REG_NOERROR): Renamed from REG_NOERROR.
82892         (_REG_NOMATCH): Renamed from REG_NOMATCH.
82893         (_REG_BADPAT): Renamed from REG_BADPAT.
82894         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
82895         (_REG_ECTYPE): Renamed from REG_ECTYPE.
82896         (_REG_EESCAPE): Renamed from REG_EESCAPE.
82897         (_REG_ESUBREG): Renamed from REG_ESUBREG.
82898         (_REG_EBRACK): Renamed from REG_EBRACK.
82899         (_REG_EPAREN): Renamed from REG_EPAREN.
82900         (_REG_EBRACE): Renamed from REG_EBRACE.
82901         (_REG_BADBR): Renamed from REG_BADBR.
82902         (_REG_ERANGE): Renamed from REG_ERANGE.
82903         (_REG_ESPACE): Renamed from REG_ESPACE.
82904         (_REG_BADRPT): Renamed from REG_BADRPT.
82905         (_REG_EEND): Renamed from REG_EEND.
82906         (_REG_ESIZE): Renamed from REG_ESIZE.
82907         (_REG_ERPAREN): Renamed from REG_ERPAREN.
82908         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
82909         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
82910         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
82911         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
82912
82913         (_REG_RE_NAME, _REG_RM_NAME): New macros.
82914         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
82915         changed.  But support the old name if the new one is not defined
82916         and if _REGEX_SOURCE.
82917
82918         Change the following member names in struct re_pattern_buffer.
82919         The old names are still supported if !_REGEX_SOURCE.
82920         The new names are always supported, regardless of _REGEX_SOURCE.
82921         (re_buffer): Renamed from buffer.
82922         (re_allocated): Renamed from allocated.
82923         (re_used): Renamed from used.
82924         (re_syntax): Renamed from syntax.
82925         (re_fastmap): Renamed from fastmap.
82926         (re_translate): Renamed from translate.
82927         (re_can_be_null): Renamed from can_be_null.
82928         (re_regs_allocated): Renamed from regs_allocated.
82929         (re_fastmap_accurate): Renamed from fastmap_accurate.
82930         (re_no_sub): Renamed from no_sub.
82931         (re_not_bol): Renamed from not_bol.
82932         (re_not_eol): Renamed from not_eol.
82933         (re_newline_anchor): Renamed from newline_anchor.
82934
82935         Change the following member names in struct re_registers.
82936         The old names are still supported if !_REGEX_SOURCE.
82937         The new names are always supported, regardless of _REGEX_SOURCE.
82938         (rm_num_regs): Renamed from num_regs.
82939         (rm_start): Renamed from start.
82940         (rm_end): Renamed from end.
82941
82942         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
82943         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
82944         Prepend __ to parameter names.
82945
82946         Undo yesterday's changes.
82947
82948 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82951         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82952         lib/regex.c.
82953
82954 2005-08-24  Jim Meyering  <jim@meyering.net>
82955
82956         Sync from coreutils.
82957         * m4/fcntl-safer.m4: New file.
82958
82959         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82960         and object files for this module.
82961
82962 2005-08-24  Jim Meyering  <jim@meyering.net>
82963
82964         Sync from coreutils.
82965         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82966
82967 2005-08-24  Jim Meyering  <jim@meyering.net>
82968
82969         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82970         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82971
82972 2005-08-24  Jim Meyering  <jim@meyering.net>
82973
82974         * modules/fcntl-safer: New module.
82975         * modules/fts (Depends-on): Add fcntl-safer.
82976         * MODULES.html.sh (File descriptor based Input/Output):
82977         Add fcntl-safer.
82978
82979 2005-08-24  Bruno Haible  <bruno@clisp.org>
82980
82981         Support for unit test modules.
82982         * modules/README: Mention tests modules.
82983         * modules/TEMPLATE-TESTS: New file.
82984         * gnulib-tool: New options --extract-tests-module, --with-tests and
82985         --tests-base (unused for the moment).
82986         (testsbase, inctests): New variables.
82987         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82988         (func_verify_module): Exclude TEMPLATE-TESTS.
82989         (func_verify_nontests_module, func_verify_tests_module): New functions.
82990         (func_get_dependencies): Add implicit dependency for tests modules.
82991         (func_get_tests_module): New function.
82992         (func_modules_transitive_closure): When --with-tests was specified,
82993         include the unit tests as well, unless explicitly avoided.
82994         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82995         (func_emit_tests_Makefile_am): New function.
82996         (func_create_testdir): When --with-tests was specified, emit a
82997         tests/ directory.
82998         * MODULES.html.sh (Future developments): Update.
82999
83000 2005-08-24  Bruno Haible  <bruno@clisp.org>
83001
83002         * modules/tls-tests: New file.
83003         * tests/test-tls.c: New file, from GNU gettext.
83004
83005 2005-08-24  Bruno Haible  <bruno@clisp.org>
83006
83007         * modules/lock-tests: New file.
83008         * tests/test-lock.c: New file, from GNU gettext.
83009
83010 2005-08-24  Bruno Haible  <bruno@clisp.org>
83011
83012         * lib/lock.h: Add multiple inclusion guard.
83013         * lib/tls.h: Add multiple inclusion guard.
83014
83015 2005-08-24  Bruno Haible  <bruno@clisp.org>
83016
83017         * gnulib-tool: Add support for the --aux-dir option to
83018         --create-testdir, --create-megatestdir, --test, --megatest.
83019         (func_create_testdir, func_create_megatestdir): Optionally emit a
83020         AC_CONFIG_AUX_DIR directive.
83021         (create-testdir, create-megatestdir, test, megatest): Provide a
83022         default value for $auxdir.
83023
83024 2005-08-24  Bruno Haible  <bruno@clisp.org>
83025
83026         * gnulib-tool (import): Use compound statement instead of subshell
83027         where possible.
83028
83029 2005-08-24  Bruno Haible  <bruno@clisp.org>
83030
83031         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83032
83033 2005-08-24  Bruno Haible  <bruno@clisp.org>
83034
83035         * gnulib-tool (func_version): Update.
83036
83037 2005-08-24  Bruno Haible  <bruno@clisp.org>
83038
83039         * gnulib-tool (func_import, func_create_testdir,
83040         func_create_megatestdir): Quote all autoconf macro arguments.
83041
83042 2005-08-24  Bruno Haible  <bruno@clisp.org>
83043
83044         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83045         option --force, because --force causes the aclocal.m4 of each
83046         subdirectory to be newer than the corresponding config.h.in.
83047
83048 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83051         All contents moved to gl_REGEX.
83052         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83053         assume that it does.
83054
83055 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * lib/regex.h (REG_NOSYS)
83058         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83059         Define, since POSIX requires it as of 2001.
83060         (_REG_ENOSYS)
83061         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83062         New private symbol, used to keep the enum signed in all cases.
83063         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83064         Youngman in
83065         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83066
83067         * lib/regex_internal.c (re_string_skip_chars, register_state):
83068         (calc_state_hash):
83069         Remove forward decls; no longer needed now that we use prototypes.
83070         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83071         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83072         (clean_state_log_if_needed): Likewise.
83073
83074 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83075
83076         * config/srclist.txt: Add glibc bugs 1231-1233.
83077
83078 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83079
83080         Fix problems reported by Sam Steingold in
83081         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83082         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83083         assumed that reg_errcode_t is a signed type, which is not
83084         necessarily true if _XOPEN_SOURCE is not defined.
83085         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83086         since some compilers warn about it otherwise.
83087
83088 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83089
83090         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83091         (init_word_char, create_initial_state, duplicate_node_closure):
83092         (fetch_token, peek_token_bracket, build_range_exp):
83093         (build_collating_symbol): Remove forward decls; no longer needed
83094         now that we use prototypes.
83095
83096         * lib/regcomp.c:
83097         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83098         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83099         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83100         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83101         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83102         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83103         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83104         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83105         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83106         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83107         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83108         (build_charclass, build_charclass_op, fetch_number, create_tree):
83109         (create_token_tree, mark_opt_subexp, duplicate_tree):
83110         Use prototypes rather than old-style definitions.
83111
83112         * lib/regex_internal.c:
83113         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83114         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83115         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83116         (re_string_reconstruct, re_string_peek_byte_case):
83117         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83118         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83119         (re_node_set_init_copy, re_node_set_add_intersect):
83120         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83121         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83122         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83123         (re_acquire_state, re_acquire_state_context, register_state):
83124         (create_ci_newstate, create_cd_newstate, free_state):
83125         Likewise.
83126         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83127         re_search_2):
83128         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83129         (re_search_internal, prune_impossible_nodes):
83130         (acquire_init_state_context, check_matching, static):
83131         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83132         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83133         (update_regs, sift_states_backward, build_sifted_states):
83134         (clean_state_log_if_needed, merge_state_array):
83135         (update_cur_sifted_state, add_epsilon_src_nodes):
83136         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83137         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83138         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83139         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83140         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83141         (check_arrival, check_arrival_add_next_nodes):
83142         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83143         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83144         (check_node_accept_bytes, check_node_accept, extend_buffers):
83145         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83146         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83147         (sift_ctx_init):
83148         Likewise.
83149
83150         * lib/regex_internal.h:
83151         (re_string_allocate, re_string_construct, re_string_reconstruct):
83152         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83153         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83154         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83155         (re_string_context_at, re_string_peek_byte_case):
83156         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83157         is defined, since we now use prototypes always.
83158
83159         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83160         C89 or better.  All uses removed.
83161
83162 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83163
83164         * config/srclist.txt: Add glibc bugs 1220-1227.
83165
83166 2005-08-20  Jim Meyering  <jim@meyering.net>
83167
83168         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83169         of unused local, dfa.
83170
83171 2005-08-20  Bruno Haible  <bruno@clisp.org>
83172
83173         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83174
83175 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83178         (re_node_set_insert_last, re_dfa_add_node):
83179         Rename local variables to avoid GCC shadowing warnings.
83180
83181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83184         [defined lint]: Suppress bogus uninitialized-variable warnings.
83185
83186         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83187         and let the caller return REG_ESPACE if out of space.  This
83188         removes an uninitialied-variable warning with GCC 4.0.1, and also
83189         avoids taking the address of a local variable.  All callers
83190         changed.
83191
83192 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83193
83194         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83195         $LIBCSRC/posix/regexec.c.
83196         Add glibc bug 1217 for regcomp.c.
83197
83198 2005-08-19  Jim Meyering  <jim@meyering.net>
83199
83200         * lib/regexec.c (proceed_next_node): Redo local variables to
83201         avoid GCC shadowing warnings.
83202
83203 2005-08-18  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/strstr.c (strstr): Fix return value in multibyte case.
83206         * lib/strcasestr.c (strcasestr): Likewise.
83207
83208 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83211
83212 2005-08-17  Jim Meyering  <jim@meyering.net>
83213
83214         Make the %s format (seconds since the epoch) work for a negative
83215         number and when used with a zero-padded field width, e.g. %015s.
83216
83217         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83218         label so that it precedes the code to set `digits'.  Otherwise,
83219         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83220         print `00-22'.  Now, it prints `-0022', as it should.
83221
83222 2005-08-17  Bruno Haible  <bruno@clisp.org>
83223
83224         * modules/strstr (Files): Add m4/mbrtowc.m4.
83225         (Depends-on): Add mbuiter.
83226
83227 2005-08-17  Bruno Haible  <bruno@clisp.org>
83228
83229         * modules/strcasestr: New file.
83230         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83231         strcasestr.
83232
83233 2005-08-17  Bruno Haible  <bruno@clisp.org>
83234
83235         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83236
83237 2005-08-17  Bruno Haible  <bruno@clisp.org>
83238
83239         * modules/mbuiter: New file.
83240         * MODULES.html.sh (Extended multibyte and wide character utilities):
83241         Add mbuiter.
83242
83243 2005-08-17  Bruno Haible  <bruno@clisp.org>
83244
83245         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83246         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83247
83248 2005-08-17  Bruno Haible  <bruno@clisp.org>
83249
83250         * m4/strcasestr.m4: New file.
83251
83252 2005-08-17  Bruno Haible  <bruno@clisp.org>
83253
83254         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83255         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83256
83257 2005-08-17  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/strcasestr.h: New file.
83260         * lib/strcasestr.c: New file.
83261
83262 2005-08-17  Bruno Haible  <bruno@clisp.org>
83263
83264         * lib/strcasecmp.c: Use mbuiter.h.
83265
83266 2005-08-17  Bruno Haible  <bruno@clisp.org>
83267
83268         * lib/mbuiter.h: New file.
83269
83270 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83273         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83274         and gl_GETOPT are both invoked via different paths (as happens
83275         with GNU tar CVS because it uses both argp and getopt), the former
83276         wins.
83277
83278 2005-08-16  Bruno Haible  <bruno@clisp.org>
83279
83280         * modules/tls: New file.
83281         * MODULES.html.sh (Multithreading): Add tls.
83282
83283 2005-08-16  Bruno Haible  <bruno@clisp.org>
83284
83285         * modules/strnlen1: New file.
83286         * MODULES.html.sh (String handling): Add strnlen1.
83287
83288 2005-08-16  Bruno Haible  <bruno@clisp.org>
83289
83290         * modules/strcase (Files): Add m4/mbrtowc.m4.
83291         (Depends-on): Add strnlen1, mbchar.
83292
83293 2005-08-16  Bruno Haible  <bruno@clisp.org>
83294
83295         * modules/mbiter: New file.
83296         * MODULES.html.sh (Extended multibyte and wide character utilities):
83297         Add mbiter.
83298
83299 2005-08-16  Bruno Haible  <bruno@clisp.org>
83300
83301         * modules/mbfile: New file.
83302         * MODULES.html.sh (Extended multibyte and wide character utilities):
83303         Add mbfile.
83304
83305 2005-08-16  Bruno Haible  <bruno@clisp.org>
83306
83307         * modules/mbchar: New file.
83308         * MODULES.html.sh (Extended multibyte and wide character utilities):
83309         New section.
83310
83311 2005-08-16  Bruno Haible  <bruno@clisp.org>
83312
83313         * m4/tls.m4: New file, from GNU gettext.
83314
83315 2005-08-16  Bruno Haible  <bruno@clisp.org>
83316
83317         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83318         always.
83319         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83320
83321 2005-08-16  Bruno Haible  <bruno@clisp.org>
83322
83323         * m4/mbiter.m4: New file.
83324
83325 2005-08-16  Bruno Haible  <bruno@clisp.org>
83326
83327         * m4/mbfile.m4: New file.
83328
83329 2005-08-16  Bruno Haible  <bruno@clisp.org>
83330
83331         * m4/mbchar.m4: New file.
83332
83333 2005-08-16  Bruno Haible  <bruno@clisp.org>
83334
83335         * lib/tls.h: New file, from GNU gettext.
83336         * lib/tls.c: New file, from GNU gettext.
83337
83338 2005-08-16  Bruno Haible  <bruno@clisp.org>
83339
83340         * lib/strnlen1.h: New file.
83341         * lib/strnlen1.c: New file.
83342
83343 2005-08-16  Bruno Haible  <bruno@clisp.org>
83344
83345         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83346         (mbi_init): Update.
83347         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83348         NUL byte, not after it.
83349
83350 2005-08-16  Bruno Haible  <bruno@clisp.org>
83351
83352         * lib/strcase.h (strcasecmp): Add note in comments.
83353         * lib/strncasecmp.c: Use code from strcasecmp.c.
83354         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83355         (strcasecmp): Work correctly in multibyte locales.
83356
83357 2005-08-16  Bruno Haible  <bruno@clisp.org>
83358
83359         * lib/mbiter.h: New file.
83360
83361 2005-08-16  Bruno Haible  <bruno@clisp.org>
83362
83363         * lib/mbfile.h: New file.
83364
83365 2005-08-16  Bruno Haible  <bruno@clisp.org>
83366
83367         * lib/mbchar.h: New file.
83368         * lib/mbchar.c: New file.
83369
83370 2005-08-16  Bruno Haible  <bruno@clisp.org>
83371
83372         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83373         the valid ones. Makes the comparison operations transitive:
83374         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83375         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83376
83377 2005-08-15  Simon Josefsson  <jas@extundo.com>
83378
83379         * modules/ssize_t (License): Change to 'unlimited'.
83380
83381         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83382
83383 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83384
83385         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83386         Add comments for each pending glibc patch.
83387
83388 2005-08-15  Bruno Haible  <bruno@clisp.org>
83389
83390         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83391         __cplusplus is defined.
83392
83393 2005-08-14  Jim Meyering  <jim@meyering.net>
83394
83395         Sync from coreutils.
83396
83397         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83398         Use the hash-table-based cycle-detection code not just when
83399         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83400         Reported by James Youngman in
83401         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83402         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83403         FTS_TIGHT_CYCLE_CHECK.
83404         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83405         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83406         once again.
83407         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83408         * lib/fts.c (fd_safer): Remove decl.
83409         Include fcntl--.h rather than unistd-safer.h
83410         (fts_safe_changedir): Don't call fd_safer; no longer needed
83411         now that we include fcntl--.h.
83412
83413 2005-08-12  Simon Josefsson  <jas@extundo.com>
83414
83415         * modules/getndelim2: Use ssize_t module.
83416         * modules/getnline: Likewise.
83417         * modules/safe-read: Likewise.
83418         * modules/xreadlink: Likewise.
83419
83420         * modules/ssize_t: New file.
83421
83422 2005-08-12  Simon Josefsson  <jas@extundo.com>
83423
83424         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83425
83426 2005-08-12  Simon Josefsson  <jas@extundo.com>
83427
83428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83429         ssize_t.
83430
83431 2005-08-12  Simon Josefsson  <jas@extundo.com>
83432
83433         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83434         readline, getdelim and check_version.
83435         (Support for systems lacking ISO C 99: Sizes of integer types):
83436         Add size_max.
83437
83438 2005-08-12  Bruno Haible  <bruno@clisp.org>
83439
83440         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83441
83442 2005-08-11  Simon Josefsson  <jas@extundo.com>
83443
83444         * modules/readline: New file.
83445
83446         * modules/strnlen (Files): Add strnlen.h.
83447
83448 2005-08-11  Simon Josefsson  <jas@extundo.com>
83449
83450         * m4/readline.m4: New file.
83451
83452 2005-08-11  Simon Josefsson  <jas@extundo.com>
83453
83454         * lib/readline.h, readline.c: New file.
83455
83456 2005-08-11  Simon Josefsson  <jas@extundo.com>
83457
83458         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83459         gl_AVOID.
83460
83461 2005-08-11  Bruno Haible  <bruno@clisp.org>
83462
83463         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83464
83465 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83466
83467         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83468
83469 2005-08-10  Simon Josefsson  <jas@extundo.com>
83470
83471         * tests/test-iconvme.c: New file.
83472
83473 2005-08-10  Simon Josefsson  <jas@extundo.com>
83474
83475         * m4/strnlen.m4: New file.
83476
83477         * m4/strndup.m4: Don't check for strnlen declaration, done in
83478         strnlen.m4.
83479
83480 2005-08-10  Simon Josefsson  <jas@extundo.com>
83481
83482         * lib/strndup.c: Use strnlen.h.
83483
83484         * lib/strnlen.h: New file.
83485
83486 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83487
83488         * README: Typos.
83489
83490 2005-08-02  Simon Josefsson  <jas@extundo.com>
83491
83492         * modules/readline: New file.
83493
83494 2005-08-02  Simon Josefsson  <jas@extundo.com>
83495
83496         * modules/getdelim: New file.
83497
83498         * modules/getline: Rewrite, don't use getndelim2.
83499
83500 2005-08-02  Simon Josefsson  <jas@extundo.com>
83501
83502         * m4/getline.m4: Separate out getdelim stuff into separate module.
83503
83504         * m4/getdelim.m4: New file.
83505
83506 2005-08-02  Simon Josefsson  <jas@extundo.com>
83507
83508         * lib/getline.h, getline.c: Rewrite.
83509
83510         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83511
83512 2005-07-31  Bruno Haible  <bruno@clisp.org>
83513
83514         * lib/lock.h (gl_lock_initializer): New macro.
83515         (gl_lock_define_initialized): Use it.
83516         (gl_rwlock_initializer): New macro.
83517         (gl_rwlock_define_initialized): Use it.
83518         (gl_recursive_lock_initializer): New macro.
83519         (gl_recursive_lock_define_initialized): Use it.
83520
83521 2005-07-30  Karl Berry  <karl@gnu.org>
83522
83523         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83524         Report from Ben Pfaff, regarding getopt.
83525
83526 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83527
83528         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83529         normal way.
83530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83531         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83532         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83533         (gl_GETOPT): Use the new macros.  Most of the implementation
83534         is moved to the new macros.  This is for programs like Emacs
83535         that don't want all the functionality of gl_GETOPT.
83536
83537 2005-07-26  Bruno Haible  <bruno@clisp.org>
83538
83539         * m4/lock.m4: Update from GNU gettext.
83540
83541 2005-07-26  Bruno Haible  <bruno@clisp.org>
83542
83543         * lib/lock.h: Update from GNU gettext.
83544         * lib/lock.c: Update from GNU gettext.
83545
83546 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83547
83548         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83549         obsolescent AC_TRY_RUN.  Include the default includes files, for
83550         'exit'.
83551
83552 2005-07-24  Bruno Haible  <bruno@clisp.org>
83553
83554         * modules/visibility: New file.
83555         * MODULES.html.sh (Misc): Add visibility.
83556
83557 2005-07-24  Bruno Haible  <bruno@clisp.org>
83558
83559         * m4/visibility.m4: New file.
83560
83561 2005-07-24  Bruno Haible  <bruno@clisp.org>
83562
83563         * doc/visibility.texi: New file.
83564
83565 2005-07-22  Bruno Haible  <bruno@clisp.org>
83566
83567         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83568         $(ALLOCA_H), redundant through BUILT_SOURCES.
83569         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83570         redundant through BUILT_SOURCES.
83571         * modules/byteswap (Makefile.am): Remove explicit dependency on
83572         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83573         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83574         $(FNMATCH_H), redundant through BUILT_SOURCES.
83575         * modules/getopt (Makefile.am): Remove explicit dependency on
83576         $(GETOPT_H), redundant through BUILT_SOURCES.
83577         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83578         redundant through BUILT_SOURCES.
83579         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83580         redundant through BUILT_SOURCES.
83581         * modules/stdbool (Makefile.am): Remove explicit dependency on
83582         $(STDBOOL_H), redundant through BUILT_SOURCES.
83583         * modules/stdint (Makefile.am): Remove explicit dependency on
83584         $(STDINT_H), redundant through BUILT_SOURCES.
83585         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83586         Remove explicit dependency on $(SYSEXITS_H).
83587         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83588
83589 2005-07-18  Simon Josefsson  <jas@extundo.com>
83590
83591         * lib/check-version.c (check_version): Accept identical versions too.
83592
83593 2005-07-18  Bruno Haible  <bruno@clisp.org>
83594
83595         * modules/lock: New file.
83596         * MODULES.html.sh (Multithreading): New section.
83597
83598 2005-07-18  Bruno Haible  <bruno@clisp.org>
83599
83600         * m4/lock.m4: New file, from GNU gettext.
83601
83602 2005-07-18  Bruno Haible  <bruno@clisp.org>
83603
83604         * lib/lock.h: New file, from GNU gettext.
83605         * lib/lock.c: New file, from GNU gettext.
83606
83607 2005-07-18  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/lock.h (gl_once_t): New type.
83610         (gl_once_define, gl_once): New macros.
83611         * lib/lock.c (fresh_once): New variable.
83612         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83613         functions.
83614
83615 2005-07-16  Simon Josefsson  <jas@extundo.com>
83616
83617         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83618         workaround, suggested by Bruno.
83619
83620 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83621
83622         * modules/xalloc (Depends-on): Add xalloc-die.
83623         * modules/xvasprintf (Depends-on): Add xalloc-die.
83624
83625 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83628         with a minor change.
83629
83630 2005-07-15  Bruno Haible  <bruno@clisp.org>
83631
83632         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83633         When using lib/poll.c, define poll as rpl_poll.
83634
83635 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * modules/argp (Depends-on): Remove unlocked-io.
83638
83639 2005-07-14  Derek Price  <derek@ximbiot.com>
83640
83641         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83642         for glob symlink bug.
83643
83644 2005-07-14  Bruno Haible  <bruno@clisp.org>
83645
83646         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83647         Instead, test for *_unlocked function declarations directly.
83648
83649 2005-07-11  Simon Josefsson  <jas@extundo.com>
83650
83651         * modules/size_max: New file.
83652
83653         * modules/xsize: Depend on size_max module for size_max.m4.
83654
83655 2005-07-11  Simon Josefsson  <jas@extundo.com>
83656
83657         * lib/size_max.h: New file.
83658
83659 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83660
83661         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83662         copyright symbol and the year.
83663         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83664         (version_etc_va): Use parameterized copyright notice.
83665         Reword to conform to the current GNU coding standards.
83666
83667 2005-07-11  Karl Berry  <karl@gnu.org>
83668
83669         * doc/gnulib.texi (Quoting): new node.
83670         (Initial import): more info, from Patrice.
83671
83672 2005-07-11  Bruno Haible  <bruno@clisp.org>
83673
83674         * gnulib-tool (func_usage): Document option --avoid.
83675         (Command line options): Handle --avoid.
83676         (func_acceptable): New function.
83677         (func_modules_transitive_closure): Use it.
83678
83679 2005-07-11  Bruno Haible  <bruno@clisp.org>
83680
83681         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83682         Reported by Jim Meyering.
83683
83684 2005-07-10  Bruno Haible  <bruno@clisp.org>
83685
83686         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83687         Needed when size_t is smaller than 'unsigned int'.
83688         Reported by Paul Eggert.
83689
83690 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83691
83692         * modules/argp (Depends-on): Add unlocked-io
83693
83694 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83695
83696         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83697         block of defines.
83698
83699 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83700
83701         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83702         fix now.
83703
83704 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83705         and Paul Eggert  <eggert@cs.ucla.edu>
83706
83707         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83708         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83709
83710 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83711
83712         * modules/regex (Files): Add lib/regex_internal.c,
83713         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83714         (Depends-on): Add extensions.
83715         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83716
83717 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83718
83719         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83720         pathconf.
83721         * m4/same.m4 (gl_SAME): Likewise.
83722         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83723
83724         * m4/regex.m4: Adjust to new libc regex implementation.
83725         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83726         all the .c and .h parts of (the new) regex.
83727         Quote the m4 stuff better.
83728         Check for RE_ICASE bug of old gnulib.
83729         Check for REG_STARTEND of recent libc.
83730         Rename local variables from jm_* to gl_*.
83731         Quote operand of "test -f".
83732         Say "recent enough" version of libc, not "version 2".
83733         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83734         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83735         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83736         Remove check for btowc, isascii.
83737         Require AM_LANGINFO_CODESET.
83738
83739 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83740
83741         * lib/regex.c, regex.h: Sync from libc.
83742         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83743         * lib/regexec.c:
83744         New files, synced from libc, except that regex_internal.h
83745         currently has a small porting fix.
83746
83747 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83748
83749         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83750         regex_internal.c, regexec.c.
83751         Add regex_internal.h too, but as a comment, since the libc version
83752         is currently broken in gnulib mode.
83753
83754 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83755
83756         Support programs like Emacs that use gnulib but not gettext.
83757         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83758         * modules/gettext-h: New file.
83759         * modules/gettext (Files): Remove lib/gettext.h.
83760         (Depends-on): Add gettext-h.
83761         (Makefile.am): Remove lib_SOURCES.
83762         * modules/argmatch, modules/c-stack, modules/closeout:
83763         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83764         * modules/execute, modules/file-type, modules/getaddrinfo:
83765         * modules/getopt, modules/human, modules/javacomp:
83766         * modules/javaexec, modules/mkdir-p, modules/obstack:
83767         * modules/openat, modules/pagealign_alloc, modules/pipe:
83768         * modules/quotearg, modules/regex, modules/rpmatch:
83769         * modules/unicodeio, modules/userspec, modules/version-etc:
83770         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83771         * modules/xsetenv:
83772         Depend on gettext-h, not gettext.
83773
83774 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         * gnulib-tool (func_import): Add support for 'public domain' license.
83777         * modules/alloca, modules/atexit, modules/memmove:
83778         Now public domain, not GPL.
83779         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83780         * modules/realloc, modules/strerror, modules/strtod:
83781         Now LGPL, not GPL.
83782
83783 2005-07-05  Bruno Haible  <bruno@clisp.org>
83784
83785         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83786         autoconf CVS. Needed for mingw.
83787
83788 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         Remove the dependency of the strftime module on the tzset module.
83791         * modules/strftime (Depends-on): Remove dependency on tzset.
83792
83793 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         Remove the dependency of the strftime module on the tzset module.
83796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83797         gl_FUNC_TZSET_CLOBBER.
83798
83799 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83800
83801         Remove the dependency of the strftime module on the tzset module.
83802         * lib/strftime.c (my_strftime)
83803         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83804         Copy the input structure, to work around some of the bug with
83805         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83806         Solaris releases, you should also use the tzset module, but we won't
83807         require it as a dependency any more since we don't want LGPLed code
83808         to depend on GPLed code.
83809
83810 2005-07-02  Jim Meyering  <jim@meyering.net>
83811
83812         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83813         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83814         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83815         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83816
83817 2005-07-02  Jim Meyering  <jim@meyering.net>
83818
83819         * lib/backupfile.c (backup_args): Change a `0' to NULL.
83820
83821 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
83824         declares only 'struct timespec;' (!).
83825
83826 2005-07-01  Jim Meyering  <jim@meyering.net>
83827
83828         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
83829         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
83830         * lib/save-cwd.c, tempname.c:
83831         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83832         and don't include <sys/file.h>).
83833
83834 2005-06-29  Jim Meyering  <jim@meyering.net>
83835
83836         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
83837         type name.  Use the variable name instead.
83838         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
83839         Likewise.
83840
83841 2005-06-28  Simon Josefsson  <jas@extundo.com>
83842
83843         * modules/check-version (Files): Add check-version.m4.
83844
83845 2005-06-28  Simon Josefsson  <jas@extundo.com>
83846
83847         * m4/check-version.m4: New file, suggested by Jim Meyering
83848         <jim@meyering.net>.
83849
83850 2005-06-28  Simon Josefsson  <jas@extundo.com>
83851
83852         * lib/check-version.h, lib/check-version.c: New files.
83853
83854 2005-06-28  Simon Josefsson  <jas@extundo.com>
83855
83856         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
83857         collision with global variable.  Better indentation.  Don't
83858         increment buffer pointer beyond buffer end.  Based on comments
83859         from Paul Eggert <eggert@cs.ucla.edu>.
83860
83861         * lib/base64.h: Indent.
83862
83863 2005-06-28  Simon Josefsson  <jas@extundo.com>
83864
83865         * doc/gnulib.texi (Library version handling): New section.
83866
83867 2005-06-28  Jim Meyering  <jim@meyering.net>
83868
83869         * check-module (find_included_lib_files): Hard-code another
83870         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
83871         but modules/fts-lgpl (correctly) does not list those files.
83872
83873         * modules/canonicalize (Files): Add lib/pathmax.h.
83874
83875 2005-06-25  Simon Josefsson  <jas@extundo.com>
83876
83877         * modules/check-version: New file.
83878
83879 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
83882         initializer of struct addrinfo, as an indication that we don't
83883         care how many members the structure has.
83884
83885 2005-06-24  Derek Price  <derek@ximbiot.com>
83886         and Bruno Haible  <bruno@clisp.org>
83887
83888         Remove stat module & update lstat.
83889         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
83890         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
83891         * m4/stat.m4: Remove this file.
83892
83893 2005-06-24  Derek Price  <derek@ximbiot.com>
83894         and Bruno Haible  <bruno@clisp.org>
83895
83896         Remove stat module & update lstat.
83897         * lib/stat.c: Remove this file...
83898         (slash_aware_lstat): ...moving this content and its support...
83899         * lib/lstat.c (rpl_lstat): ...into here.
83900         * lib/lstat.h: New file.
83901
83902 2005-06-24  Derek Price  <derek@ximbiot.com>
83903         and Bruno Haible  <bruno@clisp.org>
83904
83905         Remove stat module & update lstat.
83906         * config/srclist.txt (libc sources): Remove stat.
83907
83908 2005-06-24  Derek Price  <derek@ximbiot.com>
83909         and Bruno Haible  <bruno@clisp.org>
83910
83911         Remove stat module & update lstat.
83912         * MODULES.html.sh (stat): Remove.
83913         * MODULES.html: Regenerated.
83914         * modules/lstat (Description): Correct function name.
83915         (Files): Add "lstat.h".
83916         (Depends-on): Remove stat, add xalloc, stat-macros.
83917         * modules/stat: Remove this file.
83918         (Include): Add "lstat.h", remove <sys/stat.h>.
83919
83920 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
83923         (ranged_convert): Don't save conversion in a temporary struct.
83924         This causes a warning with GCC 4.0.0, and anyway in the typical
83925         case it's not worth the extra 100 bytes or so of code.
83926         (ranged_convert, __mktime_internal): When calling a function via a
83927         pointer P, use P () rather than (*P) (), as we now assume C89 or
83928         better.
83929
83930 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
83931
83932         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
83933         "who -r" failed to give output.  Problem reported by Tim Waugh.
83934
83935         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
83936         (xcalloc): Use it to avoid needless tests.
83937         Problem reported by Jim Meyering.
83938
83939 2005-06-20  Derek Price  <derek@ximbiot.com>
83940
83941         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
83942         unnecessary for Autoconfs > 2.59c.
83943
83944 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83945
83946         * lib/argp.h (__option_is_short): Check upper limit of
83947         __key. Isprint() requires its argument to have the value
83948         of an unsigned char or EOF.
83949
83950 2005-06-16  Jim Meyering  <jim@meyering.net>
83951
83952         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83953         when either N or S is zero.
83954
83955 2005-06-16  Derek Price  <derek@ximbiot.com>
83956
83957         * m4/bison.m4: Declare YACC & YFLAGS precious.
83958
83959 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83962         multibyte string or pattern, fall back on unibyte matching.
83963         Problem reported by James Youngman.
83964
83965 2005-06-08  Bruno Haible  <bruno@clisp.org>
83966
83967         * modules/csharpcomp: New file.
83968         * MODULES.html.sh (C#): Add csharpcomp.
83969
83970 2005-06-08  Bruno Haible  <bruno@clisp.org>
83971
83972         * m4/csharpcomp.m4: New file, from GNU gettext.
83973
83974 2005-06-08  Bruno Haible  <bruno@clisp.org>
83975
83976         * lib/csharpcomp.h: New file, from GNU gettext.
83977         * lib/csharpcomp.c: New file, from GNU gettext.
83978         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83979
83980 2005-06-08  Bruno Haible  <bruno@clisp.org>
83981
83982         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83983         warning on mingw.
83984
83985 2005-06-07  Derek Price  <derek@ximbiot.com>
83986
83987         Sync from CVS.
83988         * lib/glob_.h: Indent nested #ifdef.
83989
83990 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83991
83992         Sync from coreutils.
83993         Use "file name" when talking about file names, instead of "filename"
83994         or "path", as per the GNU coding standards.
83995         * lib/mkdir-p.c: Renamed from makepath.c.
83996         (make_dir_parents): Renamed from make_path.  All callers changed.
83997         * lib/mkdir-p.h: Likewise.  All includers changed.
83998         * lib/filenamecat.c: Renamed from path-concat.c.
83999         (file_name_concat): Renamed from path_concat.  All callers changed.
84000         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84001         * lib/filenamecat.h: Likewise.  All includers changed.
84002         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84003         in comments or local variable names.
84004         * lib/basename.c: Likewise.
84005         * lib/canonicalize.c, canonicalize.h: Likewise.
84006         * lib/dirname.c, dirname.h: Likewise.
84007         * lib/euidaccess.c: Likewise.
84008         * lib/exclude.c: Likewise
84009         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84010         * lib/fsusage.c, fsuage.h: Likewise.
84011         * lib/fts.c, fts_.h: Likewise.
84012         * lib/getcwd.c: Likewise.
84013         * lib/getloadavg.c: Likewise.
84014         * lib/mkstemp.c: Likewise.
84015         * lib/mountlist.c, mountlist.h: Likewise.
84016         * lib/openat.c, openat.h: Likewise.
84017         * lib/readlink-stub.c: Likewise.
84018         * lib/readutmp.c, readutmp.h: Likewise.
84019         * lib/rename.c: Likewise.
84020         * lib/rmdir.c: Likewise.
84021         * lib/same.c: Likewise.
84022         * lib/savedir.c: Likewise.
84023         * lib/stripslash.c: Likewise.
84024         * lib/tempname.c: Likewise.
84025         * lib/xreadlink.c: Likewise.
84026         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84027         All uses changed.
84028         * lib/exclude.h: Likewise.
84029
84030         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84031         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84032         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84033         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84034         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84035         files have been getting away with it for years (MORE/BSD 4.3
84036         is extinct now).
84037         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84038         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84039
84040         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84041         Define to 256, not 255, as per modern POSIX.
84042
84043 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84044
84045         Sync from coreutils.
84046         Use "file name" when talking about file names, instead of "filename"
84047         or "path", as per the GNU coding standards.
84048         * MODULES.html.sh: mkdir-p renamed from makepath.
84049         filenamecat renamed from path-concat.
84050         * modules/filenamecat: Renamed from modules/path-concat.
84051         (Files): filenamecat.h and filenamecat.c renamed from
84052         path-concat.h and path-concat.c.
84053         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84054         (Include): filenamecat.h, not path-concat.h.
84055         * modules/mkdir-p: Renamed from modules/makepath.
84056         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84057         makepath.c.
84058         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84059         (Include): mkdir-p.h, not makepath.h.
84060
84061 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         Sync from coreutils.
84064         * m4/mkdir-p.m4: Renamed from makepath.m4.
84065         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84066         Rename files from makepath.c to mkdir-p.c, and from
84067         makepath.h to mkdir-p.h.
84068         * m4/filenamecat.m4: Renamed from path-concat.m4.
84069         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84070         Rename files from path-concat.c to filenamecat.c,
84071         and from path-concat.h to filenamecat.h.
84072         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84073         "file name" in local variables or comments.
84074         * m4/rename.m4: Likewise.
84075
84076 2005-06-01  Bruno Haible  <bruno@clisp.org>
84077
84078         * modules/csharpexec: New file.
84079         * MODULES.html.sh (C#): New section.
84080
84081 2005-06-01  Bruno Haible  <bruno@clisp.org>
84082
84083         * m4/csharp.m4: New file, from GNU gettext.
84084         * m4/csharpexec.m4: New file, from GNU gettext.
84085
84086 2005-06-01  Bruno Haible  <bruno@clisp.org>
84087
84088         * lib/csharpexec.h: New file, from GNU gettext.
84089         * lib/csharpexec.c: New file, from GNU gettext.
84090         * lib/csharpexec.sh.in: New file, from GNU gettext.
84091
84092 2005-05-31  Derek Price  <derek@ximbiot.com>
84093             Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         Sync from cvs.
84096         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84097
84098 2005-05-31  Derek Price  <derek@ximbiot.com>
84099             Paul Eggert  <eggert@cs.ucla.edu>
84100
84101         Sync from cvs.
84102         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84103
84104 2005-05-29  Derek Price  <derek@ximbiot.com>
84105
84106         * config/srclist.txt (glob_.h, glob.c): Add these files.
84107
84108 2005-05-29  Derek Price  <derek@ximbiot.com>
84109
84110         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84111         * modules/glob: New file.
84112         * modules/getlogin_r: Add link to POSIX spec in description.
84113
84114 2005-05-29  Derek Price  <derek@ximbiot.com>
84115             Paul Eggert  <eggert@cs.ucla.edu>
84116
84117         * m4/glob.m4: New file.
84118
84119 2005-05-29  Derek Price  <derek@ximbiot.com>
84120             Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * lib/glob_.h, lib/glob.c: New files.
84123
84124 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84127         * modules/fts-lgpl (Depends-on): Remove gettext.
84128
84129 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84132         and don't require gt_INTTYPES_PRI.
84133
84134 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84135
84136         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84137
84138         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84139         the configuration hassle isn't worth it.
84140         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84141         (LONGEST_MODIFIER, PRIuMAX): Remove.
84142
84143 2005-05-27  Bruno Haible  <bruno@clisp.org>
84144
84145         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84146
84147 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84148
84149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84150         _POSIX_PTHREAD_SEMANTICS for Solaris.
84151
84152 2005-05-25  Derek Price  <derek@ximbiot.com>
84153
84154         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84155
84156 2005-05-25  Derek Price  <derek@ximbiot.com>
84157             Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84160         * lib/getlogin_r.c, getlogin_r.h: New files.
84161
84162 2005-05-25  Bruno Haible  <bruno@clisp.org>
84163             Derek Price  <derek@ximbiot.com>
84164
84165         * lib/getlogin_r.h: Simplify API documentation.
84166
84167 2005-05-23  Derek Price  <derek@ximbiot.com>
84168
84169         * modules/minmax (Files): Add m4/minmax.m4.
84170         (configure.ac): Add gl_MINMAX.
84171
84172 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84175         so that unistd-safer.h (GPL'ed code) need not be included.
84176
84177 2005-05-22  Bruno Haible  <bruno@clisp.org>
84178
84179         * m4/minmax.m4: New file.
84180         Based on a patch by Derek Price <derek@ximbiot.com>.
84181
84182 2005-05-22  Bruno Haible  <bruno@clisp.org>
84183
84184         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84185         (INT64_MIN): Fix definition.
84186         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84187
84188         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84189         NEED_SIGNED_INT_TYPES.
84190
84191         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84192         HAVE_SYSTEM_INTTYPES.
84193
84194 2005-05-22  Bruno Haible  <bruno@clisp.org>
84195
84196         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84197         Also include <sys/param.h> if it defines MIN, MAX.
84198         Based on a patch by Derek Price <derek@ximbiot.com>.
84199
84200 2005-05-21  Jim Meyering  <jim@meyering.net>
84201
84202         * modules/fts (Files): Add m4/inttypes-pri.m4.
84203         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84204
84205 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         New fts module.
84208         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84209         (setup_dir, free_dir): New functions.
84210         (enter_dir, leave_dir): Define trivial
84211         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84212         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84213         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84214         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84215         Move to fts-cycle.c.
84216         (fts_open): Use setup_dir.
84217         (fts_close): Use free_dir.
84218         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84219         This adds a label and some gotos, but the alternatives were messier.
84220         Check for memory allocation failure when entering a dir.
84221         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84222         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84223         (FTS): New member fts_cycle, that is a union that contains the
84224         old active_dir_ht and cycle_state.  All uses changed to mention
84225         fts_cycle.ht and fts_cycle.state.
84226         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84227         fts.c, with the following changes:
84228         (setup_dir, free_dir): New functions.
84229         (enter_dir): Now returns bool.  Return true if successful, false
84230         if memory exhausted.  All callers changed.
84231         Do not bother partly cleaning up on
84232         memory allocation failure; that is free_dir's job.
84233         However, free ad if hash_insert fails, to avoid memory leak.
84234         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84235         fts->fts_options to see which union member to use.
84236
84237 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84240         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84241
84242 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84243
84244         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84245
84246 2005-05-20  Jim Meyering  <jim@meyering.net>
84247
84248         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84249         Now a macro, to pacify GCC.
84250
84251 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84252
84253         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84254         of -1.
84255
84256 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84257
84258         * lib/chown.c (rpl_chown): Return -1 on failure.
84259
84260 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84263         Don't check for stddef.h.
84264         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84265         don't use its results.
84266         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84267         since we include them unconditionally.  Don't require
84268         AM_STDBOOL_H, since stdbool is a prerequisite.
84269         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84270         since we assume C89 or better.
84271         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84272         as we don't use their results.
84273         Don't check for fchdir, memmove, memset, strrchr, as we use
84274         them unconditionally.
84275         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84276         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84277
84278 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84279
84280         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84281         Include <stddef.h> unconditionally, since we assume C89 now.
84282         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84283         * lib/fts.c: Include fts_.h first, to check interface.
84284         Do not include intprops.h; no longer needed.
84285         Include cycle-check.h and hash.h, since fts_.h no longer does.
84286         Remove unnecessary casts of closedir to void.
84287         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84288         decide whether to decrement nlinks.
84289         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84290         (FTS): Use struct hash_table * instead of Hash_table, so that
84291         we no longer need to include hash.h here.
84292
84293 2005-05-18  Jim Meyering  <jim@meyering.net>
84294
84295         * modules/dirfd (License): Change to LGPL.  Most of the code
84296         is already in the public domain.
84297
84298 2005-05-18  Jim Meyering  <jim@meyering.net>
84299
84300         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84301         Reported by Yoann Vandoorselaere.
84302
84303 2005-05-17  Jim Meyering  <jim@meyering.net>
84304
84305         * m4/fts.m4: New file, from coreutils.
84306
84307 2005-05-17  Jim Meyering  <jim@meyering.net>
84308
84309         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84310
84311 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         Sync from coreutils.
84314         * m4/unlinkdir.m4: New file.
84315
84316 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         Sync from coreutils.
84319         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84320         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84321         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84322         White space changes only.
84323         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84324         special.
84325         * lib/yesno.c: Include getline.h, not ctype.h.
84326         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84327         Use getline to remove arbitrary restriction on response length.
84328
84329 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * config/srclist-update: Spell out "Street" in FSF postal
84332         mail address; this is the style the FSF seems to prefer.
84333
84334         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84335         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84336         this updates FSF postal mail address.
84337
84338         Sync from coreutils.
84339         * modules/unlinkdir: New file.
84340         * modules/yesno (Depends-on): Add getline.
84341         * MODULES.html.sh (File system functions): Add unlinkdir.
84342
84343 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84346         lib/strsep.h:
84347         Change the initial comment to refer to GPL, not LGPL.
84348         gnulib-tool will change it to LGPL as needed.
84349
84350         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84351         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84352         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84353         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84354         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84355         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84356         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84357         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84358         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84359         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84360         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84361         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84362         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84363         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84364         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84365         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84366         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84367         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84368         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84369         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84370         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84371         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84372         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84373         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84374         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84375         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84376         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84377         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84378         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84379         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84380         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84381         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84382         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84383         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84384         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84385         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84386         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84387         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84388         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84389         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84390         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84391         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84392         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84393         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84394         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84395         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84396         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84397         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84398         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84399         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84400         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84401         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84402         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84403         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84404         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84405         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84406         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84407         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84408         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84409         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84410         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84411         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84412         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84413         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84414         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84415         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84416         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84417         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84418         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84419         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84420         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84421         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84422         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84423         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84424         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84425         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84426         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84427         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84428         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84429         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84430         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84431         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84432         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84433         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84434         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84435         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84436         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84437         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84438         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84439         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84440         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84441         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84442         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84443         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84444         lib/yesno.c, lib/yesno.h:
84445         Update FSF postal mail address.
84446
84447 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84450         tests/test-memmem.c, tests/test-stpncpy.c:
84451         Update FSF postal mail address.
84452
84453 2005-05-13  Bruno Haible  <bruno@clisp.org>
84454
84455         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84456         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84457         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84458         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84459         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84460         Add support for 64-bit integers in the MSVC compiler.
84461
84462 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84463
84464         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84465
84466 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84467
84468         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84469
84470 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84471
84472         * doc/getdate.texi (General date syntax): Don't say that date
84473         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84474         Problem reported by Nic Ferrier.
84475
84476 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84477
84478         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84479         specified in ai_socktype. Fix invalid ai_protocol
84480         check. ai_protocol is usually set to 0 or depending on
84481         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84482         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84483         ai_socktype / ai_protocol in the returned addrinfo structure.
84484
84485 2005-05-10  Simon Josefsson  <jas@extundo.com>
84486
84487         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84488         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84489
84490 2005-05-10  Karl Berry  <karl@gnu.org>
84491
84492         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84493         (from http://www.gnu.org/licenses).
84494         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84495         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84496         fdl.texi suffices.
84497
84498 2005-05-10  Karl Berry  <karl@gnu.org>
84499
84500         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84501         (COPYING.DOC): remove.
84502
84503         * config/srclist-update: new FSF address.
84504
84505 2005-05-10  Derek Price  <derek@ximbiot.com>
84506
84507         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84508         possible.
84509
84510 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84511             Bruno Haible  <bruno@clisp.org>
84512
84513         * modules/inet_ntop: New file.
84514         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84515         inet_ntop.
84516
84517 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84518             Bruno Haible  <bruno@clisp.org>
84519
84520         * m4/inet_ntop.m4: New file.
84521
84522 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84523             Bruno Haible  <bruno@clisp.org>
84524
84525         * lib/inet_ntop.h: New file.
84526         * lib/inet_ntop.c: New file, from glibc with modifications.
84527
84528 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84529
84530         * modules/time_r (License): Change to LGPL.
84531         * modules/extensions (License): Change to LGPL.  Actually,
84532         the license is more permissive than that, but currently gnulib-tool
84533         doesn't know how to handle more-permissive licenses.
84534
84535         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84536         Problem reported by Dave Love.
84537
84538 2005-05-08  Jim Meyering  <jim@meyering.net>
84539
84540         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84541         blank.
84542
84543 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         * modules/argmatch (Depends-on): Add stdbool.
84546         * modules/backupfile (Depends-on): Likewise.
84547         * modules/chdir-long (Depends-on): Likewise.
84548         * modules/closeout (Depends-on): Likewise.
84549         * modules/cycle-check (Depends-on): Likewise.
84550         * modules/dirname (Depends-on): Likewise.
84551         * modules/fnmatch (Depends-on): Likewise.
84552         * modules/fsusage (Depends-on): Likewise.
84553         * modules/fwriteerror (Depends-on): Likewise.
84554         * modules/getcwd (Depends-on): Likewise.
84555         * modules/getloadavg (Depends-on): Likewise.
84556         * modules/hard-locale (Depends-on): Likewise.
84557         * modules/makepath (Depends-on): Likewise.
84558         * modules/mountlist (Depends-on): Likewise.
84559         * modules/nanosleep (Depends-on): Likewise.
84560         * modules/posixtm (Depends-on): Likewise.
84561         * modules/quotearg (Depends-on): Likewise.
84562         * modules/readtokens (Depends-on): Likewise.
84563         * modules/readtokens0 (Depends-on): Likewise.
84564         * modules/readutmp (Depends-on): Likewise.
84565         * modules/save-cwd (Depends-on): Likewise.
84566         * modules/strftime (Depends-on): Likewise.
84567         * modules/userspec (Depends-on): Likewise.
84568         * modules/utimecmp (Depends-on): Likewise.
84569         * modules/xgetcwd (Depends-on): Likewise.
84570         * modules/xnanosleep (Depends-on): Likewise.
84571         * modules/xstrtod (Depends-on): Likewise.
84572         * modules/yesno (Depends-on): Likewise.
84573
84574 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84577         needless checks.
84578
84579 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84580
84581         Merge from coreutils.  Among other things,
84582         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84583         * lib/fd-safer.c: New file.
84584         * lib/fcntl-safer.h, open-safer.c: Remove.
84585         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84586         * lib/dup-safer.c: Include unistd-safer.h first.
84587         Don't include errno.h.
84588         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84589         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84590         * lib/file-type.c: Rely on file-type.h change.
84591         * lib/getloadavg.c: Include unistd-safer.h.
84592         (getloadavg): Use safer open.
84593         * lib/getusershell.c: Include "stdio-safer.h".
84594         (getusershell): Use safer fopen.
84595         * lib/long-options.c (long_options): Use NULL rather than 0.
84596         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84597         'free'.
84598         * lib/modechange.c: Likewise.
84599         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84600         (MODE_DONE): New constant.
84601         (struct mode_change): Remove 'next' member.
84602         (make_node_op_equals): New function; like the old one of the
84603         same name, except it allocates an array.
84604         (mode_compile, mode_create_from_ref): Use it.
84605         (mode_compile): Allocate result as an array, not a linked list.
84606         Parse octal string ourself, so that we catch mistakes like "+0".
84607         (mode_adjust): Arg is an array, not a linked list.
84608         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84609         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84610         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84611         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84612         Remove.  This is now stat-macros.h's job.
84613         (talloc): Remove.  All callers replaced by xalloc, so that
84614         our invokers don't have to worry about reporting memory failures.
84615         (make_node_op_equals): Remove.
84616         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84617         New constants.
84618         (struct mode_change): Moved here from modechange.h.
84619         (mode_append_entry): Remove.
84620         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84621         apps to have incorrect behavior.  Use simpler algorithm for head
84622         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84623         Detect more invalid usages rather than having somewhat-random behavior.
84624         Don't insert an "a=" action, as that leads to incorrect behavior.
84625         (mode_compile, mode_create_from_ref): Return NULL on error instead
84626         of an enum, since now there's only one way to have an error.  All
84627         callers changed.
84628         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84629         at the correct time.  Simplify calculation of "+u" and its ilk.
84630         Don't mishandle "+X".
84631         (mode_free): Remove "register" and localize decls.
84632         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84633         (struct mode_change): Move to modechange.c; callers don't
84634         need to see this stuff.
84635         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84636         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84637         (mode_change, mode_adjust): Reflect the new signatures noted above.
84638         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84639         that might redefine system include files.
84640         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84641         (my_usleep): Use NULL rather than (void *) 0.
84642         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84643         Use siginterrupt to specify that system calls should be interrupted.
84644         (rpl_nanosleep): Move initialization of suspended closer to call of
84645         my_usleep.
84646         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84647         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84648         (desirable_utmp_entry): New function.
84649         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84650         using x2nrealloc, to simplify logic.
84651         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84652         size calculation.  Do not assume utmp file is a regular file.
84653         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84654         (READ_UTMP_CHECK_PIDS): New constant.
84655         * lib/save-cwd.c: Include unistd-safer.h.
84656         (save_cwd): Use fd_safer.
84657         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84658         [!_LIBC] Include "stat-macros.h" instead.
84659         * lib/unistd-safer.h (fd_safer): New decl.
84660
84661 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * modules/getloadavg (Depends-on): Add unistd-safer.
84664         * modules/getusershell (Depends-on): Add stdio-safer.
84665         * modules/lstat (Depends-on): Remove xalloc.
84666         * modules/mkstemp (Depends-on): Add stat-macros.
84667         * modules/modechange (Depends-on): Remove xstrtol.
84668         Add stat-macros, xalloc.
84669         * modules/save-cwd (Depends-on): Add unistd-safer.
84670         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84671         * modules/unistd-safer (Files): Add lib/fd-safer.c
84672         (Makefile.am): Remove lib_SOURCES.
84673
84674         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84675         Remove fcntl-safer; unistd-safer supersedes it.
84676
84677 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84678
84679         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84680         AC_HEADER_STAT.
84681         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84682         (gl_PREREQ_CHOWN): Remove.
84683         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84684         it.  Don't require AC_HEADER_STAT.
84685         (gl_PREREQ_LSTAT): Remove.
84686         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84687         Don't require AC_HEADER_STAT.
84688         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84689         (gl_PREREQ_RMDIR): Remove.
84690         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84691         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84692         the stat-macros module a prerequisite.
84693         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84694         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84695         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84696         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84697         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84698         variable names.
84699         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84700         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84701         variable prefixes.
84702         * m4/fcntl-safer.m4: Remove.
84703         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84704         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84705         Invoke gl_PREREQ_FD_SAFER.
84706         (gl_PREREQ_FD_SAFER): New macro.
84707         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84708         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84709         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84710         Remove duplicate call to AC_LIBOBJ(readutmp).
84711         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84712
84713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84714         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84715
84716 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         * MODULES.html.sh (Misc): Add byteswap.
84719
84720 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84721
84722         * modules/getcwd (Depends-on): Add extensions.
84723         * modules/openat (Depends-on): Likewise.
84724
84725 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84726
84727         * modules/byteswap: New file.
84728
84729 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84730
84731         * m4/byteswap.m4: New file.
84732
84733 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84734
84735         * lib/byteswap_.h: New file.
84736
84737 2005-04-25  Karl Berry  <karl@gnu.org>
84738
84739         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84740
84741 2005-04-25  Albert Chin  <china@thewrittenword.com>
84742
84743         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84744         Toolkit C bug.
84745
84746 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84747
84748         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84749         (func_ln_if_changed): Remove forcibly for no error message
84750         in case file does not exist.
84751
84752 2005-04-19  Simon Josefsson  <jas@extundo.com>
84753
84754         * gnulib-tool (Options): Make --symlink mean --symbolic.
84755
84756 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84757
84758         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84759
84760 2005-04-16  Simon Josefsson  <jas@extundo.com>
84761
84762         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84763
84764 2005-04-15  Simon Josefsson  <jas@extundo.com>
84765
84766         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84767
84768 2005-04-15  Simon Josefsson  <jas@extundo.com>
84769
84770         * gnulib-tool: Rename --symlink to --symbolic.
84771
84772 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84773
84774         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84775         symbolic links to files instead of copying/moving.  Add --aux-dir,
84776         specifying directory relative --dir where auxiliary build tools
84777         are placed.
84778
84779 2005-04-14  Bruno Haible  <bruno@clisp.org>
84780
84781         * modules/allocsa (License): Change to LGPL.
84782         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84783
84784 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84787         that "UTC +1 second" continues to work.  Problem reported
84788         by Dmitry V. Levin.
84789         (relunit_snumber): New rule.
84790         (relunit): Use it.
84791
84792 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84793
84794         * lib/getdate.y (universal_time_zone_table): New constant.
84795         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84796         universal_time_zone_table.
84797         (lookup_zone): Prefer universal_time_zone_table to
84798         local_time_zone_table, so that "GMT" time stamps are allowed in
84799         London during the summer.  Problem reported by Ian Abbott.
84800
84801 2005-04-12  Jim Meyering  <jim@meyering.net>
84802
84803         * lib/human.c (humblock): Set *options even when returning due to
84804         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84805         warning from gcc-4.
84806
84807 2005-04-09  Jim Meyering  <jim@meyering.net>
84808
84809         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84810         -Wuninitialized: initialize tm0.tm_year.
84811
84812 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84815         count, since there's no maximum.  All uses changed.
84816         Add member dsts_seen.
84817         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
84818         not being INT_MAX.
84819         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
84820         Use pc_rels_seen to decide whether a date is absolute.
84821
84822         * lib/getdate.y (number): Don't overwrite year.
84823         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
84824         check.
84825
84826 2005-04-02  Simon Josefsson  <jas@extundo.com>
84827
84828         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
84829         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
84830
84831 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
84832
84833         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
84834         where no absolute path name can be longer than PATH_MAX.
84835
84836 2005-03-27  Jim Meyering  <jim@meyering.net>
84837
84838         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
84839
84840 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
84843         "one's complement" -> "ones' complement" in comment, as per Knuth.
84844         "value of type" -> "type or expression" in comment.
84845         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
84846
84847 2005-03-26  Jim Meyering  <jim@meyering.net>
84848
84849         Comment nits.
84850         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
84851         Correct typos: s/or/of/.
84852
84853 2005-03-26  Jim Meyering  <jim@meyering.net>
84854
84855         * modules/check-include-files: Move to ../ and rename to...
84856         * check-module: ...this.
84857
84858 2005-03-25  Jim Meyering  <jim@meyering.net>
84859
84860         * modules/xvasprintf (Files): Add xalloc.h.
84861
84862 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * modules/gettext (Files): config/config.rpath ->
84865         build-aux/config.rpath
84866         * modules/iconv (Files): Likewise.
84867         Problem reported by Oskar Liljeblad.
84868
84869 2005-03-23  Jim Meyering  <jim@meyering.net>
84870
84871         * modules/check-include-files: New script to check for
84872         missing dependencies, multiple includes, etc.
84873
84874         * modules/c-strtold (Depends-on): Add xalloc.
84875         * modules/c-strtod (Depends-on): Add xalloc.
84876         * modules/hash (Depends-on): Add xalloc.
84877         (Files): Remove lib/xalloc.h.
84878
84879         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
84880         * modules/userspec (Files): Add lib/inttostr.h.
84881
84882 2005-03-23  Jim Meyering  <jim@meyering.net>
84883
84884         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
84885
84886 2005-03-22  Jim Meyering  <jim@meyering.net>
84887
84888         * modules/stat-macros: New module.
84889         * modules/canonicalize, modules/euidaccess, modules/file-type,
84890         * modules/filemode, modules/lchown, modules/makepath,
84891         * modules/rmdir, modules/stat: Depend on new stat-macros module
84892         rather than listing lib/stat-macros.h manually.
84893         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
84894
84895 2005-03-22  Jim Meyering  <jim@meyering.net>
84896
84897         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
84898
84899 2005-03-22  Bruno Haible  <bruno@clisp.org>
84900
84901         * config/srclist.txt: Replace target directory 'config' with
84902         'build-aux'.
84903         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
84904         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
84905         ../build-aux/.
84906
84907 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * modules/chdir-long (Depends-on): Add mempcpy.
84910
84911         * modules/acl, modules/backupfile, modules/c-strtod,
84912         modules/c-strtold, modules/canon-host, modules/canonicalize,
84913         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
84914         modules/exclude, modules/exitfail, modules/file-type,
84915         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
84916         modules/getdate, modules/getline, modules/getpagesize,
84917         modules/getpass, modules/getugroups, modules/group-member,
84918         modules/hard-locale, modules/hash, modules/human, modules/idcache,
84919         modules/inttostr, modules/long-options, modules/makepath,
84920         modules/md5, modules/memcasecmp, modules/memcoll,
84921         modules/modechange, modules/mountlist, modules/path-concat,
84922         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
84923         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
84924         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
84925         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
84926         modules/strftime, modules/strndup, modules/strverscmp,
84927         modules/timespec, modules/unlocked-io, modules/userspec,
84928         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
84929         modules/yesno:
84930         Remove lib_SOURCES line from Makefile.am section, as this is now
84931         done automatically by the corresponding Autoconf macro.
84932
84933 2005-03-21  Jim Meyering  <jim@meyering.net>
84934
84935         Changes imported from coreutils.
84936
84937         * lib/cycle-check.c: Don't include xalloc.h.
84938
84939         * lib/path-concat.c: Don't include assert.h.
84940         (path_concat): Remove assertion that would have triggered
84941         for ABASE starting with more than one slash.
84942         Reported by Andreas Schwab.
84943
84944         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
84945         properly when ABASE is an absolute file name.
84946         Correct the description of this function.
84947         Include <assert.h>.
84948         Add an assertion and a test driver.
84949         This fixes a bug introduced on 2004-07-02.
84950         Andreas Schwab reported the resulting failure of cp --parents:
84951         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84952
84953 2005-03-21  Jim Meyering  <jim@meyering.net>
84954
84955         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84956         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84957
84958 2005-03-21  Jim Meyering  <jim@meyering.net>
84959         and  Paul Eggert  <eggert@cs.ucla.edu>
84960
84961         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84962         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84963         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84964         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84965         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84966         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84967         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84968         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84969         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84970         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84971         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84972         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84973         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84974         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84975         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84976         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84977         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84978         for these modules.
84979
84980 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84983         (which shouldn't happen), generate nothing instead of returning 0
84984         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84985
84986 2005-03-16  Bruno Haible  <bruno@clisp.org>
84987
84988         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84989         HAVE_LONGLONG_64BIT.
84990
84991 2005-03-16  Bruno Haible  <bruno@clisp.org>
84992
84993         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84994         HAVE_LONGLONG_64BIT.
84995
84996 2005-03-16  Bruno Haible  <bruno@clisp.org>
84997
84998         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84999         HAVE_LONGLONG_64BIT.
85000
85001 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85002
85003         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85004         reliably distinguish strftime failure from empty output on POSIX
85005         hosts.
85006
85007 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85008
85009         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85010         (iconv_string): Don't guess a size-zero buffer, as that might cause
85011         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85012         result would be 'too large', where 'too large' is (heuristically)
85013         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85014         overflow concerns.  This will prevent some unwanted malloc failures
85015         when the inputs are very large.
85016
85017 2005-03-15  Karl Berry  <karl@gnu.org>
85018
85019         * config/srclist.txt (config.rpath): from gettext.
85020         * config/config.rpath: update.
85021
85022 2005-03-15  Bruno Haible  <bruno@clisp.org>
85023
85024         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85025         to 'negate'.
85026
85027         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85028         variable.
85029
85030         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85031         results.
85032
85033 2005-03-14  Simon Josefsson  <jas@extundo.com>
85034
85035         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85036         <fx@gnu.org>.
85037
85038 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85041         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85042         intprops.h.
85043         * lib/strtol.c: Likewise.
85044
85045 2005-03-14  Jim Meyering  <jim@meyering.net>
85046
85047         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85048         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85049         to be nonzero so that we (and caller) can detect the difference
85050         between a valid zero-length expansion and an error return, even
85051         when the underlying strftime fails before writing anything into
85052         that location.
85053
85054 2005-03-14  Bruno Haible  <bruno@clisp.org>
85055
85056         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85057         Update from GNU gettext 0.14.3.
85058
85059 2005-03-10  Jim Meyering  <jim@meyering.net>
85060
85061         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85062
85063 2005-03-10  Jim Meyering  <jim@meyering.net>
85064
85065         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85066         so that this module works on systems without fchdir.
85067
85068 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85069
85070         Factor int-properties macros into a single file, except for
85071         glibc-related files.
85072         * lib/intprops.h: New file.
85073         * lib/getloadavg.c: Include it instead of limits.h.
85074         (INT_STRLEN_BOUND): Remove.
85075         * lib/human.c: Include intprops.h.
85076         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85077         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85078         302/1000.
85079         * lib/inttostr.h: Include intprops.h instead of limits.h.
85080         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85081         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85082         for consistency with intprops.h.
85083         (time_t_is_integer, twos_complement_arithmetic): Use them.
85084         * lib/sig2str.h: Include <signal.h>, intprops.h.
85085         (INT_STRLEN_BOUND): Remove.
85086         * lib/strftime.c (TYPE_SIGNED): Remove.
85087         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85088         * lib/strtol.c: Adjust comments to match intprops.h.
85089         * lib/userspec.c: Include intprops.h.
85090         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85091         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85092         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85093         instead of rolling our own expressions.
85094         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85095
85096         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85097         instead of int.
85098         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85099         the right thing even if adding 1900 would overflow.  Similarly
85100         for tm_mon + 1 and tm_yday + 1.
85101         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85102         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85103         (DO_SIGNED_NUMBER): New macro.
85104         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85105
85106 2005-03-07  Bruno Haible  <bruno@clisp.org>
85107
85108         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85109
85110 2005-03-07  Bruno Haible  <bruno@clisp.org>
85111
85112         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85113
85114 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85115
85116         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85117         (func_import): Only replace files via --import when they have actually
85118         changed.
85119
85120 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85121
85122         * m4/mmap-anon.m4: New file.
85123         * m4/pagealign_alloc.m4: New file.
85124
85125 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85126             Bruno Haible  <bruno@clisp.org>
85127
85128         * modules/pagealign_alloc: New file.
85129         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85130
85131 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85132             Bruno Haible  <bruno@clisp.org>
85133
85134         * lib/pagealign_alloc.h: New file.
85135         * lib/pagealign_alloc.c: New file.
85136
85137 2005-03-03  Bruno Haible  <bruno@clisp.org>
85138
85139         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85140         Use an all-permissive copyright notice, recommended by RMS.
85141
85142 2005-03-02  Bruno Haible  <bruno@clisp.org>
85143
85144         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85145         of AIX, the replacement has to be done only after <string.h> is
85146         included, therefore not in config.h. stpncpy.h does the replacement,
85147         and stpncpy.c uses it.
85148
85149 2005-03-02  Bruno Haible  <bruno@clisp.org>
85150
85151         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85152         stpncpy.c uses it.
85153
85154 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85155
85156         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85157         The workaround isn't strictly needed for POSIX conformance, and
85158         it's too much of a pain to configure and maintain.  We'll ask
85159         people to fix their kernels instead.
85160         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85161         (NANOSLEEP_BUG_WORKAROUND): Remove.
85162         (xnanosleep): Remove the workaround.
85163
85164 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85165
85166         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85167         Reported by Derek Price.
85168         (Include): Add "timespec.h".
85169
85170         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85171
85172 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85173
85174         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85175         to detect nanosleep bug.
85176
85177 2005-03-01  Bruno Haible  <bruno@clisp.org>
85178
85179         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85180
85181 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85182
85183         * modules/gethrxtime: New file.
85184         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85185         (Depends-on): Add gethrxtime.
85186         (configure.ac): Add gl_XNANOSLEEP.
85187         (Makefile.am): Remove lib_SOURCES line.
85188
85189 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85192         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85193
85194 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85195
85196         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85197         * lib/timespec.h (gettime): Return void, since it always
85198         succeeds now.  All uses changed.
85199         * lib/gettime.c (gettime): Likewise.
85200         [HAVE_NANOTIME]: Prefer nanotime.
85201         Assume gettimeofday succeeds, as POSIX requires.
85202         Assime time () succeeds, since other code already does.
85203         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85204         (timespec_subtract): Remove.
85205         (NANOSLEEP_BUG_WORKAROUND): New constant.
85206         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85207         things considerably.  Use it only on GNU/Linux hosts, since the
85208         workaround shouldn't be needed elsewhere.
85209
85210 2005-02-24  Bruno Haible  <bruno@clisp.org>
85211
85212         * modules/gettext (Files): Add m4/glibc2.m4.
85213
85214 2005-02-24  Bruno Haible  <bruno@clisp.org>
85215
85216         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85217         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85218         * m4/progtest.m4:
85219         Update from GNU gettext 0.14.2.
85220         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85221
85222 2005-02-24  Bruno Haible  <bruno@clisp.org>
85223
85224         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85225         * lib/config.charset: Update from GNU gettext 0.14.2.
85226
85227 2005-02-24  Bruno Haible  <bruno@clisp.org>
85228
85229         * lib/gettext.h: Update from GNU gettext 0.14.2.
85230
85231 2005-02-23  Simon Josefsson  <jas@extundo.com>
85232
85233         * m4/iconvme.m4: New file.
85234
85235 2005-02-23  Jim Meyering  <jim@meyering.net>
85236
85237         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85238         change.
85239         Thanks to Bruno Haible for catching it.
85240
85241 2005-02-22  Simon Josefsson  <jas@extundo.com>
85242
85243         * modules/iconvme: New file.
85244
85245         * MODULES.html.sh: Add iconvme.
85246
85247 2005-02-22  Simon Josefsson  <jas@extundo.com>
85248
85249         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85250
85251 2005-02-22  Simon Josefsson  <jas@extundo.com>
85252
85253         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85254
85255 2005-02-22  Jim Meyering  <jim@meyering.net>
85256
85257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85258         s/ifndef/ifdef/.
85259
85260 2005-02-20  Neil Conway  <neilc@samurai.com>
85261
85262         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85263         returned by OSX/Darwin if the specified buffer is not large
85264         enough for the hostname.
85265
85266 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85267
85268         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85269         pass it to _help, otherwise the latter coredumps trying to
85270         dereference state.root_argp.
85271
85272 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85273
85274         * modules/chdir-long (Depends-on): Add memrchr.
85275         * modules/memrchr (Files): Add lib/memrchr.h.
85276         (Include): "memrchr.h".
85277
85278 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85281
85282 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85283
85284         * lib/memrchr.h: New file.
85285         * lib/chdir-long.c: Include it.
85286         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85287         Don't bother including stddef.h.
85288
85289 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85290
85291         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85292         inclusion.
85293         Include <sys/types.h>, for dev_t.
85294         (ME_DUMMY, ME_REMOTE): Move from here....
85295         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85296         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85297         Dmitry V. Levin.
85298         Include mountlist.h first, to test the interface.
85299
85300 2005-01-29  Bruno Haible  <bruno@clisp.org>
85301
85302         * lib/progname.c (program_name): Initialize.
85303         Needed when linking statically on MacOS X.
85304
85305 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85306
85307         Sync from coreutils.
85308         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85309         (Depends-on): Add c-strtod.
85310         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85311
85312 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         Sync from coreutils.
85315         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85316
85317         Remove files that are specific to coreutils.
85318         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85319
85320 2005-01-28  Bruno Haible  <bruno@clisp.org>
85321
85322         * modules/javacomp: New file.
85323         * MODULES.html.sh (Java): Add javacomp.
85324
85325 2005-01-28  Bruno Haible  <bruno@clisp.org>
85326
85327         * m4/javacomp.m4: New file, from GNU gettext.
85328
85329 2005-01-28  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/javacomp.sh.in: New file, from GNU gettext.
85332         * lib/javacomp.h: New file, from GNU gettext.
85333         * lib/javacomp.c: New file, from GNU gettext.
85334
85335 2005-01-26  Simon Josefsson  <jas@extundo.com>
85336
85337         * lib/gai_strerror.c: Use GPL in header.
85338
85339 2005-01-26  Bruno Haible  <bruno@clisp.org>
85340
85341         * modules/javaexec: New file.
85342         * MODULES.html.sh (Java): Add javaexec.
85343
85344 2005-01-26  Bruno Haible  <bruno@clisp.org>
85345
85346         * m4/javaexec.m4: New file, from GNU gettext.
85347
85348 2005-01-26  Bruno Haible  <bruno@clisp.org>
85349
85350         * lib/javaexec.sh.in: New file, from GNU gettext.
85351         * lib/javaexec.h: New file, from GNU gettext.
85352         * lib/javaexec.c: New file, from GNU gettext.
85353
85354 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85355
85356         * modules/lchown (Depends-on): Remove lchown.h
85357
85358 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85359
85360         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85361         must be defined if the header file was not found, in order
85362         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85363
85364 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85365
85366         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85367         initializers for struct pentry_state.
85368         (__argp_error): Check return value of __asprintf
85369         (__argp_failure): Translate error message
85370
85371         * lib/argp-parse.c: Removed braces around the expansion of N_()
85372
85373 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85374
85375         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85376         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85377         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85378         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85379         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85380         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85381         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85382         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85383         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85384         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85385         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85386         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85387         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85388         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85389         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85390         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85391         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85392         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85393         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85394         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85395         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85396         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85397         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85398         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85399         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85400         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85401         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85402         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85403         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85404         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85405         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85406         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85407         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85408         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85409         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85410         Use an all-permissive copyright notice, recommended by RMS.
85411
85412 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85413
85414         * modules/chdir-long (Depends-on): Remove mempcpy.
85415
85416 2005-01-21  Jim Meyering  <jim@meyering.net>
85417
85418         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85419         same value as for Solaris 9.
85420
85421         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85422         component length.  This included changing the parameter to be
85423         of type `char *' rather than `char const *'.
85424         * lib/chdir-long.h (chdir_long): Update prototype.
85425
85426         * lib/openat.c (fdopendir, fstatat): New functions.
85427         * lib/openat.h: Include headers required for use of DIR and struct
85428         stat.
85429         [AT_SYMLINK_NOFOLLOW]: Define.
85430         (fdopendir, fstatat): Add prototypes.
85431
85432 2005-01-21  Bruno Haible  <bruno@clisp.org>
85433
85434         * modules/classpath: New file.
85435         * MODULES.html.sh (Java): Add classpath.
85436
85437 2005-01-21  Bruno Haible  <bruno@clisp.org>
85438
85439         * lib/classpath.h: New file, from GNU gettext.
85440         * lib/classpath.c: New file, from GNU gettext.
85441
85442 2005-01-20  Simon Josefsson  <jas@extundo.com>
85443
85444         * modules/version-etc-fsf: New file.
85445
85446 2005-01-20  Simon Josefsson  <jas@extundo.com>
85447
85448         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85449         * lib/version-etc.c: Remove version_etc_copyright.
85450         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85451         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85452
85453 2005-01-20  Simon Josefsson  <jas@extundo.com>
85454
85455         * lib/base64.h (isbase64): Add.
85456
85457         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85458         using a unsigned prototype, don't inline.
85459         (base64_decode): Use it.
85460
85461 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85464         it.
85465
85466 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85467
85468         * lib/save-cwd.c (save_cwd): Remove code to support the case
85469         where fchdir is missing or flaky.
85470
85471 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85474
85475 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85478         AC_LIBSOURCES now does this.
85479         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85480         with new ullong_max module.
85481
85482 2005-01-19  Bruno Haible  <bruno@clisp.org>
85483
85484         * modules/sh-quote: New file.
85485         * MODULES.html.sh (Executing programs): Add sh-quote.
85486
85487 2005-01-19  Bruno Haible  <bruno@clisp.org>
85488
85489         * lib/sh-quote.h: New file, from GNU gettext.
85490         * lib/sh-quote.c: New file, from GNU gettext.
85491
85492 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         Merge from coreutils.
85495         * m4/ullong_max.m4: New file.
85496         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85497         (gl_MACROS): Assume localeconv exists.
85498
85499 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85500
85501         Merge changes from coreutils, as described below in several
85502         changelogs dated today.
85503
85504         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85505         (O_DIRECTORY): Remove; not needed here, since "." must be
85506         a directory.  All uses removed.
85507         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85508         universal on Suns, and we also need to test for IRIX.
85509         Revamp code to use 'if' rather than '#if'.
85510         Avoid unnecessary comparison of cwd->desc to 0.
85511
85512         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85513         for known valid error numbers rather than observed invalid ones.
85514
85515 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85516
85517         * modules/ullong_max: New file.
85518
85519         * modules/chdir-long, modules/openat: New files.
85520         * modules/save-cwd (Depends-on): Depend on chdir-long.
85521         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85522
85523 2005-01-18  Jim Meyering  <jim@meyering.net>
85524
85525         Merge from coreutils.
85526         * m4/chdir-long.m4, m4/openat.m4: New files.
85527         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85528         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85529         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85530         is sane and DOES follow symlinks.  Besides, testing 20 different
85531         systems found no broken chown implementations.
85532         Prompted by a change in rsync's copy of this macro.
85533         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85534
85535         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85536
85537         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85538         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85539         NULL-means-set-to-current-time semantics.
85540         Remove temporary file immediately, rather than waiting
85541         for configure's at-exit trap code to do it.
85542
85543 2005-01-18  Jim Meyering  <jim@meyering.net>
85544
85545         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85546
85547         * lib/utimens.c (futimens): Account for the fact that futimes
85548         can also fail with errno == ENOSYS or errno == ENOENT.
85549         Patch from Dmitry V. Levin.
85550
85551         Change the name of the robust chdir function from chdir to chdir_long.
85552         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85553         (restore_cwd): Use chdir_long, not chdir.
85554         * lib/chdir-long.c: Renamed from chdir.c.
85555         * lib/chdir-long.h: Renamed from chdir.h.
85556         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85557         Hurd.
85558
85559 2005-01-18  Bruno Haible  <bruno@clisp.org>
85560
85561         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85562         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85563         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85564         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85565         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85566         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85567         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85568         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85569         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85570         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85571         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85572         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85573         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85574         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85575         Use an all-permissive copyright notice, recommended by RMS.
85576
85577 2005-01-18  Bob Proulx  <bob@proulx.com>
85578
85579         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85580         simplify offsetof() macro construct to avoid compile failure with
85581         native HP-UX 11.0 ANSI C compiler.
85582
85583 2005-01-17  Bruno Haible  <bruno@clisp.org>
85584
85585         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85586         redundant because stpncpy.m4 takes care of it.
85587
85588 2005-01-17  Bruno Haible  <bruno@clisp.org>
85589
85590         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85591
85592 2005-01-17  Bruno Haible  <bruno@clisp.org>
85593
85594         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85595         used.
85596
85597 2005-01-17  Bruno Haible  <bruno@clisp.org>
85598
85599         * lib/fwriteerror.h (fwriteerror): Change specification to include
85600         fclose.
85601         * lib/fwriteerror.c: Include <stdbool.h>.
85602         (fwriteerror): At the end, close the file stream. Record whether
85603         stdout was already closed.
85604
85605 2005-01-17  Bruno Haible  <bruno@clisp.org>
85606
85607         * lib/execute.c (environ): Declare if needed.
85608         * lib/pipe.c (environ): Likewise.
85609         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85610
85611 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85612
85613         * modules/argp: Depend on vsnprintf
85614
85615 2005-01-10  Jim Meyering  <jim@meyering.net>
85616
85617         * modules/closeout (Depends-on): Add atexit.
85618
85619 2005-01-06  Bruno Haible  <bruno@clisp.org>
85620
85621         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85622
85623 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85626         definitions to be after all include files, to avoid collisions.
85627         Problem reported by Bob Proulx.
85628
85629 2005-01-04  Jim Meyering  <jim@meyering.net>
85630
85631         Changes imported from coreutils.
85632         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85633         as the mkstemp template, use a temporary directory and an
85634         8.3-friendly template to avoid trouble on systems like DJGPP.
85635         Reported by Juan M. Guerrero via Stepan Kasal.
85636         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85637         close. Remove the temporary directory right away, rather than waiting
85638         for configure's at-exit trap code to do it.
85639         Suggestion from Stepan Kasal.
85640
85641 2005-01-01  Simon Josefsson  <jas@extundo.com>
85642
85643         * gnulib-tool: Print #include directives when --import'ing.
85644
85645 2004-12-28  Simon Josefsson  <jas@extundo.com>
85646
85647         * tests/test-base64.c: Include required header files.  Remove
85648         unused variables.
85649
85650 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * modules/error (Depends-on): Remove gettext.
85653
85654 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85657         not needed.  This removes a dependency on the gettext module.
85658         [defined _LIBC]: Do not include <libintl.h>; not needed.
85659
85660 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85661
85662         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85663         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85664
85665 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85668         HAVE_DECL_STRTOLD.
85669
85670 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         * modules/getdate (Depends-on): Remove alloca-opt.
85673
85674 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85677
85678 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85679
85680         * lib/argp-parse.c: Include <stddef.h>.
85681         (alignof, alignto): New macros.
85682         (parser_init): Don't assume that void * is aligned sufficiently
85683         for struct option.
85684
85685         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85686         need to extend the stack.
85687         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85688         large.
85689
85690 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85691
85692         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85693
85694 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85695
85696         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85697         (2004-10-24) change.  Apparently this was a false alarm.
85698
85699         * modules/getdate: Depend on alloca-opt, not alloca.
85700
85701 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85704         Remove now-obsolete comment about AIX.
85705         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85706         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85707         (YYMAXDEPTH): New macro.
85708
85709 2004-12-18  Simon Josefsson  <jas@extundo.com>
85710
85711         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85712
85713 2004-12-18  Bruno Haible  <bruno@clisp.org>
85714
85715         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85716
85717 2004-12-18  Bruno Haible  <bruno@clisp.org>
85718
85719         * lib/fatal-signal.c (fatal_signals): Make non-const.
85720         (init_fatal_signals): New function.
85721         (uninstall_handlers, install_handlers): Ignore signals that were set to
85722         SIG_IGN.
85723         (at_fatal_signal): Call init_fatal_signals.
85724         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85725         SIG_IGN.
85726         Reported by Paul Eggert.
85727
85728 2004-12-18  Bruno Haible  <bruno@clisp.org>
85729
85730         * doc/alloca.texi: New file.
85731         * doc/alloca-opt.texi: New file.
85732
85733 2004-12-17  Jim Meyering  <jim@meyering.net>
85734
85735         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85736         Otherwise, install-sh could exit with improper exit status when
85737         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85738
85739 2004-12-16  Simon Josefsson  <jas@extundo.com>
85740
85741         * tests/test-base64.c: Add license.
85742
85743 2004-12-15  Stepan Kasal  <address@hidden>
85744
85745         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85746
85747 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85748
85749         * modules/getcwd (Files): Add m4/d-ino.m4.
85750         Suggested by Mark D. Baushke.
85751
85752 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85753
85754         * lib/getdate.y (textint): New member "negative".
85755         (time_zone_hhmm): New function.
85756         Expect 14 shift-reduce conflicts, not 13.
85757         (o_colon_minutes): New rule.
85758         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85759         (yylex): Set the "negative" member of signed numbers.
85760
85761 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         * doc/getdate.texi (Time of day items, Time zone items):
85764         Describe new formats +00:00, UTC+00:00.
85765
85766 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85767
85768         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85769         spurious "-l"s.  Problem reported by Stepan Kasal.
85770
85771 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85772
85773         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85774         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85775
85776 2004-12-04  Simon Josefsson  <jas@extundo.com>
85777
85778         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85779         Vandoorselaere <yoann@prelude-ids.org>.
85780
85781 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85782
85783         Changes imported from coreutils.
85784         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85785         exist.
85786         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85787
85788 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85789
85790         Changes imported from coreutils.
85791         * lib/hard-locale.c: Assume <locale.h> exists.
85792         Include "strdup.h".
85793         (GLIBC_VERSION): New macro.
85794         (hard_locale): Assume setlocale exists.
85795         Rewrite to avoid #ifdef.
85796         Use strdup rather than malloc + strcpy.
85797         * lib/human.c: Assume <locale.h> exists.
85798         (human_readable): Assume localeconv exists.
85799
85800 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85801
85802         * modules/hard-locale (Depends-on): Add strdup.
85803
85804 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85805
85806         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85807         convert T2, not T.  (Imported from libc.)
85808
85809 2004-11-30  Simon Josefsson  <jas@extundo.com>
85810
85811         * modules/restrict (License): Change to LGPL.
85812
85813 2004-11-30  Simon Josefsson  <jas@extundo.com>
85814
85815         * m4/restrict.m4: Add copyright and copying conditions.
85816
85817 2004-11-30  Simon Josefsson  <jas@extundo.com>
85818
85819         * m4/base64.m4: New file.
85820
85821 2004-11-30  Simon Josefsson  <jas@extundo.com>
85822
85823         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
85824         base64.
85825
85826         * tests/test-base64.c: New file.
85827
85828         * modules/base64: New file.
85829
85830 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85831
85832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
85833         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
85834
85835         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
85836
85837 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
85838
85839         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
85840         (__getcwd.c): Don't restore errno; glibc doesn't.
85841         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
85842         first, falling back to our code only if its results look suspicious.
85843         Ensure that the resulting buffer is only as large as necessary.
85844
85845         * lib/readutmp.c: Include readutmp.h first.
85846         Include <errno.h>, since readutmp.h no longer does that.
85847         * lib/readutmp.h: Don't include <errno.h>,
85848         <sys/param.h>, <time.h>; not needed to establish interface.
85849         (errno): Remove decl.
85850         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
85851         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
85852         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
85853
85854 2004-11-28  Simon Josefsson  <jas@extundo.com>
85855
85856         * lib/base64.h, base64.c: New file.
85857
85858 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
85859
85860         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
85861
85862 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
85863
85864         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
85865         (Depends-on): Remove pathmax, same.  Add mempcpy.
85866         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
85867         (Makefile.am): Append getcwd.h to lib_SOURCES.
85868         (Include): Add getcwd.h.
85869         (Maintainer): Change from Jim Meyering to "all, glibc",
85870         since getdate now uses intended-for-glibc code.
85871         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
85872         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
85873
85874 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85875
85876         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
85877         HP's ANSI C compiler.
85878         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
85879         Declaring int functions causes warnings on some modern systems and
85880         shouldn't be needed to compile on ancient ones.
85881         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
85882         defined.
85883
85884         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
85885         with the following changes.
85886         (__set_errno): Parenthesize properly.
85887         Include <stdbool.h>.
85888         (MIN, MAX, MATCHING_INO): New macros.
85889         (__getcwd): Define with prototype, not K&R form.
85890         Use heuristics to allocate default buffer on stack if possible.
85891         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
85892         behavior, and to avoid the PATH_MAX limit when computing
85893         ../../../../...
85894         Use MATCHING_INO to compare inode number to file.
85895         Check for arithmetic overflow in size calculations.
85896         Fix bug in reallocation of dot array that caused getcwd to fail
85897         on directories nested deeper than 75.
85898         Be more careful about saving errno on error.
85899         Do not use realloc; use only free+malloc, as this is a bit
85900         more flexible and avoids a needless copy operation.
85901         Do not inspect st_dev and st_ino for symbolic links; POSIX
85902         doesn't specify the latter.
85903         Check for closedir errors.
85904         Avoid needless casts.
85905         Use "#ifdef weak_alias" around weak_alias, to be like other
85906         glibc code.
85907         The following changes to getcwd.c have effect only when used in
85908         gnulib; they have no effect inside glibc proper.
85909         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
85910         as alloca isn't used.
85911         (alloca, __alloca): Likewise.
85912         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
85913         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
85914         unconditionally, as gnulib assumes C89 or better.
85915         Do not include <sys/param.h>.
85916         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
85917         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
85918         better.
85919         (NULL) [!defined NULL]: Remove; we assume C89 or better.
85920         Include <dirent.h> in a way that is compatible with modern Autoconf.
85921         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
85922         New macros, if not already defined.
85923         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
85924         Use "_LIBC", not "defined _LIBC", for consistency.
85925         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
85926         a mempcpy module.
85927         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
85928         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
85929         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
85930         credit only to Jim Meyering and adjust the copyright dates.
85931         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
85932         <stdlib.h>, <unistd.h>, "pathmax.h".
85933         Instead, include "xgetcwd.h" (first) and "getcwd.h".
85934         (INITIAL_BUFFER_SIZE): Remove.
85935         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
85936
85937 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
85940         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
85941         Use the _ONCE methods, for efficiency.
85942         Check for fcntl.h.  In test program, include <errno.h>
85943         and <fcntl.h> if available.  Remove old K&R cruft from
85944         test program.  Check for common errors in GNU/Linux,
85945         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
85946         don't do AC_LIBOBJ, as that's getcwd.m4's job.
85947         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
85948         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85949         name accordingly.
85950         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85951         accommodate new getcwd.c.
85952         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85953         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85954         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85955         that's all we need now.
85956
85957 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85958
85959         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85960         argp-parse.c depends on getopt internals, that means we should
85961         always use our getopt, to be on the safe side.
85962         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85963         order not to spoil the result of an eventual previous invocation
85964         of gl_GETOPT_SUBSTITUTE.
85965
85966 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85967
85968         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85969         redefinition warnings. To avoid them, include the defines
85970         in `#if !defined __need_getopt ... #endif'. The only place
85971         where __getopt_argv_const is used is in definitions
85972         of getopt_long and getopt_long_only below, which are as well
85973         protected by `#ifndef __need_getopt'.
85974         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85975         __need_getopt after including <stdio.h> and <unistd.h> These
85976         headers might have defined it.
85977
85978 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85979
85980         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85981
85982 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85985         (futimens): New function, which uses futimes if available.
85986         (futimens, utimens): Support timespec==NULL, with same semantics
85987         as utime and utimens.
85988         * lib/utimens.h (futimens): New decl.
85989
85990 2004-11-23  Jim Meyering  <jim@meyering.net>
85991
85992         * lib/getopt_.h: Remove trailing blanks.
85993
85994 2004-11-23  Jim Meyering  <jim@meyering.net>
85995
85996         * lib/__fpending.c: Add comment.
85997
85998 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85999
86000         * modules/canonicalize (Depends-on): Add xreadlink.
86001         Problem reported by James Youngman.
86002
86003 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86004
86005         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86006         New macros.
86007         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86008         optopt): Use them instead of invoking ## directly; otherwise, the
86009         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86010
86011 2004-11-19  Bruno Haible  <bruno@clisp.org>
86012
86013         * lib/strtok_r.c: Move comments from here...
86014         * lib/strtok_r.h: ... to here.
86015
86016 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86019         implementations that mishandle size_t overflow.
86020
86021 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86022
86023         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86024         might fail.  Problem reported by Yoann Vandoorselaere.
86025         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86026         implementations that mishandle size_t overflow.
86027
86028 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86029
86030         * modules/canon-host (Depends-on): Add strdup.
86031
86032 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86033
86034         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86035
86036 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86037
86038         * lib/canon-host.c: Include "strdup.h".
86039         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86040         Use strdup instead of malloc/strcpy to duplicate strings.
86041
86042         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86043         (human_space_before_unit): New constant.
86044         * lib/human.c (human_readable): Support it.
86045
86046         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86047         (xgetcwd): Set errno correctly when failing.
86048         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86049         the failure is actually due to a PATH_MAX problem.
86050
86051         Further getopt changes to make it more likely that glibc will
86052         buy the changes back.
86053         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86054         (getopt): Use it, so to preserve glibc semantic
86055         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86056         when compiling for libc.
86057         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86058         (getopt_long, getopt_long_only): Use it.
86059
86060         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86061         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86062         (getopt): Argv is now char * const *, as per standard.
86063         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86064         not char *__getopt_argv_const *.
86065         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86066         _getopt_long_only_r): Likewise.
86067         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86068         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86069         _getopt_long_r, _getopt_long_only_r): Likewise.
86070         * lib/getopt_.h (__getopt_argv_const): Remove.
86071         (getopt): Argv is now char * const *, as per standard.
86072
86073         * lib/getdate.y (tORDINAL): New token.
86074         (day, relunit): Allow it for relative times.
86075         (relative_time_table): Use tORDINAL for ordinals.
86076
86077 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86080         Document that "second" isn't allowed as an ordinal number.
86081
86082 2004-11-16  Jim Meyering  <jim@meyering.net>
86083
86084         * modules/closeout (Depends-on): Add fpending.
86085
86086 2004-11-15  Jim Meyering  <jim@meyering.net>
86087
86088         * lib/closeout.c: Include "__fpending.h" once again.
86089         Include <stdbool.h>.
86090         (close_stdout): Don't fail just because stdout was closed initially,
86091         since some programs don't write to stdout in the normal course of
86092         operation (other than --version and --help), and we don't want this
86093         function to make e.g. `touch file >&-' fail.
86094         But do fail if it was closed and someone has tried to write to it.
86095         E.g., `printf foo >&-' must fail.
86096
86097 2004-11-13  Jim Meyering  <jim@meyering.net>
86098
86099         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86100
86101 2004-11-12  Simon Josefsson  <jas@extundo.com>
86102
86103         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86104         small doc fix is still pending.
86105
86106 2004-11-11  Simon Josefsson  <jas@extundo.com>
86107
86108         * modules/strtok_r: New file.
86109
86110         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86111         strtok_r.
86112
86113 2004-11-11  Simon Josefsson  <jas@extundo.com>
86114
86115         * m4/strtok_r.m4: New file.
86116
86117         * m4/getopt.m4: Replace opterr.
86118
86119 2004-11-11  Simon Josefsson  <jas@extundo.com>
86120
86121         * lib/strtok_r.h, strtok_r.c: New file.
86122
86123 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86124
86125         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86126         of replacing opterr, getopt, etc.  This should handle the
86127         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86128
86129 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86130
86131         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86132         we can stop lying to compilers about the constness of argv when we
86133         are compiled outside glibc.
86134         (getopt, getopt_long, getopt_long_only): Use it.
86135         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86136         _getopt_internal, getopt): Likewise.
86137         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86138         _getopt_long_only_r): Likewise.
86139         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86140         _getopt_long_r, _getopt_long_only_r): Likewise.
86141
86142         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86143         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86144         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86145         the other external symbols.
86146         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86147         declaration, since the above renaming now works around collisions.
86148
86149 2004-11-11  Jim Meyering  <jim@meyering.net>
86150
86151         * lib/linebreak.c: Remove trailing blanks.
86152         * lib/alloca_.h: Likewise.
86153         * lib/acosl.c: Likewise.
86154         * lib/euidaccess.c: Likewise.
86155         * lib/allocsa.h: Likewise.
86156
86157 2004-11-10  Simon Josefsson  <jas@extundo.com>
86158
86159         * m4/getaddrinfo.m4: New file.
86160
86161 2004-11-10  Simon Josefsson  <jas@extundo.com>
86162
86163         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86164
86165 2004-11-10  Simon Josefsson  <jas@extundo.com>
86166
86167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86168         getaddrinfo.
86169
86170         * modules/getaddrinfo: New file.
86171
86172 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86173
86174         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86175
86176 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         * lib/mktime.c (SHR): New macro, which is a portable
86179         substitute for >> that should work even on Crays.
86180         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86181         Problem reported by Mark D. Baushke in
86182         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86183         * lib/getdate.y (SHR): Likewise.
86184         (tm_diff): Use it.
86185         * lib/strftime.c (SHR): Likewise.
86186         (tm_diff): Use it.
86187         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86188         quote_these_too, so that right shifts are well defined.  All uses
86189         changed.
86190
86191 2004-11-10  Jim Meyering  <jim@meyering.net>
86192
86193         Ensure that no close failure goes unreported.
86194         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86195         return early when it seems there's nothing to flush.
86196         Don't include __fpending.h.
86197
86198 2004-11-10  Jim Meyering  <jim@meyering.net>
86199
86200         * modules/closeout (Depends-on): Remove fpending.
86201
86202 2004-11-10  Jim Meyering  <jim@meyering.net>
86203
86204         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86205
86206 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86207
86208         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86209         gl_FUNC_STRFTIME.
86210         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86211         and AC_REQUIRE when possible, to avoid duplicate checks.
86212         Check for <wchar.h>.
86213
86214 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86215
86216         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86217
86218 2004-11-09  Bruno Haible  <bruno@clisp.org>
86219
86220         * m4/sockpfaf.m4: New file.
86221
86222 2004-11-05  Bruno Haible  <bruno@clisp.org>
86223
86224         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86225         Reported by Mark D. Baushke <mdb@cvshome.org>.
86226
86227 2004-11-04  Bruno Haible  <bruno@clisp.org>
86228
86229         2004-09-11  Bruno Haible  <bruno@clisp.org>
86230                 * allocsa.valgrind: New file.
86231         2004-02-06  Bruno Haible  <bruno@clisp.org>
86232                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86233                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86234                 Reported by Christopher Seip <chris.seip@hp.com>.
86235
86236 2004-11-04  Bruno Haible  <bruno@clisp.org>
86237
86238         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86239         (Makefile.am): Distribute it.
86240
86241 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86242
86243         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86244         with errno == ERANGE if the buffer is too small.
86245         Problem reported by Mark D. Baushke.
86246
86247 2004-11-03  Albert Chin  <china@thewrittenword.com>
86248             Paul Eggert  <eggert@cs.ucla.edu>
86249
86250         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86251         equivalent, substitute $ac_type for equivalent type rather than
86252         blindly using uint32_t *always* which won't work if uint32_t is not
86253         available.  Define _UINT32_T to work around typedef of uint32_t if
86254         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86255         2.5.1.
86256
86257 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86258
86259         * m4/jm-macros.m4: Sync from coreutils.
86260         (gl_MACROS): Check for mbrlen, for pathchk.
86261         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86262
86263 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86264
86265         * lib/xreadlink.c (MAXSIZE): New macro.
86266         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86267         size does not exceed MAXSIZE.  Avoid cast.
86268         As suggested by Mark D. Baushke in
86269         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86270         if readlink fails with buffer size just under MAXSIZE, try again
86271         with MAXSIZE.
86272
86273 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86274
86275         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86276
86277 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86278         and  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86281         (get_date): Overparenthesize to avoid GCC warning.
86282
86283 2004-11-02  Bruno Haible  <bruno@clisp.org>
86284
86285         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86286         returns void.
86287
86288 2004-11-02  Bruno Haible  <bruno@clisp.org>
86289
86290         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86291         function returns void.
86292
86293 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86294
86295         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86296         fflush_unlocked, flockfile, funlockfile, funlockfile,
86297         fputs_unlocked, putc_unlocked.
86298
86299 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86300
86301         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86302         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86303         already declared.
86304
86305 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * modules/getdate (Files): Add doc/getdate.texi.
86308         (Depends-on): Add setenv, xalloc.
86309
86310 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86311
86312         * lib/getdate.y: Add support for TZ="foo" within a date string.
86313         Fix some bugs near time_t boundaries.  Reject dates with
86314         out-of-range components, e.g., "Sept 31".
86315         Include <stdlib.h>, "setenv.h", "xalloc.h".
86316         (ISDIGIT_LOCALE): Remove; unused.
86317         Note that the TZ and time functions used here are not reentrant.
86318         (mktime_ok, get_tz): New functions.
86319         (TZBUFSIZE): New constant.
86320         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86321         This requires that we sometimes generate our own TZ="XXX..." setting.
86322
86323 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86324
86325         * doc/getdate.texi: New file, from coreutils with modifications for
86326         the new TZ parsing.
86327
86328 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86329
86330         * lib/mktime.c (not_equal_tm): Remove redundant check.
86331
86332 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86333
86334         * modules/regex (lib_SOURCES): Add regex.c.
86335         Reported by James Youngman in
86336         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86337
86338 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86339
86340         * lib/getdate.y: Use Bison 1.875 features, and some minor
86341         code cleanups.  This change does not affect semantics.
86342         Don't include <stdlib.h>; no longer needed.
86343         Don't include unlocked-io.h; only the "#if TEST" code uses
86344         stdio, and performance isn't crucial there.
86345         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86346         Bison 1.875 features as described below.
86347         All uses of "PC." replaced by "pc->".
86348         (YYSTYPE): Add a forward declaration.
86349         (yylex, yyerror): Use full prototypes in forward decls.
86350         Use "%pure-parser" rather than obsolescent "%pure_parser".
86351         Use %parse-param and %lex-param instead of obsolescent
86352         YYPARSE_PARAM and YYLEX_PARAM.
86353         (meridian_table, month_and_day_table, time_units_table,
86354         relative_time_table, time_zone_table, military_table,
86355         lookup_zone, lookup_word, get_date):
86356         Use NULL instead of 0 where appropriate.
86357         (to_hour): Avoid abort (), to avoid a dependency on
86358         stdlib.h.
86359         (yyerror, yylex): Now accepts parser_control * arg.
86360         (main) [TEST]: Use '\0' rather than 0 for char.
86361
86362 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86363
86364         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86365
86366 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86367
86368         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86369         It's now the caller's responsibility to handle the case where
86370         !HAVE_GETPAGESIZE && !defined getpagesize.
86371
86372         * lib/mktime.c (leapyear): Arg is long int, not int.
86373
86374 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86377
86378 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86379
86380         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86381         missing.  Problem reported by James Youngman.
86382
86383 2004-10-16  Simon Josefsson  <jas@extundo.com>
86384
86385         * gnulib-tool: Fix comments.  Fix parse problem.
86386         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86387
86388 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86389
86390         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86391         implementation of getopt_long.  Problem reported by Alexander Taler in:
86392         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86393
86394 2004-10-15  Bruno Haible  <bruno@clisp.org>
86395
86396         * gnulib-tool: Untabify. Initialize supplied_libname.
86397         (func_usage): More homogenous output.
86398         (func_modules_transitive_closure, func_modules_to_filelist,
86399         func_emit_lib_Makefile_am): New functions.
86400         (func_import): New function, extracted from big case statement. Use
86401         func_get_license, func_modules_transitive_closure,
86402         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86403         opt_lgpl. Don't use test -a, as it's not portable.
86404         (func_create_testdir): Use func_modules_transitive_closure,
86405         func_modules_to_filelist, func_emit_lib_Makefile_am.
86406
86407 2004-10-15  Bruno Haible  <bruno@clisp.org>
86408
86409         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86410
86411 2004-10-15  Bruno Haible  <bruno@clisp.org>
86412
86413         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86414         the portions belonging to each module.
86415         Suggested by Derek Robert Price <derek@ximbiot.com>.
86416
86417 2004-10-12  Simon Josefsson  <jas@extundo.com>
86418
86419         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86420         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86421         to real functions.
86422
86423 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86424
86425         * modules/vsnprintf: New file.
86426
86427 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86428
86429         * m4/vsnprintf.m4: New file.
86430
86431 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86432
86433         * lib/vsnprintf.h: New file.
86434         * lib/vsnprintf.c: New file.
86435
86436 2004-10-11  Bruno Haible  <bruno@clisp.org>
86437
86438         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86439         vsnprintf.
86440
86441 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86442
86443         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86444
86445 2004-10-07  Bruno Haible  <bruno@clisp.org>
86446
86447         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86448         fits into the provided buffer.
86449
86450 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86451
86452         * lib/diacrit.c, diacrit.h: Add GPL notice.
86453
86454         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86455         notice.
86456         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86457         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86458         This avoids a potential constant-folding bug.
86459
86460 2004-10-05  Bruno Haible  <bruno@clisp.org>
86461
86462         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86463         for the declaration of strsep.
86464
86465 2004-10-05  Bruno Haible  <bruno@clisp.org>
86466
86467         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86468
86469 2004-10-04  Simon Josefsson  <jas@extundo.com>
86470
86471         * modules/memmem: New file.
86472         * tests/test-memmem.c: New file.
86473         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86474
86475 2004-10-04  Simon Josefsson  <jas@extundo.com>
86476
86477         * m4/memmem.m4: New file.
86478
86479 2004-10-04  Simon Josefsson  <jas@extundo.com>
86480
86481         * lib/memmem.h: New file.
86482         * lib/memmem.c: New file, taken from glibc.
86483
86484 2004-10-04  Simon Josefsson  <jas@extundo.com>
86485
86486         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86487         '#ifdef USE_UNLOCKED_IO'.
86488
86489 2004-10-04  Simon Josefsson  <jas@extundo.com>
86490
86491         * config/srclist.txt: Add memmem from glibc.
86492
86493 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86494
86495         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86496
86497         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86498         modules/exclude, modules/getdate, modules/getline,
86499         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86500         modules/getusershell, modules/linebuffer, modules/md5,
86501         modules/mountlist, modules/posixtm, modules/readtokens,
86502         modules/readutmp, modules/regex, modules/sha1,
86503         modules/version-etc, modules/yesno:
86504         Remove dependency on unlocked-io.
86505
86506 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86509
86510         * m4/unlocked-io.m4: Add copyright notice.
86511         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86512
86513 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86514
86515         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86516         * lib/xmalloc.c (xmemdup): Likewise.
86517         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86518         XFREE): Remove these long-obsolescent macros.
86519         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86520         * lib/xstrdup.c: Remove.
86521
86522         * lib/regex.c (re_comp): Cast gettext return value to char *,
86523         Problem reported by Martin Neitzel via Mark D. Baushke.
86524
86525 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86526
86527         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86528         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86529         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86530         regex.c, sha1.c, version-etc.c, yesno.c:
86531         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86532         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86533         the includer's responsibility.
86534
86535         Sync from coreutils.
86536
86537         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86538         points to the start of a string, as the C Standard says the
86539         resulting behavior is undefined.
86540
86541         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86542         simple -> simple_backups, numbered_existing ->
86543         numbered_existing_backups, numbered -> numbered_backups
86544         to avoid shadowing problems.  All uses changed.
86545         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86546         * lib/backupfile.c (check_extension, numbered_backup):
86547         Rename locals to avoid shadowing 'basename'.
86548         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86549         once.
86550
86551         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86552         * lib/.cvsignore: Add getopt.h.
86553
86554 2004-10-04  Bruno Haible  <bruno@clisp.org>
86555
86556         * modules/README: New file.
86557         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86558         not a module.
86559
86560 2004-10-02  Jim Meyering  <jim@meyering.net>
86561
86562         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86563
86564 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86565
86566         * modules/strsep: New file.
86567
86568 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86569
86570         * m4/strsep.m4: New file.
86571
86572 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86573
86574         * lib/strsep.h: New file.
86575         * lib/strsep.c: New file.
86576
86577 2004-10-01  Simon Josefsson  <jas@extundo.com>
86578
86579         * lib/snprintf.c (snprintf): Handle size==0.
86580
86581 2004-10-01  Simon Josefsson  <jas@extundo.com>
86582             Bruno Haible  <bruno@clisp.org>
86583
86584         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86585         (snprintf): Declare 'args'.
86586
86587 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86588
86589         * lib/snprintf.c: Remove comments as to why each header is needed.
86590
86591 2004-10-01  Bruno Haible  <bruno@clisp.org>
86592
86593         * MODULES.html.sh: Add strsep.
86594
86595 2004-09-30  Simon Josefsson  <jas@extundo.com>
86596
86597         * modules/snprintf: New file.
86598
86599 2004-09-30  Simon Josefsson  <jas@extundo.com>
86600
86601         * m4/snprintf.m4: New file.
86602
86603 2004-09-30  Simon Josefsson  <jas@extundo.com>
86604
86605         * lib/snprintf.h, lib/snprintf.c: New files.
86606
86607 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86608
86609         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86610         (hol_entry_help): Never translate an empty string.
86611         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86612         * lib/argp.h (OPTION_NO_TRANS): New option.
86613
86614 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86615
86616         * modules/argp (Maintainer): Replace Simon Josefsson
86617         by Sergey Poznyakoff.
86618
86619 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86620
86621         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86622         changes merged back into glibc.
86623
86624 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86625
86626         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86627
86628 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86629
86630         * lib/xvasprintf.c: Include xalloc.h.
86631         (xvasprintf): Use xalloc_die, not xmalloc_die.
86632
86633 2004-09-29  Bruno Haible  <bruno@clisp.org>
86634
86635         * modules/alloca-opt: New file, derived from modules/alloca.
86636         * modules/allocsa: Depend on alloca-opt instead of alloca.
86637         * modules/setenv: Likewise.
86638         * modules/vasnprintf: Likewise.
86639         * MODULES.html.sh: Add alloca-opt.
86640
86641 2004-09-28  Simon Josefsson  <jas@extundo.com>
86642
86643         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86644         LGPL, and to replace license template from GPL to LGPL.
86645
86646 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86647
86648         * modules/dummy: Change license to LGPL.
86649
86650 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86653
86654 2004-09-24  Simon Josefsson  <jas@extundo.com>
86655
86656         * modules/minmax (License): Change from GPL to LGPL.
86657
86658 2004-09-23  Simon Josefsson  <jas@extundo.com>
86659
86660         * gnulib-tool (--import): Typo.
86661
86662 2004-09-23  Simon Josefsson  <jas@extundo.com>
86663
86664         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86665
86666 2004-09-22  Bruno Haible  <bruno@clisp.org>
86667
86668         * modules/*: Add 'License' field.
86669         * gnulib-tool: Accept --extract-license option.
86670         (func_get_license): New function.
86671
86672 2004-09-21  Bruno Haible  <bruno@clisp.org>
86673
86674         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86675         Reported by Simon Josefsson.
86676
86677 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86678
86679         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86680         gl_AC_TYPE_LONG_LONG.
86681
86682 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86683
86684         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86685
86686 2004-09-18  Simon Josefsson  <jas@extundo.com>
86687         and  Paul Eggert  <eggert@cs.ucla.edu>
86688
86689         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86690         calls with autoreconf.  Define GL_LIB.
86691
86692 2004-09-14  Karl Berry  <karl@gnu.org>
86693
86694         * config/srclist.txt: unsync setenv.c, sigh.
86695
86696 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86697
86698         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86699         Problem reported by Bruno Haible in:
86700         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86701
86702 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86703
86704         * config/srclist.txt: Comment out argp-pvh.c.
86705
86706 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86707
86708         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86709         in case some system header has #define'd it.  Problem reported by
86710         Soeren D. Schulze in
86711         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86712
86713 2004-09-09  Karl Berry  <karl@gnu.org>
86714
86715         * regex.[ch]: delete from the root.  These were supposed to be
86716                 synced with emacs cvs, but this has not happened for about
86717                 a year, and anyway nothing else uses emacs regex.[ch].
86718                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86719                 lib/regex[.ch] is untouched.
86720
86721 2004-09-09  Bruno Haible  <bruno@clisp.org>
86722
86723         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86724
86725 2004-09-09  Bruno Haible  <bruno@clisp.org>
86726
86727         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86728         modifications.
86729         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86730
86731 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86732
86733         * modules/xvasprintf: New file.
86734         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86735
86736 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86737
86738         * lib/xvasprintf.h: New file.
86739         * lib/xvasprintf.c: New file.
86740         * lib/xasprintf.c: New file.
86741
86742 2004-09-08  Bruno Haible  <bruno@clisp.org>
86743
86744         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86745
86746 2004-09-08  Bruno Haible  <bruno@clisp.org>
86747
86748         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86749         length is > INT_MAX.
86750         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86751         more.
86752
86753 2004-09-08  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/stdint_.h: New file, taken from GNU clisp.
86756
86757 2004-09-08  Bruno Haible  <bruno@clisp.org>
86758             Oskar Liljeblad  <oskar@osk.mine.nu>
86759
86760         * modules/stdint: New file.
86761         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86762
86763 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86764
86765         Import from coreutils.
86766         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86767         strings on unbounded length.  alloca's performance benefits aren't
86768         that important here.
86769         (V_STRDUP): Remove.
86770         (parse_with_separator): New function, with most of the internals
86771         of the old parse_user_spec.  Allow user to omit both user and group,
86772         for compatibility with FreeBSD.
86773         Clone only the user name, not the entire spec.
86774         Do not set *uid, *gid unless entirely successful.
86775         Avoid memory leak in some failing cases.
86776         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86777         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86778         (parse_user_spec): Rewrite to use parse_with_separator.
86779
86780 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86781
86782         * modules/userspec: Don't depend on alloca.
86783
86784 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86785
86786         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86787
86788 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86789
86790         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86791         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86792         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86793
86794 2004-08-16  Simon Josefsson  <jas@extundo.com>
86795
86796         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86797         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86798         Add --dry-run for --import.
86799         Let user provided command line parameters override configure.ac
86800         settings.
86801
86802 2004-08-12  Simon Josefsson  <jas@extundo.com>
86803
86804         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86805         as discussed with Paul Eggert in threads rooted at
86806         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86807         and
86808         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86809         Before, the test was empty, and relied on ELIDE_CODE in source
86810         code.)
86811         (gl_PREREQ_GETOPT): New macro.
86812         (gl_GETOPT): Use them.
86813
86814 2004-08-12  Simon Josefsson  <jas@extundo.com>
86815
86816         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86817         * lib/getopt_.h: Renamed from getopt.h.
86818
86819 2004-08-12  Simon Josefsson  <jas@extundo.com>
86820
86821         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
86822         Change default library name from libfoo to libgnu.
86823         Now, if you have a configure.ac that says:
86824                 gl_SOURCE_BASE(gl)
86825                 gl_M4_BASE(gl/m4)
86826                 gl_MODULES(error getopt etcetera)
86827                 gl_INIT
86828         you can import all you need by running:
86829                 ../gnulib/gnulib-tool --import
86830
86831         * modules/getopt (Files): Rename getopt.h to getopt_.h.
86832         (Makefile.am): Rewrite, use logic from argz.
86833         (Include): Use <getopt.h> instead of "getopt.h".
86834
86835 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86836
86837         * modules/argp (Files): Add m4/unlocked-io.m4.
86838         (Depends-on): Add extensions.
86839
86840 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86841
86842         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
86843         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
86844         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
86845         Check for program_invocation_name, program_invocation_short_name,
86846         flockfile, funlockfile, features.h, _getopt_long_only_r.
86847
86848 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86849
86850         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
86851         its complicated substitute.
86852         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
86853         and program_invocation_name.
86854         (__argp_basename) [!_LIBC]: Remove; the only use was
86855         replaced by its body.
86856         (__argp_short_program_name): Change condition from
86857         !defined __argp_short_program_name to
86858         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
86859         to match argp-namefrob.h.
86860         (__argp_failure): Don't assume strerror_r returns char *.
86861         * lib/argp-parse.c (N_): Define unconditionally.
86862         (argp_default_options): Fill out initializers with 0 to avoid
86863         gcc warnings.
86864
86865 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
86866
86867         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
86868         getopt1.c.
86869
86870 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86871
86872         Merge from coreutils.
86873
86874         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
86875
86876         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
86877         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
86878
86879 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86880
86881         Merge from coreutils.
86882
86883         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
86884         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
86885         for Reliant Unix 5.43.
86886
86887         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
86888         (union fooround): Use uintmax_t, not long int.
86889         The rest is a merge from libc:
86890         [defined _LIBC]: Include <shlib-compat.h>.
86891         (_obstack) [defined _LIBC]: Remove after 2.3.4.
86892
86893         * lib/settime.c (settime): Recode to avoid warning with
86894         Sun Forte C 6U2.
86895
86896         * lib/strverscmp.c: Convert to UTF-8.
86897
86898 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
86899
86900         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86901         m4/uintmax_t.m4.
86902
86903 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * modules/xalloc-die: New file.
86906         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
86907
86908         * modules/md5 (Files): Add m4/uint32_t.m4.
86909         * modules/sha1: Renamed from modules/sha.
86910         (Files):
86911         Rename lib/sha.h to lib/sha1.h.
86912         Rename lib/sha.c to lib/sha1.c.
86913         Rename m4/sha.m4 to m4/sha1.m4.
86914         (lib_SOURCES): Likewise.
86915         (configure.ac): Rename gl_SHA to gl_SHA1.
86916         (Include): sha.h -> sha1.h.
86917
86918 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86919
86920         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
86921         * m4/sha1.m4: Renamed from sha.m4.
86922         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
86923
86924 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
86925
86926         * lib/obstack.h (obstack_empty_p):
86927         Don't assume that chunk->contents is suitably aligned.
86928         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
86929         Likewise. Problem reported by Benno in
86930         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
86931
86932         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
86933         readable.  This could be improved further but it'd take some work.
86934
86935 2004-08-08  Simon Josefsson  <jas@extundo.com>
86936
86937         * modules/xgethostname (Depends-on): Remove exit and error (not
86938         used).
86939
86940         * modules/getpass-gnu: Add getpass.h.
86941         (Depends-on): Add stdbool.
86942         * modules/getpass: Add getpass.h.
86943
86944 2004-08-08  Simon Josefsson  <jas@extundo.com>
86945
86946         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
86947         Check getpass declaration.
86948
86949 2004-08-08  Simon Josefsson  <jas@extundo.com>
86950
86951         * lib/xgethostname.c: Don't include error.h (not used).
86952
86953         * lib/getpass.h: Add.
86954         * lib/getpass.c: Include getpass.h first.
86955
86956 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86957
86958         * lib/xalloc-die.c: New file.
86959         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86960         All uses removed.
86961         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86962         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86963         xalloc-die.c.
86964         (_, N_, xalloc_die): Move to xalloc-die.c.
86965         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86966         so that we needn't mess with xalloc_msg_memory_exhausted.
86967
86968         * lib/sha1.h: Renamed from sha.h.
86969         (SHA1_H): Renamed from _SHA_H.
86970         (sha1_ctx): Renamed from sha_ctx.
86971         (sha1_init_ctx): Renamed from sha_init_ctx.
86972         (sha1_process_block): Renamed from sha_process_block.
86973         (sha1_process_bytes): Renamed from sha_process_bytes.
86974         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86975         (sha1_read_ctx): Renamed from sha_read_ctx.
86976         (sha1_stream): Renamed from sha_stream.
86977         (sha1_buffer): Renamed from sha_buffer.
86978         * lib/sha1.c: Likewise; renamed from sha.c.
86979         Do not include <sys/types.h>.
86980         Include <stddef.h> rather than <stdlib.h>.
86981
86982 2004-08-08  Bruno Haible  <bruno@clisp.org>
86983
86984         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86985         FILESYSTEM_PREFIX_LEN.
86986         * lib/progreloc.c: Likewise.
86987         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86988
86989 2004-08-06  Simon Josefsson  <jas@extundo.com>
86990
86991         * modules/progname (Depends-on): Don't depend on stdbool.
86992
86993 2004-08-06  Simon Josefsson  <jas@extundo.com>
86994
86995         * modules/getsubopt: New file.
86996         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86997         getsubopt.
86998
86999 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87000
87001         More merge from coreutils.
87002
87003         * m4/utimens.m4, m4/utimecmp.m4: New files.
87004         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87005         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87006         prereq.m4, sha.m4: Import changes from coreutils.
87007
87008 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87009
87010         More merge from coreutils.
87011         * modules/raise, modules/readtokens0, modules/utimens:
87012         * modules/utimecmp, module/xnanosleep: New files.
87013         * modules/strftime: Add lib/strftime.h.
87014         Change include from <time.h> to "strftime.h".
87015         * modules/yesno: Add lib/yesno.h.
87016         * modules/backupfile: Remove lib/addext.c.
87017         * modules/euidaccess: Add stat-macros.h.
87018         * modules/canonicalize, modules/euidaccess,
87019         modules/filemode, modules/lchown, modules/makepath,
87020         modules/rmdir, modules/stat: Likewise.
87021
87022 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         Merge from tar.
87025         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87026         SIZE_MAX is a valid preprocessor constant.
87027         (__argp_basename): Change from "#ifndef _LIBC"
87028         to "#ifndef __argp_short_program_name", so that
87029         we don't compile these functions for tar.
87030
87031         More merges from coreutils.
87032         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87033         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87034         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87035         * lib/addext.c: Remove; no longer needed.
87036         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87037         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87038         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87039         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87040         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87041         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87042         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87043         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87044         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87045         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87046         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87047         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87048         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87049         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87050         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87051         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87052         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87053         Import changes from coreutils.
87054
87055 2004-08-05  Simon Josefsson  <jas@extundo.com>
87056
87057         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87058
87059 2004-08-05  Simon Josefsson  <jas@extundo.com>
87060
87061         * m4/getsubopt.m4: New file.
87062
87063 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87064
87065         Merge from coreutils.
87066
87067         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87068         * m4/getcwd-path-max.m4: New files.
87069
87070         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87071         FILESYSTEM_PREFIX_LEN ->
87072         FILE_SYSTEM_PREFIX_LEN.
87073         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87074         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87075         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87076         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87077
87078         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87079         prerequisite modules now handle the DOS stuff.
87080         Don't check for unistd.h.
87081
87082 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87083
87084         Merge from coreutils.
87085
87086         * lib/.gdb-history: Remove; this doesn't belong here.
87087
87088         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87089         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87090         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87091         * lib/getcwd.c: New files.
87092
87093         * lib/dirname.h: Include <stdbool.h>.
87094         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87095         for consistency with POSIX terminology.  All uses changed.
87096         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87097         (strip_trailing_slashes): Use bool for booleans.
87098         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87099
87100         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87101         sometimes returns a positive errno value even when it succeeds.
87102         (print_errno_message) [!LIBC]: Fall back on strerror if
87103         __strerror_r fails.
87104
87105         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87106         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87107         (longest_relative_suffix): New function.
87108         (path_concat): Use it.  Assume first argument is not NULL.
87109         Port to DOS.  Omit redundant separators.
87110         Report an error instead of returning NULL.
87111         Use mempcpy instead of memcpy.
87112         (xpath_concat): Remove: not declared or used.
87113
87114         * lib/same.h: Include <stdbool.h>
87115         (same_name): Return bool, not int.
87116         * lib/same.c (same_name): Likewise.
87117         (errno): Don't declare; we assume C89 or better now.
87118
87119         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87120         if not already defined.
87121
87122         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87123         * lib/dup-safer.c (errno): Likewise.
87124
87125 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87126
87127         Merge from coreutils.
87128         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87129         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87130         * modules/path-concat: Don't depend on strdup.
87131
87132 2004-08-03  Simon Josefsson  <jas@extundo.com>
87133
87134         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87135         * lib/progname.h: Don't include stdbool.h.
87136
87137 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87138
87139         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87140         * MODULES.html.sh (func_all_modules): Remove fatal.
87141
87142 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87145
87146 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87147
87148         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87149         working.
87150
87151 2004-08-02  Simon Josefsson  <jas@extundo.com>
87152
87153         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87154         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87155         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87156
87157 2004-08-01  Simon Josefsson  <jas@extundo.com>
87158
87159         * lib/xgetdomainname.c: Include stdlib.h, for free().
87160
87161 2004-07-19  Bruno Haible  <bruno@clisp.org>
87162
87163         * MODULES.html.sh (func_all_modules): Add dummy.
87164
87165 2004-07-16  Simon Josefsson  <jas@extundo.com>
87166
87167         * modules/dummy: New file.
87168
87169 2004-07-16  Simon Josefsson  <jas@extundo.com>
87170
87171         * lib/dummy.c: New file.
87172
87173 2004-07-16  Bruno Haible  <bruno@clisp.org>
87174
87175         * lib/backupfile.h: Add extern "C" for C++.
87176         * lib/closeout.h: Likewise.
87177         * lib/copy-file.h: Likewise.
87178         * lib/findprog.h: Likewise.
87179         * lib/full-write.h: Likewise.
87180         * lib/pathname.h: Likewise.
87181         * lib/progname.h: Likewise.
87182         * lib/stpcpy.h: Likewise.
87183         * lib/stpncpy.h: Likewise.
87184         * lib/strcase.h: Likewise.
87185         * lib/strstr.h: Likewise.
87186         * lib/xalloc.h: Likewise.
87187
87188         * lib/mbswidth.h: Add extern "C" for C++.
87189         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87190
87191 2004-07-13  Robert Millan  <robertmh@gnu.org>
87192
87193         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87194
87195 2004-07-09  Simon Josefsson  <jas@extundo.com>
87196
87197         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87198         failed without this.)
87199
87200 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87201
87202         * modules/chown (Files): Add lib/fchown-stub.c, since
87203         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87204
87205 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87206
87207         * lib/fchown-stub.c: New file.
87208
87209 2004-06-24  Jim Meyering  <jim@meyering.net>
87210
87211         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87212
87213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87214
87215         * modules/argz: Omit "#include".
87216
87217         * MODULES.html.sh (func_all_modules): Add calloc, to match
87218         2004-06-01 addition of calloc module.
87219
87220 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         * m4/argz.m4: New file, which is autoupdated from libtool.
87223
87224 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87225
87226         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87227         libtool.
87228
87229 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87230
87231         * config/srclist-update: Don't insist on "USA." before the
87232         close-comment, as libtool omits the period and puts the */ on a
87233         separate line.
87234         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87235         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87236
87237 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87238
87239         * modules/argz: New file.
87240         * MODULES.html.sh (func_all_modules): Add argz.
87241
87242 2004-06-12  Jim Meyering  <jim@meyering.net>
87243         and  Paul Eggert  <eggert@cs.ucla.edu>
87244
87245         * modules/hash (Files): Add lib/xalloc.h.
87246         * modules/pipe (Depends-on): Add wait-process.
87247         * modules/stat (Depends-on): Add xalloc.
87248         * modules/userspec (Files): Add lib/userspec.h.
87249         * modules/xstrto
87250
87251         Upgrade from gettext-0.13.
87252         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87253         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87254         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87255
87256 2004-06-10  Jim Meyering  <jim@meyering.net>
87257
87258         * lib/calloc.c: New file.
87259
87260 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87261
87262         * lib/getdate.y (yylex): Allow space between sign and number.
87263         Problem reported by Dan Jacobson.
87264
87265 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87266
87267         Merge from coreutils CVS.
87268
87269         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87270         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87271         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87272         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87273         xstrtol.m4: Fix copyright date and/or serial number.
87274
87275         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87276         See if we need an fchown replacement.
87277         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87278         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87279         and use the replacement function if we detect either defect.
87280
87281         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87282         gl_UTIMECMP.
87283
87284 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87285         and  Jim Meyering  <jim@meyering.net>
87286
87287         Merge from coreutils CVS.
87288
87289         * lib/stat-macros.h: New file, with contents from file-type.h
87290         and coreutils' system.h.
87291         * lib/file-type.c: Include "stat-macros.h".
87292         * lib/file-type.h (file_type): Move all macro definitions to new file,
87293         stat-macros.h.
87294
87295         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87296         Wrap old code with this conditional.
87297         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87298         function that does not dereference symlinks.
87299         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87300
87301         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87302         dependency problems.
87303         (xreadlink): Accept new arg SIZE, for efficiency.
87304         All decls and uses changed.
87305         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87306
87307         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87308         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87309
87310         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87311         sysexits.h.
87312
87313 2004-06-01  Jim Meyering  <jim@meyering.net>
87314
87315         * m4/calloc.m4: New file.
87316
87317 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87318
87319         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87320         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87321         Also, fix a typo in a diagnostic.
87322
87323 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87324
87325         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87326         or AC_FUNC_REALLOC.
87327
87328 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87329
87330         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87331         macros to be defined.
87332         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87333         the allocator returns NULL because the requested size is zero.
87334
87335 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87336
87337         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87338         var.  Add comment explaining why libc still defines it.  This
87339         merges the following patch from glibc:
87340         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87341
87342 2004-05-20  Andreas Schwab  <schwab@suse.de>
87343
87344         * m4/free.m4: Replace free if it not known to work, not the other
87345         way round.
87346
87347 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87348
87349         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87350         present in glibc since revision 1.1 of this file.
87351         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87352         obstack_alignment_mask, obstack_alloc, obstack_base,
87353         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87354         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87355         obstack_grow0, obstack_init, obstack_int_grow,
87356         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87357         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87358         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87359         nonexistent functions.
87360
87361 2004-05-18  Karl Berry  <karl@gnu.org>
87362
87363         * config/srclist.txt: break link for vasnprintf.c.
87364
87365 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87366
87367         Port obstack to the AS/400, where pointers are 16 bytes wide and
87368         you cannot cast an integer to a valid pointer.  This patch is
87369         currently waiting to be integrated into glibc; see
87370         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87371
87372         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87373         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87374         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87375         (struct obstack): temp member is now a union of a pointer and
87376         an integer, instead of an integer.  All integer uses changed.
87377         This does not affect the physical layout of struct obstack,
87378         except on hosts (like the AS/400) where the size or alignment of
87379         void * is greater than that of ptrdiff_t.
87380         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87381         __STDC__)]: Store temporary in pointer member of union, not
87382         integer member.
87383         * lib/obstack.c: Include <stddef.h>, for offsetof.
87384         (struct fooalign): Remove; it doesn't need a name.
87385         (union fooround): Change double to long double, and add void *.
87386         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87387         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87388         not a macro.  Hence the values are always int; so remove all
87389         casts-to-int in uses.
87390
87391 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87392
87393         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87394         we can get this patch merged into glibc.
87395
87396 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87397             Paul Eggert  <eggert@cs.ucla.edu>
87398
87399         * m4/argp: Depend on alloca.
87400
87401 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87402             Paul Eggert  <eggert@cs.ucla.edu>
87403
87404         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87405         freecoding.
87406
87407 2004-05-17  Bruno Haible  <bruno@clisp.org>
87408
87409         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87410         precision that consists of a '.' followed by an empty digit string.
87411         Patch by Tor Lillqvist <tml@iki.fi>.
87412
87413 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87414
87415         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87416         for backward compatibility with older code.  We need our own
87417         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87418         it under some other name, and our alloca.h will define it.
87419
87420 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87421             Derek Price  <derek@ximbiot.com>
87422
87423         * lib/alloca.c: Include <alloca.h>, to get our interface.
87424         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87425         include <alloca.h> first.  Use C89 prototype for alloca; this
87426         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87427         Use #elif for simplicity, since we can assume C89 now.
87428         Don't try to source the system alloca.h since it will not be found
87429         and to prevent recursively including its replacement.
87430         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87431         * lib/regex.c: Likewise.
87432
87433 2004-05-16  Derek Price  <derek@ximbiot.com>
87434             Paul Eggert  <eggert@cs.ucla.edu>
87435
87436         getline cleanup.  This changes the getndelim2 API: both order of
87437         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87438         no delimiter).
87439
87440         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87441         interface does that.
87442         (getline): Always use getdelim, so that we don't have two
87443         copies of this code.
87444         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87445         if available.
87446         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87447         (GETNDELIM2_MAXIMUM): New macro.
87448         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87449         instead of the old practice of delim2==0.  All callers changed.
87450         Return -1 on overflow, instead of returning junk.
87451         Do not set *linesize unless allocation succeeds.
87452         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87453         that we include sys/types.h.
87454         * lib/getnline.h: Likewise.
87455         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87456         (getndelim2): Reorder arguments.
87457         * lib/getnline.c (getnline, getndelim):
87458         Don't discard the NMAX argument.
87459         (getnline): Invoke getndelim, to avoid code duplication.
87460         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87461         of (size_t) -1 by callers of the getnline family.
87462
87463 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87464
87465         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87466         Check for gettimeofday.
87467         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87468         Check for settimeofday, stime.
87469
87470 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87471
87472         * lib/nanosleep.c (suspended): Change its type from int to
87473         sig_atomic_t volatile.
87474         (first_call): Make it private to rpl_nanosleep, and have it
87475         be zero initially as that's a bit faster.
87476         (my_usleep): Round up fractional times instead of truncating them,
87477         as this is the usual meaning for 'sleep'.
87478
87479         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87480         doesn't work.
87481         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87482         (ENOSYS): Define if not defined.
87483         (settime): Fall back on stime if it exists and settimeofday fails.
87484         But don't bother with fallbacks if a method fails with errno == EPERM.
87485
87486 2004-05-11  Jim Meyering  <jim@meyering.net>
87487
87488         Prior to this change, the save_cwd caller required read access to the
87489         current directory on most systems (ones with the fchdir function).
87490
87491         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87492         fails, try write-only, and finally, resort to using xgetcwd.
87493
87494 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87495
87496         * lib/obstack.c, obstack.h: Import changes from libc.
87497
87498 2004-04-28  Bruno Haible  <bruno@clisp.org>
87499
87500         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87501         also implicitly appends .exe to executables.
87502         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87503         accepts Windows pathnames.
87504         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87505         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87506         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87507         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87508         Reported by Derek Robert Price <derek@ximbiot.com>.
87509
87510 2004-04-21  Karl Berry  <karl@gnu.org>
87511
87512         * config/srclist.txt (localcharset.c): break sync.
87513
87514 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87515
87516         * m4/host-os.m4: Add a copyright notice.
87517
87518 2004-04-20  Jim Meyering  <jim@meyering.net>
87519
87520         Change UTILS_ to gl_ in AC_DEFINE'd names.
87521         Change utils_- and jm_-prefixed variables, too.
87522         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87523         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87524         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87525
87526         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87527         Don't emit trailing blanks.
87528         Also rename jm_-prefixed variables to have gl_ prefix.
87529
87530         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87531         Also rename jm_-prefixed variables to have gl_ prefix.
87532
87533         * m4/jm-macros.m4: Reflect the renamings.
87534         * m4/prereq.m4: Likewise.
87535
87536 2004-04-20  Jim Meyering  <jim@meyering.net>
87537
87538         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87539         memory.
87540
87541 2004-04-20  Jim Meyering  <jim@meyering.net>
87542             Bruno Haible  <bruno@clisp.org>
87543
87544         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87545         memory when realloc fails.
87546
87547 2004-04-19  Jim Meyering  <jim@meyering.net>
87548
87549         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87550         now that readutmp.c may call `free (0)'.
87551
87552 2004-04-19  Bruno Haible  <bruno@clisp.org>
87553
87554         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87555         * m4/inttypes_h.m4: Likewise.
87556         * m4/stdint_h.m4: Likewise.
87557         * m4/intmax_t.m4: Likewise.
87558         * m4/uintmax_t.m4: Likewise.
87559
87560 2004-04-18  Jim Meyering  <jim@meyering.net>
87561
87562         * m4/prereq.m4: Don't forbid jm_ prefix.
87563
87564         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87565         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87566         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87567         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87568         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87569         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87570         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87571         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87572         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87573         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87574         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87575         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87576         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87577         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87578         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87579         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87580         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87581         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87582         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87583
87584 2004-04-18  Jim Meyering  <jim@meyering.net>
87585
87586         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87587         failure, don't leak memory and do call END_UTMP_ENT.
87588
87589 2004-04-16  Jim Meyering  <jim@meyering.net>
87590
87591         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87592         coreutils' stat program.
87593         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87594
87595 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87596
87597         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87598         C89.
87599         (CHAR_BIT): Remove, since we assume C89.
87600         Include <stdint.h> if available, as per current Autoconf CVS advice.
87601
87602 2004-03-31  Jim Meyering  <jim@meyering.net>
87603
87604         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87605         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87606         * m4/xalloc.m4: Likewise.
87607
87608 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87609
87610         Merge from coreutils.
87611
87612         * m4/inttostr.m4: New file.
87613         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87614         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87615         Require gl_CLOCK_TIME.
87616         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87617
87618 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87619
87620         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87621         not bool, to be more consistent with Unix conventions.
87622         Suggested by Bruno Haible.
87623
87624         Merge from coreutils.
87625
87626         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87627         * lib/umaxtostr.c: New files.
87628
87629         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87630         the usual <time.h> dance.
87631         (get_date): Change signature to support fractional time stamps.
87632         All callers changed.
87633         * lib/getdate.y: Include "getdate.h" first, as we can now
87634         assume C89 and don't need to worry about 'const'.
87635         Similarly, include "unlocked-io.h" near start, not in middle.
87636         Include <limits.h>.
87637         (textint.value): Use long int rather than int.
87638         (textint.digits): Use size_t rather than int.
87639         (BILLION, LOG10_BILLION): New constants.
87640         (parser_control): New member rel_ns.  Members day_ordinal,
87641         time_zone, month, day, hour, minutes, rel_year, rel_month,
87642         rel_day, rel_hour, rel_minutes, rel_seconds
87643         are now long int, not int.  Member seconds is now struct timespec,
87644         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87645         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87646         not int.
87647         (%union.intval): Now long int, not int.
87648         New member timespec.
87649         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87650         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87651         (spec): Now is a timespec or an item list.
87652         (timespec, items): New nonterminals.
87653         (time, rel, relunit, number, get_date):
87654         Add support for fractional seconds.
87655         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87656         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87657         (to_hour): First arg is now long int, not int.
87658         (to_year): Returns long int, not int.
87659         Don't treat year -70 like 70.
87660         (tm_diff): Returns long int, not int.
87661         (lookup_word): Use bool instead of int when appropriate.
87662         (yylex): Use size_t for count, not int.
87663         Detect overflow when parsing large integer constants.
87664         Add support for fractions.
87665         (get_date): Make pointers 'const' if possible.
87666         Use more-portable code to detect integer overflow.
87667         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87668         Don't use ctime; it's not reliable if the year has >4 digits.
87669
87670         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87671         This is for compatibility with BSD.
87672
87673         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87674         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87675         From coreutils' system.h.
87676
87677         * lib/userspec.c: Don't include "posixver.h".
87678         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87679         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87680         compatible extension.  Simplify code by removing a boolean int
87681         that was always nonzero if a string was nonnull.
87682
87683 2004-03-30  Jim Meyering  <jim@meyering.net>
87684
87685         Merge from coreutils.
87686
87687         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87688         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87689         on some systems one must include <grp.h> before it.
87690         Reported by Christian Krackowizer.
87691
87692 2004-03-30  Jim Meyering  <jim@meyering.net>
87693
87694         Merge from coreutils.
87695
87696         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87697
87698         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87699         an empty input stream.
87700
87701         * lib/readtokens.c: Include <stdbool.h>.
87702         (readtoken): Use `size_t' rather than int/long.
87703         All callers adjusted.
87704         Use `bool' rather than `int' where appropriate.
87705         Use memset rather than an explicit loop.
87706         Use x2nrealloc rather than xrealloc.
87707         Allow the use of `\0' as a delimiter.
87708         (readtokens): Likewise.
87709         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87710
87711 2004-03-30  Jim Meyering  <jim@meyering.net>
87712
87713         * m4/realloc.m4: Remove file, since now it does no more than
87714         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87715         the `configure.ac' section of module/realloc.
87716         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87717
87718 2004-03-30  Bruno Haible  <bruno@clisp.org>
87719
87720         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87721         nonnull.
87722
87723 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87724
87725         Merge changes to getloadavg.c from coreutils and Emacs.
87726
87727         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87728         Define to an expression, not to the empty string.
87729         Include cloexec.h and xalloc.h.
87730         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87731         Use set_cloexec_flag rather than rolling our own.
87732         * lib/cloexec.c, lib/cloexec.h: New files.
87733
87734 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87735
87736         * m4/cloexec.m4: New file.
87737
87738 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87739
87740         * lib/getopt.h: Sync with libc CVS.
87741
87742 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87743             Bruno Haible  <bruno@clisp.org>
87744
87745         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87746         mbswidth.
87747
87748 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87749             Bruno Haible  <bruno@clisp.org>
87750
87751         * lib/mbswidth.h: Include <wchar.h> only if
87752         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87753         <wchar.h>.
87754         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87755
87756 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87757
87758         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87759         Sync with libc CVS.
87760         * lib/getopt_int.h: New file, also synced from libc.
87761
87762 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87763
87764         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87765         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87766         Bring back getopt.c, getopt.h, getopt1.c.
87767
87768 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87769
87770         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87771         All uses changed.  Check for sa_sigaction member; this fixes
87772         a bug first reported by Jason Andrade in
87773         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87774
87775 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87776
87777         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87778         '#if' expressions.  Unlike the code it replaces, it does not
87779         depend on (defined _SC_PAGESIZE).  However, it does depend on
87780         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87781         first reported by Jason Andrade in
87782         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87783
87784 2004-02-25  Simon Josefsson  <jas@extundo.com>
87785
87786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87787
87788 2004-02-25  Simon Josefsson  <jas@extundo.com>
87789
87790         * lib/strdup.h: New file.
87791         * lib/strdup.c: Include it.
87792         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87793         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87794
87795 2004-02-23  Karl Berry  <karl@gnu.org>
87796
87797         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87798         (from fencepost.gnu.org:/gd/gnuorg).
87799
87800 2004-02-23  Karl Berry  <karl@gnu.org>
87801
87802         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87803         * config/srclist.txt: add maintain/standards documents.
87804
87805 2004-02-18  Bruno Haible  <bruno@clisp.org>
87806
87807         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87808         Reported by Derek Robert Price <derek@ximbiot.com>.
87809
87810 2004-02-16  Karl Berry  <karl@gnu.org>
87811
87812         * config/mkinstalldirs, install-sh: update from automake.
87813
87814 2004-02-06  Karl Berry  <karl@gnu.org>
87815
87816         * m4/po.m4: update from gettext 0.14.1.
87817
87818 2004-02-06  Karl Berry  <karl@gnu.org>
87819
87820         * lib/config.charset: update from gettext 0.14.1.
87821
87822 2004-02-05  Paul Eggert  <eggert@twinsun.com>
87823
87824         Add comments and code, prompted by suggestions from Bruno Haible
87825         for sh-quote.
87826         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
87827         describing the enum quoting_style values.
87828         * lib/quotearg.c (quotearg_alloc): New function.
87829         (quotearg_buffer_restyled): Treat lone { and } as special.
87830         Treat = as special.  Work around bug with older shells
87831         that "see" a '\' that is really the 2nd byte of a multibyte char.
87832         Quote empty string with shell_quoting_style.
87833
87834 2004-02-03  Bruno Haible  <bruno@clisp.org>
87835
87836         * m4/pipe.m4: New file, from GNU gettext.
87837
87838 2004-02-03  Bruno Haible  <bruno@clisp.org>
87839
87840         * lib/pipe.h: New file, from GNU gettext.
87841         * lib/pipe.c: New file, from GNU gettext.
87842
87843 2004-01-27  Bruno Haible  <bruno@clisp.org>
87844
87845         * m4/execute.m4: New file, from GNU gettext.
87846
87847 2004-01-27  Bruno Haible  <bruno@clisp.org>
87848
87849         * lib/execute.h: New file, from GNU gettext.
87850         * lib/execute.c: New file, from GNU gettext.
87851         * lib/w32spawn.h: New file, from GNU gettext.
87852
87853 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87854
87855         Merge from diffutils.
87856
87857         * lib/file-type.c (file_type): Add typed memory objects.
87858         * lib/file-type.h (S_TYPEISTMO): New macro.
87859
87860         * lib/c-stack.h (c_stack_action): Remove argv argument.
87861         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
87862         (die): Don't calculate message unless segv_action returns.
87863         (get_stack_location, min_address_from_argv, max_address_from_argv,
87864         volatile stack_base, volatile_stack_size): Remove.
87865         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
87866         that every segmentation violation is a stack overflow.  (Ouch!)
87867         See Debian bug 136249 (still outstanding) for more info about why
87868         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
87869
87870 2004-01-24  Paul Eggert  <eggert@twinsun.com>
87871
87872         Exit-status fix from coreutils.
87873
87874         Use exit_failure consistently in place of EXIT_FAILURE,
87875         so that program exit statuses are consistent on failure.
87876
87877         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
87878         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
87879         * lib/argmatch.h: Comment fix to match the above.
87880         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
87881         Now a macro referring to exit_failure, instead of a separate
87882         variable.  Include "exitfail.h" to get it.
87883         * lib/xstrtol.h: Include "exitfail.h".
87884         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
87885
87886         * lib/long-options.c (parse_long_options): Use prototype
87887         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
87888         for clarity.
87889
87890 2004-01-21  Jim Meyering  <jim@meyering.net>
87891
87892         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
87893         so as not to conflict with a different-sized __mktime_internal
87894         function in GNU libc.
87895         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
87896         Problem building statically-linked `ls' reported by Michael Brunnbauer.
87897
87898 2004-01-20  Karl Berry  <karl@gnu.org>
87899
87900         * config/config.guess: update from config.
87901
87902         * config/srclistvars.sh: GNUWWWLICENSES for karl.
87903
87904 2004-01-20  Bruno Haible  <bruno@clisp.org>
87905
87906         Safer stack allocation.
87907         * lib/setenv.c: Include allocsa.h.
87908         (alloca): Remove fallback definition.
87909         (freea): Remove macro.
87910         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
87911         instead of freea.
87912
87913 2004-01-20  Bruno Haible  <bruno@clisp.org>
87914
87915         * m4/eealloc.m4: New file, from GNU gettext.
87916
87917 2004-01-20  Bruno Haible  <bruno@clisp.org>
87918
87919         * m4/allocsa.m4: New file, from GNU gettext.
87920
87921 2004-01-20  Bruno Haible  <bruno@clisp.org>
87922
87923         * lib/xallocsa.h: New file, from GNU gettext.
87924         * lib/xallocsa.c: New file, from GNU gettext.
87925
87926 2004-01-20  Bruno Haible  <bruno@clisp.org>
87927
87928         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
87929
87930 2004-01-20  Bruno Haible  <bruno@clisp.org>
87931
87932         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
87933         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
87934         specially.
87935
87936 2004-01-20  Bruno Haible  <bruno@clisp.org>
87937
87938         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
87939         patch.
87940
87941 2004-01-20  Bruno Haible  <bruno@clisp.org>
87942
87943         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
87944
87945 2004-01-20  Bruno Haible  <bruno@clisp.org>
87946
87947         * lib/eealloc.h: New file.
87948
87949 2004-01-20  Bruno Haible  <bruno@clisp.org>
87950
87951         * lib/binary-io.h: Avoid warnings on Cygwin.
87952
87953 2004-01-20  Bruno Haible  <bruno@clisp.org>
87954
87955         * lib/allocsa.h: New file, from GNU gettext.
87956         * lib/allocsa.c: New file, from GNU gettext.
87957
87958 2004-01-18  Karl Berry  <karl@gnu.org>
87959
87960         * doc/gpl.texi, doc/lgpl.texi: new files.
87961
87962 2004-01-18  Karl Berry  <karl@gnu.org>
87963
87964         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87965         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87966
87967 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87968
87969         Merge from coreutils.
87970
87971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87972         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87973         (gl_DEFAULT_POSIX2_VERSION): Move
87974         the documentation from 'configure' into 'config.hin',
87975         so that 'configure --help' isn't burdened by it and
87976         we don't have to worry about its formatting there.
87977         Reword the documentation so that it's more succinct
87978         and can be run together into a single paragraph.
87979         * m4/same.m4 (gl_SAME): Check for pathconf.
87980
87981 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87982
87983         Merge from coreutils.
87984
87985         * lib/posixver.c: Include posixver.h.
87986
87987         * lib/same.c: Include <stdbool.h>, <limits.h>.
87988         (_POSIX_NAME_MAX): Define if not defined.
87989         (MIN): New macro.
87990         (same_name): If file names are silently truncated, report
87991         that the file names are the same if they are the same after
87992         the silent truncation.
87993
87994         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87995         conversion function.
87996         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87997         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87998         longer needed.
87999
88000 2004-01-15  Jim Meyering  <jim@meyering.net>
88001
88002         Merge from coreutils.
88003
88004         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88005         if no library is required.
88006         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88007         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88008         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88009         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88010         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88011         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88012         value, $ac_cv_search_crypt, if it's "none required".
88013         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88014         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88015         not gl_FUNC_GETLOADAVG.
88016         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88017         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88018
88019 2004-01-15  Jim Meyering  <jim@meyering.net>
88020
88021         Merge from coreutils.
88022
88023         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88024         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88025         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88026
88027         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88028         optional configure-time default.
88029
88030         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88031
88032         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88033
88034 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88035
88036         Merge from coreutils.
88037
88038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88039         value, $ac_cv_search_nanosleep, if it's "none required".
88040
88041 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88042
88043         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88044         with like-named macro in fnmatch.c.
88045         (EXT): Use an internal constant instead.
88046
88047         Merge fnmatch patches from glibc.
88048         * lib/fnmatch.c (mbsinit): Remove define.
88049         Add libc_hidden_ver (__fnmatch, fnmatch).
88050         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88051         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88052
88053 2004-01-14  Karl Berry  <karl@gnu.org>
88054
88055         * config/install-sh: update from automake.
88056
88057 2004-01-13  Karl Berry  <karl@gnu.org>
88058
88059         * config/install-sh: update from automake.
88060
88061 2004-01-09  Karl Berry  <karl@gnu.org>
88062
88063         * config/install-sh: update from automake.
88064
88065 2004-01-05  Karl Berry  <karl@gnu.org>
88066
88067         * config/config.{sub,guess}: update from config.
88068
88069 2003-12-31  Karl Berry  <karl@gnu.org>
88070
88071         * config/depcomp: update from automake.
88072
88073 2003-12-14  Karl Berry  <karl@gnu.org>
88074
88075         * lib/config.charset: update from gettext-runtime.
88076
88077 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88078
88079         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88080         Bug reported by Alfred M. Szmidt.
88081
88082 2003-12-03  Bruno Haible  <bruno@clisp.org>
88083
88084         * m4/gettext.m4: Upgrade from gettext-0.13.
88085         * m4/po.m4: Upgrade from gettext-0.13.
88086         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88087         * m4/intmax.m4: New file, from gettext-0.13.
88088         * m4/printf-posix.m4: New file, from gettext-0.13.
88089
88090 2003-11-29  Karl Berry  <karl@gnu.org>
88091
88092         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88093
88094 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88095             Bruno Haible  <bruno@clisp.org>
88096
88097         * lib/printf-parse.h: Don't include sys/types.h.
88098         (ARG_NONE): New macro.
88099         (char_directive): Change type of *arg_index fields to size_t.
88100         * lib/printf-parse.c: Don't include sys/types.h.
88101         (SSIZE_MAX): Remove macro.
88102         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88103         Remove unnecessary overflow check.
88104         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88105         fields.
88106
88107 2003-11-25  Bruno Haible  <bruno@clisp.org>
88108
88109         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88110
88111 2003-11-25  Bruno Haible  <bruno@clisp.org>
88112
88113         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88114         gt_TYPE_SSIZE_T.
88115
88116 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88117
88118         * modules/alloca: Remove dependency on xalloc.
88119
88120 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88121
88122         * lib/alloca.c: Remove dependency on xalloc module.
88123         (xalloc_die): Remove.
88124         (memory_full) [!defined emacs]: New macro.
88125         [!defined emacs]: Don't include xalloc.h.
88126         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88127         address arithmetic overflows.  Change datatypes a bit to avoid
88128         unnecessary casts.
88129
88130 2003-11-22  Jim Meyering  <jim@meyering.net>
88131
88132         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88133         s/size/size_t/.
88134
88135 2003-11-21  Karl Berry  <karl@gnu.org>
88136
88137         * config/config.{sub,guess}: update from config.
88138
88139 2003-11-18  Karl Berry  <karl@gnu.org>
88140
88141         * config/config.{sub,guess}: update from config.
88142
88143         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88144
88145 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88146
88147         * README: Mention that S+T cannot overflow if S is the size of
88148         an existing object and T is sufficiently small.
88149
88150 2003-11-17  Jim Meyering  <jim@meyering.net>
88151
88152         On systems without utime and without a utimes function capable of
88153         dealing with a NULL struct utimbuf* argument, this utime replacement
88154         could -- in unusual circumstances -- leak a file descriptor.
88155         * lib/utime.c: Include <unistd.h> and <errno.h>.
88156         (utime_null): Be sure to close `fd' and to preserve errno.
88157         Reported by Geoff Collyer via Arnold Robbins.
88158
88159 2003-11-17  Bruno Haible  <bruno@clisp.org>
88160
88161         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88162         (Depends-on): Add xsize.
88163
88164 2003-11-17  Bruno Haible  <bruno@clisp.org>
88165
88166         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88167
88168 2003-11-17  Bruno Haible  <bruno@clisp.org>
88169
88170         * lib/vasnprintf.c (alloca): Remove fallback definition.
88171         (freea): Remove definition.
88172         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88173         Reported by Paul Eggert.
88174
88175 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88176             Bruno Haible  <bruno@clisp.org>
88177
88178         Protect against address arithmetic overflow.
88179         * lib/printf-args.h: Include stddef.h.
88180         (arguments): Change type of field 'count' to size_t.
88181         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88182         'unsigned int' where appropriate.
88183         * lib/printf-parse.h: Include sys/types.h.
88184         (char_directive): Change type of *arg_index fields to ssize_t.
88185         (char_directives): Change type of fields 'count', max_*_length to
88186         size_t.
88187         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88188         (SSIZE_MAX): Define fallback value.
88189         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88190         instead of 'int' where appropriate. Check a_allocated, d_allocated
88191         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88192         * lib/vasnprintf.c: Include xsize.h.
88193         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88194         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88195         overflow. Avoid wraparound when converting a width or precision from
88196         decimal to binary.
88197
88198 2003-11-16  Bruno Haible  <bruno@clisp.org>
88199
88200         Update from GNU gettext.
88201         * lib/printf-parse.c: Generalize to it can be compiled for wide
88202         strings.
88203         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88204         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88205         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88206         SNPRINTF): New macros.
88207         Don't include <alloca.h> if the file is used inside libintl.
88208         (local_wcslen): New function, for Solaris 2.5.1.
88209         (VASNPRINTF): Use it instead of wcslen.
88210
88211 2003-11-16  Bruno Haible  <bruno@clisp.org>
88212
88213         * lib/xsize.h (xmax): New function.
88214         (xsum, xsum3, xsum4): Declare as "pure" functions.
88215
88216 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88217
88218         * modules/xalloc (Files): Undo latest change, since xalloc.h
88219         no longer needs SIZE_MAX or PTRDIFF_MAX.
88220
88221 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88222
88223         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88224         gl_PTRDIFF_MAX.
88225
88226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88227
88228         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88229         "return", to pacify some unknown compiler.  Problem reported
88230         by Joerg Schilling.
88231
88232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88233
88234         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88235         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88236         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88237         heuristic is just as accurate as far as we know, and it removes a
88238         dependency on size_max.m4 and ptrdiff_max.m4.
88239
88240 2003-11-11  Bruno Haible  <bruno@clisp.org>
88241
88242         * modules/xsize (Files): Add m4/size_max.m4.
88243         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88244
88245 2003-11-11  Bruno Haible  <bruno@clisp.org>
88246
88247         * m4/size_max.m4: New file.
88248         * m4/ptrdiff_max.m4: New file.
88249         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88250         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88251         (gl_XALLOC): Invoke it.
88252
88253 2003-11-11  Bruno Haible  <bruno@clisp.org>
88254
88255         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88256         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88257         defined.
88258
88259 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88260
88261         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88262         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88263         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88264         From Bruno Haible.
88265         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88266         not (size_t) -1, since it's defined here.
88267
88268 2003-11-09  Karl Berry  <karl@gnu.org>
88269
88270         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88271
88272 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88273
88274         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88275         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88276         Reject sizes of exactly SIZE_MAX bytes.
88277         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88278         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88279
88280 2003-11-05  Bruno Haible  <bruno@clisp.org>
88281
88282         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88283         SIZE_MAX defined in <limits.h> on Solaris.
88284
88285 2003-11-04  Jim Meyering  <jim@meyering.net>
88286
88287         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88288         variable names, rather than @VAR@.
88289         * modules/poll: Likewise.
88290
88291 2003-11-04  Bruno Haible  <bruno@clisp.org>
88292
88293         * modules/xsize: New file.
88294         * modules/linebreak: Depend on xsize.
88295         * MODULES.html.sh (func_all_modules): Add xsize.
88296
88297 2003-11-04  Bruno Haible  <bruno@clisp.org>
88298
88299         * m4/xsize.m4: New file.
88300
88301 2003-11-04  Bruno Haible  <bruno@clisp.org>
88302
88303         * lib/xsize.h: New file.
88304         * lib/linebreak.c: Include xsize.h.
88305         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88306         argument for overflow.
88307         Suggested by Paul Eggert.
88308
88309 2003-11-03  Karl Berry  <karl@gnu.org>
88310
88311         * config/config.{guess,sub}: update from config.
88312
88313 2003-11-03  Jim Meyering  <jim@meyering.net>
88314
88315         * modules/userspec (lib_SOURCES): Add userspec.h.
88316         (Include): Add "userspec.h".
88317         Improve description.
88318
88319 2003-11-03  Jim Meyering  <jim@meyering.net>
88320
88321         * lib/userspec.c: Include "userspec.h".
88322         * lib/userspec.h: New file.
88323
88324 2003-11-03  Bruno Haible  <bruno@clisp.org>
88325
88326         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88327
88328 2003-11-03  Bruno Haible  <bruno@clisp.org>
88329
88330         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88331         available, to avoid (extremely rare) race condition.
88332         Suggested by Paul Eggert.
88333
88334 2003-11-02  Karl Berry  <karl@gnu.org>
88335
88336         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88337
88338 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88339
88340         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88341         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88342         (read_filesystem_list): Set and use me_type_malloced.
88343         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88344         whatever the type happens to be), for brevity and consistency.
88345         Check for size calculation overflow on Alphas running OSF/1.
88346
88347 2003-10-31  Jim Meyering  <jim@meyering.net>
88348
88349         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88350
88351         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88352
88353 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88354             Bruno Haible  <bruno@clisp.org>
88355
88356         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88357         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88358
88359 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88360
88361         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88362         netbsd*-gnu*.  Suggested by Robert Millan.
88363
88364 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88365
88366         * modules/group-member: Depend on stdbool.
88367
88368 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88369
88370         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88371
88372 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88373
88374         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88375         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88376         after the 'gnu' in these cases.  This fixes some bugs in the
88377         previous change, and is based on suggestions by Robert Millan.
88378
88379 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88380
88381         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88382         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88383         no longer needed.
88384         * lib/quotearg.c (quotearg_n_options): Use it.
88385         * lib/group-member.c: Include <stdbool.h>.
88386         (free_group_info): Arg is now const *; don't free arg.
88387         (get_group_info): Now returns bool and accepts struct group_info *,
88388         rather than returning a malloc'ed struct group_info *.
88389         All uses changed.  Check for overflow in internal size calculation.
88390
88391         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88392         rather than xmalloc/xrealloc.
88393         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88394         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88395         conformance bug: the old code used a pointer after freeing the
88396         storage that it addressed.
88397         * lib/hash.c (hash_initialize): Simplify the code by using
88398         xalloc_oversized rather than doing it by hand.
88399         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88400         the buffer preserved.  Use free and xmalloc instead.
88401         * lib/quotearg.c (quotearg_n_options): Likewise.
88402         Use a simpler test for size overflow.  Don't use xalloc_oversized
88403         because unsigned int might be wider than size_t (!); this suggests
88404         that we should switch from unsigned int to size_t for slot numbers.
88405
88406 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88407
88408         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88409         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88410         NetBSD kernels.  Requested by Richard Stallman.
88411
88412 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88413
88414         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88415         to allocate the returned structure.  Do not allocate a subarray,
88416         as x2nrealloc will do that.
88417         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88418         instead of xnrealloc.
88419         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88420
88421 2003-10-27  Bruno Haible  <bruno@clisp.org>
88422
88423         * lib/stdbool_.h: Better support for BeOS.
88424
88425 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88426
88427         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88428         now uses inline.
88429
88430 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88431
88432         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88433         callers that want to do their own size-overflow checking.  Include
88434         <stdbool.h>, since xalloc_oversized returns bool.
88435         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88436         to use xalloc_oversized.
88437
88438         Add two functions x2realloc, x2nrealloc, for programs that grow
88439         arrays dynamically by doubling their sizes.
88440         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88441         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88442         New functions.
88443
88444         Port to C99 semantics for 'inline' of external functions.
88445         Bug reported by Bruno Haible.
88446         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88447         with the old contents of xnmalloc.
88448         (xnmalloc, xmalloc): Use it.
88449         (xnrealloc_inline): New static inline function,
88450         with the old contents of xnrealloc.
88451         (xnrealloc, xrealloc): Use it.
88452
88453         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88454         that.
88455
88456 2003-10-26  Karl Berry  <karl@gnu.org>
88457
88458         * config/srclist.txt (COPYING.DOC): no longer available from
88459         /gd/gnuorg; don't know where the ultimate source is.
88460
88461 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88462
88463         Fix several address-calculation bugs in the hash modules,
88464         plus some minor code cleanup.
88465
88466         * lib/hash.h: Include <stdbool.h>, for bool.
88467         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88468         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88469         hash_get_n_entries, hash_get_max_bucket_length,
88470         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88471         hash_rehash): Use size_t rather than unsigned.
88472         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88473         hash_get_n_buckets_used, hash_get_n_entries,
88474         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88475         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88476         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88477         Likewise.
88478         (SIZE_MAX): Define if not defined.
88479         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88480         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88481         hash_print):
88482         Use const * when possible.
88483         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88484         (check_tuning): Fix bug: if tuning parameters were very close to
88485         0 or 1, rounding errors could have caused subscript violations.
88486         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88487         (hash_initialize): Add 'fail:' label
88488         to free table and return NULL, and use it to simplify code.
88489         Use calloc rather than clearing the storage ourself.
88490         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88491         buffer size calculations.
88492         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88493         Include <stddef.h>, for size_t.
88494         * lib/hash-pjw.c (hash_pjw): Likewise.
88495         Switch to method described by Bruno Haible.
88496         Include <limits.h>, for CHAR_BIT.
88497         (SIZE_BITS): New macro.
88498
88499 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88500
88501         * m4/getline.m4 (AM_FUNC_GETLINE):
88502         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88503         hosts.  Problem reported by Derek Robert Price in
88504         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88505         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88506         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88507
88508 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88509
88510         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88511         ceiling the allocation at NMAX bytes rather than silently
88512         discarding input bytes before NMAX is reached.  This makes
88513         a difference only if NMAX exceeds SIZE_MAX / 2.
88514
88515         * lib/obstack.c: Merge from glibc.
88516         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88517         Add libc_hidden_def (_obstack_newchunk).
88518         (_obstack_free) [! defined _LIBC]: Remove.
88519         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88520         a clone of the function body.
88521         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88522         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88523
88524         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88525         glibc.
88526         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88527         arg to memcpy.
88528
88529         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88530         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88531         Don't use lvalue casts, as GCC plans to remove support for them
88532         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88533         was also present in the non-GCC version, indicating that this
88534         code had always been buggy and had never been widely used.
88535         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88536         Use the fast variant of each macro, rather than copying the
88537         definiens of the fast variant; that way, we'll be more likely to
88538         catch future bugs in the fast variants.
88539
88540 2003-10-20  Bruno Haible  <bruno@clisp.org>
88541
88542         * modules/wait-process: New file.
88543         * MODULES.html.sh (func_all_modules): Add wait-process.
88544
88545 2003-10-20  Bruno Haible  <bruno@clisp.org>
88546
88547         * m4/wait-process.m4: New file.
88548
88549 2003-10-20  Bruno Haible  <bruno@clisp.org>
88550
88551         * lib/wait-process.h: New file, from GNU gettext.
88552         * lib/wait-process.c: New file, from GNU gettext.
88553
88554 2003-10-19  Jim Meyering  <jim@meyering.net>
88555
88556         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88557         HPUX 10.20.
88558
88559 2003-10-18  Karl Berry  <karl@gnu.org>
88560
88561         * config/config.guess: update from config.
88562
88563 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88564
88565         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88566         (getgroups): First arg is int, not size_t.
88567         Don't let 'free' mangle errno.
88568
88569 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88570
88571         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88572
88573 2003-10-16  Karl Berry  <karl@gnu.org>
88574
88575         * config/config.{guess,sub}: update from config.
88576
88577 2003-10-16  Jim Meyering  <jim@meyering.net>
88578
88579         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88580         memcpy.
88581
88582 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88583
88584         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88585         (SIZE_MAX): Remove.
88586         (new_exclude, add_exclude_file): Initial size no longer needs to
88587         be a power of 2.
88588         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88589         our own address arithmetic overflow checking.
88590
88591         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88592         (fnmatch): Do not alloca more than 2000 wide characters;
88593         instead, use malloc for large buffers.
88594         Check for address arithmetic overflow, and return -1
88595         with errno set to ENOMEM in that case.
88596         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88597         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88598         instead, return -1.  Check for address arithmetic overflow.
88599
88600 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88601
88602         Handle invalid suffixes and overflow independently, so that
88603         callers can treat them independently as needed.  Fix some bugs in
88604         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88605         suffix for a human-readable blocksize.  The major caller-visible
88606         change is the addition of a new
88607         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88608         that both overflow and suffix chars were found.
88609
88610         * lib/human.c (humblock): Don't check separately for invalid suffix
88611         char; that is xstrtoumax's job (now that its bug is fixed).
88612         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88613         INTMAX_MAX]: New macros.
88614         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88615         TYPE_MAXIMUM): New macros.
88616         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88617         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88618         if overflow occurs, as it's what __strtol does and it's more useful
88619         in practice.
88620         (__xstrtol): If __strtol reports some error other than ERANGE,
88621         reflect it to the caller as LONGINT_INVALID.  If it reports
88622         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88623         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88624         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88625         value.
88626         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88627         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88628         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88629         [defined UINTMAX_MAX]: New macros.
88630
88631 2003-10-14  Bruno Haible  <bruno@clisp.org>
88632
88633         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88634
88635 2003-10-14  Bruno Haible  <bruno@clisp.org>
88636
88637         * m4/sig_atomic_t: New file, from GNU gettext.
88638         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88639
88640 2003-10-14  Bruno Haible  <bruno@clisp.org>
88641
88642         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88643         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88644         Also use volatile where needed.
88645
88646 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88647
88648         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88649         Change maintainer from Bruno Haible to 'all'.
88650
88651 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88652
88653         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88654
88655 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88656
88657         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88658         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88659         and define in terms of the other primitives.
88660         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88661         (SIZE_MAX): Define if not already defined.
88662         (array_size_overflow): New function.
88663         (xalloc_die): Abort instead of exiting if 'error' returns.
88664         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88665         (xmalloc, xrealloc): Use them.
88666         (xcalloc): Check for address arithmetic overflow.
88667         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88668         a bit faster than strcpy.
88669
88670 2003-10-10  Simon Josefsson  <jas@extundo.com>
88671
88672         * modules/argp (Depends-on): Add restrict and strcase.
88673
88674 2003-10-10  Simon Josefsson  <jas@extundo.com>
88675
88676         * m4/argp.m4: Add AC_C_INLINE.
88677
88678 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88679
88680         Merge getpass from libc, plus a few fixes.
88681
88682         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88683         Include <stdbool.h>.
88684         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88685         __fsetlocking to empty.
88686         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88687         do include <bits/libc-lock.h>.
88688         Do not include <fcntl.h>; not needed.
88689         [_LIBC]: Include <wchar.h>.
88690         (NOTCANCEL_MODE): New macro.
88691         (flockfile, funlockfile) [_LIBC]: New macros.
88692         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88693         [!_LIBC]: New macros.
88694         (call_fclose): New function.
88695         (getpass): Use it.  Save tty stream separately; this simplifies the
88696         code and makes it more reliable if stdin happens to equal stdout.
88697         Invoke __fsetlocking on tty.
88698         Handle thread cancellation if needed.
88699         Namespace cleanup (use __tcgetattr, __getline).
88700         Use bool for Booleans.
88701         [USE_IN_LIBIO]: Handle wide streams.
88702         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88703         stream might go where.
88704
88705         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88706         doesn't have to include <stdio.h> before us.
88707         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88708         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88709         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88710         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88711         if not declared, so that we can use getpass.c code from libc without
88712         rewriting it.
88713         (flockfile, ftrylockfile, funlockfile): New macros.
88714
88715 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88716
88717         * modules/getpass: Depend on stdbool.
88718
88719 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88720
88721         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88722
88723 2003-10-07  Karl Berry  <karl@gnu.org>
88724
88725         * config/config.{guess,sub}: update from config.
88726
88727 2003-10-06  Jim Meyering  <jim@meyering.net>
88728             Bruno Haible  <bruno@clisp.org>
88729
88730         This lets translators provide better translations for the
88731         "Written by ..." part of --version output.
88732         * lib/version-etc.h: Include stdarg.h.
88733         (version_etc_copyright): Declare as readonly.
88734         (version_etc): Make this function variadic with a NULL-terminated list
88735         of author name strings.
88736         (version_etc_va): New declaration.
88737         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88738         (version_etc_copyright): Declare as readonly.
88739         (version_etc_va): New function. Provide a different translatable string
88740         for each possible number of authors < 10. Abbreviate when there are 10
88741         authors or more.
88742         (version_etc): Make this function variadic. Call version_etc_va.
88743         Suggestion from Gary V. Vaughan.
88744
88745         * lib/long-options.h (parse_long_options): Change prototype: the
88746         authors string is moved to the end and becomes variadic.
88747         * lib/long-options.c: Include stdarg.h.
88748         (parse_long_options): Make this function variadic, too.
88749         Call version_etc_va, not version_etc.
88750
88751 2003-10-06  Bruno Haible  <bruno@clisp.org>
88752
88753         * modules/version-etc-2: Remove file.
88754         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88755
88756 2003-10-06  Bruno Haible  <bruno@clisp.org>
88757
88758         * modules/fatal-signal: New file.
88759         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88760
88761 2003-10-06  Bruno Haible  <bruno@clisp.org>
88762
88763         * m4/fatal-signal.m4: New file.
88764         * m4/signalblocking.m4: New file, from GNU gettext.
88765
88766 2003-10-06  Bruno Haible  <bruno@clisp.org>
88767
88768         * lib/version-etc-2.h: Remove file.
88769         * lib/version-etc-2.c: Remove file.
88770
88771 2003-10-06  Bruno Haible  <bruno@clisp.org>
88772
88773         * lib/fatal-signal.h: New file, from GNU gettext.
88774         * lib/fatal-signal.c: New file, from GNU gettext.
88775
88776 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88777
88778         * README: Rework advice for preventing empty .o files.
88779         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88780         not <sys/types.h>.
88781
88782 2003-10-04  Karl Berry  <karl@gnu.org>
88783
88784         * lib/argp*: update from libc.
88785
88786 2003-10-04  Karl Berry  <karl@gnu.org>
88787
88788         * config/config.{guess,sub}: update from config.
88789
88790 2003-10-02  Bruno Haible  <bruno@clisp.org>
88791
88792         * modules/lchown (Include): Add lchown.h.
88793         * modules/time_r (Include): Use "..." syntax.
88794         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88795
88796 2003-10-01  Simon Josefsson  <jas@extundo.com>
88797
88798         * MODULES.html.sh (func_all_modules): Move gethostname from section
88799         'based on' to section 'lacking' POSIX:2001.
88800
88801 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88802
88803         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88804         to output mode on the same stream.
88805
88806 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88807
88808         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88809         Fix arg typo in previous patch.
88810
88811 2003-09-28  Jim Meyering  <jim@meyering.net>
88812
88813         * lib/error.c: Correct cpp indentation.
88814
88815 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88816
88817         * modules/free: New file.
88818
88819 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88820
88821         * m4/free.m4: New file.
88822
88823 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88824
88825         * lib/minmax.h (MIN, MAX)
88826         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
88827         Omit the special code that used __typeof__, since we worry that
88828         it could be more trouble than it's worth.  See:
88829         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
88830         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
88831
88832         * lib/free.c: New file.
88833
88834 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
88835
88836         Trivial fixes to Makefile.am parts of module listings.
88837         * modules/strstr: Append strstr.h to lib_SOURCES.
88838         * modules/strcase: Likewise, for strcase.h.
88839
88840 2003-09-27  Karl Berry  <karl@gnu.org>
88841
88842         * config/mkinstalldirs: update from automake.
88843
88844 2003-09-26  Paul Eggert  <eggert@twinsun.com>
88845
88846         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
88847         (error_tail): Do not loop, reallocating temporary buffer, since
88848         the output cannot contain more wide characters than the input
88849         contains bytes, the size must be big enough already.  This avoids
88850         one potential size overflow calculation.  Check for size overflow
88851         when calculating temporary buffer size.  Free temporary buffer
88852         when done, if it was allocated with malloc; this plugs a memory
88853         leak.  Remove casts from void * to pointers, that are no longer
88854         needed now that we're assuming C89 or better.
88855
88856         Merge error changes from glibc.
88857
88858         * lib/error.c, error.h: Update copyright notice header to match glibc.
88859         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
88860         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
88861         Disable cancellation while printing error.
88862         * lib/error.h: Prepend __ to parameter names.
88863
88864 2003-09-26  Jim Meyering  <jim@meyering.net>
88865
88866         * lib/error.c (error_tail): Move some declarations
88867         into inner scope where the local variables are used.
88868
88869 2003-09-26  Bruno Haible  <bruno@clisp.org>
88870
88871         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
88872         stpncpy().
88873         Don't define stpncpy through config.h; it's now done through stpncpy.h.
88874
88875 2003-09-26  Bruno Haible  <bruno@clisp.org>
88876
88877         * lib/stpncpy.h (gnu_stpncpy): New declaration.
88878         (stpncpy): Define as alias for gnu_stpncpy.
88879         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
88880
88881 2003-09-25  Simon Josefsson  <jas@extundo.com>
88882
88883         * lib/xgetdomainname.h: New file.
88884         * lib/xgetdomainname.c: New file.
88885
88886 2003-09-25  Simon Josefsson  <jas@extundo.com>
88887             Bruno Haible  <bruno@clisp.org>
88888
88889         * modules/getdomainname: New file.
88890         * modules/xgetdomainname: New file.
88891         * MODULES.html.sh (func_all_modules): Add getdomainname,
88892         xgetdomainname.
88893
88894 2003-09-25  Simon Josefsson  <jas@extundo.com>
88895             Bruno Haible  <bruno@clisp.org>
88896
88897         * m4/getdomainname.m4: New file.
88898
88899 2003-09-25  Simon Josefsson  <jas@extundo.com>
88900             Bruno Haible  <bruno@clisp.org>
88901
88902         * lib/getdomainname.h: New file.
88903         * lib/getdomainname.c: New file.
88904
88905 2003-09-25  Karl Berry  <karl@gnu.org>
88906
88907         * lib/argp-fmtstream.c, argp-help.c: update from libc.
88908
88909 2003-09-25  Karl Berry  <karl@gnu.org>
88910
88911         * config/install-sh: update from automake.
88912
88913 2003-09-25  Bruno Haible  <bruno@clisp.org>
88914
88915         * modules/version-etc-2: New file, from modules/version-etc with
88916         modifications.
88917         * MODULES.html.sh (func_all_modules): Add version-etc-2.
88918
88919 2003-09-25  Bruno Haible  <bruno@clisp.org>
88920
88921         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
88922         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
88923
88924 2003-09-24  Simon Josefsson  <jas@extundo.com>
88925
88926         * modules/xgethostname: Add xgethostname.h.
88927
88928 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88929
88930         * lib/linebuffer.c (freebuffer): Don't free the argument, just
88931         the buffer associated with the argument.  Bug reported by
88932         Simon Josefsson.
88933
88934 2003-09-24  Paul Eggert  <eggert@twinsun.com>
88935
88936         * README: Document assumptions that 'int' is at least 32 bits
88937         wide, that integer arithmetic is 2's complement without overflow,
88938         that there are no holes in integer values, that adding sizes of
88939         two nonoverlapping objects can't overflow, and that all-bits-zero
88940         yields scalar zero.  Fix spelling and capitalization typos.
88941
88942 2003-09-19  Karl Berry  <karl@gnu.org>
88943
88944         * lib/argp.h: update from libc.
88945
88946 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88947
88948         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88949         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88950         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88951
88952 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88953
88954         * gnulib-tool: Use "test -h", not "test -L", for portability
88955         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88956         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88957         (sed_extract_prog): Issue s commands one-by-one, rather than
88958         using \| in one s command.
88959
88960 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88961
88962         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88963         input error, instead of returning NULL the next time we are called
88964         (and therefore losing track of errno).
88965
88966 2003-09-16  Bruno Haible  <bruno@clisp.org>
88967
88968         * gnulib-tool (func_create_testdir): Warn about duplicated
88969         dependencies.
88970
88971 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88972
88973         * modules/argmatch, modules/fatal, modules/obstack,
88974         modules/xalloc, modules/xgethostname: Sort dependencies by
88975         importance, not alphabetically.
88976
88977 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88978
88979         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88980         fails, so that the caller gets the proper errno.
88981
88982         * lib/readutmp.c (read_utmp): Likewise.
88983         Check for fstat error.  Close stream and free storage
88984         when failing.
88985
88986 2003-09-14  Karl Berry  <karl@gnu.org>
88987
88988         * config/srclist.txt (strdup.c): disable for c89 changes.
88989
88990 2003-09-14  Jim Meyering  <jim@meyering.net>
88991
88992         * lib/getloadavg.c: Correct cpp indentation.
88993         * lib/strdup.c: Likewise.
88994         * lib/vasnprintf.c: Likewise.
88995
88996 2003-09-14  Bruno Haible  <bruno@clisp.org>
88997
88998         * modules/fwriteerror: New file.
88999         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89000
89001 2003-09-14  Bruno Haible  <bruno@clisp.org>
89002
89003         * lib/fwriteerror.h: New file.
89004         * lib/fwriteerror.c: New file.
89005
89006 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89007
89008         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89009         modules/xgethostname, modules/xalloc: Depend on exit.
89010
89011 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89012
89013         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89014
89015         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89016         and AC_MINIX, too, so that their extensions are available.
89017
89018         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89019         This macro has been superseded by gl_BACKUPFILE.
89020
89021         More patches to assume C89 or better.
89022
89023         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89024
89025         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89026         unconditionally.
89027         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89028         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89029         Include <string.h>, <stdlib.h> unconditionally.
89030         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89031         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89032         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89033         headers or for string.h.
89034         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89035         or strtoul.
89036
89037         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89038         headers.
89039         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89040         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89041         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89042         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89044         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89045         memcpy, memset.
89046         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89047         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89048         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89049         strtol.
89050         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89051         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89052         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89053         strtoul.
89054
89055 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89056
89057         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89058         * lib/obstack.c [!defined _LIBC]: Likewise.
89059         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89060         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89061         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89062
89063         More changes to assume C89 or better.
89064
89065         * lib/error.c (error_tail): Assume vprintf.
89066
89067         * lib/argmatch.c (getenv): Remove decl.
89068         * lib/progreloc.c (get_full_program_name): Define via prototype.
89069         * lib/setenv.c (clearenv): Likewise.
89070         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89071         needed.
89072         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89073         (malloc, memcpy): Remove decls.
89074         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89075         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89076         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89077         (memcpy): Remove macro.
89078         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89079         (__P): Remove.  All uses removed.
89080         (PTR): Remove.  All uses changed to void *.
89081         (CHAR_BIT, NULL): Remove.
89082         (spaces, zeros, memset_space, memset_zero)
89083         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89084         Remove.
89085         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89086         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89087         Define with prototype.
89088         Remove now-unnecessary prototype decl.
89089         (extra_args_spec): Assume ANSI C.  All uses changed.
89090         (extra_args_spec_iso): Remove.
89091         (my_strftime, emacs_strftimeu): Define via prototype.
89092         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89093         unconditionally.
89094         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89095         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89096         (strtoul, strtol): Remove decls.
89097         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89098         LONG_MAX): Remove.
89099         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89100         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89101         (LOCALE_PARAM_PROTO): New macro.
89102         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89103         (INTERNAL (strtol), strtol): Define with a prototype.
89104         (PARAMS): Remove.  All uses removed.
89105         * lib/tempname.c: Include <string.h> unconditionally.
89106         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89107         * lib/xgethostname.c (main): Define with a prototype.
89108         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89109         Include <stdlib.h> unconditionally.
89110         (calloc, malloc, realloc, free): Remove decls.
89111         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89112         Include <stdlib.h> unconditionally.  Sort include file names.
89113         (strtod): Remove.
89114         (xstrtod): Define with a prototype.
89115         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89116         (strtol, strtoul): Remove decls.
89117
89118 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89119
89120         More patches to assume C89 or better.
89121         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89122         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89123         string.h, memchr, STDC_HEADERS.
89124
89125 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89126
89127         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89128         Include <stdlib.h>, <string.h> unconditionally.
89129         Remove now-unnecessary cast to char *.
89130         * lib/strnlen.c: Include <string.h> unconditionally.
89131         * lib/yesno.c (yesno): Define with a prototype.
89132
89133 2003-09-11  Bruno Haible  <bruno@clisp.org>
89134
89135         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89136
89137 2003-09-10  Jim Meyering  <jim@meyering.net>
89138
89139         * lib/error.c: Correct indentation of cpp directives.
89140
89141 2003-09-10  Bruno Haible  <bruno@clisp.org>
89142
89143         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89144         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89145         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89146         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89147         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89148         <stdlib.h> and <string.h> checks.
89149         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89150         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89151
89152 2003-09-10  Bruno Haible  <bruno@clisp.org>
89153
89154         * lib/strcspn.c: Include <string.h> unconditionally.
89155         * lib/strpbrk.c: Include <string.h> unconditionally.
89156         * lib/strstr.c: Include <string.h> unconditionally.
89157         * lib/unicodeio.c: Include <string.h> unconditionally.
89158         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89159         * lib/unsetenv.c: Likewise.
89160         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89161         * lib/yesno.c: Include <stdlib.h> unconditionally.
89162         (rpmatch): Add prototype.
89163
89164 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89165
89166         More patches to assume C89 or better.
89167         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89168         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89169         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89170         or for string.h.
89171         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89172         stdlib.h.
89173         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89174         C headers.
89175         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89176         string.h.
89177         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89178         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89179         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89180         or for string.h.
89181         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89182         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89183         C headers.
89184         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89185         memcpy.
89186         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89187         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89188         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89189         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89190         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89191         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89192         string.h, free.
89193         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89194         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89195         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89196         C headers, or for string.h.
89197         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89198         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89199         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89200         headers, memory.h, stdlib.h, string.h, strings.h.
89201         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89202         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89203         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89204         strchr.
89205         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89206         headers, memory.h, string.h.
89207         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89208         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89209         free.
89210         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89211         headers.
89212         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89213         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89214         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89215         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89216         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89217
89218 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89219
89220         More K&R removal.
89221
89222         * lib/acosl.c (main): Use a prototype.
89223         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89224         tanl.c: Likewise.
89225
89226         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89227
89228         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89229         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89230         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89231         with a prototype.
89232         * lib/getopt.c (const): Remove macro.
89233         Include <string.h> unconditionally.
89234         (my_index): Remove; all uses changed to strchr.
89235         (strlen): Remove decl.
89236         (exchange): Remove forward decl; no longer needed.
89237         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89238         Define with prototype.
89239         * lib/getopt1.c (const): Remove macro.
89240         (getopt_long, getopt_long_only, main): Define with prototype.
89241
89242         * lib/getugroups.c: Include <string.h> unconditionally.
89243
89244         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89245         (getusershell, setusershell, endusershell, readname, main):
89246         Define with prototypes.
89247
89248         * lib/group-member.c: Include group-member.h first.
89249         Include <stdlib.h> unconditionally.
89250
89251         * lib/hard-locale.c: Include hard-locale.h first.
89252         Include <stdlib.h>, <string.h> unconditionally.
89253
89254         * lib/hash.c (free, malloc): Remove decls.
89255         Include <stdlib.h> unconditionally.
89256
89257         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89258         (getenv): Do not declare.
89259
89260         * lib/idcache.c: Include <string.h> unconditionally.
89261
89262         * lib/long-options.c: Include long-options.h first, to test interface.
89263         Include <stdlib.h> unconditionally.
89264
89265         * lib/makepath.c: Include makepath.h first, to test interface.
89266         Include <stdlib.h> and <string.h> unconditionally.
89267
89268         * lib/linebuffer.c: Include <stdlib.h>.
89269         (free): Remove decl.
89270
89271         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89272         stddef.h. rpl_malloc returns void *, not char *.
89273         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89274         prototype.
89275
89276         * lib/md5.h: Include <limits.h> unconditionally.
89277         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89278         (__P): Remove; all uses removed.
89279         * lib/md5.c: Include "md5.h" first.
89280         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89281         md5_buffer, md5_process_bytes, md5_process_block):
89282         Define with prototypes.
89283         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89284         * lib/sha.c: Include "sha.h" first.
89285         Include <stdlib.h>, <string.h> unconditionally.
89286
89287         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89288         * lib/memcmp.c (__ptr_t): Likewise.
89289         * lib/memrchr.c (__ptr_t): Likewise.
89290         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89291         Include <string.h> unconditionally.
89292         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89293         * lib/memchr.c: Include <stdlib.h> unconditionally.
89294         * lib/memchr.c (LONG_MAX): Remove.
89295         * lib/memrchr.c (LONG_MAX): Likewise.
89296         * lib/memchr.c (__memchr): Define via a prototype.
89297         * lib/memrchr.c (__memrchr): Likewise.
89298         * lib/memcmp.c (__P): Remove, and remove all uses.
89299         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89300         Remove forward decls; no longer needed.
89301         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89302         Use types required by C89 in prototype.
89303
89304         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89305         * lib/savedir.c: Likewise.
89306         * lib/mkdir.c (free): Remove decl.
89307         * lib/rmdir.c (rmdir): Define with a prototype.
89308         * lib/savedir.c: Include savedir.h first, to test interface.
89309
89310         * lib/mktime.c (STDC_HEADERS): Remove.
89311         Include <stdlib.h>, <string.h> unconditionally.
89312
89313         * lib/modechange.c: Include <stdlib.h> unconditionally.
89314         (malloc): Remove decl.
89315
89316         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89317         (free): Remove decl.
89318
89319         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89320         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89321         (This type really should be intptr_t, but that's a C99ism.)
89322         (_obstack_memcpy): Remove: all uses changed to memcpy.
89323         Include <string.h> unconditionally.
89324         (struct obstack): Assume __STDC__ for types of members
89325         chunkfun, freefun, extra_arg.
89326         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89327         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89328         obstack_begin, obstack_specify_allocation,
89329         obstack_specify_allocation_with_arg, obstack_chunkfun,
89330         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89331         Remove unprototyped decls and the macros that use them.
89332         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89333         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89334         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89335         (defined __STDC__ && __STDC__)]:
89336         Remove nonprototyped code.
89337         Include <stdlib.h> unconditionally.
89338         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89339         _obstack_allocated_p, _obstack_free, obstack_free,
89340         _obstack_memory_used, print_and_abort):
89341         Define using prototypes.
89342         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89343         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89344         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89345         obstack_next_free, obstack_object_size, obstack_room) [0]:
89346         Remove unused, unprototyped code.
89347
89348         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89349
89350         * lib/physmem.c (physmem_total, physmem_available, main): Define
89351         with prototypes.
89352
89353         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89354         (main): Define with a prototype.
89355
89356         * lib/posixver.c (getenv): Remove decl.
89357
89358         * lib/putenv.c (malloc): Returns void *, not char *.
89359         Include <string.h> unconditionally.
89360         (strchr, memcpy, NULL): Do not define.
89361
89362         * lib/readtokens.c: Include readtokens.h first, to test interface.
89363         Include <stdlib.h>, <string.h> unconditionally.
89364         (init_tokenbuffer): Define with a prototype.
89365
89366         * lib/regex.c (PARAMS): Remove.  All uses removed.
89367         All uses of _RE_ARGS removed, too.
89368         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89369         unconditionally.
89370         (bzero): Assume memset exists.
89371         (memcmp, memcpy, NULL): Remove.
89372         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89373         char, or assignments to local vars of type signed char.
89374         (init_syntax_once, PREFIX(extract_number_and_incr),
89375         PREFIX(print_partial_compiled_pattern),
89376         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89377         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89378         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89379         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89380         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89381         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89382         wcs_compile_range, byte_compile_range, truncate_wchar,
89383         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89384         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89385         count_mbs_length, wcs_re_match_2_internal,
89386         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89387         PREFIX(alt_match_null_string_p),
89388         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89389         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89390         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89391         now-unnecessary declaration, if any.
89392         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89393         regcomp, regexec):
89394         Remove now-unnecessary casts among pointer types.
89395         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89396
89397         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89398         (free): Remove decl.
89399
89400         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89401
89402         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89403         (free): Remove decl.
89404
89405         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89406         * lib/xgetcwd.c: Likewise.
89407
89408         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89409         (free): Remove decl.
89410
89411         * lib/strchrnul.c (strchrnul): Define with a prototype.
89412         Fix bug: c_in was not converted to char before searching.
89413
89414         The following changes are not K&R related:
89415
89416         * lib/group-member.h: Include <sys/types.h>, so that this file is
89417         self-contained.
89418         * lib/makepath.h: Likewise.
89419
89420         * lib/getusershell.c (readname, default_index, line_size, readname):
89421         Use size_t, not int, for sizes.
89422         (readname): If the size overflows, report an error instead of
89423         looping forever.
89424
89425 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89426
89427         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89428         libc.
89429
89430 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89431
89432         * README: New section: portability guidelines.
89433
89434 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89435
89436         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89437         C89 spec.
89438
89439 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89440
89441         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89442
89443 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89444
89445         Assume C89 or better; remove K&R cruft.
89446         A few of these changes were first proposed by Derek Robert Price
89447         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89448
89449         * lib/addext.c: Include <string.h> unconditionally.
89450         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89451         Don't declare getenv or malloc.
89452
89453         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89454         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89455         (NULL): Remove.
89456         (find_stack_direction, alloca): Use prototypes.
89457
89458         * lib/atexit.c (atexit): Define using a prototype.
89459
89460         * lib/basename.c, dirname.c, stripslash.c:
89461         Include <string.h> unconditionally.
89462
89463         * lib/bcopy.c: Include <stddef.h>.
89464         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89465
89466         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89467
89468         * lib/error.h (error, error_at_line, error_print_progname)
89469         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89470         * lib/error.c: Include error.h first, to check interface.
89471         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89472         (VA_START): Remove; all uses changeed to va_start.
89473         (exit, strerror): Remove decls.
89474         (error_print_progname): Prototype uncondionally.
89475         Don't include <errno.h>; no longer needed.
89476         (private_strerror): Remove.
89477         (error_tail): Always define.
89478         (error, error_at_line): Assume C89 or better; always use prototypes.
89479         * lib/fatal.c: Include "fatal.h" first, to test interface.
89480         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89481         (VA_START): Remove; all uses changed to va_start.
89482         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89483         this case.
89484         (exit): Remove decl.
89485         (fatal): Prototype unconditionally.  Assume va_start works.
89486         Abort at end, to pacify gcc.
89487
89488         * lib/euidaccess.c (main): Define with a prototype.
89489
89490         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89491
89492         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89493
89494         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89495         prototypes.
89496         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89497         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89498         (getenv): Remove decl.
89499         (fnmatch): Define using a prototype.
89500         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89501         (FCT): Define using a prototype.
89502
89503         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89504
89505         * lib/gethostname.c: Include <stddef.h>.
89506         (gethostname): Define with prototype.  Length is size_t, not int.
89507
89508 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89509
89510         Assume C89 or better; remove K&R cruft.
89511         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89512         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89513         string.h, getenv, malloc.
89514         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89515         headers.
89516         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89517         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89518         do not check for strerror.
89519         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89520         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89521         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89522         do not check for doprnt or vprintf.
89523         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89524         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89525
89526 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89527
89528         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89529         getversion.c should have been removed then, but was accidentally
89530         preserved.
89531
89532         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89533         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89534
89535 2003-09-08  Karl Berry  <karl@gnu.org>
89536
89537         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89538                 config, forget about prep.
89539
89540         * config/depcomp, missing: update from automake.
89541
89542 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89543
89544         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89545         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89546
89547 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89548
89549         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89550         copy_tm_result.  Bug reported by Simon Josefsson in
89551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89552
89553 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89554
89555         * m4/time_r.m4: New file.
89556         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89557         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89558         is. Check for timegm declaration.
89559         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89560         Do not check for gmtime_r.
89561         Replace mktime if __mktime_internal does not exist and if mktime
89562         hasn't been replaced already.
89563
89564 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89565
89566         * lib/time_r.c, lib/time_r.h: New files.
89567
89568         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89569         __localtime_r.
89570         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89571         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89572
89573         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89574         __gmtime_r.
89575         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89576         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89577         Include <time_r.h>.
89578
89579         * lib/timegm.c: Switch to glibc implementation, with the following
89580         changes:
89581         [defined HAVE_CONFIG_H]: Include <config.h>.
89582         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89583         (__mktime_internal) [!defined _LIBC]: New decl.
89584         (__gmtime_r) [!defined _LIBC]: New macro and function.
89585         (timegm): Use a prototype, since gnulib assumes C89.
89586         Do not bother declaring tmp to be const, as it's not really usefu.
89587         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89588         (timegm): Declare only if HAVE_DECL_TIMEGM.
89589
89590 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89591
89592         * MODULES.html.sh (func_all_modules): Add time_r.
89593         * modules/time_r: New file.
89594         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89595         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89596
89597 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89598
89599         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89600         Bug reported by Lute Kamstra in
89601         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89602
89603         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89604         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89605         course with correspondingly smaller numbers for tomorrow and
89606         yesterday.  From Tadayoshi Funaba.  Originally installed into
89607         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89608         coreutils merge?).
89609
89610 2003-08-31  Simon Josefsson  <jas@extundo.com>
89611
89612         * modules/timegm: New file.
89613         * MODULES.html.sh (func_all_modules): Add timegm.
89614
89615 2003-08-31  Simon Josefsson  <jas@extundo.com>
89616
89617         * m4/timegm.m4: New file.
89618
89619 2003-08-31  Simon Josefsson  <jas@extundo.com>
89620
89621         * lib/timegm.h: New file.
89622         * lib/timegm.c: New file.  Based on
89623         wget-1.8.2/src/http.c:mktime_from_utc.
89624
89625 2003-08-31  Karl Berry  <karl@gnu.org>
89626
89627         * lib/argp.h: update from libc.
89628
89629 2003-08-28  Bruno Haible  <bruno@clisp.org>
89630
89631         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89632         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89633         followed by '#define fnmatch fnmatch_posix' gives an error.
89634
89635 2003-08-28  Bruno Haible  <bruno@clisp.org>
89636
89637         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89638         warning on QNX, which defines O_BINARY to 000000.
89639
89640 2003-08-27  Jim Meyering  <jim@meyering.net>
89641
89642         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89643         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89644         would fail after 32.  Reported by Danny Levinson.  Details here:
89645         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89646
89647 2003-08-24  Bruno Haible  <bruno@clisp.org>
89648
89649         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89650         MSVC7 <stdio.h> is included later.
89651
89652 2003-08-22  Simon Josefsson  <jas@extundo.com>
89653
89654         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89655
89656 2003-08-20  Karl Berry  <karl@gnu.org>
89657
89658         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89659
89660 2003-08-20  Bruno Haible  <bruno@clisp.org>
89661
89662         * modules/progname: New file.
89663         * MODULES.html.sh (func_all_modules): Add progname.
89664
89665 2003-08-20  Bruno Haible  <bruno@clisp.org>
89666
89667         * lib/progname.h: New file, from GNU gettext.
89668         * lib/progname.c: New file, from GNU gettext.
89669         * lib/progreloc.c: New file, from GNU gettext.
89670
89671 2003-08-19  Jim Meyering  <jim@meyering.net>
89672
89673         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89674         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89675
89676 2003-08-19  Bruno Haible  <bruno@clisp.org>
89677
89678         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89679         more.
89680
89681 2003-08-19  Bruno Haible  <bruno@clisp.org>
89682
89683         * lib/xstrdup.c: Assume <string.h> exists.
89684
89685 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89686
89687         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89688         in makefile rules.
89689
89690 2003-08-18  Jim Meyering  <jim@meyering.net>
89691
89692         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89693         * m4/lib-ld.m4: Likewise.
89694
89695 2003-08-18  Jim Meyering  <jim@meyering.net>
89696
89697         * lib/setenv.h: Indent nested cpp directive.
89698         * lib/vasnprintf.c: Remove trailing blanks.
89699
89700 2003-08-17  Simon Josefsson  <jas@extundo.com>
89701
89702         * modules/xstrndup: New file.
89703         * MODULES.html.sh (func_all_modules): Add xstrndup.
89704
89705 2003-08-17  Simon Josefsson  <jas@extundo.com>
89706
89707         * modules/argp: Fix autoconf macro name. Add more dependencies.
89708
89709 2003-08-17  Simon Josefsson  <jas@extundo.com>
89710
89711         * m4/xstrndup.m4: New file.
89712
89713 2003-08-17  Simon Josefsson  <jas@extundo.com>
89714
89715         * m4/argp.m4: New file.
89716
89717 2003-08-17  Simon Josefsson  <jas@extundo.com>
89718             Bruno Haible  <bruno@clisp.org>
89719
89720         * lib/xstrndup.h: New file.
89721         * lib/xstrndup.c: New file.
89722
89723 2003-08-17  Bruno Haible  <bruno@clisp.org>
89724
89725         * modules/strndup (Files, Include): Add lib/strndup.h.
89726
89727 2003-08-17  Bruno Haible  <bruno@clisp.org>
89728
89729         * modules/euidaccess (Files): Add lib/euidaccess.h.
89730
89731 2003-08-17  Bruno Haible  <bruno@clisp.org>
89732
89733         * lib/strndup.h: New file.
89734
89735 2003-08-17  Bruno Haible  <bruno@clisp.org>
89736
89737         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89738         like AC_GNU_SOURCE.
89739         * modules/extensions (configure.ac): Comment out the invocation of
89740         gl_USE_SYSTEM_EXTENSIONS.
89741
89742 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89743
89744         Merges from coreutils, etc.
89745         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89746         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89747         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89748         fixing a typo.
89749         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89750         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89751
89752 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89753
89754         Document merge from coreutils.
89755         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89756         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89757         * modules/utime: Add m4/utimes-null.m4.
89758
89759 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89760
89761         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89762         space, undoing this 2003-08-12 change:
89763         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89764
89765 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89766
89767         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89768         strtoul.c from libc, undoing this 2003-08-12 change:
89769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89770
89771 2003-08-16  Jim Meyering  <jim@meyering.net>
89772
89773         Merges from coreutils.
89774         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89775         prefix.  Adjust cache variables similarly.  Create 500 rather than
89776         just 300 files, to exercise bug on Darwin6.5, too.
89777         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89778         $missing_dir.
89779         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89780         AM_SYS_POSIX_TERMIOS.
89781         Reported by mkc@mathdogs.com.
89782         Also change use of $am_cv_sys_posix_termios
89783         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89784         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89785         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89786         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89787         in /proc/mounts until it finds one with matching device number.  This
89788         is unnecessary when the FILE argument *is* a mount point.  No stat call
89789         is necessary in that case.  So, disable the statvfs-testing code on
89790         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89791         as RedHat bug# 84846.
89792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89793         to 1MB, so as not to render systems with no stack size limit (e.g.,
89794         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89795         Include <unistd.h>.  On some systems,
89796         it is required for the definition of _SC_PAGESIZE.
89797
89798 2003-08-16  Jim Meyering  <jim@meyering.net>
89799
89800         Merge from coreutils.
89801         * lib/xstrtoimax.c: #else #if -> #elif.
89802         * lib/xstrtoumax.c: Likewise.
89803
89804 2003-08-16  Jim Meyering  <jim@meyering.net>
89805
89806         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89807         * m4/utimes.m4: Removed.
89808         * m4/utimes-null.m4: Renamed from utimes.m4.
89809
89810         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89811         to 1MB, so as not to render systems with no stack size limit (e.g.,
89812         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89813         Include <unistd.h>.  On some systems,
89814         it is required for the definition of _SC_PAGESIZE.
89815
89816 2003-08-16  Jim Meyering  <jim@meyering.net>
89817         and Paul Eggert  <eggert@cs.ucla.edu>
89818
89819         Merges from coreutils, etc.
89820
89821         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
89822         using the latest version from cvs.  This avoids problems with #line
89823         directives using a vendor (Sun) compiler.
89824         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
89825         Don't set GETGROUPS_LIB here; now it's
89826         done via getgroups.m4's wrapper function.
89827         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
89828         rather than just in sh-util/configure.in, so that the
89829         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
89830         same.
89831         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
89832         AC_FUNC_GETLOADAVG where to find getloadavg.c.
89833         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
89834         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
89835         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
89836         Remove code that is now done by the newly-required macros.
89837         Append $(EXEEXT) to DF_PROG.
89838         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
89839         Do not invoke or require the following here,
89840         since prereq.m4 or some gnulib .m4 now does this for us:
89841         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
89842         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
89843         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
89844         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
89845         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
89846         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
89847         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
89848         AC_FUNC_OBSTACK.
89849         Do not replace the following functions, as this is now the job
89850         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
89851         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
89852         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
89853         atexit getpass, strdup, getpagesize.
89854         Replace 'raise'.
89855         Do not check for the following functions, as this is now the job
89856         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
89857         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
89858         setregid.
89859         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
89860         Check for sys/sysctl.h.
89861         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
89862         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
89863         of checking for ssize_t ourselves.
89864
89865         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
89866         Require every macro that gnulib/modules/* suggests for us.
89867         (jm_PREREQ_ADDEXT): New macro.
89868         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
89869         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
89870
89871         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
89872         (gl_PHYSMEM): Use it.
89873         Also check for `table' function.
89874         Check for new headers and functions.
89875         Add check for sys/sysmp.h.
89876         With suggestions from Kaveh Ghazi.
89877         Ignore headers that are present but cannot be compiled.  This
89878         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
89879         C 5.4.
89880
89881 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89882
89883         Document merge from coreutils.
89884         * modules/userspec: Depend on posixver.
89885         * modules/strftime: Depend on tzset.
89886
89887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89888
89889         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
89890         rather than tab, after '#' in shell-script copyright notices.
89891         Suggested by Bruno Haible.
89892
89893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
89894
89895         * config/srclist-update: Use three spaces, rather than tab, after '#'
89896         in shell-script copyright notices.  Suggested by Bruno Haible.
89897         Remove unnecessary parenthesization in regular expression.
89898
89899 2003-08-15  Jim Meyering  <jim@meyering.net>
89900
89901         Merge from coreutils.
89902         * lib/xgethostname.c: Include <stdlib.h>.
89903         (xghostname): Don't exit for anything other than memory-related
89904         failure; just return NULL.
89905         * lib/userspec.c: Include "posixver.h".
89906         (parse_user_spec): Accept `.' as a separator only
89907         in pre-POSIX-200112 mode.
89908         * lib/strtoimax.c: Use #elif rather than #else #if.
89909         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
89910         Remove function, now that we can rely on a working tzset function.
89911         [!_LIBC]: Ensure that the required autoconf test has been run.
89912         [!defined _NL_CURRENT && HAVE_STRFTIME]:
89913         Use underlying_strftime for %r.
89914         * lib/sha.c: Merge in some clean-up and optimization changes from
89915         glibc.
89916         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
89917         Ensure that it is a multiple of 64.
89918         Rearrange loop exit tests so as to avoid performing an
89919         additional fread after encountering an error or EOF.
89920         * lib/realloc.c: Update copyright date.
89921
89922 2003-08-15  Jim Meyering  <jim@meyering.net>
89923         and Paul Eggert  <eggert@twinsun.com>
89924
89925         Merge from coreutils.
89926         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
89927         member but strut utmpx does not.  Needed for AIX 4.3.3.
89928         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
89929
89930 2003-08-15  Jim Meyering  <jim@meyering.net>
89931         and Paul Eggert  <eggert@cs.ucla.edu>
89932
89933         Merges from coreutils, etc.
89934         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
89935         Require gl_FUNC_TZSET_CLOBBER.
89936         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
89937         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
89938         members.
89939
89940 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89941
89942         Help the merge from coreutils.
89943         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
89944         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
89945         * m4/tzset.m4: Use it too.
89946
89947 2003-08-14  Paul Eggert  <eggert@twinsun.com>
89948
89949         * modules/tzset: New file.
89950
89951 2003-08-14  Jim Meyering  <jim@meyering.net>
89952
89953         Merges from coreutils.
89954         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89955         variable names, rather than @FNMATCH_H@.
89956         * modules/alloca: Likewise for $(ALLOCA_H).
89957
89958         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89959         the three copies of the literal target, `fnmatch.h'.
89960         * modules/alloca (alloca.h): Likewise.
89961
89962 2003-08-14  Jim Meyering  <jim@meyering.net>
89963
89964         Merge from coreutils.
89965         * m4/tzset.m4: New file.
89966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89967         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89968         otherwise, AIX 5.1 systems would end up using the latter.
89969         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89970         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89971         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89972         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89973
89974 2003-08-14  Jim Meyering  <jim@meyering.net>
89975
89976         Merge from coreutils.
89977         * lib/obstack.h: Whitespace changes.
89978         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89979         and xcalloc return values.
89980         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89981         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89982         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89983         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89984         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89985         error from mntctl.
89986         Use mntctl's return value to drive the entry-processing loop, since
89987         we can't rely on the value of the vmt_length member in the last
89988         entry.  On some systems doing so could result in exhausting
89989         virtual memory.  Based in part on a patch from Mike Jetzer.
89990
89991 2003-08-14  Jim Meyering  <jim@meyering.net>
89992         and Paul Eggert  <eggert@twinsun.com>
89993
89994         Merges from coreutils, plus other fixes.
89995         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89996         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89997         for credits and details.  Thanks to Kaveh Ghazi for helping
89998         to keep these files in sync.
89999         (ARRAY_SIZE): Define it.
90000         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90001         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90002         (memcasecmp): Don't assume size_t fits in unsigned int.
90003         Remove casts and duplicate code.
90004         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90005         (memcpy): Remove definition.
90006         Merge in some clean-up and optimization changes from glibc.
90007         [BLOCKSIZE]: Move definition to top of file.
90008         Ensure that it is a multiple of 64.
90009         Rearrange loop exit tests so as to avoid performing an
90010         additional fread after encountering an error or EOF.
90011         * lib/md5.h (md5_uintptr): Define.
90012         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90013         return to the initial working directory.  Preserve errno
90014         for caller.
90015         * lib/idcache.c: Include "xalloc.h".
90016         (xmalloc, xrealloc): Remove decls.
90017         (getuser): Remove casts no longer required in C89.
90018         * lib/human.c: Include stdio.h, for sprintf.
90019         * lib/group-member.c: Include "xalloc.h".
90020         (xmalloc, xrealloc): Remove decls.
90021         (get_group_info): Remove casts no longer required in C89.
90022         * lib/getusershell.c (readname): Remove casts no longer required in
90023         C89.
90024         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90025         * lib/getline.c: Whitespace fix, from coreutils.
90026
90027 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90028
90029         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90030         Check for isascii.
90031
90032         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90033         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90034         Undo previous (whitespace-only) change.
90035
90036 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90037
90038         * lib/exclude.c: Include <ctype.h>
90039         (IN_CTYPE_DOMAIN): New macro.
90040         (is_space): New fn.
90041         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90042         and empty lines.
90043
90044         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90045         Undo previous (whitespace-only) change.
90046
90047 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90048
90049         * config/srclist-update: Change update back to the old behavior,
90050         leaving whitespace alone.  Use one 'sed' command rather than a
90051         pipeline.
90052         (fixlicense): Now a variable, not a function.
90053         (remove_trailing_blanks): Remove.
90054         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90055         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90056         Undo previous (whitespace-only) change.
90057
90058 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90059
90060         Merge from coreutils.
90061         * modules/euidaccess: Add lib_SOURCES, include for new
90062         file euidaccess.h
90063
90064 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90065
90066         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90067         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90068         Normalize leading white space and remove trailing white space.
90069
90070         Merge from coreutils
90071         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90072
90073         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90074         0.12.1.  These files are now being upgraded automatically by
90075         ../config/srclist-update.
90076
90077 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90078
90079         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90080         Normalize leading white space and remove trailing white space.
90081         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90082         notice, as per ../config/srclist-update.
90083
90084         Merge from coreutils.
90085         * lib/euidaccess.h: New file.
90086         * lib/euidaccess.c: Include it.
90087         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90088         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90089         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90090
90091 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90092
90093         * config/srclist-update: Add copyright notice.
90094         (remove_id_lines, remove_trailing_blanks): New constants.
90095         (fixfile): Use them to normalize spacing a bit in copied files.
90096         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90097         Normalize leading white space and remove trailing white space.
90098
90099         * config/texinfo.tex: Sync with texinfo.
90100
90101         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90102         strtoul.c from libc, to merge coreutils whitespace changes.
90103
90104         * config/srclist.txt: Get the following m4 files from gettext:
90105         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90106         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90107         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90108         wint_t.m4.
90109
90110 2003-08-12  Karl Berry  <karl@gnu.org>
90111
90112         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90113         been made.
90114
90115 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90116
90117         * modules/gnu-source, m4/gnu-source.m4:
90118         Remove; we're assuming Autoconf 2.54 or later now.
90119         Suggested by Bruno Haible.
90120         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90121
90122 2003-08-11  Bruno Haible  <bruno@clisp.org>
90123
90124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90125
90126 2003-08-11  Bruno Haible  <bruno@clisp.org>
90127
90128         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90129         (vasnprintf): Use it instead of wcslen.
90130
90131 2003-08-11  Bruno Haible  <bruno@clisp.org>
90132
90133         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90134         value to ensure that _Bool promotes to int. Use #define for _Bool when
90135         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90136
90137 2003-08-10  Karl Berry  <karl@gnu.org>
90138
90139         * lib/regex.h: update from libc (whitespace fix).
90140
90141 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90142
90143         Merge some files from coreutils.  These changes were
90144         originally made by Jim Meyering.
90145         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90146         many older Unixes require this.
90147         * lib/alloca.c (alloca): Remove cast to argument of free;
90148         no longer needed in C89.
90149         * lib/alloca_.h, regex.h: Fix white space to match
90150         what GNU indent does.
90151
90152 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90153
90154         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90155         apparently Emacs's Unicode mode got confused before my 2003-08-05
90156         checkin.
90157
90158 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90159
90160         * m4/extensions.m4: New file.
90161         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90162         Require gl_USE_SYSTEM_EXTENSIONS.
90163         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90164         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90165
90166 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90167
90168         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90169         * modules/extensions, modules/gnu-source: New files.
90170         * modules/timespec, modules/unlocked-io: Depend on extensions.
90171
90172 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90173
90174         * modules/restrict: New file.
90175         * MODULES.html.sh (func_all_modules): Add restrict.
90176         * modules/regex: Depend on restrict.
90177
90178 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90179
90180         * m4/restrict.m4: New file.
90181         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90182
90183 2003-08-07  Bruno Haible  <bruno@clisp.org>
90184
90185         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90186         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90187
90188 2003-08-07  Bruno Haible  <bruno@clisp.org>
90189
90190         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90191         makes the module 'getndelim2' compatible with the module 'getline'.
90192
90193 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90194
90195         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90196         byte with "\201" to avoid glitches when editing that source file
90197         with multi-gnome-terminal.
90198
90199 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90200
90201         * lib/bumpalloc.h: Remove.
90202
90203 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90204
90205         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90206         * modules/bumpalloc: Remove.
90207
90208 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90209
90210         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90211         GNU coding style.
90212
90213         Merge from coreutils.
90214         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90215         1. From glibc.
90216         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90217         from Karl Berry, implemented by Jim Meyering.
90218         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90219         from Dmitry V. Levin.
90220         Remove anachronistic cast of xrealloc.
90221         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90222         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90223         type. Otherwise, it wouldn't compile with at least /bin/cc on
90224         ymp-cray-unicos9.0.2.X.
90225         Combine two mostly-identical uses of alloca into one.
90226         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90227
90228 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90229
90230         [From Emacs.]
90231
90232         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90233         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90234         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90235         obsolete NLIST_NAME_UNION.
90236         [__GNU__]: Undef BSD and FSCALE.
90237         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90238
90239 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90240
90241         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90242         an enum type, so that it's guaranteed to promote to int.  See:
90243         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90244
90245 2003-08-03  Karl Berry  <karl@gnu.org>
90246
90247         * config/depcomp: update from automake.
90248
90249 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90250
90251         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90252         (strerror): Don't assume that a printable int fits in 14 bytes.
90253
90254 2003-07-31  Bruno Haible  <bruno@clisp.org>
90255
90256         * modules/getpass-gnu: New file.
90257         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90258
90259 2003-07-31  Bruno Haible  <bruno@clisp.org>
90260
90261         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90262
90263 2003-07-24  Karl Berry  <karl@gnu.org>
90264
90265         * config/missing: update from automake.
90266
90267 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90268             Bruno Haible  <bruno@clisp.org>
90269
90270         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90271         * lib/getline.c (getline, getdelim): Likewise.
90272         Remove _GNU_SOURCE define; now it's defined in config.h through
90273         m4/getline.m4.
90274
90275 2003-07-23  Karl Berry  <karl@gnu.org>
90276
90277         * config/config.sub: update from prep.
90278
90279 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90280
90281         * modules/xalloc (Depends-on): Add exitfail.
90282         * modules/xmemcoll: Likewise.
90283
90284 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90285
90286         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90287         over-parenthesization in macros.
90288
90289         Sync with coreutils.
90290
90291         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90292         required by C99.
90293
90294         Use `exit_failure' for xalloc and xmemcoll instead of their own
90295         private exit-failure variables.
90296         * lib/xalloc.h (xalloc_exit_failure): Remove.
90297         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90298         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90299         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90300         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90301         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90302
90303 2003-07-20  Jim Meyering  <jim@meyering.net>
90304
90305         * modules/closeout (Depends-on): Add exitfail.
90306         Suggestion from Bruno Haible.
90307
90308 2003-07-19  Karl Berry  <karl@gnu.org>
90309
90310         * config/config.sub: update from prep.
90311
90312 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90313
90314         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90315         Remove.
90316         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90317         to test that it can stand by itself.  Include "exitfail.h".
90318         Clients should set exit_failure instead.
90319         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90320
90321 2003-07-18  Bruno Haible  <bruno@clisp.org>
90322
90323         * modules/getndelim2: New file.
90324         * modules/getline: Share files with module getndelim2.
90325         * modules/getnline: Depend on getndelim2 instead of sharing files with
90326         it. Add getnline.c to lib_SOURCES.
90327         * MODULES.html.sh (func_all_modules): Add getndelim2.
90328
90329 2003-07-18  Bruno Haible  <bruno@clisp.org>
90330
90331         * m4/getndelim2.m4: New file.
90332         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90333         invoke gl_PREREQ_GETNDELIM2.
90334         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90335         gl_PREREQ_GETNDELIM2.
90336         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90337         gl_GETNDELIM2.
90338
90339 2003-07-18  Bruno Haible  <bruno@clisp.org>
90340
90341         * lib/getndelim2.h: New file.
90342         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90343         getndelim2.h.
90344         (getndelim2): Make non-static. Change return type to ssize_t.
90345         * lib/getline.h: Change argument names.
90346         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90347         * lib/getnline.c: Include getndelim2.h.
90348
90349 2003-07-18  Andreas Schwab  <schwab@suse.de>
90350
90351         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90352
90353 2003-07-17  Karl Berry  <karl@gnu.org>
90354
90355         * config/config.sub: update from prep.
90356
90357 2003-07-17  Bruno Haible  <bruno@clisp.org>
90358
90359         * modules/getnline: New file.
90360         * modules/getline: Add lib/getndelim2.c to source file list.
90361         * MODULES.html.sh (func_all_modules): Add getnline.
90362
90363 2003-07-17  Bruno Haible  <bruno@clisp.org>
90364
90365         * m4/getnline.m4: New file.
90366
90367 2003-07-17  Bruno Haible  <bruno@clisp.org>
90368
90369         * m4/Makefile.am.in: Remove file.
90370         * m4/Makefile.am: Remove file.
90371         * m4/Makefile.in: Remove file.
90372
90373 2003-07-17  Bruno Haible  <bruno@clisp.org>
90374
90375         * lib/getnline.h: New file.
90376         * lib/getnline.c: New file.
90377         * lib/getndelim2.c: New file, extracted from getline.c.
90378         (getndelim2): Renamed from getdelim2, with added nmax argument.
90379         * lib/getline.c: Include getndelim2.c.
90380         (getdelim2): Moved out to getndelim2.c.
90381         (getline, getdelim): Update.
90382
90383 2003-07-17  Bruno Haible  <bruno@clisp.org>
90384
90385         * lib/Makefile.am: Remove file.
90386         * lib/Makefile.in: Remove file.
90387
90388 2003-07-17  Bruno Haible  <bruno@clisp.org>
90389
90390         * configure.in: Remove file.
90391         * Makefile.in: Remove file.
90392
90393 2003-07-17  Bruno Haible  <bruno@clisp.org>
90394
90395         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90396
90397 2003-07-16  Karl Berry  <karl@gnu.org>
90398
90399         * config/srclist-update: was running fixlicense twice, which caused
90400                 texinfo.tex to be nullified for some reason.  Simplify,
90401                 $gplsrc is no longer needed as far as I can see?
90402
90403 2003-07-16  Jim Meyering  <jim@meyering.net>
90404
90405         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90406
90407 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90408
90409         * config/srclist.txt: Get the following files from gettext-runtime/intl
90410         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90411         ref-del.sin.  From Bruno Haible.
90412         * config/srclist-update (fixfile): Change grep pattern again, since the
90413         previous fix didn't work (there was another trailing $).  Use
90414         '[$]' to escape the $s.
90415
90416 2003-07-15  Karl Berry  <karl@gnu.org>
90417
90418         * lib/vasnprintf.c: update from gettext.
90419
90420 2003-07-15  Karl Berry  <karl@gnu.org>
90421
90422         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90423         gets expanded when surrounded by '$'.
90424
90425 2003-07-15  Jim Meyering  <jim@meyering.net>
90426
90427         * modules/save-cwd: Don't depend on error.  From Derek Price.
90428
90429 2003-07-15  Jim Meyering  <jim@meyering.net>
90430
90431         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90432
90433 2003-07-14  Simon Josefsson  <jas@extundo.com>
90434
90435         * modules/mempcpy: New file.
90436         * MODULES.html.sh (func_all_modules): Add mempcpy.
90437
90438 2003-07-14  Simon Josefsson  <jas@extundo.com>
90439
90440         * m4/mempcpy.m4: New file.
90441
90442 2003-07-14  Simon Josefsson  <jas@extundo.com>
90443
90444         * lib/mempcpy.h: New file.
90445         * lib/mempcpy.c: New file.
90446
90447 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90448
90449         * modules/getdate, modules/posixtm: Depend on mktime.
90450
90451 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90452
90453         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90454         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90455         unicodeio.c, unicodeio.h, unlocked-io.h:
90456         Switch from LGPL to GPL.
90457
90458 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90459
90460         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90461         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90462         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90463         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90464         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90465         updated automatically by ../config/srclist-update.  This changes
90466         their license from LPGL to GPL.
90467
90468 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90469
90470         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90471         assumed to refer to the root of the most recent stable gettext version.
90472         * config/srclistvars.sh: Add defaults for eggert.
90473         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90474         Match "This program" as well as "The program".  This is needed
90475         for gettext.
90476
90477 2003-07-14  Jim Meyering  <jim@meyering.net>
90478
90479         Don't emit diagnostics.  Let callers do that.
90480         * lib/save-cwd.c: Don't include "error.h".
90481         (save_cwd): Don't call error.  Ensure that errno is valid
90482         when returning nonzero.
90483
90484         * lib/save-cwd.h (restore_cwd): Update prototype.
90485         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90486         Simplify.  Don't call error upon failure.  Let callers do that.
90487         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90488         when auditing is enabled.  But don't bother updating the #if.
90489
90490 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90491
90492         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90493         it breaks C++ compilation.
90494         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90495
90496 2003-07-10  Simon Josefsson  <jas@extundo.com>
90497
90498         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90499
90500 2003-07-10  Jim Meyering  <jim@meyering.net>
90501
90502         * m4/clock_time.m4: Remove trailing blank.
90503         * m4/intmax_t.m4: Likewise.
90504
90505 2003-07-10  Jim Meyering  <jim@meyering.net>
90506
90507         * lib/vasnprintf.c: Remove trailing blanks.
90508         Make cpp indentation consistent.
90509
90510 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90511
90512         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90513         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90514         Switch from LGPL to GPL.
90515
90516 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90517
90518         * config/srclist.txt: Sort sublists.  Add
90519         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90520         that differ from gnulib for one reason or another; we'd like this list
90521         to be smaller but for now let's document what we have.
90522
90523 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90524
90525         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90526         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90527         and sweeter "eval x=$x".
90528         * config/srclist.txt: Get lib/argp* from glibc.
90529
90530 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90531
90532         * lib/mktime.c: Fix some boundary cases and remove need for floating
90533         point.
90534
90535         Issue a compile-time diagnostic if time_t is floating point, or if
90536         two's complement arithmetic is not in effect, or if arithmetic
90537         right shift does not propagate the sign.  These assumptions were
90538         all in the original code but they weren't checked.
90539
90540         (TIME_T_MIDPOINT, verify): New macros.
90541         (__isleap): Remove; it has integer overflow problems.
90542         (leapyear): New function, without those problems.
90543         (ydhms_tm_diff): Remove; splitting into two parts.
90544         (ydhms_diff): New function, containing the arithmetic part of
90545         the old ydhms_tm_diff function.  Issue a compile-time
90546         diagnostic if we are not using C99 integer division.
90547         Avoid casts when possible.
90548         (guess_time_tm): New function, containing the checking part of
90549         the old ydhms_tm_diff function.  Return the new value, rather than
90550         the difference between it and the old.  Accept a new argument T
90551         so that *T specifies the old value.  Check for overflow in the result.
90552
90553         (__mktime_internal): Use a time_t offset, not a long int offset.
90554         This undoes the 2003-06-04 change, which is no longer needed now
90555         that we have better overflow checking.
90556         (localtime_offset): Likewise.
90557
90558         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90559         and long are 64-bit but int is only 32-bit.
90560         (ydhms_diff): Use long int to store year1 and yday1.
90561         Issue a compile-time diagnostic if long int is not wide enough.
90562
90563         (__mktime_internal): Use long int to store adjusted year and yday.
90564         Use plain C rather than preprocessor commands, if that doesn't
90565         affect efficiency.
90566         Check for overflow (and try to repair) after each probe
90567         rather than checking only at the very end.  This avoids some bugs
90568         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90569         does not equal GMT offset at maximum time).
90570         Use integer to check for overflow rather than floating point; this
90571         is more portable to non-IEEE hosts, and is a tad faster.
90572         When we detect that we are oscillating between two values,
90573         don't check whether tm_isdst has the requested value, since
90574         we already know the answer.  When tm_isdst has the wrong value,
90575         use a different heuristic to find the right one, based on the
90576         extreme values actually observed in practice in tz2003a,
90577         rather than the (overly optimistic) "previous 3 calendar quarters".
90578
90579         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90580         "T const" to accommodate glibc style.
90581         (check_result): Use less-confusing report format.  "long" -> "long int.
90582         (main): Likewise.
90583         Don't loop if the iteration overflows time_t.
90584         Allow a negative step in the iteration.
90585
90586 2003-07-06  Karl Berry  <karl@gnu.org>
90587
90588         * config/depcomp: update from automake.
90589         * config/config.sub: update from prep.
90590
90591 2003-07-03  Karl Berry  <karl@gnu.org>
90592
90593         * config/config.guess: update from prep.
90594
90595 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90596
90597         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90598         xreadlink.c now includes it unconditionally.
90599
90600 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90601
90602         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90603         having it depend on HAVE_SYS_TYPES_H.
90604
90605 2003-07-01  Bruno Haible  <bruno@clisp.org>
90606
90607         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90608         <sys/types.h> should be sufficient.
90609         Reported by Paul Eggert.
90610
90611 2003-06-26  Karl Berry  <karl@gnu.org>
90612
90613         * config/depcomp: update from automake.
90614
90615 2003-06-26  Bruno Haible  <bruno@clisp.org>
90616
90617         * modules/human: Depend on module stdbool.
90618
90619 2003-06-25  Bruno Haible  <bruno@clisp.org>
90620
90621         * modules/readlink: New file.
90622         * modules/xreadlink: Depend on it.
90623         * MODULES.html.sh (func_all_modules): Add readlink.
90624
90625 2003-06-25  Bruno Haible  <bruno@clisp.org>
90626
90627         * m4/readlink.m4: New file.
90628
90629 2003-06-25  Bruno Haible  <bruno@clisp.org>
90630
90631         * lib/readlink.c: New file.
90632
90633 2003-06-22  Karl Berry  <karl@gnu.org>
90634
90635         * config/srclist.txt: update mkinstalldirs from automake.
90636         * config/mkinstalldirs: update.
90637
90638 2003-06-22  Bruno Haible  <bruno@clisp.org>
90639
90640         Portability to mingw32.
90641         * m4/ssize_t.m4: New file, from GNU gettext.
90642         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90643         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90644
90645 2003-06-22  Bruno Haible  <bruno@clisp.org>
90646
90647         * modules/safe-read: Add m4/ssize_t.m4.
90648         * modules/xreadlink: Add m4/ssize_t.m4.
90649
90650 2003-06-20  Bruno Haible  <bruno@clisp.org>
90651
90652         Assume C89, so PARAMS isn't needed.
90653         * lib/unicodeio.h (PARAMS): Remove.
90654         * lib/unicodeio.c: Don't use PARAMS.
90655
90656 2003-06-18  Karl Berry  <karl@gnu.org>
90657
90658         * config/config.{guess,sub}: update from prep.
90659
90660 2003-06-18  Jim Meyering  <jim@meyering.net>
90661
90662         Merge changes from coreutils.
90663         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90664         Remove explicit declarations of xmalloc and realloc.
90665         Include xalloc.h.
90666         (read_utmp): Remove anachronistic cast of xmalloc.
90667
90668 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90669
90670         Assume C89, so PARAMS isn't needed.
90671         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90672         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90673         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90674         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90675         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90676         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90677         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90678         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90679         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90680         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90681         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90682         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90683         no longer needed. Anyway, config.h should always be included before any
90684         other file.
90685
90686 2003-06-11  Simon Josefsson  <jas@extundo.com>
90687
90688         * modules/sysexits: New file.
90689         * MODULES.html.sh (func_all_modules): Add sysexits.
90690
90691 2003-06-11  Simon Josefsson  <jas@extundo.com>
90692
90693         * lib/sysexit_.h: New file.
90694
90695 2003-06-11  Derek Price  <derek@ximbiot.com>
90696
90697         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90698         necessary.
90699
90700 2003-06-11  Bruno Haible  <bruno@clisp.org>
90701
90702         * m4/sysexits.m4: New file.
90703
90704 2003-06-10  Simon Josefsson  <jas@extundo.com>
90705
90706         * lib/argp.h: New file, from glibc.
90707         * lib/argp-ba.c: New file, from glibc.
90708         * lib/argp-eexst.c: New file, from glibc.
90709         * lib/argp-fmtstream.c: New file, from glibc.
90710         * lib/argp-fmtstream.h: New file, from glibc.
90711         * lib/argp-fs-xinl.c: New file, from glibc.
90712         * lib/argp-help.c: New file, from glibc.
90713         * lib/argp-namefrob.h: New file, from glibc.
90714         * lib/argp-parse.c: New file, from glibc.
90715         * lib/argp-pv.c: New file, from glibc.
90716         * lib/argp-pvh.c: New file, from glibc.
90717         * lib/argp-xinl.c: New file, from glibc.
90718
90719 2003-06-10  Simon Josefsson  <jas@extundo.com>
90720
90721         * modules/strchrnul: New file.
90722
90723 2003-06-10  Simon Josefsson  <jas@extundo.com>
90724
90725         * modules/argp: New file.
90726
90727 2003-06-10  Simon Josefsson  <jas@extundo.com>
90728
90729         * m4/strchrnul.m4: New file.
90730
90731 2003-06-10  Simon Josefsson  <jas@extundo.com>
90732
90733         * lib/strchrnul.h: New file.
90734         * lib/strchrnul.c: New file.
90735
90736 2003-06-10  Bruno Haible  <bruno@clisp.org>
90737
90738         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90739
90740 2003-06-07  Karl Berry  <karl@gnu.org>
90741
90742         * config/config.{guess,sub}: update from prep.
90743
90744 2003-06-07  Jim Meyering  <jim@meyering.net>
90745
90746         * modules/strtod: Use $(...) notation, not @...@ for
90747         AC_REPLACE'd variables.
90748         * modules/localcharset: Likewise.
90749
90750 2003-06-07  Jim Meyering  <jim@meyering.net>
90751
90752         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90753         in place of my name in the copyright comment.
90754         Remove definition and uses of __P.
90755
90756         From coreutils.
90757         * lib/stat.c: Don't declare xmalloc explicitly.
90758         Instead, include "xalloc.h".
90759         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90760         xrealloc, and xcalloc return values.
90761         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90762         Improve comment.
90763         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90764
90765 2003-06-07  Bruno Haible  <bruno@clisp.org>
90766
90767         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90768         avoid AC_CONFIG_LINKS.
90769         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90770         fnmatch.h, to avoid AC_CONFIG_LINKS.
90771         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90772
90773 2003-06-07  Bruno Haible  <bruno@clisp.org>
90774
90775         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90776         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90777         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90778         directory.
90779         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90780         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90781         directory.
90782
90783 2003-06-06  Jim Meyering  <jim@meyering.net>
90784
90785         Merge from coreutils.
90786         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90787         Consolidate declarations and initializations of *_base* locals.
90788
90789         Merge from coreutils.
90790         This avoids a core dump on systems without GNU putenv,
90791         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90792         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90793         (unsetenv): New static function, from GNU libc.
90794         (rpl_putenv): Use it.
90795
90796         * lib/modechange.c: Remove trailing blanks.
90797
90798         Merge from coreutils.
90799         * lib/fsusage.c: Remove declaration of statfs.
90800         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90801
90802         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90803
90804 2003-06-06  Jim Meyering  <jim@meyering.net>
90805
90806         * lib/stdbool_.h: Renamed from stdbool.h.in.
90807
90808 2003-06-06  Jim Meyering  <jim@meyering.net>
90809             Bruno Haible  <bruno@clisp.org>
90810
90811         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90812         Adjust Makefile.am snippet not to redirect directly to target.
90813         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90814
90815 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90816
90817         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
90818         mismatch, look in future quarters as well as past.  This fixes a
90819         bug when processing fall-backwards gaps immediately after a long
90820         period of daylight-saving time.
90821
90822         * lib/mktime.c: Assume freestanding C89 or better.
90823         (HAVE_LIMITS_H): Remove.  Assume it's 1.
90824         (__P): Remove; not used.
90825         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
90826         (mktime, not_equal_tm, print_tm, check_result,
90827         main): Use prototypes.  Use const * where appropriate.
90828         (main): Fix typo in testing code that uncovered by above changes.
90829         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
90830
90831 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90832
90833         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
90834         locale.h, localeconv.  This merges changes from coreutils.
90835
90836         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
90837         It can be removed after the next Autoconf is released.
90838         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
90839         needed.
90840
90841 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90842
90843         * lib/mktime.c: Fix Debian bug 177940
90844         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
90845         (localtime_offset): Now long int, not time_t, because we want it
90846         to be guaranteed to be signed.  All uses changed.
90847         (__mktime_internal): If overflow would occur when adding offset,
90848         don't add it.
90849
90850         Merge 'human' changes from coreutils.  Rewrite to support
90851         locale-specific notations like thousands separators.
90852         * lib/human.c: Simplify authorship notice.
90853         Include human.h immediately after config.h.
90854         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
90855         <limits.h>: Do not include, since human.h does.
90856         (SIZE_MAX, UINTMAX_MAX): New macros.
90857         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
90858         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
90859         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
90860         (power_letter): Renamed from suffixes.
90861         (generate_suffix_backwards): Remove.
90862         (adjust_value): Now takes int style (because of human.h changes)
90863         and long double value (for greater precision on some platforms).
90864         (group_number): New function.
90865         (human_readable): Use it.  Use integer options, not enum.
90866         Put the options before the sizes in the arg list.
90867         Support all the new options.
90868         The old human_readable function has been removed;
90869         use inttostr.h instead.
90870         (human_readable, default_block_size, humblock):
90871         Use uintmax_t, not int, for block sizes.
90872         (human_readable_inexact, block_size_types): Remove.
90873         (block_size_opts): New constant.
90874         (human_options): Renamed from human_block_size, with new signature
90875         that allows block sizes up to UINTMAX_MAX.  All callers changed.
90876         * lib/human.h: Add copyright and authorship notice.
90877         Include <limits.h> and <stdbool.h> unconditionally.
90878         (PARAMS): Remove.  All uses removed.
90879         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
90880         (enum human_inexact_style): Remove tag; now a nameless enum.
90881         (human_floor, human_ceiling, human_round_to_even): Now have
90882         values 2, 0, 1 rather than -1, 1, 0.
90883         (human_group_digits, human_suppress_point_zero, human_autoscale,
90884         human_base_1024, human_SI, human_B): New constants.
90885         (human_readable_inexact, human_block_size): Remove.
90886         (human_readable): Size args are now uintmax_t, not int.
90887         (human_options): New decl.
90888
90889         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
90890         unnecessary now that we assume C89 or better.  This change
90891         imported from coreutils.
90892
90893         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90894         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
90895         in the 2003-05-30 sync from glibc.
90896
90897         .h files should stand alone, but we shouldn't include <sys/types.h>
90898         if we can get away with just <stddef.h>.
90899
90900         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
90901         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
90902         rather than <sys/types.h>, as we merely need size_t.
90903         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
90904         to get size_t.
90905         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
90906         Include <stdio.h>, to get FILE.
90907         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
90908         memcasecmp.h has included <stddef.h> and all we need is size_t.
90909         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
90910         our interface, instead of including <sys/types.h>
90911
90912 2003-06-04  Paul Eggert  <eggert@twinsun.com>
90913
90914         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
90915         now, as glibc mktime is buggy on non-glibc systems.
90916
90917 2003-06-03  Karl Berry  <karl@gnu.org>
90918
90919         * config/config.sub: update from prep.
90920
90921 2003-06-02  Paul Eggert  <eggert@twinsun.com>
90922
90923         [from coreutils]
90924         Fix some minor time-related bugs with POSIX time arguments.
90925         Some valid time stamps were being rejected (notably -1, and
90926         time stamps before 1900 on 64-bit hosts).  And some invalid
90927         time stamps were being accepted, e.g. September 31.
90928
90929         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
90930         that we can return (time_t) -1 successfully.
90931         * lib/posixtm.c: Likewise.
90932         [HAVE_STDBOOL_H]: Include <stdbool.h>.
90933         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
90934         (t): Remove static var.
90935         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
90936         of static var.  All uses changed.
90937         (year): Do not reject years before 1900; they can occur with
90938         64-bit time_t.
90939         (posix_time_parse): Do not check for out-of-range components;
90940         that is now the caller's responsibility, since our checks were
90941         only approximations.
90942         (posixtime): Use mktime to check for out-of-range components,
90943         since it knows them exactly.
90944         If mktime returns (time_t) -1, check whether an error actually occurred
90945         by invoking localtime on -1.
90946         (main) [TEST_POSIXTIME]: Check for input data errors, and report
90947         posixtime failures better.
90948         Improve the test data (in comments only).
90949
90950 2003-06-02  Karl Berry  <karl@gnu.org>
90951
90952         * config/mkinstalldirs (version): new variable.
90953         (--version): new option.
90954         (usage): improve message.
90955
90956 2003-05-30  Karl Berry  <karl@gnu.org>
90957
90958         * lib/mktime.c: update from libc.
90959
90960 2003-05-30  Bruno Haible  <bruno@clisp.org>
90961
90962         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90963         * config/config.rpath: Upgrade to gettext-0.12.1.
90964
90965 2003-05-30  Bruno Haible  <bruno@clisp.org>
90966
90967         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90968         * m4/nls.m4: New file, from gettext-0.12.1.
90969         * m4/po.m4: New file, from gettext-0.12.1.
90970         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90971
90972 2003-05-30  Bruno Haible  <bruno@clisp.org>
90973
90974         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90975         * lib/localcharset.h: Likewise.
90976         * lib/localcharset.c: Likewise.
90977
90978 2003-05-29  Karl Berry  <karl@gnu.org>
90979
90980         * config/config.rpath: update from gettext.
90981
90982 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90983
90984         Assume the headers required for C89 freestanding compilers.
90985         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90986         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90987         * m4/human.m4 (gl_HUMAN): Likewise.
90988         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90989         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90990         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90991         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90992         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90993         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90994
90995 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90996
90997         Assume the headers required for C89 freestanding compilers.
90998         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90999         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91000         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91001         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91002         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91003         define, since <limits.h> is guaranteed to do that.
91004         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91005         * lib/exclude.c: Include <stdbool.h> unconditionally.
91006         * lib/tempname.c: Include <stddef.h> unconditionally.
91007         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91008         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91009         <stddef.h> does that.
91010         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91011         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91012         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91013         needed.
91014         * lib/xstrtol.c: Likewise.
91015         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91016         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91017
91018         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91019         warnings on some platforms.
91020
91021         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91022         arbitrarily.
91023
91024 2003-05-26  Jim Meyering  <jim@meyering.net>
91025
91026         Merge in a change from coreutils:
91027         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91028         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91029         that condition, rather than `-1' which is slightly misleading.
91030         Change the name of the cache variable to have the gl_ prefix.
91031         Prompted by a patch from Richard Dawe for DJGPP.
91032
91033 2003-05-24  Karl Berry  <karl@gnu.org>
91034
91035         * config/config.guess: update from prep.
91036
91037 2003-05-22  Karl Berry  <karl@gnu.org>
91038
91039         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91040
91041 2003-05-20  Karl Berry  <karl@gnu.org>
91042
91043         * config/config.guess: update from prep.
91044
91045 2003-05-18  Karl Berry  <karl@gnu.org>
91046
91047         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91048         might actually be set by the user.
91049
91050         * config/depcomp, install-sh, mdate-sh: update from automake.
91051
91052 2003-05-17  Bruno Haible  <bruno@clisp.org>
91053
91054         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91055         invalid expansion for AC_EGREP_CPP.
91056         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91057         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91058         Suggested by Akim Demaille <akim@epita.fr> in
91059         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91060
91061 2003-05-12  Jim Meyering  <jim@meyering.net>
91062
91063         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91064         the space-padded-by-default conversion specifiers, %e, %k, %l.
91065
91066 2003-05-12  Bruno Haible  <bruno@clisp.org>
91067
91068         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91069         the string is longer than 4 KB.
91070
91071 2003-05-11  Karl Berry  <karl@gnu.org>
91072
91073         * config/config.{guess,sub}: update from prep.
91074
91075 2003-05-09  Bruno Haible  <bruno@clisp.org>
91076
91077         * modules/error: Add m4/strerror_r.m4 to file list.
91078
91079 2003-05-03  Bruno Haible  <bruno@clisp.org>
91080
91081         Upgrade to Unicode-4.0.
91082         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91083         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91084         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91085         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91086         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91087         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91088         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91089         Change width of U+E0100..U+E01EF from 1 to 0.
91090
91091 2003-04-25  Jim Meyering  <jim@meyering.net>
91092
91093         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91094         of type size_t, not int.
91095
91096 2003-04-25  Bruno Haible  <bruno@clisp.org>
91097
91098         * lib/copy-file.c: Include <stddef.h>, for size_t.
91099
91100 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91101
91102         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91103         code which expansion is under static control.  Patch imported from
91104         Akim Demaille's patch to Bison; see
91105         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91106
91107 2003-04-14  Bruno Haible  <bruno@clisp.org>
91108
91109         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91110
91111 2003-04-11  Jim Meyering  <jim@meyering.net>
91112
91113         Merge changes from Coreutils.
91114
91115         2003-03-22  Jim Meyering  <jim@meyering.net>
91116
91117         * lib/strftime.c (widen): Cast alloca return value to proper type.
91118
91119         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91120
91121         From GNU libc.
91122         * lib/strftime.c (my_strftime): Handle very large width
91123         specifications for numeric values correctly.  Improve checks for
91124         overflow.
91125
91126         2003-01-19  Jim Meyering  <jim@meyering.net>
91127
91128         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91129         definitions.
91130         (nl_get_alt_digit) [! defined my_strftime]: Define.
91131         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91132         _nl_get_alt_digit and _nl_get_walt_digit.
91133
91134         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91135         libc. These changes have no effect outside of _LIBC.
91136
91137 2003-04-10  Bruno Haible  <bruno@clisp.org>
91138
91139         * modules/findprog: New file.
91140         * MODULES.html.sh (func_all_modules): Add it.
91141
91142 2003-04-10  Bruno Haible  <bruno@clisp.org>
91143
91144         * m4/findprog.m4: New file.
91145         * m4/eaccess.m4: New file.
91146
91147 2003-04-10  Bruno Haible  <bruno@clisp.org>
91148
91149         * lib/findprog.h: New file, from GNU gettext.
91150         * lib/findprog.c: New file, from GNU gettext.
91151
91152 2003-04-05  Jim Meyering  <jim@meyering.net>
91153
91154         Merge changes from Coreutils.
91155
91156         * lib/exclude.h (PARAMS): Remove definition and uses.
91157         * lib/exclude.c: Remove uses of `PARAMS'.
91158
91159         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91160         Add test-cases for DOS filenames. Declare program_name.
91161         (main): Set up program_name.  Patch by Rich Dawe.
91162
91163         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91164         error from mntctl.
91165         Use mntctl's return value to drive the entry-processing loop, since
91166         we can't rely on the value of the vmt_length member in the last
91167         entry.  On some systems doing so could result in exhausting
91168         virtual memory.  Based in part on a patch from Mike Jetzer.
91169
91170 2003-04-04  Bruno Haible  <bruno@clisp.org>
91171
91172         * modules/linebreak: New file.
91173         * MODULES.html.sh (func_all_modules): Add it.
91174
91175 2003-04-04  Bruno Haible  <bruno@clisp.org>
91176
91177         * m4/linebreak.m4: New file.
91178
91179 2003-04-04  Bruno Haible  <bruno@clisp.org>
91180
91181         * lib/linebreak.h: New file, from GNU gettext.
91182         * lib/linebreak.c: New file, from GNU gettext with slight
91183         modifications.
91184         * lib/lbrkprop.h: New file, from GNU gettext.
91185
91186 2003-04-03  Bruno Haible  <bruno@clisp.org>
91187
91188         * modules/utf8-ucs4: New file.
91189         * modules/utf16-ucs4: New file.
91190         * modules/ucs4-utf8: New file.
91191         * modules/ucs4-utf16: New file.
91192         * MODULES.html.sh (func_all_modules): Add them.
91193
91194 2003-04-03  Bruno Haible  <bruno@clisp.org>
91195
91196         * m4/utf-ucs4.m4: New file.
91197         * m4/ucs4-utf.m4: New file.
91198
91199 2003-04-03  Bruno Haible  <bruno@clisp.org>
91200
91201         * lib/utf8-ucs4.h: New file, from GNU gettext.
91202         * lib/utf16-ucs4.h: New file, from GNU gettext.
91203         * lib/ucs4-utf8.h: New file, from GNU gettext.
91204         * lib/ucs4-utf16.h: New file, from GNU gettext.
91205
91206 2003-04-02  Bruno Haible  <bruno@clisp.org>
91207
91208         * modules/binary-io: New file.
91209         * MODULES.html.sh (func_all_modules): Add it.
91210
91211 2003-04-02  Bruno Haible  <bruno@clisp.org>
91212
91213         * lib/binary-io.h: New file, from GNU gettext.
91214
91215 2003-04-01  Bruno Haible  <bruno@clisp.org>
91216
91217         * modules/pathname: New file.
91218         * MODULES.html.sh (func_all_modules): Add it.
91219
91220 2003-04-01  Bruno Haible  <bruno@clisp.org>
91221
91222         * lib/pathname.h: New file, from GNU gettext.
91223         * lib/concatpath.c: New file, from GNU gettext.
91224
91225 2003-03-30  Bruno Haible  <bruno@clisp.org>
91226
91227         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91228
91229 2003-03-30  Bruno Haible  <bruno@clisp.org>
91230
91231         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91232         function chown() doesn't exist.
91233
91234 2003-03-28  Bruno Haible  <bruno@clisp.org>
91235
91236         * modules/copy-file: New file.
91237         * MODULES.html.sh (func_all_modules): Add it.
91238
91239 2003-03-28  Bruno Haible  <bruno@clisp.org>
91240
91241         * m4/copy-file.m4: New file.
91242
91243 2003-03-28  Bruno Haible  <bruno@clisp.org>
91244
91245         * lib/copy-file.h: New file, from GNU gettext.
91246         * lib/copy-file.c: New file, from GNU gettext.
91247
91248 2003-03-18  Jim Meyering  <jim@meyering.net>
91249
91250         * lib/quote.c (quote_n): Fix typo in comment.
91251
91252 2003-03-18  Bruno Haible  <bruno@clisp.org>
91253
91254         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91255         checking.
91256         * m4/onceonly_2_57.m4: Likewise.
91257
91258 2003-03-17  Bruno Haible  <bruno@clisp.org>
91259
91260         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91261         (m4_quote): Remove macro.
91262         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91263
91264 2003-03-14  Jim Meyering  <jim@meyering.net>
91265
91266         Merge changes from Coreutils.
91267         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91268         to be const, in order to avoid warnings.
91269         (obstack_room): Likewise.
91270         (obstack_empty_p): Likewise.
91271
91272 2003-03-14  Bruno Haible  <bruno@clisp.org>
91273
91274         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91275         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91276
91277 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91278
91279         Merge changes from Bison.
91280         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91281         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91282         when compiling Bison 1.875's `bitset bset = obstack_alloc
91283         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91284         * lib/hash.c: Include <stdbool.h> unconditionally.
91285
91286 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91287
91288         * m4/onceonly.m4 (m4_quote): New macro.
91289         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91290         Quote AC_FOREACH variable-expansions properly.
91291
91292 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91293
91294         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91295
91296 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91297
91298         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91299         Reported by Bruce Becker; see:
91300         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91301
91302 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91303             Bruno Haible  <bruno@clisp.org>
91304
91305         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91306         Reported by John Hughes, see
91307         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91308
91309 2003-02-20  Bruno Haible  <bruno@clisp.org>
91310
91311         * MODULES.html.sh (func_all_modules): Add poll.
91312
91313 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91314
91315         * modules/poll: New file.
91316
91317 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91318
91319         * lib/poll_.h: New file.
91320         * lib/poll.c: New file.
91321
91322 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91323
91324         * m4/poll.m4: New file.
91325
91326 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91327
91328         * modules/mathl: New file.
91329
91330 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91331
91332         * lib/mathl.h: New file.
91333         * lib/acosl.c: New file.
91334         * lib/asinl.c: New file.
91335         * lib/atanl.c: New file.
91336         * lib/ceill.c: New file.
91337         * lib/cosl.c: New file.
91338         * lib/expl.c: New file.
91339         * lib/floorl.c: New file.
91340         * lib/frexpl.c: New file.
91341         * lib/ldexpl.c: New file.
91342         * lib/logl.c: New file.
91343         * lib/sincosl.c: New file.
91344         * lib/sinl.c: New file.
91345         * lib/sqrtl.c: New file.
91346         * lib/tanl.c: New file.
91347         * lib/trigl.c: New file.
91348         * lib/trigl.h: New file.
91349
91350 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91351
91352         * m4/mathl.m4: New file.
91353
91354 2003-02-18  Bruno Haible  <bruno@clisp.org>
91355
91356         * MODULES.html.sh (func_all_modules): Add mathl.
91357
91358 2003-02-17  Bruno Haible  <bruno@clisp.org>
91359
91360         * modules/mkdtemp: New module.
91361         * MODULES.html.sh (func_all_modules): Add it.
91362
91363 2003-02-17  Bruno Haible  <bruno@clisp.org>
91364
91365         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91366
91367 2003-02-17  Bruno Haible  <bruno@clisp.org>
91368
91369         * lib/mkdtemp.h: New file, from GNU gettext.
91370         * lib/mkdtemp.c: New file, from GNU gettext.
91371
91372 2003-02-02  Jim Meyering  <jim@meyering.net>
91373
91374         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91375         e.g. glibc-2.2.93.
91376
91377 2003-01-31  Bruno Haible  <bruno@clisp.org>
91378
91379         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91380         'rpl_rename'.
91381         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91382         'rpl_strnlen'.
91383         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91384         'rpl_strtod'.
91385         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91386         'rpl_utime'.
91387
91388 2003-01-31  Bruno Haible  <bruno@clisp.org>
91389
91390         * lib/rename.c: #undef rename before defining rpl_rename.
91391         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91392
91393 2003-01-30  Bruno Haible  <bruno@clisp.org>
91394
91395         * modules/vasnprintf, modules/vasprintf: New modules.
91396         * MODULES.html.sh (func_all_modules): Add them.
91397
91398 2003-01-30  Bruno Haible  <bruno@clisp.org>
91399
91400         * m4/signed.m4: New file, from GNU gettext.
91401         * m4/longdouble.m4: New file, from GNU gettext.
91402         * m4/wchar_t.m4: New file, from GNU gettext.
91403         * m4/wint_t.m4: New file, from GNU gettext.
91404         * m4/vasnprintf.m4: New file.
91405         * m4/vasprintf.m4: New file.
91406
91407 2003-01-30  Bruno Haible  <bruno@clisp.org>
91408
91409         * lib/printf-args.h: New file, from GNU gettext.
91410         * lib/printf-args.c: New file, from GNU gettext.
91411         * lib/printf-parse.h: New file, from GNU gettext.
91412         * lib/printf-parse.c: New file, from GNU gettext.
91413         * lib/vasnprintf.h: New file, from GNU gettext.
91414         * lib/vasnprintf.c: New file, from GNU gettext.
91415         * lib/asnprintf.c: New file, from GNU gettext.
91416         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91417         * lib/vasprintf.c: New file, from GNU gettext.
91418         * lib/asprintf.c: New file, from GNU gettext.
91419
91420 2003-01-29  Bruno Haible  <bruno@clisp.org>
91421
91422         * modules/stpncpy: New module.
91423         * MODULES.html.sh (func_all_modules): Add it.
91424
91425 2003-01-29  Bruno Haible  <bruno@clisp.org>
91426
91427         * m4/stpncpy.m4: New file.
91428
91429 2003-01-29  Bruno Haible  <bruno@clisp.org>
91430
91431         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91432         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91433
91434 2003-01-28  Bruno Haible  <bruno@clisp.org>
91435
91436         * modules/c-ctype: New module.
91437         * MODULES.html.sh (func_all_modules): Add it.
91438
91439 2003-01-28  Bruno Haible  <bruno@clisp.org>
91440
91441         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91442         Paul Eggert.
91443         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91444         Paul Eggert.
91445
91446 2003-01-27  Bruno Haible  <bruno@clisp.org>
91447
91448         * modules/xsetenv: New module.
91449         * MODULES.html.sh (func_all_modules): Add it.
91450
91451 2003-01-27  Bruno Haible  <bruno@clisp.org>
91452
91453         * lib/xsetenv.h: New file, from GNU gettext.
91454         * lib/xsetenv.c: New file, from GNU gettext.
91455
91456 2003-01-23  Jim Meyering  <jim@meyering.net>
91457
91458         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91459         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91460
91461 2003-01-23  Bruno Haible  <bruno@clisp.org>
91462
91463         * modules/minmax: New module.
91464         * MODULES.html.sh (func_all_modules): Add it.
91465
91466 2003-01-23  Bruno Haible  <bruno@clisp.org>
91467
91468         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91469         Eggert.
91470
91471 2003-01-22  Bruno Haible  <bruno@clisp.org>
91472
91473         * modules/exit: New module.
91474         * MODULES.html.sh (func_all_modules): Add it.
91475
91476 2003-01-22  Bruno Haible  <bruno@clisp.org>
91477
91478         * lib/exit.h: New file, from GNU gettext.
91479
91480 2003-01-19  Bruno Haible  <bruno@clisp.org>
91481
91482         * gnulib-tool: Recognize option --extract-maintainer.
91483         (func_get_maintainer): New function.
91484         * modules/*: Add Maintainer entry.
91485
91486 2003-01-16  Jim Meyering  <jim@meyering.net>
91487
91488         * m4/regex.m4: The `regex' struct is both input and output.
91489         Initialize it before each use.  Patch by Tim Waugh.
91490
91491 2003-01-16  Bruno Haible  <bruno@clisp.org>
91492
91493         * MODULES.html.sh: Add a table of contents. Add the module name as
91494         leftmost column. Add hyperlinks.
91495
91496 2003-01-15  Bruno Haible  <bruno@clisp.org>
91497
91498         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91499
91500 2003-01-15  Bruno Haible  <bruno@clisp.org>
91501
91502         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91503         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91504         suffix.
91505
91506 2003-01-15  Bruno Haible  <bruno@clisp.org>
91507
91508         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91509
91510 2003-01-15  Bruno Haible  <bruno@clisp.org>
91511
91512         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91513         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91514
91515 2003-01-14  Jim Meyering  <jim@meyering.net>
91516
91517         * lib/same.c (same_name): Tweak a comment.
91518
91519 2003-01-14  Bruno Haible  <bruno@clisp.org>
91520
91521         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91522         when a string comparison is sufficient.
91523
91524 2003-01-14  Bruno Haible  <bruno@clisp.org>
91525
91526         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91527         'unsigned int'.
91528
91529 2003-01-14  Bruno Haible  <bruno@clisp.org>
91530
91531         * lib/hash-pjw.c: Add comment about low quality of this function.
91532
91533 2003-01-13  Bruno Haible  <bruno@clisp.org>
91534
91535         * modules/stpcpy: Distribute lib/stpcpy.h.
91536         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91537
91538 2003-01-13  Bruno Haible  <bruno@clisp.org>
91539
91540         * modules/*: Add a description.
91541         * modules/strpbrk: Fix Makefile.am snippet.
91542         * modules/strtoimax: Fix dependencies.
91543         * modules/strtoumax: Likewise.
91544
91545 2003-01-13  Bruno Haible  <bruno@clisp.org>
91546
91547         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91548         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91549         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91550
91551 2003-01-13  Bruno Haible  <bruno@clisp.org>
91552
91553         * gnulib-tool (func_create_testdir): Store config/* files in the main
91554         directory.
91555         * config.rpath: Move to ...
91556         * config/config.rpath: ... here.
91557         * modules/gettext: Contains config/config.rpath, not config.rpath.
91558         * modules/iconv: Likewise.
91559
91560 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91561
91562         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91563         to avoid collisions with libcurses and libreadline.
91564
91565         * m4/getstr.m4: Remove.
91566         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91567
91568 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91569
91570         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91571         to avoid collisions with libcurses and libreadline.
91572
91573         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91574         * lib/getstr.h, getstr.c: Remove.
91575         * lib/getline.c: Include "getline.h", to check interface.
91576         Move body of old getstr.c here: this defines MIN_CHUNK and
91577         declares getdelim2, which is renamed from getstr.
91578         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91579
91580         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91581         All uses changed.
91582         * lib/linebuffer.h: Likewise.
91583         (readline): Remove backward-compatibility macro.
91584
91585 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91586
91587         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91588         to avoid collisions with libcurses and libreadline.
91589         * getstr: Remove.
91590         * MODULES.html.sh: Remove getstr.
91591         * modules/getline: Depend on unlocked-io, not getstr.
91592
91593 2003-01-12  Jim Meyering  <jim@meyering.net>
91594
91595         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91596
91597 2003-01-10  Bruno Haible  <bruno@clisp.org>
91598
91599         * modules/alloca: Change Makefile.am requirements. Simplify Include
91600         requirements. Add lib/alloca_.h to file list.
91601
91602 2003-01-10  Bruno Haible  <bruno@clisp.org>
91603
91604         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91605
91606 2003-01-10  Bruno Haible  <bruno@clisp.org>
91607
91608         * lib/alloca_.h: New file.
91609         * lib/getdate.y: Unconditionally include alloca.h.
91610         * lib/makepath.c: Likewise.
91611         * lib/setenv.c: Likewise.
91612         * lib/userspec.c: Likewise.
91613
91614 2003-01-09  Karl Berry  <karl@gnu.org>
91615
91616         * MODULES.html.sh: include `dirname $0` in PATH, to find
91617         gnulib-tool.
91618
91619 2003-01-09  Bruno Haible  <bruno@clisp.org>
91620
91621         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91622         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91623
91624 2003-01-09  Bruno Haible  <bruno@clisp.org>
91625
91626         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91627
91628 2003-01-09  Bruno Haible  <bruno@clisp.org>
91629
91630         * lib/stdbool.h.in: New file.
91631
91632 2003-01-09  Bruno Haible  <bruno@clisp.org>
91633
91634         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91635         * MODULES.html.sh: Likewise.
91636
91637 2003-01-08  Jim Meyering  <jim@meyering.net>
91638
91639         * lib/full-write.c: Undefine and define-away `const' after inclusion
91640         of errno.h, not before.  Suggestion from Bruno Haible.
91641
91642 2003-01-08  Bruno Haible  <bruno@clisp.org>
91643
91644         * modules/full-read: Depend on full-write.
91645
91646 2003-01-08  Bruno Haible  <bruno@clisp.org>
91647
91648         * lib/safe-read.c: Include specification header first, to ensure its
91649         selfcontainedness.
91650         * lib/full-write.c: Likewise.
91651
91652 2003-01-07  Jim Meyering  <jim@meyering.net>
91653
91654         * lib/full-write.c: Rework so that it may serve to define full_read,
91655         too.
91656         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91657
91658 2003-01-07  Bruno Haible  <bruno@clisp.org>
91659
91660         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91661         <inttypes.h>.
91662         * lib/xstrtol.h: Likewise.
91663         * lib/xstrtoimax.c: Likewise.
91664         * lib/xstrtoumax.c: Likewise.
91665         * lib/human.h: Likewise.
91666
91667         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91668         on systems that have <inttypes.h> but not <stdint.h>.
91669
91670 2003-01-07  Bruno Haible  <bruno@clisp.org>
91671
91672         * MODULES.html.sh: Add copyright notice.
91673         (missed_files): Omit CVS directory entries.
91674         (func_module): Make it work with sed-3.02.
91675         * MODULES.txt: Remove file.
91676
91677 2003-01-06  Jim Meyering  <jim@meyering.net>
91678
91679         * lib/version-etc.c: Update year in translatable copyright string.
91680
91681 2003-01-03  Karl Berry  <karl@gnu.org>
91682
91683         * config/config.{guess,sub}: update from prep.
91684
91685 2003-01-02  Karl Berry  <karl@gnu.org>
91686
91687         * doc/COPYING.DOC: belatedly updated to 1.2.
91688
91689 2003-01-01  Karl Berry  <karl@gnu.org>
91690
91691         * gnulib-tool (func_verify_module): report module name $module in
91692         error message, not $1.
91693         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91694         be created, only if it doesn't exist.
91695         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91696
91697 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91698
91699         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91700
91701 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91702
91703         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91704         memcmp if strcoll doesn't work.
91705
91706 2002-12-31  Bruno Haible  <bruno@clisp.org>
91707
91708         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91709         nonempty.
91710
91711 2002-12-31  Bruno Haible  <bruno@clisp.org>
91712
91713         * lib/memcoll.c (STRCOLL): New macro.
91714         (memcoll): Use it.
91715
91716 2002-12-31  Bruno Haible  <bruno@clisp.org>
91717
91718         * lib/localcharset.h: New file.
91719         * lib/localcharset.c: Include it.
91720         * lib/unicodeio.c: Likewise.
91721
91722 2002-12-31  Bruno Haible  <bruno@clisp.org>
91723
91724         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91725         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91726
91727 2002-12-31  Bruno Haible  <bruno@clisp.org>
91728
91729         * lib/getline.h: Include <stddef.h>, for size_t.
91730
91731         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91732         * lib/unicodeio.c: Don't include <stddef.h>.
91733
91734 2002-12-31  Bruno Haible  <bruno@clisp.org>
91735
91736         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91737         HAVE_TM_ZONE.
91738
91739 2002-12-24  Karl Berry  <karl@gnu.org>
91740
91741         * config/config.guess: update from prep.
91742
91743 2002-12-24  Bruno Haible  <bruno@clisp.org>
91744
91745         General infrasructure.
91746         * m4/README: Rewritten.
91747         * m4/onceonly.m4: New file.
91748         * m4/onceonly_2_57.m4: New file.
91749
91750         Module atexit.
91751         * m4/atexit.m4: New file.
91752
91753         Module strtod.
91754         * m4/strtod.m4: New file.
91755
91756         Module strtol.
91757         * m4/strtol.m4: New file.
91758
91759         Module strtoul.
91760         * m4/strtoul.m4: New file.
91761
91762         Module memchr.
91763         * m4/memchr.m4: New file.
91764
91765         Module memcmp.
91766         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91767         (jm_FUNC_MEMCMP): Invoke it.
91768
91769         Module memcpy.
91770         * m4/memcpy.m4: New file.
91771
91772         Module memmove.
91773         * m4/memmove.m4: New file.
91774
91775         Module memset.
91776         * m4/memset.m4: New file.
91777
91778         Module strcspn.
91779         * m4/strcspn.m4: New file.
91780
91781         Module strpbrk.
91782         * m4/strpbrk.m4: New file.
91783
91784         Module strstr.
91785         * m4/strstr.m4: New file.
91786
91787         Module strerror.
91788         * m4/strerror.m4: New file.
91789
91790         Module mktime.
91791         * m4/mktime.m4: Renamed from jm-mktime.m4.
91792         (gl_PREREQ_MKTIME): New macro.
91793         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91794
91795         Module malloc.
91796         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91797         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91798         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91799
91800         Module realloc.
91801         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91802         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91803         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91804
91805         Module strftime.
91806         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91807         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91808         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91809         gl_TM_GMTOFF.
91810         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91811
91812         Module xalloc.
91813         * m4/xalloc.m4: New file.
91814
91815         Module alloca.
91816         * m4/alloca.m4: New file.
91817
91818         Module putenv.
91819         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
91820         (jm_FUNC_PUTENV): Invoke it.
91821
91822         Module setenv.
91823         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
91824         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
91825         when invoked twice.
91826         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
91827         gt_FUNC_SETENV.
91828
91829         Module memrchr.
91830         * m4/memrchr.m4: New file.
91831
91832         Module stpcpy.
91833         * m4/stpcpy.m4: New file.
91834
91835         Module strcase.
91836         * m4/strcase.m4: New file.
91837
91838         Module strdup.
91839         * m4/strdup.m4: New file.
91840
91841         Module strnlen.
91842         * m4/strnlen.m4: New file.
91843
91844         Module strndup.
91845         * m4/strndup.m4: New file.
91846
91847         Module xstrtod.
91848         * m4/xstrtod.m4: New file.
91849
91850         Module xstrtol.
91851         * m4/xstrtol.m4: New file.
91852
91853         Module getdate.
91854         * m4/getdate.m4: New file.
91855
91856         Module unlocked-io.
91857         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
91858         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
91859         * m4/jm-glibc-io.m4n: Remove file.
91860
91861         Module long-options.
91862         * m4/long-options.m4: New file.
91863
91864         Module md5.
91865         * m4/md5.m4: New file.
91866
91867         Module sha.
91868         * m4/sha.m4: New file.
91869
91870         Module getstr.
91871         * m4/getstr.m4: New file.
91872
91873         Module getline.
91874         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
91875         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
91876         <sys/types.h>, for size_t. Use the function name gnu_getline, not
91877         simply getline. Infoke gl_PREREQ_GETLINE.
91878
91879         Module obstack.
91880         * m4/obstack.m4: New file.
91881
91882         Module hash.
91883         * m4/hash.m4: New file.
91884
91885         Module readtokens.
91886         * m4/readtokens.m4: New file.
91887
91888         Module strverscmp.
91889         * m4/strverscmp.m4: New file.
91890
91891         Module stdbool.
91892         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
91893         OSF/1.
91894
91895         Module strtoll.
91896         * m4/strtoll.m4: New file.
91897
91898         Module strtoull.
91899         * m4/strtoull.m4: New file.
91900
91901         Module strtoimax.
91902         * m4/strtoimax.m4: New file.
91903
91904         Module strtoumax.
91905         * m4/strtoumax.m4: New file.
91906
91907         Module xstrtoimax.
91908         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
91909         jm_AC_PREREQ_XSTRTOIMAX.
91910         Moved the strtol prerequisites to strtol.m4.
91911         Moved the strtoll prerequisites to strtoll.m4.
91912         Moved the strtoimax prerequisites to strtoimax.m4.
91913
91914         Module xstrtoumax.
91915         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
91916         jm_AC_PREREQ_XSTRTOUMAX.
91917         Moved the strtoul prerequisites to strtoul.m4.
91918         Moved the strtoull prerequisites to strtoull.m4.
91919         Moved the strtoumax prerequisites to strtoumax.m4.
91920
91921         Module chown.
91922         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
91923         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
91924
91925         Module dup2.
91926         * m4/dup2.m4: New file.
91927
91928         Module ftruncate.
91929         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
91930         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
91931
91932         Module getgroups.
91933         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
91934         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
91935
91936         Module gettimeofday.
91937         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
91938         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
91939         gl_PREREQ_GETTIMEOFDAY.
91940
91941         Module mkdir.
91942         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
91943         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
91944
91945         Module mkstemp.
91946         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
91947         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
91948         jm_AC_TYPE_UINTMAX_T.
91949         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91950
91951         Module stat.
91952         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91953         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91954
91955         Module lstat.
91956         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91957         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91958
91959         Module timespec.
91960         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91961         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91962         * m4/st_mtim.m4: Indentation.
91963
91964         Module nanosleep.
91965         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91966         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91967         gl_PREREQ_NANOSLEEP.
91968
91969         Module regex.
91970         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91971         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91972         (gl_REGEX): New macro.
91973
91974         Module rename.
91975         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91976         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91977
91978         Module rmdir.
91979         * m4/rmdir.m4: New file.
91980
91981         Module utime.
91982         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91983         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91984         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91985
91986         Module dirname.
91987         * m4/dirname.m4: New file.
91988
91989         Module getopt.
91990         * m4/getopt.m4: New file.
91991
91992         Module unistd-safer.
91993         * m4/unistd-safer.m4: New file.
91994
91995         Module fnmatch.
91996         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91997         declaration.
91998         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91999         (gl_FUNC_FNMATCH_POSIX): New macro.
92000         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92001         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92002         simply fnmatch.
92003
92004         Module exclude.
92005         * m4/exclude.m4: New file.
92006
92007         Module human.
92008         * m4/human.m4: New file.
92009
92010         Module acl.
92011         * m4/acl.m4: Nop.
92012
92013         Module backupfile.
92014         * m4/backupfile.m4: New file.
92015         * m4/d-ino.m4: Indentation.
92016
92017         Module fsusage.
92018         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92019         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92020         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92021
92022         Module dirfd.
92023         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92024         requirements.
92025
92026         Module euidaccess.
92027         * m4/euidaccess.m4: New file.
92028
92029         Module file-type.
92030         * m4/file-type.m4: New file.
92031
92032         Module fileblocks.
92033         * m4/fileblocks.m4: New file.
92034
92035         Module filemode.
92036         * m4/filemode.m4: New file.
92037
92038         Module isdir.
92039         * m4/isdir.m4: New file.
92040
92041         Module lchown.
92042         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92043         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92044
92045         Module makepath.
92046         * m4/makepath.m4: New file.
92047
92048         Module modechange.
92049         * m4/modechange.m4: New file.
92050
92051         Module mountlist.
92052         * m4/mountlist.m4: New file.
92053         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92054         Indentation.
92055
92056         Module path-concat.
92057         * m4/path-concat.m4: New file.
92058
92059         Module pathmax.
92060         * m4/pathmax.m4: New file.
92061
92062         Module same.
92063         * m4/same.m4: New file.
92064
92065         Module save-cwd.
92066         * m4/save-cwd.m4: New file.
92067
92068         Module savedir.
92069         * m4/savedir.m4: New file.
92070
92071         Module xgetcwd.
92072         * m4/xgetcwd.m4: New file.
92073         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92074
92075         Module xreadlink.
92076         * m4/xreadlink.m4: New file.
92077
92078         Module safe-read.
92079         * m4/safe-read.m4: New file.
92080
92081         Module safe-write.
92082         * m4/safe-write.m4: New file.
92083
92084         Module closeout.
92085         * m4/closeout.m4: New file.
92086
92087         Module stdio-safer.
92088         * m4/stdio-safer.m4: New file.
92089
92090         Module getpass.
92091         * m4/getpass.m4: New file.
92092
92093         Module getugroups.
92094         * m4/getugroups.m4: New file.
92095
92096         Module group-member.
92097         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92098         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92099
92100         Module idcache.
92101         * m4/idcache.m4: New file.
92102
92103         Module userspec.
92104         * m4/userspec.m4: New file.
92105
92106         Module gettime.
92107         * m4/clock_time.m4: New file.
92108         * m4/gettime.m4: New file.
92109
92110         Module settime.
92111         * m4/settime.m4: New file.
92112
92113         Module posixtm.
92114         * m4/posixtm.m4: New file.
92115
92116         Module gethostname.
92117         * m4/gethostname.m4: New file.
92118
92119         Module canon-host.
92120         * m4/canon-host.m4: New file.
92121
92122         Module gettext.
92123         * m4/codeset.m4: New file, from gettext-0.11.5.
92124         * m4/gettext.m4: New file, from gettext-0.11.5.
92125         * m4/glibc21.m4: New file, from gettext-0.11.5.
92126         * m4/iconv.m4: New file, from gettext-0.11.5.
92127         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92128         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92129         * m4/inttypes.m4: New file, from gettext-0.11.5.
92130         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92131         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92132         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92133         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92134         * m4/lib-link.m4: New file, from gettext-0.11.5.
92135         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92136         * m4/progtest.m4: New file, from gettext-0.11.5.
92137         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92138         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92139         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92140
92141         Module localcharset.
92142         * m4/localcharset.m4: New file.
92143
92144         Module hard-locale.
92145         * m4/hard-locale.m4: New file.
92146
92147         Module mbswidth.
92148         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92149         onceonly macros.
92150         * m4/mbrtowc.m4: Add comment.
92151
92152         Module memcasecmp.
92153         * m4/memcasecmp.m4: New file.
92154
92155         Module memcoll.
92156         * m4/memcoll.m4: New file.
92157
92158         Module unicodeio.
92159         * m4/unicodeio.m4: New file.
92160
92161         Module rpmatch.
92162         * m4/rpmatch.m4: New file.
92163
92164         Module yesno.
92165         * m4/yesno.m4: New file.
92166
92167         Module exitfail.
92168         * m4/exitfail.m4: New file.
92169
92170         Module c-stack.
92171         * m4/c-stack.m4 (gl_C_STACK): New macro.
92172         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92173
92174         Module error.
92175         * m4/error.m4 (gl_ERROR): New macro.
92176         (jm_PREREQ_ERROR): Use onceonly macros.
92177
92178         Module fatal.
92179         * m4/fatal.m4: New file.
92180
92181         Module getloadavg.
92182         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92183         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92184
92185         Module getpagesize.
92186         * m4/getpagesize.m4: New file.
92187
92188         Module getusershell.
92189         * m4/getusershell.m4: New file.
92190
92191         Module physmem.
92192         * m4/physmem.m4: New file.
92193
92194         Module posixver.
92195         * m4/posixver.m4: New file.
92196
92197         Module quotearg.
92198         * m4/quotearg.m4: New file.
92199
92200         Module quote.
92201         * m4/quote.m4: New file.
92202
92203         Module readutmp.
92204         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92205
92206         Module sig2str.
92207         * m4/sig2str.m4: New file.
92208
92209         Other.
92210         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92211         ulonglong.m4.
92212         * m4/intmax_t.m4: New file.
92213         * m4/d-type.m4: Indentation.
92214         * m4/jm-macros.m4: Update.
92215         * m4/prereq.m4 (jm_PREREQ): Update.
92216         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92217         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92218         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92219         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92220         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92221         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92222         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92223         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92224         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92225         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92226         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92227         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92228         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92229         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92230         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92231         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92232         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92233         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92234         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92235
92236 2002-12-24  Bruno Haible  <bruno@clisp.org>
92237
92238         * MODULES.txt: Update according to m4/ changes.
92239
92240         Module gettext.
92241         * config.rpath: New file, from gettext-0.11.5.
92242
92243         * modules/*: New module descriptions.
92244         * gnulib-tool: New file.
92245         * MODULES.html.sh: New file.
92246
92247 2002-12-21  Karl Berry  <karl@gnu.org>
92248
92249         * doc/fdl.texi: update to version 1.2.
92250
92251 2002-12-19  Karl Berry  <karl@gnu.org>
92252
92253         * config/config.guess: update from prep.
92254
92255 2002-12-18  Bruno Haible  <bruno@clisp.org>
92256
92257         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92258         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92259
92260 2002-12-17  Bruno Haible  <bruno@clisp.org>
92261
92262         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92263         stdlib.h, string.h.
92264
92265 2002-12-17  Bruno Haible  <bruno@clisp.org>
92266
92267         * lib/canon-host.c (strdup): Remove unused declaration.
92268
92269         * lib/fsusage.c: Include full_read.h.
92270         (get_fs_usage): Use full_read instead of safe_read.
92271
92272         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92273
92274 2002-12-12  Karl Berry  <karl@gnu.org>
92275
92276         * config/config.guess: update from prep.
92277
92278 2002-12-11  Bruno Haible  <bruno@clisp.org>
92279
92280         * m4/setenv.m4: New file, from gettext-0.11.5.
92281
92282 2002-12-11  Bruno Haible  <bruno@clisp.org>
92283
92284         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92285         not unsetenv().
92286         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92287         modifications:
92288
92289         2002-12-11  Bruno Haible  <bruno@clisp.org>
92290
92291                 * setenv.c (alloca): Fall back to malloc.
92292                 (freea): New macro.
92293                 (setenv): Use freea() to free memory allocated with alloca().
92294
92295         2002-11-13  Bruno Haible  <bruno@clisp.org>
92296
92297                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92298                 function declarations.
92299                 * unsetenv.c (unsetenv): Likewise.
92300
92301         2002-03-04  Bruno Haible  <bruno@clisp.org>
92302
92303                 Portability to AIX 4.3.3.
92304                 * unsetenv.c: New file, extracted from setenv.c.
92305                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92306
92307         2001-12-20  Bruno Haible  <bruno@clisp.org>
92308
92309                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92310                 use malloc instead. For SunOS 4.
92311
92312         2001-12-11  Bruno Haible  <bruno@clisp.org>
92313
92314                 * setenv.c: Declare alloca.
92315                 (compar_fn_t): New typedef.
92316                 (KNOWN_VALUE, STORE_VALUE): Use it.
92317
92318         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92319         setenv.h.
92320
92321 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92322
92323         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92324         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92325         Choose values that are less likely to collide with system fnmatch
92326         options.
92327         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92328         defined (e.g., a pure POSIX system).
92329         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92330         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92331
92332 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92333
92334         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92335         a pain in practice to deal with generated m4 files.  This change
92336         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92337
92338         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92339         and jm-glibc-io.m4, as they are no longer a special case.
92340         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92341         kludge and the auto-generation stuff.  Check only whether the
92342         functions are declared, not whether they exist, since older hosts
92343         that don't declare the functions can't use the optimization anyway.
92344
92345 2002-12-06  Jim Meyering  <jim@meyering.net>
92346
92347         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92348
92349         Merge in changes from libc's misc/error.c, in preparation
92350         for the merge of gnulib's changes back into libc.
92351
92352         * lib/error.c (_): Define only if not already defined.
92353         Move definition to follow all #include directives.
92354         Include unlocked-io.h only if !_LIBC.
92355         [_LIBC]: Include <libio/libioP.h>.
92356         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92357         (fflush): Tweak definition to use INTUSE.
92358         (putc): Define.
92359
92360 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92361
92362         * lib/alloca.c [defined emacs]: Include "lisp.h".
92363         (xalloc_die) [defined emacs]: New macro.
92364         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92365         [! defined emacs]: Include <xalloc.h>.
92366         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92367         (pointer): Typedef to POINTER_TYPE *.
92368         (malloc): Remove decl; we now always use xmalloc.
92369         (alloca): Use old-style definition, since Emacs needs this.
92370         Check for arithmetic overflow when computing combined size.
92371
92372 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92373
92374         Do not generate unlocked-io.h automatically, since it's easier to
92375         maintain it by hand.
92376
92377         * lib/unlocked-io.h: New file, from GNU diffutils,
92378         but with proper copyright notice and attribution.
92379         * lib/gen-uio: Remove.
92380         * lib/Makefile.am: Add copyright notice.
92381         (libfetish_a_SOURCES): Add unlocked-io.h.
92382         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92383         (DISTCLEANFILES, io_functions): Remove macros.
92384         (EXTRA_DIST): Remove gen_uio.
92385         (unlocked-io.h): Remove rule.
92386
92387 2002-12-04  Jim Meyering  <jim@meyering.net>
92388
92389         Reflect the fact that stat.c and lstat.c are no longer generated.
92390         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92391         (DISTCLEANFILES): Likewise.
92392         (EXTRA_DIST): Likewise.
92393         (all_local): Don't depend on stat.c or lstat.c.
92394         (stat.c, lstat.c): Remove rules.
92395         (EXTRA_DIST): Remove xstat.in.
92396
92397         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92398         * lib/stat.c: New file.  Contents mostly from xstat.in.
92399         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92400         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92401
92402         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92403         too.
92404         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92405
92406 2002-12-03  Jim Meyering  <jim@meyering.net>
92407
92408         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92409         but not semantics, to minimize the differences between these two files.
92410         (safe_read): Change comment to mention SAFE_READ_ERROR.
92411
92412         * lib/safe-read.c (IS_EINTR): Define.
92413         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92414
92415 2002-12-02  Jim Meyering  <jim@meyering.net>
92416
92417         * lib/safe-read.c (EINTR): Define.
92418         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92419         (INT_MAX): Provide fallback.
92420         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92421
92422         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92423
92424 2002-12-02  Bruno Haible  <bruno@clisp.org>
92425
92426         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92427         Define, taken from safe-read.c.
92428         (INT_MAX): Provide fallback.
92429         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92430         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92431
92432         * lib/safe-read.c (EINTR): Remove definition.
92433         (safe_read): Don't use EINTR if it is absent.
92434
92435 2002-12-01  Jim Meyering  <jim@meyering.net>
92436
92437         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92438         zero.
92439         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92440
92441 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92442
92443         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92444         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92445         with `if (! (value < limit)) abort ();', for readability.
92446
92447 2002-11-26  Karl Berry  <karl@gnu.org>
92448
92449         * lib/strdup.c: copy from libc again, with jim's ok.
92450         * lib/.cppi-disable: re-add strdup.c
92451
92452 2002-11-25  Karl Berry  <karl@gnu.org>
92453
92454         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92455         instead of "strtol.c".
92456
92457 2002-11-25  Karl Berry  <karl@gnu.org>
92458
92459         * config/install-sh: update from automake for variable quoting, $0 in
92460         error msgs, etc.
92461
92462         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92463         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92464         entry.
92465
92466 2002-11-25  Jim Meyering  <jim@meyering.net>
92467
92468         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92469
92470 2002-11-24  Karl Berry  <karl@gnu.org>
92471
92472         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92473         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92474
92475 2002-11-24  Jim Meyering  <jim@meyering.net>
92476
92477         Update from coreutils:
92478
92479         * lib/mktime.c: Merge in changes from libc.
92480
92481         Avoid a link-time failure on some Linux systems.
92482         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92483         (otherwise).
92484         (__mon_yday): Declare with the STATIC attribute.
92485         (__mktime_internal): Likewise.
92486         Based on a report from Greg Schafer.
92487
92488 2002-11-23  Jim Meyering  <jim@meyering.net>
92489
92490         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92491         Use `unsigned', not `int', as type of index.
92492
92493         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92494
92495         * lib/fsusage.c: Remove unneeded parentheses around operands of
92496         `defined'.
92497
92498 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92499
92500         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92501         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92502         so that we can be included first.
92503         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92504         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92505         No need to include stddef.h or sys/types.h any more.
92506         Surround local include files with "", not "<>".
92507         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92508         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92509         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92510         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92511         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92512         (ISPRINT): Remove; no longer needed now that we assume C89.
92513
92514         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92515         Preserve errno.
92516
92517         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92518         quotearg_char): Use SIZE_MAX rather than
92519         (size_t) -1 when we are talking about "infinity".
92520
92521         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92522
92523 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92524
92525         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92526         hint that one should use `if (! x) abort ();' rather than `assert
92527         (x);', and anyway it's one less thing to worry about configuring.
92528         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92529         hash_rehash, hash_insert): Use abort rather than assert.
92530
92531 2002-11-22  Bruno Haible  <bruno@clisp.org>
92532
92533         * lib/safe-read.h: Assume C89. Add comments.
92534         (safe_read): Change return type to size_t.
92535         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92536         byte counts > SSIZE_MAX correctly.
92537         * lib/safe-write.h: New file.
92538         * lib/safe-write.c: New file.
92539         * lib/full-read.h: New file.
92540         * lib/full-read.c: New file.
92541         * lib/full-write.h: Assume C89. Add comments.
92542         * lib/full-write.c: Include safe-write.h.
92543         (full_write): Rewritten to use safe_write.
92544         Suggested by Jim Meyering and Paul Eggert.
92545
92546 2002-11-21  Jim Meyering  <jim@meyering.net>
92547
92548         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92549
92550         Merge in changes from the coreutils.
92551
92552         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92553         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92554         <stdint.h>.
92555         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92556         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92557         int.  Work more efficiently if X is the same width as uintmax_t.
92558         Do not compare X to -1, to avoid bogus compiler warning.
92559         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92560         Don't assume that f_frsize and f_bsize are the same type.
92561
92562         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92563         warning on FreeBSD.
92564
92565         * lib/makepath.c (make_path): Restore umask *before* creating the final
92566         component.
92567         (make_path): Minor reformatting.
92568
92569         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92570         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92571         HAVE_MALLOC/HAVE_REALLOC.
92572
92573         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92574         dummy ones.  At least on GNU/Linux systems, `auto' means something
92575         else.
92576         From Michael Stone.
92577
92578 2002-11-21  Bruno Haible  <bruno@clisp.org>
92579
92580         Remove case insensitive option matching.
92581         * lib/argmatch.h (argcasematch): Remove declaration.
92582         (ARGCASEMATCH): Remove macro.
92583         (__xargmatch_internal): Remove case_sensitive argument.
92584         (XARGMATCH): Update.
92585         (XARGCASEMATCH): Remove macro.
92586         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92587         case_sensitive argument.
92588         (argcasematch): Remove function.
92589         (__xargmatch_internal): Remove case_sensitive argument.
92590         (main): Use XARGMATCH instead of XARGCASEMATCH.
92591
92592         * lib/xmalloc.c: Change compile-time error message. Add comment about
92593         required autoconf version.
92594
92595 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92596
92597         Merge argmatch cleanups from Bison.  Assume C89.
92598
92599         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92600         Include stdlib.h, for EXIT_FAILURE.
92601         Always include <string.h>, since we assume C89.
92602         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92603         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92604         Include <stddef.h> instead, since it's all we need for size_t.
92605         (PARAMS): Remove.  All uses removed.
92606         (ARRAY_CARDINALITY): Do not bother to #undef.
92607         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92608         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92609         Remove unnecessary parentheses.
92610         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92611         Insert necessary parentheses.
92612         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92613         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92614
92615 2002-11-19  Bruno Haible  <bruno@clisp.org>
92616
92617         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92618         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92619
92620         * lib/mbswidth.h (PARAMS): Remove macro.
92621         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92622         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92623
92624         * lib/gcd.h (PARAMS): Remove macro.
92625         (gcd): Use ANSI C function declarations.
92626         * lib/gcd.c (gcd): Likewise.
92627
92628 2002-11-15  Bruno Haible  <bruno@clisp.org>
92629
92630         * lib/strcspn.c: Include <stddef.h>.
92631         (strcspn): Use ANSI C function declaration. Change return type to
92632         size_t. Use NULL.
92633         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92634         (strpbrk): Use NULL.
92635         * lib/strpbrk.h (PARAMS): Remove macro.
92636         (strpbrk): Use ANSI C function declaration.
92637         * lib/strstr.c: Don't include <sys/types.h>.
92638         * lib/strstr.h (PARAMS): Remove macro.
92639         (strstr): Use ANSI C function declarations.
92640
92641 2002-11-14  Karl Berry  <karl@gnu.org>
92642
92643         * config/mkinstalldirs: `do' on separate line, instead of
92644         `for var; do'.
92645
92646 2002-11-06  Bruno Haible  <bruno@clisp.org>
92647
92648         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92649         * lib/gcd.c (gcd): Likewise.
92650
92651 2002-11-05  Bruno Haible  <bruno@clisp.org>
92652
92653         * lib/gcd.h: New file, from gettext-0.11.5.
92654         * lib/gcd.c: New file, from gettext-0.11.5.
92655
92656 2002-11-05  Bruno Haible  <bruno@clisp.org>
92657
92658         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92659         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92660         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92661         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92662
92663         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92664         <libintl.h>.
92665         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92666         <libintl.h>.
92667
92668         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92669         * lib/human.c: Include gettext.h instead of <libintl.h>.
92670         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92671         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92672         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92673         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92674         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92675         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92676         (textdomain): Remove definition.
92677         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92678
92679         * lib/long-options.c: Remove include of <libintl.h> and definition of
92680         _.
92681         * lib/same.c: Remove include of <libintl.h> and definition of _.
92682
92683 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92684
92685         * lib/config.charset: A few additions for Solaris.
92686
92687 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92688
92689         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92690         * lib/localcharset.c (locale_charset): Declare as extern "C".
92691
92692 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92693
92694         * lib/config.charset: msdos in uk_UA uses CP1125.
92695
92696 2002-11-04  Bruno Haible  <bruno@clisp.org>
92697
92698         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92699         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92700         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92701         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92702         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92703
92704 2002-11-04  Bruno Haible  <bruno@clisp.org>
92705
92706         * lib/localcharset.c (locale_charset): Don't return an empty string.
92707
92708 2002-11-04  Bruno Haible  <bruno@clisp.org>
92709
92710         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92711         aliases.
92712
92713 2002-11-04  Bruno Haible  <bruno@clisp.org>
92714
92715         * lib/config.charset: Update for newest glibc. Add canonical names
92716         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92717
92718 2002-11-04  Bruno Haible  <bruno@clisp.org>
92719
92720         * lib/config.charset: Add support for NetBSD.
92721
92722 2002-11-04  Bruno Haible  <bruno@clisp.org>
92723
92724         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92725
92726 2002-11-01  Bruno Haible  <bruno@clisp.org>
92727
92728         * configure.in: Add AC_CONFIG_AUX_DIR call.
92729         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92730         test/Makefile.
92731         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92732
92733 2002-09-28  Karl Berry  <karl@gnu.org>
92734
92735         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92736         installed automake until the next release, since changes have been
92737         made.
92738
92739 2002-09-25  Karl Berry  <karl@gnu.org>
92740
92741         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92742         * lib/getopt*: copy from libc/posix.
92743         * lib/gettext.h: copy from gettext.
92744         * lib/.cppi-disable: add strdup.c, gettext.h.
92745
92746 2002-09-25  Karl Berry  <karl@gnu.org>
92747
92748         * config/srclist.txt: enable gettext.h check.
92749         * config/config.{guess,sub}: update from prep.
92750         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92751                 from automake 1.6.3.
92752         See srclist*.
92753
92754 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92755
92756         * regex.c (PATFETCH): Remove the translating fetch.
92757         (PATFETCH_RAW): Rename to PATFETCH.
92758         (set_image_of_range): New fun.
92759         (SET_RANGE_TABLE_WORK_AREA): Use it.
92760         (regex_compile): Don't translate the pattern chars so eagerly.
92761         Only do it when inserting an `exactn' bytecode or when handling
92762         a char-range.
92763         (mutually_exclusive_p): Avoid empty statement.
92764
92765 2002-07-06  Jim Meyering  <meyering@lucent.com>
92766
92767         * m4/README: Don't mention Makefile.am.in.
92768         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92769
92770 2002-07-01  Jim Meyering  <meyering@lucent.com>
92771
92772         * lib/c-stack.c: Include sys/time.h.
92773         From Volker Borchert.
92774
92775 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92776
92777         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92778
92779 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92780
92781         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92782         New macro.  Use it uniformly instead of
92783         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92784         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92785         reported by Vin Shelton.
92786
92787 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92788
92789         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92790         Do not assume SA_SIGINFO behavior.
92791         Bug reported by Jim Meyering on NetBSD 1.5.2.
92792
92793 2002-06-22  Jim Meyering  <meyering@lucent.com>
92794
92795         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92796         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92797
92798         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92799         now that configure.ac uses AC_GNU_SOURCE.
92800         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92801         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92802
92803         Update to latest tools.  Suggestions from Paul Eggert.
92804         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92805         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92806         * m4/fnmatch.m4: Likewise.
92807         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92808         to AC_HEADER_STDBOOL
92809
92810 2002-06-22  Jim Meyering  <meyering@lucent.com>
92811
92812         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92813         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92814
92815 2002-06-22  Jim Meyering  <meyering@lucent.com>
92816
92817         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
92818
92819         * lib/exitfail.c, exitfail.h: Likewise.
92820         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
92821
92822         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
92823         of fnmatch.h.
92824         (EXTRA_DIST): Add fnmatch_loop.c.
92825         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
92826
92827         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
92828         * lib/fnmatch.c: Update from diffutils-2.8.2.
92829         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
92830         * lib/fnmatch.h: Remove file.
92831
92832 2002-06-21  Jim Meyering  <meyering@lucent.com>
92833
92834         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
92835         * m4/mbrtowc.m4: Likewise.
92836
92837         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
92838         * m4/mbswidth.m4: Reflect name change:
92839         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
92840         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92841
92842         * m4/lib-link.m4: Update from gettext-0.11.2.
92843         * m4/gettext.m4: Likewise.
92844
92845         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
92846         From Alfred M. Szmidt.
92847
92848 2002-06-18  Paul Eggert  <eggert@twinsun.com>
92849
92850         * lib/file-type.h: Report an error if neither S_ISREG nor
92851         S_IFREG is defined, instead of using a test specific to glibc
92852         2.2.  This should be safe, since POSIX requires S_ISREG and
92853         Unix Version 7 had S_IFREG.  We don't need to check for
92854         <sys/types.h> since we don't use any symbols that it defines.
92855
92856 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
92857
92858         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
92859         $@-t, so that each temporary file name is unique and valid in the first
92860         8 characters, for operation under DOS.
92861
92862 2002-06-15  Paul Eggert  <eggert@twinsun.com>
92863
92864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
92865
92866 2002-06-15  Jim Meyering  <meyering@lucent.com>
92867
92868         Work even with DJGPP 2.03, which lacks support for symlinks.
92869         From Richard Dawe.
92870         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
92871         is defined.
92872         * lib/lchown.c (S_ISLNK): Likewise.
92873
92874 2002-06-15  Jim Meyering  <meyering@lucent.com>
92875
92876         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
92877         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
92878         have been included before this file.
92879
92880 2002-06-14  Jim Meyering  <meyering@lucent.com>
92881
92882         * lib/file-type.h: Use the version from diffutils-2.8.2.
92883         * lib/file-type.c: Likewise.
92884
92885 2002-06-07  Jim Meyering  <meyering@lucent.com>
92886
92887         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
92888         They're needed at least for NetBSD 1.5.2.
92889         ($statxfs_includes): Include those same headers.
92890         ($statxfs_includes): Include sys/vfs.h if available.
92891         ($statxfs_includes): Likewise for sys/statvfs.h.
92892         Check for the following members in both structs statfs and statvfs:
92893         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
92894
92895 2002-06-01  Jim Meyering  <meyering@lucent.com>
92896
92897         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
92898         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
92899
92900 2002-05-28  Jim Meyering  <meyering@lucent.com>
92901
92902         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
92903         Reported by Volker Borchert.
92904
92905 2002-05-27  Jim Meyering  <meyering@lucent.com>
92906
92907         Fix a problem seen only on nonconforming systems whereby ls.c's
92908         use of localtime, and then of gettimeofday would cause trouble:
92909         the localtime call used to initialize rpl_gettimeofday's save
92910         mechanism would clobber ls's current local time information so
92911         that in any long listing the first file would always be listed
92912         with date 1970-01-01.  Analysis by Volker Borchert.
92913
92914         * lib/gettimeofday.c (localtime): Undefine.
92915         (rpl_localtime): New function.
92916
92917 2002-05-27  Jim Meyering  <meyering@lucent.com>
92918
92919         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
92920         localtime.
92921
92922         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
92923         use the replacement function; it wouldn't resolve at link time.
92924         Reported by Volker Borchert.
92925
92926 2002-05-22  Jim Meyering  <meyering@lucent.com>
92927
92928         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
92929         file-type.h.
92930         * lib/file-type.h: New file.
92931         * lib/file-type.c (file_type): New file/function.  Extracted from
92932         diffutils.
92933
92934 2002-04-30  Jim Meyering  <meyering@lucent.com>
92935
92936         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
92937
92938 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92939
92940         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
92941
92942 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92943
92944         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
92945         Do not check for alloca.h (no longer used) or stdbool.h (was never
92946         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
92947
92948 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92949
92950         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92951
92952 2002-04-29  Jim Meyering  <meyering@lucent.com>
92953
92954         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92955         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92956         Use AC_FUNC_STRNLEN here instead.
92957
92958         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92959         With autoconf-2.53a, it's part of AC_PROG_CC.
92960
92961 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92962
92963         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92964         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92965
92966 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92967
92968         * lib/sig2str.h, lib/sig2str.c: New files.
92969         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92970
92971 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92972
92973         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92974         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92975         of 127, since 64 is the largest conceivable number for ancient
92976         nonstandard hosts.
92977         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92978
92979 2002-04-28  Jim Meyering  <meyering@lucent.com>
92980
92981         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92982
92983 2002-04-24  Jim Meyering  <meyering@lucent.com>
92984
92985         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92986         (jm_PREREQ): Use it.
92987
92988         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92989         mach/mach.h fcntl.h.
92990         Check for this function: setlocale.
92991
92992 2002-04-24  Jim Meyering  <meyering@lucent.com>
92993
92994         * lib/gettext.h: New file, from Gettext.
92995         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92996         (libfetish_a_SOURCES): Add gettext.h.
92997
92998 2002-04-16  Jim Meyering  <meyering@lucent.com>
92999
93000         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93001         ut_pid, ut_id, ut_exit.
93002
93003 2002-04-16  Jim Meyering  <meyering@lucent.com>
93004
93005         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93006         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93007         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93008
93009 2002-04-12  Jim Meyering  <meyering@lucent.com>
93010
93011         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93012         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93013         existence of the getmntinfo function.  Needed for Darwin 5.3.
93014
93015         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93016         This is necessary at least on Darwin 5.3.
93017
93018         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93019         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93020         strnlen.o in the library, and that makes some versions of ranlib
93021         object.
93022
93023 2002-04-12  Jim Meyering  <meyering@lucent.com>
93024
93025         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93026
93027 2002-04-09  Jim Meyering  <meyering@lucent.com>
93028
93029         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93030         to be more precise.  Rather than saying we're checking whether the
93031         function `works', say what we're testing.
93032         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93033         Reported by Bruno Haible.
93034
93035 2002-03-10  Jim Meyering  <meyering@lucent.com>
93036
93037         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93038         Suggestion from Santiago Vila.
93039
93040 2002-03-08  Jim Meyering  <meyering@lucent.com>
93041
93042         * lib/rename.c: Mention that this wrapper is needed also on
93043         mips-dec-ultrix4.4 systems.
93044
93045 2002-03-02  Jim Meyering  <meyering@lucent.com>
93046
93047         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93048         not HAVE_CLOCK_SETTIME.
93049
93050 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93051
93052         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93053         Check for clock_settime.
93054
93055 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93056
93057         * lib/nanosleep.h: Rename to....
93058         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93059
93060         * lib/gettime.c: New file.
93061         * lib/settime.c: New file.
93062         * lib/stime.c: Remove.
93063
93064         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93065         timespec.h.  Remove nanosleep.h.
93066
93067 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93068
93069         * m4/acl.m4: New file.
93070         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93071         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93072
93073 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93074
93075         * lib/acl.c, lib/acl.h: New files.
93076         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93077
93078 2002-02-24  Jim Meyering  <meyering@lucent.com>
93079
93080         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93081         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93082         cause trouble.  Reported by Nelson Beebe.
93083
93084 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93085
93086         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93087         compilers that don't know that xalloc_die never returns.
93088
93089 2002-02-20  Jim Meyering  <meyering@lucent.com>
93090
93091         * lib/getdate.c: Regenerate using bison-1.33.
93092
93093 2002-02-17  Jim Meyering  <meyering@lucent.com>
93094
93095         * config/config.guess (main): Don't use `head -1'; it's no longer
93096         portable. Use `sed 1q' instead.
93097
93098 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93099
93100         * m4/codeset.m4: Upgrade to gettext-0.11.
93101         * m4/gettext.m4: Upgrade to gettext-0.11.
93102         * m4/glibc21.m4: Upgrade to gettext-0.11.
93103         * m4/iconv.m4: Upgrade to gettext-0.11.
93104         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93105         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93106         * m4/lib-ld.m4: New file, from gettext-0.11.
93107         * m4/lib-link.m4: New file, from gettext-0.11.
93108         * m4/lib-prefix.m4: New file, from gettext-0.11.
93109         * m4/progtest.m4: Upgrade to gettext-0.11.
93110
93111 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93112
93113         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93114         (jm_PREREQ): Use it.
93115
93116 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93117
93118         * lib/posixver.c, lib/posixver.h: New files.
93119         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93120
93121 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93122             Bruno Haible  <bruno@clisp.org>
93123
93124         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93125         (fwrite_success_callback): New declaration.
93126         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93127         print_unicode_char. Call failure callback instead of error.
93128         (fwrite_success_callback): New function.
93129         (exit_failure_callback): New function.
93130         (fallback_failure_callback): New function.
93131         (print_unicode_char): Call unicode_to_mb.
93132
93133 2002-01-26  Jim Meyering  <meyering@lucent.com>
93134
93135         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93136         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93137
93138 2002-01-26  Jim Meyering  <meyering@lucent.com>
93139
93140         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93141
93142 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93143
93144         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93145
93146 2002-01-22  Jim Meyering  <meyering@lucent.com>
93147
93148         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93149         Otherwise, some versions of automake would omit the rule that makes
93150         Makefile from Makefile.in.
93151
93152 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93153
93154         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93155         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93156         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93157         (memcoll): Set errno to zero if there is no error.
93158
93159         * lib/quotearg.c (quotearg_buffer_restyled):
93160         Fix bug with quoting buffers containing NUL when backslashing escapes.
93161         This bug was exposed by the other changes in this patch.
93162         (quotearg_n_options): New arg ARGSIZE.
93163         All callers changed.
93164         (quoting_options_from_style): New function.
93165         (quotearg_n_style): Use it.
93166         (quotearg_n_style_mem): New function.
93167
93168         * lib/quotearg.h (quotearg_n_style_mem): New function.
93169
93170 2002-01-19  Jim Meyering  <meyering@lucent.com>
93171
93172         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93173         Remove useless quotes: DF_PROG="df".
93174         * m4/strnlen.m4: New file.
93175
93176 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93177
93178         * lib/backupfile.c (ISDIGIT): Comment fix.
93179         * lib/getdate.y (ISDIGIT): Likewise.
93180         * lib/posixtm.c (ISDIGIT, year): Likewise.
93181         * lib/strverscmp.c (ISDIGIT): Likewise.
93182         * lib/userspec.c (ISDIGIT): Likewise.
93183
93184 2002-01-16  Jim Meyering  <meyering@lucent.com>
93185
93186         * lib/getdate.y: Add three semicolons, each just before a closing
93187         brace. Bison (as of version 1.31) no longer papers over that mistake.
93188
93189 2002-01-05  Jim Meyering  <meyering@lucent.com>
93190
93191         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93192
93193 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93194
93195         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93196         not silently exit merely because the output buffer happens to
93197         have nothing pending.
93198
93199 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93200
93201         See the big note in ../ChangeLog.
93202         * lib/human.c (suffixes): Prefer K to k for 1024.
93203         (generate_suffix_backwards): New function.
93204         (human_readable_inexact): Use it.
93205         * lib/xstrtol.c (__xstrtol): If there is no number but there
93206         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93207         Accept 'K' as well as 'k'.
93208
93209 2001-12-15  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/regex.h (__restrict_arr): Update from libc.
93212
93213         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93214         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93215         (STREQ): Define.
93216
93217 2001-12-14  Jim Meyering  <meyering@lucent.com>
93218
93219         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93220         Suggestion from Bruno Haible.
93221
93222 2001-12-10  Jim Meyering  <meyering@lucent.com>
93223
93224         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93225         xrealloc, Instead, include "xalloc.h".
93226         (initbuffer): Don't cast xmalloc return value to char*.
93227         (readline): Reword comment.
93228         Don't cast xrealloc return value to char*
93229         Return NULL, not 0.
93230
93231 2001-12-09  Jim Meyering  <meyering@lucent.com>
93232
93233         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93234         about `signed and unsigned type in conditional expression'.
93235         * lib/posixtm.c (posix_time_parse): Likewise.
93236
93237         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93238
93239         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93240         to avoid a pedantic warning.
93241
93242         * lib/getstr.c: Don't include assert.h.
93243         (getstr): Remove warning-evoking assertions.
93244         Return -1 if offset parameter is out of bounds.
93245         Change the type of a local from int to size_t.
93246
93247         * lib/strftime.c (my_strftime_localtime_r): Include this function
93248         definition in the `#if ! HAVE_TM_GMTOFF' block.
93249
93250         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93251         Include xalloc.h instead.
93252
93253 2001-12-02  Jim Meyering  <meyering@lucent.com>
93254
93255         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93256         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93257         included.
93258
93259         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93260         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93261
93262 2001-11-30  Akim Demaille  <akim@epita.fr>
93263
93264         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93265         before being defined.
93266
93267 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93268
93269         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93270         First arg is int, not unsigned.
93271         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93272         (SIZE_MAX, UINT_MAX): New macros.
93273         (quotearg_n_options): Abort if N is negative.
93274         Avoid overflow check on hosts where size_t is 64 bits and int
93275         is 32 bits, as overflow is impossible there.
93276         Fix off-by-one typo that caused unnecessary reallocation.
93277
93278 2001-11-27  Jim Meyering  <meyering@lucent.com>
93279
93280         * lib/tempname.c: Merge with version from libc.
93281         * lib/regex.c: Likewise.
93282
93283         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93284         systems for which STDC_HEADERS is 0, it was not included, resulting in
93285         a warning about an integer-to-pointer conversion problem with getenv.
93286         Reported by Volker Borchert.
93287
93288 2001-11-26  Jim Meyering  <meyering@lucent.com>
93289
93290         * lib/gtod.h: Remove file.
93291         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93292         * lib/gettimeofday.c: Don't include gtod.h.
93293         (GTOD_init): Remove function.
93294         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93295         Suggestion from Volker Borchert.
93296
93297 2001-11-23  Jim Meyering  <meyering@lucent.com>
93298
93299         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93300         it.
93301         * lib/hash.c (struct hash_table): Define it here instead.
93302
93303 2001-11-22  Jim Meyering  <meyering@lucent.com>
93304
93305         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93306
93307 2001-11-20  Jim Meyering  <meyering@lucent.com>
93308
93309         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93310         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93311
93312 2001-11-19  Jim Meyering  <meyering@lucent.com>
93313
93314         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93315         directory.  Use "conftestXXXXXX" as the template.
93316         Suggestion from Paul Eggert.
93317
93318         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93319         immediately, so the test doesn't mistakenly hit the max-open-files
93320         limit.
93321
93322 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93323
93324         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93325         (TEMPORARIES): New macro.
93326         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93327         removes an artificial limitation (e.g. HP-UX 10.20, where
93328         TMP_MAX is 17576).
93329
93330 2001-11-18  Jim Meyering  <meyering@lucent.com>
93331
93332         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93333
93334 2001-11-18  Jim Meyering  <meyering@lucent.com>
93335
93336         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93337         on SunOS 4.
93338
93339         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93340         files will be created before anything else.
93341
93342 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93343
93344         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93345         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93346
93347 2001-11-17  Jim Meyering  <meyering@lucent.com>
93348
93349         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93350         Prompted by a report from Bob Proulx.
93351
93352         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93353         Instead, require UTILS_FUNC_MKSTEMP.
93354
93355 2001-11-17  Jim Meyering  <meyering@lucent.com>
93356
93357         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93358         Now, that's done as part of AC_FUNC_STRTOD.
93359
93360 2001-11-17  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93363         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93364         rather than group writable.  Patch by Juan F. Codagnone.
93365
93366         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93367         xrealloc, Instead, include "xalloc.h".
93368
93369         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93370         Remove explicit declarations of xmalloc, xrealloc,
93371         and xstrdup.  Instead, include "xalloc.h".
93372
93373         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93374         unlocked-io.h.
93375         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93376         Likewise.
93377         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93378
93379         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93380         Reported by Padraig Brady.
93381
93382         * lib/mkstemp.c: #undef mkstemp.
93383         Include config.h.
93384         (rpl_mkstemp): Rename from mkstemp.
93385         Protoize.
93386
93387 2001-11-16  Jim Meyering  <meyering@lucent.com>
93388
93389         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93390         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93391         determine the amount of total physical memory, use pstat_getstatic.
93392         HPUX-11 doesn't define _SC_PHYS_PAGES.
93393         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93394         If sysconf couldn't be used to determine the amount of available
93395         physical memory, use both pstat_getstatic and pstat_getdynamic.
93396         Based on a patch from Bob Proulx.
93397
93398 2001-11-10  Jim Meyering  <meyering@lucent.com>
93399
93400         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93401         (jm_PREREQ): Use it.
93402
93403 2001-11-09  Jim Meyering  <meyering@lucent.com>
93404
93405         * m4/jm-macros.m4: Require autoconf-2.52f.
93406         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93407         Use these AC_-prefixed names, not the AM_-prefixed ones.
93408
93409         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93410
93411 2001-11-05  Jim Meyering  <meyering@lucent.com>
93412
93413         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93414
93415 2001-11-04  Jim Meyering  <meyering@lucent.com>
93416
93417         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93418         $DEFS.
93419
93420 2001-11-03  Jim Meyering  <meyering@lucent.com>
93421
93422         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93423         of AC_DEFUN.
93424
93425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93426         know the name of the variable in the macro definition.
93427
93428 2001-11-03  Jim Meyering  <meyering@lucent.com>
93429
93430         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93431         in argmatch_to_argument call.
93432
93433         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93434         argument.
93435
93436         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93437         e.g., a fault due to an attempt to free a NULL pointer.
93438
93439 2001-11-01  Jim Meyering  <meyering@lucent.com>
93440
93441         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93442         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93443
93444 2001-11-01  Jim Meyering  <meyering@lucent.com>
93445
93446         * lib/dirfd.c, lib/dirfd.h: New files.
93447         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93448
93449         * lib/hash.c (hash_print) [TESTING]: Clean up.
93450
93451 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93452
93453         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93454         to avoid a warning if -Wall.
93455
93456 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93457
93458         * README: New file
93459         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93460         (per RMS's instructions, this is now the canonical source)
93461         * lgpl/, gpl/: New directories.
93462
93463 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93464
93465         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93466
93467 2001-10-21  Jim Meyering  <meyering@lucent.com>
93468
93469         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93470         this code would end up calling gettext even in packages built
93471         with --disable-nls.
93472         * lib/getopt.c (_): Likewise.
93473         * lib/regex.c (_): Likewise.
93474
93475 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93476
93477         * m4/error.m4 (jm_PREREQ_ERROR):
93478         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93479         AC_FUNC_STRERROR_R does that.
93480         Check for strerror declaration.
93481
93482         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93483         are supposed to have them these days.
93484         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93485         Merge changes from latest Autoconf CVS.
93486         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93487         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93488         POSIX decided to standardize on the int flavor of strerror_r.
93489
93490 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93491
93492         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93493         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93494         Use strerror_r that is only a macro, even if it is not a function.
93495         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93496         (private_strerror): Use prototypes, not old-style function definition.
93497         (print_errno_message): New function.
93498         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93499         char*-flavored one.
93500         (error_tail, error, error_at_line): Use it.
93501
93502 2001-10-11  Jim Meyering  <meyering@lucent.com>
93503
93504         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93505         and quote_n (1, ... to avoid clobbering a buffer.
93506
93507 2001-10-05  Jim Meyering  <meyering@lucent.com>
93508
93509         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93510         hash-pjw.h.
93511         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93512         * lib/hash-pjw.h: New file.
93513
93514 2001-09-30  Jim Meyering  <meyering@lucent.com>
93515
93516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93517         `struct fsstat' has the `f_fstypename' member.
93518         Use that to define FS_TYPE, which is now used to make
93519         the getfsstat link test tighter.
93520
93521 2001-09-30  Jim Meyering  <meyering@lucent.com>
93522
93523         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93524         Include <sys/ucred.h>, for Apple Darwin.
93525         Include sys/mount.h and sys/fs_types.h only if available.
93526         (FS_TYPE): Define.
93527         (read_filesystem_list): Use FS_TYPE.
93528
93529 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93530
93531         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93532         a boolean context.
93533
93534 2001-09-29  Jim Meyering  <meyering@lucent.com>
93535
93536         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93537         [one-argument getmntent function]): Include stdio.h before mntent.h.
93538         SunOS 4.1.x needs it for the declaration of `FILE'.
93539         Patch by Volker Borchert.
93540
93541         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93542         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93543         sys/fs_types.h, and make the link-test for getfsstat guard #include
93544         directives with appropriate #if HAVE_*_H tests so that we can
93545         detect getfsstat on Apple Darwin1.3.7 systems.
93546         Reported by Nelson Beebe.
93547         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93548
93549 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93550
93551         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93552         #defines strtoimax.  Also treat the other strto* functions
93553         like strtoimax.
93554
93555         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93556         Check for strtoul and strtoumax,
93557         as those declarations are made even in the signed case.
93558         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93559         Likewise, for strtol and strtoimax.
93560
93561 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93562
93563         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93564         #defines strtoimax.  Also treat the other strto* functions
93565         like strtoimax.
93566
93567         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93568         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93569         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93570
93571 2001-09-26  Jim Meyering  <meyering@lucent.com>
93572
93573         Most macros in unlocked-io.h had the wrong number of arguments.
93574         * lib/gen-uio: New script.
93575         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93576         * lib/unlocked-io.hin: Remove file.
93577         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93578         rather than trying to embed it here.
93579         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93580         Reported by Padraig Brady.
93581
93582 2001-09-25  Volker Borchert  <bt@teknon.de>
93583
93584         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93585         `result'.
93586
93587 2001-09-24  Jim Meyering  <meyering@lucent.com>
93588
93589         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93590
93591 2001-09-23  Jim Meyering  <meyering@lucent.com>
93592
93593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93594         instead of the mere test for existence of mntent.h.  The latter
93595         would get a false-positive on AIX 3.4 systems.
93596         In the outer getmntent if-block, don't die if neither of the getmntent
93597         tests succeeds.  Instead, just fall through and continue with the
93598         remaining tests.
93599
93600 2001-09-23  Jim Meyering  <meyering@lucent.com>
93601
93602         * lib/mountlist.c: Remove useless parentheses in #if directives.
93603         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93604         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93605
93606 2001-09-22  Jim Meyering  <meyering@lucent.com>
93607
93608         * m4/gettext.m4: New file.  From gettext.
93609         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93610         * m4/progtest.m4: Likewise
93611         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93612         * m4/glibc21.m4: Likewise.
93613
93614         * m4/libintl.m4: Remove.  No longer used.
93615
93616 2001-09-22  Jim Meyering  <meyering@lucent.com>
93617
93618         * lib/localcharset.c: Update from latest gettext.
93619         * lib/config.charset: Likewise.
93620
93621 2001-09-20  Jim Meyering  <meyering@lucent.com>
93622
93623         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93624         strtoimax.
93625         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93626         strtoumax.
93627
93628 2001-09-20  Jim Meyering  <meyering@lucent.com>
93629
93630         * lib/xstrtol.c (strtoimax): Guard declaration with
93631         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93632         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93633         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93634         (strtoumax): Likewise, for completeness (it wasn't necessary).
93635
93636 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/strtoimax.c (HAVE_LONG_LONG):
93639         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93640         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93641         to work around bug in IBM C compiler.
93642
93643 2001-09-17  Jim Meyering  <meyering@lucent.com>
93644
93645         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93646         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93647         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93648         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93649         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93650         whenever the right hand side need not be expanded by the shell.
93651
93652 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93653
93654         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93655         library.  It's not correct, as some older glibcs are buggy.
93656         fnmatch wasn't fixed until glibc 2.2.
93657
93658         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93659         special shell magic here.
93660
93661 2001-09-16  Jim Meyering  <meyering@lucent.com>
93662
93663         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93664         * m4/jm-macros.m4: Require it.
93665
93666 2001-09-16  Jim Meyering  <meyering@lucent.com>
93667
93668         * lib/mkdir.c: New file.
93669
93670 2001-09-15  Jim Meyering  <meyering@lucent.com>
93671
93672         * m4/jm-macros.m4: Check for help2man.
93673
93674 2001-09-11  Jim Meyering  <meyering@lucent.com>
93675
93676         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93677         The body, by Paul Eggert, was moved here from configure.in.
93678         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93679
93680 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93681
93682         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93683         (jm_PREREQ): Use it.
93684
93685 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93686
93687         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93688         Use ssize_t, not int, to store result of readlink.
93689         Check for ssize_t overflow as well as size_t overflow,
93690         as POSIX says the result of readlink is implementation-defined
93691         when ssize_t overflows.
93692         Remove unnecessary cast to char*.
93693         Use free+malloc instead of realloc, as the storage doesn't need
93694         to be preserved and it's clearer and can be more efficient that way.
93695         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93696         * lib/xreadlink.h (xreadlink): Update prototype.
93697
93698 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93699
93700         * lib/xgetcwd.c: Revert some of the previous change; intead,
93701         fix the HAVE_GETCWD_NULL code to behave more like the
93702         !HAVE_GETCWD_NULL code used to.
93703
93704         Include "xalloc.h".
93705         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93706         invoke xalloc_die.
93707
93708 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93709
93710         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93711         sys/param.h, as pathmax.h includes them.
93712
93713 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93714
93715         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93716         (jm_PREREQ_XGETCWD): New macro.
93717
93718         * m4/getcwd.m4: New file.
93719
93720 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93721
93722         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93723         like the HAVE_GETCWD_NULL code.
93724         Include pathmax.h if not HAVE_GETCWD.
93725         Do not include xalloc.h.
93726         (INITIAL_BUFFER_SIZE): New symbol.
93727         Do not use xmalloc / xrealloc, since the caller is responsible for
93728         handling errors.  Preserve errno around `free' during failure.
93729         Do not overrun buffer when using getwd.
93730
93731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93732
93733         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93734         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93735         getcwd (NULL, 0).
93736
93737 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93738
93739         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93740         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93741         spotted by Jim Meyering.
93742
93743 2001-09-03  Jim Meyering  <meyering@lucent.com>
93744
93745         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93746         failure.
93747
93748 2001-09-02  Jim Meyering  <meyering@lucent.com>
93749
93750         * lib/error.c: Update from GNU libc.
93751
93752 2001-09-01  Jim Meyering  <meyering@lucent.com>
93753
93754         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93755         Used by df.
93756
93757 2001-09-01  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/xreadlink.c: New file.
93760         * lib/xreadlink.h: New file.
93761         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93762         xreadlink.h.
93763
93764         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93765         doesn't conflict with sparc Solaris 7's definition in
93766         /usr/include/sys/int_types.h.
93767
93768         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93769         files.
93770         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93771         and strncasecmp as r-values.  Unixware didn't have declarations.
93772
93773 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93774
93775         * lib/xstrtol.h: Add copyright notice.
93776         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93777         LONGINT_INVALID_SUFFIX_CHAR.
93778
93779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93780
93781         * lib/xstrtol.c (strtoimax): New decl.
93782
93783 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93784
93785         * lib/xgetcwd.c: Don't include pathmax.h.
93786         Include stdlib.h and unistd.h if available.
93787         Include xalloc.h.
93788         (xmalloc, xstrdup, free): Remove decls.
93789         (xgetcwd): Don't assume sizes fit in unsigned.
93790         Check for overflow when computing sizes.
93791         Simplify reallocation code.
93792
93793 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93794
93795         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93796         a directory's st_size can have an arbitrary value, so the old
93797         usage could waste an arbitrary amount of memory.  All uses
93798         changed.
93799         * lib/savedir.h: Update prototype.
93800
93801 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93802
93803         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93804
93805         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93806         old strtoimax.c.
93807
93808         Also, make the following further changes to make this file's
93809         configuration more similar to that of strtol.c:
93810         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93811         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93812         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93813         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93814         changed to signed values.
93815
93816         And make the following changes as well:
93817         Fix copyright notice, as 1999 was missing.
93818         (verify): New macro.
93819         (strtoimax): Check sizes at compile-time, not run-time.
93820         Prefer strtol to strtoll if both work.
93821         (main): Remove; it was not that useful and was a pain to maintain.
93822
93823         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
93824
93825 2001-08-31  Jim Meyering  <meyering@lucent.com>
93826
93827         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
93828         Use an initial, malloc'd, buffer of length 128 rather than
93829         a statically allocated one of length 1024.
93830
93831 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93832
93833         Simplify code, partly by assuming autoconf 2.52 semantics.
93834
93835         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
93836
93837         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
93838         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
93839         All uses removed.
93840         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
93841         Move AC_REQUIRE to next-to-top level, to avoid confusion.
93842         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
93843         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
93844         jm_AC_HEADER_INTTYPES_H.
93845         * m4/jm-macros.m4 (jm_MACROS): Likewise.
93846
93847         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
93848
93849         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93850         Quote first arg of AC_DEFUN.
93851         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
93852         since they are needed to parse the include file even if we need
93853         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
93854         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
93855         but with opposite signedness.
93856
93857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93858
93859         Merge 'exclude' changes from tar 1.13.22.
93860         This fixes one or two unlikely storage allocation overflow bugs,
93861         but doesn't change user-visible behavior otherwise.
93862
93863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93864
93865         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
93866         (jm_PREREQ_EXCLUDE): New macro.
93867
93868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93869
93870         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
93871         tm to be declared.
93872
93873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93874
93875         * lib/hash.c: Remove '2001' from copyright notice.
93876
93877 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93878
93879         * lib/full-write.h: New file.
93880         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
93881         * lib/full-write.c: Correct credits, as cccp.c no longer
93882         exists and anyway it was so heavily changed from the old cccp
93883         code as to be unrecognizable.  Include full-write.h.
93884         (full_write): Return size_t, with short writes meaning failure.
93885         All callers changed.  This fixes a bug with large buffers
93886         on 64-bit hosts.
93887         * lib/utime.c: Include full-write.h.
93888
93889 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93890
93891         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
93892         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
93893         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
93894         Include if available.
93895         (<xalloc.h>): Include
93896         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
93897         (verify): New macro.  Use it to verify that EXCLUDE macros do not
93898         collide with FNM macros.
93899         (struct patopts): New struct.
93900         (struct exclude): Use it, as exclude patterns now come with options.
93901         (new_exclude): Support above changes.
93902         (new_exclude, add_exclude_file):
93903         Initial size must now be a power of two to simplify overflow checking.
93904         (free_exclude, fnmatch_no_wildcards): New function.
93905         (excluded_filename): No longer requires options arg, as the options
93906         are determined by add_exclude.  Now returns bool, not int.
93907         (excluded_filename, add_exclude):
93908         Add support for the fancy new exclusion options.
93909         (add_exclude, add_exclude_file): Now takes int options arg.
93910         Check for arithmetic overflow when computing sizes.
93911         (add_exclude_file): xrealloc might modify errno, so don't
93912         realloc until after errno might be used.
93913
93914         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
93915         New macros.
93916         (free_exclude): New decl.
93917         (add_exclude, add_exclude_file): Now takes int options arg.
93918         (excluded_filename): No longer requires options arg, as the options
93919         are determined by add_exclude.  Now returns bool, not int.
93920
93921 2001-08-30  Paul Eggert  <eggert@twinsun.com>
93922
93923         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
93924
93925 2001-08-27  Jim Meyering  <meyering@lucent.com>
93926
93927         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
93928
93929         * lib/version-etc.c (N_): Remove definition.
93930         Revert most of last change.
93931         Instead, simply don't mark the `Copyright...' string for translation.
93932         Based on advice from Paul Eggert.
93933
93934         * lib/strtoxmax.c: Tweak comment.
93935
93936 2001-08-26  Jim Meyering  <meyering@lucent.com>
93937
93938         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
93939
93940         * m4/xstrtoimax.m4: New file.
93941         * m4/xstrtoumax.m4: Add comments explaining why we
93942         AC_REPLACE_FUNCS(strtol).
93943
93944 2001-08-26  Jim Meyering  <meyering@lucent.com>
93945
93946         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
93947         of copyright with `%s' so translators don't get an untranslated
93948         message in 2002.
93949         (COPYRIGHT_YEAR): Define.
93950         (version_etc): Use fprintf rather than fputs.
93951         Suggestion from Ulrich Drepper.
93952
93953         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93954
93955         * lib/strtoll.c: New file, from GNU libc.
93956         * lib/xstrtoimax.c: New file.
93957
93958         * lib/xstrtol.h: Add xstrtoimax.
93959         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93960         * lib/strtoimax.c: New file.  Likewise, but first define
93961         STRTOUXMAX_SIGNED.
93962
93963         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93964         ...
93965         * lib/strtoxmax.c: ... then renamed to this.
93966
93967 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93968
93969         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93970         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93971         (jm_AC_TYPE_INTMAX_T): New macro.
93972         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93973
93974         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93975
93976         * m4/longlong.m4: Renamed from ulonglong.m4.
93977         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93978         * m4/uintmax_t.m4: Removed.
93979
93980 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93981
93982         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93983         Port to Solaris 8, where 'sed' requires a space after the 'r'
93984         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93985         Redirect output to $tmp just once.
93986
93987 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93988
93989         * lib/addext.c (<errno.h>): Include.
93990         (errno): Declare if not defined.
93991         (addext): Work correctly when pathconf returns -1 and leaves
93992         errno alone because there is no limit.  Also, work even if
93993         pathconf returns a value greater than SIZE_MAX.
93994
93995 2001-08-12  Jim Meyering  <meyering@lucent.com>
93996
93997         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93998         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93999         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94000         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94001         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94002         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94003         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94004         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94005         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94006         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94007         utime.m4, utimes.m4, xstrtoumax.m4:
94008         Quote the first argument in each use of AC_DEFUN.
94009
94010 2001-08-12  Jim Meyering  <meyering@lucent.com>
94011
94012         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94013         Simply `return getcwd (NULL, 0);'.
94014         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94015         Use 1300 as initial value for length, not PATH_MAX.
94016
94017         * lib/pathmax.h: Clean up cpp syntax.
94018
94019 2001-08-12  Jim Meyering  <meyering@lucent.com>
94020
94021         * lib/gettimeofday.c: New file.
94022         * lib/gtod.h: New file.
94023         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94024
94025 2001-08-05  Jim Meyering  <meyering@lucent.com>
94026
94027         * m4/jm-macros.m4: Require autoconf-2.52.
94028
94029 2001-08-04  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94032         stmt, to get in sync with glibc.
94033
94034 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94035
94036         The following changes are from gettext 0.10.39 as maintained by
94037         Bruno Haible.
94038
94039         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94040         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94041         with inverted sense.  All uses changed.
94042
94043         * lib/mbswidth.c: Don't include <limits.h>.
94044         Include <stdlib.h> and <string.h> unconditionally.
94045         (iswcntrl, mbsinit, ISCNTRL): New macros.
94046         (mbsnwidth): Use K&R style function declarations.
94047         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94048         can optimize it when MB_CUR_MAX == 1.
94049         The width of control characters is zero, not 1.
94050
94051 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94052
94053         The following changes are from gettext 0.10.39 as maintained by
94054         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94055
94056         * m4/codeset.m4: Upgrade to serial AM1.
94057         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94058         all uses changed.  Quote first arg of AC_DEFUN.
94059         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94060
94061         * m4/iconv.m4: Upgrade to serial AM2.
94062         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94063         Add --with-libconv-prefix.
94064         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94065         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94066         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94067         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94068         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94069
94070         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94071         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94072         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94073         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94074         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94075         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94076         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94077         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94078         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94079
94080         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94081         string.h any more.
94082
94083         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94084         not the default value.
94085
94086         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94087         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94088         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94089         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94090         Also check for iswcntrl, used for wcwidth fallback.
94091         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94092         to Autoconf 2.13.
94093
94094 2001-08-03  Jim Meyering  <meyering@lucent.com>
94095
94096         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94097         as it was in the original.  Reported by Paul Eggert.
94098
94099 2001-07-16  Jim Meyering  <meyering@lucent.com>
94100
94101         * m4/gettimeofday.m4: New file.
94102         Prompted by a report from Bernhard Baehr.
94103
94104 2001-07-15  Jim Meyering  <meyering@lucent.com>
94105
94106         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94107         stuff. Now it's in ../Makefile.cfg.
94108
94109 2001-07-15  Jim Meyering  <meyering@lucent.com>
94110
94111         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94112         (BUILT_SOURCES): Add unlocked-io.h.
94113         (io_functions): Define.
94114         (unlocked-io.h): New rule.
94115         (DISTCLEANFILES): Add unlocked-io.h.
94116         (all-local): Depend on unlocked-io.h, to ensure it is created.
94117
94118         * lib/unlocked-io.hin: New file
94119
94120         * lib/regex.c: Update from glibc.
94121
94122 2001-07-05  Jim Meyering  <meyering@lucent.com>
94123
94124         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94125         recommendation.
94126         (libfetish_a_SOURCES): Put all .h files here instead.
94127         Remove a thus-exposed (better checks in automake) duplicate and
94128         two unnecessary .h files.
94129
94130 2001-07-04  Jim Meyering  <meyering@lucent.com>
94131
94132         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94133         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94134         distcheck failure.
94135
94136 2001-07-02  Jim Meyering  <meyering@lucent.com>
94137
94138         The following changes were prompted by suggestions from Bruno Haible.
94139
94140         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94141         is now generated.
94142         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94143         definition of EXTRA_DIST.
94144         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94145         ensure that the generated file is created/updated whenever the list
94146         of $(unlocked_functions) is changed.
94147         (jm-glibc-io.m4): New rule.
94148         (unlocked-io.h): New rule -- currently unused.
94149
94150 2001-06-24  Jim Meyering  <meyering@lucent.com>
94151
94152         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94153         unmatched right bracket, rather than kludging it with an extra,
94154         falsely-matching quote in a comment.  Patch by Akim Demaille.
94155
94156 2001-06-11  Jim Meyering  <meyering@lucent.com>
94157
94158         * lib/regex.c: Update from GNU libc.
94159
94160 2001-05-27  Jim Meyering  <meyering@lucent.com>
94161
94162         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94163         Check for ut_type in struct utmp.
94164
94165 2001-05-27  Jim Meyering  <meyering@lucent.com>
94166
94167         * lib/readutmp.h (UT_TYPE): Define.
94168
94169 2001-05-24  Jim Meyering  <meyering@lucent.com>
94170
94171         * lib/argmatch.c: Include "quote.h".
94172         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94173         quote function.  Reported by Göran Uddeborg.
94174
94175 2001-05-22  Jim Meyering  <meyering@lucent.com>
94176
94177         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94178         now that we use the package-supplied version unconditionally.
94179         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94180
94181 2001-05-21  Jim Meyering  <meyering@lucent.com>
94182
94183         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94184         shell syntax errors.
94185
94186 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94187
94188         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94189
94190 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94191
94192         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94193         Don't bother to check library strftime, since
94194         we'll be using our own my_strftime function anyway.
94195         Define my_strftime instead of strftime.
94196
94197 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94198
94199         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94200         which is not yet declared.
94201
94202 2001-05-15  Jim Meyering  <meyering@lucent.com>
94203
94204         * m4/regex.m4: Use proper quoting so brackets appear in the test
94205         program.
94206         Reported by, and with help from, Bruno Haible.
94207
94208 2001-05-13  Jim Meyering  <meyering@lucent.com>
94209
94210         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94211         undefined.
94212
94213 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94214
94215         dirname code cleanup.  base_name now behaves more compatibly
94216         with POSIX basename when given file names that have trailing
94217         slashes, and similarly for dir_name.  Add new primitives
94218         base_len and dir_len.  Put the directory-name-related decls
94219         into dirname.h.
94220
94221         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94222         * lib/backupfile.c (base_name): Likewise.
94223         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94224         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94225         * lib/makepath.c (strip_trailing_slashes): Likewise.
94226         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94227         ISSLASH): Likewise.
94228         * lib/rename.c (strip_trailing_slashes): Likewise.
94229         * lib/same.c (base_name): Likewise.
94230         * lib/stripslash.c (ISSLASH): Likewise.
94231
94232         * lib/addext.c: Include <dirname.h> after size_t is defined.
94233         * lib/backupfile.c: Likewise.
94234
94235         * lib/addext.c (addext): Use base_len to trim redundant
94236         trailing slashes instead of doing it ourselves.
94237         But do not trim the last slash if it is not redundant.
94238
94239         * lib/backupfile.c (find_backup_file_name,
94240         max_backup_version): Use base_len instead of rolling it ourselves.
94241         Handle the case of "" and (on DOS) "C:" correctly.
94242
94243         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94244         needed. Include <string.h>, <dirname.h>.
94245         (base_name): Allow file names ending in slashes, other than names
94246         that are all slashes.  In this case, return the basename followed
94247         by the slashes.  This is more general, and can be used in places
94248         where the original base_name purposely had an assertion failure.
94249         (base_len): New function.
94250
94251         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94252         Do not include <assert.h>; no longer needed.
94253         Include xalloc.h.
94254         (memrchr): Remove decl.
94255         (dir_name_r): Remove.
94256         (dir_len): Renamed from dirlen.  All callers changed.
94257         Rewrite in terms of base_name, for simplicity and consistency.
94258         (dir_name): Never return NULL.  All callers changed.
94259         Do not include <stdlib.h> in test program; no longer needed.
94260         return 0; is fine for test program.
94261
94262         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94263         New macros.
94264         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94265
94266         * lib/path-concat.c (path_concat): Use base_len to compute
94267         base length, not strlen; this means we cannot rely on memcpy
94268         to null-terminate.
94269
94270         * lib/same.c (STREQ): Remove.
94271         (same_name): Handle the case where the basename ends in trailing '/'.
94272
94273         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94274         a slash was stripped.  Do not strip the last slash after a
94275         file system prefix.
94276
94277 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94278
94279         * lib/Makefile.am (libfetish_a_SOURCES):
94280         Add strftime.c, since we now compile it on all hosts.
94281
94282         * lib/strftime.c (my_strftime):
94283         Define to nstrftime if emacs, but only if my_strftime is not defined.
94284         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94285         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94286         Add one more extra argument: a nanoseconds value.
94287         All uses changed.
94288         (ns): New macro.
94289         (my_strftime function): Add %N format.
94290         (emacs_strftimeu): Renamed from emacs_strftime,
94291         with extra ut argument.
94292
94293 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94294
94295         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94296
94297 2001-04-21  Jim Meyering  <meyering@lucent.com>
94298
94299         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94300         doesn't interfere.
94301
94302 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94303
94304         * m4/ftruncate.m4: Check for chsize.
94305         Link with ftruncate.o unconditionally if ftruncate is missing.
94306         This was required when cross-compiling to i586-mingw32msvc.
94307
94308 2001-04-08  Jim Meyering  <meyering@lucent.com>
94309
94310         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94311         recomputed; that's necessary when the offset spans a DST transition.
94312         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94313
94314 2001-04-02  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/regex.h, regex.c: Update from GNU libc.
94317
94318 2001-03-24  Jim Meyering  <meyering@lucent.com>
94319
94320         * m4/jm-macros.m4: Require autoconf-2.49d.
94321
94322 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94323
94324         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94325
94326 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94327
94328         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94329
94330 2001-03-17  Jim Meyering  <meyering@lucent.com>
94331
94332         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94333         now that the version in autoconf is equivalent.
94334         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94335
94336         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94337         Suggestion from Akim Demaille.
94338
94339         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94340         (jm_PREREQ_TEMPNAME): New function.
94341
94342 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94343
94344         * lib/tempname.c (uint64_t): Define to uintmax_t if
94345         not defined, and if UINT64_MAX is not defined.
94346         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94347         Reported by John David Anglin.
94348
94349 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94350
94351         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94352         resolve alias if codeset is empty.
94353         * lib/config.charset (BeOS): Use wildcard syntax.
94354
94355 2001-03-13  Jim Meyering  <meyering@lucent.com>
94356
94357         * lib/path-concat.c (path_concat)
94358         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94359         concatenating e.g., `C:' and `foo'.
94360         From Bruno Haible.
94361
94362 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94363
94364         * lib/localcharset.c (locale_charset): Don't use
94365         setlocale(LC_CTYPE,NULL). Don't return NULL.
94366         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94367
94368 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94369
94370         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94371         support for DOS/DJGPP.
94372
94373 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94374
94375         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94376         lacks mkstemp.  Compile our own tempname.c if we compile our own
94377         mkstemp.c, as mkstemp relies on tempname.
94378
94379 2001-03-01  Jim Meyering  <meyering@lucent.com>
94380
94381         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94382         AH_VERBATIM really does output its argument verbatim.
94383
94384 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94385
94386         * lib/Makefile.am (libfetish_a_SOURCES):
94387         Add dup-safer.c, fopen-safer.c.
94388         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94389
94390         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94391         * lib/unistd-safer.h: New files.
94392
94393 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94394
94395         The mkstemp replacement is taken from glibc 2.2.2, with some
94396         portability fixes for use outside glibc, as follows:
94397
94398         * lib/tempname.c (struct_stat64): New macro.
94399         (direxists, __gen_tempname): Use it.
94400         This avoids a portability problem with Solaris 8.
94401
94402         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94403         (<stddef.h>, <stdint.h>, <string.h>):
94404         Include only if STDC_HEADERS || _LIBC.
94405         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94406         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94407         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94408         (__set_errno): Define this macro if <errno.h> doesn't.
94409         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94410         Define these macros if <stdio.h> doesn't.
94411         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94412         Define these macros if <sys/stat.h>
94413         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94414         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94415         __xstat64): Define if not _LIBC.
94416         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94417         (__gen_tempname): Invoke gettimeofday only if
94418         HAVE_GETTIMEOFDAY || _LIBC;
94419         otherwise, fall back on plain "time".
94420         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94421
94422         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94423
94424         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94425
94426 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94427
94428         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94429
94430 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94431
94432         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94433         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94434         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94435         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94436
94437 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94438
94439         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94440         Remove workaround macros for hosts that have mbrtowc but not
94441         mbstate_t, as we now insist on proper declarations for both
94442         before using mbrtowc.
94443
94444 2001-02-17  Jim Meyering  <meyering@lucent.com>
94445
94446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94447         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94448         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94449         UnixWare 7.1.1.
94450
94451         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94452         rather than AC_CACHE_VAL.
94453
94454 2001-02-17  Jim Meyering  <meyering@lucent.com>
94455
94456         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94457         around included file name.
94458
94459         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94460
94461         * lib/strftime.c: Update from GNU libc (the only changes were to
94462         comments).
94463
94464 2001-02-17  Jim Meyering  <meyering@lucent.com>
94465
94466         * lib/regex.c: Update from libc.
94467
94468 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94469
94470         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94471         clash.
94472
94473 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94474
94475         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94476         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94477         Reported by Mark Hounschell via Paul Eggert.
94478
94479 2001-02-07  Jim Meyering  <meyering@lucent.com>
94480
94481         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94482
94483 2001-02-05  Jim Meyering  <meyering@lucent.com>
94484
94485         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94486         it includes the patch required for `large file' support with at least
94487         HP-UX's 10.20 /bin/cc.
94488
94489 2001-02-03  Jim Meyering  <meyering@lucent.com>
94490
94491         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94492         AS_IF, now that it works once again (mysteriously).
94493         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94494
94495 2001-01-30  Jim Meyering  <meyering@lucent.com>
94496
94497         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94498         * m4/chown.m4: Rename conftestchown to conftest.chown.
94499         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94500         s/conftestdir2/conftest.d2/.
94501         * m4/utimes.m4: s/conftestdata/conftest.data/
94502         Inspired by Pavel Roskin's change in autoconf.
94503
94504 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94505
94506         * lib/config.charset: Update for FreeBSD 4.2.
94507
94508 2001-01-27  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94511         a use of AS_IF.
94512         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94513
94514 2001-01-26  Jim Meyering  <meyering@lucent.com>
94515
94516         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94517         quotearg.c includes it.
94518
94519 2001-01-26  Jim Meyering  <meyering@lucent.com>
94520
94521         * lib/quotearg.c: Include stddef.h.
94522         * lib/quote.c: Include stddef.h.
94523         Reported by Axel Kittenberger.
94524
94525         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94526         line in double quotes so that it evokes a better diagnostic.
94527         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94528         Reported by Axel Kittenberger.
94529
94530 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94531
94532         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94533         as if it was a `charset'.
94534
94535 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94536
94537         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94538         has const.
94539
94540 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94541
94542         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94543         to avoid a warning.  Add back 'const' to inptr.
94544
94545 2001-01-20  Jim Meyering  <meyering@lucent.com>
94546
94547         Be sure that headers are checked before used in code compiled
94548         for the type checks.
94549         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94550         In place of that, invoke jm_CHECK_ALL_TYPES.
94551         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94552         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94553         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94554         The check for ssize_t was mistakenly run before the test for unistd.h.
94555
94556         The configure-time check for stdbool.h was missing.
94557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94558         (jm_PREREQ_HASH): New function.
94559
94560 2001-01-17  Jim Meyering  <meyering@lucent.com>
94561
94562         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94563         for autoconf-2.49c.
94564         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94565
94566 2001-01-16  Jim Meyering  <meyering@lucent.com>
94567
94568         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94569         From Bruno Haible.
94570
94571 2001-01-14  Jim Meyering  <meyering@lucent.com>
94572
94573         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94574         foo and bar.  Create conftestdir/ in the script, not in the C code.
94575         Remove directories in the script, not in the C code.
94576         Remove conftestdir{,2} before trying to create the directory.
94577         Make the entire configure script fail if the mkdir fails.
94578
94579 2001-01-14  Jim Meyering  <meyering@lucent.com>
94580
94581         * lib/rename.c: New file.  From Volker Borchert.
94582         Include stdlib.h, string.h or strings.h, and xalloc.h.
94583         Use strip_trailing_slashes rather than open-coding it.
94584
94585 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94586
94587         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94588
94589 2001-01-03  Jim Meyering  <meyering@lucent.com>
94590
94591         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94592         of local `inptr' to avoid warning with some system declarations of
94593         iconv.
94594
94595 2001-01-02  Volker Borchert  <bt@teknon.de>
94596
94597         * m4/rename.m4: New file.
94598         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94599
94600 2001-01-01  Jim Meyering  <meyering@lucent.com>
94601
94602         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94603         even on systems with utmpx.h.  It's necessary for the declaration of
94604         utmp's ut_user member.  Reported by Andreas Jaeger.
94605
94606         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94607         available. They are required for the declarations of getgrgid and
94608         getpwuid resp.
94609         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94610         Reported by Andreas Jaeger.
94611
94612 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94613
94614         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94615         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94616         so `make install' also works in VPATH builds.
94617
94618 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94619
94620         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94621         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94622         can be used in subdirectories.
94623
94624 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94625
94626         * lib/modechange.c: Do not assume that mode_t uses the
94627         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94628         the other-execute bit of FOO even if S_IXOTH != 1.
94629
94630         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94631         WOTH, XOTH, ALLM): New macros.
94632         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94633          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94634         Use them.
94635         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94636         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94637         (mode_compile):
94638         No need to use uintmax_t; unsigned long is long enough.
94639         Don't bother to get suffix since we don't use it.
94640
94641 2000-12-26  Jim Meyering  <meyering@lucent.com>
94642
94643         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94644         better with autoheader.
94645
94646 2000-12-24  Jim Meyering  <meyering@lucent.com>
94647
94648         * lib/hash.c (is_prime): Return explicit boolean values.
94649         (hash_get_first): Return NULL to appease Irix5.6's 89.
94650         Reported by Nelson Beebe.
94651
94652 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94653
94654         * lib/localcharset.c (locale_charset): Add support for Win32.
94655
94656 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94657
94658         * lib/physmem.h, lib/physmem.c: New files.
94659
94660         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94661         (noinst_HEADERS): Add physmem.h.
94662
94663         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94664         't' for compatibility with Solaris 8 sort.
94665
94666 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94667
94668         * lib/config.charset: Add support for BeOS.
94669
94670 2000-12-17  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94673         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94674
94675 2000-12-16  Jim Meyering  <meyering@lucent.com>
94676
94677         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94678         N and M) would have treated it like `chown N:N FILE'.
94679
94680         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94681
94682 2000-12-16  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94685         SHELLS_FILE to a file name that's useful on djgpp systems.
94686         Include stdlib.h.
94687         (ADDITIONAL_DEFAULT_SHELLS): Define.
94688         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94689         Based mostly on a patch from Prashant TR.
94690
94691 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94692
94693         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94694         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94695         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94696
94697 2000-12-08  Andreas Schwab  <schwab@suse.de>
94698
94699         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94700         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94701
94702 2000-12-07  Jim Meyering  <meyering@lucent.com>
94703
94704         * lib/stripslash.c (ISSLASH): Define.
94705         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94706         `/'.
94707         From Prashant TR.
94708
94709         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94710         (dir_name_r): Declare this function as static.
94711         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94712         manifest itself on a name containing a mix of slashes and
94713         backslashes.
94714         Make this function work with names starting with a DOS-style
94715         drive letter and colon prefix.
94716         (dir_name): Append `.' if necessary.
94717         Based mostly on patches from Prashant TR and Eli Zaretskii.
94718
94719         * lib/dirname.h (dir_name_r): Remove prototype.
94720
94721 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94722
94723         * m4/off_t-format.m4: Remove this file.
94724         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94725
94726 2000-12-06  Jim Meyering  <meyering@lucent.com>
94727
94728         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94729         replacement strtoull, we may well need the replacement strtoul, too.
94730         Check for declarations of strtoul and strtoull.
94731         Check for strtol.  Mainly as a cue to cause automake to include
94732         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94733         Check for limits.h -- strtol.c needs it.
94734
94735 2000-12-05  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94738
94739 2000-12-04  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94742         Also include memory.h, stdlib.h, unistd.h if appropriate.
94743         Reported by Andreas Jaeger (conflicting declaration of malloc).
94744
94745 2000-12-02  Jim Meyering  <meyering@lucent.com>
94746
94747         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94748         * m4/jm-macros.m4 (jm_MACROS): require it.
94749
94750 2000-12-02  Jim Meyering  <meyering@lucent.com>
94751
94752         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94753
94754 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94755
94756         * lib/memrchr.c: Include <config.h> before any system include file.
94757
94758 2000-11-30  Jim Meyering  <meyering@lucent.com>
94759
94760         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94761
94762 2000-11-30  Jim Meyering  <meyering@lucent.com>
94763
94764         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94765
94766 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94767
94768         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94769
94770 2000-11-26  Jim Meyering  <meyering@lucent.com>
94771
94772         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94773
94774 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94775
94776         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94777         size of (size_t) -1; it's not portable.
94778
94779 2000-11-17  Jim Meyering  <meyering@lucent.com>
94780
94781         * lib/strstr.c: Update from GNU libc.
94782
94783 2000-11-17  Akim Demaille  <akim@epita.fr>
94784
94785         * lib/obstack.h: Formatting changes.
94786         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94787         prevent type checking.
94788         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94789         cast the value to (void *): assigning a `foo *' to a `void *'
94790         variable is valid.
94791         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94792
94793 2000-11-16  Jim Meyering  <meyering@lucent.com>
94794
94795         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94796
94797 2000-11-11  Jim Meyering  <meyering@lucent.com>
94798
94799         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94800
94801 2000-11-10  Jim Meyering  <meyering@lucent.com>
94802
94803         * lib/obstack.h: Update from GNU libc.
94804         * lib/obstack.c: Likewise.
94805
94806 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94807
94808         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94809
94810 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94811
94812         * lib/getusershell.c (setusershell): Use rewind rather than
94813         fseek/fseeko, to avoid configuration hassles with fseeko.
94814         Don't bother opening SHELLS_FILE if shellstream is NULL;
94815         it's not necessary.
94816
94817 2000-11-05  Jim Meyering  <meyering@lucent.com>
94818
94819         * lib/makepath.h (make_dir): Declare.
94820         * lib/makepath.c (make_dir): Remove `static' attribute.
94821         Tweak a comment.
94822
94823 2000-11-04  Jim Meyering  <meyering@lucent.com>
94824
94825         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
94826
94827 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
94828
94829         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
94830         last one in a bucket, advance to the next bucket.
94831
94832 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
94833
94834         * lib/fnmatch.c: Do not comment out all the code if we are using
94835         the GNU C library, because in some cases we are replacing buggy
94836         code in the GNU C library itself.
94837
94838 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
94839
94840         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
94841         (regex_compile): Catch bogus \(\1\).
94842
94843 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94844
94845         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
94846         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
94847         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
94848
94849 2000-10-30  Paul Eggert  <eggert@twinsun.com>
94850
94851         * lib/error.h, getline.h, modechange.h:
94852         Remove "2000" from Copyright line, as the file hasn't been
94853         changed this year other than in the copyright notice.
94854
94855         * lib/xalloc.h: Add "2000" to Copyright line, as this file
94856         was changed this year.
94857
94858 2000-10-29  Jim Meyering  <meyering@lucent.com>
94859
94860         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
94861         renaming.
94862         * m4/ls-mntd-fs.m4: Likewise
94863
94864 2000-10-29  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/xstat.in: Fix grammar in comment.
94867
94868 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
94869
94870         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
94871         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
94872         doesn't define __restrict_arr.
94873
94874 2000-10-28  Jim Meyering  <meyering@lucent.com>
94875
94876         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
94877         (jm_PREREQ_MEMCHR): New function.
94878
94879 2000-10-28  Jim Meyering  <meyering@lucent.com>
94880
94881         * lib/memchr.c: Update from libc.
94882         Adjust for portability:
94883         [HAVE_STDLIB_H]: Include stdlib.h.
94884         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
94885         Undef __memchr, too.
94886         [!weak_alias]: Define __memchr to memchr.
94887
94888         * lib/regex.c: Update from libc.
94889         * lib/regex.h: Likewise.
94890         * lib/getopt1.c: Likewise.
94891         * lib/memcmp.c: Likewise.
94892
94893         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
94894         Avoid using fseek, when possible -- it's broken by design.
94895         Patch by Ulrich Drepper.
94896
94897 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
94898
94899         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
94900         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
94901         Giving in to popular pressure to shut up the compiler with casts.
94902
94903 2000-10-26  Jim Meyering  <meyering@lucent.com>
94904
94905         * lib/strftime.c: Update from libc.
94906
94907 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
94908
94909         * regex.c: More `unsigned char' -> `re_char' changes.
94910         Also change several `int' into `re_wchar_t'.
94911         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
94912         (PUSH_FAILURE_POINTER): Don't cast any more.
94913         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
94914         We want GCC to complain, since this piece of code makes
94915         re_match non-reentrant, which *should* be fixed.
94916         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
94917         (EXTEND_BUFFER): Use RETALLOC.
94918         (SET_LIST_BIT): Don't cast.
94919         (re_wchar_t): New type.
94920         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
94921         that those two functions will always properly return.
94922         (IMMEDIATE_QUIT_CHECK): Cast to void.
94923         (analyse_first): Use recursion rather than an explicit stack.
94924         (re_compile_fastmap): Can't fail anymore.
94925         (re_search_2): Don't check re_compile_fastmap for failure.
94926         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
94927         Now also sets the new value (passed in a new argument).
94928         (re_match_2_internal): Use it.
94929         Also, use a new var `reg' of type size_t when looping through regs
94930         rather than reuse the inappropriate `mcnt'.
94931
94932 2000-10-25  Jim Meyering  <meyering@lucent.com>
94933
94934         * lib/obstack.c: Update from libc.
94935
94936 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
94937
94938         * regex.c (regex_compile): Change the way of handling a range from
94939         a char less than 256 to a char not less than 256.
94940
94941 2000-10-24  Andrew Innes  <andrewi@gnu.org>
94942
94943         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
94944         NT-Emacs only.
94945         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
94946         so that re_search functions only quit when callers expect them to.
94947
94948 2000-10-23  Jim Meyering  <meyering@lucent.com>
94949
94950         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94951         wrong.  That set_locale call must not have any side effects.
94952         From Paul Eggert.
94953
94954 2000-10-22  Jim Meyering  <meyering@lucent.com>
94955
94956         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94957         [CYCLIC]: Remove now-unused definition.
94958
94959         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94960         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94961         Suggestion from Ulrich Drepper.
94962
94963 2000-10-21  Jim Meyering  <meyering@lucent.com>
94964
94965         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94966         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94968
94969 2000-10-21  Jim Meyering  <meyering@lucent.com>
94970
94971         * lib/dirname.c (memrchr): Declare if necessary.
94972         (dir_name): Remove the restriction that there be no
94973         trailing slashes.  Now, this code skips past them, effectively
94974         ignoring them.
94975         [TEST_DIRNAME] (main): New unit tests.
94976
94977         * lib/memrchr.c: New file from GNU libc.
94978         Undef __memrchr, too.
94979         [!weak_alias]: Define __memrchr to memrchr.
94980         Guard weak_alias use with `#ifdef weak_alias'.
94981
94982 2000-10-21  Jim Meyering  <meyering@lucent.com>
94983
94984         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94985         (dir_name): Use dir_name_r.
94986         * lib/dirname.h (dir_name_r): Declare it.
94987
94988 2000-10-17  Jim Meyering  <meyering@lucent.com>
94989
94990         * lib/quote.h (PARAMS): Define and use.
94991         Reported by Akim Demaille.
94992
94993         * lib/getopt.c: Update from libc.
94994
94995 2000-10-16  Jim Meyering  <meyering@lucent.com>
94996
94997         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94998         setlocale.
94999         From Jan Fedak.
95000
95001 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95002
95003         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95004
95005 2000-09-25  Jim Meyering  <meyering@lucent.com>
95006
95007         * lib/md5.h (rol): Define (from GnuPG).
95008
95009         * lib/sha.c: Give credit (GnuPG) where due.
95010         (M): Use rol rather than open-coding it.
95011         Add a FIXME comment.
95012
95013 2000-09-21  Jim Meyering  <meyering@lucent.com>
95014
95015         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95016         Reported by Michael Stone.
95017
95018 2000-09-20  Jim Meyering  <meyering@lucent.com>
95019
95020         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95021         (noinst_HEADERS): Add sha.h.
95022         Based on code from Scott G. Miller and from GnuPG.
95023
95024 2000-09-18  Jim Meyering  <meyering@lucent.com>
95025
95026         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95027         LIBS. Otherwise, everyone ends up linking with -lelf for some
95028         configurations.
95029         Reported by Mike Stone.
95030
95031 2000-09-15  Jim Meyering  <meyering@lucent.com>
95032
95033         * lib/regex.c: Update from libc.
95034
95035 2000-09-10  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/getopt.c (_getopt_internal): Update from glibc.
95038
95039 2000-09-09  Jim Meyering  <meyering@lucent.com>
95040
95041         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95042         think it should be used as a general replacement for isascii.
95043         * lib/fnmatch.c: Likewise.
95044         * lib/mbswidth.c: Likewise
95045         * lib/regex.c: Likewise.
95046
95047         Don't use atoi.
95048         * lib/userspec.c: Include sys/param.h and limits.h.
95049         Include xstrtol.h.
95050         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95051         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95052         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95053         UID, GID.  Check range.
95054
95055 2000-09-06  Jim Meyering  <meyering@lucent.com>
95056
95057         * lib/getopt.c (_getopt_internal): Update from glibc.
95058
95059 2000-08-30  Jim Meyering  <meyering@lucent.com>
95060
95061         * lib/strftime.c: Merge in changes from GNU libc.
95062
95063 2000-08-26  Jim Meyering  <meyering@lucent.com>
95064
95065         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95066         * m4/fpending.m4: New file.
95067
95068 2000-08-26  Jim Meyering  <meyering@lucent.com>
95069
95070         * lib/closeout.c: Include "__fpending.h".
95071         (close_stdout_status): Return right away if there's nothing to flush.
95072
95073         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95074         * lib/__fpending.c: New file.
95075         * lib/__fpending.h: New file.
95076
95077 2000-08-20  Jim Meyering  <meyering@lucent.com>
95078
95079         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95080         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95081         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95082
95083 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95084
95085         Improve fileutils installation on systems where running
95086         programs (like install) can't be unlinked.
95087         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95088         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95089
95090 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95091
95092         Standardize on "memory exhausted" instead of "Memory exhausted"
95093         or "virtual memory exhausted".
95094         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95095         "virtual memory exhausted".
95096         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95097         our own message.
95098         * lib/userspec.c (parse_user_spec): Likewise.
95099         * lib/bumpalloc.h: comment fix
95100         * lib/same.c, userspec.c: Include xalloc.h.
95101
95102         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95103         not char *const and pointing to a constant array.
95104         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95105         (xrealloc): Comment fix.
95106
95107         * lib/userspec.c (parse_user_spec):
95108         Don't translate a message until just before returning,
95109         to avoid unnecessary translation.
95110
95111 2000-08-07  Jim Meyering  <meyering@lucent.com>
95112
95113         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95114         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95115         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95116         getgroups.c, gethostname.c, getopt.h, group-member.c,
95117         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95118         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95119         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95120         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95121         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95122         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95123         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95124         yesno.c: Back out Copyright date changes for each file with no change
95125         this year.  This eases coordination with other programs using the same
95126         source code modules.  From Paul Eggert.
95127
95128 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95129
95130         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95131         not char, for compatibility with glibc 2.1.3 strftime.c.
95132
95133 2000-08-03  Greg McGary  <greg@mcgary.org>
95134
95135         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95136         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95137         (EXTEND_BUFFER): Use them.
95138
95139 2000-08-01  Jim Meyering  <meyering@lucent.com>
95140
95141         * lib/dirname.c (ISSLASH): Define.
95142         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95143         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95144         both `\' and `/' may be use as path separators.
95145         Based on a patch from Prashant TR.
95146
95147 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95148
95149         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95150         slot vector a constant, since it might get modified.
95151
95152 2000-07-31  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/xmalloc.c: Use `virtual memory exhausted', not
95155         `Memory exhausted'.
95156         * lib/obstack.c (print_and_abort): Likewise.
95157
95158 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95159
95160         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95161         buffer, so that the caller can always quote one small
95162         component of a "memory exhausted" message in slot 0.
95163         From a suggestion by Jim Meyering.
95164
95165 2000-07-30  Jim Meyering  <meyering@lucent.com>
95166
95167         * lib/makepath.c (make_path): Quote the other instance, too.
95168
95169         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95170         (STATIC_BUF_SIZE): Define.
95171         (quotearg_n_options): Use only statically allocated storage when
95172         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95173         than STATIC_BUF_SIZE.
95174
95175 2000-07-29  Jim Meyering  <meyering@lucent.com>
95176
95177         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95178         * lib/dirname.c (dir_name): Likewise.
95179
95180         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95181         `/'.
95182
95183         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95184         (dir_name): Assert that there are no trailing slashes.
95185
95186 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95187
95188         * lib/mbswidth.h (mbswidth): Add a flags argument.
95189         (mbswidth): New declaration.
95190         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95191         * lib/mbswidth.c (mbswidth): Add a flags argument.
95192         (mbsnwidth): New function.
95193
95194 2000-07-24  Jim Meyering  <meyering@lucent.com>
95195
95196         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95197
95198 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95199
95200         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95201
95202 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95203
95204         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95205         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95206         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95207         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95208         invoke multibyte primitives.
95209
95210 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95211
95212         * lib/quotearg.c:
95213         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95214         so that mbstate_t is always defined.
95215
95216         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95217         be 1 in at least one GCC installation, and this configuration
95218         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95219         performance on hosts that have mbrtowc but have only unibyte
95220         locales, but I assume these hosts are rare.
95221
95222 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95223
95224         * lib/mbswidth.c (_XOPEN_SOURCE):
95225         Don't define; this causes problems on Solaris 7.
95226         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95227
95228 2000-07-23  Jim Meyering  <meyering@lucent.com>
95229
95230         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95231         too: getgrgid, getpwuid, getuid.
95232
95233 2000-07-23  Jim Meyering  <meyering@lucent.com>
95234
95235         * lib/basename.c (base_name): Add an assertion.
95236
95237 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95238
95239         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95240         shadow its mbsinit function.
95241
95242 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95243
95244         * lib/mbswidth.h: New file.
95245         * lib/mbswidth.c: New file.
95246         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95247         (noinst_HEADERS): Add mbswidth.h.
95248
95249 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95250
95251         * lib/config.charset: Add support for FreeBSD. Improve support for
95252         HP-UX and IRIX 6.
95253
95254 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95255
95256         * m4/mbswidth.m4: New file.
95257         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95258
95259 2000-07-15  Jim Meyering  <meyering@lucent.com>
95260
95261         * lib/makepath.c: Include quote.h.
95262         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95263         corresponding argument in a `quote (...)' call.
95264         Give better diagnostics.
95265
95266         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95267         (noinst_HEADERS): Add quote.h.
95268
95269         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95270         from tar's src/misc.c.
95271         * lib/quote.h: New file.  Prototypes for same.
95272
95273 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95274
95275         From a suggestion by Bruno Haible.
95276         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95277         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95278         to decide whether to define the BeOS workaround macro;
95279         this adjusts to the change to AC_MBSTATE_T.
95280
95281 2000-07-14  Jim Meyering  <meyering@lucent.com>
95282
95283         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95284         jm_AC_TYPE_UINTMAX_T.
95285
95286 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95287
95288         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95289
95290         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95291         quotearg_buffer_restyled): Add support for
95292         clocale_quoting_style.  Undo previous change to
95293         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95294         and "{RIGHT QUOTATION MARK}" msgids.
95295
95296 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95297
95298         From a suggestion by Bruno Haible.
95299         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95300         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95301         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95302         and mbstate_t, to a single-part test that simply defines mbstate_t.
95303         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95304         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95305
95306 2000-07-10  Jim Meyering  <meyering@lucent.com>
95307
95308         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95309
95310         * m4/gnu-source.m4: Output to confdefs.h directly.
95311         Suggestion from Akim Demaille.
95312
95313 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95314
95315         The old behavior of quoting `like this' doesn't look good with
95316         newer, ISO-style fonts.  See:
95317         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95318
95319         Instead, quote "like this" by default.  Let the translator
95320         tailor the locale-specific quoting behavior by providing
95321         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95322
95323         * lib/quotearg.c (N_): New macro.
95324         (gettext_default): New function.
95325         (quotearg_buffer_restyled): Use
95326         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95327         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95328
95329 2000-07-09  Jim Meyering  <meyering@lucent.com>
95330
95331         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95332         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95333
95334         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95336
95337 2000-07-09  Jim Meyering  <meyering@lucent.com>
95338
95339         * lib/Most files: Update copyright dates to include 2000.
95340
95341 2000-07-08  Jim Meyering  <meyering@lucent.com>
95342
95343         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95344         if not defined.
95345         (xgethostname): Remove now-unnecessary #ifdef.
95346         Move declaration of `err' into loop where it's used.
95347
95348 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95349         and Bruno Haible  <haible@clisp.cons.org>
95350
95351         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95352         only if the test for an object-type mbstate_t fails.  This
95353         prevents us from mistakenly reporting that mbstate_t is a
95354         system object type after we "#define mbstate_t int" to work
95355         around its lack.
95356
95357 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95358         and Bruno Haible  <haible@clisp.cons.org>
95359
95360         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95361
95362 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95363
95364         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95365         to strerror_r.
95366         Include <ctype.h> for use of isalpha.
95367
95368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95369
95370         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95371         by allocating a larger buffer. Test the gethostname return value for
95372         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95373         returns an error and ENAMETOOLONG isn't defined.
95374
95375 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95376
95377         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95378         dimension.
95379
95380 2000-07-04  Jim Meyering  <meyering@lucent.com>
95381
95382         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95383         of the deprecated AC_CHECKING.
95384
95385 2000-07-04  Jim Meyering  <meyering@lucent.com>
95386
95387         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95388         Reported by Bruno Haible.
95389
95390 2000-07-04  Jim Meyering  <meyering@lucent.com>
95391
95392         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95393         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95394         lacks mbrtowc.
95395
95396 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95397
95398         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95399         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95400
95401 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95402         and Bruno Haible  <haible@clisp.cons.org>
95403
95404         * lib/quotearg.c (mbrtowc):
95405         Assign to *pwc, and return 1 only if result is nonzero.
95406         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95407
95408 2000-07-03  Jim Meyering  <meyering@lucent.com>
95409
95410         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95411
95412 2000-07-03  Jim Meyering  <meyering@lucent.com>
95413
95414         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95415         This is necessary to get a definition of e.g., UTMP_FILE on
95416         HP-UX 10.20.
95417         From Bob Proulx.
95418
95419 2000-07-02  Jim Meyering  <meyering@lucent.com>
95420
95421         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95422
95423         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95424         AC_LIBOBJ(function_name).
95425         * m4/chown.m4: Likewise.
95426         * m4/fnmatch.m4: Likewise.
95427         * m4/ftruncate.m4: Likewise.
95428         * m4/getgroups.m4: Likewise.
95429         * m4/getline.m4: Likewise.
95430         * m4/group-member.m4: Likewise.
95431         * m4/jm-macros.m4: Likewise.
95432         * m4/lstat.m4: Likewise.
95433         * m4/malloc.m4: Likewise.
95434         * m4/memcmp.m4: Likewise.
95435         * m4/nanosleep.m4: Likewise.
95436         * m4/putenv.m4: Likewise.
95437         * m4/realloc.m4: Likewise.
95438         * m4/regex.m4: Likewise.
95439         * m4/stat.m4: Likewise.
95440         * m4/strftime.m4: Likewise.
95441
95442 2000-07-02  Jim Meyering  <meyering@lucent.com>
95443
95444         * lib/quotearg.c (mbstate_t): Don't define here.
95445
95446 2000-07-02  Jim Meyering  <meyering@lucent.com>
95447
95448         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95449
95450 2000-07-01  Jim Meyering  <meyering@lucent.com>
95451
95452         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95453
95454 2000-07-01  Jim Meyering  <meyering@lucent.com>
95455
95456         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95457         problem.
95458
95459 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95460
95461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95462         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95463
95464 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95465
95466         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95467         per change in ../m4/ls-mntd-fs.m4.
95468         (read_filesystem_list): Ignore symbolic links.
95469
95470 2000-06-29  Jim Meyering  <meyering@lucent.com>
95471
95472         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95473         for declaration of strcmp.
95474
95475         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95476
95477         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95478         Avoid warning by casting result to `char *' to remove `const'.
95479
95480 2000-06-28  Jim Meyering  <meyering@lucent.com>
95481
95482         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95483         included by quotearg.c, for which we perform this test.  From
95484         Bruno Haible.
95485
95486 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95487
95488         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95489         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95490         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95491
95492 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95493
95494         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95495
95496 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95497
95498         savedir now sets errno on failure and invokes xmalloc to get memory.
95499         Fix a couple of other minor bugs while we're at it.
95500
95501         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95502         (NAMLEN): Remove macro.
95503         (malloc, realloc): Remove decls.
95504         (stpcpy): Likewise.
95505         ("xalloc.h"): Include.
95506         (NAME_SIZE_DEFAULT): New macro.
95507         (savedir): Use xmalloc / xrealloc to allocate memory.
95508         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95509         Skip "" directory entries.
95510         Use strlen to calculate directory entry length, since the old method
95511         is rarely used these days and isn't worth supporting.
95512         Don't use a pointer after freeing it.
95513         Check for integer overflow when calculating allocation size.
95514         Use memcpy to copy entries, instead of stpcpy.
95515         Set errno properly when returning NULL.
95516         Check for readdir error.
95517
95518 2000-06-26  Jim Meyering  <meyering@lucent.com>
95519
95520         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95521
95522 2000-06-25  Jim Meyering  <meyering@lucent.com>
95523
95524         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95525         Linux header bug when _XOPEN_SOURCE is defined to 500.
95526
95527 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95528
95529         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95530         deficiency.
95531
95532 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95533
95534         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95535         Include xalloc.h.
95536         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95537
95538 2000-06-24  Jim Meyering  <meyering@lucent.com>
95539
95540         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95541         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95542         for which strerror does return char*, but which lacks a conveniently
95543         accessible declaration of the function.  If the compile-test says
95544         strerror_r doesn't work, then resort to a `run'-test that works on
95545         BeOS and segfaults on DEC Unix.
95546
95547 2000-06-24  Jim Meyering  <meyering@lucent.com>
95548
95549         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95550
95551 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95552
95553         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95554         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95555
95556 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95557
95558         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95559         (mbrtowc, mbstate_t): Define substitutes if
95560         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95561         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95562         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95563
95564 2000-06-23  Jim Meyering  <meyering@lucent.com>
95565
95566         * m4/afs.m4: Add missing AC_MSG_RESULT.
95567         Reported by Bruno Haible.
95568
95569         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95570         Suggestion from Bruno Haible.
95571
95572 2000-06-23  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95575
95576 2000-06-21  Jim Meyering  <meyering@lucent.com>
95577
95578         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95579
95580 2000-06-21  Jim Meyering  <meyering@lucent.com>
95581
95582         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95583         (noinst_HEADERS): Add getstr.h.
95584
95585         * lib/getline.c (getstr): Move into a separate file.
95586         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95587         the following changes: new parameter, delim2; both delim[12]
95588         parameters have type `int', not `char'.  The latter would lose
95589         with 8-bit delimiters.
95590         * lib/getstr.h: New file.
95591
95592 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95593
95594         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95595         than 1024, return a memory chunk of least possible size, instead
95596         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95597         Use free/xmalloc instead of xrealloc to avoid copying for very long
95598         paths.
95599
95600 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95601
95602         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95603         the empty string.
95604
95605 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95606
95607         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95608         address, not strdup.  Include <stdlib.h> and don't declare free().
95609
95610 2000-06-19  Jim Meyering  <meyering@lucent.com>
95611
95612         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95613
95614 2000-06-18  Jim Meyering  <meyering@lucent.com>
95615
95616         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95617
95618         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95619         `checking whether...' message to be consistent with that of the
95620         lstat test.
95621
95622 2000-06-18  Jim Meyering  <meyering@lucent.com>
95623
95624         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95625         Besides, these days every porting target provides a mkdir function.
95626
95627         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95628         needed. (this snippet comes from src/system.h).
95629
95630 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95631
95632         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95633
95634 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95635
95636         * lib/human.c (adjust_value): New function.
95637         (human_readable_inexact): Apply rounding style even when
95638         printing approximate values.
95639
95640 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95641
95642         * lib/human.c (human_readable_inexact): Allow an input block
95643         size that is not a multiple of the output block size, and vice versa.
95644         Reported by Piergiorgio Sartor.
95645
95646 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95647
95648         * lib/getdate.y (get_date): Apply relative times after time
95649         zone indicator, not before.  Reported by Todd A. Jacobs.
95650
95651 2000-06-13  Jim Meyering  <meyering@lucent.com>
95652
95653         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95654
95655         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95656
95657 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95658
95659         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95660
95661 2000-06-12  Jim Meyering  <meyering@lucent.com>
95662
95663         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95664         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95665         optional argument.
95666         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95667         the optional argument, `lib'.
95668
95669 2000-06-08  Jim Meyering  <meyering@lucent.com>
95670
95671         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95672
95673 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95674
95675         Rewrite largefile configuration so that we don't need to run
95676         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95677         AC_CANONICAL_HOST in configure.in -- jmm]
95678
95679         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95680         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95681         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95682         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95683         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95684         All uses changed.
95685         Instead of inspecting the output of getconf, try to compile the
95686         test program without and with the macro definition.
95687         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95688         for getconf.  Instead, check for the needed flags by compiling
95689         test programs.
95690
95691 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95692
95693         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95694
95695 2000-06-04  Jim Meyering  <meyering@lucent.com>
95696
95697         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95698         SunOS 4.1.4 for which gid_t is an unsigned type.
95699
95700 2000-06-03  Jim Meyering  <meyering@lucent.com>
95701
95702         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95703         now that autoconf requires that.
95704
95705         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95706         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95707         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95708
95709 2000-06-03  Jim Meyering  <meyering@lucent.com>
95710
95711         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95712
95713 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95714
95715         * m4/glibc21.m4: New file.
95716         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95717
95718 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95719
95720         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95721         newer, don't install charset.alias.
95722         * lib/config.charset: Change the Linux/glibc rules so they become empty
95723         on glibc-2.1 or newer.
95724
95725 2000-06-02  Jim Meyering  <meyering@lucent.com>
95726
95727         * lib/mountlist.c: Back out last change.  Instead, do this...
95728         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95729         me_dummy member using the same `ignore'-testing code.
95730         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95731         fs_type strings.
95732         From Mark D. Roth.
95733
95734 2000-05-29  Jim Meyering  <meyering@lucent.com>
95735
95736         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95737         mounts with the `ignore' attribute.  Based on a patch from
95738         Mark D. Roth.
95739
95740 2000-05-28  Jim Meyering  <meyering@lucent.com>
95741
95742         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95743         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95744         * m4/stat.m4: Likewise.
95745         * m4/lstat.m4: Likewise.
95746         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95747
95748         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95749         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95750
95751 2000-05-26  Jim Meyering  <meyering@lucent.com>
95752
95753         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95754
95755 2000-05-24  Jim Meyering  <meyering@lucent.com>
95756
95757         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95758         autoconf requires that.
95759         * m4/lib-check.m4: Likewise.
95760         * m4/jm-macros.m4: Likewise.
95761         * m4/strftime.m4: Likewise.
95762
95763         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95764         AC_CHECK_DECLS, now that autoconf requires that.
95765
95766 2000-05-22  Jim Meyering  <meyering@lucent.com>
95767
95768         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95769         * m4/lstat.m4: Likewise.
95770
95771 2000-05-22  Jim Meyering  <meyering@lucent.com>
95772
95773         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95774
95775 2000-05-20  Jim Meyering  <meyering@lucent.com>
95776
95777         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95778         (jm_PREREQ): Use it.
95779
95780 2000-05-18  Jim Meyering  <meyering@lucent.com>
95781
95782         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95783         back, too, since it may have been modified by allocate_entry.
95784         (hash_delete): Rewrite to use neither the assignment operator
95785         nor the comma operator in an if-expression.
95786
95787 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95788
95789         * lib/closeout.c:
95790         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95791         Remove; no longer needed.
95792         "quotearg.h": Add include.
95793         (file_name): Do not bother to explicitly initialize to NULL; it's less
95794         efficient on some hosts.
95795         (close_stdout_status): Remove test as to whether stdout was already
95796         closed; it breaks for the case "echo x | sort >&-".
95797         Quote file name colons.
95798         Do not assume that _("write error") lacks format strings.
95799
95800 2000-05-15  Jim Meyering  <meyering@lucent.com>
95801
95802         * lib/version-etc.c (version_etc_copyright): Update the copyright
95803         string used in all --version output.
95804
95805 2000-05-14  Jim Meyering  <meyering@lucent.com>
95806
95807         * lib/closeout.c (close_stdout_set_file_name): New function.
95808         (close_stdout_status): Use new file-scoped global.
95809         Return right away if fstat says the stdout file descriptor is invalid.
95810         * lib/closeout.h (close_stdout_set_file_name): Declare.
95811
95812 2000-05-10  Jim Meyering  <meyering@lucent.com>
95813
95814         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95815         (close_stdout_set_status): New function.
95816         * lib/closeout.h (close_stdout_set_status): Declare.
95817
95818 2000-05-09  Jim Meyering  <meyering@lucent.com>
95819
95820         * m4/gettext.m4: Rename this...
95821         * m4/libintl.m4: ...to this.
95822
95823 2000-05-08  Jim Meyering  <meyering@lucent.com>
95824
95825         * lib/long-options.c: Don't include closeout.h.
95826         (parse_long_options): Don't call close_stdout for --version.
95827
95828 2000-05-06  Paul Eggert  <eggert@twinsun.com>
95829
95830         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
95831         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
95832         2.1.3 bug.  This avoids a clash when files like regex.c define
95833         _GNU_SOURCE.
95834
95835 2000-05-06  Jim Meyering  <meyering@lucent.com>
95836
95837         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
95838         (AC_REPLACE_FUNCS): Add strnlen.
95839
95840         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
95841         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
95842
95843         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
95844         AC_SEARCH_LIBS call for nanosleep.
95845         (LIB_NANOSLEEP): Set and AC_SUBST.
95846
95847 2000-05-06  Jim Meyering  <meyering@lucent.com>
95848
95849         * lib/strnlen.c: Undefine __strnlen and strnlen.
95850         [!weak_alias]: Define __strnlen to strnlen.
95851
95852         * lib/atexit.c: New file, from libiberty.
95853
95854 2000-05-06  Jim Meyering  <meyering@lucent.com>
95855
95856         * lib/closeout.c (close_stdout_status): Also check for errors on the
95857         stderr stream.
95858
95859 2000-05-05  Jim Meyering  <meyering@lucent.com>
95860
95861         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
95862         AC_SEARCH_LIBS call for clock_gettime.
95863         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
95864
95865         * m4/search-libs.m4: Update from autoconf.
95866
95867         su doesn't work on Solaris 2.6.
95868         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
95869         <shadow.h>.  Reported by Dragos Harabor.
95870
95871 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
95872
95873         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
95874         memcpy instead of xmalloc, xrealloc, path_concat.
95875         (locale_charset): Treat empty environment variables as absent.
95876         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
95877
95878 2000-05-04  Jim Meyering  <meyering@lucent.com>
95879
95880         * lib/getopt.c: Update from glibc.
95881         * lib/obstack.c: Likewise.
95882         * lib/obstack.h: Likewise.
95883         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
95884         file
95885
95886         * lib/regex.h: Likewise.
95887         * lib/strndup.c: Likewise.
95888         * lib/strnlen.c: New file, from glibc.
95889
95890 2000-05-03  Jim Meyering  <meyering@lucent.com>
95891
95892         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
95893
95894 2000-05-02  Paul Eggert  <eggert@twinsun.com>
95895
95896         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
95897         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
95898         compile-time test, rather than inspecting host and OS, to
95899         decide whether to define _LARGEFILE_SOURCE.
95900
95901 2000-05-01  Jim Meyering  <meyering@lucent.com>
95902
95903         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
95904
95905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
95906         Based on a patch from Bruno Haible.
95907
95908 2000-05-01  Jim Meyering  <meyering@lucent.com>
95909
95910         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
95911
95912 2000-04-29  Jim Meyering  <meyering@lucent.com>
95913
95914         * lib/path-concat.c: Declare strdup only if it's not defined.
95915         * lib/canon-host.c: Likewise.
95916
95917 2000-04-28  Jim Meyering  <meyering@lucent.com>
95918
95919         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
95920         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
95921         is included first, then limits.h is included by locale.h by libintl.h.
95922         From John David Anglin.
95923
95924 2000-04-25  Jim Meyering  <meyering@lucent.com>
95925
95926         * lib/makepath.c (S_IRWXUGO): Define.
95927         (make_path): Always perform explicit chmod if MODE specifies any
95928         of the `special' permission bits.  Prompted by a bug report against
95929         install from Mate Wierdl and Joost van Baal.
95930
95931 2000-04-18  Jim Meyering  <meyering@lucent.com>
95932
95933         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
95934         (jm_PREREQ): Use it.
95935
95936 2000-04-18  Jim Meyering  <meyering@lucent.com>
95937
95938         * lib/README: New file.
95939
95940         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
95941         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
95942
95943 2000-04-17  Jim Meyering  <meyering@lucent.com>
95944
95945         Get it right :-)
95946         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
95947         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
95948         Suggestion from Akim Demaille.
95949
95950 2000-04-17  Jim Meyering  <meyering@lucent.com>
95951
95952         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95953         the definition of it to rpl_strftime also defined-away the system's
95954         declaration.
95955
95956 2000-04-15  Jim Meyering  <meyering@lucent.com>
95957
95958         Use `C' to denote so-called `contiguous' files, the same way
95959         that tar does.
95960         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95961         (ftypelet): Use S_ISCTG.
95962         From Michael Deutschmann.
95963
95964 2000-04-14  Jim Meyering  <meyering@lucent.com>
95965
95966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95967         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95968         clobbered.
95969
95970 2000-04-14  Jim Meyering  <meyering@lucent.com>
95971
95972         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95973
95974 2000-04-13  Jim Meyering  <meyering@lucent.com>
95975
95976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95977         AH_VERBATIM to insert required #ifndef into config.h.in.
95978         Suggestion from Akim Demaille.
95979
95980 2000-04-12  Jim Meyering  <meyering@lucent.com>
95981
95982         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95983         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95984         Christian Krackowizer.
95985
95986         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95987         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95988         (AC_SYS_LARGEFILE): Require.
95989         (AM_C_PROTOTYPES): Require.
95990
95991 2000-04-08  Jim Meyering  <meyering@lucent.com>
95992
95993         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95994         names don't conflict.  Reported by Eli Zaretskii.
95995
95996 2000-04-07  Jim Meyering  <meyering@lucent.com>
95997
95998         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95999         sys/types.h, to work around system header problems on AIX 3.2.5.
96000         From Bruno Haible.
96001
96002 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96003
96004         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96005         bug.  Deal with the different error behavior of Irix iconv.
96006
96007 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96008
96009         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96010         IRIX if the installer said otherwise.
96011
96012 2000-04-05  Jim Meyering  <meyering@lucent.com>
96013
96014         Portability tweaks required for ultrix4.3.
96015         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96016         (jm_CHECK_DECLS): Add getutent to the list of functions.
96017         (_jm_DECL_HEADERS): Add utmpx.h.
96018         From John David Anglin.
96019
96020         * m4/strftime.m4: Back out the 2000-04-02 change.
96021         Instead of that change, simply undefine putenv in the test program.
96022
96023 2000-04-05  Jim Meyering  <meyering@lucent.com>
96024
96025         Portability tweaks required for ultrix4.3.
96026         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96027         getutent.
96028         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96029         * lib/canon-host.c: Declare strdup.
96030         * lib/path-concat.c: Likewise.
96031         From John David Anglin.
96032
96033 2000-04-04  Jim Meyering  <meyering@lucent.com>
96034
96035         Be more DOS 8.3-friendly.
96036         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96037         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96038         * lib/Makefile.am: Reflect renaming.
96039         Reported by Eli Zaretskii.
96040
96041         Use a temporary file name that won't clash with `charset.alias'
96042         in the DOS 8.3 name space.
96043         * lib/Makefile.am (charset_tmp): Define.
96044         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96045         (uninstall-local): Likewise.
96046         Reported by Eli Zaretskii.
96047
96048 2000-04-03  Jim Meyering  <meyering@lucent.com>
96049
96050         * m4/gettext.m4: Fix typo in comment.
96051
96052         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96053         textutils/configure.in).  Suggestion from Paul Eggert.
96054         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96055
96056 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96057
96058         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96059         variable in the shell rather than using putenv, which isn't
96060         portable.  This avoids the configure-time inter-test dependency
96061         on the potentially-renamed putenv function.
96062
96063 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96064
96065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96066         before checking struct stat.st_blksize, so that
96067         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96068
96069 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96070
96071         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96072         since strftime.c uses HAVE_STRFTIME to decide whether to use
96073         the underlying strftime.
96074
96075 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96076
96077         * lib/time/strftime.c (my_strftime): Make sure we call the system
96078         strftime, not ourselves, when invoking the underlying strftime.
96079
96080 2000-03-24  Jim Meyering  <meyering@lucent.com>
96081
96082         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96083         (charset_alias): Define.
96084         (install-exec-local): Factor out common code.
96085         (uninstall-local): Split lines longer than 80.
96086         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96087         (SUFFIXES): Define.
96088         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96089         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96090
96091 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96092
96093         * lib/config.charset: Output a line containing "Packages using this
96094         file".
96095         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96096         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96097         ref-del.sed): New rules.
96098
96099 2000-03-17  Jim Meyering  <meyering@lucent.com>
96100
96101         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96102         Otherwise, include <strings.h>
96103
96104 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96105
96106         * lib/unicodeio.c (utf8_wctomb): New function.
96107         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96108         format instead of in UCS-4 with platform dependent endianness.
96109
96110 2000-03-10  Jim Meyering  <meyering@lucent.com>
96111
96112         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96113         From Marco Franzen.
96114
96115 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96116
96117         * lib/savedir.c (savedir): Work even if directory size is
96118         negative; this can happen with some screwy NFS configurations.
96119
96120 2000-03-06  Jim Meyering  <meyering@lucent.com>
96121
96122         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96123         if it's NULL (because we ran out of memory).  From Bruno Haible.
96124
96125 2000-03-05  Jim Meyering  <meyering@lucent.com>
96126
96127         * lib/localcharset.c ("path-concat.h"): Include.
96128         (get_charset_aliases): Use path_concat instead of ANSI string
96129         concatenation.
96130
96131         * lib/unicodeio.h (PARAMS): Define.
96132         Use it to guard prototype.
96133
96134 2000-03-04  Jim Meyering  <meyering@lucent.com>
96135
96136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96137         for lib/localcharset.c.
96138
96139 2000-03-04  Jim Meyering  <meyering@lucent.com>
96140
96141         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96142         installing into it.
96143         (uninstall-local): Uncomment this rule so `make distcheck' works
96144         once again.
96145
96146         * lib/unicodeio.c (<errno.h>): Include it.
96147         (errno): Declare if not defined.
96148
96149         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96150
96151         * lib/config.charset: New version, incorporating remarks from a linux
96152         i18n mailing list.  From Bruno Haible.
96153
96154 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96155
96156         * m4/codeset.m4: New file.
96157         * m4/iconv.m4: New file.
96158         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96159
96160 2000-03-03  Jim Meyering  <meyering@lucent.com>
96161
96162         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96163
96164 2000-03-02  Jim Meyering  <meyering@lucent.com>
96165
96166         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96167         the messages come out on separate lines.
96168
96169         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96170         rather than jm_CHECK_DECLARATIONS.
96171         * m4/decl.m4: Remove now-unused file.
96172
96173         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96174         geteuid.
96175
96176 2000-03-02  Jim Meyering  <meyering@lucent.com>
96177
96178         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96179
96180 2000-03-01  Jim Meyering  <meyering@lucent.com>
96181
96182         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96183         * lib/unicodeio.c: Likewise.
96184
96185 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96186
96187         * lib/config.charset: New file.
96188         * lib/localcharset.c: New file.
96189         * lib/unicodeio.h, lib/unicodeio.c: New files.
96190         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96191         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96192         (noinst_HEADERS): Add unicodeio.h.
96193         (all-local, install-exec-local, charset.alias): New targets.
96194
96195 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96196
96197         * lib/quotearg.c (ALERT_CHAR): New macro.
96198         (quotearg_buffer_restyled): Use it.
96199
96200 2000-02-27  Jim Meyering  <meyering@lucent.com>
96201
96202         * m4/check-decl.m4: Add getenv to the list.
96203
96204 2000-02-27  Jim Meyering  <meyering@lucent.com>
96205
96206         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96207         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96208
96209         * lib/backupfile.c: Guard inclusion of stdlib.h with
96210         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96211         Declare malloc if needed.
96212
96213         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96214         `#ifndef HAVE_DECL..'
96215         now that autoconf always defines the HAVE_DECL_ symbols.
96216         * lib/human.c: Likewise.
96217         * lib/same.c: Likewise.
96218         * lib/strtoumax.c: Likewise.
96219
96220         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96221         declaration check was not run.
96222         * lib/hash.c: Likewise.
96223         * lib/human.c: Likewise.
96224         * lib/same.c: Likewise.
96225         * lib/strtoumax.c: Likewise.
96226
96227         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96228         `.', then first look up the entire `.'-containing string as a login
96229         name.
96230
96231 2000-02-23  Jim Meyering  <meyering@lucent.com>
96232
96233         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96234         in place of my hack.
96235
96236 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96237
96238         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96239         (textint): New typedef.
96240         (parser_control): Member year changed from int to textint.
96241         All uses changed.
96242         (YYSTYPE): Removed; replaced by %union with int and textint members.
96243         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96244         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96245         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96246         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96247         (date, number, to_year): Use width of number in digits, not its value,
96248         to determine whether it's a 2-digit year, or a 2-digit time.
96249         (yylex): Store number of digits of numeric tokens.
96250         Reported by John Kendall.
96251
96252         (parser_control): Changed from struct parser_control to typedef (for
96253         consistency).  All uses changed.
96254
96255         (tID): Removed; not used.
96256         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96257
96258 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96259
96260         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96261         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96262
96263 2000-02-12  Jim Meyering  <meyering@lucent.com>
96264
96265         * lib/userspec.c (ISDIGIT): Define it.
96266         (isdigit): Remove definition.
96267         (is_number): Use ISDIGIT, not isdigit.
96268         <libintl.h>: Include.
96269         (_ and N_): Define.
96270         (parse_user_spec): Mark translatable strings.
96271
96272 2000-02-10  Jim Meyering  <meyering@lucent.com>
96273
96274         With these changes, nanosleep.[ch] are finally enough like the other
96275         lib/* replacement files to compile on a few more losing systems.
96276
96277         * lib/nanosleep.h: Don't include config.h.
96278         Remove prototype from declaration of nanosleep.
96279         (PARAMS): Remove now-unneeded definition.
96280         * lib/nanosleep.c: #undef nanosleep.
96281         (rpl_nanosleep): Rename from nanosleep.
96282
96283 2000-02-10  Jim Meyering  <meyering@lucent.com>
96284
96285         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96286         gnu_nanosleep to rpl_nanosleep.
96287
96288 2000-02-09  Jim Meyering  <meyering@lucent.com>
96289
96290         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96291         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96292
96293 2000-02-08  Akim Demaille  <akim@epita.fr>
96294
96295         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96296         `[' and `]' and remove uses of `changequote'.
96297         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96298         (AC_SYS_LARGEFILE): Likewise.
96299         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96300         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96301         of changequote.
96302         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96303         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96304         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96305         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96306
96307 2000-02-05  Jim Meyering  <meyering@lucent.com>
96308
96309         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96310         Remove explicit use of AC_HEADER_TIME.  It is required by
96311         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96312         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96313         in autoconf whereby the expansion of the latter ended up preceding
96314         the expansion of its prerequisite, AC_HEADER_TIME.
96315         Reported by Volker Borchert.
96316
96317 2000-02-03  Jim Meyering  <meyering@lucent.com>
96318
96319         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96320
96321 2000-02-03  Jim Meyering  <meyering@lucent.com>
96322
96323         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96324         rather than with `#if HAVE_UTMPNAME'.
96325
96326 2000-02-02  Jim Meyering  <meyering@lucent.com>
96327
96328         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96329         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96330         Reported by Eli Zaretskii.
96331
96332 2000-02-01  Jim Meyering  <meyering@lucent.com>
96333
96334         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96335
96336 2000-01-31  Jim Meyering  <meyering@lucent.com>
96337
96338         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96339         functions.  Add the time.h and sys/time.h headers along with the
96340         AC_REQUIRE'ment of AC_HEADER_TIME.
96341
96342 2000-01-31  Jim Meyering  <meyering@lucent.com>
96343
96344         * lib/nanosleep.h (nanosleep): Guard declaration with
96345         `#if ! HAVE_DECL_NANOSLEEP'.
96346         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96347         the declaration in that vendor's sys/timers.h.
96348         Reported by Christian Krackowizer.
96349
96350         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96351         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96352         (ISPRINT): Likewise.
96353         Reported by Tom Tromey.
96354
96355 2000-01-30  Jim Meyering  <meyering@lucent.com>
96356
96357         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96358
96359         * m4/prereq.m4 (utmp_includes): Define.
96360         Check for ut_user and ut_name members in both struct utmpx
96361         and struct utmp.
96362
96363 2000-01-30  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96366         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96367         header files where only utmpx.ut_user is declared.
96368
96369         * lib/readutmp.h (UT_USER): Define.
96370
96371 2000-01-29  Jim Meyering  <meyering@lucent.com>
96372
96373         * m4/lib-check.m4: New file containing library-related checks from
96374         fileutils and sh-utils (textutils had none).
96375
96376 2000-01-28  Jim Meyering  <meyering@lucent.com>
96377
96378         * m4/perl.m4: Change format of warning message to look more like that
96379         from the missing script.  Suggestion from François Pinard.
96380
96381 2000-01-25  Jim Meyering  <meyering@lucent.com>
96382
96383         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96384         well as time.h in the compile check.
96385         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96386         Fix typo in cross-compiling case: s/yes/no/.
96387
96388 2000-01-23  Jim Meyering  <meyering@lucent.com>
96389
96390         * m4/jm-macros.m4: Move df-related tests here from
96391         fileutils/configure.in
96392
96393         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96394         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96395
96396         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96397         s/space/ac_fsusage_space/.
96398         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96399
96400         * m4/ftruncate.m4: New file (derived from part of
96401         fileutils/configure.in).
96402         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96403         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96404
96405         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96406         AC_SUBST these here, rather than just in sh-util/configure.in, so
96407         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96408         all the same.
96409         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96410         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96411         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96412         (AC_SUBST(POW_LIBM)): Likewise.
96413         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96414
96415 2000-01-23  Jim Meyering  <meyering@lucent.com>
96416
96417         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96418         obstack.c.
96419
96420 2000-01-22  Jim Meyering  <meyering@lucent.com>
96421
96422         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96423
96424         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96425
96426         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96427         configure.in
96428         (AC_CHECK_HEADERS): Likewise for sh-utils.
96429         (AC_CHECK_HEADERS): Likewise for textutils.
96430         Merge the three lists of headers.
96431
96432         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96433         from fileutils' configure.in.
96434
96435         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96436         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96437         check-decl.m4.
96438
96439         * m4/check-decl.m4: Use #if rather than #ifdef.
96440         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96441         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96442         (_jm_DECL_HEADERS): Define new function.
96443         (jm_CHECK_DECLARATIONS): Require it.
96444
96445 2000-01-22  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96448         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96449         Required for some AIX systems.  Reported by Christian Krackowizer.
96450         [TESTING] (main): New function.
96451
96452         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96453         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96454         letters.
96455
96456         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96457         iswprint.
96458
96459         * lib/strverscmp.c (ISDIGIT): Define.
96460         (strverscmp): Use ISDIGIT, not isdigit.
96461
96462 2000-01-19  Jim Meyering  <meyering@lucent.com>
96463
96464         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96465         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96466         defines `struct timespec' in <sys/time.h>
96467
96468         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96469         Thanks to Akim for explaining.
96470
96471 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96472
96473         * lib/nanosleep.c (nanosleep):
96474         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96475         POSIX.1 doesn't require SA_INTERRUPT and some systems
96476         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96477         it's been part of POSIX.1 since day 1 (in 1988).
96478
96479 2000-01-17  Jim Meyering  <meyering@lucent.com>
96480
96481         * lib/interlock: Remove unused file.  Reported by François Pinard.
96482
96483 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96484
96485         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96486         alert, backslash, formfeed, and vertical tab unnecessarily in
96487         shell quoting style.
96488
96489 2000-01-16  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96492         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96493         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96494         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96495
96496 2000-01-16  Jim Meyering  <meyering@lucent.com>
96497
96498         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96499         because the latter didn't work.
96500
96501 2000-01-15  Jim Meyering  <meyering@lucent.com>
96502
96503         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96504         (AC_REPLACE_FUNCS): Add memcpy and memset.
96505         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96506         Add strpbrk.
96507         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96508
96509 2000-01-12  Jim Meyering  <meyering@lucent.com>
96510
96511         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96512         (jm_PREREQ): Use it.
96513         (jm_PREREQ_READUTMP): New macro.
96514         (jm_PREREQ): Use it.
96515
96516 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96517
96518         Quote multibyte characters correctly.
96519         * m4/c-bs-a.m4: New file.
96520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96521         (jm_PREREQ): Use it.
96522
96523 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96524
96525         * m4/uintmax_t.m4: Port to autoconf 2.13.
96526
96527 2000-01-08  Jim Meyering  <meyering@ascend.com>
96528
96529         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96530         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96531
96532 2000-01-04  Jim Meyering  <meyering@ascend.com>
96533
96534         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96535         jm_STRUCT_DIRENT_D_TYPE.
96536         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96537         jm_STRUCT_DIRENT_D_INO.
96538         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96539         jm_STRUCT_UTIMBUF.
96540         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96541         renamings.
96542         * m4/utime.m4: Likewise.
96543
96544         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96545         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96546
96547 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96548
96549         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96550         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96551
96552 2000-01-02  Jim Meyering  <meyering@ascend.com>
96553
96554         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96555         remember if this is necessary.
96556
96557 1999-12-26  Jim Meyering  <meyering@ascend.com>
96558
96559         * m4/jm-macros.m4: Use it here.
96560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96561
96562 1999-12-23  Jim Meyering  <meyering@ascend.com>
96563
96564         * m4/jm-macros.m4: Check for clock_gettime (moved from
96565         fileutils/configure.in)
96566         Check for gettimeofday.
96567
96568 1999-12-20  Jim Meyering  <meyering@ascend.com>
96569
96570         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96571         autoconf-2.14a-1999-12-20.
96572
96573 1999-12-19  Jim Meyering  <meyering@ascend.com>
96574
96575         * m4/lstat-slash.m4: New file.
96576         * m4/jm-macros.m4: Use the new macro:
96577         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96578
96579 1999-12-07  Jim Meyering  <meyering@ascend.com>
96580
96581         * m4/perl.m4: Require that File::Compare be available, too.
96582         Too many systems seem to lack it.
96583
96584         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96585         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96586
96587 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96588
96589         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96590         problem with the QNX 4.25 shell, which doesn't propagate exit
96591         status of failed commands inside shell assignments.
96592
96593 1999-11-17  Jim Meyering  <meyering@ascend.com>
96594
96595         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96596
96597 1999-11-07  Jim Meyering  <meyering@ascend.com>
96598
96599         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96600
96601 1999-11-06  Jim Meyering  <meyering@ascend.com>
96602
96603         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96604         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96605
96606 1999-11-05  Jim Meyering  <meyering@ascend.com>
96607
96608         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96609         configure.in of textutils, fileutils, and sh-utils into this one
96610         (shared between those packages) file.
96611         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96612         AC_STRUCT_ST_BLKSIZE.
96613
96614 1999-11-03  Jim Meyering  <meyering@ascend.com>
96615
96616         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96617         of AC_CHECK_TYPE checks includes unistd.h.
96618         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96619         Suggestion from Akim Demaille.
96620
96621 1999-10-30  Jim Meyering  <meyering@ascend.com>
96622
96623         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96624         m4-quoted string.
96625         * m4/ls-mntd-fs.m4: Likewise.
96626         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96627         * m4/jm-winsz1.m4: Likewise.
96628
96629         * m4/const.m4: Remove file, since the fix made it into the experimental
96630         version of autoconf.
96631         * m4/mktime.m4: Likewise.
96632
96633         * m4/check-type.m4: Remove file, now that the latest version of
96634         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96635
96636         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96637         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96638         AC_CHECK_TYPE.
96639
96640 1999-10-04  Jim Meyering  <meyering@ascend.com>
96641
96642         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96643
96644 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96645
96646         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96647         2.95.1 bug with HP-UX 10.20.
96648
96649 1999-09-17  Jim Meyering  <meyering@ascend.com>
96650
96651         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96652         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96653         due to missing strdup (against sh-utils-2.0).
96654
96655 1999-08-29  Jim Meyering  <meyering@ascend.com>
96656
96657         * m4/jm-macros.m4: Require jm_BISON.
96658         * m4/bison.m4: New file.
96659
96660 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96661
96662         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96663         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96664
96665 1999-08-05  Jim Meyering  <meyering@ascend.com>
96666
96667         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96668         to avoid conflicts with `conftest' on 8+3 filesystems.
96669         Suggestion from Eli Zaretskii.
96670
96671 1999-08-04  Jim Meyering  <meyering@ascend.com>
96672
96673         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96674         fileutils and sh-utils (textutils's getline test was inadequate).
96675         (AM_FUNC_GETLINE): Run this test.
96676         (AC_CHECK_FUNCS): Check for getdelim.
96677         Reported by Bob Proulx.
96678
96679 1999-08-02  Jim Meyering  <meyering@ascend.com>
96680
96681         * m4/jm-macros.m4: Add a comment.
96682
96683 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96684
96685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96686         <inttypes.h> defines strtoumax as a macro (and not as a
96687         function).
96688
96689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96690
96691         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96692         that we can shift, multiply and divide unsigned long long
96693         values; Ultrix cc can't do it.
96694
96695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96696
96697         * m4/mktime.m4: New file, which is a preview of what should appear
96698         in the next public autoconf release.
96699
96700 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96701
96702         * m4/lfs.m4: Remove this file.
96703         * m4/largefile.m4: New file.  It contains the old contents of
96704         lfs.m4, except that all names with prefix AC_LFS have been
96705         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96706         compatible with future autoconf versions.  Also, some minor m4
96707         quoting problems have been fixed.
96708
96709 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96710
96711         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96712         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96713         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96714         and simplify the shell code.
96715
96716 1999-08-01  Jim Meyering  <meyering@ascend.com>
96717
96718         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96719         m4.
96720
96721 1999-07-20  Jim Meyering  <meyering@ascend.com>
96722
96723         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96724
96725 1999-07-15  Jim Meyering  <meyering@ascend.com>
96726
96727         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96728
96729 1999-05-22  Jim Meyering  <meyering@ascend.com>
96730
96731         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96732
96733 1999-05-20  Jim Meyering  <meyering@ascend.com>
96734
96735         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96736         Add a colon after each `then' in case $4 is empty.
96737
96738 1999-05-16  Jim Meyering  <meyering@ascend.com>
96739
96740         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96741
96742 1999-05-10  Jim Meyering  <meyering@ascend.com>
96743
96744         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96745
96746         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96747         AC_FUNC_MKTIME.
96748
96749 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96750
96751         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96752
96753 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96754
96755         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96756         not CPPFLAGS, so that linking works correctly in IRIX.
96757
96758 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96759
96760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96761
96762 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96763
96764         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96765         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96766         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96767         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96768         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96769
96770         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96771
96772 1999-04-20  Jim Meyering  <meyering@ascend.com>
96773
96774         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96775         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96776         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96777
96778 1999-04-18  Jim Meyering  <meyering@ascend.com>
96779
96780         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96781         * m4/jm-macros.m4: Use it.
96782
96783 1999-04-06  Jim Meyering  <meyering@ascend.com>
96784
96785         * m4/strftime.m4: Remove test for %f.
96786
96787 1999-03-29  Jim Meyering  <meyering@ascend.com>
96788
96789         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96790         superset of the AC_TYPE_* checks in the textutils, fileutils,
96791         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96792         AC_TYPE_PID_T.
96793
96794 1999-03-28  Jim Meyering  <meyering@ascend.com>
96795
96796         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96797         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96798         replaced e.g., in the *.sh files of the sh-utils.
96799
96800 1999-03-20  Jim Meyering  <meyering@ascend.com>
96801
96802         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96803         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96804         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96805
96806 1999-03-19  Jim Meyering  <meyering@ascend.com>
96807
96808         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96809
96810 1999-03-12  Jim Meyering  <meyering@ascend.com>
96811
96812         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96813
96814 1999-03-07  Jim Meyering  <meyering@ascend.com>
96815
96816         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96817         declared.
96818
96819 1999-02-17  Jim Meyering  <meyering@ascend.com>
96820
96821         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
96822         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
96823
96824 1999-02-07  Jim Meyering  <meyering@ascend.com>
96825
96826         * m4/group-member.m4: New file -- extracted from sh-utils'
96827         configure.in.
96828
96829         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
96830         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
96831
96832 1999-02-06  Jim Meyering  <meyering@ascend.com>
96833
96834         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
96835         * m4/fnmatch.m4: Likewise.
96836         * m4/getgroups.m4: Likewise.
96837         * m4/lstat.m4: Likewise.
96838         * m4/malloc.m4: Likewise.
96839         * m4/putenv.m4: Likewise.
96840         * m4/realloc.m4: Likewise.
96841         * m4/regex.m4: Likewise.
96842         * m4/stat.m4: Likewise.
96843         * m4/strftime.m4: Likewise.
96844         Suggestion from Alain Magloire.
96845
96846         * m4/chown.m4: Use `.$ac_objext', not `.o'.
96847         * m4/fnmatch.m4: Likewise.
96848         * m4/getgroups.m4: Likewise.
96849         * m4/getline.m4: Likewise.
96850         * m4/lstat.m4: Likewise.
96851         * m4/malloc.m4: Likewise.
96852         * m4/memcmp.m4: Likewise.
96853         * m4/putenv.m4: Likewise.
96854         * m4/realloc.m4: Likewise.
96855         * m4/regex.m4: Likewise.
96856         * m4/stat.m4: Likewise.
96857         * m4/strftime.m4: Likewise.
96858         Suggestion from Alain Magloire.
96859
96860         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
96861         an argument.
96862
96863         * m4/regex.m4: Add a run-time Test for proper operation of
96864         re_compile_pattern.
96865
96866 1999-01-31  Jim Meyering  <meyering@ascend.com>
96867
96868         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
96869
96870 1999-01-30  Jim Meyering  <meyering@ascend.com>
96871
96872         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
96873
96874         * m4/jm-mktime.m4: Make this a wrapper around the official
96875         AM_FUNC_MKTIME rather than my private copy, now that the official one
96876         is up to date.
96877         * m4/mktime.m4: Remove file.
96878
96879         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
96880         * m4/uptime.m4: Likewise.
96881         * m4/uintmax_t.m4: Likewise.
96882
96883 1999-01-28  Jim Meyering  <meyering@ascend.com>
96884
96885         * m4/jm-macros.m4: Use jm_AFS.
96886         * m4/afs.m4: New file (from fileutils' configure.in).
96887
96888         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
96889         * m4/chown.m4: Likewise.
96890         * m4/d-ino.m4: Likewise.
96891         * m4/d-type.m4: Likewise.
96892         * m4/fnmatch.m4: Likewise.
96893         * m4/getgroups.m4: Likewise.
96894         * m4/gettext.m4: Likewise.
96895         * m4/jm-mktime.m4: Likewise.
96896         * m4/jm-winsz2.m4: Likewise.
96897         * m4/lcmessage.m4: Likewise.
96898         * m4/ls-mntd-fs.m4: Likewise.
96899         * m4/malloc.m4: Likewise.
96900         * m4/memcmp.m4: Likewise.
96901         * m4/putenv.m4: Likewise.
96902         * m4/realloc.m4: Likewise.
96903         * m4/st_mtim.m4: Likewise.
96904         * m4/strftime.m4: Likewise.
96905
96906 1999-01-16  Jim Meyering  <meyering@ascend.com>
96907
96908         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
96909         (ARGMATCH_DIE_DECL): Define.
96910
96911 1999-01-12  Jim Meyering  <meyering@ascend.com>
96912
96913         * m4/Makefile.am.in: Rewrite to avoid using fmt.
96914         Reported by Lars Hecking.
96915
96916 1999-01-10  Jim Meyering  <meyering@ascend.com>
96917
96918         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
96919         gross kludge.
96920         * m4/inttypes_h.m4: Likewise.
96921         * m4/lstat.m4: Likewise.
96922         * m4/malloc.m4: Likewise.
96923         * m4/readdir.m4: Likewise.
96924         * m4/realloc.m4: Likewise.
96925         * m4/st_dm_mode.m4: Likewise.
96926         * m4/stat.m4: Likewise.
96927         * m4/utimbuf.m4: Likewise.
96928         * m4/utimes.m4: Likewise.
96929
96930         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
96931         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
96932         comments in config.h.in are meaningful.
96933
96934         * m4/jm-macros.m4: Require autoconf-2.13 here.
96935
96936         * m4/regex.m4: By default, don't use the included regex.c on systems
96937         with glibc 2.  Suggestion from Uli Drepper.
96938
96939 1999-01-02  Jim Meyering  <meyering@ascend.com>
96940
96941         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
96942
96943 1998-12-18  Jim Meyering  <meyering@ascend.com>
96944
96945         * m4/Makefile.am.in (Makefile.am): Simplify rule.
96946         Based on a suggestion from Lars Hecking.
96947
96948 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96949
96950         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96951
96952 1998-11-16  Jim Meyering  <meyering@ascend.com>
96953
96954         * m4/lfs.m4: Double-quote the `uname...` expression.
96955
96956 1998-11-14  Jim Meyering  <meyering@ascend.com>
96957
96958         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96959         * m4/stat.m4: Likewise.
96960
96961 1998-11-03  Jim Meyering  <meyering@ascend.com>
96962
96963         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96964         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96965
96966 1998-10-18  Jim Meyering  <meyering@ascend.com>
96967
96968         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96969
96970 1998-10-17  Jim Meyering  <meyering@ascend.com>
96971
96972         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96973         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96974         calls for those previously hard-coded headers.  Instead, take a new
96975         parameter.
96976         (jm_CHECK_DECLARATIONS): Reflect interface change.
96977         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96978         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96979
96980         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96981
96982 1998-10-14  Jim Meyering  <meyering@ascend.com>
96983
96984         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96985         instead of "TZ=America/Vancouver".  From Paul Eggert.
96986
96987 1998-10-11  Jim Meyering  <meyering@ascend.com>
96988
96989         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96990         This adds a test for a recently added compatibility fix for mktime.c.
96991         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96992
96993 1998-09-27  Jim Meyering  <meyering@ascend.com>
96994
96995         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96996
96997         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96998         ../configure.in, including a change from Gordon Matzigkeit to allow
96999         cross-compiling for the Hurd.
97000
97001         * m4/glibc.m4: New file/macro to test for the GNU C Library
97002         versions 1 and 2.  From Gordon Matzigkeit.
97003         Indent.
97004
97005 1998-09-21  Jim Meyering  <meyering@ascend.com>
97006
97007         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97008
97009 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97010
97011         Port nanosecond-resolution times to UnixWare 2.1.2 and
97012         pedantic Solaris 2.6.
97013
97014         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97015         AC_STRUCT_ST_MTIM.
97016         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97017         Generate name of ns member, instead of just 1 or undef.
97018         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97019
97020 1998-08-15  Jim Meyering  <meyering@ascend.com>
97021
97022         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97023         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97024         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97025         instead of jm_TYPE_SSIZE_T.
97026
97027 1998-08-12  Jim Meyering  <meyering@ascend.com>
97028
97029         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97030
97031 1998-08-02  Jim Meyering  <meyering@ascend.com>
97032
97033         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97034         in acconfig.h manually.
97035
97036 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97037
97038         * m4/st_mtim.m4: New file.
97039
97040 1998-07-28  Jim Meyering  <meyering@ascend.com>
97041
97042         * m4/utimes.m4: Undef stat.
97043
97044 1998-07-25  Jim Meyering  <meyering@ascend.com>
97045
97046         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97047         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97048
97049 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97050
97051         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97052         uid and gid actually remain unchanged.
97053
97054 1998-07-07  Jim Meyering  <meyering@ascend.com>
97055
97056         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97057
97058 1998-07-04  Jim Meyering  <meyering@ascend.com>
97059
97060         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97061         to prove that this macro can be used in packages without regex.c.
97062
97063 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97064
97065         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97066         is to be used.
97067
97068 1998-07-03  Jim Meyering  <meyering@ascend.com>
97069
97070         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97071
97072         * m4/gettext.m4: New file -- from gettext-0.10.35.
97073         * m4/lcmessage.m4: Likewise.
97074         * m4/progtest.m4: Likewise.
97075
97076         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97077         * m4/jm-macros.m4: Require the new macro.
97078
97079 1998-06-29  Jim Meyering  <meyering@ascend.com>
97080
97081         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97082         for the definition of NGROUPS (used in a system header included
97083         by sys/mount.h).
97084
97085 1998-06-28  Jim Meyering  <meyering@ascend.com>
97086
97087         * m4/ls-mntd-fs.m4: New file.
97088         * m4/fstypename.m4: New file.
97089
97090         * m4/jm-macros.m4: Require the new macro.
97091         * m4/jm-glibc-io.m4: New file.
97092
97093 1998-05-19  Jim Meyering  <meyering@ascend.com>
97094
97095         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97096         * m4/lchown.m4: New file.
97097
97098         * m4/Makefile.am.in: New file.
97099         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97100
97101 1998-05-14  Jim Meyering  <meyering@ascend.com>
97102
97103         * m4/Makefile.am (EXTRA_DIST): Add them.
97104         * m4/jm-macros.m4: New file.
97105         * m4/utimbuf.m4: New file.
97106
97107 1998-05-12  Jim Meyering  <meyering@ascend.com>
97108
97109         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97110
97111 1998-05-11  Jim Meyering  <meyering@ascend.com>
97112
97113         * m4/isc-posix.m4: New file.
97114
97115 1998-05-10  Jim Meyering  <meyering@ascend.com>
97116
97117         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97118
97119 1998-05-09  Jim Meyering  <meyering@ascend.com>
97120
97121         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97122         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97123         with automake.
97124
97125         * m4/ssize_t.m4: New file.
97126         * m4/mktime.m4: Remove file -- the new automake has this now.
97127
97128 1998-04-26  Jim Meyering  <meyering@ascend.com>
97129
97130         * m4/assert.m4: New file.
97131         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97132
97133 1998-04-05  Jim Meyering  <meyering@ascend.com>
97134
97135         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97136         (jm_PREREQ): Use it here.
97137
97138 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97139
97140         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97141         in acconfig.h.
97142
97143 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97144
97145         * m4/prereq.m4: New file.
97146         * m4/error.m4: New file.
97147         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97148
97149 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97150
97151         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97152         cache-check for the same variable -- that defeated the purpose of
97153         the test; the test program was never run.  This was a problem only
97154         on systems with losing getline functions -- HP-UX 10.20 is one.
97155         Reported by Bjorn Helgaas.
97156
97157 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97158
97159         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97160
97161 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97162
97163         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97164
97165         * m4/const.m4: New file.  Use an initializer in this declaration
97166         typedef int charset[2]; const charset x;
97167         Reported by Bob Glickstein.
97168
97169 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97170
97171         * m4/chown.m4: Fix reversed types on -1 args to chown.
97172         From Kaveh Ghazi.
97173
97174 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97175
97176         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97177         Add lseek and memchr.
97178
97179         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97180         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97181         have a 20-character limit on names.
97182
97183 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97184
97185         * m4/inttypes_h.m4: New file.
97186         * m4/uintmax_t.m4: New file.
97187         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97188
97189
97190         -----
97191
97192         Local Variables:
97193         coding: utf-8
97194         End:
97195
97196         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97197
97198         Copying and distribution of this file, with or without
97199         modification, are permitted provided the copyright notice
97200         and this notice are preserved.